@bosonprotocol/react-kit 0.37.0-alpha.1 → 0.37.0-alpha.2
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/cjs/components/exchangeCard/ExchangeCard.d.ts +0 -1
- package/dist/cjs/components/exchangeCard/ExchangeCard.d.ts.map +1 -1
- package/dist/cjs/components/exchangeCard/ExchangeCard.js +21 -26
- package/dist/cjs/components/exchangeCard/ExchangeCard.js.map +1 -1
- package/dist/cjs/components/exchangeCard/ExchangeCard.styles.d.ts +227 -5
- package/dist/cjs/components/exchangeCard/ExchangeCard.styles.d.ts.map +1 -1
- package/dist/cjs/components/exchangeCard/ExchangeCard.styles.js +33 -22
- package/dist/cjs/components/exchangeCard/ExchangeCard.styles.js.map +1 -1
- package/dist/cjs/components/modal/components/Commit/DetailView/InnerCommitDetailView.d.ts.map +1 -1
- package/dist/cjs/components/modal/components/Commit/DetailView/InnerCommitDetailView.js +1 -1
- package/dist/cjs/components/modal/components/Commit/DetailView/InnerCommitDetailView.js.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchange.d.ts +1 -2
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchange.d.ts.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchange.js +1 -12
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchange.js.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchanges.d.ts +1 -2
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchanges.d.ts.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchanges.js +2 -2
- package/dist/cjs/components/modal/components/Redeem/MyItems/Exchanges.js.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/MyItems.d.ts +1 -2
- package/dist/cjs/components/modal/components/Redeem/MyItems/MyItems.d.ts.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/MyItems.js +2 -2
- package/dist/cjs/components/modal/components/Redeem/MyItems/MyItems.js.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/WithExchangesData.d.ts +0 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/WithExchangesData.d.ts.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/MyItems/WithExchangesData.js.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/RedeemNonModal.d.ts +0 -1
- package/dist/cjs/components/modal/components/Redeem/RedeemNonModal.d.ts.map +1 -1
- package/dist/cjs/components/modal/components/Redeem/RedeemNonModal.js +1 -5
- package/dist/cjs/components/modal/components/Redeem/RedeemNonModal.js.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.d.ts +2 -0
- package/dist/cjs/components/productCard/ProductCard.d.ts.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.js +13 -15
- package/dist/cjs/components/productCard/ProductCard.js.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.styles.d.ts +4 -0
- package/dist/cjs/components/productCard/ProductCard.styles.d.ts.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.styles.js +55 -20
- package/dist/cjs/components/productCard/ProductCard.styles.js.map +1 -1
- package/dist/cjs/components/productCard/commonStyles.d.ts.map +1 -1
- package/dist/cjs/components/productCard/commonStyles.js +0 -1
- package/dist/cjs/components/productCard/commonStyles.js.map +1 -1
- package/dist/cjs/components/widgets/roblox/components/ProductsRoblox.d.ts.map +1 -1
- package/dist/cjs/components/widgets/roblox/components/ProductsRoblox.js +16 -2
- package/dist/cjs/components/widgets/roblox/components/ProductsRoblox.js.map +1 -1
- package/dist/cjs/components/widgets/roblox/components/RobloxExchangesGrid.d.ts +2 -2
- package/dist/cjs/components/widgets/roblox/components/RobloxExchangesGrid.d.ts.map +1 -1
- package/dist/cjs/components/widgets/roblox/components/RobloxExchangesGrid.js +3 -6
- package/dist/cjs/components/widgets/roblox/components/RobloxExchangesGrid.js.map +1 -1
- package/dist/esm/components/exchangeCard/ExchangeCard.d.ts +0 -1
- package/dist/esm/components/exchangeCard/ExchangeCard.d.ts.map +1 -1
- package/dist/esm/components/exchangeCard/ExchangeCard.js +22 -26
- package/dist/esm/components/exchangeCard/ExchangeCard.js.map +1 -1
- package/dist/esm/components/exchangeCard/ExchangeCard.styles.d.ts +227 -5
- package/dist/esm/components/exchangeCard/ExchangeCard.styles.d.ts.map +1 -1
- package/dist/esm/components/exchangeCard/ExchangeCard.styles.js +33 -22
- package/dist/esm/components/exchangeCard/ExchangeCard.styles.js.map +1 -1
- package/dist/esm/components/modal/components/Commit/DetailView/InnerCommitDetailView.d.ts.map +1 -1
- package/dist/esm/components/modal/components/Commit/DetailView/InnerCommitDetailView.js +1 -1
- package/dist/esm/components/modal/components/Commit/DetailView/InnerCommitDetailView.js.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchange.d.ts +1 -2
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchange.d.ts.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchange.js +1 -12
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchange.js.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchanges.d.ts +1 -2
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchanges.d.ts.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchanges.js +2 -2
- package/dist/esm/components/modal/components/Redeem/MyItems/Exchanges.js.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/MyItems.d.ts +1 -2
- package/dist/esm/components/modal/components/Redeem/MyItems/MyItems.d.ts.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/MyItems.js +2 -2
- package/dist/esm/components/modal/components/Redeem/MyItems/MyItems.js.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/WithExchangesData.d.ts +0 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/WithExchangesData.d.ts.map +1 -1
- package/dist/esm/components/modal/components/Redeem/MyItems/WithExchangesData.js.map +1 -1
- package/dist/esm/components/modal/components/Redeem/RedeemNonModal.d.ts +0 -1
- package/dist/esm/components/modal/components/Redeem/RedeemNonModal.d.ts.map +1 -1
- package/dist/esm/components/modal/components/Redeem/RedeemNonModal.js +1 -5
- package/dist/esm/components/modal/components/Redeem/RedeemNonModal.js.map +1 -1
- package/dist/esm/components/productCard/ProductCard.d.ts +2 -0
- package/dist/esm/components/productCard/ProductCard.d.ts.map +1 -1
- package/dist/esm/components/productCard/ProductCard.js +13 -15
- package/dist/esm/components/productCard/ProductCard.js.map +1 -1
- package/dist/esm/components/productCard/ProductCard.styles.d.ts +4 -0
- package/dist/esm/components/productCard/ProductCard.styles.d.ts.map +1 -1
- package/dist/esm/components/productCard/ProductCard.styles.js +54 -19
- package/dist/esm/components/productCard/ProductCard.styles.js.map +1 -1
- package/dist/esm/components/productCard/commonStyles.d.ts.map +1 -1
- package/dist/esm/components/productCard/commonStyles.js +0 -1
- package/dist/esm/components/productCard/commonStyles.js.map +1 -1
- package/dist/esm/components/widgets/roblox/components/ProductsRoblox.d.ts.map +1 -1
- package/dist/esm/components/widgets/roblox/components/ProductsRoblox.js +16 -2
- package/dist/esm/components/widgets/roblox/components/ProductsRoblox.js.map +1 -1
- package/dist/esm/components/widgets/roblox/components/RobloxExchangesGrid.d.ts +2 -2
- package/dist/esm/components/widgets/roblox/components/RobloxExchangesGrid.d.ts.map +1 -1
- package/dist/esm/components/widgets/roblox/components/RobloxExchangesGrid.js +3 -6
- package/dist/esm/components/widgets/roblox/components/RobloxExchangesGrid.js.map +1 -1
- package/package.json +2 -2
- package/src/components/exchangeCard/ExchangeCard.styles.ts +40 -22
- package/src/components/exchangeCard/ExchangeCard.tsx +53 -57
- package/src/components/modal/components/Commit/DetailView/InnerCommitDetailView.tsx +4 -1
- package/src/components/modal/components/Redeem/MyItems/Exchange.tsx +7 -15
- package/src/components/modal/components/Redeem/MyItems/Exchanges.tsx +0 -3
- package/src/components/modal/components/Redeem/MyItems/MyItems.tsx +0 -3
- package/src/components/modal/components/Redeem/MyItems/WithExchangesData.tsx +0 -1
- package/src/components/modal/components/Redeem/RedeemNonModal.tsx +0 -7
- package/src/components/productCard/ProductCard.styles.ts +58 -19
- package/src/components/productCard/ProductCard.tsx +30 -27
- package/src/components/productCard/commonStyles.ts +0 -1
- package/src/components/widgets/roblox/components/ProductsRoblox.tsx +14 -2
- package/src/components/widgets/roblox/components/RobloxExchangesGrid.tsx +5 -10
|
@@ -7,7 +7,6 @@ exports.cardWrapperStyles = (0, styled_components_1.css) `
|
|
|
7
7
|
padding: 0px;
|
|
8
8
|
isolation: isolate;
|
|
9
9
|
width: 100%;
|
|
10
|
-
box-shadow: 0px 4.31783px 107.946px rgba(21, 30, 52, 0.1);
|
|
11
10
|
background: ${(0, theme_1.getCssVar)("--background-accent-color")};
|
|
12
11
|
`;
|
|
13
12
|
//# sourceMappingURL=commonStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonStyles.js","sourceRoot":"","sources":["../../../../src/components/productCard/commonStyles.ts"],"names":[],"mappings":";;;AAAA,yDAAwC;AACxC,uCAAwC;AAE3B,QAAA,iBAAiB,GAAG,IAAA,uBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"commonStyles.js","sourceRoot":"","sources":["../../../../src/components/productCard/commonStyles.ts"],"names":[],"mappings":";;;AAAA,yDAAwC;AACxC,uCAAwC;AAE3B,QAAA,iBAAiB,GAAG,IAAA,uBAAG,EAAA;;;;gBAIpB,IAAA,iBAAS,EAAC,2BAA2B,CAAC;CACrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsRoblox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/ProductsRoblox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAoB9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAiB1F,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B,EAAE,MAAM,CAAC;IACnC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,UAAU,GAAG,YAAY,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,iGAMxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ProductsRoblox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/ProductsRoblox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAoB9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAiB1F,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B,EAAE,MAAM,CAAC;IACnC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,UAAU,GAAG,YAAY,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,iGAMxB,mBAAmB,sBAmTrB,CAAC"}
|
|
@@ -112,7 +112,7 @@ const ProductsRoblox = ({ sellerId, raiseDisputeForExchangeUrl, requestShipmentP
|
|
|
112
112
|
fetchNextPageAvailableProducts();
|
|
113
113
|
fetchNextPageUnavailableProducts();
|
|
114
114
|
}, [fetchNextPageAvailableProducts, fetchNextPageUnavailableProducts]);
|
|
115
|
-
const { data: purchasedProductsInPage,
|
|
115
|
+
const { data: purchasedProductsInPage, fetchNextPage: fetchNextPagePurchasedProducts, hasNextPage: hasNextPagePurchasedProducts, refetch: refetchPurchasedProducts } = (0, useRobloxExchanges_1.useRobloxExchanges)({
|
|
116
116
|
sellerId,
|
|
117
117
|
userWallet: address !== null && address !== void 0 ? address : "",
|
|
118
118
|
pageSize: const_1.purchasedProductsPageSize,
|
|
@@ -179,7 +179,21 @@ const ProductsRoblox = ({ sellerId, raiseDisputeForExchangeUrl, requestShipmentP
|
|
|
179
179
|
exchange: robloxExchange
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
},
|
|
182
|
+
}, handleOnCardClick: (robloxExchange) => {
|
|
183
|
+
const { offer } = robloxExchange;
|
|
184
|
+
if ((0, filter_1.isProductV1)(offer)) {
|
|
185
|
+
handleSetProductUuid({
|
|
186
|
+
selectedProductUuid: offer.metadata.product.uuid,
|
|
187
|
+
exchange: robloxExchange
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
else if ((0, filter_1.isBundle)(offer)) {
|
|
191
|
+
handleSetBundleUuid({
|
|
192
|
+
selectedBundleUuid: offer.metadata.bundleUuid,
|
|
193
|
+
exchange: robloxExchange
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
} })),
|
|
183
197
|
react_1.default.createElement(Grid_1.Grid, { flexDirection: "column", alignItems: "flex-start" },
|
|
184
198
|
react_1.default.createElement(Typography_1.Typography, { tag: "h3", margin: "0" }, "Available Products"),
|
|
185
199
|
react_1.default.createElement(Typography_1.Typography, { marginBottom: "32px", color: (0, theme_1.getCssVar)("--sub-text-color") }, "Following products are available for you based on the Roblox inventory you have"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsRoblox.js","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/ProductsRoblox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAAuC;AACvC,+CAA8D;AAC9D,uDAAoD;AACpD,2CAAwC;AACxC,4EAAyE;AACzE,6DAA0D;AAC1D,kFAA+E;AAC/E,oFAAiF;AACjF,6CAA+C;AAC/C,+DAA4D;AAE5D,8GAA2G;AAC3G,gFAAwD;AACxD,sFAAmF;AACnF,6CAA8C;AAE9C,yDAAqE;AAErE,qCAA2C;AAC3C,sFAAmF;AACnF,mCAAgF;AAGhF,MAAM,OAAO,GAAG,IAAA,2BAAM,EA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C;IACrC,CAAC,EAAE,CAAC,8BAA8B,EAAE,gCAAgC,CAAC,CAAC,CAAC;IAEvE,MAAM,EACJ,IAAI,EAAE,uBAAuB,EAC7B,
|
|
1
|
+
{"version":3,"file":"ProductsRoblox.js","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/ProductsRoblox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAAuC;AACvC,+CAA8D;AAC9D,uDAAoD;AACpD,2CAAwC;AACxC,4EAAyE;AACzE,6DAA0D;AAC1D,kFAA+E;AAC/E,oFAAiF;AACjF,6CAA+C;AAC/C,+DAA4D;AAE5D,8GAA2G;AAC3G,gFAAwD;AACxD,sFAAmF;AACnF,6CAA8C;AAE9C,yDAAqE;AAErE,qCAA2C;AAC3C,sFAAmF;AACnF,mCAAgF;AAGhF,MAAM,OAAO,GAAG,IAAA,2BAAM,EAAC,WAAI,CAAC,CAAC,KAAK,CAAC;IACjC,UAAU,EAAE,MAAM;IAClB,aAAa,EAAE,MAAM;IACrB,UAAU,EAAE,YAAY;CACzB,CAAC,CAAA;;sBAEoB,IAAA,iBAAS,EAAC,oBAAoB,CAAC;CACpD,CAAC;AACF,MAAM,cAAc,GAAG,IAAA,2BAAM,EAAC,WAAI,CAAC,CAAA;oBACf,wBAAe;;;;CAIlC,CAAC;AAUK,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,MAAM,EACc,EAAE,EAAE;IACxB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,kBAAU,GAAE,CAAC;IACjC,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,IAAA,yCAAmB,EAAC;QACvD,QAAQ;QACR,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,CAAC,oBAAoB;SAChC;KACF,CAAC,CAAC;IACH,MAAM,EACJ,IAAI,EAAE,6BAA6B,EACnC,S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,EAAC,YAAY;gBAClD,8BAAC,uBAAU,IAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,wBAElB;gBACb,8BAAC,uBAAU,IACT,YAAY,EAAC,MAAM,EACnB,KAAK,EAAE,IAAA,iBAAS,EAAC,kBAAkB,CAAC,0FAIzB;gBACb,8BAAC,uCAAkB,IACjB,aAAa,EAAE,qBAAqB,EACpC,WAAW,EAAE,mBAAmB,EAChC,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,EAAE,uBAAuB,EAClC,oBAAoB,EAAE,CAAC,CAAC,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,UAAU,CAAA,GACtD,CACG,CACN,CACJ,CAAC,CAAC,CAAC,CACF,6DAAK,CACN,CACc,CACT,CACX,CAAC;AACJ,CAAC,CAAC;AAzTW,QAAA,cAAc,kBAyTzB"}
|
|
@@ -3,16 +3,16 @@ import React from "react";
|
|
|
3
3
|
import { BosonRobloxExchange, GetExchangesResponse } from "@bosonprotocol/roblox-sdk";
|
|
4
4
|
import { FetchNextPageOptions, InfiniteData, InfiniteQueryObserverResult, QueryObserverResult, RefetchOptions, RefetchQueryFilters } from "react-query";
|
|
5
5
|
export type RobloxExchangesGridProps = {
|
|
6
|
-
isLoading: boolean;
|
|
7
6
|
numProducts?: number;
|
|
8
7
|
itemsPerRow: GridContainerProps["itemsPerRow"];
|
|
9
8
|
raiseDisputeForExchangeUrl: string;
|
|
10
9
|
handleRequestShipment: (robloxExchange: BosonRobloxExchange) => void;
|
|
11
10
|
handleCancellation: (robloxExchange: BosonRobloxExchange) => void;
|
|
11
|
+
handleOnCardClick: (robloxExchange: BosonRobloxExchange) => void;
|
|
12
12
|
exchanges: BosonRobloxExchange[] | undefined;
|
|
13
13
|
fetchNextPage: (options?: FetchNextPageOptions) => Promise<InfiniteQueryObserverResult<GetExchangesResponse, unknown>>;
|
|
14
14
|
refetch: <TPageData>(options?: (RefetchOptions & RefetchQueryFilters<TPageData>) | undefined) => Promise<QueryObserverResult<InfiniteData<GetExchangesResponse>, unknown>>;
|
|
15
15
|
hasNextPage: boolean | undefined;
|
|
16
16
|
};
|
|
17
|
-
export declare const RobloxExchangesGrid: ({
|
|
17
|
+
export declare const RobloxExchangesGrid: ({ numProducts, itemsPerRow, raiseDisputeForExchangeUrl, exchanges, handleRequestShipment, handleOnCardClick, handleCancellation, fetchNextPage, refetch, hasNextPage }: RobloxExchangesGridProps) => React.JSX.Element;
|
|
18
18
|
//# sourceMappingURL=RobloxExchangesGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RobloxExchangesGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/RobloxExchangesGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAI9E,OAAO,KAAgC,MAAM,OAAO,CAAC;AAarD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAwBrB,MAAM,MAAM,wBAAwB,GAAG;IACrC,
|
|
1
|
+
{"version":3,"file":"RobloxExchangesGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/RobloxExchangesGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAI9E,OAAO,KAAgC,MAAM,OAAO,CAAC;AAarD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAwBrB,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAC/C,0BAA0B,EAAE,MAAM,CAAC;IACnC,qBAAqB,EAAE,CAAC,cAAc,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,CAAC,cAAc,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClE,iBAAiB,EAAE,CAAC,cAAc,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACjE,SAAS,EAAE,mBAAmB,EAAE,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,CACb,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,2BAA2B,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC;IACzE,OAAO,EAAE,CAAC,SAAS,EACjB,OAAO,CAAC,EAAE,CAAC,cAAc,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,KACpE,OAAO,CACV,mBAAmB,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,CACjE,CAAC;IACF,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,mBAAmB,2KAW7B,wBAAwB,sBA0J1B,CAAC"}
|
|
@@ -85,7 +85,7 @@ const TransparentSkeletonProductCard = (0, styled_components_1.default)(ProductC
|
|
|
85
85
|
height: 100%;
|
|
86
86
|
`;
|
|
87
87
|
const gap = "2rem";
|
|
88
|
-
const RobloxExchangesGrid = ({
|
|
88
|
+
const RobloxExchangesGrid = ({ numProducts, itemsPerRow, raiseDisputeForExchangeUrl, exchanges, handleRequestShipment, handleOnCardClick, handleCancellation, fetchNextPage, refetch, hasNextPage }) => {
|
|
89
89
|
const { address } = (0, hooks_1.useAccount)();
|
|
90
90
|
const { ipfsImageGateway } = (0, hooks_1.useIpfsContext)();
|
|
91
91
|
const [isNextLoading, setNextLoading] = (0, react_1.useState)(false);
|
|
@@ -135,11 +135,8 @@ const RobloxExchangesGrid = ({ isLoading, numProducts, itemsPerRow, raiseDispute
|
|
|
135
135
|
handleRequestShipment(robloxExchange);
|
|
136
136
|
},
|
|
137
137
|
type: "button"
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
handleCancellation(robloxExchange);
|
|
141
|
-
},
|
|
142
|
-
type: "button"
|
|
138
|
+
}, onCardClick: () => {
|
|
139
|
+
handleOnCardClick(robloxExchange);
|
|
143
140
|
}, disputeButtonConfig: {
|
|
144
141
|
onClick: () => {
|
|
145
142
|
const raiseDisputeForExchangeUrlWithId = raiseDisputeForExchangeUrl === null || raiseDisputeForExchangeUrl === void 0 ? void 0 : raiseDisputeForExchangeUrl.replace("{id}", exchangeId || "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RobloxExchangesGrid.js","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/RobloxExchangesGrid.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA8E;AAC9E,uEAAgD;AAEhD,6CAA+D;AAC/D,+CAAqD;AACrD,mCAA+B;AAC/B,mDAA6C;AAC7C,6CAA2C;AAC3C,0DAGuC;AACvC,2EAAwE;AACxE,yDAAqE;AACrE,+EAA4E;AAC5E,sDAAyD;AACzD,qEAAkE;AAKlE,uDAAoD;AACpD,uDAAqD;AACrD,qEAAkE;AASlE,sGAA6D;AAC7D,MAAM,OAAO,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;CAKzB,CAAC;AACF,MAAM,gBAAgB,GAAG,IAAA,uBAAG,EAAA;;;;;;;CAO3B,CAAC;AACF,MAAM,uBAAuB,GAAG,IAAA,2BAAM,EAAC,2BAAY,CAAC,CAAA;IAChD,gBAAgB;CACnB,CAAC;AACF,MAAM,8BAA8B,GAAG,IAAA,2BAAM,EAAC,yCAAmB,CAAC,CAAA;IAC9D,gBAAgB;;CAEnB,CAAC;AAoBF,MAAM,GAAG,GAAG,MAAM,CAAC;AACZ,MAAM,mBAAmB,GAAG,CAAC,EAClC,
|
|
1
|
+
{"version":3,"file":"RobloxExchangesGrid.js","sourceRoot":"","sources":["../../../../../../src/components/widgets/roblox/components/RobloxExchangesGrid.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA8E;AAC9E,uEAAgD;AAEhD,6CAA+D;AAC/D,+CAAqD;AACrD,mCAA+B;AAC/B,mDAA6C;AAC7C,6CAA2C;AAC3C,0DAGuC;AACvC,2EAAwE;AACxE,yDAAqE;AACrE,+EAA4E;AAC5E,sDAAyD;AACzD,qEAAkE;AAKlE,uDAAoD;AACpD,uDAAqD;AACrD,qEAAkE;AASlE,sGAA6D;AAC7D,MAAM,OAAO,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;CAKzB,CAAC;AACF,MAAM,gBAAgB,GAAG,IAAA,uBAAG,EAAA;;;;;;;CAO3B,CAAC;AACF,MAAM,uBAAuB,GAAG,IAAA,2BAAM,EAAC,2BAAY,CAAC,CAAA;IAChD,gBAAgB;CACnB,CAAC;AACF,MAAM,8BAA8B,GAAG,IAAA,2BAAM,EAAC,yCAAmB,CAAC,CAAA;IAC9D,gBAAgB;;CAEnB,CAAC;AAoBF,MAAM,GAAG,GAAG,MAAM,CAAC;AACZ,MAAM,mBAAmB,GAAG,CAAC,EAClC,WAAW,EACX,WAAW,EACX,0BAA0B,EAC1B,SAAS,EACT,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,WAAW,EACc,EAAE,EAAE;IAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,kBAAU,GAAE,CAAC;IACjC,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,sBAAc,GAAE,CAAC;IAC9C,MAAM,CAAC,aAAa,E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AiB,EAAE,QAAQ,CAAC,CAAC;gCAChD,CAAC;4BACH,CAAC;4BACD,IAAI,EAAE,QAAQ;yBACN,EAEZ,WAAW,EAAE,CAAC,CAAC,OAAO,EACtB,iBAAiB,EACf,8BAAC,+CAAsB,IACrB,2BAA2B,EAAE,KAAK,GAClC,GAEJ,CACH,CAAC;gBACJ,CAAC,EACA,MAAM,CAAC,kBAAQ,CAAC;gBAClB,aAAa,IAAI,mBAAmB,CACpC,CACJ,CAAC,CAAC,CAAC,CACF,8BAAC,uBAAU,4BAA+B,CAC3C,CACa,CACD,CACT,CACX,CAAC;AACJ,CAAC,CAAC;AArKW,QAAA,mBAAmB,uBAqK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExchangeCard.d.ts","sourceRoot":"","sources":["../../../../src/components/exchangeCard/ExchangeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAC;AAE/D,OAAO,EACL,UAAU,EAEX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExchangeCard.d.ts","sourceRoot":"","sources":["../../../../src/components/exchangeCard/ExchangeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAC;AAE/D,OAAO,EACL,UAAU,EAEX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAkB7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAA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,CAAC,SAAS,CAAC;CAC1C;AAED,UAAU,YAAa,SAAQ,IAAI;IACjC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;CACzC;AAED,UAAU,WAAY,SAAQ,IAAI;IAChC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;CACxC;AAED,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,CAAC;AAEhB,eAAO,MAAM,YAAY,UAAW,iBAAiB,sBA6JpD,CAAC"}
|
|
@@ -3,11 +3,14 @@ import { Button } from "../buttons/Button";
|
|
|
3
3
|
import { CurrencyDisplay } from "../currencyDisplay/CurrencyDisplay";
|
|
4
4
|
import { Image } from "../image/Image";
|
|
5
5
|
import { ProductType } from "../productCard/const";
|
|
6
|
-
import {
|
|
6
|
+
import { CTAOnHoverContainerExchangeCard, CommittedButtonWrapper, ExchangeButtonWrapper, ExchangeCTAWrapper, ExchangeCarData, ExchangeCardBottom, ExchangeCardBottomContent, ExchangeCardPriceWrapper, ExchangeCardTitle, ExchangeCardTitleWrapper, ExchangeCardTop, ExchangeCardWrapper, ExchangeImageWrapper, ExchangeStatus, RedeemButtonWrapper } from "./ExchangeCard.styles";
|
|
7
7
|
import { subgraph } from "@bosonprotocol/core-sdk";
|
|
8
|
+
import { Grid } from "../ui/Grid";
|
|
9
|
+
import { PhygitalLabel } from "../productCard/ProductCard";
|
|
8
10
|
export const ExchangeCard = (props) => {
|
|
9
|
-
const { id, title, imageProps, price, currency,
|
|
11
|
+
const { id, title, imageProps, price, currency, onCardClick, status, isCTAVisible = true, onAvatarNameClick, dataTestId = "offer", isHoverDisabled = false, dataCard = "exchange-card", productType, isConnected, CTAIfDisconnected } = props;
|
|
10
12
|
const [isImageLoaded, setIsImageLoaded] = useState(false);
|
|
13
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
11
14
|
const exchangeCardBottom = useMemo(() => {
|
|
12
15
|
if (isCTAVisible) {
|
|
13
16
|
switch (status) {
|
|
@@ -21,18 +24,13 @@ export const ExchangeCard = (props) => {
|
|
|
21
24
|
} }, "Dispute"))));
|
|
22
25
|
}
|
|
23
26
|
case subgraph.ExchangeState.COMMITTED: {
|
|
24
|
-
const { redeemButtonConfig
|
|
27
|
+
const { redeemButtonConfig } = props;
|
|
25
28
|
return (React.createElement(ExchangeButtonWrapper, null,
|
|
26
29
|
React.createElement(CommittedButtonWrapper, null,
|
|
27
30
|
React.createElement(Button, { variant: "primaryFill", ...redeemButtonConfig, onClick: (e) => {
|
|
28
31
|
e.stopPropagation();
|
|
29
32
|
redeemButtonConfig?.onClick?.(e);
|
|
30
|
-
} }, "Redeem")
|
|
31
|
-
React.createElement(Button, { variant: "secondaryInverted", ...cancelButtonConfig, onClick: (e) => {
|
|
32
|
-
e.stopPropagation();
|
|
33
|
-
cancelButtonConfig?.onClick?.(e);
|
|
34
|
-
} }, "Cancel")),
|
|
35
|
-
React.createElement(CommittedBottomText, null, bottomText)));
|
|
33
|
+
} }, "Redeem"))));
|
|
36
34
|
}
|
|
37
35
|
default:
|
|
38
36
|
return null;
|
|
@@ -42,15 +40,15 @@ export const ExchangeCard = (props) => {
|
|
|
42
40
|
const [height, setHeight] = useState(null);
|
|
43
41
|
const isNotImageLoaded = !isImageLoaded;
|
|
44
42
|
const isPhygital = productType === ProductType.phygital;
|
|
45
|
-
return (React.createElement(ExchangeCardWrapper, { "data-card": dataCard, "$isHoverDisabled": isHoverDisabled, "data-testid": dataTestId, onClick: (e) => {
|
|
43
|
+
return (React.createElement(ExchangeCardWrapper, { "data-card": dataCard, "$isHoverDisabled": isHoverDisabled, "data-testid": dataTestId, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), onClick: (e) => {
|
|
46
44
|
e.preventDefault();
|
|
47
45
|
onCardClick?.(id);
|
|
48
46
|
} },
|
|
49
47
|
React.createElement(ExchangeCardTop, { "$isNotImageLoaded": isNotImageLoaded },
|
|
50
48
|
React.createElement(ExchangeImageWrapper, null,
|
|
51
|
-
|
|
52
|
-
React.createElement(
|
|
53
|
-
React.createElement(ExchangeStatus, { "$status": status }, status.toLowerCase())),
|
|
49
|
+
React.createElement(Image, { ...imageProps, onLoaded: () => setIsImageLoaded(true) }),
|
|
50
|
+
isCTAVisible && isConnected && (React.createElement(CTAOnHoverContainerExchangeCard, { "$isHovered": isHovered }, isCTAVisible && isConnected ? (React.createElement(ExchangeCTAWrapper, { "data-cta-wrapper": true }, exchangeCardBottom)) : isCTAVisible && !isConnected && CTAIfDisconnected ? (CTAIfDisconnected) : null))),
|
|
51
|
+
React.createElement(ExchangeStatus, { "$status": status, "$side": "left" }, status.toLowerCase())),
|
|
54
52
|
React.createElement("div", { style: { height: height + "px" } }),
|
|
55
53
|
React.createElement(ExchangeCardBottom, null,
|
|
56
54
|
React.createElement(ExchangeCardBottomContent, { ref: (div) => {
|
|
@@ -59,21 +57,19 @@ export const ExchangeCard = (props) => {
|
|
|
59
57
|
setHeight(height ? Math.min(div.clientHeight, height) : div.clientHeight);
|
|
60
58
|
} },
|
|
61
59
|
React.createElement(ExchangeCarData, null,
|
|
62
|
-
React.createElement(
|
|
60
|
+
React.createElement(Grid, { flexDirection: "column", alignItems: "flex-start", onClick: (e) => {
|
|
63
61
|
e.stopPropagation();
|
|
64
62
|
onAvatarNameClick?.();
|
|
65
63
|
} },
|
|
66
|
-
React.createElement(
|
|
67
|
-
React.createElement(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
} }))),
|
|
77
|
-
isCTAVisible && isConnected ? (React.createElement(ExchangeCTAWrapper, { "data-cta-wrapper": true }, exchangeCardBottom)) : isCTAVisible && !isConnected && CTAIfDisconnected ? (CTAIfDisconnected) : null)));
|
|
64
|
+
React.createElement(ExchangeCardTitleWrapper, null,
|
|
65
|
+
React.createElement(ExchangeCardTitle, { fontSize: "0.75rem", fontWeight: "600" }, title),
|
|
66
|
+
React.createElement(ExchangeCardPriceWrapper, { justifyContent: "flex-end", alignItems: "center", width: "40%" },
|
|
67
|
+
React.createElement(CurrencyDisplay, { value: price, currency: currency, fontSize: "0.875rem", iconSize: 16, gap: "0.3125rem", style: {
|
|
68
|
+
wordBreak: "break-all",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
justifyContent: "center",
|
|
71
|
+
fontWeight: "600"
|
|
72
|
+
} }))),
|
|
73
|
+
isPhygital && React.createElement(PhygitalLabel, null)))))));
|
|
78
74
|
};
|
|
79
75
|
//# sourceMappingURL=ExchangeCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExchangeCard.js","sourceRoot":"","sources":["../../../../src/components/exchangeCard/ExchangeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAEL,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAc,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"ExchangeCard.js","sourceRoot":"","sources":["../../../../src/components/exchangeCard/ExchangeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAEL,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAc,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EACL,+BAA+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KAAK,CACY;4BACpB,oBAAC,wBAAwB,IACvB,cAAc,EAAC,UAAU,EACzB,UAAU,EAAC,QAAQ,EACnB,KAAK,EAAC,KAAK;gCAEX,oBAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,EAAE,EACZ,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE;wCACL,SAAS,EAAE,WAAW;wCACtB,UAAU,EAAE,QAAQ;wCACpB,cAAc,EAAE,QAAQ;wCACxB,UAAU,EAAE,KAAK;qCAClB,GACD,CACuB,CACF;wBAC1B,UAAU,IAAI,oBAAC,aAAa,OAAG,CAC3B,CACS,CACQ,CACT,CACD,CACvB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,12 +1,153 @@
|
|
|
1
1
|
import { ExchangeCardStatus } from "./types";
|
|
2
|
-
export declare const ExchangeCardLabelWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, never>> & string;
|
|
5
|
-
export declare const ExchangeCreator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
2
|
export declare const ExchangeCreatorAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
3
|
export declare const ExchangeCreatorName: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
4
|
export declare const ExchangeTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
-
export declare const ExchangeCardPriceWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<
|
|
5
|
+
export declare const ExchangeCardPriceWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
style?: import("styled-components").CSSProperties | undefined;
|
|
9
|
+
onClick?: import("react").ElementRef<"div">["onclick"];
|
|
10
|
+
} & {
|
|
11
|
+
maxWidth?: import("csstype").Property.MaxWidth<number | (string & {})> | undefined;
|
|
12
|
+
height?: import("csstype").Property.Height<number | (string & {})> | undefined;
|
|
13
|
+
width?: import("csstype").Property.Width<number | (string & {})> | undefined;
|
|
14
|
+
flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
|
|
15
|
+
padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
|
|
16
|
+
gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
|
|
17
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
18
|
+
alignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
19
|
+
columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
|
|
20
|
+
flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
|
|
21
|
+
flexDirection?: import("csstype").Property.FlexDirection | undefined;
|
|
22
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
23
|
+
flexShrink?: import("csstype").Property.FlexShrink | undefined;
|
|
24
|
+
flexWrap?: import("csstype").Property.FlexWrap | undefined;
|
|
25
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
26
|
+
justifySelf?: import("csstype").Property.JustifySelf | undefined;
|
|
27
|
+
marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
|
|
28
|
+
marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
|
|
29
|
+
marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
|
|
30
|
+
marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
|
|
31
|
+
maxHeight?: import("csstype").Property.MaxHeight<number | (string & {})> | undefined;
|
|
32
|
+
minHeight?: import("csstype").Property.MinHeight<number | (string & {})> | undefined;
|
|
33
|
+
minWidth?: import("csstype").Property.MinWidth<number | (string & {})> | undefined;
|
|
34
|
+
paddingBottom?: import("csstype").Property.PaddingBottom<number | (string & {})> | undefined;
|
|
35
|
+
paddingLeft?: import("csstype").Property.PaddingLeft<number | (string & {})> | undefined;
|
|
36
|
+
paddingRight?: import("csstype").Property.PaddingRight<number | (string & {})> | undefined;
|
|
37
|
+
paddingTop?: import("csstype").Property.PaddingTop<number | (string & {})> | undefined;
|
|
38
|
+
rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
|
|
39
|
+
margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
|
|
40
|
+
} & import("react").HTMLAttributes<unknown> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
41
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
42
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
as?: React.ElementType;
|
|
45
|
+
style?: import("styled-components").CSSProperties | undefined;
|
|
46
|
+
onClick?: import("react").ElementRef<"div">["onclick"];
|
|
47
|
+
} & {
|
|
48
|
+
maxWidth?: import("csstype").Property.MaxWidth<number | (string & {})> | undefined;
|
|
49
|
+
height?: import("csstype").Property.Height<number | (string & {})> | undefined;
|
|
50
|
+
width?: import("csstype").Property.Width<number | (string & {})> | undefined;
|
|
51
|
+
flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
|
|
52
|
+
padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
|
|
53
|
+
gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
|
|
54
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
55
|
+
alignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
56
|
+
columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
|
|
57
|
+
flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
|
|
58
|
+
flexDirection?: import("csstype").Property.FlexDirection | undefined;
|
|
59
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
60
|
+
flexShrink?: import("csstype").Property.FlexShrink | undefined;
|
|
61
|
+
flexWrap?: import("csstype").Property.FlexWrap | undefined;
|
|
62
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
63
|
+
justifySelf?: import("csstype").Property.JustifySelf | undefined;
|
|
64
|
+
marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
|
|
65
|
+
marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
|
|
66
|
+
marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
|
|
67
|
+
marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
|
|
68
|
+
maxHeight?: import("csstype").Property.MaxHeight<number | (string & {})> | undefined;
|
|
69
|
+
minHeight?: import("csstype").Property.MinHeight<number | (string & {})> | undefined;
|
|
70
|
+
minWidth?: import("csstype").Property.MinWidth<number | (string & {})> | undefined;
|
|
71
|
+
paddingBottom?: import("csstype").Property.PaddingBottom<number | (string & {})> | undefined;
|
|
72
|
+
paddingLeft?: import("csstype").Property.PaddingLeft<number | (string & {})> | undefined;
|
|
73
|
+
paddingRight?: import("csstype").Property.PaddingRight<number | (string & {})> | undefined;
|
|
74
|
+
paddingTop?: import("csstype").Property.PaddingTop<number | (string & {})> | undefined;
|
|
75
|
+
rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
|
|
76
|
+
margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
|
|
77
|
+
} & import("react").HTMLAttributes<unknown> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
78
|
+
export declare const ExchangeCardTitleWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
79
|
+
children?: React.ReactNode;
|
|
80
|
+
as?: React.ElementType;
|
|
81
|
+
style?: import("styled-components").CSSProperties | undefined;
|
|
82
|
+
onClick?: import("react").ElementRef<"div">["onclick"];
|
|
83
|
+
} & {
|
|
84
|
+
maxWidth?: import("csstype").Property.MaxWidth<number | (string & {})> | undefined;
|
|
85
|
+
height?: import("csstype").Property.Height<number | (string & {})> | undefined;
|
|
86
|
+
width?: import("csstype").Property.Width<number | (string & {})> | undefined;
|
|
87
|
+
flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
|
|
88
|
+
padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
|
|
89
|
+
gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
|
|
90
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
91
|
+
alignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
92
|
+
columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
|
|
93
|
+
flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
|
|
94
|
+
flexDirection?: import("csstype").Property.FlexDirection | undefined;
|
|
95
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
96
|
+
flexShrink?: import("csstype").Property.FlexShrink | undefined;
|
|
97
|
+
flexWrap?: import("csstype").Property.FlexWrap | undefined;
|
|
98
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
99
|
+
justifySelf?: import("csstype").Property.JustifySelf | undefined;
|
|
100
|
+
marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
|
|
101
|
+
marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
|
|
102
|
+
marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
|
|
103
|
+
marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
|
|
104
|
+
maxHeight?: import("csstype").Property.MaxHeight<number | (string & {})> | undefined;
|
|
105
|
+
minHeight?: import("csstype").Property.MinHeight<number | (string & {})> | undefined;
|
|
106
|
+
minWidth?: import("csstype").Property.MinWidth<number | (string & {})> | undefined;
|
|
107
|
+
paddingBottom?: import("csstype").Property.PaddingBottom<number | (string & {})> | undefined;
|
|
108
|
+
paddingLeft?: import("csstype").Property.PaddingLeft<number | (string & {})> | undefined;
|
|
109
|
+
paddingRight?: import("csstype").Property.PaddingRight<number | (string & {})> | undefined;
|
|
110
|
+
paddingTop?: import("csstype").Property.PaddingTop<number | (string & {})> | undefined;
|
|
111
|
+
rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
|
|
112
|
+
margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
|
|
113
|
+
} & import("react").HTMLAttributes<unknown> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
114
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
115
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
116
|
+
children?: React.ReactNode;
|
|
117
|
+
as?: React.ElementType;
|
|
118
|
+
style?: import("styled-components").CSSProperties | undefined;
|
|
119
|
+
onClick?: import("react").ElementRef<"div">["onclick"];
|
|
120
|
+
} & {
|
|
121
|
+
maxWidth?: import("csstype").Property.MaxWidth<number | (string & {})> | undefined;
|
|
122
|
+
height?: import("csstype").Property.Height<number | (string & {})> | undefined;
|
|
123
|
+
width?: import("csstype").Property.Width<number | (string & {})> | undefined;
|
|
124
|
+
flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
|
|
125
|
+
padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
|
|
126
|
+
gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
|
|
127
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
128
|
+
alignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
129
|
+
columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
|
|
130
|
+
flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
|
|
131
|
+
flexDirection?: import("csstype").Property.FlexDirection | undefined;
|
|
132
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
133
|
+
flexShrink?: import("csstype").Property.FlexShrink | undefined;
|
|
134
|
+
flexWrap?: import("csstype").Property.FlexWrap | undefined;
|
|
135
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
136
|
+
justifySelf?: import("csstype").Property.JustifySelf | undefined;
|
|
137
|
+
marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
|
|
138
|
+
marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
|
|
139
|
+
marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
|
|
140
|
+
marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
|
|
141
|
+
maxHeight?: import("csstype").Property.MaxHeight<number | (string & {})> | undefined;
|
|
142
|
+
minHeight?: import("csstype").Property.MinHeight<number | (string & {})> | undefined;
|
|
143
|
+
minWidth?: import("csstype").Property.MinWidth<number | (string & {})> | undefined;
|
|
144
|
+
paddingBottom?: import("csstype").Property.PaddingBottom<number | (string & {})> | undefined;
|
|
145
|
+
paddingLeft?: import("csstype").Property.PaddingLeft<number | (string & {})> | undefined;
|
|
146
|
+
paddingRight?: import("csstype").Property.PaddingRight<number | (string & {})> | undefined;
|
|
147
|
+
paddingTop?: import("csstype").Property.PaddingTop<number | (string & {})> | undefined;
|
|
148
|
+
rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
|
|
149
|
+
margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
|
|
150
|
+
} & import("react").HTMLAttributes<unknown> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
10
151
|
export declare const ExchangeCardPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
152
|
export declare const ExchangeCarData: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
153
|
export declare const ExchangeCardBottom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -22,8 +163,89 @@ export declare const RedeemButtonWrapper: import("styled-components/dist/types")
|
|
|
22
163
|
export declare const CommittedButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
23
164
|
export declare const ExchangeStatus: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
24
165
|
$status: ExchangeCardStatus;
|
|
166
|
+
$side: "left" | "right";
|
|
25
167
|
}>> & string;
|
|
26
168
|
export declare const CommittedBottomText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
27
169
|
export declare const ExchangeImageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
170
|
export declare const ExchangeCTAWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
171
|
+
export declare const ExchangeCardTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<{
|
|
172
|
+
width?: import("csstype").Property.Width<number | (string & {})> | undefined;
|
|
173
|
+
color?: import("csstype").Property.Color | undefined;
|
|
174
|
+
cursor?: import("csstype").Property.Cursor | undefined;
|
|
175
|
+
display?: import("csstype").Property.Display | undefined;
|
|
176
|
+
fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
|
|
177
|
+
fontWeight?: import("csstype").Property.FontWeight | undefined;
|
|
178
|
+
letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
|
|
179
|
+
opacity?: import("csstype").Property.Opacity | undefined;
|
|
180
|
+
flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
|
|
181
|
+
padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
|
|
182
|
+
gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
|
|
183
|
+
background?: import("csstype").Property.Background<number | (string & {})> | undefined;
|
|
184
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
185
|
+
columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
|
|
186
|
+
flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
|
|
187
|
+
flexDirection?: import("csstype").Property.FlexDirection | undefined;
|
|
188
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
189
|
+
flexShrink?: import("csstype").Property.FlexShrink | undefined;
|
|
190
|
+
flexWrap?: import("csstype").Property.FlexWrap | undefined;
|
|
191
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
192
|
+
lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
|
|
193
|
+
marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
|
|
194
|
+
marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
|
|
195
|
+
marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
|
|
196
|
+
marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
|
|
197
|
+
rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
|
|
198
|
+
textAlign?: import("csstype").Property.TextAlign | undefined;
|
|
199
|
+
margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
|
|
200
|
+
} & import("react").HTMLAttributes<unknown> & {
|
|
201
|
+
children?: string | React.ReactNode;
|
|
202
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
203
|
+
style?: React.CSSProperties;
|
|
204
|
+
onClick?: () => void;
|
|
205
|
+
className?: string;
|
|
206
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
207
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
208
|
+
}, Omit<{
|
|
209
|
+
width?: import("csstype").Property.Width<number | (string & {})> | undefined;
|
|
210
|
+
color?: import("csstype").Property.Color | undefined;
|
|
211
|
+
cursor?: import("csstype").Property.Cursor | undefined;
|
|
212
|
+
display?: import("csstype").Property.Display | undefined;
|
|
213
|
+
fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
|
|
214
|
+
fontWeight?: import("csstype").Property.FontWeight | undefined;
|
|
215
|
+
letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
|
|
216
|
+
opacity?: import("csstype").Property.Opacity | undefined;
|
|
217
|
+
flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
|
|
218
|
+
padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
|
|
219
|
+
gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
|
|
220
|
+
background?: import("csstype").Property.Background<number | (string & {})> | undefined;
|
|
221
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
|
222
|
+
columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
|
|
223
|
+
flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
|
|
224
|
+
flexDirection?: import("csstype").Property.FlexDirection | undefined;
|
|
225
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
226
|
+
flexShrink?: import("csstype").Property.FlexShrink | undefined;
|
|
227
|
+
flexWrap?: import("csstype").Property.FlexWrap | undefined;
|
|
228
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
|
229
|
+
lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
|
|
230
|
+
marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
|
|
231
|
+
marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
|
|
232
|
+
marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
|
|
233
|
+
marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
|
|
234
|
+
rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
|
|
235
|
+
textAlign?: import("csstype").Property.TextAlign | undefined;
|
|
236
|
+
margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
|
|
237
|
+
} & import("react").HTMLAttributes<unknown> & {
|
|
238
|
+
children?: string | React.ReactNode;
|
|
239
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
240
|
+
style?: React.CSSProperties;
|
|
241
|
+
onClick?: () => void;
|
|
242
|
+
className?: string;
|
|
243
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
244
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
245
|
+
}>, never>, never>, never>> & string;
|
|
246
|
+
export declare const CTAOnHoverContainerExchangeCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isHovered"> & {
|
|
247
|
+
$isHovered: boolean;
|
|
248
|
+
}, "ref"> & {
|
|
249
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
250
|
+
}, never>> & string;
|
|
29
251
|
//# sourceMappingURL=ExchangeCard.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExchangeCard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/exchangeCard/ExchangeCard.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ExchangeCard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/exchangeCard/ExchangeCard.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAU7C,eAAO,MAAM,qBAAqB,6NAWjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,6NAU/B,CAAC;AAEF,eAAO,MAAM,aAAa,6NAKzB,CAAC;AAEF,eAAO,MAAM,wBAAwB;eAmH5B,MAAO,SAAS;SAAQ,MAAO,WACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eADK,MAAO,SAAS;SAAQ,MAAO,WACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4IAhHH,CAAC;AAEF,eAAO,MAAM,wBAAwB;eA6G5B,MAAO,SAAS;SAAQ,MAAO,WACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eADK,MAAO,SAAS;SAAQ,MAAO,WACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4IA1GH,CAAC;AAEF,eAAO,MAAM,iBAAiB,6NAM7B,CAAC;AAEF,eAAO,MAAM,eAAe,6NAG3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,6NAQ9B,CAAC;AACF,eAAO,MAAM,yBAAyB,6NAQrC,CAAC;AAEF,eAAO,MAAM,mBAAmB;sBACZ,OAAO;YAqD1B,CAAC;AAEF,eAAO,MAAM,eAAe;uBAAmC,OAAO;YASrE,CAAC;AACF,eAAO,MAAM,qBAAqB,6NAGjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,6NAM/B,CAAC;AACF,eAAO,MAAM,sBAAsB,6NAMlC,CAAC;AAEF,eAAO,MAAM,cAAc;aAChB,kBAAkB;WACpB,MAAM,GAAG,OAAO;YA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