@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.
Files changed (127) hide show
  1. package/README.md +51 -87
  2. package/dist/core/config.d.ts +9 -46
  3. package/dist/core/iframe.d.ts +16 -0
  4. package/dist/dcp-sdk.umd.js +1 -12811
  5. package/dist/dcp.d.ts +12 -5
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +219 -2
  8. package/dist/types.d.ts +26 -164
  9. package/package.json +3 -13
  10. package/dist/ExchangeController-CbO41bcH.js +0 -217
  11. package/dist/HelpersUtil-DHm6EVSE.js +0 -120
  12. package/dist/NavigationUtil-kj9LEOOd.js +0 -8
  13. package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
  14. package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
  15. package/dist/PhArrowDown-C9AkNvLs.js +0 -73
  16. package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
  17. package/dist/PhArrowRight-DM1tna0G.js +0 -73
  18. package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
  19. package/dist/PhArrowUp-DmktzOWy.js +0 -73
  20. package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
  21. package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
  22. package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
  23. package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
  24. package/dist/PhBank-4_9QzqIB.js +0 -73
  25. package/dist/PhBrowser-B-JSznId.js +0 -73
  26. package/dist/PhCaretDown-vV5oHMNi.js +0 -73
  27. package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
  28. package/dist/PhCaretRight-CqQN4TT3.js +0 -73
  29. package/dist/PhCaretUp-Df7UCAHy.js +0 -73
  30. package/dist/PhCheck-gtpfK4ed.js +0 -73
  31. package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
  32. package/dist/PhClock-SDCW-NmF.js +0 -73
  33. package/dist/PhCompass-B7hgtdx-.js +0 -73
  34. package/dist/PhCopy-BcnhyXCy.js +0 -73
  35. package/dist/PhCreditCard-BJjByVgu.js +0 -73
  36. package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
  37. package/dist/PhDesktop-B3VKPuJx.js +0 -73
  38. package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
  39. package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
  40. package/dist/PhEnvelope-67uzHbI9.js +0 -73
  41. package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
  42. package/dist/PhGlobe-TMm_6qGk.js +0 -73
  43. package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
  44. package/dist/PhImage-gY96WtHR.js +0 -73
  45. package/dist/PhInfo-DRQM_ZDP.js +0 -73
  46. package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
  47. package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
  48. package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
  49. package/dist/PhPlus-BfTsQnUz.js +0 -73
  50. package/dist/PhPower-CxYUGOWn.js +0 -73
  51. package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
  52. package/dist/PhQrCode-BuJ97NYJ.js +0 -73
  53. package/dist/PhQuestion-kJoP8Mja.js +0 -73
  54. package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
  55. package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
  56. package/dist/PhSignOut-jk97OSVt.js +0 -73
  57. package/dist/PhSpinner-CiYOhwMg.js +0 -73
  58. package/dist/PhTrash-pxerMqzd.js +0 -73
  59. package/dist/PhUser-BMg0VV4A.js +0 -73
  60. package/dist/PhVault-DYQvx5A-.js +0 -73
  61. package/dist/PhWarning-NLC5Mj87.js +0 -73
  62. package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
  63. package/dist/PhX-Bx4wpwm3.js +0 -73
  64. package/dist/SwapController-Ch0FFTEt.js +0 -457
  65. package/dist/ccip-BrGhNXIM.js +0 -150
  66. package/dist/core/api.d.ts +0 -39
  67. package/dist/core/logic.d.ts +0 -2
  68. package/dist/core/wallet.d.ts +0 -55
  69. package/dist/data-capture-CpafmuCb.js +0 -490
  70. package/dist/email-Dcg4jlai.js +0 -344
  71. package/dist/embedded-wallet-DeoRdAPw.js +0 -820
  72. package/dist/features-B9Nde43h.js +0 -274
  73. package/dist/hashTypedData-a7b8tdkO.js +0 -197
  74. package/dist/if-defined-k21LutCn.js +0 -10
  75. package/dist/index-9vLw53Xl.js +0 -228
  76. package/dist/index-B5wUyynz.js +0 -107
  77. package/dist/index-B8LkUrww.js +0 -86
  78. package/dist/index-BA0VwKg0.js +0 -8189
  79. package/dist/index-BB9JJ24N.js +0 -125
  80. package/dist/index-BCkEvPQ6.js +0 -172
  81. package/dist/index-BDeO_csr.js +0 -171
  82. package/dist/index-Bb7babLF.js +0 -1281
  83. package/dist/index-BjOhprVS.js +0 -199
  84. package/dist/index-BjyMgZsf.js +0 -218
  85. package/dist/index-BkThIDLX.js +0 -159
  86. package/dist/index-BmFs6nb7.js +0 -209
  87. package/dist/index-C1QEJL-2.js +0 -572
  88. package/dist/index-C4qc4PdD.js +0 -387
  89. package/dist/index-CAPvUh14.js +0 -1750
  90. package/dist/index-CBMU3PTE.js +0 -65
  91. package/dist/index-CGwPkJLF.js +0 -355
  92. package/dist/index-CNGEqX3D.js +0 -153
  93. package/dist/index-CRlCq6IB.js +0 -7981
  94. package/dist/index-Cg_o-i9X.js +0 -118
  95. package/dist/index-D1BvhCbI.js +0 -62
  96. package/dist/index-DFi8TiHc.js +0 -128
  97. package/dist/index-DLwuveL9.js +0 -555
  98. package/dist/index-DMn7ktUQ.js +0 -56
  99. package/dist/index-DOXwtuwa.js +0 -117
  100. package/dist/index-DPPOW_Tp.js +0 -118
  101. package/dist/index-DQpzHpW-.js +0 -517
  102. package/dist/index-DXHg5C-W.js +0 -276
  103. package/dist/index-DcYjZV4H.js +0 -110
  104. package/dist/index-DeL88Lwc.js +0 -41655
  105. package/dist/index-DrWVlf8b.js +0 -46
  106. package/dist/index-Dsfuc4rB.js +0 -123
  107. package/dist/index-DuTny38n.js +0 -1175
  108. package/dist/index-Nfjb6bV0.js +0 -21991
  109. package/dist/index-WwwdQSN2.js +0 -85
  110. package/dist/index-Yha9Afch.js +0 -174
  111. package/dist/index-cbQHN7GC.js +0 -100
  112. package/dist/index-hyG3cYsv.js +0 -1083
  113. package/dist/index-qLxmmPaL.js +0 -257
  114. package/dist/localBatchGatewayRequest-vfcvRH0G.js +0 -91
  115. package/dist/onramp-BSiyOX4L.js +0 -855
  116. package/dist/parseSignature-CdCMAPZN.js +0 -3304
  117. package/dist/pay-with-exchange-CduNoMEz.js +0 -525
  118. package/dist/property-Bd8U3_QP.js +0 -618
  119. package/dist/receive-CrmptJlq.js +0 -232
  120. package/dist/ref-SOwYtCZb.js +0 -107
  121. package/dist/send-oMcHMEr6.js +0 -1166
  122. package/dist/socials-C0A4-FbY.js +0 -620
  123. package/dist/swaps-CbJJ9Ciu.js +0 -1760
  124. package/dist/transactions-BDfCoBS5.js +0 -37
  125. package/dist/ui/Modal.d.ts +0 -9
  126. package/dist/ui/index.d.ts +0 -6
  127. package/dist/w3m-modal-BjsTkny7.js +0 -1706
@@ -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);