@ape.swap/bonds-sdk 2.7.7-test.2 → 2.7.7-test.3

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/main.js CHANGED
@@ -58306,7 +58306,7 @@ function useGetUserEscrowWeight(account) {
58306
58306
  }
58307
58307
 
58308
58308
  const MinTierRow = ({ minTier }) => {
58309
- return (jsx$2(Fragment$1, { children: minTier !== null && minTier != undefined && (jsxs(Flex, { children: [jsx$2("img", { src: `/images/launch/${TIERS_NAMES[minTier].toLowerCase()}.png`, alt: "minTier", style: { width: '30px', height: '30px', marginLeft: '10px', zIndex: 1 } }), minTier < 4 && (jsx$2("img", { src: `/images/launch/iconPlus.png`, alt: "minTier", style: { width: '30px', height: '30px', marginLeft: '-11px', zIndex: 0 } }))] })) }));
58309
+ return (jsx$2(Fragment$1, { children: minTier !== null && minTier != undefined && (jsx$2(Flex, { children: jsxs(TooltipBubble, { className: "tooltip-bubble", body: jsxs(Flex, { children: ["You need a ", TIERS_NAMES[minTier], " Ape Tier or better in order to buy this Bond."] }), width: "230px", placement: "bottomLeft", transformTip: "translate(1%, -5%)", children: [jsx$2("img", { src: `/images/launch/${TIERS_NAMES[minTier].toLowerCase()}.png`, alt: "minTier", style: { width: '30px', height: '30px', marginLeft: '10px', zIndex: 1 } }), minTier < 4 && (jsx$2("img", { src: `/images/launch/iconPlus.png`, alt: "minTier", style: { width: '30px', height: '30px', marginLeft: '-11px', zIndex: 0 } }))] }) })) }));
58310
58310
  };
58311
58311
 
58312
58312
  const NETWORK_COLORS = {
@@ -70868,30 +70868,7 @@ const ExpandedViewButton = ({ handleNavigation, rightPos }) => {
70868
70868
  cursor: 'pointer',
70869
70869
  width: '100%',
70870
70870
  display: 'flex',
70871
- }, onClick: handleNavigation, children: [jsx$2(Flex, { sx: {
70872
- background: '#DF414166',
70873
- borderRadius: 'small',
70874
- p: '1px 5px',
70875
- position: 'absolute',
70876
- height: '20px',
70877
- left: '-50px',
70878
- fontSize: '12px',
70879
- fontWeight: 400,
70880
- lineHeight: '17px',
70881
- width: '40px',
70882
- '&:before': {
70883
- content: '""',
70884
- display: 'block',
70885
- height: 0,
70886
- width: 0,
70887
- position: 'absolute',
70888
- top: '50%',
70889
- left: 'calc(100% - 0px)',
70890
- border: '5px solid transparent',
70891
- borderLeftColor: '#DF414166',
70892
- transform: 'translateY(-50%)',
70893
- },
70894
- }, children: "NEW" }), "Project Info", jsx$2(Flex, { sx: { ml: '4px' }, children: jsx$2(Svg, { icon: "expand", width: 20, color: "white" }) })] }) }));
70871
+ }, onClick: handleNavigation, children: ["Project Info", jsx$2(Flex, { sx: { ml: '4px' }, children: jsx$2(Svg, { icon: "expand", width: 20, color: "white" }) })] }) }));
70895
70872
  };
70896
70873
 
70897
70874
  const BondInfoTooltip = ({ earnTokenContract, earnTokenSymbol, bondContract, projectLink, twitter, audit, chain, }) => {
@@ -73918,22 +73895,14 @@ const useSendReferenceId = () => {
73918
73895
 
73919
73896
  const BondModalMinTierHeader = ({ minTier }) => {
73920
73897
  return (jsx$2(Fragment$1, { children: minTier !== null && minTier !== undefined && (jsx$2(Flex, { sx: {
73898
+ justifyContent: 'start',
73921
73899
  alignItems: 'center',
73922
73900
  flexDirection: 'row-reverse',
73923
- ml: '10px',
73924
73901
  width: ['100%', '100%', '100%', 'auto', 'auto'],
73925
73902
  }, children: Object.values(TIERS_NAMES).map((tier, index) => {
73926
73903
  if (index >= minTier) {
73927
73904
  return (jsx$2("img", { src: `/images/launch/${tier.toLowerCase()}.png`, alt: "minTier", style: { width: '30px', height: '30px', marginLeft: '3px', zIndex: 1 } }, `tier-logo-${index}`));
73928
73905
  }
73929
- return (jsx$2(Box$1, { sx: {
73930
- width: '27px',
73931
- height: '27px',
73932
- marginLeft: '3px',
73933
- zIndex: 1,
73934
- backgroundColor: 'rgb(128 128 128 / 25%)',
73935
- borderRadius: '100px',
73936
- } }, `notier-logo-${index}`));
73937
73906
  }) })) }));
73938
73907
  };
73939
73908
 
@@ -73959,7 +73928,7 @@ const BondModalHeader = ({ bondData, onDismiss, showProjectInfoButton, }) => {
73959
73928
  },
73960
73929
  });
