@directcryptopay/sdk 0.2.4 → 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-CbO41bcH.js +0 -217
- package/dist/HelpersUtil-DHm6EVSE.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-Ch0FFTEt.js +0 -457
- package/dist/ccip-BrGhNXIM.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-CpafmuCb.js +0 -490
- package/dist/email-Dcg4jlai.js +0 -344
- package/dist/embedded-wallet-DeoRdAPw.js +0 -820
- package/dist/features-B9Nde43h.js +0 -274
- package/dist/hashTypedData-a7b8tdkO.js +0 -197
- package/dist/if-defined-k21LutCn.js +0 -10
- package/dist/index-9vLw53Xl.js +0 -228
- package/dist/index-B5wUyynz.js +0 -107
- package/dist/index-B8LkUrww.js +0 -86
- package/dist/index-BA0VwKg0.js +0 -8189
- package/dist/index-BB9JJ24N.js +0 -125
- package/dist/index-BCkEvPQ6.js +0 -172
- package/dist/index-BDeO_csr.js +0 -171
- package/dist/index-Bb7babLF.js +0 -1281
- package/dist/index-BjOhprVS.js +0 -199
- package/dist/index-BjyMgZsf.js +0 -218
- package/dist/index-BkThIDLX.js +0 -159
- package/dist/index-BmFs6nb7.js +0 -209
- package/dist/index-C1QEJL-2.js +0 -572
- package/dist/index-C4qc4PdD.js +0 -387
- package/dist/index-CAPvUh14.js +0 -1750
- package/dist/index-CBMU3PTE.js +0 -65
- package/dist/index-CGwPkJLF.js +0 -355
- package/dist/index-CNGEqX3D.js +0 -153
- package/dist/index-CRlCq6IB.js +0 -7981
- package/dist/index-Cg_o-i9X.js +0 -118
- package/dist/index-D1BvhCbI.js +0 -62
- package/dist/index-DFi8TiHc.js +0 -128
- package/dist/index-DLwuveL9.js +0 -555
- package/dist/index-DMn7ktUQ.js +0 -56
- package/dist/index-DOXwtuwa.js +0 -117
- package/dist/index-DPPOW_Tp.js +0 -118
- package/dist/index-DQpzHpW-.js +0 -517
- package/dist/index-DXHg5C-W.js +0 -276
- package/dist/index-DcYjZV4H.js +0 -110
- package/dist/index-DeL88Lwc.js +0 -41655
- package/dist/index-DrWVlf8b.js +0 -46
- package/dist/index-Dsfuc4rB.js +0 -123
- package/dist/index-DuTny38n.js +0 -1175
- package/dist/index-Nfjb6bV0.js +0 -21991
- package/dist/index-WwwdQSN2.js +0 -85
- package/dist/index-Yha9Afch.js +0 -174
- package/dist/index-cbQHN7GC.js +0 -100
- package/dist/index-hyG3cYsv.js +0 -1083
- package/dist/index-qLxmmPaL.js +0 -257
- package/dist/localBatchGatewayRequest-vfcvRH0G.js +0 -91
- package/dist/onramp-BSiyOX4L.js +0 -855
- package/dist/parseSignature-CdCMAPZN.js +0 -3304
- package/dist/pay-with-exchange-CduNoMEz.js +0 -525
- package/dist/property-Bd8U3_QP.js +0 -618
- package/dist/receive-CrmptJlq.js +0 -232
- package/dist/ref-SOwYtCZb.js +0 -107
- package/dist/send-oMcHMEr6.js +0 -1166
- package/dist/socials-C0A4-FbY.js +0 -620
- package/dist/swaps-CbJJ9Ciu.js +0 -1760
- package/dist/transactions-BDfCoBS5.js +0 -37
- package/dist/ui/Modal.d.ts +0 -9
- package/dist/ui/index.d.ts +0 -6
- package/dist/w3m-modal-BjsTkny7.js +0 -1706
package/dist/index-BmFs6nb7.js
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { cU as b, cV as g, cW as p, cX as h, cY as u } from "./index-DeL88Lwc.js";
|
|
2
|
-
import { n, c as v } from "./index-DuTny38n.js";
|
|
3
|
-
import "./index-B8LkUrww.js";
|
|
4
|
-
const m = b`
|
|
5
|
-
:host {
|
|
6
|
-
width: var(--local-width);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
button {
|
|
10
|
-
width: var(--local-width);
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
column-gap: ${({ spacing: t }) => t[2]};
|
|
13
|
-
transition:
|
|
14
|
-
scale ${({ durations: t }) => t.lg} ${({ easings: t }) => t["ease-out-power-1"]},
|
|
15
|
-
background-color ${({ durations: t }) => t.lg}
|
|
16
|
-
${({ easings: t }) => t["ease-out-power-2"]},
|
|
17
|
-
border-radius ${({ durations: t }) => t.lg}
|
|
18
|
-
${({ easings: t }) => t["ease-out-power-1"]};
|
|
19
|
-
will-change: scale, background-color, border-radius;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* -- Sizes --------------------------------------------------- */
|
|
24
|
-
button[data-size='sm'] {
|
|
25
|
-
border-radius: ${({ borderRadius: t }) => t[2]};
|
|
26
|
-
padding: 0 ${({ spacing: t }) => t[2]};
|
|
27
|
-
height: 28px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
button[data-size='md'] {
|
|
31
|
-
border-radius: ${({ borderRadius: t }) => t[3]};
|
|
32
|
-
padding: 0 ${({ spacing: t }) => t[4]};
|
|
33
|
-
height: 38px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
button[data-size='lg'] {
|
|
37
|
-
border-radius: ${({ borderRadius: t }) => t[4]};
|
|
38
|
-
padding: 0 ${({ spacing: t }) => t[5]};
|
|
39
|
-
height: 48px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* -- Variants --------------------------------------------------------- */
|
|
43
|
-
button[data-variant='accent-primary'] {
|
|
44
|
-
background-color: ${({ tokens: t }) => t.core.backgroundAccentPrimary};
|
|
45
|
-
color: ${({ tokens: t }) => t.theme.textInvert};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
button[data-variant='accent-secondary'] {
|
|
49
|
-
background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
|
|
50
|
-
color: ${({ tokens: t }) => t.core.textAccentPrimary};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
button[data-variant='neutral-primary'] {
|
|
54
|
-
background-color: ${({ tokens: t }) => t.theme.backgroundInvert};
|
|
55
|
-
color: ${({ tokens: t }) => t.theme.textInvert};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
button[data-variant='neutral-secondary'] {
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
border: 1px solid ${({ tokens: t }) => t.theme.borderSecondary};
|
|
61
|
-
color: ${({ tokens: t }) => t.theme.textPrimary};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
button[data-variant='neutral-tertiary'] {
|
|
65
|
-
background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
66
|
-
color: ${({ tokens: t }) => t.theme.textPrimary};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
button[data-variant='error-primary'] {
|
|
70
|
-
background-color: ${({ tokens: t }) => t.core.textError};
|
|
71
|
-
color: ${({ tokens: t }) => t.theme.textInvert};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
button[data-variant='error-secondary'] {
|
|
75
|
-
background-color: ${({ tokens: t }) => t.core.backgroundError};
|
|
76
|
-
color: ${({ tokens: t }) => t.core.textError};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
button[data-variant='shade'] {
|
|
80
|
-
background: var(--wui-color-gray-glass-002);
|
|
81
|
-
color: var(--wui-color-fg-200);
|
|
82
|
-
border: none;
|
|
83
|
-
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* -- Focus states --------------------------------------------------- */
|
|
87
|
-
button[data-size='sm']:focus-visible:enabled {
|
|
88
|
-
border-radius: 28px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
button[data-size='md']:focus-visible:enabled {
|
|
92
|
-
border-radius: 38px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
button[data-size='lg']:focus-visible:enabled {
|
|
96
|
-
border-radius: 48px;
|
|
97
|
-
}
|
|
98
|
-
button[data-variant='shade']:focus-visible:enabled {
|
|
99
|
-
background: var(--wui-color-gray-glass-005);
|
|
100
|
-
box-shadow:
|
|
101
|
-
inset 0 0 0 1px var(--wui-color-gray-glass-010),
|
|
102
|
-
0 0 0 4px var(--wui-color-gray-glass-002);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* -- Hover & Active states ----------------------------------------------------------- */
|
|
106
|
-
@media (hover: hover) {
|
|
107
|
-
button[data-size='sm']:hover:enabled {
|
|
108
|
-
border-radius: 28px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
button[data-size='md']:hover:enabled {
|
|
112
|
-
border-radius: 38px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
button[data-size='lg']:hover:enabled {
|
|
116
|
-
border-radius: 48px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
button[data-variant='shade']:hover:enabled {
|
|
120
|
-
background: var(--wui-color-gray-glass-002);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
button[data-variant='shade']:active:enabled {
|
|
124
|
-
background: var(--wui-color-gray-glass-005);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
button[data-size='sm']:active:enabled {
|
|
129
|
-
border-radius: 28px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
button[data-size='md']:active:enabled {
|
|
133
|
-
border-radius: 38px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
button[data-size='lg']:active:enabled {
|
|
137
|
-
border-radius: 48px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* -- Disabled states --------------------------------------------------- */
|
|
141
|
-
button:disabled {
|
|
142
|
-
opacity: 0.3;
|
|
143
|
-
}
|
|
144
|
-
`;
|
|
145
|
-
var i = function(t, a, o, s) {
|
|
146
|
-
var d = arguments.length, e = d < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, o) : s, l;
|
|
147
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(t, a, o, s);
|
|
148
|
-
else for (var c = t.length - 1; c >= 0; c--) (l = t[c]) && (e = (d < 3 ? l(e) : d > 3 ? l(a, o, e) : l(a, o)) || e);
|
|
149
|
-
return d > 3 && e && Object.defineProperty(a, o, e), e;
|
|
150
|
-
};
|
|
151
|
-
const y = {
|
|
152
|
-
lg: "lg-regular-mono",
|
|
153
|
-
md: "md-regular-mono",
|
|
154
|
-
sm: "sm-regular-mono"
|
|
155
|
-
}, $ = {
|
|
156
|
-
lg: "md",
|
|
157
|
-
md: "md",
|
|
158
|
-
sm: "sm"
|
|
159
|
-
};
|
|
160
|
-
let r = class extends h {
|
|
161
|
-
constructor() {
|
|
162
|
-
super(...arguments), this.size = "lg", this.disabled = !1, this.fullWidth = !1, this.loading = !1, this.variant = "accent-primary";
|
|
163
|
-
}
|
|
164
|
-
render() {
|
|
165
|
-
this.style.cssText = `
|
|
166
|
-
--local-width: ${this.fullWidth ? "100%" : "auto"};
|
|
167
|
-
`;
|
|
168
|
-
const a = this.textVariant ?? y[this.size];
|
|
169
|
-
return u`
|
|
170
|
-
<button data-variant=${this.variant} data-size=${this.size} ?disabled=${this.disabled}>
|
|
171
|
-
${this.loadingTemplate()}
|
|
172
|
-
<slot name="iconLeft"></slot>
|
|
173
|
-
<wui-text variant=${a} color="inherit">
|
|
174
|
-
<slot></slot>
|
|
175
|
-
</wui-text>
|
|
176
|
-
<slot name="iconRight"></slot>
|
|
177
|
-
</button>
|
|
178
|
-
`;
|
|
179
|
-
}
|
|
180
|
-
loadingTemplate() {
|
|
181
|
-
if (this.loading) {
|
|
182
|
-
const a = $[this.size], o = this.variant === "neutral-primary" || this.variant === "accent-primary" ? "invert" : "primary";
|
|
183
|
-
return u`<wui-loading-spinner color=${o} size=${a}></wui-loading-spinner>`;
|
|
184
|
-
}
|
|
185
|
-
return null;
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
r.styles = [g, p, m];
|
|
189
|
-
i([
|
|
190
|
-
n()
|
|
191
|
-
], r.prototype, "size", void 0);
|
|
192
|
-
i([
|
|
193
|
-
n({ type: Boolean })
|
|
194
|
-
], r.prototype, "disabled", void 0);
|
|
195
|
-
i([
|
|
196
|
-
n({ type: Boolean })
|
|
197
|
-
], r.prototype, "fullWidth", void 0);
|
|
198
|
-
i([
|
|
199
|
-
n({ type: Boolean })
|
|
200
|
-
], r.prototype, "loading", void 0);
|
|
201
|
-
i([
|
|
202
|
-
n()
|
|
203
|
-
], r.prototype, "variant", void 0);
|
|
204
|
-
i([
|
|
205
|
-
n()
|
|
206
|
-
], r.prototype, "textVariant", void 0);
|
|
207
|
-
r = i([
|
|
208
|
-
v("wui-button")
|
|
209
|
-
], r);
|