@ledgerhq/react-ui 0.46.0 → 0.47.0-nightly.20260228025221
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/lib/assets/logos/LedgerLiveAltRegular.d.ts +4 -4
- package/lib/assets/logos/LedgerLiveAltRegular.d.ts.map +1 -1
- package/lib/assets/logos/LedgerLiveAltRegular.js.map +1 -1
- package/lib/assets/logos/LedgerLiveRegular.d.ts +4 -4
- package/lib/assets/logos/LedgerLiveRegular.d.ts.map +1 -1
- package/lib/assets/logos/LedgerLiveRegular.js.map +1 -1
- package/lib/cjs/assets/index.js.map +1 -1
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +1 -1
- package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +1 -1
- package/lib/cjs/assets/logos/index.js.map +1 -1
- package/lib/cjs/components/Table/Columns.js +12 -9
- package/lib/cjs/components/Table/Columns.js.map +1 -1
- package/lib/cjs/components/Table/Table.stories.js +12 -9
- package/lib/cjs/components/Table/Table.stories.js.map +1 -1
- package/lib/cjs/components/Table/index.js +12 -9
- package/lib/cjs/components/Table/index.js.map +1 -1
- package/lib/cjs/components/Table/stories.helper.js +12 -9
- package/lib/cjs/components/Table/stories.helper.js.map +1 -1
- package/lib/cjs/components/Tag/Tag.stories.js +12 -9
- package/lib/cjs/components/Tag/Tag.stories.js.map +1 -1
- package/lib/cjs/components/Tag/index.js +12 -9
- package/lib/cjs/components/Tag/index.js.map +1 -1
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +12 -9
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Divider/Divider.stories.js +12 -9
- package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Divider/index.js +12 -9
- package/lib/cjs/components/asorted/Divider/index.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/Icon.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/Icons.stories.js +19 -12
- package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +31 -28
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/NotificationIcon.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Icon/index.js.map +1 -1
- package/lib/cjs/components/asorted/Text/Text.stories.js +33 -34
- package/lib/cjs/components/asorted/Text/Text.stories.js.map +1 -1
- package/lib/cjs/components/asorted/Text/index.js +16 -9
- package/lib/cjs/components/asorted/Text/index.js.map +1 -1
- package/lib/cjs/components/asorted/index.js +12 -9
- package/lib/cjs/components/asorted/index.js.map +1 -1
- package/lib/cjs/components/cta/Button/Button.stories.js +12 -9
- package/lib/cjs/components/cta/Button/Button.stories.js.map +1 -1
- package/lib/cjs/components/cta/Button/index.js.map +1 -1
- package/lib/cjs/components/cta/Link/Link.stories.js +12 -9
- package/lib/cjs/components/cta/Link/Link.stories.js.map +1 -1
- package/lib/cjs/components/cta/Link/index.js +12 -9
- package/lib/cjs/components/cta/Link/index.js.map +1 -1
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +1 -1
- package/lib/cjs/components/cta/Toggle/index.js.map +1 -1
- package/lib/cjs/components/cta/index.js +12 -9
- package/lib/cjs/components/cta/index.js.map +1 -1
- package/lib/cjs/components/form/BaseInput/Input.stories.js +31 -28
- package/lib/cjs/components/form/BaseInput/Input.stories.js.map +1 -1
- package/lib/cjs/components/form/BaseInput/index.js +31 -28
- package/lib/cjs/components/form/BaseInput/index.js.map +1 -1
- package/lib/cjs/components/form/Checkbox/Checkbox.js +12 -9
- package/lib/cjs/components/form/Checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +12 -9
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/cjs/components/form/Checkbox/index.js +12 -9
- package/lib/cjs/components/form/Checkbox/index.js.map +1 -1
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +31 -28
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +1 -1
- package/lib/cjs/components/form/Dropdown/index.js +31 -28
- package/lib/cjs/components/form/Dropdown/index.js.map +1 -1
- package/lib/cjs/components/form/LegendInput/Input.stories.js +31 -28
- package/lib/cjs/components/form/LegendInput/Input.stories.js.map +1 -1
- package/lib/cjs/components/form/LegendInput/index.js +31 -28
- package/lib/cjs/components/form/LegendInput/index.js.map +1 -1
- package/lib/cjs/components/form/NumberInput/Input.stories.js +31 -28
- package/lib/cjs/components/form/NumberInput/Input.stories.js.map +1 -1
- package/lib/cjs/components/form/NumberInput/index.js +31 -28
- package/lib/cjs/components/form/NumberInput/index.js.map +1 -1
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js +31 -28
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +1 -1
- package/lib/cjs/components/form/QrCodeInput/index.js +31 -28
- package/lib/cjs/components/form/QrCodeInput/index.js.map +1 -1
- package/lib/cjs/components/form/QuantityInput/Input.stories.js +31 -28
- package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +1 -1
- package/lib/cjs/components/form/QuantityInput/index.js +31 -28
- package/lib/cjs/components/form/QuantityInput/index.js.map +1 -1
- package/lib/cjs/components/form/Radio/Radio.stories.js +12 -9
- package/lib/cjs/components/form/Radio/Radio.stories.js.map +1 -1
- package/lib/cjs/components/form/Radio/RadioElement.js +12 -9
- package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -1
- package/lib/cjs/components/form/Radio/RadioElement.stories.js +12 -9
- package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +1 -1
- package/lib/cjs/components/form/Radio/RadioListElement.js +12 -9
- package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -1
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js +12 -9
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +1 -1
- package/lib/cjs/components/form/Radio/index.js +12 -9
- package/lib/cjs/components/form/Radio/index.js.map +1 -1
- package/lib/cjs/components/form/SearchInput/Input.stories.js +31 -28
- package/lib/cjs/components/form/SearchInput/Input.stories.js.map +1 -1
- package/lib/cjs/components/form/SearchInput/index.js +31 -28
- package/lib/cjs/components/form/SearchInput/index.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/Control.js +31 -28
- package/lib/cjs/components/form/SelectInput/Control.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +12 -9
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/MenuList.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/Option.js +12 -9
- package/lib/cjs/components/form/SelectInput/Option.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/Select.stories.js +31 -28
- package/lib/cjs/components/form/SelectInput/Select.stories.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/ValueContainer.js +12 -9
- package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +1 -1
- package/lib/cjs/components/form/SelectInput/index.js +31 -28
- package/lib/cjs/components/form/SelectInput/index.js.map +1 -1
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +31 -28
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +1 -1
- package/lib/cjs/components/form/SplitInput/index.js +31 -28
- package/lib/cjs/components/form/SplitInput/index.js.map +1 -1
- package/lib/cjs/components/form/Switch/Switch.js +12 -9
- package/lib/cjs/components/form/Switch/Switch.js.map +1 -1
- package/lib/cjs/components/form/Switch/Switch.stories.js +12 -9
- package/lib/cjs/components/form/Switch/Switch.stories.js.map +1 -1
- package/lib/cjs/components/form/Switch/index.js +12 -9
- package/lib/cjs/components/form/Switch/index.js.map +1 -1
- package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +12 -9
- package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +1 -1
- package/lib/cjs/components/form/TabSelector/index.js +12 -9
- package/lib/cjs/components/form/TabSelector/index.js.map +1 -1
- package/lib/cjs/components/form/index.js +31 -28
- package/lib/cjs/components/form/index.js.map +1 -1
- package/lib/cjs/components/index.js +105 -59
- package/lib/cjs/components/index.js.map +1 -1
- package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +12 -9
- package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +1 -1
- package/lib/cjs/components/layout/Banner/BannerCard/index.js +12 -9
- package/lib/cjs/components/layout/Banner/BannerCard/index.js.map +1 -1
- package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +12 -9
- package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +1 -1
- package/lib/cjs/components/layout/Banner/NotificationCard/index.js +12 -9
- package/lib/cjs/components/layout/Banner/NotificationCard/index.js.map +1 -1
- package/lib/cjs/components/layout/Box/Box.stories.js.map +1 -1
- package/lib/cjs/components/layout/Box/index.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Carousel.stories.js +15 -11
- package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js +3 -2
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js +3 -2
- package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/index.js +3 -2
- package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js +3 -2
- package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js +3 -2
- package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -1
- package/lib/cjs/components/layout/Carousel/index.js +3 -2
- package/lib/cjs/components/layout/Carousel/index.js.map +1 -1
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +12 -9
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +1 -1
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js +12 -9
- package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js.map +1 -1
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js +24 -11
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +1 -1
- package/lib/cjs/components/layout/Drawer/index.js +24 -11
- package/lib/cjs/components/layout/Drawer/index.js.map +1 -1
- package/lib/cjs/components/layout/Flex/Flex.stories.js.map +1 -1
- package/lib/cjs/components/layout/Flex/index.js.map +1 -1
- package/lib/cjs/components/layout/Grid/Grid.stories.js +46 -48
- package/lib/cjs/components/layout/Grid/Grid.stories.js.map +1 -1
- package/lib/cjs/components/layout/Grid/index.js.map +1 -1
- package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +12 -9
- package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +1 -1
- package/lib/cjs/components/layout/List/NumberedList/index.js +12 -9
- package/lib/cjs/components/layout/List/NumberedList/index.js.map +1 -1
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js.map +1 -1
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +12 -9
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +1 -1
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +18 -15
- package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +1 -1
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js +18 -14
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +1 -1
- package/lib/cjs/components/layout/Popin/Popin.stories.js +26 -12
- package/lib/cjs/components/layout/Popin/Popin.stories.js.map +1 -1
- package/lib/cjs/components/layout/Popin/index.js +14 -3
- package/lib/cjs/components/layout/Popin/index.js.map +1 -1
- package/lib/cjs/components/layout/Side/Provider.js.map +1 -1
- package/lib/cjs/components/layout/Side/Side.stories.js +24 -11
- package/lib/cjs/components/layout/Side/Side.stories.js.map +1 -1
- package/lib/cjs/components/layout/Side/index.js +24 -11
- package/lib/cjs/components/layout/Side/index.js.map +1 -1
- package/lib/cjs/components/layout/index.js +41 -20
- package/lib/cjs/components/layout/index.js.map +1 -1
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +1 -1
- package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +1 -1
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +12 -9
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +1 -1
- package/lib/cjs/components/loaders/ProgressLoader/index.js +12 -9
- package/lib/cjs/components/loaders/ProgressLoader/index.js.map +1 -1
- package/lib/cjs/components/loaders/index.js +12 -9
- package/lib/cjs/components/loaders/index.js.map +1 -1
- package/lib/cjs/components/message/Alert/Alert.stories.js +12 -9
- package/lib/cjs/components/message/Alert/Alert.stories.js.map +1 -1
- package/lib/cjs/components/message/Alert/index.js +12 -9
- package/lib/cjs/components/message/Alert/index.js.map +1 -1
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +12 -9
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +1 -1
- package/lib/cjs/components/message/ContinueOnDevice/index.js +12 -9
- package/lib/cjs/components/message/ContinueOnDevice/index.js.map +1 -1
- package/lib/cjs/components/message/Log/Brackets.js.map +1 -1
- package/lib/cjs/components/message/Log/Log.stories.js +12 -9
- package/lib/cjs/components/message/Log/Log.stories.js.map +1 -1
- package/lib/cjs/components/message/Log/index.js +12 -9
- package/lib/cjs/components/message/Log/index.js.map +1 -1
- package/lib/cjs/components/message/Notification/Badge.js.map +1 -1
- package/lib/cjs/components/message/Notification/Badge.stories.js.map +1 -1
- package/lib/cjs/components/message/Notification/Notification.stories.js +12 -9
- package/lib/cjs/components/message/Notification/Notification.stories.js.map +1 -1
- package/lib/cjs/components/message/Notification/index.js +12 -9
- package/lib/cjs/components/message/Notification/index.js.map +1 -1
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +12 -9
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +1 -1
- package/lib/cjs/components/message/StatusNotification/index.js +12 -9
- package/lib/cjs/components/message/StatusNotification/index.js.map +1 -1
- package/lib/cjs/components/message/Tip/Tip.stories.js +12 -9
- package/lib/cjs/components/message/Tip/Tip.stories.js.map +1 -1
- package/lib/cjs/components/message/Tip/index.js +12 -9
- package/lib/cjs/components/message/Tip/index.js.map +1 -1
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +17 -18
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/cjs/components/message/Tooltip/index.js +15 -16
- package/lib/cjs/components/message/Tooltip/index.js.map +1 -1
- package/lib/cjs/components/message/index.js +17 -18
- package/lib/cjs/components/message/index.js.map +1 -1
- package/lib/cjs/components/navigation/Aside/Aside.stories.js +12 -9
- package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +1 -1
- package/lib/cjs/components/navigation/Aside/index.js.map +1 -1
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +31 -28
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +1 -1
- package/lib/cjs/components/navigation/Breadcrumb/index.js +31 -28
- package/lib/cjs/components/navigation/Breadcrumb/index.js.map +1 -1
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +47 -22
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +1 -1
- package/lib/cjs/components/navigation/FlowStepper/index.js +47 -22
- package/lib/cjs/components/navigation/FlowStepper/index.js.map +1 -1
- package/lib/cjs/components/navigation/Header/Header.stories.js +14 -11
- package/lib/cjs/components/navigation/Header/Header.stories.js.map +1 -1
- package/lib/cjs/components/navigation/Header/index.js +2 -2
- package/lib/cjs/components/navigation/Header/index.js.map +1 -1
- package/lib/cjs/components/navigation/index.js +77 -44
- package/lib/cjs/components/navigation/index.js.map +1 -1
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +12 -9
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -1
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +12 -9
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +1 -1
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js +12 -9
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +1 -1
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +12 -9
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +1 -1
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +12 -9
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +1 -1
- package/lib/cjs/components/navigation/progress/Stepper/index.js +12 -9
- package/lib/cjs/components/navigation/progress/Stepper/index.js.map +1 -1
- package/lib/cjs/components/navigation/progress/index.js +12 -9
- package/lib/cjs/components/navigation/progress/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Item/Item.js +18 -10
- package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +18 -10
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Item/index.js +18 -10
- package/lib/cjs/components/navigation/sideBar/Item/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +6 -1
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Logo/index.js +6 -1
- package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +21 -10
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +21 -10
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js +21 -10
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +6 -1
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +1 -1
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js +6 -1
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +1 -1
- package/lib/cjs/components/styled.js.map +1 -1
- package/lib/cjs/components/styled.stories.js.map +1 -1
- package/lib/cjs/components/tabs/Bar/Bar.stories.js +12 -9
- package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +1 -1
- package/lib/cjs/components/tabs/Bar/index.js.map +1 -1
- package/lib/cjs/components/tabs/Chip/Chip.stories.js +12 -9
- package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +1 -1
- package/lib/cjs/components/tabs/Chip/index.js.map +1 -1
- package/lib/cjs/components/tabs/Pill/Pill.stories.js +12 -9
- package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +1 -1
- package/lib/cjs/components/tabs/Pill/index.js.map +1 -1
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +12 -9
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +1 -1
- package/lib/cjs/components/tabs/Tabs/index.js +12 -9
- package/lib/cjs/components/tabs/Tabs/index.js.map +1 -1
- package/lib/cjs/components/tabs/index.js +12 -9
- package/lib/cjs/components/tabs/index.js.map +1 -1
- package/lib/cjs/components/transitions/TransitionInOut.js +6 -1
- package/lib/cjs/components/transitions/TransitionInOut.js.map +1 -1
- package/lib/cjs/components/transitions/TransitionScale.js +8 -2
- package/lib/cjs/components/transitions/TransitionScale.js.map +1 -1
- package/lib/cjs/components/transitions/TransitionSlide.js +6 -1
- package/lib/cjs/components/transitions/TransitionSlide.js.map +1 -1
- package/lib/cjs/components/transitions/index.js +20 -4
- package/lib/cjs/components/transitions/index.js.map +1 -1
- package/lib/cjs/helpers.js +51 -0
- package/lib/cjs/helpers.js.map +1 -0
- package/lib/cjs/index.js +114 -65
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js +12 -9
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.js +12 -9
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Address/Address.js +12 -9
- package/lib/cjs/pre-ldls/components/Address/Address.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Address/Address.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js +12 -9
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js.map +1 -1
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js +12 -9
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.js +12 -9
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.js.map +1 -1
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.js.map +1 -1
- package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +12 -9
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js.map +1 -1
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +12 -9
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js.map +1 -1
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js +12 -9
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js.map +1 -1
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js +12 -9
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js.map +1 -1
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Search/Search.js +1 -1
- package/lib/cjs/pre-ldls/components/Search/Search.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Search/Search.stories.js +1 -1
- package/lib/cjs/pre-ldls/components/Search/Search.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Tag/Tag.js +12 -9
- package/lib/cjs/pre-ldls/components/Tag/Tag.js.map +1 -1
- package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +12 -9
- package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.js.map +1 -1
- package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js.map +1 -1
- package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/components/index.js +13 -10
- package/lib/cjs/pre-ldls/components/index.js.map +1 -1
- package/lib/cjs/pre-ldls/components/sharedStoryBook.js +12 -9
- package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +1 -1
- package/lib/cjs/pre-ldls/hooks/index.js +1 -1
- package/lib/cjs/pre-ldls/hooks/index.js.map +1 -1
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js +1 -1
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js.map +1 -1
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js +1 -1
- package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js.map +1 -1
- package/lib/cjs/pre-ldls/index.js +13 -10
- package/lib/cjs/pre-ldls/index.js.map +1 -1
- package/lib/cjs/styles/Spacing.stories.js +32 -34
- package/lib/cjs/styles/Spacing.stories.js.map +1 -1
- package/lib/cjs/styles/breakpoints.stories.js +30 -31
- package/lib/cjs/styles/breakpoints.stories.js.map +1 -1
- package/lib/cjs/styles/palettes/colors.stories.js +40 -42
- package/lib/cjs/styles/palettes/colors.stories.js.map +1 -1
- package/lib/components/Table/index.d.ts +6 -4
- package/lib/components/Table/index.d.ts.map +1 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Table/stories.helper.js.map +1 -1
- package/lib/components/Tag/index.d.ts +1 -1
- package/lib/components/Tag/index.d.ts.map +1 -1
- package/lib/components/asorted/Icon/BoxedIcon.d.ts +3 -3
- package/lib/components/asorted/Icon/BoxedIcon.d.ts.map +1 -1
- package/lib/components/asorted/Icon/Icon.d.ts +2 -2
- package/lib/components/asorted/Icon/Icon.d.ts.map +1 -1
- package/lib/components/asorted/Icon/Icon.js.map +1 -1
- package/lib/components/asorted/Text/index.d.ts +2 -0
- package/lib/components/asorted/Text/index.d.ts.map +1 -1
- package/lib/components/asorted/Text/index.js.map +1 -1
- package/lib/components/form/BaseInput/index.d.ts +10 -7
- package/lib/components/form/BaseInput/index.d.ts.map +1 -1
- package/lib/components/form/BaseInput/index.js +29 -31
- package/lib/components/form/BaseInput/index.js.map +1 -1
- package/lib/components/form/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/form/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/form/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/form/Dropdown/index.d.ts +2 -2
- package/lib/components/form/Dropdown/index.d.ts.map +1 -1
- package/lib/components/form/LegendInput/index.d.ts +1 -10
- package/lib/components/form/LegendInput/index.d.ts.map +1 -1
- package/lib/components/form/NumberInput/index.d.ts +1 -10
- package/lib/components/form/NumberInput/index.d.ts.map +1 -1
- package/lib/components/form/QrCodeInput/index.d.ts +1 -10
- package/lib/components/form/QrCodeInput/index.d.ts.map +1 -1
- package/lib/components/form/QuantityInput/index.d.ts +1 -10
- package/lib/components/form/QuantityInput/index.d.ts.map +1 -1
- package/lib/components/form/Radio/RadioElement.d.ts +2 -2
- package/lib/components/form/Radio/RadioElement.d.ts.map +1 -1
- package/lib/components/form/Radio/RadioElement.js.map +1 -1
- package/lib/components/form/Radio/RadioListElement.d.ts +2 -2
- package/lib/components/form/Radio/RadioListElement.d.ts.map +1 -1
- package/lib/components/form/Radio/RadioListElement.js.map +1 -1
- package/lib/components/form/Radio/index.d.ts +3 -3
- package/lib/components/form/Radio/index.d.ts.map +1 -1
- package/lib/components/form/Radio/index.js.map +1 -1
- package/lib/components/form/SearchInput/index.d.ts +1 -10
- package/lib/components/form/SearchInput/index.d.ts.map +1 -1
- package/lib/components/form/SearchInput/index.js.map +1 -1
- package/lib/components/form/SelectInput/Control.d.ts +2 -2
- package/lib/components/form/SelectInput/Control.d.ts.map +1 -1
- package/lib/components/form/SelectInput/DropdownIndicator.d.ts +2 -2
- package/lib/components/form/SelectInput/DropdownIndicator.d.ts.map +1 -1
- package/lib/components/form/SelectInput/IndicatorsContainer.d.ts +2 -2
- package/lib/components/form/SelectInput/IndicatorsContainer.d.ts.map +1 -1
- package/lib/components/form/SelectInput/MenuList.d.ts +2 -2
- package/lib/components/form/SelectInput/MenuList.d.ts.map +1 -1
- package/lib/components/form/SelectInput/Option.d.ts +1 -1
- package/lib/components/form/SelectInput/Option.d.ts.map +1 -1
- package/lib/components/form/SelectInput/ValueContainer.d.ts +1 -1
- package/lib/components/form/SelectInput/ValueContainer.d.ts.map +1 -1
- package/lib/components/form/SelectInput/index.d.ts +1 -1
- package/lib/components/form/SelectInput/index.d.ts.map +1 -1
- package/lib/components/form/SplitInput/index.d.ts +1 -1
- package/lib/components/form/SplitInput/index.d.ts.map +1 -1
- package/lib/components/form/Switch/Switch.d.ts +1 -1
- package/lib/components/form/Switch/Switch.d.ts.map +1 -1
- package/lib/components/form/Switch/Switch.js.map +1 -1
- package/lib/components/form/TabSelector/index.d.ts +2 -2
- package/lib/components/form/TabSelector/index.d.ts.map +1 -1
- package/lib/components/form/TabSelector/index.js.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/bullets.d.ts.map +1 -1
- package/lib/components/layout/Carousel/Footer/Pagination/bullets.js +4 -1
- package/lib/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
- package/lib/components/layout/Flex/index.d.ts +2 -1
- package/lib/components/layout/Flex/index.d.ts.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/index.d.ts +6 -5
- package/lib/components/layout/List/VerticalTimeline/index.d.ts.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/index.js +5 -4
- package/lib/components/layout/List/VerticalTimeline/index.js.map +1 -1
- package/lib/components/layout/Popin/index.d.ts +4 -2
- package/lib/components/layout/Popin/index.d.ts.map +1 -1
- package/lib/components/layout/Side/Provider.d.ts +1 -1
- package/lib/components/layout/Side/Provider.d.ts.map +1 -1
- package/lib/components/layout/Side/Provider.js.map +1 -1
- package/lib/components/layout/Side/index.d.ts +2 -2
- package/lib/components/layout/Side/index.d.ts.map +1 -1
- package/lib/components/layout/Side/index.js.map +1 -1
- package/lib/components/loaders/InfiniteLoader/index.d.ts +1 -1
- package/lib/components/loaders/InfiniteLoader/index.d.ts.map +1 -1
- package/lib/components/loaders/ProgressLoader/index.d.ts +2 -2
- package/lib/components/loaders/ProgressLoader/index.d.ts.map +1 -1
- package/lib/components/loaders/ProgressLoader/index.js.map +1 -1
- package/lib/components/message/Alert/index.d.ts +3 -3
- package/lib/components/message/Alert/index.d.ts.map +1 -1
- package/lib/components/message/Alert/index.js.map +1 -1
- package/lib/components/message/Log/index.d.ts +1 -1
- package/lib/components/message/Log/index.d.ts.map +1 -1
- package/lib/components/message/Notification/Badge.d.ts +2 -2
- package/lib/components/message/Notification/Badge.d.ts.map +1 -1
- package/lib/components/message/Notification/index.d.ts +1 -1
- package/lib/components/message/Notification/index.d.ts.map +1 -1
- package/lib/components/message/Notification/index.js.map +1 -1
- package/lib/components/message/StatusNotification/index.d.ts +1 -1
- package/lib/components/message/StatusNotification/index.d.ts.map +1 -1
- package/lib/components/message/StatusNotification/index.js.map +1 -1
- package/lib/components/message/Tip/index.d.ts +2 -2
- package/lib/components/message/Tip/index.d.ts.map +1 -1
- package/lib/components/message/Tip/index.js.map +1 -1
- package/lib/components/message/Tooltip/index.d.ts +2 -2
- package/lib/components/message/Tooltip/index.d.ts.map +1 -1
- package/lib/components/message/Tooltip/index.js.map +1 -1
- package/lib/components/navigation/Aside/index.d.ts +3 -2
- package/lib/components/navigation/Aside/index.d.ts.map +1 -1
- package/lib/components/navigation/FlowStepper/index.d.ts.map +1 -1
- package/lib/components/navigation/FlowStepper/index.js +10 -8
- package/lib/components/navigation/FlowStepper/index.js.map +1 -1
- package/lib/components/navigation/Header/index.d.ts +1 -1
- package/lib/components/navigation/Header/index.d.ts.map +1 -1
- package/lib/components/navigation/Header/index.js +1 -1
- package/lib/components/navigation/Header/index.js.map +1 -1
- package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts +2 -2
- package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts.map +1 -1
- package/lib/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -1
- package/lib/components/navigation/progress/Stepper/index.d.ts +3 -3
- package/lib/components/navigation/progress/Stepper/index.d.ts.map +1 -1
- package/lib/components/navigation/progress/Stepper/index.js.map +1 -1
- package/lib/components/navigation/sideBar/Item/Item.d.ts +4 -4
- package/lib/components/navigation/sideBar/Item/Item.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/Item/Item.js.map +1 -1
- package/lib/components/navigation/sideBar/Logo/Logo.d.ts +2 -2
- package/lib/components/navigation/sideBar/Logo/Logo.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/Logo/Logo.js.map +1 -1
- package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +4 -4
- package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/SideBar/SideBar.js +4 -3
- package/lib/components/navigation/sideBar/SideBar/SideBar.js.map +1 -1
- package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts +2 -2
- package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts.map +1 -1
- package/lib/components/navigation/sideBar/Toggle/Toggle.js.map +1 -1
- package/lib/components/styled.d.ts +2 -0
- package/lib/components/styled.d.ts.map +1 -1
- package/lib/components/styled.js.map +1 -1
- package/lib/components/tabs/Bar/index.d.ts +1 -1
- package/lib/components/tabs/Bar/index.d.ts.map +1 -1
- package/lib/components/tabs/Bar/index.js +1 -1
- package/lib/components/tabs/Bar/index.js.map +1 -1
- package/lib/components/tabs/Chip/index.d.ts +1 -1
- package/lib/components/tabs/Chip/index.d.ts.map +1 -1
- package/lib/components/tabs/Chip/index.js +1 -1
- package/lib/components/tabs/Chip/index.js.map +1 -1
- package/lib/components/tabs/Pill/index.d.ts +1 -1
- package/lib/components/tabs/Pill/index.d.ts.map +1 -1
- package/lib/components/tabs/Tabs/index.d.ts +1 -1
- package/lib/components/tabs/Tabs/index.d.ts.map +1 -1
- package/lib/components/transitions/TransitionInOut.d.ts +2 -2
- package/lib/components/transitions/TransitionInOut.d.ts.map +1 -1
- package/lib/components/transitions/TransitionInOut.js +6 -3
- package/lib/components/transitions/TransitionInOut.js.map +1 -1
- package/lib/components/transitions/TransitionScale.d.ts +1 -1
- package/lib/components/transitions/TransitionScale.d.ts.map +1 -1
- package/lib/components/transitions/TransitionScale.js +6 -3
- package/lib/components/transitions/TransitionScale.js.map +1 -1
- package/lib/components/transitions/TransitionSlide.d.ts +1 -1
- package/lib/components/transitions/TransitionSlide.d.ts.map +1 -1
- package/lib/components/transitions/TransitionSlide.js +6 -3
- package/lib/components/transitions/TransitionSlide.js.map +1 -1
- package/lib/helpers.d.ts +10 -0
- package/lib/helpers.d.ts.map +1 -0
- package/lib/helpers.js +18 -0
- package/lib/helpers.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/pre-ldls/components/CardButton/CardButton.d.ts +1 -1
- package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/pre-ldls/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/pre-ldls/hooks/useDebouncedCallback.js +1 -1
- package/lib/pre-ldls/hooks/useDebouncedCallback.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/Tag/Tag.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/Tag/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/Tag/Tag.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { border, BorderProps } from \"styled-system\";\nimport Text, { TextProps } from \"../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../styled\";\n\nexport type Size = \"large\" | \"medium\" | \"small\" | \"tiny\";\nexport type Type = \"plain\" | \"opacity\" | \"outlined\" | \"outlinedOpacity\";\n\nexport type TagProps = BaseStyledProps &\n React.HTMLAttributes<HTMLDivElement> &\n BorderProps &\n React.PropsWithChildren<{\n /**\n * Changes the appearance based on the active state.\n */\n active?: boolean;\n /**\n * Tag style.\n */\n type?: Type;\n /**\n * Size of the tag, affects the padding and the casing (uppercase for small and medium)\n */\n size?: Size;\n /**\n * Props passed to the text component, overriding props set internally by Tag component\n */\n textProps?: TextProps;\n\n disabled?: boolean;\n }>;\n\nfunction getColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n if (disabled) return active ? \"neutral.c00\" : \"neutral.c70\";\n return active ? \"neutral.c00\" : \"primary.c90\";\n default:\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n }\n}\n\nfunction getBgColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n return active ? (disabled ? \"neutral.c70\" : \"primary.c90\") : undefined;\n case \"opacity\":\n return active ? (disabled ? \"neutral.c30\" : \"primary.c20\") : undefined;\n default:\n return;\n }\n}\n\nfunction getBorderColor({ type, active, disabled }: TagProps) {\n if (!active) return;\n switch (type) {\n case \"outlined\":\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n case \"outlinedOpacity\":\n return disabled ? \"neutral.c40\" : \"primary.c40\";\n }\n}\n\nfunction getPadding({ size }: TagProps) {\n // Padding is 1px less than what's indicated in the design because of the 1px wide border.\n switch (size) {\n case \"tiny\":\n return \"1px 3px\";\n case \"small\":\n return \"2px 4px\";\n case \"medium\":\n return \"5px 7px\";\n case \"large\":\n default:\n return \"8px 9px 9px\";\n }\n}\n\nfunction getTextProps({ size }: TagProps): TextProps {\n switch (size) {\n case \"tiny\":\n case \"small\":\n case \"medium\":\n return {\n variant: \"tiny\",\n fontWeight: \"semiBold\",\n lineHeight: \"normal\",\n };\n case \"large\":\n default:\n return {\n variant: \"extraSmall\",\n fontWeight: \"semiBold\",\n };\n }\n}\n\nconst TagContainer = baseStyled.div.attrs<TagProps, TagProps>(props => ({\n backgroundColor: props.bg || props.backgroundColor || getBgColor(props),\n color: props.color || getColor(props),\n borderColor: getBorderColor(props),\n}))`\n display: inline-flex;\n justify-content: center;\n border: 1px solid transparent;\n border-radius: ${p => `${p.theme.radii[1]}px`};\n padding: ${p => getPadding(p)};\n ${border}\n`;\n\nexport default function Tag({\n children,\n textProps,\n size = \"large\",\n ...props\n}: TagProps): JSX.Element {\n const textColor = getColor(props);\n const baseTextProps = getTextProps({ size, ...props });\n return (\n <TagContainer size={size} {...props}>\n <Text {...baseTextProps} color={textColor} {...(textProps ? textProps : {})}>\n {children}\n </Text>\n </TagContainer>\n );\n}\n","import 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}\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>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import 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 };\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, 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, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\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\";\n\nimport { StoryTemplate } from \"../helpers\";\nimport Tag, { Type, Size, TagProps } from \"./index\";\nimport Text from \"../asorted/Text\";\nimport Flex from \"../layout/Flex\";\n\nconst sizes: Size[] = [\"large\", \"medium\", \"small\", \"tiny\"];\nconst types: Type[] = [\"plain\", \"opacity\", \"outlined\", \"outlinedOpacity\"];\nconst states = [{}, { disabled: true }];\n\nexport default {\n title: \"Toasts/Tag\",\n component: Tag,\n argTypes: {\n active: {\n control: {\n type: \"boolean\",\n },\n },\n type: {\n options: types,\n },\n size: {\n options: sizes,\n },\n children: {\n type: \"string\",\n },\n },\n};\n\nexport const Overview = ((): JSX.Element => (\n <Flex flexDirection=\"column\">\n {sizes.map(size => (\n <Flex flexDirection=\"column\" marginBottom={5}>\n <Text variant=\"h5\" marginBottom={5}>\n size=\"{size}\"\n </Text>\n {types.map(type => (\n <Flex flexDirection=\"row\" alignItems=\"center\" mb={5}>\n <div style={{ width: \"150px\" }}>\n <Text variant=\"small\" color=\"neutral.c70\">\n type=\"{type}\"\n </Text>\n </div>\n <Flex flexDirection=\"row\" mt=\"5px\" columnGap=\"16px\">\n {states.map(state =>\n [true, false].map((active: boolean) => (\n <Tag size={size} type={type} active={active} {...state}>\n {active ? \"Active\" : \"Inactive\"}\n </Tag>\n )),\n )}\n </Flex>\n </Flex>\n ))}\n </Flex>\n ))}\n </Flex>\n)).bind({});\n\nconst Template: StoryTemplate<TagProps> = (args: TagProps): JSX.Element => (\n <Tag {...args}>{args.children}</Tag>\n);\n\nconst defaultArgs = {\n active: true,\n children: \"Label\",\n type: \"large\",\n};\n\nexport const Plain = Template.bind({});\nPlain.args = {\n ...defaultArgs,\n type: \"plain\",\n};\nexport const Opacity = Template.bind({});\nOpacity.args = {\n ...defaultArgs,\n type: \"opacity\",\n};\nexport const Outlined = Template.bind({});\nOutlined.args = {\n ...defaultArgs,\n type: \"outlined\",\n};\nexport const OutlinedOpacity = Template.bind({});\nOutlinedOpacity.args = {\n ...defaultArgs,\n type: \"outlinedOpacity\",\n};\n"],"names":["React","border","Text","baseStyled","getColor","type","active","disabled","getBgColor","undefined","getBorderColor","getPadding","size","getTextProps","TagContainer","props","p","Tag","children","textProps","textColor","baseTextProps","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","variant","color","css","getFontSource","name","fontsPath","fontName","fontStyles","FlexBox","gaps","styled","flexbox","space","position","layout","overflow","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","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","Flex","sizes","types","states","Overview","state","Template","args","defaultArgs","Plain","Opacity","Outlined","OutlinedOpacity"],"mappings":";;;;;;;;;;;;;AAA0B;AAC0B;AACF;AACM;AA6BxD,SAASI,SAAS,EAAEC,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAY;IACpD,OAAQF;QACN,KAAK;YACH,IAAIE,UAAU,OAAOD,SAAS,gBAAgB;YAC9C,OAAOA,SAAS,gBAAgB;QAClC;YACE,OAAOC,WAAW,gBAAgB;IACtC;AACF;AAEA,SAASC,WAAW,EAAEH,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAY;IACtD,OAAQF;QACN,KAAK;YACH,OAAOC,SAAUC,WAAW,gBAAgB,gBAAiBE;QAC/D,KAAK;YACH,OAAOH,SAAUC,WAAW,gBAAgB,gBAAiBE;QAC/D;YACE;IACJ;AACF;AAEA,SAASC,eAAe,EAAEL,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAY;IAC1D,IAAI,CAACD,QAAQ;IACb,OAAQD;QACN,KAAK;YACH,OAAOE,WAAW,gBAAgB;QACpC,KAAK;YACH,OAAOA,WAAW,gBAAgB;IACtC;AACF;AAEA,SAASI,WAAW,EAAEC,IAAI,EAAY;IACpC,0FAA0F;IAC1F,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT,KAAK;QACL;YACE,OAAO;IACX;AACF;AAEA,SAASC,aAAa,EAAED,IAAI,EAAY;IACtC,OAAQA;QACN,KAAK;QACL,KAAK;QACL,KAAK;YACH,OAAO;gBACL,SAAS;gBACT,YAAY;gBACZ,YAAY;YACd;QACF,KAAK;QACL;YACE,OAAO;gBACL,SAAS;gBACT,Y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AAK,qBAGhB,+CAAC6F,wCAAIA;gBAAC,eAAc;gBAAM,IAAG;gBAAM,WAAU;eAC1CG,OAAO,GAAG,CAACE,CAAAA,QACV;oBAAC;oBAAM;iBAAM,CAAC,GAAG,CAAC,CAACjG,uBACjB,+CAACW,kCAAGA;wBAAC,MAAML;wBAAM,MAAMP;wBAAM,QAAQC;wBAAS,GAAGiG,KAAK;uBACnDjG,SAAS,WAAW,mBAUzC,EAAG,IAAI,CAAC,CAAC,GAAG;AAEZ,MAAMkG,WAAoC,CAACC,qBACzC,+CAACxF,kCAAGA,EAAKwF,MAAOA,KAAK,QAAQ;AAG/B,MAAMC,cAAc;IAClB,QAAQ;IACR,UAAU;IACV,MAAM;AACR;AAEO,MAAMC,QAAQH,SAAS,IAAI,CAAC,CAAC,GAAG;AACvCG,MAAM,IAAI,GAAG;IACX,GAAGD,WAAW;IACd,MAAM;AACR;AACO,MAAME,UAAUJ,SAAS,IAAI,CAAC,CAAC,GAAG;AACzCI,QAAQ,IAAI,GAAG;IACb,GAAGF,WAAW;IACd,MAAM;AACR;AACO,MAAMG,WAAWL,SAAS,IAAI,CAAC,CAAC,GAAG;AAC1CK,SAAS,IAAI,GAAG;IACd,GAAGH,WAAW;IACd,MAAM;AACR;AACO,MAAMI,kBAAkBN,SAAS,IAAI,CAAC,CAAC,GAAG;AACjDM,gBAAgB,IAAI,GAAG;IACrB,GAAGJ,WAAW;IACd,MAAM;AACR"}
|
|
1
|
+
{"version":3,"file":"components/Tag/Tag.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/Tag/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/Tag/Tag.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { border, BorderProps } from \"styled-system\";\nimport Text, { TextProps } from \"../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../styled\";\n\nexport type Size = \"large\" | \"medium\" | \"small\" | \"tiny\";\nexport type Type = \"plain\" | \"opacity\" | \"outlined\" | \"outlinedOpacity\";\n\nexport type TagProps = BaseStyledProps &\n React.HTMLAttributes<HTMLDivElement> &\n BorderProps &\n React.PropsWithChildren<{\n /**\n * Changes the appearance based on the active state.\n */\n active?: boolean;\n /**\n * Tag style.\n */\n type?: Type;\n /**\n * Size of the tag, affects the padding and the casing (uppercase for small and medium)\n */\n size?: Size;\n /**\n * Props passed to the text component, overriding props set internally by Tag component\n */\n textProps?: TextProps;\n\n disabled?: boolean;\n }>;\n\nfunction getColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n if (disabled) return active ? \"neutral.c00\" : \"neutral.c70\";\n return active ? \"neutral.c00\" : \"primary.c90\";\n default:\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n }\n}\n\nfunction getBgColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n return active ? (disabled ? \"neutral.c70\" : \"primary.c90\") : undefined;\n case \"opacity\":\n return active ? (disabled ? \"neutral.c30\" : \"primary.c20\") : undefined;\n default:\n return;\n }\n}\n\nfunction getBorderColor({ type, active, disabled }: TagProps) {\n if (!active) return;\n switch (type) {\n case \"outlined\":\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n case \"outlinedOpacity\":\n return disabled ? \"neutral.c40\" : \"primary.c40\";\n }\n}\n\nfunction getPadding({ size }: TagProps) {\n // Padding is 1px less than what's indicated in the design because of the 1px wide border.\n switch (size) {\n case \"tiny\":\n return \"1px 3px\";\n case \"small\":\n return \"2px 4px\";\n case \"medium\":\n return \"5px 7px\";\n case \"large\":\n default:\n return \"8px 9px 9px\";\n }\n}\n\nfunction getTextProps({ size }: TagProps): TextProps {\n switch (size) {\n case \"tiny\":\n case \"small\":\n case \"medium\":\n return {\n variant: \"tiny\",\n fontWeight: \"semiBold\",\n lineHeight: \"normal\",\n };\n case \"large\":\n default:\n return {\n variant: \"extraSmall\",\n fontWeight: \"semiBold\",\n };\n }\n}\n\nconst TagContainer = baseStyled.div.attrs<TagProps, TagProps>(props => ({\n backgroundColor: props.bg || props.backgroundColor || getBgColor(props),\n color: props.color || getColor(props),\n borderColor: getBorderColor(props),\n}))`\n display: inline-flex;\n justify-content: center;\n border: 1px solid transparent;\n border-radius: ${p => `${p.theme.radii[1]}px`};\n padding: ${p => getPadding(p)};\n ${border}\n`;\n\nexport default function Tag({\n children,\n textProps,\n size = \"large\",\n ...props\n}: TagProps): React.JSX.Element {\n const textColor = getColor(props);\n const baseTextProps = getTextProps({ size, ...props });\n return (\n <TagContainer size={size} {...props}>\n <Text {...baseTextProps} color={textColor} {...(textProps ? textProps : {})}>\n {children}\n </Text>\n </TagContainer>\n );\n}\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>({ display: \"flex\" })``;\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, 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, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\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\";\n\nimport { StoryTemplate } from \"../helpers\";\nimport Tag, { Type, Size, TagProps } from \"./index\";\nimport Text from \"../asorted/Text\";\nimport Flex from \"../layout/Flex\";\n\nconst sizes: Size[] = [\"large\", \"medium\", \"small\", \"tiny\"];\nconst types: Type[] = [\"plain\", \"opacity\", \"outlined\", \"outlinedOpacity\"];\nconst states = [{}, { disabled: true }];\n\nexport default {\n title: \"Toasts/Tag\",\n component: Tag,\n argTypes: {\n active: {\n control: {\n type: \"boolean\",\n },\n },\n type: {\n options: types,\n },\n size: {\n options: sizes,\n },\n children: {\n type: \"string\",\n },\n },\n};\n\nexport const Overview = ((): React.JSX.Element => (\n <Flex flexDirection=\"column\">\n {sizes.map(size => (\n <Flex flexDirection=\"column\" marginBottom={5}>\n <Text variant=\"h5\" marginBottom={5}>\n size=\"{size}\"\n </Text>\n {types.map(type => (\n <Flex flexDirection=\"row\" alignItems=\"center\" mb={5}>\n <div style={{ width: \"150px\" }}>\n <Text variant=\"small\" color=\"neutral.c70\">\n type=\"{type}\"\n </Text>\n </div>\n <Flex flexDirection=\"row\" mt=\"5px\" columnGap=\"16px\">\n {states.map(state =>\n [true, false].map((active: boolean) => (\n <Tag size={size} type={type} active={active} {...state}>\n {active ? \"Active\" : \"Inactive\"}\n </Tag>\n )),\n )}\n </Flex>\n </Flex>\n ))}\n </Flex>\n ))}\n </Flex>\n)).bind({});\n\nconst Template: StoryTemplate<TagProps> = (args: TagProps): React.JSX.Element => (\n <Tag {...args}>{args.children}</Tag>\n);\n\nconst defaultArgs = {\n active: true,\n children: \"Label\",\n type: \"large\",\n};\n\nexport const Plain = Template.bind({});\nPlain.args = {\n ...defaultArgs,\n type: \"plain\",\n};\nexport const Opacity = Template.bind({});\nOpacity.args = {\n ...defaultArgs,\n type: \"opacity\",\n};\nexport const Outlined = Template.bind({});\nOutlined.args = {\n ...defaultArgs,\n type: \"outlined\",\n};\nexport const OutlinedOpacity = Template.bind({});\nOutlinedOpacity.args = {\n ...defaultArgs,\n type: \"outlinedOpacity\",\n};\n"],"names":["React","border","Text","baseStyled","getColor","type","active","disabled","getBgColor","undefined","getBorderColor","getPadding","size","getTextProps","TagContainer","props","p","Tag","children","textProps","textColor","baseTextProps","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","variant","color","css","getFontSource","name","fontsPath","fontName","fontStyles","FlexBox","gaps","styled","flexbox","space","position","layout","overflow","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","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","Flex","sizes","types","states","Overview","state","Template","args","defaultArgs","Plain","Opacity","Outlined","OutlinedOpacity"],"mappings":";;;;;;;;;;;;;AAA0B;AAC0B;AACF;AACM;AA6BxD,SAASI,SAAS,EAAEC,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAY;IACpD,OAAQF;QACN,KAAK;YACH,IAAIE,UAAU,OAAOD,SAAS,gBAAgB;YAC9C,OAAOA,SAAS,gBAAgB;QAClC;YACE,OAAOC,WAAW,gBAAgB;IACtC;AACF;AAEA,SAASC,WAAW,EAAEH,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAY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;IACd,MAAM;AACR;AACO,MAAME,UAAUJ,SAAS,IAAI,CAAC,CAAC,GAAG;AACzCI,QAAQ,IAAI,GAAG;IACb,GAAGF,WAAW;IACd,MAAM;AACR;AACO,MAAMG,WAAWL,SAAS,IAAI,CAAC,CAAC,GAAG;AAC1CK,SAAS,IAAI,GAAG;IACd,GAAGH,WAAW;IACd,MAAM;AACR;AACO,MAAMI,kBAAkBN,SAAS,IAAI,CAAC,CAAC,GAAG;AACjDM,gBAAgB,IAAI,GAAG;IACrB,GAAGJ,WAAW;IACd,MAAM;AACR"}
|
|
@@ -5,29 +5,32 @@ var __webpack_modules__ = ({
|
|
|
5
5
|
__webpack_require__.d(__webpack_exports__, {
|
|
6
6
|
"default": () => (__rspack_default_export)
|
|
7
7
|
});
|
|
8
|
-
/* import */ var
|
|
9
|
-
/* import */ var
|
|
10
|
-
/* import */ var
|
|
11
|
-
/* import */ var
|
|
12
|
-
/* import */ var
|
|
8
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
9
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
10
|
+
/* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
|
|
11
|
+
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
12
|
+
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
13
|
+
/* import */ var _styles_styled_fontFamily__rspack_import_4 = __webpack_require__(3364);
|
|
14
|
+
/* import */ var _styles__rspack_import_3 = __webpack_require__(4368);
|
|
15
|
+
|
|
13
16
|
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
|
|
17
|
-
const uppercase = (0,
|
|
20
|
+
const uppercase = (0,styled_system__rspack_import_1.system)({
|
|
18
21
|
uppercase: {
|
|
19
22
|
property: "textTransform",
|
|
20
23
|
transform: (value)=>value ? "uppercase" : "none"
|
|
21
24
|
}
|
|
22
25
|
});
|
|
23
|
-
const Text =
|
|
26
|
+
const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body", fontSize, color })=>({
|
|
24
27
|
fontSize: fontSize ? fontSize : variant,
|
|
25
28
|
color: color || "neutral.c100"
|
|
26
29
|
}))`
|
|
27
30
|
font-weight: 500;
|
|
28
31
|
white-space: ${(props)=>props.whiteSpace ?? "normal"};
|
|
29
|
-
${(p)=>
|
|
30
|
-
${(0,
|
|
32
|
+
${(p)=>_styles__rspack_import_3.textVariantStyle[p.variant || "body"]}
|
|
33
|
+
${(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)({
|
|
31
34
|
textOverflow: true
|
|
32
35
|
}))}
|
|
33
36
|
${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/Tag/index.js","sources":["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/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/Tag/index.tsx"],"sourcesContent":["import 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}\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 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 };\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, 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, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\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 { border, BorderProps } from \"styled-system\";\nimport Text, { TextProps } from \"../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../styled\";\n\nexport type Size = \"large\" | \"medium\" | \"small\" | \"tiny\";\nexport type Type = \"plain\" | \"opacity\" | \"outlined\" | \"outlinedOpacity\";\n\nexport type TagProps = BaseStyledProps &\n React.HTMLAttributes<HTMLDivElement> &\n BorderProps &\n React.PropsWithChildren<{\n /**\n * Changes the appearance based on the active state.\n */\n active?: boolean;\n /**\n * Tag style.\n */\n type?: Type;\n /**\n * Size of the tag, affects the padding and the casing (uppercase for small and medium)\n */\n size?: Size;\n /**\n * Props passed to the text component, overriding props set internally by Tag component\n */\n textProps?: TextProps;\n\n disabled?: boolean;\n }>;\n\nfunction getColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n if (disabled) return active ? \"neutral.c00\" : \"neutral.c70\";\n return active ? \"neutral.c00\" : \"primary.c90\";\n default:\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n }\n}\n\nfunction getBgColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n return active ? (disabled ? \"neutral.c70\" : \"primary.c90\") : undefined;\n case \"opacity\":\n return active ? (disabled ? \"neutral.c30\" : \"primary.c20\") : undefined;\n default:\n return;\n }\n}\n\nfunction getBorderColor({ type, active, disabled }: TagProps) {\n if (!active) return;\n switch (type) {\n case \"outlined\":\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n case \"outlinedOpacity\":\n return disabled ? \"neutral.c40\" : \"primary.c40\";\n }\n}\n\nfunction getPadding({ size }: TagProps) {\n // Padding is 1px less than what's indicated in the design because of the 1px wide border.\n switch (size) {\n case \"tiny\":\n return \"1px 3px\";\n case \"small\":\n return \"2px 4px\";\n case \"medium\":\n return \"5px 7px\";\n case \"large\":\n default:\n return \"8px 9px 9px\";\n }\n}\n\nfunction getTextProps({ size }: TagProps): TextProps {\n switch (size) {\n case \"tiny\":\n case \"small\":\n case \"medium\":\n return {\n variant: \"tiny\",\n fontWeight: \"semiBold\",\n lineHeight: \"normal\",\n };\n case \"large\":\n default:\n return {\n variant: \"extraSmall\",\n fontWeight: \"semiBold\",\n };\n }\n}\n\nconst TagContainer = baseStyled.div.attrs<TagProps, TagProps>(props => ({\n backgroundColor: props.bg || props.backgroundColor || getBgColor(props),\n color: props.color || getColor(props),\n borderColor: getBorderColor(props),\n}))`\n display: inline-flex;\n justify-content: center;\n border: 1px solid transparent;\n border-radius: ${p => `${p.theme.radii[1]}px`};\n padding: ${p => getPadding(p)};\n ${border}\n`;\n\nexport default function Tag({\n children,\n textProps,\n size = \"large\",\n ...props\n}: TagProps): JSX.Element {\n const textColor = getColor(props);\n const baseTextProps = getTextProps({ size, ...props });\n return (\n <TagContainer size={size} {...props}>\n <Text {...baseTextProps} color={textColor} {...(textProps ? textProps : {})}>\n {children}\n </Text>\n </TagContainer>\n );\n}\n"],"names":["baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","variant","color","props","p","css","getFontSource","name","fontsPath","fontName","fontStyles","gaps","styled","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","React","getColor","active","disabled","getBgColor","undefined","getBorderColor","getPadding","size","getTextProps","TagContainer","Tag","children","textProps","textColor","baseTextProps"],"mappings":";;;;;;;;;;;;AAA2D;AASpC;AACoC;AAEf;AAE5C,MAAMU,YAAYH,yCAAMA,CAAC;IACvB,WAAW;QACT,UAAU;QACV,WAAWI,CAAAA,QAAUA,QAAQ,cAAc;IAC7C;AACF;AA4BA,MAAMC,OAAOZ,8CAAqB,CAChC,CAAC,EAAEa,UAAU,MAAM,EAAEX,QAAQ,EAAEY,KAAK,EAAE,GAAM;QAC1C,UAAUZ,WAAWA,WAAWW;QAChC,OAAOC,SAAS;IAClB,GACD,CAAC;;eAEa,EAAEC,CAAAA,QAASA,MAAM,UAAU,IAAI,SAAS;EACrD,EAAE,CAACC,IAAiBP,yCAAgB,CAACO,EAAE,OAAO,IAAI,OAAO,CAAC;EAC1D,EAAEf,0CAAOA,CACPS,WACAL,yCAAUA,EACVG,qDAAUA,EACVN,uCAAQA,EACRE,wCAASA,EACTD,yCAAUA,EACVG,4CAAaA,EACbC,yCAAMA,CAAC;IACL,cAAc;AAChB,IACA;EACF,EAAES,CAAAA,IAAMA,EAAE,aAAa,GAAG,CAAC,gBAAgB,EAAEA,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,GAAI;AACxE,CAAC;AAED,sDAAeJ,IAAIA,EAAC;;;;;;;;;;ACtEoB;AAGxC,MAAMM,gBAAgB,CAACC,OAAiB,CAACJ;QACvC,MAAMK,YAAYL,MAAM,SAAS,IAAI;QACrC,MAAMM,WAAYN,MAAM,YAAY,IAAIA,MAAM,YAAY,CAACI,SAAU,GAAGA,KAAK,MAAM,CAAC;QACpF,OAAO,CAAC,KAAK,EAAEC,UAAU,CAAC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TL,OAAO,OAAO,EACd,GAAG1E,OACM;IACT,MAAMgF,YAAYb,SAASnE;IAC3B,MAAMiF,gBAAgBN,aAAa;QAAED;QAAM,GAAG1E,KAAK;IAAC;IACpD,qBACE,+CAAC4E;QAAa,MAAMF;QAAO,GAAG1E,KAAK;qBACjC,+CAACH,yCAAIA;QAAE,GAAGoF,aAAa;QAAE,OAAOD;QAAY,GAAID,YAAYA,YAAY,CAAC,CAAC;OACvED;AAIT"}
|
|
1
|
+
{"version":3,"file":"components/Tag/index.js","sources":["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/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/Tag/index.tsx"],"sourcesContent":["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 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, 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, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\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 { border, BorderProps } from \"styled-system\";\nimport Text, { TextProps } from \"../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../styled\";\n\nexport type Size = \"large\" | \"medium\" | \"small\" | \"tiny\";\nexport type Type = \"plain\" | \"opacity\" | \"outlined\" | \"outlinedOpacity\";\n\nexport type TagProps = BaseStyledProps &\n React.HTMLAttributes<HTMLDivElement> &\n BorderProps &\n React.PropsWithChildren<{\n /**\n * Changes the appearance based on the active state.\n */\n active?: boolean;\n /**\n * Tag style.\n */\n type?: Type;\n /**\n * Size of the tag, affects the padding and the casing (uppercase for small and medium)\n */\n size?: Size;\n /**\n * Props passed to the text component, overriding props set internally by Tag component\n */\n textProps?: TextProps;\n\n disabled?: boolean;\n }>;\n\nfunction getColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n if (disabled) return active ? \"neutral.c00\" : \"neutral.c70\";\n return active ? \"neutral.c00\" : \"primary.c90\";\n default:\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n }\n}\n\nfunction getBgColor({ type, active, disabled }: TagProps) {\n switch (type) {\n case \"plain\":\n return active ? (disabled ? \"neutral.c70\" : \"primary.c90\") : undefined;\n case \"opacity\":\n return active ? (disabled ? \"neutral.c30\" : \"primary.c20\") : undefined;\n default:\n return;\n }\n}\n\nfunction getBorderColor({ type, active, disabled }: TagProps) {\n if (!active) return;\n switch (type) {\n case \"outlined\":\n return disabled ? \"neutral.c70\" : \"primary.c90\";\n case \"outlinedOpacity\":\n return disabled ? \"neutral.c40\" : \"primary.c40\";\n }\n}\n\nfunction getPadding({ size }: TagProps) {\n // Padding is 1px less than what's indicated in the design because of the 1px wide border.\n switch (size) {\n case \"tiny\":\n return \"1px 3px\";\n case \"small\":\n return \"2px 4px\";\n case \"medium\":\n return \"5px 7px\";\n case \"large\":\n default:\n return \"8px 9px 9px\";\n }\n}\n\nfunction getTextProps({ size }: TagProps): TextProps {\n switch (size) {\n case \"tiny\":\n case \"small\":\n case \"medium\":\n return {\n variant: \"tiny\",\n fontWeight: \"semiBold\",\n lineHeight: \"normal\",\n };\n case \"large\":\n default:\n return {\n variant: \"extraSmall\",\n fontWeight: \"semiBold\",\n };\n }\n}\n\nconst TagContainer = baseStyled.div.attrs<TagProps, TagProps>(props => ({\n backgroundColor: props.bg || props.backgroundColor || getBgColor(props),\n color: props.color || getColor(props),\n borderColor: getBorderColor(props),\n}))`\n display: inline-flex;\n justify-content: center;\n border: 1px solid transparent;\n border-radius: ${p => `${p.theme.radii[1]}px`};\n padding: ${p => getPadding(p)};\n ${border}\n`;\n\nexport default function Tag({\n children,\n textProps,\n size = \"large\",\n ...props\n}: TagProps): React.JSX.Element {\n const textColor = getColor(props);\n const baseTextProps = getTextProps({ size, ...props });\n return (\n <TagContainer size={size} {...props}>\n <Text {...baseTextProps} color={textColor} {...(textProps ? textProps : {})}>\n {children}\n </Text>\n </TagContainer>\n );\n}\n"],"names":["React","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","variant","color","props","p","css","getFontSource","name","fontsPath","fontName","fontStyles","gaps","styled","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","getColor","active","disabled","getBgColor","undefined","getBorderColor","getPadding","size","getTextProps","TagContainer","Tag","children","textProps","textColor","baseTextProps"],"mappings":";;;;;;;;;;;;;;AAA0B;AACiC;AASpC;AACoC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}
|
|
@@ -55,29 +55,32 @@ function GlitchText({ text, duration = 800, delay = 500 }) {
|
|
|
55
55
|
__webpack_require__.d(__webpack_exports__, {
|
|
56
56
|
"default": () => (__rspack_default_export)
|
|
57
57
|
});
|
|
58
|
-
/* import */ var
|
|
59
|
-
/* import */ var
|
|
60
|
-
/* import */ var
|
|
61
|
-
/* import */ var
|
|
62
|
-
/* import */ var
|
|
58
|
+
/* import */ var react__rspack_import_0 = __webpack_require__(2015);
|
|
59
|
+
/* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
|
|
60
|
+
/* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
|
|
61
|
+
/* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
|
|
62
|
+
/* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
|
|
63
|
+
/* import */ var _styles_styled_fontFamily__rspack_import_4 = __webpack_require__(3364);
|
|
64
|
+
/* import */ var _styles__rspack_import_3 = __webpack_require__(4368);
|
|
65
|
+
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
|
|
67
|
-
const uppercase = (0,
|
|
70
|
+
const uppercase = (0,styled_system__rspack_import_1.system)({
|
|
68
71
|
uppercase: {
|
|
69
72
|
property: "textTransform",
|
|
70
73
|
transform: (value)=>value ? "uppercase" : "none"
|
|
71
74
|
}
|
|
72
75
|
});
|
|
73
|
-
const Text =
|
|
76
|
+
const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body", fontSize, color })=>({
|
|
74
77
|
fontSize: fontSize ? fontSize : variant,
|
|
75
78
|
color: color || "neutral.c100"
|
|
76
79
|
}))`
|
|
77
80
|
font-weight: 500;
|
|
78
81
|
white-space: ${(props)=>props.whiteSpace ?? "normal"};
|
|
79
|
-
${(p)=>
|
|
80
|
-
${(0,
|
|
82
|
+
${(p)=>_styles__rspack_import_3.textVariantStyle[p.variant || "body"]}
|
|
83
|
+
${(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)({
|
|
81
84
|
textOverflow: true
|
|
82
85
|
}))}
|
|
83
86
|
${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
|