@mintmoney/react 0.1.0-alpha.3 → 0.1.0-alpha.31
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/README.md +19 -0
- package/dist/css/styles.css +225 -7
- package/dist/esm/api/checkouts.js +17 -0
- package/dist/esm/api/checkouts.js.map +1 -0
- package/dist/esm/api/generated.js +295 -0
- package/dist/esm/api/generated.js.map +1 -0
- package/dist/esm/api/index.js +15 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/payments.js +52 -0
- package/dist/esm/api/payments.js.map +1 -0
- package/dist/esm/api/types.js +8 -0
- package/dist/esm/api/types.js.map +1 -0
- package/dist/esm/checkout/container.js +10 -0
- package/dist/esm/checkout/container.js.map +1 -0
- package/dist/esm/checkout/index.js +48 -0
- package/dist/esm/checkout/index.js.map +1 -0
- package/dist/esm/checkout/modal.js +91 -0
- package/dist/esm/checkout/modal.js.map +1 -0
- package/dist/esm/checkout/views/amount-header.js +42 -0
- package/dist/esm/checkout/views/amount-header.js.map +1 -0
- package/dist/esm/checkout/views/back.js +8 -0
- package/dist/esm/checkout/views/back.js.map +1 -0
- package/dist/esm/checkout/views/card-intent/details.js +36 -0
- package/dist/esm/checkout/views/card-intent/details.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/direct-details.js +318 -0
- package/dist/esm/checkout/views/crypto-intent/direct-details.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/methods.js +52 -0
- package/dist/esm/checkout/views/crypto-intent/methods.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/processing.js +54 -0
- package/dist/esm/checkout/views/crypto-intent/processing.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/success.js +41 -0
- package/dist/esm/checkout/views/crypto-intent/success.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/test-payment.js +35 -0
- package/dist/esm/checkout/views/crypto-intent/test-payment.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/wallet-payment-confirmation-amount.js +30 -0
- package/dist/esm/checkout/views/crypto-intent/wallet-payment-confirmation-amount.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/wallet-payment-options.js +680 -0
- package/dist/esm/checkout/views/crypto-intent/wallet-payment-options.js.map +1 -0
- package/dist/esm/checkout/views/crypto-intent/wallet-select.js +35 -0
- package/dist/esm/checkout/views/crypto-intent/wallet-select.js.map +1 -0
- package/dist/esm/checkout/views/failed.js +26 -0
- package/dist/esm/checkout/views/failed.js.map +1 -0
- package/dist/esm/checkout/views/fiat-intent/bank-payment.js +35 -0
- package/dist/esm/checkout/views/fiat-intent/bank-payment.js.map +1 -0
- package/dist/esm/checkout/views/initial.js +27 -0
- package/dist/esm/checkout/views/initial.js.map +1 -0
- package/dist/esm/checkout/views/method-select.js +23 -0
- package/dist/esm/checkout/views/method-select.js.map +1 -0
- package/dist/esm/checkout/views/restart.js +10 -0
- package/dist/esm/checkout/views/restart.js.map +1 -0
- package/dist/esm/components/buttons/async-button.js +16 -0
- package/dist/esm/components/buttons/async-button.js.map +1 -0
- package/dist/esm/components/buttons/index.js +98 -15
- package/dist/esm/components/buttons/index.js.map +1 -1
- package/dist/esm/components/buttons/use-async-button.js +44 -0
- package/dist/esm/components/buttons/use-async-button.js.map +1 -0
- package/dist/esm/components/crypto/currency-selector.js +26 -0
- package/dist/esm/components/crypto/currency-selector.js.map +1 -0
- package/dist/esm/components/icons/alert.js +20 -0
- package/dist/esm/components/icons/alert.js.map +1 -0
- package/dist/esm/components/icons/checkMark.js +1 -1
- package/dist/esm/components/icons/checkMark.js.map +1 -1
- package/dist/esm/components/icons/clipboard-add.js +20 -0
- package/dist/esm/components/icons/clipboard-add.js.map +1 -0
- package/dist/esm/components/icons/clipboard-check.js +20 -0
- package/dist/esm/components/icons/clipboard-check.js.map +1 -0
- package/dist/esm/components/icons/close.js +1 -1
- package/dist/esm/components/icons/close.js.map +1 -1
- package/dist/esm/components/icons/index.js +5 -0
- package/dist/esm/components/icons/index.js.map +1 -1
- package/dist/esm/components/icons/link.js +20 -0
- package/dist/esm/components/icons/link.js.map +1 -0
- package/dist/esm/components/icons/loading.js +26 -0
- package/dist/esm/components/icons/loading.js.map +1 -0
- package/dist/esm/components/inputs/index.js +32 -0
- package/dist/esm/components/inputs/index.js.map +1 -0
- package/dist/esm/components/lists/index.js +1 -1
- package/dist/esm/components/lists/index.js.map +1 -1
- package/dist/esm/components/loading/index.js.map +1 -1
- package/dist/esm/components/modals/modal-with-views.js +4 -3
- package/dist/esm/components/modals/modal-with-views.js.map +1 -1
- package/dist/esm/components/modals/modal.js +2 -2
- package/dist/esm/components/modals/modal.js.map +1 -1
- package/dist/esm/components/modals/use-modal-with-views.js +11 -2
- package/dist/esm/components/modals/use-modal-with-views.js.map +1 -1
- package/dist/esm/components/text/index.js +1 -0
- package/dist/esm/components/text/index.js.map +1 -1
- package/dist/esm/components/wallet-selector/component.js +61 -0
- package/dist/esm/components/wallet-selector/component.js.map +1 -0
- package/dist/esm/components/wallet-selector/domain.js +2 -0
- package/dist/esm/components/wallet-selector/domain.js.map +1 -0
- package/dist/esm/components/wallet-selector/helper.js +12 -0
- package/dist/esm/components/wallet-selector/helper.js.map +1 -0
- package/dist/esm/components/wallet-selector/index.js +5 -0
- package/dist/esm/components/wallet-selector/index.js.map +1 -0
- package/dist/esm/components/wallet-selector/provider.js +15 -0
- package/dist/esm/components/wallet-selector/provider.js.map +1 -0
- package/dist/esm/components/wallet-selector/schemas.js +6 -0
- package/dist/esm/components/wallet-selector/schemas.js.map +1 -0
- package/dist/esm/components/wallet-selector/store.js +134 -0
- package/dist/esm/components/wallet-selector/store.js.map +1 -0
- package/dist/esm/components/wallet-selector/util/exceptions.js +16 -0
- package/dist/esm/components/wallet-selector/util/exceptions.js.map +1 -0
- package/dist/esm/components/wallet-selector/wallets/index.js +3 -0
- package/dist/esm/components/wallet-selector/wallets/index.js.map +1 -0
- package/dist/esm/components/wallet-selector/wallets/wagmi/index.js +218 -0
- package/dist/esm/components/wallet-selector/wallets/wagmi/index.js.map +1 -0
- package/dist/esm/components/wallet-selector/wallets/wagmi/usdt-abi.json +671 -0
- package/dist/esm/config.js +10 -1
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/context.js +2 -1
- package/dist/esm/context.js.map +1 -1
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrations/evm-chain.js +22 -0
- package/dist/esm/integrations/evm-chain.js.map +1 -0
- package/dist/esm/integrations/index.js +4 -0
- package/dist/esm/integrations/index.js.map +1 -0
- package/dist/esm/integrations/instaxchange.js +44 -0
- package/dist/esm/integrations/instaxchange.js.map +1 -0
- package/dist/esm/integrations/lifi.js +200 -0
- package/dist/esm/integrations/lifi.js.map +1 -0
- package/dist/esm/integrations/types.js +2 -0
- package/dist/esm/integrations/types.js.map +1 -0
- package/dist/esm/state/checkout/payment-attempt.js +43 -0
- package/dist/esm/state/checkout/payment-attempt.js.map +1 -0
- package/dist/esm/state/checkout/store.js +584 -0
- package/dist/esm/state/checkout/store.js.map +1 -0
- package/dist/esm/themes/default.js +42 -0
- package/dist/esm/themes/default.js.map +1 -1
- package/dist/esm/themes/types.js +1 -1
- package/dist/esm/themes/types.js.map +1 -1
- package/dist/esm/utils/cn.js +4 -0
- package/dist/esm/utils/cn.js.map +1 -0
- package/dist/esm/utils/string.js +34 -0
- package/dist/esm/utils/string.js.map +1 -0
- package/dist/types/api/checkouts.d.ts +3 -0
- package/dist/types/api/checkouts.d.ts.map +1 -0
- package/dist/types/api/generated.d.ts +367 -0
- package/dist/types/api/generated.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +6 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/api/payments.d.ts +24 -0
- package/dist/types/api/payments.d.ts.map +1 -0
- package/dist/types/api/types.d.ts +32 -0
- package/dist/types/api/types.d.ts.map +1 -0
- package/dist/types/checkout/container.d.ts +2 -0
- package/dist/types/checkout/container.d.ts.map +1 -0
- package/dist/types/checkout/index.d.ts +11 -0
- package/dist/types/checkout/index.d.ts.map +1 -0
- package/dist/types/checkout/modal.d.ts +12 -0
- package/dist/types/checkout/modal.d.ts.map +1 -0
- package/dist/types/checkout/views/amount-header.d.ts +9 -0
- package/dist/types/checkout/views/amount-header.d.ts.map +1 -0
- package/dist/types/checkout/views/back.d.ts +7 -0
- package/dist/types/checkout/views/back.d.ts.map +1 -0
- package/dist/types/checkout/views/card-intent/details.d.ts +3 -0
- package/dist/types/checkout/views/card-intent/details.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/direct-details.d.ts +3 -0
- package/dist/types/checkout/views/crypto-intent/direct-details.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/methods.d.ts +3 -0
- package/dist/types/checkout/views/crypto-intent/methods.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/processing.d.ts +3 -0
- package/dist/types/checkout/views/crypto-intent/processing.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/success.d.ts +8 -0
- package/dist/types/checkout/views/crypto-intent/success.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/test-payment.d.ts +3 -0
- package/dist/types/checkout/views/crypto-intent/test-payment.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/wallet-payment-confirmation-amount.d.ts +13 -0
- package/dist/types/checkout/views/crypto-intent/wallet-payment-confirmation-amount.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/wallet-payment-options.d.ts +3 -0
- package/dist/types/checkout/views/crypto-intent/wallet-payment-options.d.ts.map +1 -0
- package/dist/types/checkout/views/crypto-intent/wallet-select.d.ts +3 -0
- package/dist/types/checkout/views/crypto-intent/wallet-select.d.ts.map +1 -0
- package/dist/types/checkout/views/failed.d.ts +2 -0
- package/dist/types/checkout/views/failed.d.ts.map +1 -0
- package/dist/types/checkout/views/fiat-intent/bank-payment.d.ts +2 -0
- package/dist/types/checkout/views/fiat-intent/bank-payment.d.ts.map +1 -0
- package/dist/types/checkout/views/initial.d.ts +7 -0
- package/dist/types/checkout/views/initial.d.ts.map +1 -0
- package/dist/types/checkout/views/method-select.d.ts +3 -0
- package/dist/types/checkout/views/method-select.d.ts.map +1 -0
- package/dist/types/checkout/views/restart.d.ts +4 -0
- package/dist/types/checkout/views/restart.d.ts.map +1 -0
- package/dist/types/components/buttons/async-button.d.ts +14 -0
- package/dist/types/components/buttons/async-button.d.ts.map +1 -0
- package/dist/types/components/buttons/index.d.ts +21 -3
- package/dist/types/components/buttons/index.d.ts.map +1 -1
- package/dist/types/components/buttons/use-async-button.d.ts +16 -0
- package/dist/types/components/buttons/use-async-button.d.ts.map +1 -0
- package/dist/types/components/crypto/currency-selector.d.ts +11 -0
- package/dist/types/components/crypto/currency-selector.d.ts.map +1 -0
- package/dist/types/components/icons/alert.d.ts +7 -0
- package/dist/types/components/icons/alert.d.ts.map +1 -0
- package/dist/types/components/icons/checkMark.d.ts.map +1 -1
- package/dist/types/components/icons/clipboard-add.d.ts +6 -0
- package/dist/types/components/icons/clipboard-add.d.ts.map +1 -0
- package/dist/types/components/icons/clipboard-check.d.ts +6 -0
- package/dist/types/components/icons/clipboard-check.d.ts.map +1 -0
- package/dist/types/components/icons/close.d.ts.map +1 -1
- package/dist/types/components/icons/index.d.ts +5 -0
- package/dist/types/components/icons/index.d.ts.map +1 -1
- package/dist/types/components/icons/link.d.ts +6 -0
- package/dist/types/components/icons/link.d.ts.map +1 -0
- package/dist/types/components/icons/loading.d.ts +6 -0
- package/dist/types/components/icons/loading.d.ts.map +1 -0
- package/dist/types/components/inputs/index.d.ts +7 -0
- package/dist/types/components/inputs/index.d.ts.map +1 -0
- package/dist/types/components/lists/index.d.ts +2 -1
- package/dist/types/components/lists/index.d.ts.map +1 -1
- package/dist/types/components/loading/index.d.ts.map +1 -1
- package/dist/types/components/modals/modal-with-views.d.ts +1 -0
- package/dist/types/components/modals/modal-with-views.d.ts.map +1 -1
- package/dist/types/components/modals/modal.d.ts.map +1 -1
- package/dist/types/components/modals/use-modal-with-views.d.ts.map +1 -1
- package/dist/types/components/text/index.d.ts.map +1 -1
- package/dist/types/components/wallet-selector/component.d.ts +13 -0
- package/dist/types/components/wallet-selector/component.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/domain.d.ts +95 -0
- package/dist/types/components/wallet-selector/domain.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/helper.d.ts +4 -0
- package/dist/types/components/wallet-selector/helper.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/index.d.ts +7 -0
- package/dist/types/components/wallet-selector/index.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/provider.d.ts +10 -0
- package/dist/types/components/wallet-selector/provider.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/schemas.d.ts +4 -0
- package/dist/types/components/wallet-selector/schemas.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/store.d.ts +33 -0
- package/dist/types/components/wallet-selector/store.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/util/exceptions.d.ts +7 -0
- package/dist/types/components/wallet-selector/util/exceptions.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/wallets/index.d.ts +3 -0
- package/dist/types/components/wallet-selector/wallets/index.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts +483 -0
- package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts.map +1 -0
- package/dist/types/config.d.ts +70 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrations/evm-chain.d.ts +3 -0
- package/dist/types/integrations/evm-chain.d.ts.map +1 -0
- package/dist/types/integrations/index.d.ts +4 -0
- package/dist/types/integrations/index.d.ts.map +1 -0
- package/dist/types/integrations/instaxchange.d.ts +4 -0
- package/dist/types/integrations/instaxchange.d.ts.map +1 -0
- package/dist/types/integrations/lifi.d.ts +14 -0
- package/dist/types/integrations/lifi.d.ts.map +1 -0
- package/dist/types/integrations/types.d.ts +5 -0
- package/dist/types/integrations/types.d.ts.map +1 -0
- package/dist/types/state/checkout/payment-attempt.d.ts +9 -0
- package/dist/types/state/checkout/payment-attempt.d.ts.map +1 -0
- package/dist/types/state/checkout/store.d.ts +81 -0
- package/dist/types/state/checkout/store.d.ts.map +1 -0
- package/dist/types/themes/default.d.ts +2 -2
- package/dist/types/themes/default.d.ts.map +1 -1
- package/dist/types/themes/types.d.ts +9 -0
- package/dist/types/themes/types.d.ts.map +1 -1
- package/dist/types/utils/cn.d.ts +4 -0
- package/dist/types/utils/cn.d.ts.map +1 -0
- package/dist/types/utils/string.d.ts +23 -0
- package/dist/types/utils/string.d.ts.map +1 -0
- package/package.json +84 -61
- package/dist/esm/components/buttons/buttons.stories.js +0 -18
- package/dist/esm/components/buttons/buttons.stories.js.map +0 -1
- package/dist/esm/components/lists/lists.stories.js +0 -42
- package/dist/esm/components/lists/lists.stories.js.map +0 -1
- package/dist/esm/components/loading/loading.stories.js +0 -8
- package/dist/esm/components/loading/loading.stories.js.map +0 -1
- package/dist/esm/components/text/text.stories.js +0 -34
- package/dist/esm/components/text/text.stories.js.map +0 -1
- package/dist/esm/exports/components.js +0 -2
- package/dist/esm/exports/components.js.map +0 -1
- package/dist/esm/exports/config.js +0 -3
- package/dist/esm/exports/config.js.map +0 -1
- package/dist/esm/exports/index.js +0 -4
- package/dist/esm/exports/index.js.map +0 -1
- package/dist/esm/exports/themes.js +0 -2
- package/dist/esm/exports/themes.js.map +0 -1
- package/dist/types/components/buttons/buttons.stories.d.ts +0 -7
- package/dist/types/components/buttons/buttons.stories.d.ts.map +0 -1
- package/dist/types/components/lists/lists.stories.d.ts +0 -27
- package/dist/types/components/lists/lists.stories.d.ts.map +0 -1
- package/dist/types/components/loading/loading.stories.d.ts +0 -4
- package/dist/types/components/loading/loading.stories.d.ts.map +0 -1
- package/dist/types/components/text/text.stories.d.ts +0 -5
- package/dist/types/components/text/text.stories.d.ts.map +0 -1
- package/dist/types/exports/components.d.ts +0 -2
- package/dist/types/exports/components.d.ts.map +0 -1
- package/dist/types/exports/config.d.ts +0 -3
- package/dist/types/exports/config.d.ts.map +0 -1
- package/dist/types/exports/index.d.ts +0 -5
- package/dist/types/exports/index.d.ts.map +0 -1
- package/dist/types/exports/themes.d.ts +0 -2
- package/dist/types/exports/themes.d.ts.map +0 -1
- package/src/components/index.ts +0 -6
- package/src/components/modals/index.ts +0 -3
- package/src/config.ts +0 -29
- package/src/exports/components.ts +0 -1
- package/src/exports/config.ts +0 -2
- package/src/exports/index.ts +0 -7
- package/src/exports/themes.ts +0 -1
- package/src/index.ts +0 -0
- package/src/themes/types.ts +0 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { styled } from "styled-components";
|
|
3
|
-
import { useMintMoneyConfig } from "
|
|
3
|
+
import { useMintMoneyConfig } from "../../context.js";
|
|
4
4
|
const StyledSvg = styled.svg `
|
|
5
5
|
stroke: ${({ color }) => color};
|
|
6
6
|
width: ${({ width }) => width}px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close.js","sourceRoot":"","sources":["../../../../src/components/icons/close.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"close.js","sourceRoot":"","sources":["../../../../src/components/icons/close.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAmB;YACnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;WACrB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;YACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;;;;;cAKpB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;;CAEjC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAkB,EAAE,EAAE;IAClD,MAAM,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvC,OAAO,CACL,MAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EACpC,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,aAE7B,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,GAAQ,EAC3C,eAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,GAAQ,IACjC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export * from "./close.js";
|
|
2
2
|
export * from "./checkMark.js";
|
|
3
|
+
export * from "./alert.js";
|
|
4
|
+
export * from "./link.js";
|
|
5
|
+
export * from "./loading.js";
|
|
6
|
+
export * from "./clipboard-add.js";
|
|
7
|
+
export * from "./clipboard-check.js";
|
|
3
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
|
+
import { useMintMoneyConfig } from "../../context.js";
|
|
4
|
+
const StyledSvg = styled.svg `
|
|
5
|
+
stroke: ${({ color }) => color};
|
|
6
|
+
width: ${({ width }) => width}px;
|
|
7
|
+
height: ${({ height }) => height}px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition: stroke 0.2s ease-in-out;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
stroke: ${({ color }) => `${color}CC`}; /* Slight transparency on hover */
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
const LinkIcon = ({ size = 24 }) => {
|
|
16
|
+
const { theme } = useMintMoneyConfig();
|
|
17
|
+
return (_jsxs(StyledSvg, { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: theme.icon.link.strokeColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", color: theme.icon.link.color, children: [_jsx("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }), _jsx("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })] }));
|
|
18
|
+
};
|
|
19
|
+
export { LinkIcon };
|
|
20
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../../src/components/icons/link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAkD;YAClE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;WACrB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;YACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;;;;;cAKpB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI;;CAExC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAiB,EAAE,EAAE;IAChD,MAAM,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvC,OAAO,CACL,MAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EACnC,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,aAE5B,eAAM,CAAC,EAAC,6DAA6D,GAAG,EACxE,eAAM,CAAC,EAAC,8DAA8D,GAAG,IAC/D,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled, keyframes } from "styled-components";
|
|
3
|
+
import { useMintMoneyConfig } from "../../context.js";
|
|
4
|
+
const spin = keyframes `
|
|
5
|
+
100% {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
const StyledSvg = styled.svg `
|
|
10
|
+
stroke: ${({ color }) => color};
|
|
11
|
+
width: ${({ width }) => width}px;
|
|
12
|
+
height: ${({ height }) => height}px;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: stroke 0.2s ease-in-out;
|
|
15
|
+
animation: ${spin} 1s linear infinite;
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
stroke: ${({ color }) => color}CC;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
const LoaderCircleIcon = ({ size = 20 }) => {
|
|
22
|
+
const { theme } = useMintMoneyConfig();
|
|
23
|
+
return (_jsx(StyledSvg, { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: theme.icon.loader.strokeColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", color: theme.icon.loader.color, children: _jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }));
|
|
24
|
+
};
|
|
25
|
+
export { LoaderCircleIcon };
|
|
26
|
+
//# sourceMappingURL=loading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.js","sourceRoot":"","sources":["../../../../src/components/icons/loading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,IAAI,GAAG,SAAS,CAAA;;;;CAIrB,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAmB;YACnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;WACrB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;YACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;;;eAGnB,IAAI;;;cAGL,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK;;CAEjC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAyB,EAAE,EAAE;IAChE,MAAM,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvC,OAAO,CACL,KAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EACrC,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,YAE9B,eAAM,CAAC,EAAC,6BAA6B,GAAG,GAC9B,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
|
+
const StyledInput = styled.input `
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 56px;
|
|
6
|
+
padding: 8px 16px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
font-family: var(--mm-font-family);
|
|
9
|
+
color: #000;
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
border: 1px solid #ccc;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
line-height: 24px;
|
|
14
|
+
|
|
15
|
+
&::placeholder {
|
|
16
|
+
color: #999;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:focus {
|
|
20
|
+
outline: none;
|
|
21
|
+
border-color: #000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:disabled {
|
|
25
|
+
background-color: #f0f0f0;
|
|
26
|
+
color: #999;
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const Input = ({ className, ...props }) => (_jsx(StyledInput, { autoComplete: "off", className: className, ...props }));
|
|
31
|
+
export { Input };
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/inputs/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAO3C,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjD,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE,CAAC,CAC3D,KAAC,WAAW,IAAC,YAAY,EAAC,KAAK,EAAC,SAAS,EAAE,SAAS,KAAM,KAAK,GAAI,CACpE,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -11,5 +11,5 @@ const SelectableList = ({ title, items, getKey, getLabel, onSelect, loading = fa
|
|
|
11
11
|
}
|
|
12
12
|
return (_jsxs(_Fragment, { children: [title && (_jsx(Text, { size: "base", color: config.theme.font.color.secondary, weight: "semibold", children: title })), _jsx("div", { className: "mm-selectable-list__button-group", children: items.length > 0 ? (items.map((item) => (_jsx(StyledButton, { onClick: () => onSelect(item), variant: "primary", children: getLabel(item) }, getKey(item))))) : (_jsx(ListEmpty, { content: noItemsMsg })) })] }));
|
|
13
13
|
};
|
|
14
|
-
export { SelectableList };
|
|
14
|
+
export { SelectableList, ListEmpty };
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/lists/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAk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,CAAC,EAC7B,OAAO,EAAE,SAAS,YAEjB,QAAQ,CAAC,IAAI,CAAC,IAJV,MAAM,CAAC,IAAI,CAAC,CAKJ,CAChB,CAAC,CACH,CAAC,CAAC,CAAC,CACF,KAAC,SAAS,IAAC,OAAO,EAAE,UAAU,GAAI,CACnC,GACG,IACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/loading/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/loading/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAQtD,MAAM,UAAU,GAAG,CAAC,EAClB,KAAK,EACL,KAAK,EACL,MAAM,GAKP,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,aAElC,eACE,CAAC,EAAC,+XAA+X,EACjY,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,EACF,eACE,CAAC,EAAC,+YAA+Y,EACjZ,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,EACF,eACE,CAAC,EAAC,8YAA8Y,EAChZ,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,EACF,eACE,CAAC,EAAC,+YAA+Y,EACjZ,IAAI,EAAE,KAAK,EACX,SAAS,EAAC,2BAA2B,GACrC,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAA0B,CAAC,EACrC,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,KAAK,GAChB,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,OAAO,OAAO,CAAC,CAAC,CAAC,CACf,KAAC,UAAU,IACT,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,GACd,CACH,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,UAAU,IACT,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,GACd,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { Modal } from "./modal.js";
|
|
4
4
|
import { ModalWithViewProvider, useModalWithView, } from "./use-modal-with-views.js";
|
|
@@ -18,10 +18,11 @@ function ModalWithViewInner({ isOpen, className, onOpenChange, views, initialVie
|
|
|
18
18
|
}
|
|
19
19
|
return undefined;
|
|
20
20
|
}, [currentView, onOpenChange, goToView, initialView]);
|
|
21
|
-
|
|
21
|
+
const isTwoColumnLayout = currentViewConfig.layout === "two-column";
|
|
22
|
+
return (_jsx(Modal, { className: `${className || ""} ${isTwoColumnLayout ? "mm-modal-two-column" : ""}`, title: currentViewConfig.title, open: isOpen, onOpenChange: (open) => {
|
|
22
23
|
onOpenChange?.(open);
|
|
23
24
|
goToView(initialView);
|
|
24
|
-
}, children: _jsxs(_Fragment, { children: [currentViewConfig.header && (_jsx("div", { className: "mm-modal-header", children: currentViewConfig.header(viewProps) })), _jsx("div", { className: "mm-modal-body", children: currentViewConfig.content(viewProps) }), currentViewConfig.footer && (_jsx("div", { className: "mm-modal-footer", children: currentViewConfig.footer(viewProps) }))] }) }));
|
|
25
|
+
}, children: isTwoColumnLayout ? (_jsxs("div", { className: "mm-modal-two-column-layout", children: [_jsxs("div", { className: "mm-modal-left-column", children: [currentViewConfig.header && (_jsx("div", { className: "mm-modal-header", children: currentViewConfig.header(viewProps) })), currentViewConfig.footer && (_jsx("div", { className: "mm-modal-footer", children: currentViewConfig.footer(viewProps) }))] }), _jsx("div", { className: "mm-modal-right-column", children: _jsx("div", { className: "mm-modal-body", children: currentViewConfig.content(viewProps) }) })] })) : (_jsxs(_Fragment, { children: [currentViewConfig.header && (_jsx("div", { className: "mm-modal-header", children: currentViewConfig.header(viewProps) })), _jsx("div", { className: "mm-modal-body", children: currentViewConfig.content(viewProps) }), currentViewConfig.footer && (_jsx("div", { className: "mm-modal-footer", children: currentViewConfig.footer(viewProps) }))] })) }));
|
|
25
26
|
}
|
|
26
27
|
export function ModalWithView(props) {
|
|
27
28
|
return (_jsx(ModalWithViewProvider, { initialView: props.initialView, children: _jsx(ModalWithViewInner, { ...props }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAyBnC,SAAS,kBAAkB,CAAC,EAC1B,MAAM,EACN,SAAS,EACT,YAAY,EACZ,KAAK,EACL,WAA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,aAClC,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,EACA,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,IACG,EAGN,cAAK,SAAS,EAAC,uBAAuB,YACpC,cAAK,SAAS,EAAC,eAAe,YAC3B,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,GACjC,GACF,IACF,CACP,CAAC,CAAC,CAAC,CACF,8BAEG,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,EAGD,cAAK,SAAS,EAAC,eAAe,YAC3B,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,GACjC,EAGL,iBAAiB,CAAC,MAAM,IAAI,CAC3B,cAAK,SAAS,EAAC,iBAAiB,YAC7B,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,GAChC,CACP,IACA,CACJ,GACK,CACT,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,OAAO,CACL,KAAC,qBAAqB,IAAC,WAAW,EAAE,KAAK,CAAC,WAAW,YACnD,KAAC,kBAAkB,OAAK,KAAK,GAAI,GACX,CACzB,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
3
3
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
4
|
+
import { useMintMoneyConfig } from "../../context.js";
|
|
4
5
|
import { CloseIcon } from "../icons/close.js";
|
|
5
6
|
import { Text } from "../text/index.js";
|
|
6
|
-
|
|
7
|
-
export const Modal = ({ className, open, onOpenChange, navBarComponent, disableCloseOnInteractOutside, title, children, }) => {
|
|
7
|
+
export const Modal = ({ className, open, onOpenChange, navBarComponent, disableCloseOnInteractOutside = true, title, children, }) => {
|
|
8
8
|
const config = useMintMoneyConfig();
|
|
9
9
|
return (_jsx(Dialog.Root, { open: open, onOpenChange: (open) => {
|
|
10
10
|
onOpenChange?.(open);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modals/modal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modals/modal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAYxC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EACpB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,eAAe,EACf,6BAA6B,GAAG,IAAI,EACpC,KAAK,EACL,QAAQ,GACG,EAAE,EAAE;IACf,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,OAAO,CACL,KAAC,MAAM,CAAC,IAAI,IACV,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,YAED,MAAC,MAAM,CAAC,MAAM,eACZ,KAAC,MAAM,CAAC,OAAO,IAAC,SAAS,EAAC,kBAAkB,GAAG,EAC/C,MAAC,MAAM,CAAC,OAAO,IACb,SAAS,EAAE,sBAAsB,SAAS,IAAI,EAAE,EAAE,EAClD,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE;wBACvB,IAAI,6BAA6B,EAAE,CAAC;4BAClC,CAAC,CAAC,cAAc,EAAE,CAAC;wBACrB,CAAC;oBACH,CAAC,aAED,KAAC,cAAc,cACb,KAAC,MAAM,CAAC,KAAK,cAAE,KAAK,GAAgB,GACrB,EACjB,eAAK,SAAS,EAAC,kBAAkB,aAC/B,cAAK,SAAS,EAAE,cAAc,YAC3B,eAAe,IAAI,CAClB,8BACE,KAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,YAErC,KAAK,GACD,EACP,KAAC,MAAM,CAAC,KAAK,IAAC,OAAO,kBACnB,2BACE,KAAC,SAAS,KAAG,GACN,GACI,IACd,CACJ,GACG,EACL,QAAQ,IACL,IACS,IACH,GACJ,CACf,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -9,8 +9,17 @@ export const ModalWithViewProvider = ({ children, initialView, }) => {
|
|
|
9
9
|
const [currentView, setCurrentView] = useState(initialView);
|
|
10
10
|
const [viewProps, setViewProps] = useState({});
|
|
11
11
|
function goToView(view, props = {}) {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
if (document.startViewTransition) {
|
|
13
|
+
document.startViewTransition(() => {
|
|
14
|
+
setCurrentView(view);
|
|
15
|
+
setViewProps(props);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
// fallback: just update state immediately
|
|
20
|
+
setCurrentView(view);
|
|
21
|
+
setViewProps(props);
|
|
22
|
+
}
|
|
14
23
|
}
|
|
15
24
|
useEffect(() => {
|
|
16
25
|
console.log(initialView);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/use-modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAU9E,MAAM,YAAY,GAAG,aAAa,CAA2B;IAC3D,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"use-modal-with-views.js","sourceRoot":"","sources":["../../../../src/components/modals/use-modal-with-views.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAU9E,MAAM,YAAY,GAAG,aAAa,CAA2B;IAC3D,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;IAClB,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACpC,QAAQ,EACR,WAAW,GAGZ,EAAE,EAAE;IACH,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,WAAW,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAExE,SAAS,QAAQ,CAAC,IAAY,EAAE,QAAiC,EAAE;QACjE,IAAI,QAAQ,CAAC,mBAAmB,EAAE,CAAC;YACjC,QAAQ,CAAC,mBAAmB,CAAC,GAAG,EAAE;gBAChC,cAAc,CAAC,IAAI,CAAC,CAAC;gBACrB,YAAY,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,0CAA0C;YAC1C,cAAc,CAAC,IAAI,CAAC,CAAC;YACrB,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,cAAc,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,OAAO,GAAG;QACd,WAAW;QACX,QAAQ;QACR,SAAS;KACV,CAAC;IAEF,OAAO,CACL,MAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,kBAAI,QAAQ,SAA0B,CAC5E,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAiB,EAAE;IACjD,OAAO,UAAU,CAAC,YAAY,CAAiB,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -25,6 +25,7 @@ const fontWeights = {
|
|
|
25
25
|
bold: "700",
|
|
26
26
|
};
|
|
27
27
|
const Text = styled.p `
|
|
28
|
+
font-family: var(--mm-font-family);
|
|
28
29
|
font-size: ${({ size = "base" }) => fontSizes[size]};
|
|
29
30
|
line-height: ${({ size = "base" }) => lineHeights[size]};
|
|
30
31
|
font-weight: ${({ weight = "normal" }) => fontWeights[weight]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAU3C,MAAM,SAAS,GAAmD;IAChE,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC;AAEF,MAAM,WAAW,GAAmD;IAClE,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MA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AAG,SAAS,EAAE,EAAE,EAAE,CAAC,KAAK;gBAC3B,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,KAAK;oBACzB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC;CACxE,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { useState, useEffect, useMemo, useContext } from "react";
|
|
4
|
+
import { AsyncButton } from "../../components/buttons/async-button.js";
|
|
5
|
+
import { WalletContext } from "./provider.js";
|
|
6
|
+
const cn = (...inputs) => clsx(inputs);
|
|
7
|
+
const WalletSelector = ({ className, loading: propsLoading, walletProviders, recommendWallets = true, onWalletSelect, transformWallets, }) => {
|
|
8
|
+
const walletContext = useContext(WalletContext);
|
|
9
|
+
const [wallets, setWallets] = useState({});
|
|
10
|
+
const [loading, setLoading] = useState(false);
|
|
11
|
+
const [selectedWallet, setSelectedWallet] = useState(null);
|
|
12
|
+
const [installedWallets] = useMemo(() => {
|
|
13
|
+
const walletValues = transformWallets
|
|
14
|
+
? transformWallets(Object.values(wallets))
|
|
15
|
+
: Object.values(wallets);
|
|
16
|
+
return [
|
|
17
|
+
walletValues.filter((w) => w.installed),
|
|
18
|
+
recommendWallets ? walletValues.filter((w) => !w.installed) : [],
|
|
19
|
+
];
|
|
20
|
+
}, [wallets]);
|
|
21
|
+
const anyLoading = propsLoading || loading;
|
|
22
|
+
const handleWalletSelect = async (wallet) => {
|
|
23
|
+
if (!wallet.renderConfigureStep) {
|
|
24
|
+
await onWalletSelect(wallet);
|
|
25
|
+
walletContext?.setWallet(wallet);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
setSelectedWallet(wallet);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const handleConfigureWallet = async (wallet) => {
|
|
32
|
+
if (wallet) {
|
|
33
|
+
await onWalletSelect(wallet);
|
|
34
|
+
walletContext?.setWallet(wallet);
|
|
35
|
+
}
|
|
36
|
+
setSelectedWallet(null);
|
|
37
|
+
};
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
setLoading(true);
|
|
40
|
+
const tempWallets = {};
|
|
41
|
+
for (const provider of walletProviders) {
|
|
42
|
+
const wallet = provider();
|
|
43
|
+
if (Array.isArray(wallet)) {
|
|
44
|
+
wallet.forEach((w) => {
|
|
45
|
+
tempWallets[w.name] = w;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
else if (wallet) {
|
|
49
|
+
tempWallets[wallet.name] = wallet;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
setWallets(tempWallets);
|
|
53
|
+
setLoading(false);
|
|
54
|
+
}, [walletProviders]);
|
|
55
|
+
if (selectedWallet && selectedWallet.renderConfigureStep) {
|
|
56
|
+
return selectedWallet.renderConfigureStep(handleConfigureWallet);
|
|
57
|
+
}
|
|
58
|
+
return (_jsx("div", { className: cn(className), children: installedWallets.map((w) => (_jsx(AsyncButton, { onAsyncClick: () => handleWalletSelect(w), loadingContent: _jsx("span", { children: "Loading..." }), successContent: _jsx("span", { children: "Connected!" }), errorContent: _jsx("span", { children: "Failed" }), disabled: anyLoading, children: w.name }, w.name))) }));
|
|
59
|
+
};
|
|
60
|
+
export default WalletSelector;
|
|
61
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/component.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,IAAI,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,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qBAAqB,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAC1B,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC3B,KAAC,WAAW,IAEV,YAAY,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACzC,cAAc,EAAE,wCAAuB,EACvC,cAAc,EAAE,wCAAuB,EACvC,YAAY,EAAE,oCAAmB,EACjC,QAAQ,EAAE,UAAU,YAEnB,CAAC,CAAC,IAAI,IAPF,CAAC,CAAC,IAAI,CAQC,CACf,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/domain.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Given a config and a list of properties ensure that the properties are defined
|
|
2
|
+
// otherwise throw an error
|
|
3
|
+
// This should return a type safe config object
|
|
4
|
+
export const ensureConfig = (config, properties) => {
|
|
5
|
+
const missingProperties = properties.filter((property) => config[property] === undefined);
|
|
6
|
+
if (missingProperties.length > 0) {
|
|
7
|
+
throw new Error(`Missing properties in config: ${missingProperties.join(", ")}`);
|
|
8
|
+
}
|
|
9
|
+
return config;
|
|
10
|
+
};
|
|
11
|
+
export const normaliseName = (n) => n.toLowerCase().replaceAll(" ", "");
|
|
12
|
+
//# sourceMappingURL=helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/helper.ts"],"names":[],"mappings":"AAEA,iFAAiF;AACjF,2BAA2B;AAC3B,+CAA+C;AAC/C,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAAuB,EACvB,UAAkB,EAClB,EAAE;IACF,MAAM,iBAAiB,GAAG,UAAU,CAAC,MAAM,CACzC,CAAC,QAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAS,CAC7C,CAAC;IACF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb,iCAAiC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAChE,CAAC;IACJ,CAAC;IACD,OAAO,MAAoC,CAAC;AAC9C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK5C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, createContext } from "react";
|
|
3
|
+
export const WalletContext = createContext({
|
|
4
|
+
wallet: null,
|
|
5
|
+
setWallet: () => { },
|
|
6
|
+
});
|
|
7
|
+
export const WalletProvider = ({ children, }) => {
|
|
8
|
+
const [wallet, setWallet] = useState(null);
|
|
9
|
+
const value = {
|
|
10
|
+
wallet,
|
|
11
|
+
setWallet,
|
|
12
|
+
};
|
|
13
|
+
return (_jsx(WalletContext.Provider, { value: value, children: children }));
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/provider.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAGvC;IACD,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,GAGT,EAAE,EAAE;IACH,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAyB,IAAI,CAAC,CAAC;IAEnE,MAAM,KAAK,GAAG;QACZ,MAAM;QACN,SAAS;KACV,CAAC;IACF,OAAO,CACL,KAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA0B,CAC1E,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/schemas.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C;QACE,KAAK,CAAC,qCAAqC,CAAC,CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
import { immer } from "zustand/middleware/immer";
|
|
3
|
+
export var ACTIONS;
|
|
4
|
+
(function (ACTIONS) {
|
|
5
|
+
ACTIONS["GET_WALLETS"] = "GET_WALLETS";
|
|
6
|
+
ACTIONS["GET_BALANCES"] = "GET_BALANCES";
|
|
7
|
+
})(ACTIONS || (ACTIONS = {}));
|
|
8
|
+
const initialActionState = (initialValue) => Object.values(ACTIONS).reduce((acc, action) => {
|
|
9
|
+
acc[action] = initialValue;
|
|
10
|
+
return acc;
|
|
11
|
+
}, {});
|
|
12
|
+
export const useWalletStore = create()(immer((set, get) => ({
|
|
13
|
+
wallets: {},
|
|
14
|
+
loading: initialActionState(false),
|
|
15
|
+
error: initialActionState(null),
|
|
16
|
+
balances: {},
|
|
17
|
+
actions: {
|
|
18
|
+
initialiseWallets: (initialisers) => {
|
|
19
|
+
const ACTION = ACTIONS.GET_WALLETS;
|
|
20
|
+
set((state) => {
|
|
21
|
+
state.loading[ACTION] = true;
|
|
22
|
+
state.error[ACTION] = null;
|
|
23
|
+
});
|
|
24
|
+
try {
|
|
25
|
+
for (const initialiser of initialisers) {
|
|
26
|
+
const wallet = initialiser();
|
|
27
|
+
set((state) => {
|
|
28
|
+
if (Array.isArray(wallet)) {
|
|
29
|
+
wallet.forEach((w) => {
|
|
30
|
+
state.wallets[w.name] = w;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
else if (wallet) {
|
|
34
|
+
state.wallets[wallet.name] = wallet;
|
|
35
|
+
}
|
|
36
|
+
state.loading[ACTION] = false;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return get().wallets;
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
console.error(error);
|
|
43
|
+
set((state) => {
|
|
44
|
+
state.error[ACTION] = {
|
|
45
|
+
id: ACTION,
|
|
46
|
+
title: "Wallet Configure Error",
|
|
47
|
+
message: "Failed to configure wallets",
|
|
48
|
+
};
|
|
49
|
+
state.loading[ACTION] = false;
|
|
50
|
+
});
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
clearError: (action) => {
|
|
55
|
+
set((state) => {
|
|
56
|
+
if (action) {
|
|
57
|
+
delete state.error[action];
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
Object.values(ACTIONS).forEach((key) => {
|
|
61
|
+
delete state.error[key];
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
clearLoading: (action) => {
|
|
67
|
+
set((state) => {
|
|
68
|
+
if (action) {
|
|
69
|
+
state.loading[action] = false;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
Object.values(ACTIONS).forEach((key) => {
|
|
73
|
+
state.loading[key] = false;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
fetchBalances: async (currencies) => {
|
|
79
|
+
const ACTION = ACTIONS.GET_BALANCES;
|
|
80
|
+
const wallet = Object.values(get().wallets)[0]; // Get the first connected wallet
|
|
81
|
+
if (!wallet)
|
|
82
|
+
return;
|
|
83
|
+
set((state) => {
|
|
84
|
+
state.loading[ACTION] = true;
|
|
85
|
+
state.error[ACTION] = null;
|
|
86
|
+
});
|
|
87
|
+
try {
|
|
88
|
+
const address = await wallet.getAddress();
|
|
89
|
+
if (!address)
|
|
90
|
+
return;
|
|
91
|
+
const newBalances = {};
|
|
92
|
+
for (const currency of currencies) {
|
|
93
|
+
try {
|
|
94
|
+
let tokenAddress = undefined;
|
|
95
|
+
if (currency.asset.toLowerCase() !== "eth") {
|
|
96
|
+
const parts = currency.asset.split(":");
|
|
97
|
+
tokenAddress = parts[parts.length - 1];
|
|
98
|
+
}
|
|
99
|
+
const bal = await wallet.getBalance(address, tokenAddress);
|
|
100
|
+
newBalances[`${currency.chain}-${currency.asset}`] =
|
|
101
|
+
bal.uiAmount ?? "0";
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
newBalances[`${currency.chain}-${currency.asset}`] = "";
|
|
105
|
+
console.error(`Error fetching balance for ${currency.chain} ${currency.asset}:`, e);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
set((state) => {
|
|
109
|
+
state.balances = newBalances;
|
|
110
|
+
state.loading[ACTION] = false;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
console.error("Failed to fetch balances:", error);
|
|
115
|
+
set((state) => {
|
|
116
|
+
state.error[ACTION] = {
|
|
117
|
+
id: ACTION,
|
|
118
|
+
title: "Balance Fetch Error",
|
|
119
|
+
message: "Failed to fetch wallet balances",
|
|
120
|
+
};
|
|
121
|
+
state.loading[ACTION] = false;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
setBalances: (balances) => {
|
|
126
|
+
set((state) => {
|
|
127
|
+
state.balances = balances;
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
})));
|
|
132
|
+
export const useWalletActions = () => useWalletStore((state) => state.actions);
|
|
133
|
+
export const useWalletBalances = () => useWalletStore((state) => state.balances);
|
|
134
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/components/wallet-selector/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAMjD,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,wCAA6B,CAAA;AAC/B,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AAYD,MAAM,kBAAkB,GAAG,CAAI,YAAe,EAAE,EAAE,CAChD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAC3B,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IACd,GAAG,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC;IAC3B,OAAO,GAAG,CAAC;AACb,CAAC,EACD,EAAwB,CACzB,CAAC;AAgBJ,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,EAAe,CACjD,KAAK,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IACnB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,kBAAkB,CAAC,KAAK,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAC/B,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE;QACP,iBAAiB,EAAE,CAAC,Y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,MAAM,CAAC,GAAG,KAAK,CAAC;gBAChC,CAAC,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;gBAClD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;oBACZ,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG;wBACpB,EAAE,EAAE,MAAM;wBACV,KAAK,EAAE,qBAAqB;wBAC5B,OAAO,EAAE,iCAAiC;qBAC3C,CAAC;oBACF,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;gBAChC,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,WAAW,EAAE,CAAC,QAAgC,EAAE,EAAE;YAChD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBACZ,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC5B,CAAC,CAAC,CAAC;QACL,CAAC;KACF;CACF,CAAC,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CACpC,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class BaseError extends Error {
|
|
2
|
+
}
|
|
3
|
+
export class NotEnoughBalance extends BaseError {
|
|
4
|
+
constructor(message) {
|
|
5
|
+
super(message);
|
|
6
|
+
Object.defineProperty(this, "message", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: void 0
|
|
11
|
+
});
|
|
12
|
+
this.message = message;
|
|
13
|
+
this.name = "NotEnoughBalance";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=exceptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../../../../src/components/wallet-selector/util/exceptions.ts"],"names":[],"mappings":"AAAA,MAAM,OAAgB,SAAU,SAAQ,KAAK;CAAG;AAEhD,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR;;;;;WAAgB;QAIvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/wallet-selector/wallets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|