@directcryptopay/sdk 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -87
- package/dist/core/config.d.ts +9 -46
- package/dist/core/iframe.d.ts +16 -0
- package/dist/dcp-sdk.umd.js +1 -12811
- package/dist/dcp.d.ts +12 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +219 -2
- package/dist/types.d.ts +26 -164
- package/package.json +3 -13
- package/dist/ExchangeController-CPMQq6Q-.js +0 -217
- package/dist/HelpersUtil-DfMFC7Bf.js +0 -120
- package/dist/NavigationUtil-kj9LEOOd.js +0 -8
- package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
- package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
- package/dist/PhArrowDown-C9AkNvLs.js +0 -73
- package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
- package/dist/PhArrowRight-DM1tna0G.js +0 -73
- package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
- package/dist/PhArrowUp-DmktzOWy.js +0 -73
- package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
- package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
- package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
- package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
- package/dist/PhBank-4_9QzqIB.js +0 -73
- package/dist/PhBrowser-B-JSznId.js +0 -73
- package/dist/PhCaretDown-vV5oHMNi.js +0 -73
- package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
- package/dist/PhCaretRight-CqQN4TT3.js +0 -73
- package/dist/PhCaretUp-Df7UCAHy.js +0 -73
- package/dist/PhCheck-gtpfK4ed.js +0 -73
- package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
- package/dist/PhClock-SDCW-NmF.js +0 -73
- package/dist/PhCompass-B7hgtdx-.js +0 -73
- package/dist/PhCopy-BcnhyXCy.js +0 -73
- package/dist/PhCreditCard-BJjByVgu.js +0 -73
- package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
- package/dist/PhDesktop-B3VKPuJx.js +0 -73
- package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
- package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
- package/dist/PhEnvelope-67uzHbI9.js +0 -73
- package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
- package/dist/PhGlobe-TMm_6qGk.js +0 -73
- package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
- package/dist/PhImage-gY96WtHR.js +0 -73
- package/dist/PhInfo-DRQM_ZDP.js +0 -73
- package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
- package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
- package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
- package/dist/PhPlus-BfTsQnUz.js +0 -73
- package/dist/PhPower-CxYUGOWn.js +0 -73
- package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
- package/dist/PhQrCode-BuJ97NYJ.js +0 -73
- package/dist/PhQuestion-kJoP8Mja.js +0 -73
- package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
- package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
- package/dist/PhSignOut-jk97OSVt.js +0 -73
- package/dist/PhSpinner-CiYOhwMg.js +0 -73
- package/dist/PhTrash-pxerMqzd.js +0 -73
- package/dist/PhUser-BMg0VV4A.js +0 -73
- package/dist/PhVault-DYQvx5A-.js +0 -73
- package/dist/PhWarning-NLC5Mj87.js +0 -73
- package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
- package/dist/PhX-Bx4wpwm3.js +0 -73
- package/dist/SwapController-Cti0Cyxa.js +0 -457
- package/dist/ccip-CKZd2XJ7.js +0 -150
- package/dist/core/api.d.ts +0 -39
- package/dist/core/logic.d.ts +0 -2
- package/dist/core/wallet.d.ts +0 -55
- package/dist/data-capture-7D5CL385.js +0 -490
- package/dist/email-AmK0INbZ.js +0 -344
- package/dist/embedded-wallet-Pn0I_XLn.js +0 -820
- package/dist/features-x8XNprEe.js +0 -274
- package/dist/hashTypedData-B50-z0AA.js +0 -197
- package/dist/if-defined-CdZSZ6UL.js +0 -10
- package/dist/index-4ewUtPPp.js +0 -7981
- package/dist/index-51l86yqx.js +0 -276
- package/dist/index-B6K56LF_.js +0 -85
- package/dist/index-BAmv9PxJ.js +0 -257
- package/dist/index-BEswjY9r.js +0 -117
- package/dist/index-BSKRq56S.js +0 -355
- package/dist/index-BaygXQxx.js +0 -172
- package/dist/index-BcPxaHr5.js +0 -118
- package/dist/index-Bjt7nGaJ.js +0 -199
- package/dist/index-BkTSyAJb.js +0 -21991
- package/dist/index-Bmnl7l2U.js +0 -555
- package/dist/index-BvPvouSq.js +0 -56
- package/dist/index-C-6iznUO.js +0 -174
- package/dist/index-C1QEJL-2.js +0 -572
- package/dist/index-C4M5s_AM.js +0 -228
- package/dist/index-CEqcN8QP.js +0 -1175
- package/dist/index-CM3YaYca.js +0 -8189
- package/dist/index-CclBLA5r.js +0 -517
- package/dist/index-ChTxJOiF.js +0 -46
- package/dist/index-CmAv0Tzr.js +0 -86
- package/dist/index-CmvoKY4x.js +0 -125
- package/dist/index-D7PmdQ9B.js +0 -1750
- package/dist/index-D7k2Pc4e.js +0 -1083
- package/dist/index-D7lmgqUR.js +0 -153
- package/dist/index-DG_-qYze.js +0 -107
- package/dist/index-DHot9Fdb.js +0 -218
- package/dist/index-DV2LrPtU.js +0 -123
- package/dist/index-DYBaJQ2W.js +0 -65
- package/dist/index-D_8VUmn1.js +0 -41543
- package/dist/index-D_gLn3rT.js +0 -100
- package/dist/index-DqcVUSC9.js +0 -62
- package/dist/index-I7VDqINw.js +0 -128
- package/dist/index-Oz72I9VP.js +0 -209
- package/dist/index-UclsHkJ0.js +0 -118
- package/dist/index-X8zir_1j.js +0 -110
- package/dist/index-XvlWKGCu.js +0 -1281
- package/dist/index-dO97xPlt.js +0 -171
- package/dist/index-uBeF6OAB.js +0 -387
- package/dist/index-zeA_RiCV.js +0 -159
- package/dist/localBatchGatewayRequest-BUZHGdjw.js +0 -91
- package/dist/onramp-CdnBuF0r.js +0 -855
- package/dist/parseSignature-CcyTNGr4.js +0 -3304
- package/dist/pay-with-exchange-CSM6WCOV.js +0 -525
- package/dist/property-Bd8U3_QP.js +0 -618
- package/dist/receive-DooMu4Dx.js +0 -232
- package/dist/ref-CpgjXAw7.js +0 -107
- package/dist/send-3T7CyYic.js +0 -1166
- package/dist/socials-Dt-iHL17.js +0 -620
- package/dist/swaps-CjA9Es42.js +0 -1760
- package/dist/transactions-nRm9DVzn.js +0 -37
- package/dist/ui/Modal.d.ts +0 -9
- package/dist/ui/index.d.ts +0 -6
- package/dist/w3m-modal-NV25AXhM.js +0 -1706
package/dist/index-X8zir_1j.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { cU as b, cV as p, cW as f, cX as m, cY as l } from "./index-D_8VUmn1.js";
|
|
2
|
-
import { n as d, c as v } from "./index-CEqcN8QP.js";
|
|
3
|
-
const h = b`
|
|
4
|
-
button {
|
|
5
|
-
border: none;
|
|
6
|
-
background: transparent;
|
|
7
|
-
height: 20px;
|
|
8
|
-
padding: ${({ spacing: t }) => t[2]};
|
|
9
|
-
column-gap: ${({ spacing: t }) => t[1]};
|
|
10
|
-
border-radius: ${({ borderRadius: t }) => t[1]};
|
|
11
|
-
padding: 0 ${({ spacing: t }) => t[1]};
|
|
12
|
-
border-radius: ${({ spacing: t }) => t[1]};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* -- Variants --------------------------------------------------------- */
|
|
16
|
-
button[data-variant='accent'] {
|
|
17
|
-
color: ${({ tokens: t }) => t.core.textAccentPrimary};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
button[data-variant='secondary'] {
|
|
21
|
-
color: ${({ tokens: t }) => t.theme.textSecondary};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* -- Focus states --------------------------------------------------- */
|
|
25
|
-
button:focus-visible:enabled {
|
|
26
|
-
box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
button[data-variant='accent']:focus-visible:enabled {
|
|
30
|
-
background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
button[data-variant='secondary']:focus-visible:enabled {
|
|
34
|
-
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* -- Hover & Active states ----------------------------------------------------------- */
|
|
38
|
-
button[data-variant='accent']:hover:enabled {
|
|
39
|
-
background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
button[data-variant='secondary']:hover:enabled {
|
|
43
|
-
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
button[data-variant='accent']:focus-visible {
|
|
47
|
-
background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
button[data-variant='secondary']:focus-visible {
|
|
51
|
-
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
52
|
-
box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
button[disabled] {
|
|
56
|
-
opacity: 0.5;
|
|
57
|
-
cursor: not-allowed;
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
60
|
-
var r = function(t, n, a, c) {
|
|
61
|
-
var i = arguments.length, e = i < 3 ? n : c === null ? c = Object.getOwnPropertyDescriptor(n, a) : c, s;
|
|
62
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(t, n, a, c);
|
|
63
|
-
else for (var u = t.length - 1; u >= 0; u--) (s = t[u]) && (e = (i < 3 ? s(e) : i > 3 ? s(n, a, e) : s(n, a)) || e);
|
|
64
|
-
return i > 3 && e && Object.defineProperty(n, a, e), e;
|
|
65
|
-
};
|
|
66
|
-
const y = {
|
|
67
|
-
sm: "sm-medium",
|
|
68
|
-
md: "md-medium"
|
|
69
|
-
}, g = {
|
|
70
|
-
accent: "accent-primary",
|
|
71
|
-
secondary: "secondary"
|
|
72
|
-
};
|
|
73
|
-
let o = class extends m {
|
|
74
|
-
constructor() {
|
|
75
|
-
super(...arguments), this.size = "md", this.disabled = !1, this.variant = "accent", this.icon = void 0;
|
|
76
|
-
}
|
|
77
|
-
render() {
|
|
78
|
-
return l`
|
|
79
|
-
<button ?disabled=${this.disabled} data-variant=${this.variant}>
|
|
80
|
-
<slot name="iconLeft"></slot>
|
|
81
|
-
<wui-text
|
|
82
|
-
color=${g[this.variant]}
|
|
83
|
-
variant=${y[this.size]}
|
|
84
|
-
>
|
|
85
|
-
<slot></slot>
|
|
86
|
-
</wui-text>
|
|
87
|
-
${this.iconTemplate()}
|
|
88
|
-
</button>
|
|
89
|
-
`;
|
|
90
|
-
}
|
|
91
|
-
iconTemplate() {
|
|
92
|
-
return this.icon ? l`<wui-icon name=${this.icon} size="sm"></wui-icon>` : null;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
o.styles = [p, f, h];
|
|
96
|
-
r([
|
|
97
|
-
d()
|
|
98
|
-
], o.prototype, "size", void 0);
|
|
99
|
-
r([
|
|
100
|
-
d({ type: Boolean })
|
|
101
|
-
], o.prototype, "disabled", void 0);
|
|
102
|
-
r([
|
|
103
|
-
d()
|
|
104
|
-
], o.prototype, "variant", void 0);
|
|
105
|
-
r([
|
|
106
|
-
d()
|
|
107
|
-
], o.prototype, "icon", void 0);
|
|
108
|
-
o = r([
|
|
109
|
-
v("wui-link")
|
|
110
|
-
], o);
|