@ape.swap/bonds-sdk 2.0.9-seedify → 2.1.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.
@@ -3,6 +3,7 @@ export interface SDKProps {
3
3
  referenceId: string;
4
4
  chains: number[];
5
5
  useRainbowKit: boolean;
6
+ useHotBonds: boolean;
6
7
  modalVariant: 'alt' | 'standard';
7
8
  urls?: Partial<Record<URLKeys, string>>;
8
9
  };
@@ -17,6 +18,7 @@ export declare const useSDKConfig: (config?: SDKProps) => {
17
18
  referenceId?: string | undefined;
18
19
  chains?: number[] | undefined;
19
20
  useRainbowKit?: boolean | undefined;
21
+ useHotBonds?: boolean | undefined;
20
22
  modalVariant?: "alt" | "standard" | undefined;
21
23
  };
22
24
  export type URLKeys = 'apiV2' | 'realTimeApi' | 'apeswapLists' | 'mainUrl';
package/dist/styles.css CHANGED
@@ -133,6 +133,17 @@
133
133
 
134
134
  .modal {
135
135
  width: fit-content !important;
136
+ max-width: 95%;
137
+ }
138
+
139
+ .project-image {
140
+ border-radius: 6px;
141
+ width: 100%;
142
+ }
143
+ @media (min-width: 1100px) {
144
+ .project-image {
145
+ width: 475px;
146
+ }
136
147
  }
137
148
 
138
149
  .modal-content {
@@ -147,10 +158,6 @@
147
158
  min-width: 700px;
148
159
  }
149
160
 
150
- .gpt {
151
- max-width: 1100px;
152
- }
153
-
154
161
  .modaltable-container {
155
162
  width: 100%;
156
163
  display: flex;
@@ -251,11 +258,10 @@
251
258
  .modaltable-container.description-container {
252
259
  display: flex;
253
260
  align-items: flex-start;
254
- padding-top: 10px;
255
- padding-bottom: 10px;
256
261
  font-weight: 400;
257
262
  font-size: 14px;
258
263
  line-height: 21px;
264
+ padding: 10px 0;
259
265
  }
260
266
 
261
267
  .modaltable-container.blocks-container {
@@ -389,7 +395,7 @@
389
395
  flex-direction: column;
390
396
  background: var(--theme-ui-colors-white3);
391
397
  border-radius: 10px;
392
- min-height: 92px;
398
+ min-height: 96px;
393
399
  padding: 10px;
394
400
  }
395
401
 
@@ -438,7 +444,7 @@
438
444
  border-radius: 10px;
439
445
  border: medium;
440
446
  padding-right: 10px;
441
- width: 80%;
447
+ width: 100%;
442
448
  height: 50px;
443
449
  font-size: 22px;
444
450
  }
@@ -463,6 +469,10 @@
463
469
  justify-content: space-between;
464
470
  }
465
471
 
472
+ .input-container.bondicon {
473
+ margin-left: 5px;
474
+ }
475
+
466
476
  .modaltable-container.button-container {
467
477
  width: 100%;
468
478
  padding-top: 10px;
@@ -498,8 +508,18 @@
498
508
 
499
509
  .modaltable-container.accordion-container {
500
510
  display: flex;
511
+ position: absolute;
512
+ padding: 30px 50px;
513
+ background: #12131A;
501
514
  width: 100%;
502
- padding-top: 10px;
515
+ border-radius: 0 0 10px 10px;
516
+ gap: 10px !important;
517
+ }
518
+ @media (min-width: 1100px) {
519
+ .modaltable-container.accordion-container {
520
+ width: 90%;
521
+ left: 5%;
522
+ }
503
523
  }
504
524
 
505
525
  .toast {
@@ -575,18 +595,14 @@
575
595
  margin: 20px 0; /* Adjust margin for spacing */
576
596
  }
577
597
 
578
- span.flex-inline {
579
- display: contents;
598
+ .rotate-hr {
599
+ rotate: 90deg;
600
+ margin: 0px !important;
601
+ width: 20px !important;
580
602
  }
581
603
 
582
- .footer-details {
583
- margin-left: -20px !important;
584
- margin-right: -20px !important;
585
- margin-bottom: -20px !important;
586
- margin-top: 20px !important;
587
- height: 50px;
588
- align-items: center;
589
- border-top: 1px solid #FFFFFF;
604
+ span.flex-inline {
605
+ display: contents;
590
606
  }
591
607
 
592
608
  .expand-icon {
@@ -594,6 +610,24 @@ span.flex-inline {
594
610
  fill: #38A611;
595
611
  }
596
612
 
613
+ .modal-receive-text {
614
+ padding-left: 5px;
615
+ font-size: 14px;
616
+ }
617
+
618
+ .bondmodal-header-alt {
619
+ padding-left: 50px;
620
+ margin: 0px 0px 10px 0px !important;
621
+ }
622
+
623
+ .token-selector-panel {
624
+ flex-direction: column;
625
+ border-radius: 10px;
626
+ background: var(--theme-ui-colors-white3);
627
+ padding: 10px;
628
+ min-height: 92px;
629
+ }
630
+
597
631
  .bond-row {
598
632
  display: flex;
599
633
  flex-direction: row;
@@ -1286,7 +1320,6 @@ span.flex-inline {
1286
1320
  flex-direction: column;
1287
1321
  border-radius: 10px;
1288
1322
  background-color: var(--theme-ui-colors-white2);
1289
- border-radius: 10px;
1290
1323
  z-index: 1001;
1291
1324
  max-width: 1200px;
1292
1325
  min-width: 1000px;
@@ -4,8 +4,6 @@ export interface BondModalProps {
4
4
  bondAddress?: string;
5
5
  bondChain?: number;
6
6
  handlePurchasedBond?: (hash: string) => void;
7
- accordionTitle?: string;
8
- accordionBody?: string;
9
7
  }
10
8
  declare const BondModal: React.FC<BondModalProps>;
11
9
  export default BondModal;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BondsData } from '../../../types/bonds';
3
+ declare const ImageAndShortDescription: ({ bondData, onDismiss }: {
4
+ bondData: BondsData;
5
+ onDismiss?: () => void;
6
+ }) => React.JSX.Element;
7
+ export default ImageAndShortDescription;
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.0.9-seedify",
6
+ "version": "2.1.0",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",