@ape.swap/bonds-sdk 1.0.7-seedify → 1.0.8-seedify

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
@@ -72631,7 +72631,7 @@ var BondsViewOptions;
72631
72631
  BondsViewOptions["BONDSMARKET"] = "Bonds Market";
72632
72632
  BondsViewOptions["YOURBONDS"] = "Your Bonds";
72633
72633
  })(BondsViewOptions || (BondsViewOptions = {}));
72634
- const FullBondsView = () => {
72634
+ const FullBondsView = ({ modalVariant = 'standard' }) => {
72635
72635
  const [activeView, setActiveView] = useState(typeof window !== 'undefined' && window.location.pathname === '/yourBonds'
72636
72636
  ? BondsViewOptions.YOURBONDS
72637
72637
  : BondsViewOptions.BONDSMARKET);
@@ -72648,7 +72648,7 @@ const FullBondsView = () => {
72648
72648
  }
72649
72649
  setActiveView(newOption);
72650
72650
  };
72651
- return (jsxs(Flex, { sx: { width: '100%', flexDirection: 'column', mt: '15px' }, children: [jsx$2(Flex, { sx: { width: '350px' }, children: jsx$2(Toggle, { options: [BondsViewOptions.BONDSMARKET, BondsViewOptions.YOURBONDS], activeOption: activeView, handleToggle: handleToogle }) }), jsx$2(Flex, { sx: { width: '100%' }, children: activeView === BondsViewOptions.BONDSMARKET ? jsx$2(Bonds, {}) : jsx$2(YourBonds, {}) })] }));
72651
+ return (jsxs(Flex, { className: "fullbondsview", sx: { width: '100%', flexDirection: 'column', mt: '15px' }, children: [jsx$2(Flex, { className: "fullbondsview-toggle", sx: { width: '350px' }, children: jsx$2(Toggle, { options: [BondsViewOptions.BONDSMARKET, BondsViewOptions.YOURBONDS], activeOption: activeView, handleToggle: handleToogle }) }), jsx$2(Flex, { sx: { width: '100%' }, children: activeView === BondsViewOptions.BONDSMARKET ? jsx$2(Bonds, { modalVariant: modalVariant }) : jsx$2(YourBonds, {}) })] }));
72652
72652
  };
72653
72653
 
72654
72654
  const Toggle = ({ options, activeOption, handleToggle, claimableBillsAmount, }) => {
@@ -3,5 +3,8 @@ export declare enum BondsViewOptions {
3
3
  BONDSMARKET = "Bonds Market",
4
4
  YOURBONDS = "Your Bonds"
5
5
  }
6
- declare const FullBondsView: () => React.JSX.Element;
6
+ export interface FullBondsViewProps {
7
+ modalVariant?: 'standard' | 'alt';
8
+ }
9
+ declare const FullBondsView: React.FC<FullBondsViewProps>;
7
10
  export default FullBondsView;
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.7-seedify",
6
+ "version": "1.0.8-seedify",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",