@ledgerhq/react-ui 0.7.2 → 0.7.5-monorepo.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{assets → lib/assets}/fonts/HMAlphaMono-Medium.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-Bold.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-ExtraBold.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-ExtraLight-BETA.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-Light-BETA.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-Medium.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-Regular.woff2 +0 -0
- package/{assets → lib/assets}/fonts/Inter-SemiBold.woff2 +0 -0
- package/{assets → lib/assets}/fonts.d.ts +0 -0
- package/{assets → lib/assets}/fonts.js +0 -0
- package/{assets → lib/assets}/icons.d.ts +0 -0
- package/{assets → lib/assets}/icons.js +0 -0
- package/{assets → lib/assets}/images/images.d.ts +0 -0
- package/{assets → lib/assets}/images/sampleSlide.png +0 -0
- package/{assets → lib/assets}/index.d.ts +0 -0
- package/{assets → lib/assets}/index.js +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveAltRegular.d.ts +1 -0
- package/{assets → lib/assets}/logos/LedgerLiveAltRegular.js +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveRegular.d.ts +1 -0
- package/{assets → lib/assets}/logos/LedgerLiveRegular.js +0 -0
- package/{assets → lib/assets}/logos/index.d.ts +0 -0
- package/{assets → lib/assets}/logos/index.js +0 -0
- package/lib/cjs/assets/fonts/HMAlphaMono-Medium.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-Bold.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-ExtraBold.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-ExtraLight-BETA.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-Light-BETA.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-Medium.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-Regular.woff2 +0 -0
- package/lib/cjs/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/lib/cjs/assets/fonts.js +27 -0
- package/lib/cjs/assets/fonts.js.map +7 -0
- package/lib/cjs/assets/icons.js +21 -0
- package/lib/cjs/assets/icons.js.map +7 -0
- package/lib/cjs/assets/images/images.d.js +1 -0
- package/lib/cjs/assets/images/images.d.js.map +7 -0
- package/lib/cjs/assets/images/images.d.ts +1 -0
- package/lib/cjs/assets/images/sampleSlide.png +0 -0
- package/lib/cjs/assets/index.js +30 -0
- package/lib/cjs/assets/index.js.map +7 -0
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js +45 -0
- package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +7 -0
- package/lib/cjs/assets/logos/LedgerLiveRegular.js +45 -0
- package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +7 -0
- package/lib/cjs/assets/logos/index.js +30 -0
- package/lib/cjs/assets/logos/index.js.map +7 -0
- package/lib/cjs/components/Chart/Chart.stories.js +138 -0
- package/lib/cjs/components/Chart/Chart.stories.js.map +7 -0
- package/lib/cjs/components/Chart/index.js +131 -0
- package/lib/cjs/components/Chart/index.js.map +7 -0
- package/lib/cjs/components/Chart/types.js +4 -0
- package/lib/cjs/components/Chart/types.js.map +7 -0
- package/lib/cjs/components/Chart/utils.js +29 -0
- package/lib/cjs/components/Chart/utils.js.map +7 -0
- package/lib/cjs/components/Table/Columns.js +83 -0
- package/lib/cjs/components/Table/Columns.js.map +7 -0
- package/lib/cjs/components/Table/Table.stories.js +491 -0
- package/lib/cjs/components/Table/Table.stories.js.map +7 -0
- package/lib/cjs/components/Table/index.js +110 -0
- package/lib/cjs/components/Table/index.js.map +7 -0
- package/lib/cjs/components/Table/stories.helper.js +253 -0
- package/lib/cjs/components/Table/stories.helper.js.map +7 -0
- package/lib/cjs/components/Tag/Tag.stories.js +114 -0
- package/lib/cjs/components/Tag/Tag.stories.js.map +7 -0
- package/lib/cjs/components/Tag/index.js +118 -0
- package/lib/cjs/components/Tag/index.js.map +7 -0
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +56 -0
- package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +7 -0
- package/lib/cjs/components/animations/GlitchText/index.js +64 -0
- package/lib/cjs/components/animations/GlitchText/index.js.map +7 -0
- package/lib/cjs/components/asorted/Divider/Divider.stories.js +56 -0
- package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +7 -0
- package/lib/cjs/components/asorted/Divider/index.js +41 -0
- package/lib/cjs/components/asorted/Divider/index.js.map +7 -0
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js +104 -0
- package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +7 -0
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +129 -0
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +7 -0
- package/lib/cjs/components/asorted/Icon/Icon.js +53 -0
- package/lib/cjs/components/asorted/Icon/Icon.js.map +7 -0
- package/lib/cjs/components/asorted/Icon/Icons.stories.js +145 -0
- package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +7 -0
- package/lib/cjs/components/asorted/Icon/index.js +32 -0
- package/lib/cjs/components/asorted/Icon/index.js.map +7 -0
- package/lib/cjs/components/asorted/Text/Text.stories.js +109 -0
- package/lib/cjs/components/asorted/Text/Text.stories.js.map +7 -0
- package/lib/cjs/components/asorted/Text/index.js +50 -0
- package/lib/cjs/components/asorted/Text/index.js.map +7 -0
- package/lib/cjs/components/asorted/Text/styles.js +149 -0
- package/lib/cjs/components/asorted/Text/styles.js.map +7 -0
- package/lib/cjs/components/asorted/index.js +34 -0
- package/lib/cjs/components/asorted/index.js.map +7 -0
- package/lib/cjs/components/cards/Carousel/Carousel.stories.js +103 -0
- package/lib/cjs/components/cards/Carousel/Carousel.stories.js.map +7 -0
- package/lib/cjs/components/cards/Carousel/Slide.js +59 -0
- package/lib/cjs/components/cards/Carousel/Slide.js.map +7 -0
- package/lib/cjs/components/cards/Carousel/index.js +207 -0
- package/lib/cjs/components/cards/Carousel/index.js.map +7 -0
- package/lib/cjs/components/cards/index.js +28 -0
- package/lib/cjs/components/cards/index.js.map +7 -0
- package/lib/cjs/components/cta/Button/Button.stories.js +151 -0
- package/lib/cjs/components/cta/Button/Button.stories.js.map +7 -0
- package/lib/cjs/components/cta/Button/index.js +262 -0
- package/lib/cjs/components/cta/Button/index.js.map +7 -0
- package/lib/cjs/components/cta/Link/Link.stories.js +89 -0
- package/lib/cjs/components/cta/Link/Link.stories.js.map +7 -0
- package/lib/cjs/components/cta/Link/getLinkStyle.js +33 -0
- package/lib/cjs/components/cta/Link/getLinkStyle.js.map +7 -0
- package/lib/cjs/components/cta/Link/index.js +100 -0
- package/lib/cjs/components/cta/Link/index.js.map +7 -0
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js +57 -0
- package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +7 -0
- package/lib/cjs/components/cta/Toggle/index.js +43 -0
- package/lib/cjs/components/cta/Toggle/index.js.map +7 -0
- package/lib/cjs/components/cta/getCtaStyle.js +22 -0
- package/lib/cjs/components/cta/getCtaStyle.js.map +7 -0
- package/lib/cjs/components/cta/index.js +32 -0
- package/lib/cjs/components/cta/index.js.map +7 -0
- package/lib/cjs/components/form/BaseInput/Input.stories.js +113 -0
- package/lib/cjs/components/form/BaseInput/Input.stories.js.map +7 -0
- package/lib/cjs/components/form/BaseInput/index.js +202 -0
- package/lib/cjs/components/form/BaseInput/index.js.map +7 -0
- package/lib/cjs/components/form/Checkbox/Checkbox.js +129 -0
- package/lib/cjs/components/form/Checkbox/Checkbox.js.map +7 -0
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +93 -0
- package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +7 -0
- package/lib/cjs/components/form/Checkbox/index.js +28 -0
- package/lib/cjs/components/form/Checkbox/index.js.map +7 -0
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +60 -0
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +7 -0
- package/lib/cjs/components/form/Dropdown/index.js +104 -0
- package/lib/cjs/components/form/Dropdown/index.js.map +7 -0
- package/lib/cjs/components/form/DropdownGeneric/DropdownGeneric.stories.js +135 -0
- package/lib/cjs/components/form/DropdownGeneric/DropdownGeneric.stories.js.map +7 -0
- package/lib/cjs/components/form/DropdownGeneric/index.js +161 -0
- package/lib/cjs/components/form/DropdownGeneric/index.js.map +7 -0
- package/lib/cjs/components/form/LegendInput/Input.stories.js +56 -0
- package/lib/cjs/components/form/LegendInput/Input.stories.js.map +7 -0
- package/lib/cjs/components/form/LegendInput/index.js +49 -0
- package/lib/cjs/components/form/LegendInput/index.js.map +7 -0
- package/lib/cjs/components/form/NumberInput/Input.stories.js +79 -0
- package/lib/cjs/components/form/NumberInput/Input.stories.js.map +7 -0
- package/lib/cjs/components/form/NumberInput/index.js +91 -0
- package/lib/cjs/components/form/NumberInput/index.js.map +7 -0
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js +52 -0
- package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +7 -0
- package/lib/cjs/components/form/QrCodeInput/index.js +70 -0
- package/lib/cjs/components/form/QrCodeInput/index.js.map +7 -0
- package/lib/cjs/components/form/QuantityInput/Input.stories.js +81 -0
- package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +7 -0
- package/lib/cjs/components/form/QuantityInput/index.js +83 -0
- package/lib/cjs/components/form/QuantityInput/index.js.map +7 -0
- package/lib/cjs/components/form/Radio/Radio.stories.js +154 -0
- package/lib/cjs/components/form/Radio/Radio.stories.js.map +7 -0
- package/lib/cjs/components/form/Radio/RadioElement.js +214 -0
- package/lib/cjs/components/form/Radio/RadioElement.js.map +7 -0
- package/lib/cjs/components/form/Radio/RadioElement.stories.js +76 -0
- package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +7 -0
- package/lib/cjs/components/form/Radio/RadioListElement.js +95 -0
- package/lib/cjs/components/form/Radio/RadioListElement.js.map +7 -0
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js +52 -0
- package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +7 -0
- package/lib/cjs/components/form/Radio/index.js +54 -0
- package/lib/cjs/components/form/Radio/index.js.map +7 -0
- package/lib/cjs/components/form/SearchInput/Input.stories.js +52 -0
- package/lib/cjs/components/form/SearchInput/Input.stories.js.map +7 -0
- package/lib/cjs/components/form/SearchInput/index.js +42 -0
- package/lib/cjs/components/form/SearchInput/index.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/Control.js +55 -0
- package/lib/cjs/components/form/SelectInput/Control.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +54 -0
- package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js +38 -0
- package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/MenuList.js +50 -0
- package/lib/cjs/components/form/SelectInput/MenuList.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/Option.js +97 -0
- package/lib/cjs/components/form/SelectInput/Option.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/Select.stories.js +529 -0
- package/lib/cjs/components/form/SelectInput/Select.stories.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/ValueContainer.js +48 -0
- package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/VirtualMenuList.js +75 -0
- package/lib/cjs/components/form/SelectInput/VirtualMenuList.js.map +7 -0
- package/lib/cjs/components/form/SelectInput/index.js +115 -0
- package/lib/cjs/components/form/SelectInput/index.js.map +7 -0
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +191 -0
- package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +7 -0
- package/lib/cjs/components/form/SplitInput/index.js +91 -0
- package/lib/cjs/components/form/SplitInput/index.js.map +7 -0
- package/lib/cjs/components/form/Switch/Switch.js +163 -0
- package/lib/cjs/components/form/Switch/Switch.js.map +7 -0
- package/lib/cjs/components/form/Switch/Switch.stories.js +91 -0
- package/lib/cjs/components/form/Switch/Switch.stories.js.map +7 -0
- package/lib/cjs/components/form/Switch/index.js +28 -0
- package/lib/cjs/components/form/Switch/index.js.map +7 -0
- package/lib/cjs/components/form/index.js +52 -0
- package/lib/cjs/components/form/index.js.map +7 -0
- package/lib/cjs/components/helpers.js +12 -0
- package/lib/cjs/components/helpers.js.map +7 -0
- package/lib/cjs/components/index.js +42 -0
- package/lib/cjs/components/index.js.map +7 -0
- package/lib/cjs/components/layout/Box/Box.stories.js +73 -0
- package/lib/cjs/components/layout/Box/Box.stories.js.map +7 -0
- package/lib/cjs/components/layout/Box/index.js +30 -0
- package/lib/cjs/components/layout/Box/index.js.map +7 -0
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js +111 -0
- package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +7 -0
- package/lib/cjs/components/layout/Drawer/index.js +185 -0
- package/lib/cjs/components/layout/Drawer/index.js.map +7 -0
- package/lib/cjs/components/layout/Flex/Flex.stories.js +328 -0
- package/lib/cjs/components/layout/Flex/Flex.stories.js.map +7 -0
- package/lib/cjs/components/layout/Flex/index.js +30 -0
- package/lib/cjs/components/layout/Flex/index.js.map +7 -0
- package/lib/cjs/components/layout/Grid/Grid.stories.js +254 -0
- package/lib/cjs/components/layout/Grid/Grid.stories.js.map +7 -0
- package/lib/cjs/components/layout/Grid/index.js +44 -0
- package/lib/cjs/components/layout/Grid/index.js.map +7 -0
- package/lib/cjs/components/layout/Popin/Popin.stories.js +205 -0
- package/lib/cjs/components/layout/Popin/Popin.stories.js.map +7 -0
- package/lib/cjs/components/layout/Popin/index.js +129 -0
- package/lib/cjs/components/layout/Popin/index.js.map +7 -0
- package/lib/cjs/components/layout/Side/Provider.js +68 -0
- package/lib/cjs/components/layout/Side/Provider.js.map +7 -0
- package/lib/cjs/components/layout/Side/Side.stories.js +119 -0
- package/lib/cjs/components/layout/Side/Side.stories.js.map +7 -0
- package/lib/cjs/components/layout/Side/index.js +85 -0
- package/lib/cjs/components/layout/Side/index.js.map +7 -0
- package/lib/cjs/components/layout/index.js +38 -0
- package/lib/cjs/components/layout/index.js.map +7 -0
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +86 -0
- package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +7 -0
- package/lib/cjs/components/loaders/InfiniteLoader/index.js +111 -0
- package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +7 -0
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +90 -0
- package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +7 -0
- package/lib/cjs/components/loaders/ProgressLoader/index.js +107 -0
- package/lib/cjs/components/loaders/ProgressLoader/index.js.map +7 -0
- package/lib/cjs/components/loaders/index.js +30 -0
- package/lib/cjs/components/loaders/index.js.map +7 -0
- package/lib/cjs/components/message/Alert/Alert.stories.js +83 -0
- package/lib/cjs/components/message/Alert/Alert.stories.js.map +7 -0
- package/lib/cjs/components/message/Alert/index.js +103 -0
- package/lib/cjs/components/message/Alert/index.js.map +7 -0
- package/lib/cjs/components/message/Log/Brackets.js +75 -0
- package/lib/cjs/components/message/Log/Brackets.js.map +7 -0
- package/lib/cjs/components/message/Log/Log.stories.js +45 -0
- package/lib/cjs/components/message/Log/Log.stories.js.map +7 -0
- package/lib/cjs/components/message/Log/index.js +64 -0
- package/lib/cjs/components/message/Log/index.js.map +7 -0
- package/lib/cjs/components/message/Notification/Badge.js +68 -0
- package/lib/cjs/components/message/Notification/Badge.js.map +7 -0
- package/lib/cjs/components/message/Notification/Badge.stories.js +68 -0
- package/lib/cjs/components/message/Notification/Badge.stories.js.map +7 -0
- package/lib/cjs/components/message/Notification/Notification.stories.js +113 -0
- package/lib/cjs/components/message/Notification/Notification.stories.js.map +7 -0
- package/lib/cjs/components/message/Notification/index.js +80 -0
- package/lib/cjs/components/message/Notification/index.js.map +7 -0
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +87 -0
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +7 -0
- package/lib/cjs/components/message/StatusNotification/index.js +54 -0
- package/lib/cjs/components/message/StatusNotification/index.js.map +7 -0
- package/lib/cjs/components/message/Tip/Tip.stories.js +52 -0
- package/lib/cjs/components/message/Tip/Tip.stories.js.map +7 -0
- package/lib/cjs/components/message/Tip/index.js +83 -0
- package/lib/cjs/components/message/Tip/index.js.map +7 -0
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +112 -0
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +7 -0
- package/lib/cjs/components/message/Tooltip/index.js +65 -0
- package/lib/cjs/components/message/Tooltip/index.js.map +7 -0
- package/lib/cjs/components/message/Tooltip/styles.js +117 -0
- package/lib/cjs/components/message/Tooltip/styles.js.map +7 -0
- package/lib/cjs/components/message/index.js +40 -0
- package/lib/cjs/components/message/index.js.map +7 -0
- package/lib/cjs/components/navigation/Aside/Aside.stories.js +88 -0
- package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +7 -0
- package/lib/cjs/components/navigation/Aside/index.js +48 -0
- package/lib/cjs/components/navigation/Aside/index.js.map +7 -0
- package/lib/cjs/components/navigation/Aside/stories.helper.js +14 -0
- package/lib/cjs/components/navigation/Aside/stories.helper.js.map +7 -0
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +140 -0
- package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +7 -0
- package/lib/cjs/components/navigation/Breadcrumb/index.js +95 -0
- package/lib/cjs/components/navigation/Breadcrumb/index.js.map +7 -0
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +381 -0
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +7 -0
- package/lib/cjs/components/navigation/FlowStepper/index.js +109 -0
- package/lib/cjs/components/navigation/FlowStepper/index.js.map +7 -0
- package/lib/cjs/components/navigation/Header/Header.stories.js +71 -0
- package/lib/cjs/components/navigation/Header/Header.stories.js.map +7 -0
- package/lib/cjs/components/navigation/Header/index.js +37 -0
- package/lib/cjs/components/navigation/Header/index.js.map +7 -0
- package/lib/cjs/components/navigation/index.js +37 -0
- package/lib/cjs/components/navigation/index.js.map +7 -0
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +91 -0
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +7 -0
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +79 -0
- package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +7 -0
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js +28 -0
- package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +7 -0
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +45 -0
- package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +7 -0
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +60 -0
- package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +7 -0
- package/lib/cjs/components/navigation/progress/Stepper/index.js +189 -0
- package/lib/cjs/components/navigation/progress/Stepper/index.js.map +7 -0
- package/lib/cjs/components/navigation/progress/index.js +30 -0
- package/lib/cjs/components/navigation/progress/index.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Item/Item.js +144 -0
- package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +111 -0
- package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Item/index.js +28 -0
- package/lib/cjs/components/navigation/sideBar/Item/index.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +55 -0
- package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Logo/index.js +28 -0
- package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +96 -0
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +118 -0
- package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js +28 -0
- package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +62 -0
- package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js +28 -0
- package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +7 -0
- package/lib/cjs/components/navigation/sideBar/index.js +29 -0
- package/lib/cjs/components/navigation/sideBar/index.js.map +7 -0
- package/lib/cjs/components/styled.js +44 -0
- package/lib/cjs/components/styled.js.map +7 -0
- package/lib/cjs/components/styled.stories.js +71 -0
- package/lib/cjs/components/styled.stories.js.map +7 -0
- package/lib/cjs/components/tabs/Bar/Bar.stories.js +72 -0
- package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +7 -0
- package/lib/cjs/components/tabs/Bar/index.js +58 -0
- package/lib/cjs/components/tabs/Bar/index.js.map +7 -0
- package/lib/cjs/components/tabs/Chip/Chip.stories.js +72 -0
- package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +7 -0
- package/lib/cjs/components/tabs/Chip/index.js +56 -0
- package/lib/cjs/components/tabs/Chip/index.js.map +7 -0
- package/lib/cjs/components/tabs/Pill/Pill.stories.js +70 -0
- package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +7 -0
- package/lib/cjs/components/tabs/Pill/index.js +85 -0
- package/lib/cjs/components/tabs/Pill/index.js.map +7 -0
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +121 -0
- package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +7 -0
- package/lib/cjs/components/tabs/Tabs/index.js +150 -0
- package/lib/cjs/components/tabs/Tabs/index.js.map +7 -0
- package/lib/cjs/components/tabs/index.js +34 -0
- package/lib/cjs/components/tabs/index.js.map +7 -0
- package/lib/cjs/components/transitions/TransitionInOut.js +64 -0
- package/lib/cjs/components/transitions/TransitionInOut.js.map +7 -0
- package/lib/cjs/components/transitions/TransitionScale.js +62 -0
- package/lib/cjs/components/transitions/TransitionScale.js.map +7 -0
- package/lib/cjs/components/transitions/TransitionSlide.js +91 -0
- package/lib/cjs/components/transitions/TransitionSlide.js.map +7 -0
- package/lib/cjs/components/transitions/index.js +32 -0
- package/lib/cjs/components/transitions/index.js.map +7 -0
- package/lib/cjs/index.js +31 -0
- package/lib/cjs/index.js.map +7 -0
- package/lib/cjs/styles/InvertTheme.js +46 -0
- package/lib/cjs/styles/InvertTheme.js.map +7 -0
- package/lib/cjs/styles/Spacing.stories.js +75 -0
- package/lib/cjs/styles/Spacing.stories.js.map +7 -0
- package/lib/cjs/styles/StyleProvider.js +53 -0
- package/lib/cjs/styles/StyleProvider.js.map +7 -0
- package/lib/cjs/styles/global.js +65 -0
- package/lib/cjs/styles/global.js.map +7 -0
- package/lib/cjs/styles/helpers.js +47 -0
- package/lib/cjs/styles/helpers.js.map +7 -0
- package/lib/cjs/styles/index.js +35 -0
- package/lib/cjs/styles/index.js.map +7 -0
- package/lib/cjs/styles/palettes/colors.stories.js +81 -0
- package/lib/cjs/styles/palettes/colors.stories.js.map +7 -0
- package/lib/cjs/styles/styled/fontFamily.js +35 -0
- package/lib/cjs/styles/styled/fontFamily.js.map +7 -0
- package/lib/cjs/styles/system/gaps.js +33 -0
- package/lib/cjs/styles/system/gaps.js.map +7 -0
- package/lib/cjs/styles/theme.js +263 -0
- package/lib/cjs/styles/theme.js.map +7 -0
- package/{components → lib/components}/Chart/index.d.ts +1 -0
- package/{components → lib/components}/Chart/index.js +0 -1
- package/{components → lib/components}/Chart/types.d.ts +0 -0
- package/{components → lib/components}/Chart/types.js +0 -0
- package/{components → lib/components}/Chart/utils.d.ts +0 -0
- package/{components → lib/components}/Chart/utils.js +0 -0
- package/{components → lib/components}/Table/Columns.d.ts +0 -0
- package/{components → lib/components}/Table/Columns.js +0 -0
- package/{components → lib/components}/Table/index.d.ts +6 -6
- package/{components → lib/components}/Table/index.js +1 -1
- package/{components → lib/components}/Table/stories.helper.d.ts +0 -0
- package/{components → lib/components}/Table/stories.helper.js +0 -0
- package/{components → lib/components}/Tag/index.d.ts +0 -0
- package/{components → lib/components}/Tag/index.js +0 -0
- package/{components → lib/components}/animations/GlitchText/index.d.ts +1 -0
- package/{components → lib/components}/animations/GlitchText/index.js +3 -1
- package/{components → lib/components}/asorted/Divider/index.d.ts +1 -0
- package/{components → lib/components}/asorted/Divider/index.js +0 -0
- package/{components → lib/components}/asorted/Icon/BoxedIcon.d.ts +0 -0
- package/{components → lib/components}/asorted/Icon/BoxedIcon.js +0 -0
- package/{components → lib/components}/asorted/Icon/Icon.d.ts +1 -0
- package/{components → lib/components}/asorted/Icon/Icon.js +0 -0
- package/{components → lib/components}/asorted/Icon/index.d.ts +0 -0
- package/{components → lib/components}/asorted/Icon/index.js +0 -0
- package/{components → lib/components}/asorted/Text/index.d.ts +0 -0
- package/{components → lib/components}/asorted/Text/index.js +0 -0
- package/{components → lib/components}/asorted/Text/styles.d.ts +0 -0
- package/{components → lib/components}/asorted/Text/styles.js +16 -16
- package/{components → lib/components}/asorted/index.d.ts +0 -0
- package/{components → lib/components}/asorted/index.js +0 -0
- package/{components → lib/components}/cards/Carousel/Slide.d.ts +0 -0
- package/{components → lib/components}/cards/Carousel/Slide.js +0 -0
- package/{components → lib/components}/cards/Carousel/index.d.ts +0 -0
- package/{components → lib/components}/cards/Carousel/index.js +0 -0
- package/{components → lib/components}/cards/index.d.ts +0 -0
- package/{components → lib/components}/cards/index.js +0 -0
- package/{components → lib/components}/cta/Button/index.d.ts +1 -1
- package/{components → lib/components}/cta/Button/index.js +2 -2
- package/{components → lib/components}/cta/Link/getLinkStyle.d.ts +0 -0
- package/{components → lib/components}/cta/Link/getLinkStyle.js +0 -0
- package/{components → lib/components}/cta/Link/index.d.ts +2 -2
- package/{components → lib/components}/cta/Link/index.js +0 -0
- package/{components → lib/components}/cta/Toggle/index.d.ts +1 -0
- package/{components → lib/components}/cta/Toggle/index.js +0 -0
- package/{components → lib/components}/cta/getCtaStyle.d.ts +0 -0
- package/{components → lib/components}/cta/getCtaStyle.js +0 -0
- package/{components → lib/components}/cta/index.d.ts +0 -0
- package/{components → lib/components}/cta/index.js +0 -0
- package/{components → lib/components}/form/BaseInput/index.d.ts +10 -7
- package/{components → lib/components}/form/BaseInput/index.js +12 -1
- package/{components → lib/components}/form/Checkbox/Checkbox.d.ts +0 -0
- package/{components → lib/components}/form/Checkbox/Checkbox.js +0 -0
- package/{components → lib/components}/form/Checkbox/index.d.ts +0 -0
- package/{components → lib/components}/form/Checkbox/index.js +0 -0
- package/{components → lib/components}/form/Dropdown/index.d.ts +1 -0
- package/{components → lib/components}/form/Dropdown/index.js +0 -0
- package/{components → lib/components}/form/DropdownGeneric/index.d.ts +0 -0
- package/{components → lib/components}/form/DropdownGeneric/index.js +0 -0
- package/{components → lib/components}/form/LegendInput/index.d.ts +4 -3
- package/{components → lib/components}/form/LegendInput/index.js +0 -0
- package/{components → lib/components}/form/NumberInput/index.d.ts +4 -3
- package/{components → lib/components}/form/NumberInput/index.js +0 -0
- package/{components → lib/components}/form/QrCodeInput/index.d.ts +4 -3
- package/{components → lib/components}/form/QrCodeInput/index.js +0 -0
- package/{components → lib/components}/form/QuantityInput/index.d.ts +4 -3
- package/{components → lib/components}/form/QuantityInput/index.js +0 -0
- package/{components → lib/components}/form/Radio/RadioElement.d.ts +0 -0
- package/{components → lib/components}/form/Radio/RadioElement.js +0 -0
- package/{components → lib/components}/form/Radio/RadioListElement.d.ts +0 -0
- package/{components → lib/components}/form/Radio/RadioListElement.js +0 -0
- package/{components → lib/components}/form/Radio/index.d.ts +0 -0
- package/{components → lib/components}/form/Radio/index.js +0 -0
- package/{components → lib/components}/form/SearchInput/index.d.ts +4 -3
- package/{components → lib/components}/form/SearchInput/index.js +0 -0
- package/{components → lib/components}/form/SelectInput/Control.d.ts +1 -0
- package/{components → lib/components}/form/SelectInput/Control.js +0 -0
- package/{components → lib/components}/form/SelectInput/DropdownIndicator.d.ts +1 -0
- package/{components → lib/components}/form/SelectInput/DropdownIndicator.js +0 -0
- package/{components → lib/components}/form/SelectInput/IndicatorsContainer.d.ts +1 -0
- package/{components → lib/components}/form/SelectInput/IndicatorsContainer.js +0 -0
- package/{components → lib/components}/form/SelectInput/MenuList.d.ts +1 -0
- package/{components → lib/components}/form/SelectInput/MenuList.js +0 -0
- package/{components → lib/components}/form/SelectInput/Option.d.ts +0 -0
- package/{components → lib/components}/form/SelectInput/Option.js +0 -0
- package/{components → lib/components}/form/SelectInput/ValueContainer.d.ts +0 -0
- package/{components → lib/components}/form/SelectInput/ValueContainer.js +0 -0
- package/{components → lib/components}/form/SelectInput/VirtualMenuList.d.ts +0 -0
- package/{components → lib/components}/form/SelectInput/VirtualMenuList.js +0 -0
- package/{components → lib/components}/form/SelectInput/index.d.ts +0 -0
- package/{components → lib/components}/form/SelectInput/index.js +0 -0
- package/{components → lib/components}/form/SplitInput/index.d.ts +0 -0
- package/{components → lib/components}/form/SplitInput/index.js +0 -0
- package/{components → lib/components}/form/Switch/Switch.d.ts +0 -0
- package/{components → lib/components}/form/Switch/Switch.js +0 -0
- package/{components → lib/components}/form/Switch/index.d.ts +0 -0
- package/{components → lib/components}/form/Switch/index.js +0 -0
- package/{components → lib/components}/form/index.d.ts +0 -0
- package/{components → lib/components}/form/index.js +0 -0
- package/{components → lib/components}/helpers.d.ts +0 -0
- package/{components → lib/components}/helpers.js +0 -0
- package/{components → lib/components}/index.d.ts +0 -0
- package/{components → lib/components}/index.js +0 -0
- package/{components → lib/components}/layout/Box/index.d.ts +1 -1
- package/{components → lib/components}/layout/Box/index.js +0 -0
- package/{components → lib/components}/layout/Drawer/index.d.ts +0 -0
- package/{components → lib/components}/layout/Drawer/index.js +0 -0
- package/lib/components/layout/Flex/index.d.ts +8 -0
- package/{components → lib/components}/layout/Flex/index.js +0 -0
- package/{components → lib/components}/layout/Grid/index.d.ts +0 -0
- package/{components → lib/components}/layout/Grid/index.js +0 -0
- package/{components → lib/components}/layout/Popin/index.d.ts +4 -4
- package/{components → lib/components}/layout/Popin/index.js +0 -0
- package/{components → lib/components}/layout/Side/Provider.d.ts +0 -0
- package/{components → lib/components}/layout/Side/Provider.js +0 -0
- package/{components → lib/components}/layout/Side/index.d.ts +1 -0
- package/{components → lib/components}/layout/Side/index.js +2 -0
- package/{components → lib/components}/layout/index.d.ts +0 -0
- package/{components → lib/components}/layout/index.js +0 -0
- package/{components → lib/components}/loaders/InfiniteLoader/index.d.ts +1 -1
- package/{components → lib/components}/loaders/InfiniteLoader/index.js +0 -0
- package/{components → lib/components}/loaders/ProgressLoader/index.d.ts +1 -0
- package/{components → lib/components}/loaders/ProgressLoader/index.js +0 -0
- package/{components → lib/components}/loaders/index.d.ts +0 -0
- package/{components → lib/components}/loaders/index.js +0 -0
- package/{components → lib/components}/message/Alert/index.d.ts +1 -0
- package/{components → lib/components}/message/Alert/index.js +0 -0
- package/{components → lib/components}/message/Log/Brackets.d.ts +0 -0
- package/{components → lib/components}/message/Log/Brackets.js +0 -0
- package/{components → lib/components}/message/Log/index.d.ts +0 -0
- package/{components → lib/components}/message/Log/index.js +0 -0
- package/{components → lib/components}/message/Notification/Badge.d.ts +0 -0
- package/{components → lib/components}/message/Notification/Badge.js +0 -0
- package/{components → lib/components}/message/Notification/index.d.ts +0 -0
- package/{components → lib/components}/message/Notification/index.js +0 -0
- package/{components → lib/components}/message/StatusNotification/index.d.ts +0 -0
- package/{components → lib/components}/message/StatusNotification/index.js +0 -0
- package/{components → lib/components}/message/Tip/index.d.ts +1 -0
- package/{components → lib/components}/message/Tip/index.js +0 -0
- package/{components → lib/components}/message/Tooltip/index.d.ts +1 -0
- package/{components → lib/components}/message/Tooltip/index.js +0 -0
- package/{components → lib/components}/message/Tooltip/styles.d.ts +0 -0
- package/{components → lib/components}/message/Tooltip/styles.js +0 -0
- package/{components → lib/components}/message/index.d.ts +0 -0
- package/{components → lib/components}/message/index.js +0 -0
- package/lib/components/navigation/Aside/index.d.ts +15 -0
- package/{components → lib/components}/navigation/Aside/index.js +0 -0
- package/{components → lib/components}/navigation/Aside/stories.helper.d.ts +0 -0
- package/{components → lib/components}/navigation/Aside/stories.helper.js +0 -0
- package/{components → lib/components}/navigation/Breadcrumb/index.d.ts +0 -0
- package/{components → lib/components}/navigation/Breadcrumb/index.js +0 -0
- package/lib/components/navigation/FlowStepper/index.d.ts +136 -0
- package/lib/components/navigation/FlowStepper/index.js +84 -0
- package/{components → lib/components}/navigation/Header/index.d.ts +0 -0
- package/{components → lib/components}/navigation/Header/index.js +0 -0
- package/{components → lib/components}/navigation/index.d.ts +0 -0
- package/{components → lib/components}/navigation/index.js +0 -0
- package/{components → lib/components}/navigation/progress/ProgressBar/Onboarding.d.ts +1 -0
- package/{components → lib/components}/navigation/progress/ProgressBar/Onboarding.js +0 -0
- package/{components → lib/components}/navigation/progress/ProgressBar/index.d.ts +0 -0
- package/{components → lib/components}/navigation/progress/ProgressBar/index.js +0 -0
- package/{components → lib/components}/navigation/progress/Stepper/index.d.ts +1 -1
- package/{components → lib/components}/navigation/progress/Stepper/index.js +0 -0
- package/{components → lib/components}/navigation/progress/index.d.ts +0 -0
- package/{components → lib/components}/navigation/progress/index.js +0 -0
- package/{components → lib/components}/navigation/sideBar/Item/Item.d.ts +1 -0
- package/{components → lib/components}/navigation/sideBar/Item/Item.js +0 -0
- package/{components → lib/components}/navigation/sideBar/Item/index.d.ts +0 -0
- package/{components → lib/components}/navigation/sideBar/Item/index.js +0 -0
- package/{components → lib/components}/navigation/sideBar/Logo/Logo.d.ts +1 -0
- package/{components → lib/components}/navigation/sideBar/Logo/Logo.js +0 -0
- package/{components → lib/components}/navigation/sideBar/Logo/index.d.ts +0 -0
- package/{components → lib/components}/navigation/sideBar/Logo/index.js +0 -0
- package/{components → lib/components}/navigation/sideBar/SideBar/SideBar.d.ts +1 -0
- package/{components → lib/components}/navigation/sideBar/SideBar/SideBar.js +0 -0
- package/{components → lib/components}/navigation/sideBar/SideBar/index.d.ts +0 -0
- package/{components → lib/components}/navigation/sideBar/SideBar/index.js +0 -0
- package/{components → lib/components}/navigation/sideBar/Toggle/Toggle.d.ts +1 -0
- package/{components → lib/components}/navigation/sideBar/Toggle/Toggle.js +0 -0
- package/{components → lib/components}/navigation/sideBar/Toggle/index.d.ts +0 -0
- package/{components → lib/components}/navigation/sideBar/Toggle/index.js +0 -0
- package/{components → lib/components}/navigation/sideBar/index.d.ts +0 -0
- package/{components → lib/components}/navigation/sideBar/index.js +0 -0
- package/{components → lib/components}/styled.d.ts +0 -0
- package/{components → lib/components}/styled.js +4 -1
- package/{components → lib/components}/tabs/Bar/index.d.ts +0 -0
- package/{components → lib/components}/tabs/Bar/index.js +0 -0
- package/{components → lib/components}/tabs/Chip/index.d.ts +0 -0
- package/{components → lib/components}/tabs/Chip/index.js +0 -0
- package/{components → lib/components}/tabs/Pill/index.d.ts +0 -0
- package/{components → lib/components}/tabs/Pill/index.js +0 -0
- package/{components → lib/components}/tabs/Tabs/index.d.ts +0 -0
- package/{components → lib/components}/tabs/Tabs/index.js +0 -0
- package/{components → lib/components}/tabs/index.d.ts +0 -0
- package/{components → lib/components}/tabs/index.js +0 -0
- package/{components → lib/components}/transitions/TransitionInOut.d.ts +0 -0
- package/{components → lib/components}/transitions/TransitionInOut.js +0 -0
- package/{components → lib/components}/transitions/TransitionScale.d.ts +0 -0
- package/{components → lib/components}/transitions/TransitionScale.js +0 -0
- package/{components → lib/components}/transitions/TransitionSlide.d.ts +0 -0
- package/{components → lib/components}/transitions/TransitionSlide.js +0 -0
- package/{components → lib/components}/transitions/index.d.ts +0 -0
- package/{components → lib/components}/transitions/index.js +0 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +0 -0
- package/{styles → lib/styles}/InvertTheme.d.ts +0 -0
- package/{styles → lib/styles}/InvertTheme.js +0 -0
- package/{styles → lib/styles}/StyleProvider.d.ts +0 -0
- package/{styles → lib/styles}/StyleProvider.js +0 -0
- package/{styles → lib/styles}/global.d.ts +0 -0
- package/{styles → lib/styles}/global.js +0 -0
- package/{styles → lib/styles}/helpers.d.ts +0 -0
- package/{styles → lib/styles}/helpers.js +0 -0
- package/{styles → lib/styles}/index.d.ts +0 -0
- package/{styles → lib/styles}/index.js +0 -0
- package/{styles → lib/styles}/styled/fontFamily.d.ts +0 -0
- package/{styles → lib/styles}/styled/fontFamily.js +0 -0
- package/{styles → lib/styles}/system/gaps.d.ts +0 -0
- package/{styles → lib/styles}/system/gaps.js +0 -0
- package/{styles → lib/styles}/theme.d.ts +0 -0
- package/{styles → lib/styles}/theme.js +0 -0
- package/package.json +63 -15
- package/components/layout/Flex/index.d.ts +0 -8
- package/components/navigation/Aside/index.d.ts +0 -15
- package/components/navigation/FlowStepper/index.d.ts +0 -77
- package/components/navigation/FlowStepper/index.js +0 -35
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
accounts: () => accounts,
|
|
26
|
+
balance: () => balance
|
|
27
|
+
});
|
|
28
|
+
var import_react = __toModule(require("react"));
|
|
29
|
+
var import_styled_components = __toModule(require("styled-components"));
|
|
30
|
+
var import_Text = __toModule(require("../asorted/Text"));
|
|
31
|
+
var import_index = __toModule(require("./index"));
|
|
32
|
+
const { Columns } = import_index.default;
|
|
33
|
+
function Header({ children }) {
|
|
34
|
+
const theme = (0, import_styled_components.useTheme)();
|
|
35
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Text.default, {
|
|
36
|
+
fontWeight: "semiBold",
|
|
37
|
+
variant: "paragraph",
|
|
38
|
+
style: { borderBottom: `1px solid ${theme.colors.neutral.c40}` },
|
|
39
|
+
mx: -4,
|
|
40
|
+
px: 4,
|
|
41
|
+
pb: 8
|
|
42
|
+
}, children);
|
|
43
|
+
}
|
|
44
|
+
const balance = {
|
|
45
|
+
data: [
|
|
46
|
+
{
|
|
47
|
+
currency: "Ethereum Classic",
|
|
48
|
+
amount: 128.26484,
|
|
49
|
+
counterValue: 53.29,
|
|
50
|
+
address: "0x32Be343B94f860124dC4fEe278FDCBD38C102D88",
|
|
51
|
+
evolution: 0.1,
|
|
52
|
+
starred: false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
currency: "Ethereum",
|
|
56
|
+
amount: 1.23,
|
|
57
|
+
counterValue: 3029.29,
|
|
58
|
+
address: "0xa910f92acdaf488fa6ef02174fb86208ad7722ba",
|
|
59
|
+
evolution: 3,
|
|
60
|
+
starred: true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
currency: "Bitcoin",
|
|
64
|
+
amount: 3e-3,
|
|
65
|
+
counterValue: 1920.23,
|
|
66
|
+
address: "1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX",
|
|
67
|
+
evolution: -2.1,
|
|
68
|
+
starred: true
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
currency: "Dai",
|
|
72
|
+
amount: 128,
|
|
73
|
+
counterValue: 128,
|
|
74
|
+
address: "0x380389E04f7671AB849baF10bd89C75C3bf99cbB",
|
|
75
|
+
evolution: 0.2,
|
|
76
|
+
starred: false
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
columns: [
|
|
80
|
+
Columns.text({
|
|
81
|
+
header: () => /* @__PURE__ */ import_react.default.createElement(Header, null, "Currency"),
|
|
82
|
+
title: (elt) => elt.currency
|
|
83
|
+
}),
|
|
84
|
+
Columns.text({
|
|
85
|
+
header: () => /* @__PURE__ */ import_react.default.createElement(Header, null, "Amount"),
|
|
86
|
+
title: (elt) => elt.amount,
|
|
87
|
+
subtitle: (elt) => elt.counterValue
|
|
88
|
+
}),
|
|
89
|
+
Columns.text({
|
|
90
|
+
header: () => /* @__PURE__ */ import_react.default.createElement(Header, null, "Address"),
|
|
91
|
+
subtitle: (elt) => elt.address
|
|
92
|
+
}),
|
|
93
|
+
Columns.text({
|
|
94
|
+
header: () => /* @__PURE__ */ import_react.default.createElement(Header, null, "Evolution"),
|
|
95
|
+
subtitle: (elt) => (elt.evolution > 0 ? "+" : "") + elt.evolution,
|
|
96
|
+
subtitleProps: (elt) => ({
|
|
97
|
+
color: elt.evolution < 0 ? "error.c100" : "success.c100"
|
|
98
|
+
})
|
|
99
|
+
}),
|
|
100
|
+
Columns.icon({
|
|
101
|
+
header: () => /* @__PURE__ */ import_react.default.createElement(Header, null, "\xA0"),
|
|
102
|
+
props: (elt) => ({
|
|
103
|
+
name: "StarSolid",
|
|
104
|
+
color: elt.starred ? "neutral.c100" : "neutral.c70"
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
};
|
|
109
|
+
const accounts = {
|
|
110
|
+
data: [
|
|
111
|
+
{
|
|
112
|
+
name: "Bitcoin 1",
|
|
113
|
+
currency: { name: "Bitcoin", abbrev: "BTC" },
|
|
114
|
+
synchronized: false,
|
|
115
|
+
amount: 0.304,
|
|
116
|
+
evolution: 1.3,
|
|
117
|
+
starred: false
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "Bitcoin 2",
|
|
121
|
+
currency: { name: "Bitcoin", abbrev: "BTC" },
|
|
122
|
+
synchronized: true,
|
|
123
|
+
amount: 0.409,
|
|
124
|
+
evolution: 1.1,
|
|
125
|
+
starred: false
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "Bitcoin 3",
|
|
129
|
+
currency: { name: "Bitcoin", abbrev: "BTC" },
|
|
130
|
+
synchronized: true,
|
|
131
|
+
amount: 2.304,
|
|
132
|
+
evolution: -1.3,
|
|
133
|
+
starred: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "Ethereum 1",
|
|
137
|
+
currency: { name: "Ethereum", abbrev: "ETH" },
|
|
138
|
+
synchronized: true,
|
|
139
|
+
amount: 1.23,
|
|
140
|
+
evolution: 4,
|
|
141
|
+
starred: true,
|
|
142
|
+
subAccounts: [
|
|
143
|
+
{
|
|
144
|
+
name: "Tether",
|
|
145
|
+
currency: { name: "Tether", abbrev: "USDT" },
|
|
146
|
+
synchronized: false,
|
|
147
|
+
amount: 0.304,
|
|
148
|
+
evolution: 1.3,
|
|
149
|
+
starred: false
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "Tether 2",
|
|
153
|
+
currency: { name: "Tether", abbrev: "USDT" },
|
|
154
|
+
synchronized: false,
|
|
155
|
+
amount: 0.904,
|
|
156
|
+
evolution: 8.3,
|
|
157
|
+
starred: true
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "Ethereum 2",
|
|
163
|
+
currency: { name: "Ethereum", abbrev: "ETH" },
|
|
164
|
+
synchronized: false,
|
|
165
|
+
amount: 0.23,
|
|
166
|
+
evolution: -3,
|
|
167
|
+
starred: false
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
columns: [
|
|
171
|
+
{
|
|
172
|
+
layout: "64px",
|
|
173
|
+
render: ({ elt }) => elt.currency.abbrev === "BTC" ? svgBtc : elt.currency.abbrev === "ETH" ? svgEth : svgUsdt
|
|
174
|
+
},
|
|
175
|
+
Columns.text({
|
|
176
|
+
layout: "2fr",
|
|
177
|
+
title: (elt) => elt.name,
|
|
178
|
+
subtitle: (elt) => elt.currency.name
|
|
179
|
+
}),
|
|
180
|
+
Columns.icon({
|
|
181
|
+
props: (elt) => ({
|
|
182
|
+
name: elt.synchronized ? "CircledCheck" : "Clock",
|
|
183
|
+
color: elt.synchronized ? "success.c100" : "neutral.c80"
|
|
184
|
+
})
|
|
185
|
+
}),
|
|
186
|
+
Columns.text({
|
|
187
|
+
layout: "1fr",
|
|
188
|
+
subtitle: (elt) => elt.currency.abbrev
|
|
189
|
+
}),
|
|
190
|
+
Columns.text({
|
|
191
|
+
layout: "1fr",
|
|
192
|
+
title: (elt) => elt.amount
|
|
193
|
+
}),
|
|
194
|
+
Columns.text({
|
|
195
|
+
layout: "1fr",
|
|
196
|
+
subtitle: (elt) => (elt.evolution > 0 ? "+" : "") + elt.evolution,
|
|
197
|
+
subtitleProps: (elt) => ({
|
|
198
|
+
color: elt.evolution < 0 ? "error.c100" : "success.c100"
|
|
199
|
+
})
|
|
200
|
+
}),
|
|
201
|
+
Columns.icon({
|
|
202
|
+
props: (elt) => ({
|
|
203
|
+
name: "StarSolid",
|
|
204
|
+
color: elt.starred ? "neutral.c100" : "neutral.c70"
|
|
205
|
+
})
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
};
|
|
209
|
+
const svgBtc = /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
210
|
+
width: "32",
|
|
211
|
+
height: "32",
|
|
212
|
+
viewBox: "0 0 32 32",
|
|
213
|
+
fill: "none",
|
|
214
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
215
|
+
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
216
|
+
d: "M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",
|
|
217
|
+
fill: "#F7931A"
|
|
218
|
+
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
219
|
+
d: "M21.8917 14.3672C22.154 12.616 20.8198 11.6745 18.9968 11.0462L19.5883 8.67348L18.1446 8.31423L17.5682 10.6243C17.1889 10.529 16.7995 10.4405 16.4111 10.3519L16.9917 8.02683L15.548 7.66675L14.9565 10.0386C14.6424 9.96678 14.3333 9.8966 14.0342 9.82141L14.0358 9.81389L12.0441 9.31679L11.6598 10.8591C11.6598 10.8591 12.7317 11.1047 12.7091 11.1197C13.2939 11.2659 13.3992 11.6527 13.3817 11.9602L12.7083 14.6629C12.7484 14.6729 12.8002 14.688 12.8587 14.7105L12.7058 14.6729L11.7617 18.4593C11.6899 18.6364 11.5086 18.9029 11.0992 18.8018C11.1142 18.8227 10.0498 18.5403 10.0498 18.5403L9.33301 20.1929L11.2128 20.6616C11.562 20.7493 11.9046 20.8412 12.2413 20.9272L11.6439 23.3267L13.0867 23.6859L13.6783 21.3132C14.0726 21.4193 14.4552 21.5179 14.8295 21.6115L14.2397 23.9742L15.6834 24.3334L16.2807 21.939C18.7437 22.4052 20.5951 22.2172 21.3745 19.9898C22.0028 18.1969 21.3436 17.1618 20.0478 16.4876C20.9919 16.2704 21.7021 15.6496 21.8917 14.3672ZM18.5916 18.994C18.1463 20.7877 15.1261 19.8177 14.147 19.5746L14.9406 16.3957C15.9198 16.6405 19.0586 17.1242 18.5916 18.994ZM19.0386 14.3413C18.6317 15.9729 16.1186 15.1433 15.3041 14.9403L16.0226 12.0579C16.8371 12.261 19.463 12.6394 19.0386 14.3413Z",
|
|
220
|
+
fill: "white"
|
|
221
|
+
}));
|
|
222
|
+
const svgEth = /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
223
|
+
width: "32",
|
|
224
|
+
height: "32",
|
|
225
|
+
viewBox: "0 0 32 32",
|
|
226
|
+
fill: "none",
|
|
227
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
228
|
+
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
229
|
+
d: "M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",
|
|
230
|
+
fill: "#0EBDCD"
|
|
231
|
+
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
232
|
+
d: "M21.2066 15.5834L15.9992 7.66669L10.7916 15.5834L15.9992 18.6067L21.2066 15.5834Z",
|
|
233
|
+
fill: "white"
|
|
234
|
+
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
235
|
+
d: "M15.9992 24.3333L21.21 17.1241L15.9992 20.147L10.7916 17.1241L15.9992 24.3333Z",
|
|
236
|
+
fill: "white"
|
|
237
|
+
}));
|
|
238
|
+
const svgUsdt = /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
239
|
+
width: "32",
|
|
240
|
+
height: "32",
|
|
241
|
+
viewBox: "0 0 32 32",
|
|
242
|
+
fill: "none",
|
|
243
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
244
|
+
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
245
|
+
d: "M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",
|
|
246
|
+
fill: "#00A478"
|
|
247
|
+
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
248
|
+
fillRule: "evenodd",
|
|
249
|
+
clipRule: "evenodd",
|
|
250
|
+
d: "M17.7205 16.6265V16.6246C17.6175 16.6321 17.0863 16.6639 15.9013 16.6639C14.9551 16.6639 14.289 16.6358 14.0548 16.6246V16.6274C10.4125 16.4672 7.69393 15.833 7.69393 15.0742C7.69393 14.3163 10.4125 13.6821 14.0548 13.5191V15.996C14.2928 16.0128 14.9748 16.0531 15.9172 16.0531C17.0479 16.0531 17.6147 16.0063 17.7205 15.9969V13.521C21.3553 13.683 24.0674 14.3172 24.0674 15.0742C24.0674 15.833 21.3553 16.4653 17.7205 16.6265ZM17.7205 13.2633V11.0469H22.7924V7.66687H8.98297V11.0469H14.0548V13.2624C9.93289 13.4516 6.83301 14.2685 6.83301 15.2465C6.83301 16.2246 9.93289 17.0405 14.0548 17.2307V24.3335H17.7205V17.2288C21.8359 17.0396 24.9283 16.2236 24.9283 15.2465C24.9283 14.2695 21.8359 13.4535 17.7205 13.2633Z",
|
|
251
|
+
fill: "white"
|
|
252
|
+
}));
|
|
253
|
+
//# sourceMappingURL=stories.helper.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/components/Table/stories.helper.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from \"react\";\nimport { useTheme } from \"styled-components\";\nimport Text from \"../asorted/Text\";\nimport Table, { Column } from \"./index\";\nimport { CellProps } from \"./Columns\";\nconst { Columns } = Table;\n\nfunction Header({ children }: { children: React.ReactNode }) {\n const theme = useTheme();\n return (\n <Text\n fontWeight=\"semiBold\"\n variant={\"paragraph\"}\n style={{ borderBottom: `1px solid ${theme.colors.neutral.c40}` }}\n mx={-4}\n px={4}\n pb={8}\n >\n {children}\n </Text>\n );\n}\n\nexport type BalanceElement = {\n currency: string;\n amount: number;\n counterValue: number;\n address: string;\n evolution: number;\n starred: boolean;\n};\n\nexport const balance: { data: BalanceElement[]; columns: Column<BalanceElement>[] } = {\n data: [\n {\n currency: \"Ethereum Classic\",\n amount: 128.26484,\n counterValue: 53.29,\n address: \"0x32Be343B94f860124dC4fEe278FDCBD38C102D88\",\n evolution: 0.1,\n starred: false,\n },\n {\n currency: \"Ethereum\",\n amount: 1.23,\n counterValue: 3029.29,\n address: \"0xa910f92acdaf488fa6ef02174fb86208ad7722ba\",\n evolution: 3.0,\n starred: true,\n },\n {\n currency: \"Bitcoin\",\n amount: 0.003,\n counterValue: 1920.23,\n address: \"1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX\",\n evolution: -2.1,\n starred: true,\n },\n {\n currency: \"Dai\",\n amount: 128,\n counterValue: 128,\n address: \"0x380389E04f7671AB849baF10bd89C75C3bf99cbB\",\n evolution: 0.2,\n starred: false,\n },\n ],\n columns: [\n Columns.text({\n header: () => <Header>Currency</Header>,\n title: (elt) => elt.currency,\n }),\n Columns.text({\n header: () => <Header>Amount</Header>,\n title: (elt) => elt.amount,\n subtitle: (elt) => elt.counterValue,\n }),\n Columns.text({\n header: () => <Header>Address</Header>,\n subtitle: (elt) => elt.address,\n }),\n Columns.text({\n header: () => <Header>Evolution</Header>,\n subtitle: (elt) => (elt.evolution > 0 ? \"+\" : \"\") + elt.evolution,\n subtitleProps: (elt) => ({\n color: elt.evolution < 0 ? \"error.c100\" : \"success.c100\",\n }),\n }),\n Columns.icon({\n header: () => <Header> </Header>,\n props: (elt) => ({\n name: \"StarSolid\",\n color: elt.starred ? \"neutral.c100\" : \"neutral.c70\",\n }),\n }),\n ],\n};\n\nexport type Account = {\n name: string;\n currency: { name: string; abbrev: string };\n synchronized: boolean;\n amount: number;\n evolution: number;\n starred: boolean;\n subAccounts?: Account[];\n};\n\nexport const accounts: { data: Account[]; columns: Column<Account>[] } = {\n data: [\n {\n name: \"Bitcoin 1\",\n currency: { name: \"Bitcoin\", abbrev: \"BTC\" },\n synchronized: false,\n amount: 0.304,\n evolution: 1.3,\n starred: false,\n },\n {\n name: \"Bitcoin 2\",\n currency: { name: \"Bitcoin\", abbrev: \"BTC\" },\n synchronized: true,\n amount: 0.409,\n evolution: 1.1,\n starred: false,\n },\n {\n name: \"Bitcoin 3\",\n currency: { name: \"Bitcoin\", abbrev: \"BTC\" },\n synchronized: true,\n amount: 2.304,\n evolution: -1.3,\n starred: true,\n },\n {\n name: \"Ethereum 1\",\n currency: { name: \"Ethereum\", abbrev: \"ETH\" },\n synchronized: true,\n amount: 1.23,\n evolution: 4,\n starred: true,\n subAccounts: [\n {\n name: \"Tether\",\n currency: { name: \"Tether\", abbrev: \"USDT\" },\n synchronized: false,\n amount: 0.304,\n evolution: 1.3,\n starred: false,\n },\n {\n name: \"Tether 2\",\n currency: { name: \"Tether\", abbrev: \"USDT\" },\n synchronized: false,\n amount: 0.904,\n evolution: 8.3,\n starred: true,\n },\n ],\n },\n {\n name: \"Ethereum 2\",\n currency: { name: \"Ethereum\", abbrev: \"ETH\" },\n synchronized: false,\n amount: 0.23,\n evolution: -3,\n starred: false,\n },\n ],\n columns: [\n {\n layout: \"64px\",\n render: ({ elt }: CellProps<Account>): JSX.Element =>\n elt.currency.abbrev === \"BTC\" ? svgBtc : elt.currency.abbrev === \"ETH\" ? svgEth : svgUsdt,\n },\n Columns.text({\n layout: \"2fr\",\n title: (elt) => elt.name,\n subtitle: (elt) => elt.currency.name,\n }),\n Columns.icon({\n props: (elt) => ({\n name: elt.synchronized ? \"CircledCheck\" : \"Clock\",\n color: elt.synchronized ? \"success.c100\" : \"neutral.c80\",\n }),\n }),\n Columns.text({\n layout: \"1fr\",\n subtitle: (elt) => elt.currency.abbrev,\n }),\n Columns.text({\n layout: \"1fr\",\n title: (elt) => elt.amount,\n }),\n Columns.text({\n layout: \"1fr\",\n subtitle: (elt) => (elt.evolution > 0 ? \"+\" : \"\") + elt.evolution,\n subtitleProps: (elt) => ({\n color: elt.evolution < 0 ? \"error.c100\" : \"success.c100\",\n }),\n }),\n Columns.icon({\n props: (elt) => ({\n name: \"StarSolid\",\n color: elt.starred ? \"neutral.c100\" : \"neutral.c70\",\n }),\n }),\n ],\n};\n\nconst svgBtc = (\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z\"\n fill=\"#F7931A\"\n />\n <path\n d=\"M21.8917 14.3672C22.154 12.616 20.8198 11.6745 18.9968 11.0462L19.5883 8.67348L18.1446 8.31423L17.5682 10.6243C17.1889 10.529 16.7995 10.4405 16.4111 10.3519L16.9917 8.02683L15.548 7.66675L14.9565 10.0386C14.6424 9.96678 14.3333 9.8966 14.0342 9.82141L14.0358 9.81389L12.0441 9.31679L11.6598 10.8591C11.6598 10.8591 12.7317 11.1047 12.7091 11.1197C13.2939 11.2659 13.3992 11.6527 13.3817 11.9602L12.7083 14.6629C12.7484 14.6729 12.8002 14.688 12.8587 14.7105L12.7058 14.6729L11.7617 18.4593C11.6899 18.6364 11.5086 18.9029 11.0992 18.8018C11.1142 18.8227 10.0498 18.5403 10.0498 18.5403L9.33301 20.1929L11.2128 20.6616C11.562 20.7493 11.9046 20.8412 12.2413 20.9272L11.6439 23.3267L13.0867 23.6859L13.6783 21.3132C14.0726 21.4193 14.4552 21.5179 14.8295 21.6115L14.2397 23.9742L15.6834 24.3334L16.2807 21.939C18.7437 22.4052 20.5951 22.2172 21.3745 19.9898C22.0028 18.1969 21.3436 17.1618 20.0478 16.4876C20.9919 16.2704 21.7021 15.6496 21.8917 14.3672ZM18.5916 18.994C18.1463 20.7877 15.1261 19.8177 14.147 19.5746L14.9406 16.3957C15.9198 16.6405 19.0586 17.1242 18.5916 18.994ZM19.0386 14.3413C18.6317 15.9729 16.1186 15.1433 15.3041 14.9403L16.0226 12.0579C16.8371 12.261 19.463 12.6394 19.0386 14.3413Z\"\n fill=\"white\"\n />\n </svg>\n);\n\nconst svgEth = (\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z\"\n fill=\"#0EBDCD\"\n />\n <path\n d=\"M21.2066 15.5834L15.9992 7.66669L10.7916 15.5834L15.9992 18.6067L21.2066 15.5834Z\"\n fill=\"white\"\n />\n <path\n d=\"M15.9992 24.3333L21.21 17.1241L15.9992 20.147L10.7916 17.1241L15.9992 24.3333Z\"\n fill=\"white\"\n />\n </svg>\n);\n\nconst svgUsdt = (\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z\"\n fill=\"#00A478\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M17.7205 16.6265V16.6246C17.6175 16.6321 17.0863 16.6639 15.9013 16.6639C14.9551 16.6639 14.289 16.6358 14.0548 16.6246V16.6274C10.4125 16.4672 7.69393 15.833 7.69393 15.0742C7.69393 14.3163 10.4125 13.6821 14.0548 13.5191V15.996C14.2928 16.0128 14.9748 16.0531 15.9172 16.0531C17.0479 16.0531 17.6147 16.0063 17.7205 15.9969V13.521C21.3553 13.683 24.0674 14.3172 24.0674 15.0742C24.0674 15.833 21.3553 16.4653 17.7205 16.6265ZM17.7205 13.2633V11.0469H22.7924V7.66687H8.98297V11.0469H14.0548V13.2624C9.93289 13.4516 6.83301 14.2685 6.83301 15.2465C6.83301 16.2246 9.93289 17.0405 14.0548 17.2307V24.3335H17.7205V17.2288C21.8359 17.0396 24.9283 16.2236 24.9283 15.2465C24.9283 14.2695 21.8359 13.4535 17.7205 13.2633Z\"\n fill=\"white\"\n />\n </svg>\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,+BAAyB;AACzB,kBAAiB;AACjB,mBAA8B;AAE9B,MAAM,EAAE,YAAY;AAEpB,gBAAgB,EAAE,YAA2C;AAC3D,QAAM,QAAQ;AACd,SACE,mDAAC,qBAAD;AAAA,IACE,YAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO,EAAE,cAAc,aAAa,MAAM,OAAO,QAAQ;AAAA,IACzD,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,KAEH;AAAA;AAcA,MAAM,UAAyE;AAAA,EACpF,MAAM;AAAA,IACJ;AAAA,MACE,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,IAEX;AAAA,MACE,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,IAEX;AAAA,MACE,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,IAEX;AAAA,MACE,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA;AAAA;AAAA,EAGb,SAAS;AAAA,IACP,QAAQ,KAAK;AAAA,MACX,QAAQ,MAAM,mDAAC,QAAD,MAAQ;AAAA,MACtB,OAAO,CAAC,QAAQ,IAAI;AAAA;AAAA,IAEtB,QAAQ,KAAK;AAAA,MACX,QAAQ,MAAM,mDAAC,QAAD,MAAQ;AAAA,MACtB,OAAO,CAAC,QAAQ,IAAI;AAAA,MACpB,UAAU,CAAC,QAAQ,IAAI;AAAA;AAAA,IAEzB,QAAQ,KAAK;AAAA,MACX,QAAQ,MAAM,mDAAC,QAAD,MAAQ;AAAA,MACtB,UAAU,CAAC,QAAQ,IAAI;AAAA;AAAA,IAEzB,QAAQ,KAAK;AAAA,MACX,QAAQ,MAAM,mDAAC,QAAD,MAAQ;AAAA,MACtB,UAAU,CAAC,QAAS,KAAI,YAAY,IAAI,MAAM,MAAM,IAAI;AAAA,MACxD,eAAe,CAAC,QAAS;AAAA,QACvB,OAAO,IAAI,YAAY,IAAI,eAAe;AAAA;AAAA;AAAA,IAG9C,QAAQ,KAAK;AAAA,MACX,QAAQ,MAAM,mDAAC,QAAD,MAAQ;AAAA,MACtB,OAAO,CAAC,QAAS;AAAA,QACf,MAAM;AAAA,QACN,OAAO,IAAI,UAAU,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAgBvC,MAAM,WAA4D;AAAA,EACvE,MAAM;AAAA,IACJ;AAAA,MACE,MAAM;AAAA,MACN,UAAU,EAAE,MAAM,WAAW,QAAQ;AAAA,MACrC,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,IAEX;AAAA,MACE,MAAM;AAAA,MACN,UAAU,EAAE,MAAM,WAAW,QAAQ;AAAA,MACrC,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,IAEX;AAAA,MACE,MAAM;AAAA,MACN,UAAU,EAAE,MAAM,WAAW,QAAQ;AAAA,MACrC,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,IAEX;AAAA,MACE,MAAM;AAAA,MACN,UAAU,EAAE,MAAM,YAAY,QAAQ;AAAA,MACtC,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,SAAS;AAAA,MACT,aAAa;AAAA,QACX;AAAA,UACE,MAAM;AAAA,UACN,UAAU,EAAE,MAAM,UAAU,QAAQ;AAAA,UACpC,cAAc;AAAA,UACd,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,SAAS;AAAA;AAAA,QAEX;AAAA,UACE,MAAM;AAAA,UACN,UAAU,EAAE,MAAM,UAAU,QAAQ;AAAA,UACpC,cAAc;AAAA,UACd,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,SAAS;AAAA;AAAA;AAAA;AAAA,IAIf;AAAA,MACE,MAAM;AAAA,MACN,UAAU,EAAE,MAAM,YAAY,QAAQ;AAAA,MACtC,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,SAAS;AAAA;AAAA;AAAA,EAGb,SAAS;AAAA,IACP;AAAA,MACE,QAAQ;AAAA,MACR,QAAQ,CAAC,EAAE,UACT,IAAI,SAAS,WAAW,QAAQ,SAAS,IAAI,SAAS,WAAW,QAAQ,SAAS;AAAA;AAAA,IAEtF,QAAQ,KAAK;AAAA,MACX,QAAQ;AAAA,MACR,OAAO,CAAC,QAAQ,IAAI;AAAA,MACpB,UAAU,CAAC,QAAQ,IAAI,SAAS;AAAA;AAAA,IAElC,QAAQ,KAAK;AAAA,MACX,OAAO,CAAC,QAAS;AAAA,QACf,MAAM,IAAI,eAAe,iBAAiB;AAAA,QAC1C,OAAO,IAAI,eAAe,iBAAiB;AAAA;AAAA;AAAA,IAG/C,QAAQ,KAAK;AAAA,MACX,QAAQ;AAAA,MACR,UAAU,CAAC,QAAQ,IAAI,SAAS;AAAA;AAAA,IAElC,QAAQ,KAAK;AAAA,MACX,QAAQ;AAAA,MACR,OAAO,CAAC,QAAQ,IAAI;AAAA;AAAA,IAEtB,QAAQ,KAAK;AAAA,MACX,QAAQ;AAAA,MACR,UAAU,CAAC,QAAS,KAAI,YAAY,IAAI,MAAM,MAAM,IAAI;AAAA,MACxD,eAAe,CAAC,QAAS;AAAA,QACvB,OAAO,IAAI,YAAY,IAAI,eAAe;AAAA;AAAA;AAAA,IAG9C,QAAQ,KAAK;AAAA,MACX,OAAO,CAAC,QAAS;AAAA,QACf,MAAM;AAAA,QACN,OAAO,IAAI,UAAU,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAM9C,MAAM,SACJ,mDAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAK,QAAO;AAAA,EAAK,SAAQ;AAAA,EAAY,MAAK;AAAA,EAAO,OAAM;AAAA,GAChE,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,IAEP,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA;AAKX,MAAM,SACJ,mDAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAK,QAAO;AAAA,EAAK,SAAQ;AAAA,EAAY,MAAK;AAAA,EAAO,OAAM;AAAA,GAChE,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,IAEP,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,IAEP,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA;AAKX,MAAM,UACJ,mDAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAK,QAAO;AAAA,EAAK,SAAQ;AAAA,EAAY,MAAK;AAAA,EAAO,OAAM;AAAA,GAChE,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,IAEP,mDAAC,QAAD;AAAA,EACE,UAAS;AAAA,EACT,UAAS;AAAA,EACT,GAAE;AAAA,EACF,MAAK;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
Opacity: () => Opacity,
|
|
26
|
+
Outlined: () => Outlined,
|
|
27
|
+
OutlinedOpacity: () => OutlinedOpacity,
|
|
28
|
+
Overview: () => Overview,
|
|
29
|
+
Plain: () => Plain,
|
|
30
|
+
default: () => Tag_stories_default
|
|
31
|
+
});
|
|
32
|
+
var import_react = __toModule(require("react"));
|
|
33
|
+
var import_index = __toModule(require("./index"));
|
|
34
|
+
var import_Text = __toModule(require("../asorted/Text"));
|
|
35
|
+
var import_Flex = __toModule(require("../layout/Flex"));
|
|
36
|
+
const sizes = ["large", "medium", "small"];
|
|
37
|
+
const types = ["plain", "opacity", "outlined", "outlinedOpacity"];
|
|
38
|
+
const states = [{}, { disabled: true }];
|
|
39
|
+
var Tag_stories_default = {
|
|
40
|
+
title: "Toasts/Tag",
|
|
41
|
+
component: import_index.default,
|
|
42
|
+
argTypes: {
|
|
43
|
+
active: {
|
|
44
|
+
control: {
|
|
45
|
+
type: "boolean"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
type: {
|
|
49
|
+
options: types
|
|
50
|
+
},
|
|
51
|
+
size: {
|
|
52
|
+
options: sizes
|
|
53
|
+
},
|
|
54
|
+
children: {
|
|
55
|
+
type: "string"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const Overview = (() => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
|
|
60
|
+
flexDirection: "column"
|
|
61
|
+
}, sizes.map((size) => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
|
|
62
|
+
flexDirection: "column",
|
|
63
|
+
marginBottom: 5
|
|
64
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_Text.default, {
|
|
65
|
+
variant: "h5",
|
|
66
|
+
marginBottom: 5
|
|
67
|
+
}, 'size="', size, '"'), types.map((type) => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
|
|
68
|
+
flexDirection: "row",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
mb: 5
|
|
71
|
+
}, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
72
|
+
style: { width: "150px" }
|
|
73
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_Text.default, {
|
|
74
|
+
variant: "small",
|
|
75
|
+
color: "neutral.c70"
|
|
76
|
+
}, 'type="', type, '"')), /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
|
|
77
|
+
flexDirection: "row",
|
|
78
|
+
mt: "5px",
|
|
79
|
+
columnGap: "16px"
|
|
80
|
+
}, states.map((state) => [true, false].map((active) => /* @__PURE__ */ import_react.default.createElement(import_index.default, {
|
|
81
|
+
size,
|
|
82
|
+
type,
|
|
83
|
+
active,
|
|
84
|
+
...state
|
|
85
|
+
}, active ? "Active" : "Inactive")))))))))).bind({});
|
|
86
|
+
const Template = (args) => /* @__PURE__ */ import_react.default.createElement(import_index.default, {
|
|
87
|
+
...args
|
|
88
|
+
}, args.children);
|
|
89
|
+
const defaultArgs = {
|
|
90
|
+
active: true,
|
|
91
|
+
children: "Label",
|
|
92
|
+
type: "large"
|
|
93
|
+
};
|
|
94
|
+
const Plain = Template.bind({});
|
|
95
|
+
Plain.args = {
|
|
96
|
+
...defaultArgs,
|
|
97
|
+
type: "plain"
|
|
98
|
+
};
|
|
99
|
+
const Opacity = Template.bind({});
|
|
100
|
+
Opacity.args = {
|
|
101
|
+
...defaultArgs,
|
|
102
|
+
type: "opacity"
|
|
103
|
+
};
|
|
104
|
+
const Outlined = Template.bind({});
|
|
105
|
+
Outlined.args = {
|
|
106
|
+
...defaultArgs,
|
|
107
|
+
type: "outlined"
|
|
108
|
+
};
|
|
109
|
+
const OutlinedOpacity = Template.bind({});
|
|
110
|
+
Outlined.args = {
|
|
111
|
+
...defaultArgs,
|
|
112
|
+
type: "outlinedOpacity"
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=Tag.stories.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/components/Tag/Tag.stories.tsx"],
|
|
4
|
+
"sourcesContent": ["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\"];\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({});\nOutlined.args = {\n ...defaultArgs,\n type: \"outlinedOpacity\",\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAGlB,mBAA0C;AAC1C,kBAAiB;AACjB,kBAAiB;AAEjB,MAAM,QAAgB,CAAC,SAAS,UAAU;AAC1C,MAAM,QAAgB,CAAC,SAAS,WAAW,YAAY;AACvD,MAAM,SAAS,CAAC,IAAI,EAAE,UAAU;AAEhC,IAAO,sBAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,SAAS;AAAA,QACP,MAAM;AAAA;AAAA;AAAA,IAGV,MAAM;AAAA,MACJ,SAAS;AAAA;AAAA,IAEX,MAAM;AAAA,MACJ,SAAS;AAAA;AAAA,IAEX,UAAU;AAAA,MACR,MAAM;AAAA;AAAA;AAAA;AAKL,MAAM,WAAY,OACvB,mDAAC,qBAAD;AAAA,EAAM,eAAc;AAAA,GACjB,MAAM,IAAI,CAAC,SACV,mDAAC,qBAAD;AAAA,EAAM,eAAc;AAAA,EAAS,cAAc;AAAA,GACzC,mDAAC,qBAAD;AAAA,EAAM,SAAQ;AAAA,EAAK,cAAc;AAAA,GAAG,UAC3B,MAAK,MAEb,MAAM,IAAI,CAAC,SACV,mDAAC,qBAAD;AAAA,EAAM,eAAc;AAAA,EAAM,YAAW;AAAA,EAAS,IAAI;AAAA,GAChD,mDAAC,OAAD;AAAA,EAAK,OAAO,EAAE,OAAO;AAAA,GACnB,mDAAC,qBAAD;AAAA,EAAM,SAAQ;AAAA,EAAQ,OAAM;AAAA,GAAc,UACjC,MAAK,OAGhB,mDAAC,qBAAD;AAAA,EAAM,eAAc;AAAA,EAAM,IAAG;AAAA,EAAM,WAAU;AAAA,GAC1C,OAAO,IAAI,CAAC,UACX,CAAC,MAAM,OAAO,IAAI,CAAC,WACjB,mDAAC,sBAAD;AAAA,EAAK;AAAA,EAAY;AAAA,EAAY;AAAA,KAAoB;AAAA,GAC9C,SAAS,WAAW,qBAUtC,KAAK;AAER,MAAM,WAAoC,CAAC,SACzC,mDAAC,sBAAD;AAAA,KAAS;AAAA,GAAO,KAAK;AAGvB,MAAM,cAAc;AAAA,EAClB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA;AAGD,MAAM,QAAQ,SAAS,KAAK;AACnC,MAAM,OAAO;AAAA,KACR;AAAA,EACH,MAAM;AAAA;AAED,MAAM,UAAU,SAAS,KAAK;AACrC,QAAQ,OAAO;AAAA,KACV;AAAA,EACH,MAAM;AAAA;AAED,MAAM,WAAW,SAAS,KAAK;AACtC,SAAS,OAAO;AAAA,KACX;AAAA,EACH,MAAM;AAAA;AAED,MAAM,kBAAkB,SAAS,KAAK;AAC7C,SAAS,OAAO;AAAA,KACX;AAAA,EACH,MAAM;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
default: () => Tag
|
|
26
|
+
});
|
|
27
|
+
var import_react = __toModule(require("react"));
|
|
28
|
+
var import_styled_system = __toModule(require("styled-system"));
|
|
29
|
+
var import_Text = __toModule(require("../asorted/Text"));
|
|
30
|
+
var import_styled = __toModule(require("../styled"));
|
|
31
|
+
function getColor({ type, active, disabled }) {
|
|
32
|
+
switch (type) {
|
|
33
|
+
case "plain":
|
|
34
|
+
if (disabled)
|
|
35
|
+
return active ? "neutral.c00" : "neutral.c70";
|
|
36
|
+
return active ? "neutral.c00" : "primary.c90";
|
|
37
|
+
default:
|
|
38
|
+
return disabled ? "neutral.c70" : "primary.c90";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function getBgColor({ type, active, disabled }) {
|
|
42
|
+
switch (type) {
|
|
43
|
+
case "plain":
|
|
44
|
+
return active ? disabled ? "neutral.c70" : "primary.c90" : void 0;
|
|
45
|
+
case "opacity":
|
|
46
|
+
return active ? disabled ? "neutral.c30" : "primary.c20" : void 0;
|
|
47
|
+
default:
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function getBorderColor({ type, active, disabled }) {
|
|
52
|
+
if (!active)
|
|
53
|
+
return;
|
|
54
|
+
switch (type) {
|
|
55
|
+
case "outlined":
|
|
56
|
+
return disabled ? "neutral.c70" : "primary.c90";
|
|
57
|
+
case "outlinedOpacity":
|
|
58
|
+
return disabled ? "neutral.c40" : "primary.c40";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function getPadding({ size }) {
|
|
62
|
+
switch (size) {
|
|
63
|
+
case "small":
|
|
64
|
+
return "3px 5px";
|
|
65
|
+
case "medium":
|
|
66
|
+
return "6px 8px";
|
|
67
|
+
case "large":
|
|
68
|
+
default:
|
|
69
|
+
return "9px 10px 10px";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function getTextProps({ size }) {
|
|
73
|
+
switch (size) {
|
|
74
|
+
case "small":
|
|
75
|
+
case "medium":
|
|
76
|
+
return {
|
|
77
|
+
variant: "tiny",
|
|
78
|
+
fontWeight: "semiBold",
|
|
79
|
+
uppercase: true
|
|
80
|
+
};
|
|
81
|
+
case "large":
|
|
82
|
+
default:
|
|
83
|
+
return {
|
|
84
|
+
variant: "extraSmall",
|
|
85
|
+
fontWeight: "semiBold"
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const TagContainer = import_styled.default.div.attrs((props) => ({
|
|
90
|
+
backgroundColor: props.bg || props.backgroundColor || getBgColor(props),
|
|
91
|
+
color: props.color || getColor(props),
|
|
92
|
+
borderColor: getBorderColor(props)
|
|
93
|
+
}))`
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
border: 1px solid transparent;
|
|
97
|
+
border-radius: ${(p) => `${p.theme.radii[1]}px`};
|
|
98
|
+
padding: ${(p) => getPadding(p)};
|
|
99
|
+
${import_styled_system.border}
|
|
100
|
+
`;
|
|
101
|
+
function Tag({
|
|
102
|
+
children,
|
|
103
|
+
textProps,
|
|
104
|
+
size = "large",
|
|
105
|
+
...props
|
|
106
|
+
}) {
|
|
107
|
+
const textColor = getColor(props);
|
|
108
|
+
const baseTextProps = getTextProps({ size, ...props });
|
|
109
|
+
return /* @__PURE__ */ import_react.default.createElement(TagContainer, {
|
|
110
|
+
size,
|
|
111
|
+
...props
|
|
112
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_Text.default, {
|
|
113
|
+
...baseTextProps,
|
|
114
|
+
color: textColor,
|
|
115
|
+
...textProps ? textProps : {}
|
|
116
|
+
}, children));
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/components/Tag/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from \"react\";\nimport { TextVariants } from \"src/styles/theme\";\nimport { border, BorderProps } from \"styled-system\";\nimport Text, { TextProps } from \"../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../styled\";\n\nexport type Size = \"large\" | \"medium\" | \"small\";\nexport type Type = \"plain\" | \"opacity\" | \"outlined\" | \"outlinedOpacity\";\n\nexport type TagProps = BaseStyledProps &\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 switch (size) {\n case \"small\":\n return \"3px 5px\";\n case \"medium\":\n return \"6px 8px\";\n case \"large\":\n default:\n return \"9px 10px 10px\";\n }\n}\n\nfunction getTextProps({ size }: TagProps): {\n variant: TextVariants;\n fontWeight?: string;\n uppercase?: boolean;\n} {\n switch (size) {\n case \"small\":\n case \"medium\":\n return {\n variant: \"tiny\",\n fontWeight: \"semiBold\",\n uppercase: true,\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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAElB,2BAAoC;AACpC,kBAAgC;AAChC,oBAA4C;AA4B5C,kBAAkB,EAAE,MAAM,QAAQ,YAAsB;AACtD,UAAQ;AAAA,SACD;AACH,UAAI;AAAU,eAAO,SAAS,gBAAgB;AAC9C,aAAO,SAAS,gBAAgB;AAAA;AAEhC,aAAO,WAAW,gBAAgB;AAAA;AAAA;AAIxC,oBAAoB,EAAE,MAAM,QAAQ,YAAsB;AACxD,UAAQ;AAAA,SACD;AACH,aAAO,SAAU,WAAW,gBAAgB,gBAAiB;AAAA,SAC1D;AACH,aAAO,SAAU,WAAW,gBAAgB,gBAAiB;AAAA;AAE7D;AAAA;AAAA;AAIN,wBAAwB,EAAE,MAAM,QAAQ,YAAsB;AAC5D,MAAI,CAAC;AAAQ;AACb,UAAQ;AAAA,SACD;AACH,aAAO,WAAW,gBAAgB;AAAA,SAC/B;AACH,aAAO,WAAW,gBAAgB;AAAA;AAAA;AAIxC,oBAAoB,EAAE,QAAkB;AACtC,UAAQ;AAAA,SACD;AACH,aAAO;AAAA,SACJ;AACH,aAAO;AAAA,SACJ;AAAA;AAEH,aAAO;AAAA;AAAA;AAIb,sBAAsB,EAAE,QAItB;AACA,UAAQ;AAAA,SACD;AAAA,SACA;AACH,aAAO;AAAA,QACL,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,WAAW;AAAA;AAAA,SAEV;AAAA;AAEH,aAAO;AAAA,QACL,SAAS;AAAA,QACT,YAAY;AAAA;AAAA;AAAA;AAKpB,MAAM,eAAe,sBAAW,IAAI,MAA0B,CAAC,UAAW;AAAA,EACxE,iBAAiB,MAAM,MAAM,MAAM,mBAAmB,WAAW;AAAA,EACjE,OAAO,MAAM,SAAS,SAAS;AAAA,EAC/B,aAAa,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,mBAKX,CAAC,MAAM,GAAG,EAAE,MAAM,MAAM;AAAA,aAC9B,CAAC,MAAM,WAAW;AAAA,IAC3B;AAAA;AAGW,aAAa;AAAA,EAC1B;AAAA,EACA;AAAA,EACA,OAAO;AAAA,KACJ;AAAA,GACqB;AACxB,QAAM,YAAY,SAAS;AAC3B,QAAM,gBAAgB,aAAa,EAAE,SAAS;AAC9C,SACE,mDAAC,cAAD;AAAA,IAAc;AAAA,OAAgB;AAAA,KAC5B,mDAAC,qBAAD;AAAA,OAAU;AAAA,IAAe,OAAO;AAAA,OAAgB,YAAY,YAAY;AAAA,KACrE;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
Default: () => Default,
|
|
26
|
+
default: () => GlitchText_stories_default
|
|
27
|
+
});
|
|
28
|
+
var import_react = __toModule(require("react"));
|
|
29
|
+
var import_Log = __toModule(require("../../message/Log"));
|
|
30
|
+
var import__ = __toModule(require("./"));
|
|
31
|
+
var GlitchText_stories_default = {
|
|
32
|
+
title: "Animations/GlitchText",
|
|
33
|
+
component: import__.default,
|
|
34
|
+
parameters: { actions: { argTypesRegex: false } },
|
|
35
|
+
argTypes: {
|
|
36
|
+
text: {
|
|
37
|
+
type: "text"
|
|
38
|
+
},
|
|
39
|
+
duration: {
|
|
40
|
+
type: "number"
|
|
41
|
+
},
|
|
42
|
+
delay: {
|
|
43
|
+
type: "number"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const Template = (args) => /* @__PURE__ */ import_react.default.createElement(import_Log.default, {
|
|
48
|
+
width: "fit-content"
|
|
49
|
+
}, "The following text will ", /* @__PURE__ */ import_react.default.createElement(import__.default, {
|
|
50
|
+
...args
|
|
51
|
+
}), ".");
|
|
52
|
+
const Default = Template.bind({});
|
|
53
|
+
Default.args = {
|
|
54
|
+
text: "Glitch"
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=GlitchText.stories.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/components/animations/GlitchText/GlitchText.stories.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from \"react\";\nimport Log from \"../../message/Log\";\nimport GlitchText, { GlitchTextProps } from \"./\";\n\nexport default {\n title: \"Animations/GlitchText\",\n component: GlitchText,\n parameters: { actions: { argTypesRegex: false } },\n argTypes: {\n text: {\n type: \"text\",\n },\n duration: {\n type: \"number\",\n },\n delay: {\n type: \"number\",\n },\n },\n};\n\nconst Template = (args: GlitchTextProps) => (\n <Log width=\"fit-content\">\n The following text will <GlitchText {...args} />.\n </Log>\n);\n\nexport const Default = Template.bind({});\n// @ts-expect-error FIXME\nDefault.args = {\n text: \"Glitch\",\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,iBAAgB;AAChB,eAA4C;AAE5C,IAAO,6BAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,EAAE,SAAS,EAAE,eAAe;AAAA,EACxC,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AAAA;AAAA,IAER,UAAU;AAAA,MACR,MAAM;AAAA;AAAA,IAER,OAAO;AAAA,MACL,MAAM;AAAA;AAAA;AAAA;AAKZ,MAAM,WAAW,CAAC,SAChB,mDAAC,oBAAD;AAAA,EAAK,OAAM;AAAA,GAAc,4BACC,mDAAC,kBAAD;AAAA,KAAgB;AAAA,IAAQ;AAI7C,MAAM,UAAU,SAAS,KAAK;AAErC,QAAQ,OAAO;AAAA,EACb,MAAM;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|