@ape.swap/bonds-sdk 1.0.296 → 1.0.298
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/dist/components/BondModal/BondModal.js +2 -2
- package/dist/components/BondSingle/BondSingle.js +2 -2
- package/dist/components/Bonds/Bonds.js +1 -1
- package/dist/components/TokenInfoAndName/index.d.ts +3 -2
- package/dist/components/TokenInfoAndName/index.js +20 -13
- package/dist/components/YourBonds/YourBonds.js +1 -1
- package/dist/components/uikit-sdk/{BondTokenImage.d.ts → TokenImage/index.d.ts} +2 -2
- package/dist/components/uikit-sdk/{BondTokenImage.js → TokenImage/index.js} +6 -6
- package/dist/scss/YourBonds.scss +1 -0
- package/package.json +1 -1
- package/dist/components/uikit/Button/Button.d.ts +0 -4
- package/dist/components/uikit/Button/Button.js +0 -91
- package/dist/components/uikit/Button/IconButton.d.ts +0 -4
- package/dist/components/uikit/Button/IconButton.js +0 -33
- package/dist/components/uikit/Button/index.d.ts +0 -2
- package/dist/components/uikit/Button/index.js +0 -2
- package/dist/components/uikit/Button/styles.d.ts +0 -3
- package/dist/components/uikit/Button/styles.js +0 -30
- package/dist/components/uikit/Button/types.d.ts +0 -46
- package/dist/components/uikit/Button/types.js +0 -37
- package/dist/components/uikit/Checkbox/index.d.ts +0 -4
- package/dist/components/uikit/Checkbox/index.js +0 -46
- package/dist/components/uikit/Checkbox/types.d.ts +0 -11
- package/dist/components/uikit/Checkbox/types.js +0 -5
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +0 -4
- package/dist/components/uikit/Dropdown/Dropdown.js +0 -58
- package/dist/components/uikit/Dropdown/DropdownItem.d.ts +0 -4
- package/dist/components/uikit/Dropdown/DropdownItem.js +0 -47
- package/dist/components/uikit/Dropdown/index.d.ts +0 -3
- package/dist/components/uikit/Dropdown/index.js +0 -2
- package/dist/components/uikit/Dropdown/styles.d.ts +0 -4
- package/dist/components/uikit/Dropdown/styles.js +0 -16
- package/dist/components/uikit/Dropdown/types.d.ts +0 -58
- package/dist/components/uikit/Dropdown/types.js +0 -22
- package/dist/components/uikit/Flex/index.d.ts +0 -3
- package/dist/components/uikit/Flex/index.js +0 -29
- package/dist/components/uikit/Input/Input.d.ts +0 -4
- package/dist/components/uikit/Input/Input.js +0 -72
- package/dist/components/uikit/Input/NumericInput.d.ts +0 -10
- package/dist/components/uikit/Input/NumericInput.js +0 -35
- package/dist/components/uikit/Input/StyledInput.d.ts +0 -11
- package/dist/components/uikit/Input/StyledInput.js +0 -37
- package/dist/components/uikit/Input/index.d.ts +0 -3
- package/dist/components/uikit/Input/index.js +0 -3
- package/dist/components/uikit/Link/index.d.ts +0 -9
- package/dist/components/uikit/Link/index.js +0 -29
- package/dist/components/uikit/Modal/ModalFooter.d.ts +0 -4
- package/dist/components/uikit/Modal/ModalFooter.js +0 -32
- package/dist/components/uikit/Modal/ModalHeader.d.ts +0 -4
- package/dist/components/uikit/Modal/ModalHeader.js +0 -31
- package/dist/components/uikit/Modal/index.d.ts +0 -4
- package/dist/components/uikit/Modal/index.js +0 -55
- package/dist/components/uikit/Modal/styles.d.ts +0 -3
- package/dist/components/uikit/Modal/styles.js +0 -62
- package/dist/components/uikit/Modal/types.d.ts +0 -17
- package/dist/components/uikit/Modal/types.js +0 -1
- package/dist/components/uikit/Select/Select.d.ts +0 -4
- package/dist/components/uikit/Select/Select.js +0 -61
- package/dist/components/uikit/Select/SelectItem.d.ts +0 -4
- package/dist/components/uikit/Select/SelectItem.js +0 -40
- package/dist/components/uikit/Select/index.d.ts +0 -2
- package/dist/components/uikit/Select/index.js +0 -2
- package/dist/components/uikit/Select/styles.d.ts +0 -4
- package/dist/components/uikit/Select/styles.js +0 -50
- package/dist/components/uikit/Select/types.d.ts +0 -55
- package/dist/components/uikit/Select/types.js +0 -37
- package/dist/components/uikit/Skeleton/index.d.ts +0 -4
- package/dist/components/uikit/Skeleton/index.js +0 -31
- package/dist/components/uikit/Skeleton/styles.d.ts +0 -5
- package/dist/components/uikit/Skeleton/styles.js +0 -40
- package/dist/components/uikit/Skeleton/types.d.ts +0 -18
- package/dist/components/uikit/Skeleton/types.js +0 -10
- package/dist/components/uikit/Spinner/apeSpinner.json +0 -2764
- package/dist/components/uikit/Spinner/index.d.ts +0 -5
- package/dist/components/uikit/Spinner/index.js +0 -20
- package/dist/components/uikit/Svg/Icons/AbondFullLogo.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/AbondFullLogo.js +0 -27
- package/dist/components/uikit/Svg/Icons/AbondSmallLogo.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/AbondSmallLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/AccountMonkey.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/AccountMonkey.js +0 -27
- package/dist/components/uikit/Svg/Icons/ApebondLogo.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ApebondLogo.js +0 -28
- package/dist/components/uikit/Svg/Icons/ApeswapSmallLogo.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ApeswapSmallLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/Arrow.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Arrow.js +0 -27
- package/dist/components/uikit/Svg/Icons/Audit.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Audit.js +0 -27
- package/dist/components/uikit/Svg/Icons/BananaIcon.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/BananaIcon.js +0 -17
- package/dist/components/uikit/Svg/Icons/BillsM1.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/BillsM1.js +0 -27
- package/dist/components/uikit/Svg/Icons/BillsM2.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/BillsM2.js +0 -28
- package/dist/components/uikit/Svg/Icons/BillsM3.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/BillsM3.js +0 -27
- package/dist/components/uikit/Svg/Icons/Bridge.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Bridge.js +0 -27
- package/dist/components/uikit/Svg/Icons/Bubble.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Bubble.js +0 -27
- package/dist/components/uikit/Svg/Icons/Calculator.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Calculator.js +0 -27
- package/dist/components/uikit/Svg/Icons/Calendar.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Calendar.js +0 -16
- package/dist/components/uikit/Svg/Icons/Cancelled.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Cancelled.js +0 -27
- package/dist/components/uikit/Svg/Icons/Card.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Card.js +0 -27
- package/dist/components/uikit/Svg/Icons/Caret.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Caret.js +0 -27
- package/dist/components/uikit/Svg/Icons/Chain.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Chain.js +0 -20
- package/dist/components/uikit/Svg/Icons/Chart.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Chart.js +0 -27
- package/dist/components/uikit/Svg/Icons/Chat.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Chat.js +0 -27
- package/dist/components/uikit/Svg/Icons/Close.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Close.js +0 -20
- package/dist/components/uikit/Svg/Icons/Cog.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Cog.js +0 -27
- package/dist/components/uikit/Svg/Icons/Collapse.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Collapse.js +0 -27
- package/dist/components/uikit/Svg/Icons/Copy.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Copy.js +0 -27
- package/dist/components/uikit/Svg/Icons/Discord.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Discord.js +0 -27
- package/dist/components/uikit/Svg/Icons/DiscordNew.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/DiscordNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/Docs.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Docs.js +0 -27
- package/dist/components/uikit/Svg/Icons/DocsV2.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/DocsV2.js +0 -27
- package/dist/components/uikit/Svg/Icons/Ellipse.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Ellipse.js +0 -27
- package/dist/components/uikit/Svg/Icons/Error.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Error.js +0 -27
- package/dist/components/uikit/Svg/Icons/Expand.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Expand.js +0 -27
- package/dist/components/uikit/Svg/Icons/Explorer.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Explorer.js +0 -27
- package/dist/components/uikit/Svg/Icons/External.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/External.js +0 -27
- package/dist/components/uikit/Svg/Icons/Farm.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Farm.js +0 -27
- package/dist/components/uikit/Svg/Icons/Fav.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Fav.js +0 -27
- package/dist/components/uikit/Svg/Icons/FilledURL.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/FilledURL.js +0 -27
- package/dist/components/uikit/Svg/Icons/Fire.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Fire.js +0 -17
- package/dist/components/uikit/Svg/Icons/Frame.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Frame.js +0 -27
- package/dist/components/uikit/Svg/Icons/FullLogo.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/FullLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/Gnana.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Gnana.js +0 -27
- package/dist/components/uikit/Svg/Icons/GreenShield.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/GreenShield.js +0 -17
- package/dist/components/uikit/Svg/Icons/Hamburger.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Hamburger.js +0 -27
- package/dist/components/uikit/Svg/Icons/HamburgerClosed.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/HamburgerClosed.js +0 -27
- package/dist/components/uikit/Svg/Icons/Home.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Home.js +0 -27
- package/dist/components/uikit/Svg/Icons/Hot.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Hot.js +0 -17
- package/dist/components/uikit/Svg/Icons/Info.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Info.js +0 -27
- package/dist/components/uikit/Svg/Icons/InfoSolid.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/InfoSolid.js +0 -27
- package/dist/components/uikit/Svg/Icons/Insight.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Insight.js +0 -27
- package/dist/components/uikit/Svg/Icons/Instagram.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Instagram.js +0 -27
- package/dist/components/uikit/Svg/Icons/Island.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Island.js +0 -27
- package/dist/components/uikit/Svg/Icons/Language.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Language.js +0 -16
- package/dist/components/uikit/Svg/Icons/LanguageIcon.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/LanguageIcon.js +0 -27
- package/dist/components/uikit/Svg/Icons/LineChart.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/LineChart.js +0 -17
- package/dist/components/uikit/Svg/Icons/LiquidityIcon.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/LiquidityIcon.js +0 -27
- package/dist/components/uikit/Svg/Icons/Logout.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Logout.js +0 -27
- package/dist/components/uikit/Svg/Icons/Medium.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Medium.js +0 -27
- package/dist/components/uikit/Svg/Icons/MenuSettings.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/MenuSettings.js +0 -27
- package/dist/components/uikit/Svg/Icons/Message.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Message.js +0 -20
- package/dist/components/uikit/Svg/Icons/Migrate.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Migrate.js +0 -27
- package/dist/components/uikit/Svg/Icons/Moon.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Moon.js +0 -27
- package/dist/components/uikit/Svg/Icons/More.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/More.js +0 -27
- package/dist/components/uikit/Svg/Icons/NFA.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/NFA.js +0 -27
- package/dist/components/uikit/Svg/Icons/NavCaret.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/NavCaret.js +0 -27
- package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.js +0 -27
- package/dist/components/uikit/Svg/Icons/Play.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Play.js +0 -16
- package/dist/components/uikit/Svg/Icons/Pool.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Pool.js +0 -27
- package/dist/components/uikit/Svg/Icons/Positions.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Positions.js +0 -27
- package/dist/components/uikit/Svg/Icons/ProfileDark.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ProfileDark.js +0 -17
- package/dist/components/uikit/Svg/Icons/ProfileIcon.d.ts +0 -7
- package/dist/components/uikit/Svg/Icons/ProfileIcon.js +0 -16
- package/dist/components/uikit/Svg/Icons/ProfileLight.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ProfileLight.js +0 -17
- package/dist/components/uikit/Svg/Icons/Question.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Question.js +0 -17
- package/dist/components/uikit/Svg/Icons/QuestionCircle.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/QuestionCircle.js +0 -27
- package/dist/components/uikit/Svg/Icons/QuestionFill.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/QuestionFill.js +0 -27
- package/dist/components/uikit/Svg/Icons/Quiz.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Quiz.js +0 -27
- package/dist/components/uikit/Svg/Icons/Receipt.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Receipt.js +0 -27
- package/dist/components/uikit/Svg/Icons/Reddit.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Reddit.js +0 -27
- package/dist/components/uikit/Svg/Icons/Rocket.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Rocket.js +0 -27
- package/dist/components/uikit/Svg/Icons/ScrollTop.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ScrollTop.js +0 -27
- package/dist/components/uikit/Svg/Icons/Search.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Search.js +0 -27
- package/dist/components/uikit/Svg/Icons/Send.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Send.js +0 -27
- package/dist/components/uikit/Svg/Icons/Settings.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Settings.js +0 -27
- package/dist/components/uikit/Svg/Icons/Share.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Share.js +0 -27
- package/dist/components/uikit/Svg/Icons/Success.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Success.js +0 -27
- package/dist/components/uikit/Svg/Icons/SuccessOutline.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/SuccessOutline.js +0 -27
- package/dist/components/uikit/Svg/Icons/SwapArrows.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/SwapArrows.js +0 -27
- package/dist/components/uikit/Svg/Icons/SwitchArrows.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/SwitchArrows.js +0 -27
- package/dist/components/uikit/Svg/Icons/Tag.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Tag.js +0 -16
- package/dist/components/uikit/Svg/Icons/Telegram.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Telegram.js +0 -27
- package/dist/components/uikit/Svg/Icons/TelegramNew.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/TelegramNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/TextLogo.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/TextLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/TickShield.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/TickShield.js +0 -27
- package/dist/components/uikit/Svg/Icons/Trade.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Trade.js +0 -27
- package/dist/components/uikit/Svg/Icons/Trash.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Trash.js +0 -27
- package/dist/components/uikit/Svg/Icons/Twitter.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Twitter.js +0 -27
- package/dist/components/uikit/Svg/Icons/URL.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/URL.js +0 -27
- package/dist/components/uikit/Svg/Icons/Vaults.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Vaults.js +0 -27
- package/dist/components/uikit/Svg/Icons/Verified.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Verified.js +0 -17
- package/dist/components/uikit/Svg/Icons/Wallet.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Wallet.js +0 -27
- package/dist/components/uikit/Svg/Icons/Warning.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Warning.js +0 -27
- package/dist/components/uikit/Svg/Icons/Watch.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Watch.js +0 -27
- package/dist/components/uikit/Svg/Icons/Website.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Website.js +0 -27
- package/dist/components/uikit/Svg/Icons/WebsiteNew.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/WebsiteNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/WhitepaperNew.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/WhitepaperNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/XNew.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/XNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/YellowQuestionMark.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/YellowQuestionMark.js +0 -17
- package/dist/components/uikit/Svg/Icons/ZapArrow.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ZapArrow.js +0 -27
- package/dist/components/uikit/Svg/Icons/ZapIcon.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/ZapIcon.js +0 -27
- package/dist/components/uikit/Svg/Icons/index.d.ts +0 -108
- package/dist/components/uikit/Svg/Icons/index.js +0 -110
- package/dist/components/uikit/Svg/Icons/polygonNew.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/polygonNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/types.d.ts +0 -16
- package/dist/components/uikit/Svg/Icons/types.js +0 -1
- package/dist/components/uikit/Svg/index.d.ts +0 -4
- package/dist/components/uikit/Svg/index.js +0 -343
- package/dist/components/uikit/Svg/styles.d.ts +0 -4
- package/dist/components/uikit/Svg/styles.js +0 -16
- package/dist/components/uikit/Svg/tokens/ABOND.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/ABOND.js +0 -17
- package/dist/components/uikit/Svg/tokens/ARBITRUM.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/ARBITRUM.js +0 -17
- package/dist/components/uikit/Svg/tokens/AVAX.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/AVAX.js +0 -17
- package/dist/components/uikit/Svg/tokens/BANANA.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/BANANA.js +0 -17
- package/dist/components/uikit/Svg/tokens/BASE.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/BASE.js +0 -17
- package/dist/components/uikit/Svg/tokens/BNB.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/BNB.js +0 -17
- package/dist/components/uikit/Svg/tokens/BSC.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/BSC.js +0 -17
- package/dist/components/uikit/Svg/tokens/CELO.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/CELO.js +0 -16
- package/dist/components/uikit/Svg/tokens/CRONOS.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/CRONOS.js +0 -17
- package/dist/components/uikit/Svg/tokens/ETH.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/ETH.js +0 -17
- package/dist/components/uikit/Svg/tokens/FANTOM.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/FANTOM.js +0 -17
- package/dist/components/uikit/Svg/tokens/GNANA.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/GNANA.js +0 -17
- package/dist/components/uikit/Svg/tokens/GNOSIS.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/GNOSIS.js +0 -17
- package/dist/components/uikit/Svg/tokens/INEVM.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/INEVM.js +0 -17
- package/dist/components/uikit/Svg/tokens/IOTA.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/IOTA.js +0 -17
- package/dist/components/uikit/Svg/tokens/LIGHTLINK.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/LIGHTLINK.js +0 -17
- package/dist/components/uikit/Svg/tokens/LINEA.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/LINEA.js +0 -17
- package/dist/components/uikit/Svg/tokens/OKX.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/OKX.js +0 -16
- package/dist/components/uikit/Svg/tokens/OPTIMISM.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/OPTIMISM.js +0 -19
- package/dist/components/uikit/Svg/tokens/POLYGON.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/POLYGON.js +0 -17
- package/dist/components/uikit/Svg/tokens/POLYGONZK.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/POLYGONZK.js +0 -17
- package/dist/components/uikit/Svg/tokens/TLOS.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/TLOS.js +0 -17
- package/dist/components/uikit/Svg/tokens/index.d.ts +0 -22
- package/dist/components/uikit/Svg/tokens/index.js +0 -22
- package/dist/components/uikit/Svg/types.d.ts +0 -169
- package/dist/components/uikit/Svg/types.js +0 -163
- package/dist/components/uikit/Svg/walletIcons/BinanceChain.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/BinanceChain.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Bitkeep.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Bitkeep.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Brave.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Brave.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Coinbase.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Coinbase.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/MadWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/MadWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/MathWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/MathWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Metamask.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Metamask.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Nabox.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Nabox.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/OKX.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/OKX.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/OntoWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/OntoWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/SafePalWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/SafePalWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/SocialLogin.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/SocialLogin.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/TokenPocket.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/TokenPocket.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/TorusWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/TorusWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/TrustWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/TrustWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Unstoppable.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Unstoppable.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/WalletConnect.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/WalletConnect.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/WalletImage.d.ts +0 -3
- package/dist/components/uikit/Svg/walletIcons/WalletImage.js +0 -16
- package/dist/components/uikit/Svg/walletIcons/index.d.ts +0 -18
- package/dist/components/uikit/Svg/walletIcons/index.js +0 -18
- package/dist/components/uikit/SwiperDots/index.d.ts +0 -6
- package/dist/components/uikit/SwiperDots/index.js +0 -14
- package/dist/components/uikit/Tabs/Tab.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tab.js +0 -34
- package/dist/components/uikit/Tabs/TabPanel.d.ts +0 -4
- package/dist/components/uikit/Tabs/TabPanel.js +0 -29
- package/dist/components/uikit/Tabs/Tabs.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tabs.js +0 -67
- package/dist/components/uikit/Tabs/index.d.ts +0 -2
- package/dist/components/uikit/Tabs/index.js +0 -2
- package/dist/components/uikit/Tabs/styles.d.ts +0 -3
- package/dist/components/uikit/Tabs/styles.js +0 -40
- package/dist/components/uikit/Tabs/types.d.ts +0 -54
- package/dist/components/uikit/Tabs/types.js +0 -22
- package/dist/components/uikit/Tag/ListTag.d.ts +0 -4
- package/dist/components/uikit/Tag/ListTag.js +0 -20
- package/dist/components/uikit/Tag/Tag.d.ts +0 -4
- package/dist/components/uikit/Tag/Tag.js +0 -42
- package/dist/components/uikit/Tag/index.d.ts +0 -3
- package/dist/components/uikit/Tag/index.js +0 -2
- package/dist/components/uikit/Tag/styles.d.ts +0 -9
- package/dist/components/uikit/Tag/styles.js +0 -44
- package/dist/components/uikit/Tag/types.d.ts +0 -48
- package/dist/components/uikit/Tag/types.js +0 -34
- package/dist/components/uikit/Text/index.d.ts +0 -4
- package/dist/components/uikit/Text/index.js +0 -35
- package/dist/components/uikit/Text/types.d.ts +0 -23
- package/dist/components/uikit/Text/types.js +0 -13
- package/dist/components/uikit/Toggle/index.d.ts +0 -4
- package/dist/components/uikit/Toggle/index.js +0 -63
- package/dist/components/uikit/Toggle/styles.d.ts +0 -3
- package/dist/components/uikit/Toggle/styles.js +0 -39
- package/dist/components/uikit/Toggle/types.d.ts +0 -31
- package/dist/components/uikit/Toggle/types.js +0 -17
- package/dist/components/uikit/Tooltip/index.d.ts +0 -4
- package/dist/components/uikit/Tooltip/index.js +0 -66
- package/dist/components/uikit/Tooltip/styles.d.ts +0 -4
- package/dist/components/uikit/Tooltip/styles.js +0 -60
- package/dist/components/uikit/Tooltip/types.d.ts +0 -17
- package/dist/components/uikit/Tooltip/types.js +0 -8
- package/dist/components/uikit/TutorialModal/index.d.ts +0 -4
- package/dist/components/uikit/TutorialModal/index.js +0 -52
- package/dist/components/uikit/TutorialModal/styles.d.ts +0 -8
- package/dist/components/uikit/TutorialModal/styles.js +0 -86
- package/dist/components/uikit/TutorialModal/types.d.ts +0 -22
- package/dist/components/uikit/TutorialModal/types.js +0 -1
- package/dist/components/uikit/TutorialModal/useTutorialModal.d.ts +0 -6
- package/dist/components/uikit/TutorialModal/useTutorialModal.js +0 -20
- package/dist/components/uikit/index.d.ts +0 -18
- package/dist/components/uikit/index.js +0 -20
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
container: {
|
|
3
|
-
padding: '20px',
|
|
4
|
-
background: 'white2',
|
|
5
|
-
borderRadius: 'normal',
|
|
6
|
-
color: 'text',
|
|
7
|
-
hr: {
|
|
8
|
-
background: '#DCD9D9',
|
|
9
|
-
},
|
|
10
|
-
position: 'fixed',
|
|
11
|
-
display: 'block',
|
|
12
|
-
top: '50%',
|
|
13
|
-
left: '50%',
|
|
14
|
-
transform: 'translate(-50%, -50%)',
|
|
15
|
-
width: '380px',
|
|
16
|
-
minWidth: ['95%', 'min(360px, 90%)', '320px'],
|
|
17
|
-
overflowY: 'auto',
|
|
18
|
-
maxHeight: 'calc(100% - 30px)',
|
|
19
|
-
maxWidth: '95vw',
|
|
20
|
-
},
|
|
21
|
-
backdrop: {
|
|
22
|
-
position: 'fixed',
|
|
23
|
-
top: 0,
|
|
24
|
-
bottom: 0,
|
|
25
|
-
left: 0,
|
|
26
|
-
right: 0,
|
|
27
|
-
background: 'modalOverlay',
|
|
28
|
-
width: '100%',
|
|
29
|
-
height: '100%',
|
|
30
|
-
zIndex: 100,
|
|
31
|
-
transition: 'all 1s ease',
|
|
32
|
-
},
|
|
33
|
-
modalHead: {
|
|
34
|
-
justifyContent: 'space-between',
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
svg: {
|
|
37
|
-
fill: 'text',
|
|
38
|
-
marginLeft: 'auto',
|
|
39
|
-
cursor: 'pointer',
|
|
40
|
-
},
|
|
41
|
-
button: {
|
|
42
|
-
ml: 'auto',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
modalFooter: {
|
|
46
|
-
flexDirection: 'column',
|
|
47
|
-
justifyContent: 'center',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
pt: 9,
|
|
50
|
-
gap: 4,
|
|
51
|
-
},
|
|
52
|
-
cancelButton: {
|
|
53
|
-
background: 'transparent',
|
|
54
|
-
textDecoration: 'underline',
|
|
55
|
-
color: 'text',
|
|
56
|
-
cursor: 'pointer',
|
|
57
|
-
fontSize: 0,
|
|
58
|
-
fontWeight: 'normal',
|
|
59
|
-
p: 0,
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
export default styles;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ThemeUIStyleObject, SxProp } from 'theme-ui';
|
|
3
|
-
export interface InternalProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
onDismiss?: () => void;
|
|
6
|
-
onAnimationComplete?: () => void;
|
|
7
|
-
t?: (key: string) => string;
|
|
8
|
-
hideDivider?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface ModalProps extends InternalProps {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
open?: boolean;
|
|
13
|
-
title?: string;
|
|
14
|
-
zIndex?: string | number;
|
|
15
|
-
sx?: ThemeUIStyleObject;
|
|
16
|
-
backdrop?: SxProp['sx'];
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "theme-ui/jsx-runtime";
|
|
24
|
-
import React, { useRef, useState } from 'react';
|
|
25
|
-
import { Box, Flex } from 'theme-ui';
|
|
26
|
-
import { AnimatePresence, motion } from 'framer-motion';
|
|
27
|
-
import { selectPadding, sizes, positions, selectedExtraPadding } from './types';
|
|
28
|
-
import Svg from '../Svg';
|
|
29
|
-
import styles from './styles';
|
|
30
|
-
var Select = function (_a) {
|
|
31
|
-
var children = _a.children, active = _a.active, _b = _a.width, width = _b === void 0 ? 'fit-content' : _b, _c = _a.size, size = _c === void 0 ? sizes.MEDIUM : _c, _d = _a.position, position = _d === void 0 ? positions.BOTTOM : _d, className = _a.className, label = _a.label, props = __rest(_a, ["children", "active", "width", "size", "position", "className", "label"]);
|
|
32
|
-
var inputRef = useRef(null);
|
|
33
|
-
var _e = useState(false), open = _e[0], setOpen = _e[1];
|
|
34
|
-
var handleClick = function () { return setOpen(function (prev) { return !prev; }); };
|
|
35
|
-
var setNativeInput = function (val) {
|
|
36
|
-
var _a, _b, _c;
|
|
37
|
-
var input = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current;
|
|
38
|
-
if (input) {
|
|
39
|
-
(_c = (_b = (_a = Object === null || Object === void 0 ? void 0 : Object.getOwnPropertyDescriptor) === null || _a === void 0 ? void 0 : _a.call(Object, window.HTMLInputElement.prototype, 'value')) === null || _b === void 0 ? void 0 : _b.set) === null || _c === void 0 ? void 0 : _c.call(input, val);
|
|
40
|
-
input.dispatchEvent(new Event('change', { bubbles: true }));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Box, __assign({ sx: __assign(__assign({}, styles.container), { width: width }), onClick: handleClick, className: className }, { children: [_jsxs(Flex, __assign({ sx: {
|
|
44
|
-
padding: selectedExtraPadding[size],
|
|
45
|
-
pr: selectPadding[size],
|
|
46
|
-
columnGap: '10px',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
justifyContent: 'space-between',
|
|
49
|
-
width: '100%',
|
|
50
|
-
overflow: 'hidden',
|
|
51
|
-
} }, { children: [label ? (_jsx(Box, { children: label })) : (React.Children.map(children, function (child) {
|
|
52
|
-
var _a;
|
|
53
|
-
if (((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.value) !== active) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
return React.cloneElement(child, __assign(__assign({}, child === null || child === void 0 ? void 0 : child.props), { active: true }));
|
|
57
|
-
})), _jsx(Flex, __assign({ sx: { minWidth: '10px' } }, { children: _jsx(Svg, { icon: "caret", direction: open ? 'up' : 'down' }) }))] })), _jsx(AnimatePresence, { children: open && (_jsx(motion.div, __assign({ initial: { opacity: 0, height: 0 }, animate: { opacity: 1, height: 'fit-content' }, transition: { opacity: { duration: 0.2 } }, exit: { opacity: 0, height: 0 }, sx: __assign(__assign({}, styles.ul), { zIndex: 10, top: position === positions.BOTTOM ? 'calc(100% + 5px)' : undefined, bottom: position === positions.TOP ? 'calc(100% + 5px)' : undefined }) }, { children: React.Children.map(children, function (child) {
|
|
58
|
-
return React.cloneElement(child, __assign(__assign({}, child === null || child === void 0 ? void 0 : child.props), { active: false, onClick: function () { var _a; return setNativeInput((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.value); } }));
|
|
59
|
-
}) }))) }), _jsx("input", __assign({ ref: inputRef, value: active || '', "aria-hidden": "true", tabIndex: -1 }, props, { sx: styles.input }))] })), open && _jsx("div", { "aria-hidden": "true", onClick: function () { return setOpen(false); }, sx: styles.backdrop })] }));
|
|
60
|
-
};
|
|
61
|
-
export default Select;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
24
|
-
import { selectItemPadding, sizes } from './types';
|
|
25
|
-
import { dynamicStyles } from './styles';
|
|
26
|
-
import Flex from '../Flex';
|
|
27
|
-
var SelectItem = function (_a) {
|
|
28
|
-
var onClick = _a.onClick, value = _a.value, active = _a.active, _b = _a.size, size = _b === void 0 ? sizes.MEDIUM : _b, children = _a.children, props = __rest(_a, ["onClick", "value", "active", "size", "children"]);
|
|
29
|
-
var style = dynamicStyles.dropdownItem({ size: size });
|
|
30
|
-
return (_jsx(Flex, __assign({ as: "li" }, props, { onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(value); }, sx: {
|
|
31
|
-
padding: selectItemPadding[size],
|
|
32
|
-
listStyleType: 'none',
|
|
33
|
-
cursor: 'pointer',
|
|
34
|
-
borderRadius: '10px',
|
|
35
|
-
'&:hover': {
|
|
36
|
-
backgroundColor: !active ? 'white3' : undefined,
|
|
37
|
-
},
|
|
38
|
-
} }, { children: _jsx(Flex, __assign({ sx: style }, { children: children })) })));
|
|
39
|
-
};
|
|
40
|
-
export default SelectItem;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { fontSizes } from './types';
|
|
2
|
-
var styles = {
|
|
3
|
-
container: {
|
|
4
|
-
background: 'white3',
|
|
5
|
-
borderRadius: '10px',
|
|
6
|
-
cursor: 'pointer',
|
|
7
|
-
width: 'fit-content',
|
|
8
|
-
height: 'fit-content',
|
|
9
|
-
position: 'relative',
|
|
10
|
-
},
|
|
11
|
-
ul: {
|
|
12
|
-
position: 'absolute',
|
|
13
|
-
background: 'white2',
|
|
14
|
-
borderRadius: '10px',
|
|
15
|
-
cursor: 'pointer',
|
|
16
|
-
minWidth: '100%',
|
|
17
|
-
width: 'max-content',
|
|
18
|
-
overflow: 'hidden',
|
|
19
|
-
boxShadow: 'rgba(0, 0, 0, 0.16) 0px 1px 4px',
|
|
20
|
-
},
|
|
21
|
-
backdrop: {
|
|
22
|
-
width: '98vw',
|
|
23
|
-
height: '100vh',
|
|
24
|
-
position: 'fixed',
|
|
25
|
-
background: 'transparent',
|
|
26
|
-
top: 0,
|
|
27
|
-
left: 0,
|
|
28
|
-
},
|
|
29
|
-
input: {
|
|
30
|
-
bottom: 0,
|
|
31
|
-
left: 0,
|
|
32
|
-
position: 'absolute',
|
|
33
|
-
opacity: 0,
|
|
34
|
-
pointerEvents: 'none',
|
|
35
|
-
width: '100%',
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
export var dynamicStyles = {
|
|
39
|
-
dropdownItem: function (_a) {
|
|
40
|
-
var size = _a.size;
|
|
41
|
-
return ({
|
|
42
|
-
width: '100%',
|
|
43
|
-
fontSize: fontSizes[size],
|
|
44
|
-
'*': {
|
|
45
|
-
fontSize: fontSizes[size],
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
export default styles;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
-
export declare enum positions {
|
|
3
|
-
TOP = "top",
|
|
4
|
-
BOTTOM = "bottom"
|
|
5
|
-
}
|
|
6
|
-
export declare enum sizes {
|
|
7
|
-
XSMALL = "xsm",
|
|
8
|
-
SMALL = "sm",
|
|
9
|
-
MEDIUM = "md",
|
|
10
|
-
LARGE = "lg"
|
|
11
|
-
}
|
|
12
|
-
export declare const fontSizes: {
|
|
13
|
-
xsm: number;
|
|
14
|
-
sm: number;
|
|
15
|
-
md: number;
|
|
16
|
-
lg: number;
|
|
17
|
-
};
|
|
18
|
-
export declare const selectPadding: {
|
|
19
|
-
xsm: number;
|
|
20
|
-
sm: number;
|
|
21
|
-
md: number;
|
|
22
|
-
lg: number;
|
|
23
|
-
};
|
|
24
|
-
export declare const selectedExtraPadding: {
|
|
25
|
-
xsm: number;
|
|
26
|
-
sm: number;
|
|
27
|
-
md: number;
|
|
28
|
-
lg: number;
|
|
29
|
-
};
|
|
30
|
-
export declare const selectItemPadding: {
|
|
31
|
-
xsm: number;
|
|
32
|
-
sm: number;
|
|
33
|
-
md: number;
|
|
34
|
-
lg: number;
|
|
35
|
-
};
|
|
36
|
-
type sizeProps = `${sizes}`;
|
|
37
|
-
type positionProps = `${positions}`;
|
|
38
|
-
export interface SelectProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
39
|
-
active?: number | string;
|
|
40
|
-
size?: sizeProps;
|
|
41
|
-
width?: string | number;
|
|
42
|
-
label?: JSX.Element;
|
|
43
|
-
position?: positionProps;
|
|
44
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
45
|
-
}
|
|
46
|
-
export interface SelectItemProps {
|
|
47
|
-
children: React.ReactNode;
|
|
48
|
-
onClick?: (value: number | string) => void;
|
|
49
|
-
url?: string;
|
|
50
|
-
active?: boolean;
|
|
51
|
-
size?: sizeProps;
|
|
52
|
-
value: number | string;
|
|
53
|
-
sx?: any;
|
|
54
|
-
}
|
|
55
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var _a, _b, _c, _d;
|
|
2
|
-
export var positions;
|
|
3
|
-
(function (positions) {
|
|
4
|
-
positions["TOP"] = "top";
|
|
5
|
-
positions["BOTTOM"] = "bottom";
|
|
6
|
-
})(positions || (positions = {}));
|
|
7
|
-
export var sizes;
|
|
8
|
-
(function (sizes) {
|
|
9
|
-
sizes["XSMALL"] = "xsm";
|
|
10
|
-
sizes["SMALL"] = "sm";
|
|
11
|
-
sizes["MEDIUM"] = "md";
|
|
12
|
-
sizes["LARGE"] = "lg";
|
|
13
|
-
})(sizes || (sizes = {}));
|
|
14
|
-
export var fontSizes = (_a = {},
|
|
15
|
-
_a[sizes.XSMALL] = 1,
|
|
16
|
-
_a[sizes.SMALL] = 1,
|
|
17
|
-
_a[sizes.MEDIUM] = 3,
|
|
18
|
-
_a[sizes.LARGE] = 6,
|
|
19
|
-
_a);
|
|
20
|
-
export var selectPadding = (_b = {},
|
|
21
|
-
_b[sizes.XSMALL] = 2,
|
|
22
|
-
_b[sizes.SMALL] = 4,
|
|
23
|
-
_b[sizes.MEDIUM] = 6,
|
|
24
|
-
_b[sizes.LARGE] = 8,
|
|
25
|
-
_b);
|
|
26
|
-
export var selectedExtraPadding = (_c = {},
|
|
27
|
-
_c[sizes.XSMALL] = 1,
|
|
28
|
-
_c[sizes.SMALL] = 0,
|
|
29
|
-
_c[sizes.MEDIUM] = 0,
|
|
30
|
-
_c[sizes.LARGE] = 0,
|
|
31
|
-
_c);
|
|
32
|
-
export var selectItemPadding = (_d = {},
|
|
33
|
-
_d[sizes.XSMALL] = 2,
|
|
34
|
-
_d[sizes.SMALL] = 4,
|
|
35
|
-
_d[sizes.MEDIUM] = 6,
|
|
36
|
-
_d[sizes.LARGE] = 8,
|
|
37
|
-
_d);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
24
|
-
import { Box } from 'theme-ui';
|
|
25
|
-
import { animation as ANIMATION, variant as VARIANT } from './types';
|
|
26
|
-
import styles from './styles';
|
|
27
|
-
var Skeleton = function (_a) {
|
|
28
|
-
var _b = _a.variant, variant = _b === void 0 ? VARIANT.RECT : _b, _c = _a.animation, animation = _c === void 0 ? ANIMATION.PULSE : _c, props = __rest(_a, ["variant", "animation"]);
|
|
29
|
-
return (_jsx(Box, __assign({}, props, { sx: __assign(__assign({}, (animation === ANIMATION.WAVES ? styles.waves : styles.pulse)), { height: props.height, width: props.width, borderRadius: variant === VARIANT.RECT ? '10px' : '50%' }) })));
|
|
30
|
-
};
|
|
31
|
-
export default Skeleton;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { keyframes } from '@emotion/react';
|
|
2
|
-
export var waves = keyframes({
|
|
3
|
-
from: { left: '-150px' },
|
|
4
|
-
to: { left: '100%' },
|
|
5
|
-
});
|
|
6
|
-
export var pulse = keyframes({
|
|
7
|
-
'0%': { opacity: 1 },
|
|
8
|
-
'50%': { opacity: 0.4 },
|
|
9
|
-
'100%': { opacity: 1 },
|
|
10
|
-
});
|
|
11
|
-
var styles = {
|
|
12
|
-
waves: {
|
|
13
|
-
position: 'relative',
|
|
14
|
-
overflow: 'hidden',
|
|
15
|
-
transform: 'translate3d(0, 0, 0)',
|
|
16
|
-
borderRadius: '',
|
|
17
|
-
minHeight: '20px',
|
|
18
|
-
display: 'block',
|
|
19
|
-
backgroundColor: 'backgroundDisabled',
|
|
20
|
-
'&:before': {
|
|
21
|
-
content: "\"\"",
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
backgroundImage: 'linear-gradient(90deg, transparent, rgba(243, 243, 243, 0.3), transparent)',
|
|
24
|
-
top: 0,
|
|
25
|
-
left: '-150px',
|
|
26
|
-
height: '100%',
|
|
27
|
-
width: '250px',
|
|
28
|
-
animation: "".concat(waves, " 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite"),
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
pulse: {
|
|
32
|
-
animation: "".concat(pulse, " 2s infinite ease-out"),
|
|
33
|
-
transform: 'translate3d(0, 0, 0)',
|
|
34
|
-
borderRadius: '2px',
|
|
35
|
-
minHeight: '20px',
|
|
36
|
-
display: 'block',
|
|
37
|
-
backgroundColor: 'backgroundDisabled',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
export default styles;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from 'theme-ui';
|
|
2
|
-
export declare enum animation {
|
|
3
|
-
WAVES = "waves",
|
|
4
|
-
PULSE = "pulse"
|
|
5
|
-
}
|
|
6
|
-
export declare enum variant {
|
|
7
|
-
RECT = "rect",
|
|
8
|
-
CIRCLE = "circle"
|
|
9
|
-
}
|
|
10
|
-
type Animation = `${animation}`;
|
|
11
|
-
type Variant = `${variant}`;
|
|
12
|
-
export interface SkeletonProps extends BoxProps {
|
|
13
|
-
animation?: Animation;
|
|
14
|
-
variant?: Variant;
|
|
15
|
-
width?: string | number;
|
|
16
|
-
height?: string | number;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export var animation;
|
|
2
|
-
(function (animation) {
|
|
3
|
-
animation["WAVES"] = "waves";
|
|
4
|
-
animation["PULSE"] = "pulse";
|
|
5
|
-
})(animation || (animation = {}));
|
|
6
|
-
export var variant;
|
|
7
|
-
(function (variant) {
|
|
8
|
-
variant["RECT"] = "rect";
|
|
9
|
-
variant["CIRCLE"] = "circle";
|
|
10
|
-
})(variant || (variant = {}));
|