@directcryptopay/sdk 0.2.2 → 0.2.3

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 (228) hide show
  1. package/dist/ExchangeController-CPMQq6Q-.js +217 -0
  2. package/dist/HelpersUtil-DfMFC7Bf.js +120 -0
  3. package/dist/NavigationUtil-kj9LEOOd.js +8 -0
  4. package/dist/PhArrowCircleDown-lsK25DCk.js +73 -0
  5. package/dist/PhArrowClockwise-NeKHZ1co.js +73 -0
  6. package/dist/PhArrowDown-C9AkNvLs.js +73 -0
  7. package/dist/PhArrowLeft-RNfIQP1X.js +73 -0
  8. package/dist/PhArrowRight-DM1tna0G.js +73 -0
  9. package/dist/PhArrowSquareOut-S5XYbAZj.js +73 -0
  10. package/dist/PhArrowUp-DmktzOWy.js +73 -0
  11. package/dist/PhArrowUpRight-BkNeW_5i.js +73 -0
  12. package/dist/PhArrowsClockwise-CQ4pG76b.js +73 -0
  13. package/dist/PhArrowsDownUp-H6gxaNM6.js +73 -0
  14. package/dist/PhArrowsLeftRight-DZSsfMR6.js +73 -0
  15. package/dist/PhBank-4_9QzqIB.js +73 -0
  16. package/dist/PhBrowser-B-JSznId.js +73 -0
  17. package/dist/PhCaretDown-vV5oHMNi.js +73 -0
  18. package/dist/PhCaretLeft-BLo6Y_f4.js +73 -0
  19. package/dist/PhCaretRight-CqQN4TT3.js +73 -0
  20. package/dist/PhCaretUp-Df7UCAHy.js +73 -0
  21. package/dist/PhCheck-gtpfK4ed.js +73 -0
  22. package/dist/PhCircleHalf-Uq7dwDYw.js +73 -0
  23. package/dist/PhClock-SDCW-NmF.js +73 -0
  24. package/dist/PhCompass-B7hgtdx-.js +73 -0
  25. package/dist/PhCopy-BcnhyXCy.js +73 -0
  26. package/dist/PhCreditCard-BJjByVgu.js +73 -0
  27. package/dist/PhCurrencyDollar-B7ZXqXBy.js +73 -0
  28. package/dist/PhDesktop-B3VKPuJx.js +73 -0
  29. package/dist/PhDeviceMobile-Bnd0TYEH.js +73 -0
  30. package/dist/PhDotsThree-yyMWyZ-R.js +73 -0
  31. package/dist/PhEnvelope-67uzHbI9.js +73 -0
  32. package/dist/PhFunnelSimple-B-DCsloI.js +73 -0
  33. package/dist/PhGlobe-TMm_6qGk.js +73 -0
  34. package/dist/PhIdentificationCard-CePPD2xc.js +73 -0
  35. package/dist/PhImage-gY96WtHR.js +73 -0
  36. package/dist/PhInfo-DRQM_ZDP.js +73 -0
  37. package/dist/PhLightbulb-B0TxPfZ1.js +73 -0
  38. package/dist/PhMagnifyingGlass-B8si5_6W.js +73 -0
  39. package/dist/PhPaperPlaneRight-DVu5PLYd.js +73 -0
  40. package/dist/PhPlus-BfTsQnUz.js +73 -0
  41. package/dist/PhPower-CxYUGOWn.js +73 -0
  42. package/dist/PhPuzzlePiece-CQ4wh0gV.js +73 -0
  43. package/dist/PhQrCode-BuJ97NYJ.js +73 -0
  44. package/dist/PhQuestion-kJoP8Mja.js +73 -0
  45. package/dist/PhQuestionMark-C46ZkFpu.js +73 -0
  46. package/dist/PhSealCheck-Eh8jVqSN.js +73 -0
  47. package/dist/PhSignOut-jk97OSVt.js +73 -0
  48. package/dist/PhSpinner-CiYOhwMg.js +73 -0
  49. package/dist/PhTrash-pxerMqzd.js +73 -0
  50. package/dist/PhUser-BMg0VV4A.js +73 -0
  51. package/dist/PhVault-DYQvx5A-.js +73 -0
  52. package/dist/PhWarning-NLC5Mj87.js +73 -0
  53. package/dist/PhWarningCircle-Ch2jU9fA.js +73 -0
  54. package/dist/PhX-Bx4wpwm3.js +73 -0
  55. package/dist/SwapController-Cti0Cyxa.js +457 -0
  56. package/dist/{ccip-BIGqktC1.js → ccip-CKZd2XJ7.js} +4 -4
  57. package/dist/data-capture-7D5CL385.js +490 -0
  58. package/dist/dcp-sdk.umd.js +7400 -6589
  59. package/dist/email-AmK0INbZ.js +344 -0
  60. package/dist/embedded-wallet-Pn0I_XLn.js +820 -0
  61. package/dist/features-x8XNprEe.js +274 -0
  62. package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-B50-z0AA.js} +6 -6
  63. package/dist/if-defined-CdZSZ6UL.js +10 -0
  64. package/dist/index-4ewUtPPp.js +7981 -0
  65. package/dist/{index-D6h-qfpt.js → index-51l86yqx.js} +5 -5
  66. package/dist/index-B6K56LF_.js +85 -0
  67. package/dist/index-BAmv9PxJ.js +257 -0
  68. package/dist/index-BEswjY9r.js +117 -0
  69. package/dist/index-BSKRq56S.js +355 -0
  70. package/dist/index-BaygXQxx.js +172 -0
  71. package/dist/index-BcPxaHr5.js +118 -0
  72. package/dist/index-Bjt7nGaJ.js +199 -0
  73. package/dist/{index-D5r0iSq4.js → index-BkTSyAJb.js} +1 -1
  74. package/dist/index-Bmnl7l2U.js +555 -0
  75. package/dist/index-BvPvouSq.js +56 -0
  76. package/dist/index-C-6iznUO.js +174 -0
  77. package/dist/index-C4M5s_AM.js +228 -0
  78. package/dist/index-CEqcN8QP.js +1175 -0
  79. package/dist/{index-CPTcEPbD.js → index-CM3YaYca.js} +296 -298
  80. package/dist/{index-f3LXSfM5.js → index-CclBLA5r.js} +56 -142
  81. package/dist/index-ChTxJOiF.js +46 -0
  82. package/dist/index-CmAv0Tzr.js +86 -0
  83. package/dist/index-CmvoKY4x.js +125 -0
  84. package/dist/{index-BdSIrl-R.js → index-D7PmdQ9B.js} +578 -570
  85. package/dist/{index-DobBVPe4.js → index-D7k2Pc4e.js} +481 -236
  86. package/dist/index-D7lmgqUR.js +153 -0
  87. package/dist/index-DG_-qYze.js +107 -0
  88. package/dist/{index-Dy4NyE6l.js → index-DHot9Fdb.js} +7 -7
  89. package/dist/index-DV2LrPtU.js +123 -0
  90. package/dist/index-DYBaJQ2W.js +65 -0
  91. package/dist/{index-BJ7cbG3N.js → index-D_8VUmn1.js} +36688 -40208
  92. package/dist/index-D_gLn3rT.js +100 -0
  93. package/dist/index-DqcVUSC9.js +62 -0
  94. package/dist/index-I7VDqINw.js +128 -0
  95. package/dist/index-Oz72I9VP.js +209 -0
  96. package/dist/index-UclsHkJ0.js +118 -0
  97. package/dist/index-X8zir_1j.js +110 -0
  98. package/dist/index-XvlWKGCu.js +1281 -0
  99. package/dist/index-dO97xPlt.js +171 -0
  100. package/dist/{index-5mp7WkhV.js → index-uBeF6OAB.js} +2 -2
  101. package/dist/index-zeA_RiCV.js +159 -0
  102. package/dist/index.js +1 -1
  103. package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-BUZHGdjw.js} +1 -1
  104. package/dist/onramp-CdnBuF0r.js +855 -0
  105. package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CcyTNGr4.js} +2312 -2313
  106. package/dist/pay-with-exchange-CSM6WCOV.js +525 -0
  107. package/dist/property-Bd8U3_QP.js +618 -0
  108. package/dist/receive-DooMu4Dx.js +232 -0
  109. package/dist/ref-CpgjXAw7.js +107 -0
  110. package/dist/send-3T7CyYic.js +1166 -0
  111. package/dist/socials-Dt-iHL17.js +620 -0
  112. package/dist/swaps-CjA9Es42.js +1760 -0
  113. package/dist/{transactions-DujFkB-M.js → transactions-nRm9DVzn.js} +10 -10
  114. package/dist/w3m-modal-NV25AXhM.js +1706 -0
  115. package/package.json +3 -3
  116. package/dist/ConstantsUtil-B-_-u8aQ.js +0 -6
  117. package/dist/add-sji6scSD.js +0 -19
  118. package/dist/all-wallets-B4H-890E.js +0 -10
  119. package/dist/app-store-Z433s97G.js +0 -21
  120. package/dist/apple-b8Lxj7nb.js +0 -22
  121. package/dist/arrow-bottom-M9oWWo_9.js +0 -12
  122. package/dist/arrow-bottom-circle-N9c4CXY1.js +0 -15
  123. package/dist/arrow-left-Dw8AKfwf.js +0 -12
  124. package/dist/arrow-right-DwLQZSC_.js +0 -12
  125. package/dist/arrow-top-zhUjkBe1.js +0 -12
  126. package/dist/bank-CbQdnILK.js +0 -18
  127. package/dist/browser-xAqNwt7z.js +0 -18
  128. package/dist/card-Dr1QBmWp.js +0 -18
  129. package/dist/checkmark-BhT1dTgG.js +0 -15
  130. package/dist/checkmark-bold-CPB29wqQ.js +0 -12
  131. package/dist/chevron-bottom-BhNyx2II.js +0 -12
  132. package/dist/chevron-left-CGuEjQlY.js +0 -12
  133. package/dist/chevron-right-CvIRRsqZ.js +0 -12
  134. package/dist/chevron-top-RSzCqjBd.js +0 -12
  135. package/dist/chrome-store-Cs8dAgs0.js +0 -65
  136. package/dist/clock-fhZO5otC.js +0 -12
  137. package/dist/close-BPuztrdR.js +0 -12
  138. package/dist/coinPlaceholder-C8X2i7Kh.js +0 -12
  139. package/dist/compass-WMc5huk0.js +0 -12
  140. package/dist/copy-DVAeT17y.js +0 -19
  141. package/dist/cursor-BJ4YLXfy.js +0 -7
  142. package/dist/cursor-transparent-DN2fLQN4.js +0 -16
  143. package/dist/desktop-6avxisBw.js +0 -13
  144. package/dist/disconnect-AReVI8Gk.js +0 -12
  145. package/dist/discord-CxrI30BZ.js +0 -21
  146. package/dist/email-B8dIIaay.js +0 -696
  147. package/dist/embedded-wallet-C_5hF7rM.js +0 -468
  148. package/dist/etherscan-BnAy8cIF.js +0 -10
  149. package/dist/exclamation-triangle-Bu7nHwx9.js +0 -8
  150. package/dist/extension-F0LIhvcf.js +0 -12
  151. package/dist/external-link-CP6phyaM.js +0 -12
  152. package/dist/facebook-BtQ-Io2y.js +0 -30
  153. package/dist/farcaster-BmaN1ugd.js +0 -16
  154. package/dist/filters-DpEwoOmy.js +0 -12
  155. package/dist/github-q7qO9V-b.js +0 -22
  156. package/dist/google-DH_ZE8bW.js +0 -22
  157. package/dist/help-circle-BAQVmKas.js +0 -16
  158. package/dist/id-Cj68Zwgo.js +0 -16
  159. package/dist/if-defined-CNte9B3N.js +0 -744
  160. package/dist/image-BKJDw6N-.js +0 -8
  161. package/dist/index-7toZMdtG.js +0 -573
  162. package/dist/index-B1uKzdvN.js +0 -170
  163. package/dist/index-BHFZVF-b.js +0 -257
  164. package/dist/index-BKwa5JSA.js +0 -559
  165. package/dist/index-BP4B9VUt.js +0 -54
  166. package/dist/index-BVdzXHpO.js +0 -181
  167. package/dist/index-BYND0GJ9.js +0 -146
  168. package/dist/index-BaJ0zEbh.js +0 -97
  169. package/dist/index-Bh0MPFwP.js +0 -58
  170. package/dist/index-Bsh7_qTp.js +0 -511
  171. package/dist/index-BwnXTNNg.js +0 -199
  172. package/dist/index-C0kPDbg_.js +0 -77
  173. package/dist/index-CKikVKe2.js +0 -75
  174. package/dist/index-ChVh0Hkp.js +0 -243
  175. package/dist/index-Cle_NnnS.js +0 -305
  176. package/dist/index-CmWdvIFT.js +0 -51
  177. package/dist/index-D2AMA8Bu.js +0 -65
  178. package/dist/index-DAUM8CO4.js +0 -65
  179. package/dist/index-DGjZW6uR.js +0 -78
  180. package/dist/index-DQe94z7X.js +0 -265
  181. package/dist/index-DTo6w99t.js +0 -7864
  182. package/dist/index-DYdXjap2.js +0 -320
  183. package/dist/index-DceCxNV5.js +0 -181
  184. package/dist/index-Uw9cSw0q.js +0 -294
  185. package/dist/index-qiuyrukh.js +0 -45
  186. package/dist/index-zddvaohA.js +0 -78
  187. package/dist/info-RfPsmroW.js +0 -7
  188. package/dist/info-circle-DFKHB_ZN.js +0 -16
  189. package/dist/lightbulb-B-Bykj9X.js +0 -7
  190. package/dist/mail-mBAgGuw5.js +0 -12
  191. package/dist/mobile-Dhh3ndkf.js +0 -13
  192. package/dist/more-D1h7UTvg.js +0 -15
  193. package/dist/network-placeholder-Dqynvc-t.js +0 -18
  194. package/dist/nftPlaceholder-Df7MW4MM.js +0 -12
  195. package/dist/off-BmG3cHTX.js +0 -12
  196. package/dist/onramp-C401Aenb.js +0 -1279
  197. package/dist/play-store-4q1fzL_P.js +0 -36
  198. package/dist/plus-603Gs3yG.js +0 -17
  199. package/dist/qr-code-Dgwhf6M1.js +0 -10
  200. package/dist/receive-CYXbbEUR.js +0 -186
  201. package/dist/recycle-horizontal-Bu8zZ563.js +0 -13
  202. package/dist/ref-DpmKRWBK.js +0 -41
  203. package/dist/refresh-BMZFu0mu.js +0 -12
  204. package/dist/reown-logo-BXph7ThY.js +0 -16
  205. package/dist/search-Cm_V42Y_.js +0 -12
  206. package/dist/secp256k1-C0iX1TUr.js +0 -1510
  207. package/dist/secp256k1-DOQBqE4Z.js +0 -1302
  208. package/dist/send-BSMYxDuP.js +0 -19
  209. package/dist/send-C8EeIzRB.js +0 -1038
  210. package/dist/socials-DQrHQajs.js +0 -574
  211. package/dist/swapHorizontal-98rnJewS.js +0 -12
  212. package/dist/swapHorizontalBold-C299FjEt.js +0 -12
  213. package/dist/swapHorizontalMedium-Cqm6i4WJ.js +0 -20
  214. package/dist/swapHorizontalRoundedBold-De7hFfqZ.js +0 -12
  215. package/dist/swapVertical-DSL75l8L.js +0 -12
  216. package/dist/swaps-BuTNp65Y.js +0 -1637
  217. package/dist/telegram-cJP7hgUb.js +0 -20
  218. package/dist/three-dots-DHnEh28O.js +0 -9
  219. package/dist/twitch-CR2iGcBo.js +0 -22
  220. package/dist/twitterIcon-E5TAQjOn.js +0 -10
  221. package/dist/verify-DEukUJp0.js +0 -12
  222. package/dist/verify-filled-BXsx1i_p.js +0 -12
  223. package/dist/w3m-modal-Bm7BqVng.js +0 -1037
  224. package/dist/wallet-CzyyvdrT.js +0 -12
  225. package/dist/wallet-placeholder-BrcmyGEe.js +0 -18
  226. package/dist/walletconnect-BSYogWiE.js +0 -36
  227. package/dist/warning-circle-Cgp2BW3m.js +0 -16
  228. package/dist/x-BJinLpTw.js +0 -16
