@coin-voyage/paykit 0.1.21 → 0.1.22
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/LICENSE +26 -26
- package/README.md +35 -35
- package/dist/assets/chains.d.ts +1 -0
- package/dist/assets/chains.js +5 -1
- package/dist/assets/chains.js.map +1 -1
- package/dist/assets/logos.d.ts +26 -26
- package/dist/assets/logos.js +31 -28
- package/dist/assets/logos.js.map +1 -1
- package/dist/assets/mobile-with-logos.d.ts +1 -0
- package/dist/assets/mobile-with-logos.js +7 -0
- package/dist/assets/mobile-with-logos.js.map +1 -0
- package/dist/assets/scan-icon-with-logos.d.ts +4 -0
- package/dist/assets/{ScanIconWithLogos.js → scan-icon-with-logos.js} +19 -19
- package/dist/assets/scan-icon-with-logos.js.map +1 -0
- package/dist/components/Pages/About/graphics.js +39 -39
- package/dist/components/Pages/About/styles.js +123 -123
- package/dist/components/Pages/Confirmation/index.js +53 -53
- package/dist/components/Pages/Connectors/index.js +3 -11
- package/dist/components/Pages/Connectors/index.js.map +1 -1
- package/dist/components/Pages/Connectors/styles.js +248 -248
- package/dist/components/Pages/MobileConnectors/index.js +56 -41
- package/dist/components/Pages/MobileConnectors/index.js.map +1 -1
- package/dist/components/Pages/MobileConnectors/styles.js +51 -51
- package/dist/components/Pages/Onboarding/index.js +1 -1
- package/dist/components/Pages/Onboarding/index.js.map +1 -1
- package/dist/components/Pages/Onboarding/styles.js +208 -208
- package/dist/components/Pages/PayWithToken/index.js +39 -39
- package/dist/components/Pages/SelectMethod/index.js +7 -61
- package/dist/components/Pages/SelectMethod/index.js.map +1 -1
- package/dist/components/Pages/SelectMethod/styles.js +246 -246
- package/dist/components/Pages/SelectToken/index.js +8 -64
- package/dist/components/Pages/SelectToken/index.js.map +1 -1
- package/dist/components/pay-button/styles.js +28 -28
- package/dist/components/pay-modal/ConnectUsing.d.ts +1 -2
- package/dist/components/pay-modal/ConnectUsing.js +5 -6
- package/dist/components/pay-modal/ConnectUsing.js.map +1 -1
- package/dist/components/pay-modal/ConnectWithInjector/index.js +2 -4
- package/dist/components/pay-modal/ConnectWithInjector/index.js.map +1 -1
- package/dist/components/pay-modal/ConnectWithInjector/styles.js +82 -82
- package/dist/components/pay-modal/ConnectWithQRCode.d.ts +1 -2
- package/dist/components/pay-modal/ConnectWithQRCode.js +14 -23
- package/dist/components/pay-modal/ConnectWithQRCode.js.map +1 -1
- package/dist/components/pay-modal/index.js +7 -4
- package/dist/components/pay-modal/index.js.map +1 -1
- package/dist/components/spinners/CircleSpinner/styles.js +105 -105
- package/dist/components/spinners/SquircleSpinner/styles.js +56 -56
- package/dist/components/ui/Alert/styles.js +42 -42
- package/dist/components/ui/AnimationContainer/styles.js +32 -32
- package/dist/components/ui/BrowserIcon/styles.js +13 -13
- package/dist/components/ui/Button/styles.js +259 -259
- package/dist/components/ui/ChainSelectList/styles.js +209 -209
- package/dist/components/ui/ConnectorList/index.d.ts +1 -2
- package/dist/components/ui/ConnectorList/index.js +40 -34
- package/dist/components/ui/ConnectorList/index.js.map +1 -1
- package/dist/components/ui/ConnectorList/styles.js +285 -285
- package/dist/components/ui/CopyToClipboard/CopyToClipboardIcon.js +55 -55
- package/dist/components/ui/CopyToClipboard/index.d.ts +1 -1
- package/dist/components/ui/CopyToClipboard/index.js +34 -41
- package/dist/components/ui/CopyToClipboard/index.js.map +1 -1
- package/dist/components/ui/CustomQRCode/styles.js +140 -140
- package/dist/components/ui/Logo/styles.js +21 -21
- package/dist/components/ui/Modal/index.js +3 -4
- package/dist/components/ui/Modal/index.js.map +1 -1
- package/dist/components/ui/Modal/styles.js +645 -645
- package/dist/components/ui/OptionsList/index.d.ts +5 -12
- package/dist/components/ui/OptionsList/index.js +64 -65
- package/dist/components/ui/OptionsList/index.js.map +1 -1
- package/dist/components/ui/OptionsList/styles.js +150 -150
- package/dist/components/ui/OptionsList/types.d.ts +9 -0
- package/dist/components/ui/OptionsList/types.js +2 -0
- package/dist/components/ui/OptionsList/types.js.map +1 -0
- package/dist/components/ui/OrderHeader/index.js +68 -68
- package/dist/components/ui/PoweredByFooter/index.js +29 -29
- package/dist/components/ui/ScrollArea/styles.js +156 -156
- package/dist/components/ui/Skeleton/styles.js +8 -8
- package/dist/components/ui/Spinner/styles.js +13 -13
- package/dist/components/ui/ThemedButton/styles.js +151 -151
- package/dist/components/ui/TokenChainLogo/index.d.ts +6 -0
- package/dist/components/ui/TokenChainLogo/index.js +7 -0
- package/dist/components/ui/TokenChainLogo/index.js.map +1 -0
- package/dist/components/ui/TokenChainLogo/styles.d.ts +2 -0
- package/dist/components/ui/TokenChainLogo/styles.js +16 -0
- package/dist/components/ui/TokenChainLogo/styles.js.map +1 -0
- package/dist/components/ui/Tooltip/index.d.ts +1 -3
- package/dist/components/ui/Tooltip/index.js +2 -3
- package/dist/components/ui/Tooltip/index.js.map +1 -1
- package/dist/components/ui/Tooltip/styles.js +72 -72
- package/dist/hooks/useChainIsSupported.js +3 -3
- package/dist/hooks/useChainIsSupported.js.map +1 -1
- package/dist/hooks/useConnect.js +2 -17
- package/dist/hooks/useConnect.js.map +1 -1
- package/dist/hooks/useConnectors.d.ts +0 -4
- package/dist/hooks/useConnectors.js +0 -44
- package/dist/hooks/useConnectors.js.map +1 -1
- package/dist/hooks/useFocusTrap.js +8 -8
- package/dist/hooks/useMethodOptions.d.ts +12 -0
- package/dist/hooks/useMethodOptions.js +68 -0
- package/dist/hooks/useMethodOptions.js.map +1 -0
- package/dist/hooks/usePaymentState.d.ts +1 -1
- package/dist/hooks/usePaymentState.js +3 -3
- package/dist/hooks/usePaymentState.js.map +1 -1
- package/dist/hooks/useTokenOptions.d.ts +10 -0
- package/dist/hooks/useTokenOptions.js +51 -0
- package/dist/hooks/useTokenOptions.js.map +1 -0
- package/dist/hooks/useWalletConnectModal.js +55 -27
- package/dist/hooks/useWalletConnectModal.js.map +1 -1
- package/dist/hooks/useWalletConnectUri.js +8 -18
- package/dist/hooks/useWalletConnectUri.js.map +1 -1
- package/dist/hooks/useWallets.js +10 -12
- package/dist/hooks/useWallets.js.map +1 -1
- package/dist/lib/api/client.js +2 -1
- package/dist/lib/api/client.js.map +1 -1
- package/dist/lib/config/wallet.js +92 -247
- package/dist/lib/config/wallet.js.map +1 -1
- package/dist/lib/localizations/locales/ar-AE.js +2 -2
- package/dist/providers/api-provider.js +2 -1
- package/dist/providers/api-provider.js.map +1 -1
- package/dist/providers/paykit-provider.js +40 -4
- package/dist/providers/paykit-provider.js.map +1 -1
- package/dist/styles/index.js +84 -84
- package/dist/styles/themes/web95.js +16 -16
- package/dist/types/state.d.ts +9 -0
- package/dist/types/state.js +2 -0
- package/dist/types/state.js.map +1 -0
- package/dist/types.d.ts +0 -2
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +6 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/p3.js +5 -5
- package/package.json +7 -6
- package/dist/assets/ScanIconWithLogos.d.ts +0 -5
- package/dist/assets/ScanIconWithLogos.js.map +0 -1
- package/dist/components/contexts/web3/index.d.ts +0 -25
- package/dist/components/contexts/web3/index.js +0 -26
- package/dist/components/contexts/web3/index.js.map +0 -1
- package/dist/hooks/useLastConnector.d.ts +0 -4
- package/dist/hooks/useLastConnector.js +0 -21
- package/dist/hooks/useLastConnector.js.map +0 -1
|
@@ -1,86 +1,32 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useConfig as useBigmiConfig } from "@bigmi/react";
|
|
3
2
|
import { useAccount, useAccountDisconnect } from "@coin-voyage/crypto/hooks";
|
|
4
|
-
import { ChainType, PayOrderMode } from "@coin-voyage/shared/common";
|
|
5
3
|
import { useIsMobile } from "@coin-voyage/shared/hooks";
|
|
6
|
-
import {
|
|
7
|
-
import { useWallets } from "@mysten/dapp-kit";
|
|
8
|
-
import { useWallet } from "@solana/wallet-adapter-react";
|
|
9
|
-
import { useConfig as useWagmiConfig } from "wagmi";
|
|
10
|
-
import Logos from "../../../assets/chains";
|
|
11
|
-
import { MetaMask } from "../../../assets/logos";
|
|
4
|
+
import { useMethodOptions } from "../../../hooks/useMethodOptions";
|
|
12
5
|
import { ROUTES } from "../../../types/routes";
|
|
13
6
|
import usePayContext from "../../contexts/pay";
|
|
14
|
-
import { SquircleIcon } from "../../ui/Icon";
|
|
15
7
|
import { PageContent } from "../../ui/Modal/styles";
|
|
16
8
|
import OptionsList from "../../ui/OptionsList";
|
|
17
9
|
import { OrderHeader } from "../../ui/OrderHeader";
|
|
18
10
|
import PoweredByFooter from "../../ui/PoweredByFooter";
|
|
19
|
-
function getTitle(subject, isDeposit) {
|
|
20
|
-
return `${isDeposit ? "Deposit from" : "Pay on"} ${subject}`;
|
|
21
|
-
}
|
|
22
11
|
export default function SelectMethod() {
|
|
23
12
|
const isMobile = useIsMobile();
|
|
24
|
-
const suiWallets = useWallets();
|
|
25
|
-
const evmConfig = useWagmiConfig();
|
|
26
|
-
const utxoConfig = useBigmiConfig();
|
|
27
|
-
const { wallets: solanaWallets } = useWallet();
|
|
28
13
|
const { setRoute, paymentState } = usePayContext();
|
|
29
14
|
const disconnect = useAccountDisconnect();
|
|
30
|
-
const isDeposit = paymentState.payOrder?.mode === PayOrderMode.DEPOSIT;
|
|
31
15
|
const { account } = useAccount({
|
|
32
16
|
selectedWallet: paymentState.selectedWallet,
|
|
33
17
|
chainType: paymentState.connectorChainType,
|
|
34
18
|
});
|
|
35
|
-
const { senderEnsName } = paymentState;
|
|
36
|
-
const displayName = senderEnsName ??
|
|
37
|
-
(account?.address ? shortenAddress(account.address) : "wallet");
|
|
38
19
|
const handleClick = (chainType) => {
|
|
39
20
|
if (account)
|
|
40
21
|
disconnect(account);
|
|
41
22
|
paymentState.setConnectorChainType(chainType);
|
|
42
23
|
setRoute(ROUTES.CONNECTORS);
|
|
43
24
|
};
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
account?.connector?.icon ? (_jsx(SquircleIcon, { icon: account.connector.icon, alt: account.connector.name })) : (_jsx(MetaMask, {})),
|
|
51
|
-
],
|
|
52
|
-
onClick: () => {
|
|
53
|
-
paymentState.setConnectorChainType(account.chainType);
|
|
54
|
-
setRoute(ROUTES.SELECT_TOKEN);
|
|
55
|
-
},
|
|
56
|
-
}] : []),
|
|
57
|
-
...(evmConfig.connectors.length > 0 ? [{
|
|
58
|
-
id: "evm",
|
|
59
|
-
title: getTitle("Ethereum", isDeposit),
|
|
60
|
-
subtitle: "Ethereum Mainnet, Base, Arbitrum ...",
|
|
61
|
-
iconShape: "circle",
|
|
62
|
-
icons: [_jsx(Logos.Ethereum, {}), _jsx(Logos.Base, {}), _jsx(Logos.Arbitrum, {})],
|
|
63
|
-
onClick: () => handleClick(ChainType.EVM)
|
|
64
|
-
}] : []),
|
|
65
|
-
...(solanaWallets ? [{
|
|
66
|
-
id: "solana",
|
|
67
|
-
title: getTitle("Solana", isDeposit),
|
|
68
|
-
icons: [_jsx(Logos.Solana, {})],
|
|
69
|
-
onClick: () => handleClick(ChainType.SOL)
|
|
70
|
-
}] : []),
|
|
71
|
-
...(suiWallets ? [{
|
|
72
|
-
id: "sui",
|
|
73
|
-
title: getTitle("Sui", isDeposit),
|
|
74
|
-
icons: [_jsx(Logos.Sui, {})],
|
|
75
|
-
onClick: () => handleClick(ChainType.SUI),
|
|
76
|
-
}] : []),
|
|
77
|
-
...(utxoConfig.connectors.length > 0 ? [{
|
|
78
|
-
id: "bitcoin",
|
|
79
|
-
title: getTitle("Bitcoin", isDeposit),
|
|
80
|
-
icons: [_jsx(Logos.Bitcoin, {})],
|
|
81
|
-
onClick: () => handleClick(ChainType.UTXO),
|
|
82
|
-
}] : []),
|
|
83
|
-
];
|
|
84
|
-
return (_jsxs(PageContent, { children: [_jsx(OrderHeader, {}), _jsx(OptionsList, { requiredSkeletons: isMobile ? 4 : 3, options: options }), _jsx(PoweredByFooter, {})] }));
|
|
25
|
+
const { options } = useMethodOptions({
|
|
26
|
+
account,
|
|
27
|
+
mode: paymentState.payOrder?.mode,
|
|
28
|
+
onClick: handleClick,
|
|
29
|
+
});
|
|
30
|
+
return (_jsxs(PageContent, { children: [_jsx(OrderHeader, {}), _jsx(OptionsList, { requiredSkeletons: isMobile ? 3 : 4, options: options }), _jsx(PoweredByFooter, {})] }));
|
|
85
31
|
}
|
|
86
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Pages/SelectMethod/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Pages/SelectMethod/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,WAAW,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,eAAe,MAAM,0BAA0B,CAAA;AAEtD,MAAM,CAAC,OAAO,UAAU,YAAY;IAClC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAAA;IAClD,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;IAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;QAC7B,cAAc,EAAE,YAAY,CAAC,cAAc;QAC3C,SAAS,EAAE,YAAY,CAAC,kBAAkB;KAC3C,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,CAAC,SAAoB,EAAE,EAAE;QAC3C,IAAI,OAAO;YAAE,UAAU,CAAC,OAAO,CAAC,CAAA;QAChC,YAAY,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAA;QAC7C,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;IAC7B,CAAC,CAAA;IAED,MAAM,EAAE,OAAO,EAAE,GAAG,gBAAgB,CAAC;QACnC,OAAO;QACP,IAAI,EAAE,YAAY,CAAC,QAAQ,EAAE,IAAI;QACjC,OAAO,EAAE,WAAW;KACrB,CAAC,CAAA;IAEF,OAAO,CACL,MAAC,WAAW,eACV,KAAC,WAAW,KAAG,EACf,KAAC,WAAW,IACV,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACnC,OAAO,EAAE,OAAO,GAChB,EACF,KAAC,eAAe,KAAG,IACP,CACf,CAAA;AACH,CAAC"}
|
|
@@ -2,260 +2,260 @@ import { keyframes } from "styled-components";
|
|
|
2
2
|
import styled from "../../../styles/styled";
|
|
3
3
|
import { motion } from "framer-motion";
|
|
4
4
|
import { ModalBody } from "../../ui/Modal/styles";
|
|
5
|
-
const Shimmer = keyframes `
|
|
6
|
-
0%{ transform: translate(-100%) rotate(-45deg); }
|
|
7
|
-
100%{ transform: translate(100%) rotate(-80deg); }
|
|
5
|
+
const Shimmer = keyframes `
|
|
6
|
+
0%{ transform: translate(-100%) rotate(-45deg); }
|
|
7
|
+
100%{ transform: translate(100%) rotate(-80deg); }
|
|
8
8
|
`;
|
|
9
|
-
export const InfoBox = styled.div `
|
|
10
|
-
padding: 24px 24px 28px;
|
|
11
|
-
border-radius: var(--ck-tertiary-border-radius, 24px);
|
|
12
|
-
box-shadow: var(--ck-tertiary-box-shadow, none);
|
|
13
|
-
background: var(--ck-body-background-tertiary);
|
|
14
|
-
${ModalBody} {
|
|
15
|
-
max-width: none;
|
|
16
|
-
}
|
|
9
|
+
export const InfoBox = styled.div `
|
|
10
|
+
padding: 24px 24px 28px;
|
|
11
|
+
border-radius: var(--ck-tertiary-border-radius, 24px);
|
|
12
|
+
box-shadow: var(--ck-tertiary-box-shadow, none);
|
|
13
|
+
background: var(--ck-body-background-tertiary);
|
|
14
|
+
${ModalBody} {
|
|
15
|
+
max-width: none;
|
|
16
|
+
}
|
|
17
17
|
`;
|
|
18
|
-
export const InfoBoxButtons = styled.div `
|
|
19
|
-
display: grid;
|
|
20
|
-
grid-template-columns: 1fr 1fr;
|
|
21
|
-
gap: 16px;
|
|
22
|
-
margin: 5px -8px -12px;
|
|
23
|
-
button {
|
|
24
|
-
}
|
|
18
|
+
export const InfoBoxButtons = styled.div `
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-columns: 1fr 1fr;
|
|
21
|
+
gap: 16px;
|
|
22
|
+
margin: 5px -8px -12px;
|
|
23
|
+
button {
|
|
24
|
+
}
|
|
25
25
|
`;
|
|
26
|
-
export const LearnMoreContainer = styled(motion.div) `
|
|
27
|
-
text-align: center;
|
|
28
|
-
margin-top: 16px;
|
|
29
|
-
margin-bottom: -6px;
|
|
26
|
+
export const LearnMoreContainer = styled(motion.div) `
|
|
27
|
+
text-align: center;
|
|
28
|
+
margin-top: 16px;
|
|
29
|
+
margin-bottom: -6px;
|
|
30
30
|
`;
|
|
31
|
-
export const LearnMoreButton = styled(motion.button) `
|
|
32
|
-
appearance: none;
|
|
33
|
-
user-select: none;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
gap: 10px;
|
|
39
|
-
height: 42px;
|
|
40
|
-
padding: 0 16px;
|
|
41
|
-
border-radius: 6px;
|
|
42
|
-
background: none;
|
|
43
|
-
color: var(--ck-body-color-muted);
|
|
44
|
-
font-size: 15px;
|
|
45
|
-
line-height: 18px;
|
|
46
|
-
font-weight: 500;
|
|
47
|
-
/* will-change: transform; */
|
|
48
|
-
transition:
|
|
49
|
-
color 200ms ease,
|
|
50
|
-
transform 100ms ease;
|
|
51
|
-
svg {
|
|
52
|
-
transition: all 100ms ease-out;
|
|
53
|
-
display: block;
|
|
54
|
-
position: relative;
|
|
55
|
-
top: 2px;
|
|
56
|
-
left: 2px;
|
|
57
|
-
transform: translateZ(0px);
|
|
58
|
-
path,
|
|
59
|
-
circle {
|
|
60
|
-
transition: all 100ms ease-out;
|
|
61
|
-
}
|
|
62
|
-
path:last-of-type {
|
|
63
|
-
transform-origin: 0 0;
|
|
64
|
-
transform: scaleX(1.3) skewY(-12deg);
|
|
65
|
-
opacity: 0;
|
|
66
|
-
}
|
|
67
|
-
circle {
|
|
68
|
-
transform: translate(20%, -15%);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
&:hover {
|
|
72
|
-
color: var(--ck-body-color-muted-hover);
|
|
73
|
-
svg {
|
|
74
|
-
path,
|
|
75
|
-
circle {
|
|
76
|
-
opacity: 1;
|
|
77
|
-
transform: none;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
&:active {
|
|
82
|
-
transform: scale(0.96);
|
|
83
|
-
}
|
|
31
|
+
export const LearnMoreButton = styled(motion.button) `
|
|
32
|
+
appearance: none;
|
|
33
|
+
user-select: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
gap: 10px;
|
|
39
|
+
height: 42px;
|
|
40
|
+
padding: 0 16px;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
background: none;
|
|
43
|
+
color: var(--ck-body-color-muted);
|
|
44
|
+
font-size: 15px;
|
|
45
|
+
line-height: 18px;
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
/* will-change: transform; */
|
|
48
|
+
transition:
|
|
49
|
+
color 200ms ease,
|
|
50
|
+
transform 100ms ease;
|
|
51
|
+
svg {
|
|
52
|
+
transition: all 100ms ease-out;
|
|
53
|
+
display: block;
|
|
54
|
+
position: relative;
|
|
55
|
+
top: 2px;
|
|
56
|
+
left: 2px;
|
|
57
|
+
transform: translateZ(0px);
|
|
58
|
+
path,
|
|
59
|
+
circle {
|
|
60
|
+
transition: all 100ms ease-out;
|
|
61
|
+
}
|
|
62
|
+
path:last-of-type {
|
|
63
|
+
transform-origin: 0 0;
|
|
64
|
+
transform: scaleX(1.3) skewY(-12deg);
|
|
65
|
+
opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
circle {
|
|
68
|
+
transform: translate(20%, -15%);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&:hover {
|
|
72
|
+
color: var(--ck-body-color-muted-hover);
|
|
73
|
+
svg {
|
|
74
|
+
path,
|
|
75
|
+
circle {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
transform: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&:active {
|
|
82
|
+
transform: scale(0.96);
|
|
83
|
+
}
|
|
84
84
|
`;
|
|
85
|
-
export const ConnectorsContainer = styled(motion.div) `
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
gap: 12px;
|
|
89
|
-
padding: 0 0 16px;
|
|
90
|
-
overflow-y: scroll;
|
|
91
|
-
max-height: 20rem;
|
|
92
|
-
|
|
93
|
-
&::-webkit-scrollbar {
|
|
94
|
-
display: none;
|
|
95
|
-
}
|
|
85
|
+
export const ConnectorsContainer = styled(motion.div) `
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
gap: 12px;
|
|
89
|
+
padding: 0 0 16px;
|
|
90
|
+
overflow-y: scroll;
|
|
91
|
+
max-height: 20rem;
|
|
92
|
+
|
|
93
|
+
&::-webkit-scrollbar {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
96
96
|
`;
|
|
97
|
-
export const ConnectorButton = styled(motion.button) `
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
user-select: none;
|
|
100
|
-
position: relative;
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
padding: 0 20px;
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: 64px;
|
|
106
|
-
font-size: 17px;
|
|
107
|
-
font-weight: var(--ck-primary-button-font-weight, 500);
|
|
108
|
-
line-height: 20px;
|
|
109
|
-
text-align: var(--ck-body-button-text-align, left);
|
|
110
|
-
transition: 180ms ease;
|
|
111
|
-
transition-property: background, color, box-shadow, transform, opacity;
|
|
112
|
-
will-change: transform, box-shadow, background-color, color, opacity;
|
|
113
|
-
|
|
114
|
-
--fallback-color: var(--ck-primary-button-color);
|
|
115
|
-
--fallback-background: var(--ck-primary-button-background);
|
|
116
|
-
--fallback-box-shadow: var(--ck-primary-button-box-shadow);
|
|
117
|
-
--fallback-border-radius: var(--ck-primary-button-border-radius);
|
|
118
|
-
|
|
119
|
-
--color: var(--ck-primary-button-color, var(--fallback-color));
|
|
120
|
-
--background: var(--ck-primary-button-background, var(--fallback-background));
|
|
121
|
-
--box-shadow: var(--ck-primary-button-box-shadow, var(--fallback-box-shadow));
|
|
122
|
-
--border-radius: var(
|
|
123
|
-
--ck-primary-button-border-radius,
|
|
124
|
-
var(--fallback-border-radius)
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
--hover-color: var(--ck-primary-button-hover-color, var(--color));
|
|
128
|
-
--hover-background: var(
|
|
129
|
-
--ck-primary-button-hover-background,
|
|
130
|
-
var(--background)
|
|
131
|
-
);
|
|
132
|
-
--hover-box-shadow: var(
|
|
133
|
-
--ck-primary-button-hover-box-shadow,
|
|
134
|
-
var(--box-shadow)
|
|
135
|
-
);
|
|
136
|
-
--hover-border-radius: var(
|
|
137
|
-
--ck-primary-button-hover-border-radius,
|
|
138
|
-
var(--border-radius)
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
--active-color: var(--ck-primary-button-active-color, var(--hover-color));
|
|
142
|
-
--active-background: var(
|
|
143
|
-
--ck-primary-button-active-background,
|
|
144
|
-
var(--hover-background)
|
|
145
|
-
);
|
|
146
|
-
--active-box-shadow: var(
|
|
147
|
-
--ck-primary-button-active-box-shadow,
|
|
148
|
-
var(--hover-box-shadow)
|
|
149
|
-
);
|
|
150
|
-
--active-border-radius: var(
|
|
151
|
-
--ck-primary-button-active-border-radius,
|
|
152
|
-
var(--hover-border-radius)
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
color: var(--color);
|
|
156
|
-
background: var(--background);
|
|
157
|
-
box-shadow: var(--box-shadow);
|
|
158
|
-
border-radius: var(--border-radius);
|
|
159
|
-
|
|
160
|
-
&:disabled {
|
|
161
|
-
transition: 180ms ease;
|
|
162
|
-
opacity: 0.4;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
--bg: var(--background);
|
|
166
|
-
&:not(:disabled) {
|
|
167
|
-
&:hover {
|
|
168
|
-
color: var(--hover-color);
|
|
169
|
-
background: var(--hover-background);
|
|
170
|
-
box-shadow: var(--hover-box-shadow);
|
|
171
|
-
border-radius: var(--hover-border-radius);
|
|
172
|
-
--bg: var(--hover-background, var(--background));
|
|
173
|
-
}
|
|
174
|
-
&:focus-visible {
|
|
175
|
-
transition-duration: 100ms;
|
|
176
|
-
color: var(--hover-color);
|
|
177
|
-
background: var(--hover-background);
|
|
178
|
-
box-shadow: var(--hover-box-shadow);
|
|
179
|
-
border-radius: var(--hover-border-radius);
|
|
180
|
-
--bg: var(--hover-background, var(--background));
|
|
181
|
-
}
|
|
182
|
-
&:active {
|
|
183
|
-
color: var(--active-color);
|
|
184
|
-
background: var(--active-background);
|
|
185
|
-
box-shadow: var(--active-box-shadow);
|
|
186
|
-
border-radius: var(--active-border-radius);
|
|
187
|
-
--bg: var(--active-background, var(--background));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
97
|
+
export const ConnectorButton = styled(motion.button) `
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
user-select: none;
|
|
100
|
+
position: relative;
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
padding: 0 20px;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 64px;
|
|
106
|
+
font-size: 17px;
|
|
107
|
+
font-weight: var(--ck-primary-button-font-weight, 500);
|
|
108
|
+
line-height: 20px;
|
|
109
|
+
text-align: var(--ck-body-button-text-align, left);
|
|
110
|
+
transition: 180ms ease;
|
|
111
|
+
transition-property: background, color, box-shadow, transform, opacity;
|
|
112
|
+
will-change: transform, box-shadow, background-color, color, opacity;
|
|
113
|
+
|
|
114
|
+
--fallback-color: var(--ck-primary-button-color);
|
|
115
|
+
--fallback-background: var(--ck-primary-button-background);
|
|
116
|
+
--fallback-box-shadow: var(--ck-primary-button-box-shadow);
|
|
117
|
+
--fallback-border-radius: var(--ck-primary-button-border-radius);
|
|
118
|
+
|
|
119
|
+
--color: var(--ck-primary-button-color, var(--fallback-color));
|
|
120
|
+
--background: var(--ck-primary-button-background, var(--fallback-background));
|
|
121
|
+
--box-shadow: var(--ck-primary-button-box-shadow, var(--fallback-box-shadow));
|
|
122
|
+
--border-radius: var(
|
|
123
|
+
--ck-primary-button-border-radius,
|
|
124
|
+
var(--fallback-border-radius)
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
--hover-color: var(--ck-primary-button-hover-color, var(--color));
|
|
128
|
+
--hover-background: var(
|
|
129
|
+
--ck-primary-button-hover-background,
|
|
130
|
+
var(--background)
|
|
131
|
+
);
|
|
132
|
+
--hover-box-shadow: var(
|
|
133
|
+
--ck-primary-button-hover-box-shadow,
|
|
134
|
+
var(--box-shadow)
|
|
135
|
+
);
|
|
136
|
+
--hover-border-radius: var(
|
|
137
|
+
--ck-primary-button-hover-border-radius,
|
|
138
|
+
var(--border-radius)
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
--active-color: var(--ck-primary-button-active-color, var(--hover-color));
|
|
142
|
+
--active-background: var(
|
|
143
|
+
--ck-primary-button-active-background,
|
|
144
|
+
var(--hover-background)
|
|
145
|
+
);
|
|
146
|
+
--active-box-shadow: var(
|
|
147
|
+
--ck-primary-button-active-box-shadow,
|
|
148
|
+
var(--hover-box-shadow)
|
|
149
|
+
);
|
|
150
|
+
--active-border-radius: var(
|
|
151
|
+
--ck-primary-button-active-border-radius,
|
|
152
|
+
var(--hover-border-radius)
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
color: var(--color);
|
|
156
|
+
background: var(--background);
|
|
157
|
+
box-shadow: var(--box-shadow);
|
|
158
|
+
border-radius: var(--border-radius);
|
|
159
|
+
|
|
160
|
+
&:disabled {
|
|
161
|
+
transition: 180ms ease;
|
|
162
|
+
opacity: 0.4;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
--bg: var(--background);
|
|
166
|
+
&:not(:disabled) {
|
|
167
|
+
&:hover {
|
|
168
|
+
color: var(--hover-color);
|
|
169
|
+
background: var(--hover-background);
|
|
170
|
+
box-shadow: var(--hover-box-shadow);
|
|
171
|
+
border-radius: var(--hover-border-radius);
|
|
172
|
+
--bg: var(--hover-background, var(--background));
|
|
173
|
+
}
|
|
174
|
+
&:focus-visible {
|
|
175
|
+
transition-duration: 100ms;
|
|
176
|
+
color: var(--hover-color);
|
|
177
|
+
background: var(--hover-background);
|
|
178
|
+
box-shadow: var(--hover-box-shadow);
|
|
179
|
+
border-radius: var(--hover-border-radius);
|
|
180
|
+
--bg: var(--hover-background, var(--background));
|
|
181
|
+
}
|
|
182
|
+
&:active {
|
|
183
|
+
color: var(--active-color);
|
|
184
|
+
background: var(--active-background);
|
|
185
|
+
box-shadow: var(--active-box-shadow);
|
|
186
|
+
border-radius: var(--active-border-radius);
|
|
187
|
+
--bg: var(--active-background, var(--background));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
190
|
`;
|
|
191
|
-
export const ConnectorRecentlyUsed = styled(motion.span) `
|
|
192
|
-
position: relative;
|
|
193
|
-
top: var(--ck-recent-badge-top-offset, 0.5px);
|
|
194
|
-
display: inline-block;
|
|
195
|
-
padding: 10px 7px;
|
|
196
|
-
line-height: 0;
|
|
197
|
-
font-size: 13px;
|
|
198
|
-
font-weight: 400;
|
|
199
|
-
border-radius: var(--ck-recent-badge-border-radius, var(--border-radius));
|
|
200
|
-
color: var(
|
|
201
|
-
--ck-recent-badge-color,
|
|
202
|
-
var(--ck-accent-color, var(--ck-body-color-muted, currentColor))
|
|
203
|
-
);
|
|
204
|
-
background: var(--ck-recent-badge-background, transparent);
|
|
205
|
-
overflow: hidden;
|
|
206
|
-
span {
|
|
207
|
-
display: inline-block;
|
|
208
|
-
position: relative;
|
|
209
|
-
}
|
|
210
|
-
&:before {
|
|
211
|
-
z-index: 1;
|
|
212
|
-
content: "";
|
|
213
|
-
position: absolute;
|
|
214
|
-
inset: 0;
|
|
215
|
-
opacity: 0.4;
|
|
216
|
-
box-shadow: var(--ck-recent-badge-box-shadow, inset 0 0 0 1px currentColor);
|
|
217
|
-
border-radius: inherit;
|
|
218
|
-
}
|
|
219
|
-
&:after {
|
|
220
|
-
z-index: 2;
|
|
221
|
-
content: "";
|
|
222
|
-
position: absolute;
|
|
223
|
-
inset: -10%;
|
|
224
|
-
top: -110%;
|
|
225
|
-
aspect-ratio: 1/1;
|
|
226
|
-
opacity: 0.7;
|
|
227
|
-
background: linear-gradient(
|
|
228
|
-
170deg,
|
|
229
|
-
transparent 10%,
|
|
230
|
-
var(--ck-recent-badge-background, var(--bg)) 50%,
|
|
231
|
-
transparent 90%
|
|
232
|
-
);
|
|
233
|
-
animation: ${Shimmer} 2s linear infinite;
|
|
234
|
-
}
|
|
191
|
+
export const ConnectorRecentlyUsed = styled(motion.span) `
|
|
192
|
+
position: relative;
|
|
193
|
+
top: var(--ck-recent-badge-top-offset, 0.5px);
|
|
194
|
+
display: inline-block;
|
|
195
|
+
padding: 10px 7px;
|
|
196
|
+
line-height: 0;
|
|
197
|
+
font-size: 13px;
|
|
198
|
+
font-weight: 400;
|
|
199
|
+
border-radius: var(--ck-recent-badge-border-radius, var(--border-radius));
|
|
200
|
+
color: var(
|
|
201
|
+
--ck-recent-badge-color,
|
|
202
|
+
var(--ck-accent-color, var(--ck-body-color-muted, currentColor))
|
|
203
|
+
);
|
|
204
|
+
background: var(--ck-recent-badge-background, transparent);
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
span {
|
|
207
|
+
display: inline-block;
|
|
208
|
+
position: relative;
|
|
209
|
+
}
|
|
210
|
+
&:before {
|
|
211
|
+
z-index: 1;
|
|
212
|
+
content: "";
|
|
213
|
+
position: absolute;
|
|
214
|
+
inset: 0;
|
|
215
|
+
opacity: 0.4;
|
|
216
|
+
box-shadow: var(--ck-recent-badge-box-shadow, inset 0 0 0 1px currentColor);
|
|
217
|
+
border-radius: inherit;
|
|
218
|
+
}
|
|
219
|
+
&:after {
|
|
220
|
+
z-index: 2;
|
|
221
|
+
content: "";
|
|
222
|
+
position: absolute;
|
|
223
|
+
inset: -10%;
|
|
224
|
+
top: -110%;
|
|
225
|
+
aspect-ratio: 1/1;
|
|
226
|
+
opacity: 0.7;
|
|
227
|
+
background: linear-gradient(
|
|
228
|
+
170deg,
|
|
229
|
+
transparent 10%,
|
|
230
|
+
var(--ck-recent-badge-background, var(--bg)) 50%,
|
|
231
|
+
transparent 90%
|
|
232
|
+
);
|
|
233
|
+
animation: ${Shimmer} 2s linear infinite;
|
|
234
|
+
}
|
|
235
235
|
`;
|
|
236
|
-
export const ConnectorLabel = styled(motion.span) `
|
|
237
|
-
display: flex;
|
|
238
|
-
align-items: center;
|
|
239
|
-
gap: 9px;
|
|
240
|
-
width: 100%;
|
|
241
|
-
overflow: hidden;
|
|
242
|
-
white-space: nowrap;
|
|
243
|
-
text-overflow: ellipsis;
|
|
244
|
-
padding: 2px 0;
|
|
245
|
-
padding-right: 38px;
|
|
236
|
+
export const ConnectorLabel = styled(motion.span) `
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: 9px;
|
|
240
|
+
width: 100%;
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
padding: 2px 0;
|
|
245
|
+
padding-right: 38px;
|
|
246
246
|
`;
|
|
247
|
-
export const ConnectorIcon = styled(motion.div) `
|
|
248
|
-
position: absolute;
|
|
249
|
-
right: 21px;
|
|
250
|
-
overflow: hidden;
|
|
251
|
-
svg, img {
|
|
252
|
-
display: block;
|
|
253
|
-
position: relative;
|
|
254
|
-
pointer-events: none;
|
|
255
|
-
overflow: hidden;
|
|
256
|
-
border-radius: 27.5%;
|
|
257
|
-
width: 100%;
|
|
258
|
-
height: 100%;
|
|
259
|
-
}
|
|
247
|
+
export const ConnectorIcon = styled(motion.div) `
|
|
248
|
+
position: absolute;
|
|
249
|
+
right: 21px;
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
svg, img {
|
|
252
|
+
display: block;
|
|
253
|
+
position: relative;
|
|
254
|
+
pointer-events: none;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
border-radius: 27.5%;
|
|
257
|
+
width: 100%;
|
|
258
|
+
height: 100%;
|
|
259
|
+
}
|
|
260
260
|
`;
|
|
261
261
|
//# sourceMappingURL=styles.js.map
|