@ape.swap/bonds-sdk 1.0.209 → 1.0.210

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.
@@ -13,8 +13,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
13
  import { styles } from './styles';
14
14
  import { useTranslation } from '../../contexts/Localization';
15
15
  import { useWeb3React } from '@web3-react/core';
16
- import { Flex, Svg, Link, Text } from '../uikit-sdk';
16
+ import { Flex, Svg, Text } from '../uikit-sdk';
17
17
  import { ChainId } from '../../enum/chains';
18
+ import { Link } from 'theme-ui';
18
19
  var ButtonsRow = function (_a) {
19
20
  var projectLink = _a.projectLink, twitter = _a.twitter, bubble = _a.bubble, audit = _a.audit;
20
21
  var t = useTranslation().t;
@@ -14,7 +14,8 @@ import { useTranslation } from '../../contexts/Localization';
14
14
  import { styles } from './styles';
15
15
  import { BLOCK_EXPLORER } from '../../config/constants/chains';
16
16
  import ButtonsRow from './ButtonsRow';
17
- import { Flex, Link, Text, Svg } from '../uikit-sdk';
17
+ import { Flex, Text, Svg } from '../uikit-sdk';
18
+ import { Link } from 'theme-ui';
18
19
  var Tooltip = function (_a) {
19
20
  var valueTitle = _a.valueTitle, valueContent = _a.valueContent, value2Title = _a.value2Title, value2Content = _a.value2Content, tokenContract = _a.tokenContract, secondURL = _a.secondURL, secondURLTitle = _a.secondURLTitle, projectLink = _a.projectLink, twitter = _a.twitter, audit = _a.audit, thirdURL = _a.thirdURL, thirdURLTitle = _a.thirdURLTitle, chain = _a.chain;
20
21
  var t = useTranslation().t;
@@ -3,5 +3,4 @@ export { default as Flex } from './Flex';
3
3
  export { default as Text } from './Text';
4
4
  export { default as Skeleton } from './Skeleton';
5
5
  export { default as TooltipBubble } from './TooltipBubble';
6
- export { default as Link } from './Link';
7
6
  export { Button, IconButton } from './Button';
@@ -4,6 +4,5 @@ export { default as Flex } from './Flex';
4
4
  export { default as Text } from './Text';
5
5
  export { default as Skeleton } from './Skeleton';
6
6
  export { default as TooltipBubble } from './TooltipBubble';
7
- export { default as Link } from './Link';
8
7
  // Exports
9
8
  export { Button, IconButton } from './Button';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.209",
6
+ "version": "1.0.210",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { LinkProps } from 'next/link';
3
- import { ThemeUIStyleObject } from 'theme-ui';
4
- interface LinkTypes extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps>, LinkProps {
5
- children: React.ReactNode;
6
- sx?: ThemeUIStyleObject;
7
- }
8
- declare const Link: ({ children, ...props }: LinkTypes | any) => import("react").JSX.Element;
9
- export default Link;
@@ -1,29 +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 { default as NextLink } from 'next/link';
25
- var Link = function (_a) {
26
- var children = _a.children, props = __rest(_a, ["children"]);
27
- return (_jsx(NextLink, __assign({}, props, { sx: __assign(__assign({}, props === null || props === void 0 ? void 0 : props.sx), { color: 'text', textDecoration: 'underline', border: 'none', ':visited': { textDecoration: 'none' }, ':active': { textDecoration: 'none' } }) }, { children: children })));
28
- };
29
- export default Link;