@@ -1,170 +0,0 @@
1
- import { cE as v, cH as b, cI as g, cF as h, cG as l } from "./index-BJ7cbG3N.js";
2
- import { n as r, c as w } from "./if-defined-CNte9B3N.js";
3
- import "./index-CmWdvIFT.js";
4
- const p = v`
5
- button {
6
- border: none;
7
- border-radius: var(--wui-border-radius-3xl);
8
- }
9
-
10
- button[data-variant='main'] {
11
- background-color: var(--wui-color-accent-100);
12
- color: var(--wui-color-inverse-100);
13
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
14
- }
15
-
16
- button[data-variant='accent'] {
17
- background-color: var(--wui-color-accent-glass-010);
18
- color: var(--wui-color-accent-100);
19
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
20
- }
21
-
22
- button[data-variant='gray'] {
23
- background-color: transparent;
24
- color: var(--wui-color-fg-200);
25
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
26
- }
27
-
28
- button[data-variant='shade'] {
29
- background-color: transparent;
30
- color: var(--wui-color-accent-100);
31
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
32
- }
33
-
34
- button[data-size='sm'] {
35
- height: 32px;
36
- padding: 0 var(--wui-spacing-s);
37
- }
38
-
39
- button[data-size='md'] {
40
- height: 40px;
41
- padding: 0 var(--wui-spacing-l);
42
- }
43
-
44
- button[data-size='sm'] > wui-image {
45
- width: 16px;
46
- height: 16px;
47
- }
48
-
49
- button[data-size='md'] > wui-image {
50
- width: 24px;
51
- height: 24px;
52
- }
53
-
54
- button[data-size='sm'] > wui-icon {
55
- width: 12px;
56
- height: 12px;
57
- }
58
-
59
- button[data-size='md'] > wui-icon {
60
- width: 14px;
61
- height: 14px;
62
- }
63
-
64
- wui-image {
65
- border-radius: var(--wui-border-radius-3xl);
66
- overflow: hidden;
67
- }
68
-
69
- button.disabled > wui-icon,
70
- button.disabled > wui-image {
71
- filter: grayscale(1);
72
- }
73
-
74
- button[data-variant='main'] > wui-image {
75
- box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
76
- }
77
-
78
- button[data-variant='shade'] > wui-image,
79
- button[data-variant='gray'] > wui-image {
80
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
81
- }
82
-
83
- @media (hover: hover) and (pointer: fine) {
84
- button[data-variant='main']:focus-visible {
85
- background-color: var(--wui-color-accent-090);
86
- }
87
-
88
- button[data-variant='main']:hover:enabled {
89
- background-color: var(--wui-color-accent-090);
90
- }
91
-
92
- button[data-variant='main']:active:enabled {
93
- background-color: var(--wui-color-accent-080);
94
- }
95
-
96
- button[data-variant='accent']:hover:enabled {
97
- background-color: var(--wui-color-accent-glass-015);
98
- }
99
-
100
- button[data-variant='accent']:active:enabled {
101
- background-color: var(--wui-color-accent-glass-020);
102
- }
103
-
104
- button[data-variant='shade']:focus-visible,
105
- button[data-variant='gray']:focus-visible,
106
- button[data-variant='shade']:hover,
107
- button[data-variant='gray']:hover {
108
- background-color: var(--wui-color-gray-glass-002);
109
- }
110
-
111
- button[data-variant='gray']:active,
112
- button[data-variant='shade']:active {
113
- background-color: var(--wui-color-gray-glass-005);
114
- }
115
- }
116
-
117
- button.disabled {
118
- color: var(--wui-color-gray-glass-020);
119
- background-color: var(--wui-color-gray-glass-002);
120
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
121
- pointer-events: none;
122
- }
123
- `;
124
- var i = function(n, t, e, c) {
125
- var s = arguments.length, o = s < 3 ? t : c === null ? c = Object.getOwnPropertyDescriptor(t, e) : c, u;
126
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(n, t, e, c);
127
- else for (var d = n.length - 1; d >= 0; d--) (u = n[d]) && (o = (s < 3 ? u(o) : s > 3 ? u(t, e, o) : u(t, e)) || o);
128
- return s > 3 && o && Object.defineProperty(t, e, o), o;
129
- };
130
- let a = class extends h {
131
- constructor() {
132
- super(...arguments), this.variant = "accent", this.imageSrc = "", this.disabled = !1, this.icon = "externalLink", this.size = "md", this.text = "";
133
- }
134
- render() {
135
- const t = this.size === "sm" ? "small-600" : "paragraph-600";
136
- return l`
137
- <button
138
- class=${this.disabled ? "disabled" : ""}
139
- data-variant=${this.variant}
140
- data-size=${this.size}
141
- >
142
- ${this.imageSrc ? l`<wui-image src=${this.imageSrc}></wui-image>` : null}
143
- <wui-text variant=${t} color="inherit"> ${this.text} </wui-text>
144
- <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
145
- </button>
146
- `;
147
- }
148
- };
149
- a.styles = [b, g, p];
150
- i([
151
- r()
152
- ], a.prototype, "variant", void 0);
153
- i([
154
- r()
155
- ], a.prototype, "imageSrc", void 0);
156
- i([
157
- r({ type: Boolean })
158
- ], a.prototype, "disabled", void 0);
159
- i([
160
- r()
161
- ], a.prototype, "icon", void 0);
162
- i([
163
- r()
164
- ], a.prototype, "size", void 0);
165
- i([
166
- r()
167
- ], a.prototype, "text", void 0);
168
- a = i([
169
- w("wui-chip-button")
170
- ], a);
@@ -1,257 +0,0 @@
1
- import { cE as v, cH as g, cI as h, cF as p, cG as u } from "./index-BJ7cbG3N.js";
2
- import { n as t, c as w, U as m } from "./if-defined-CNte9B3N.js";
3
- import "./index-CmWdvIFT.js";
4
- const S = {
5
- URLS: {
6
- FAQ: "https://walletconnect.com/faq"
7
- }
8
- }, f = v`
9
- a {
10
- border: 1px solid var(--wui-color-gray-glass-010);
11
- border-radius: var(--wui-border-radius-3xl);
12
- }
13
-
14
- wui-image {
15
- border-radius: var(--wui-border-radius-3xl);
16
- overflow: hidden;
17
- }
18
-
19
- a.disabled > wui-icon:not(.image-icon),
20
- a.disabled > wui-image {
21
- filter: grayscale(1);
22
- }
23
-
24
- a[data-variant='fill'] {
25
- color: var(--wui-color-inverse-100);
26
- background-color: var(--wui-color-accent-100);
27
- }
28
-
29
- a[data-variant='shade'],
30
- a[data-variant='shadeSmall'] {
31
- background-color: transparent;
32
- background-color: var(--wui-color-gray-glass-010);
33
- color: var(--wui-color-fg-200);
34
- }
35
-
36
- a[data-variant='success'] {
37
- column-gap: var(--wui-spacing-xxs);
38
- border: 1px solid var(--wui-color-success-glass-010);
39
- background-color: var(--wui-color-success-glass-010);
40
- color: var(--wui-color-success-100);
41
- }
42
-
43
- a[data-variant='error'] {
44
- column-gap: var(--wui-spacing-xxs);
45
- border: 1px solid var(--wui-color-error-glass-010);
46
- background-color: var(--wui-color-error-glass-010);
47
- color: var(--wui-color-error-100);
48
- }
49
-
50
- a[data-variant='transparent'] {
51
- column-gap: var(--wui-spacing-xxs);
52
- background-color: transparent;
53
- color: var(--wui-color-fg-150);
54
- }
55
-
56
- a[data-variant='transparent'],
57
- a[data-variant='success'],
58
- a[data-variant='shadeSmall'],
59
- a[data-variant='error'] {
60
- padding: 7px var(--wui-spacing-s) 7px 10px;
61
- }
62
-
63
- a[data-variant='transparent']:has(wui-text:first-child),
64
- a[data-variant='success']:has(wui-text:first-child),
65
- a[data-variant='shadeSmall']:has(wui-text:first-child),
66
- a[data-variant='error']:has(wui-text:first-child) {
67
- padding: 7px var(--wui-spacing-s);
68
- }
69
-
70
- a[data-variant='fill'],
71
- a[data-variant='shade'] {
72
- column-gap: var(--wui-spacing-xs);
73
- padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs)
74
- var(--wui-spacing-xs);
75
- }
76
-
77
- a[data-variant='fill']:has(wui-text:first-child),
78
- a[data-variant='shade']:has(wui-text:first-child) {
79
- padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m);
80
- }
81
-
82
- a[data-variant='fill'] > wui-image,
83
- a[data-variant='shade'] > wui-image {
84
- width: 24px;
85
- height: 24px;
86
- }
87
-
88
- a[data-variant='fill'] > wui-image {
89
- box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
90
- }
91
-
92
- a[data-variant='shade'] > wui-image,
93
- a[data-variant='shadeSmall'] > wui-image {
94
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
95
- }
96
-
97
- a[data-variant='fill'] > wui-icon:not(.image-icon),
98
- a[data-variant='shade'] > wui-icon:not(.image-icon) {
99
- width: 14px;
100
- height: 14px;
101
- }
102
-
103
- a[data-variant='transparent'] > wui-image,
104
- a[data-variant='success'] > wui-image,
105
- a[data-variant='shadeSmall'] > wui-image,
106
- a[data-variant='error'] > wui-image {
107
- width: 14px;
108
- height: 14px;
109
- }
110
-
111
- a[data-variant='transparent'] > wui-icon:not(.image-icon),
112
- a[data-variant='success'] > wui-icon:not(.image-icon),
113
- a[data-variant='shadeSmall'] > wui-icon:not(.image-icon),
114
- a[data-variant='error'] > wui-icon:not(.image-icon) {
115
- width: 12px;
116
- height: 12px;
117
- }
118
-
119
- a[data-variant='fill']:focus-visible {
120
- background-color: var(--wui-color-accent-090);
121
- }
122
-
123
- a[data-variant='shade']:focus-visible,
124
- a[data-variant='shadeSmall']:focus-visible {
125
- background-color: var(--wui-color-gray-glass-015);
126
- }
127
-
128
- a[data-variant='transparent']:focus-visible {
129
- background-color: var(--wui-color-gray-glass-005);
130
- }
131
-
132
- a[data-variant='success']:focus-visible {
133
- background-color: var(--wui-color-success-glass-015);
134
- }
135
-
136
- a[data-variant='error']:focus-visible {
137
- background-color: var(--wui-color-error-glass-015);
138
- }
139
-
140
- a.disabled {
141
- color: var(--wui-color-gray-glass-015);
142
- background-color: var(--wui-color-gray-glass-015);
143
- pointer-events: none;
144
- }
145
-
146
- @media (hover: hover) and (pointer: fine) {
147
- a[data-variant='fill']:hover {
148
- background-color: var(--wui-color-accent-090);
149
- }
150
-
151
- a[data-variant='shade']:hover,
152
- a[data-variant='shadeSmall']:hover {
153
- background-color: var(--wui-color-gray-glass-015);
154
- }
155
-
156
- a[data-variant='transparent']:hover {
157
- background-color: var(--wui-color-gray-glass-005);
158
- }
159
-
160
- a[data-variant='success']:hover {
161
- background-color: var(--wui-color-success-glass-015);
162
- }
163
-
164
- a[data-variant='error']:hover {
165
- background-color: var(--wui-color-error-glass-015);
166
- }
167
- }
168
-
169
- a[data-variant='fill']:active {
170
- background-color: var(--wui-color-accent-080);
171
- }
172
-
173
- a[data-variant='shade']:active,
174
- a[data-variant='shadeSmall']:active {
175
- background-color: var(--wui-color-gray-glass-020);
176
- }
177
-
178
- a[data-variant='transparent']:active {
179
- background-color: var(--wui-color-gray-glass-010);
180
- }
181
-
182
- a[data-variant='success']:active {
183
- background-color: var(--wui-color-success-glass-020);
184
- }
185
-
186
- a[data-variant='error']:active {
187
- background-color: var(--wui-color-error-glass-020);
188
- }
189
- `;
190
- var r = function(s, o, e, n) {
191
- var c = arguments.length, i = c < 3 ? o : n === null ? n = Object.getOwnPropertyDescriptor(o, e) : n, l;
192
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(s, o, e, n);
193
- else for (var d = s.length - 1; d >= 0; d--) (l = s[d]) && (i = (c < 3 ? l(i) : c > 3 ? l(o, e, i) : l(o, e)) || i);
194
- return c > 3 && i && Object.defineProperty(o, e, i), i;
195
- };
196
- let a = class extends p {
197
- constructor() {
198
- super(...arguments), this.variant = "fill", this.imageSrc = void 0, this.imageIcon = void 0, this.imageIconSize = "md", this.disabled = !1, this.icon = "externalLink", this.href = "", this.text = void 0;
199
- }
200
- render() {
201
- const e = this.variant === "success" || this.variant === "transparent" || this.variant === "shadeSmall" ? "small-600" : "paragraph-600";
202
- return u`
203
- <a
204
- rel="noreferrer"
205
- target="_blank"
206
- href=${this.href}
207
- class=${this.disabled ? "disabled" : ""}
208
- data-variant=${this.variant}
209
- >
210
- ${this.imageTemplate()}
211
- <wui-text variant=${e} color="inherit">
212
- ${this.title ? this.title : m.getHostName(this.href)}
213
- </wui-text>
214
- <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
215
- </a>
216
- `;
217
- }
218
- imageTemplate() {
219
- return this.imageSrc ? u`<wui-image src=${this.imageSrc}></wui-image>` : this.imageIcon ? u`<wui-icon
220
- name=${this.imageIcon}
221
- color="inherit"
222
- size=${this.imageIconSize}
223
- class="image-icon"
224
- ></wui-icon>` : null;
225
- }
226
- };
227
- a.styles = [g, h, f];
228
- r([
229
- t()
230
- ], a.prototype, "variant", void 0);
231
- r([
232
- t()
233
- ], a.prototype, "imageSrc", void 0);
234
- r([
235
- t()
236
- ], a.prototype, "imageIcon", void 0);
237
- r([
238
- t()
239
- ], a.prototype, "imageIconSize", void 0);
240
- r([
241
- t({ type: Boolean })
242
- ], a.prototype, "disabled", void 0);
243
- r([
244
- t()
245
- ], a.prototype, "icon", void 0);
246
- r([
247
- t()
248
- ], a.prototype, "href", void 0);
249
- r([
250
- t()
251
- ], a.prototype, "text", void 0);
252
- a = r([
253
- w("wui-chip")
254
- ], a);
255
- export {
256
- S as N
257
- };