73961
73930
  };
73962
- return (jsxs(Flex, { className: "modaltable-container title-container", children: [jsxs(Flex, { sx: { flexDirection: ['column', 'column', 'column', 'row', 'row'], width: '100%' }, children: [jsxs(Flex, { children: [jsx$2(Flex, { className: "title-container bondicon", children: jsx$2(TokenImage, { symbol: (_a = bondData.showcaseTokenName) !== null && _a !== void 0 ? _a : bondData.earnToken.symbol, size: 50, chain: bondData.chainId }) }), jsxs(Flex, { className: "title-container bondname", children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, jsx$2(ListTag, { text: (_b = bondData === null || bondData === void 0 ? void 0 : bondData.tags) === null || _b === void 0 ? void 0 : _b[0] })] })] }), jsxs(Flex, { children: [jsxs(Flex, { className: "title-container price-container", sx: { flexDirection: 'column', paddingLeft: ['0px', '0px', '0px', '20px', '20px'] }, children: [jsxs(Flex, { className: "price-container price", children: ["$", earnTokenPrice(bondData)] }), jsxs(Flex, { className: "price-container discounted", children: ["$", discountEarnTokenPrice(bondData)] })] }), jsx$2(BondModalMinTierHeader, { minTier: minTier })] })] }), jsx$2(Flex, { className: "slipagge-close-icons", children: onDismiss ? (jsxs(Fragment$1, { children: [showProjectInfoButton && jsx$2(ExpandedViewButton, { handleNavigation: handleProjectViewNavigation }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose }), jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })] })) : (jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })) })] }));
73931
+ return (jsxs(Flex, { className: "modaltable-container title-container", sx: { flexDirection: 'column', justifyContent: 'center', alignItems: 'start' }, children: [jsxs(Flex, { className: "slipagge-close-icon", sx: { width: '100%', height: '30px', mb: ['10px', '10px', '10px', '0px', '0px'] }, children: [jsx$2(Flex, { sx: { display: ['flex', 'flex', 'flex', 'none', 'none'] }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) }), jsx$2(Flex, { sx: { flexDirection: 'column', position: 'absolute', right: '0px' }, children: onDismiss ? (jsxs(Fragment$1, { children: [showProjectInfoButton && jsx$2(ExpandedViewButton, { handleNavigation: handleProjectViewNavigation }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose }), jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })] })) : (jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })) })] }), jsxs(Flex, { sx: { width: '100%' }, children: [jsx$2(Flex, { className: "title-container bondicon", children: jsx$2(TokenImage, { symbol: (_a = bondData.showcaseTokenName) !== null && _a !== void 0 ? _a : bondData.earnToken.symbol, size: 50, chain: bondData.chainId }) }), jsxs(Flex, { className: "title-container bondname", children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, jsx$2(ListTag, { text: (_b = bondData === null || bondData === void 0 ? void 0 : bondData.tags) === null || _b === void 0 ? void 0 : _b[0] })] }), jsxs(Flex, { className: "title-container price-container", sx: { flexDirection: 'column', paddingLeft: '20px' }, children: [jsxs(Flex, { className: "price-container price", children: ["$", earnTokenPrice(bondData)] }), jsxs(Flex, { className: "price-container discounted", children: ["$", discountEarnTokenPrice(bondData)] })] }), jsx$2(Flex, { sx: { display: ['none', 'none', 'none', 'flex', 'flex'], ml: '10px' }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) })] })] }));
73963
73932
  };
73964
73933
 
73965
73934
  const BondCards = ({ bondData }) => {
@@ -74136,7 +74105,7 @@ const TagMinTierBond = ({ userTier, minTier }) => {
74136
74105
  justifyContent: 'center',
74137
74106
  textAlign: 'center',
74138
74107
  display: 'block',
74139
- }, children: ["To be eligible to purchase this bond you need to get a", jsxs("span", { style: { fontWeight: 700 }, children: [` ${TIERS_NAMES[minTier]}`, " Tier!."] }), " Learn more ", '>'] }));
74108
+ }, children: ["To be eligible to purchase this bond you need to get a", jsxs("span", { style: { fontWeight: 700 }, children: [` ${TIERS_NAMES[minTier]}`, " Tier or better!"] })] }));
74140
74109
  };
74141
74110
 
74142
74111
  const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) => {
package/dist/styles.css CHANGED
@@ -238,7 +238,6 @@
238
238
  font-weight: bold;
239
239
  font-size: 1.5rem;
240
240
  display: flex;
241
- flex-direction: row;
242
241
  align-items: center;
243
242
  }
244
243
 
@@ -1021,7 +1020,6 @@ span.flex-inline {
1021
1020
  height: 100%;
1022
1021
  align-items: center;
1023
1022
  padding-left: 20px;
1024
- overflow: hidden;
1025
1023
  border-radius: 10px;
1026
1024
  }
1027
1025
 
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": "2.7.7-test.2",
6
+ "version": "2.7.7-test.3",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",