@mysten/dapp-kit 0.1.0 → 0.2.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 (320) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/components/AccountDropdownMenu.css +86 -21
  3. package/dist/cjs/components/AccountDropdownMenu.css.css +19 -21
  4. package/dist/cjs/components/AccountDropdownMenu.css.css.map +3 -3
  5. package/dist/cjs/components/AccountDropdownMenu.css.d.ts +3 -3
  6. package/dist/cjs/components/AccountDropdownMenu.css.js +6 -6
  7. package/dist/cjs/components/AccountDropdownMenu.css.js.map +2 -2
  8. package/dist/cjs/components/AccountDropdownMenu.css.map +3 -3
  9. package/dist/cjs/components/AccountDropdownMenu.js +89 -27
  10. package/dist/cjs/components/AccountDropdownMenu.js.map +4 -4
  11. package/dist/cjs/components/ConnectButton.css +174 -80
  12. package/dist/cjs/components/ConnectButton.css.map +3 -3
  13. package/dist/cjs/components/ConnectButton.js +250 -148
  14. package/dist/cjs/components/ConnectButton.js.map +4 -4
  15. package/dist/cjs/components/WalletProvider.d.ts +4 -1
  16. package/dist/cjs/components/WalletProvider.js +173 -8
  17. package/dist/cjs/components/WalletProvider.js.map +4 -4
  18. package/dist/cjs/components/connect-modal/ConnectModal.css +155 -59
  19. package/dist/cjs/components/connect-modal/ConnectModal.css.css +22 -33
  20. package/dist/cjs/components/connect-modal/ConnectModal.css.css.map +3 -3
  21. package/dist/cjs/components/connect-modal/ConnectModal.css.d.ts +2 -3
  22. package/dist/cjs/components/connect-modal/ConnectModal.css.js +7 -9
  23. package/dist/cjs/components/connect-modal/ConnectModal.css.js.map +2 -2
  24. package/dist/cjs/components/connect-modal/ConnectModal.css.map +3 -3
  25. package/dist/cjs/components/connect-modal/ConnectModal.js +216 -114
  26. package/dist/cjs/components/connect-modal/ConnectModal.js.map +4 -4
  27. package/dist/cjs/components/connect-modal/InfoSection.css +56 -0
  28. package/dist/cjs/components/connect-modal/InfoSection.css.d.ts +0 -2
  29. package/dist/cjs/components/connect-modal/InfoSection.css.js +1 -5
  30. package/dist/cjs/components/connect-modal/InfoSection.css.js.map +2 -2
  31. package/dist/cjs/components/connect-modal/InfoSection.css.map +3 -3
  32. package/dist/cjs/components/connect-modal/InfoSection.js +85 -6
  33. package/dist/cjs/components/connect-modal/InfoSection.js.map +4 -4
  34. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css +99 -6
  35. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css.css +7 -6
  36. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css.css.map +3 -3
  37. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css.d.ts +2 -2
  38. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css.js +5 -5
  39. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css.js.map +2 -2
  40. package/dist/cjs/components/connect-modal/views/ConnectionStatus.css.map +3 -3
  41. package/dist/cjs/components/connect-modal/views/ConnectionStatus.js +105 -17
  42. package/dist/cjs/components/connect-modal/views/ConnectionStatus.js.map +4 -4
  43. package/dist/cjs/components/connect-modal/views/GettingStarted.css +99 -2
  44. package/dist/cjs/components/connect-modal/views/GettingStarted.css.css +7 -2
  45. package/dist/cjs/components/connect-modal/views/GettingStarted.css.css.map +3 -3
  46. package/dist/cjs/components/connect-modal/views/GettingStarted.css.d.ts +1 -2
  47. package/dist/cjs/components/connect-modal/views/GettingStarted.css.js +3 -5
  48. package/dist/cjs/components/connect-modal/views/GettingStarted.css.js.map +2 -2
  49. package/dist/cjs/components/connect-modal/views/GettingStarted.css.map +3 -3
  50. package/dist/cjs/components/connect-modal/views/GettingStarted.js +123 -20
  51. package/dist/cjs/components/connect-modal/views/GettingStarted.js.map +4 -4
  52. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css +58 -2
  53. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css.css +2 -2
  54. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css.css.map +2 -2
  55. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css.d.ts +0 -1
  56. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css.js +2 -4
  57. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css.js.map +2 -2
  58. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.css.map +3 -3
  59. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.js +93 -15
  60. package/dist/cjs/components/connect-modal/views/WhatIsAWallet.js.map +4 -4
  61. package/dist/cjs/components/connect-modal/wallet-list/WalletList.css +39 -16
  62. package/dist/cjs/components/connect-modal/wallet-list/WalletList.css.map +3 -3
  63. package/dist/cjs/components/connect-modal/wallet-list/WalletList.js +66 -14
  64. package/dist/cjs/components/connect-modal/wallet-list/WalletList.js.map +4 -4
  65. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css +39 -16
  66. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css.css +14 -16
  67. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css.css.map +3 -3
  68. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css.d.ts +2 -3
  69. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css.js +5 -7
  70. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css.js.map +2 -2
  71. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.css.map +3 -3
  72. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.js +62 -10
  73. package/dist/cjs/components/connect-modal/wallet-list/WalletListItem.js.map +4 -4
  74. package/dist/cjs/components/icons/BackIcon.js +1 -1
  75. package/dist/cjs/components/icons/BackIcon.js.map +2 -2
  76. package/dist/cjs/components/icons/CheckIcon.js +1 -1
  77. package/dist/cjs/components/icons/CheckIcon.js.map +1 -1
  78. package/dist/cjs/components/styling/InjectedThemeStyles.d.ts +6 -0
  79. package/dist/cjs/components/styling/InjectedThemeStyles.js +123 -0
  80. package/dist/cjs/components/styling/InjectedThemeStyles.js.map +7 -0
  81. package/dist/cjs/components/styling/StyleMarker.css.css +8 -2
  82. package/dist/cjs/components/styling/StyleMarker.css.css.map +3 -3
  83. package/dist/cjs/components/ui/Button.css +36 -0
  84. package/dist/cjs/components/ui/Button.css.css +36 -0
  85. package/dist/cjs/components/ui/Button.css.css.map +7 -0
  86. package/dist/cjs/components/ui/Button.css.d.ts +33 -0
  87. package/dist/cjs/components/ui/Button.css.js +28 -0
  88. package/dist/cjs/components/ui/Button.css.js.map +7 -0
  89. package/dist/cjs/components/ui/Button.css.map +7 -0
  90. package/dist/cjs/components/ui/Button.d.ts +8 -0
  91. package/dist/cjs/components/ui/Button.js +60 -0
  92. package/dist/cjs/components/ui/Button.js.map +7 -0
  93. package/dist/cjs/components/ui/Heading.css +25 -0
  94. package/dist/cjs/components/ui/Heading.css.css +25 -0
  95. package/dist/cjs/components/ui/Heading.css.css.map +7 -0
  96. package/dist/cjs/components/ui/Heading.css.d.ts +33 -0
  97. package/dist/cjs/components/ui/Heading.css.js +28 -0
  98. package/dist/cjs/components/ui/Heading.css.js.map +7 -0
  99. package/dist/cjs/components/ui/Heading.css.map +7 -0
  100. package/dist/cjs/components/ui/Heading.d.ts +13 -0
  101. package/dist/cjs/components/ui/Heading.js +69 -0
  102. package/dist/cjs/components/ui/Heading.js.map +7 -0
  103. package/dist/cjs/components/ui/IconButton.css +11 -0
  104. package/dist/cjs/components/ui/IconButton.css.css +11 -0
  105. package/dist/cjs/components/ui/IconButton.css.css.map +7 -0
  106. package/dist/cjs/components/ui/IconButton.css.d.ts +1 -0
  107. package/dist/cjs/components/ui/IconButton.css.js +27 -0
  108. package/dist/cjs/components/ui/IconButton.css.js.map +7 -0
  109. package/dist/cjs/components/ui/IconButton.css.map +7 -0
  110. package/dist/cjs/components/ui/IconButton.d.ts +6 -0
  111. package/dist/cjs/components/ui/IconButton.js +52 -0
  112. package/dist/cjs/components/ui/IconButton.js.map +7 -0
  113. package/dist/cjs/components/ui/Text.css +31 -0
  114. package/dist/cjs/components/ui/Text.css.css +31 -0
  115. package/dist/cjs/components/ui/Text.css.css.map +7 -0
  116. package/dist/cjs/components/ui/Text.css.d.ts +33 -0
  117. package/dist/cjs/components/ui/Text.css.js +28 -0
  118. package/dist/cjs/components/ui/Text.css.js.map +7 -0
  119. package/dist/cjs/components/ui/Text.css.map +7 -0
  120. package/dist/cjs/components/ui/Text.d.ts +13 -0
  121. package/dist/cjs/components/ui/Text.js +70 -0
  122. package/dist/cjs/components/ui/Text.js.map +7 -0
  123. package/dist/cjs/hooks/wallet/useAutoConnectWallet.js +6 -3
  124. package/dist/cjs/hooks/wallet/useAutoConnectWallet.js.map +2 -2
  125. package/dist/cjs/hooks/wallet/useConnectWallet.d.ts +4 -2
  126. package/dist/cjs/hooks/wallet/useConnectWallet.js +6 -3
  127. package/dist/cjs/hooks/wallet/useConnectWallet.js.map +2 -2
  128. package/dist/cjs/index.css +174 -80
  129. package/dist/cjs/index.css.map +3 -3
  130. package/dist/cjs/index.d.ts +1 -0
  131. package/dist/cjs/index.js +423 -163
  132. package/dist/cjs/index.js.map +4 -4
  133. package/dist/cjs/themes/lightTheme.d.ts +2 -0
  134. package/dist/cjs/themes/lightTheme.js +83 -0
  135. package/dist/cjs/themes/lightTheme.js.map +7 -0
  136. package/dist/cjs/themes/themeContract.d.ts +140 -0
  137. package/dist/cjs/themes/themeContract.js +88 -0
  138. package/dist/cjs/themes/themeContract.js.map +7 -0
  139. package/dist/cjs/walletStore.d.ts +1 -1
  140. package/dist/cjs/walletStore.js +2 -2
  141. package/dist/cjs/walletStore.js.map +2 -2
  142. package/dist/esm/components/AccountDropdownMenu.css +86 -21
  143. package/dist/esm/components/AccountDropdownMenu.css.css +19 -21
  144. package/dist/esm/components/AccountDropdownMenu.css.css.map +3 -3
  145. package/dist/esm/components/AccountDropdownMenu.css.d.ts +3 -3
  146. package/dist/esm/components/AccountDropdownMenu.css.js +6 -6
  147. package/dist/esm/components/AccountDropdownMenu.css.js.map +2 -2
  148. package/dist/esm/components/AccountDropdownMenu.css.map +3 -3
  149. package/dist/esm/components/AccountDropdownMenu.js +88 -26
  150. package/dist/esm/components/AccountDropdownMenu.js.map +4 -4
  151. package/dist/esm/components/ConnectButton.css +174 -80
  152. package/dist/esm/components/ConnectButton.css.map +3 -3
  153. package/dist/esm/components/ConnectButton.js +238 -136
  154. package/dist/esm/components/ConnectButton.js.map +4 -4
  155. package/dist/esm/components/WalletProvider.d.ts +4 -1
  156. package/dist/esm/components/WalletProvider.js +173 -8
  157. package/dist/esm/components/WalletProvider.js.map +4 -4
  158. package/dist/esm/components/connect-modal/ConnectModal.css +155 -59
  159. package/dist/esm/components/connect-modal/ConnectModal.css.css +22 -33
  160. package/dist/esm/components/connect-modal/ConnectModal.css.css.map +3 -3
  161. package/dist/esm/components/connect-modal/ConnectModal.css.d.ts +2 -3
  162. package/dist/esm/components/connect-modal/ConnectModal.css.js +7 -9
  163. package/dist/esm/components/connect-modal/ConnectModal.css.js.map +2 -2
  164. package/dist/esm/components/connect-modal/ConnectModal.css.map +3 -3
  165. package/dist/esm/components/connect-modal/ConnectModal.js +205 -103
  166. package/dist/esm/components/connect-modal/ConnectModal.js.map +4 -4
  167. package/dist/esm/components/connect-modal/InfoSection.css +56 -0
  168. package/dist/esm/components/connect-modal/InfoSection.css.d.ts +0 -2
  169. package/dist/esm/components/connect-modal/InfoSection.css.js +1 -5
  170. package/dist/esm/components/connect-modal/InfoSection.css.js.map +2 -2
  171. package/dist/esm/components/connect-modal/InfoSection.css.map +3 -3
  172. package/dist/esm/components/connect-modal/InfoSection.js +74 -5
  173. package/dist/esm/components/connect-modal/InfoSection.js.map +4 -4
  174. package/dist/esm/components/connect-modal/views/ConnectionStatus.css +99 -6
  175. package/dist/esm/components/connect-modal/views/ConnectionStatus.css.css +7 -6
  176. package/dist/esm/components/connect-modal/views/ConnectionStatus.css.css.map +3 -3
  177. package/dist/esm/components/connect-modal/views/ConnectionStatus.css.d.ts +2 -2
  178. package/dist/esm/components/connect-modal/views/ConnectionStatus.css.js +5 -5
  179. package/dist/esm/components/connect-modal/views/ConnectionStatus.css.js.map +2 -2
  180. package/dist/esm/components/connect-modal/views/ConnectionStatus.css.map +3 -3
  181. package/dist/esm/components/connect-modal/views/ConnectionStatus.js +103 -17
  182. package/dist/esm/components/connect-modal/views/ConnectionStatus.js.map +4 -4
  183. package/dist/esm/components/connect-modal/views/GettingStarted.css +99 -2
  184. package/dist/esm/components/connect-modal/views/GettingStarted.css.css +7 -2
  185. package/dist/esm/components/connect-modal/views/GettingStarted.css.css.map +3 -3
  186. package/dist/esm/components/connect-modal/views/GettingStarted.css.d.ts +1 -2
  187. package/dist/esm/components/connect-modal/views/GettingStarted.css.js +3 -5
  188. package/dist/esm/components/connect-modal/views/GettingStarted.css.js.map +2 -2
  189. package/dist/esm/components/connect-modal/views/GettingStarted.css.map +3 -3
  190. package/dist/esm/components/connect-modal/views/GettingStarted.js +110 -17
  191. package/dist/esm/components/connect-modal/views/GettingStarted.js.map +4 -4
  192. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css +58 -2
  193. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css.css +2 -2
  194. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css.css.map +2 -2
  195. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css.d.ts +0 -1
  196. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css.js +2 -4
  197. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css.js.map +2 -2
  198. package/dist/esm/components/connect-modal/views/WhatIsAWallet.css.map +3 -3
  199. package/dist/esm/components/connect-modal/views/WhatIsAWallet.js +80 -12
  200. package/dist/esm/components/connect-modal/views/WhatIsAWallet.js.map +4 -4
  201. package/dist/esm/components/connect-modal/wallet-list/WalletList.css +39 -16
  202. package/dist/esm/components/connect-modal/wallet-list/WalletList.css.map +3 -3
  203. package/dist/esm/components/connect-modal/wallet-list/WalletList.js +56 -14
  204. package/dist/esm/components/connect-modal/wallet-list/WalletList.js.map +4 -4
  205. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css +39 -16
  206. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css.css +14 -16
  207. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css.css.map +3 -3
  208. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css.d.ts +2 -3
  209. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css.js +5 -7
  210. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css.js.map +2 -2
  211. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.css.map +3 -3
  212. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.js +52 -10
  213. package/dist/esm/components/connect-modal/wallet-list/WalletListItem.js.map +4 -4
  214. package/dist/esm/components/icons/BackIcon.js +1 -1
  215. package/dist/esm/components/icons/BackIcon.js.map +2 -2
  216. package/dist/esm/components/icons/CheckIcon.js +1 -1
  217. package/dist/esm/components/icons/CheckIcon.js.map +1 -1
  218. package/dist/esm/components/styling/InjectedThemeStyles.d.ts +6 -0
  219. package/dist/esm/components/styling/InjectedThemeStyles.js +102 -0
  220. package/dist/esm/components/styling/InjectedThemeStyles.js.map +7 -0
  221. package/dist/esm/components/styling/StyleMarker.css.css +8 -2
  222. package/dist/esm/components/styling/StyleMarker.css.css.map +3 -3
  223. package/dist/esm/components/styling/StyleMarker.css.js +2 -2
  224. package/dist/esm/components/styling/StyleMarker.css.js.map +1 -1
  225. package/dist/esm/components/ui/Button.css +36 -0
  226. package/dist/esm/components/ui/Button.css.css +36 -0
  227. package/dist/esm/components/ui/Button.css.css.map +7 -0
  228. package/dist/esm/components/ui/Button.css.d.ts +33 -0
  229. package/dist/esm/components/ui/Button.css.js +7 -0
  230. package/dist/esm/components/ui/Button.css.js.map +7 -0
  231. package/dist/esm/components/ui/Button.css.map +7 -0
  232. package/dist/esm/components/ui/Button.d.ts +8 -0
  233. package/dist/esm/components/ui/Button.js +29 -0
  234. package/dist/esm/components/ui/Button.js.map +7 -0
  235. package/dist/esm/components/ui/Heading.css +25 -0
  236. package/dist/esm/components/ui/Heading.css.css +25 -0
  237. package/dist/esm/components/ui/Heading.css.css.map +7 -0
  238. package/dist/esm/components/ui/Heading.css.d.ts +33 -0
  239. package/dist/esm/components/ui/Heading.css.js +7 -0
  240. package/dist/esm/components/ui/Heading.css.js.map +7 -0
  241. package/dist/esm/components/ui/Heading.css.map +7 -0
  242. package/dist/esm/components/ui/Heading.d.ts +13 -0
  243. package/dist/esm/components/ui/Heading.js +38 -0
  244. package/dist/esm/components/ui/Heading.js.map +7 -0
  245. package/dist/esm/components/ui/IconButton.css +11 -0
  246. package/dist/esm/components/ui/IconButton.css.css +11 -0
  247. package/dist/esm/components/ui/IconButton.css.css.map +7 -0
  248. package/dist/esm/components/ui/IconButton.css.d.ts +1 -0
  249. package/dist/esm/components/ui/IconButton.css.js +6 -0
  250. package/dist/esm/components/ui/IconButton.css.js.map +7 -0
  251. package/dist/esm/components/ui/IconButton.css.map +7 -0
  252. package/dist/esm/components/ui/IconButton.d.ts +6 -0
  253. package/dist/esm/components/ui/IconButton.js +21 -0
  254. package/dist/esm/components/ui/IconButton.js.map +7 -0
  255. package/dist/esm/components/ui/Text.css +31 -0
  256. package/dist/esm/components/ui/Text.css.css +31 -0
  257. package/dist/esm/components/ui/Text.css.css.map +7 -0
  258. package/dist/esm/components/ui/Text.css.d.ts +33 -0
  259. package/dist/esm/components/ui/Text.css.js +7 -0
  260. package/dist/esm/components/ui/Text.css.js.map +7 -0
  261. package/dist/esm/components/ui/Text.css.map +7 -0
  262. package/dist/esm/components/ui/Text.d.ts +13 -0
  263. package/dist/esm/components/ui/Text.js +39 -0
  264. package/dist/esm/components/ui/Text.js.map +7 -0
  265. package/dist/esm/hooks/wallet/useAutoConnectWallet.js +6 -3
  266. package/dist/esm/hooks/wallet/useAutoConnectWallet.js.map +2 -2
  267. package/dist/esm/hooks/wallet/useConnectWallet.d.ts +4 -2
  268. package/dist/esm/hooks/wallet/useConnectWallet.js +6 -3
  269. package/dist/esm/hooks/wallet/useConnectWallet.js.map +2 -2
  270. package/dist/esm/index.css +174 -80
  271. package/dist/esm/index.css.map +3 -3
  272. package/dist/esm/index.d.ts +1 -0
  273. package/dist/esm/index.js +401 -141
  274. package/dist/esm/index.js.map +4 -4
  275. package/dist/esm/themes/lightTheme.d.ts +2 -0
  276. package/dist/esm/themes/lightTheme.js +62 -0
  277. package/dist/esm/themes/lightTheme.js.map +7 -0
  278. package/dist/esm/themes/themeContract.d.ts +140 -0
  279. package/dist/esm/themes/themeContract.js +67 -0
  280. package/dist/esm/themes/themeContract.js.map +7 -0
  281. package/dist/esm/walletStore.d.ts +1 -1
  282. package/dist/esm/walletStore.js +2 -2
  283. package/dist/esm/walletStore.js.map +2 -2
  284. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  285. package/dist/tsconfig.tsbuildinfo +1 -1
  286. package/package.json +3 -1
  287. package/src/components/AccountDropdownMenu.css.ts +20 -20
  288. package/src/components/AccountDropdownMenu.tsx +22 -20
  289. package/src/components/ConnectButton.tsx +2 -1
  290. package/src/components/WalletProvider.tsx +9 -0
  291. package/src/components/connect-modal/ConnectModal.css.ts +15 -26
  292. package/src/components/connect-modal/ConnectModal.tsx +18 -14
  293. package/src/components/connect-modal/InfoSection.css.ts +0 -4
  294. package/src/components/connect-modal/InfoSection.tsx +8 -2
  295. package/src/components/connect-modal/views/ConnectionStatus.css.ts +8 -5
  296. package/src/components/connect-modal/views/ConnectionStatus.tsx +19 -11
  297. package/src/components/connect-modal/views/GettingStarted.css.ts +5 -3
  298. package/src/components/connect-modal/views/GettingStarted.tsx +14 -9
  299. package/src/components/connect-modal/views/WhatIsAWallet.css.ts +0 -2
  300. package/src/components/connect-modal/views/WhatIsAWallet.tsx +2 -1
  301. package/src/components/connect-modal/wallet-list/WalletList.css.ts +1 -1
  302. package/src/components/connect-modal/wallet-list/WalletListItem.css.ts +15 -16
  303. package/src/components/connect-modal/wallet-list/WalletListItem.tsx +10 -3
  304. package/src/components/icons/BackIcon.tsx +3 -1
  305. package/src/components/icons/CheckIcon.tsx +1 -1
  306. package/src/components/styling/InjectedThemeStyles.tsx +49 -0
  307. package/src/components/styling/StyleMarker.css.ts +8 -1
  308. package/src/components/ui/Button.css.ts +50 -0
  309. package/src/components/ui/Button.tsx +31 -0
  310. package/src/components/ui/Heading.css.ts +43 -0
  311. package/src/components/ui/Heading.tsx +52 -0
  312. package/src/components/ui/IconButton.css.ts +16 -0
  313. package/src/components/ui/IconButton.tsx +24 -0
  314. package/src/components/ui/Text.css.ts +38 -0
  315. package/src/components/ui/Text.tsx +50 -0
  316. package/src/hooks/wallet/useConnectWallet.ts +6 -3
  317. package/src/index.ts +1 -0
  318. package/src/themes/lightTheme.ts +63 -0
  319. package/src/themes/themeContract.ts +97 -0
  320. package/src/walletStore.ts +3 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/AccountDropdownMenu.css.ts"],
4
- "sourcesContent": ["import 'src/components/AccountDropdownMenu.css.ts.vanilla.css?source=LkFjY291bnREcm9wZG93bk1lbnVfdHJpZ2dlckJ1dHRvbl9fZGl2MnFsMCB7CiAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgZ2FwOiA4cHg7CiAgcGFkZGluZy1sZWZ0OiAyNHB4OwogIHBhZGRpbmctcmlnaHQ6IDI0cHg7CiAgcGFkZGluZy10b3A6IDE2cHg7CiAgcGFkZGluZy1ib3R0b206IDE2cHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBib3gtc2hhZG93OiAwcHggNHB4IDEycHggcmdiYSgwLCAwLCAwLCAwLjEpOwogIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogIGNvbG9yOiAjMTgyNDM1Owp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVDb250ZW50X19kaXYycWwxIHsKICB3aWR0aDogMTgwcHg7CiAgbWF4LWhlaWdodDogMjAwcHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBtYXJnaW4tdG9wOiA0cHg7CiAgcGFkZGluZzogOHB4OwogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBnYXA6IDhweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsKfQouQWNjb3VudERyb3Bkb3duTWVudV9zd2l0Y2hBY2NvdW50QnV0dG9uX19kaXYycWwyIHsKICBkaXNwbGF5OiBmbGV4OwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICBhbGlnbi1pdGVtczogY2VudGVyOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X2Rpc2Nvbm5lY3RCdXR0b25fX2RpdjJxbDMgewogIGRpc3BsYXk6IGZsZXg7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLkFjY291bnREcm9wZG93bk1lbnVfc2VwYXJhdG9yX19kaXYycWw0IHsKICBoZWlnaHQ6IDFweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiAjRjNGNkY4Owp9';\nexport var disconnectButton = 'AccountDropdownMenu_disconnectButton__div2ql3';\nexport var menuContent = 'AccountDropdownMenu_menuContent__div2ql1';\nexport var separator = 'AccountDropdownMenu_separator__div2ql4';\nexport var switchAccountButton = 'AccountDropdownMenu_switchAccountButton__div2ql2';\nexport var triggerButton = 'AccountDropdownMenu_triggerButton__div2ql0';"],
5
- "mappings": ";AACO,IAAI,mBAAmB;AACvB,IAAI,cAAc;AAClB,IAAI,YAAY;AAChB,IAAI,sBAAsB;AAC1B,IAAI,gBAAgB;",
4
+ "sourcesContent": ["import 'src/components/AccountDropdownMenu.css.ts.vanilla.css?source=LkFjY291bnREcm9wZG93bk1lbnVfY29ubmVjdGVkQWNjb3VudF9fZGl2MnFsMCB7CiAgZ2FwOiA4cHg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bmQtY29sb3I6IHZhcigtLWRhcHAta2l0LWJhY2tncm91bmRDb2xvcnMtZHJvcGRvd25NZW51U2VwYXJhdG9yKTsKfQ==';\nexport var connectedAccount = 'AccountDropdownMenu_connectedAccount__div2ql0';\nexport var menuContent = 'AccountDropdownMenu_menuContent__div2ql1';\nexport var menuItem = 'AccountDropdownMenu_menuItem__div2ql2';\nexport var separator = 'AccountDropdownMenu_separator__div2ql4';\nexport var switchAccountMenuItem = 'AccountDropdownMenu_switchAccountMenuItem__div2ql3';"],
5
+ "mappings": ";AACO,IAAI,mBAAmB;AACvB,IAAI,cAAc;AAClB,IAAI,WAAW;AACf,IAAI,YAAY;AAChB,IAAI,wBAAwB;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["vanilla-extract-css-ns:src/components/AccountDropdownMenu.css.ts.vanilla.css?source=LkFjY291bnREcm9wZG93bk1lbnVfdHJpZ2dlckJ1dHRvbl9fZGl2MnFsMCB7CiAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgZ2FwOiA4cHg7CiAgcGFkZGluZy1sZWZ0OiAyNHB4OwogIHBhZGRpbmctcmlnaHQ6IDI0cHg7CiAgcGFkZGluZy10b3A6IDE2cHg7CiAgcGFkZGluZy1ib3R0b206IDE2cHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBib3gtc2hhZG93OiAwcHggNHB4IDEycHggcmdiYSgwLCAwLCAwLCAwLjEpOwogIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogIGNvbG9yOiAjMTgyNDM1Owp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVDb250ZW50X19kaXYycWwxIHsKICB3aWR0aDogMTgwcHg7CiAgbWF4LWhlaWdodDogMjAwcHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBtYXJnaW4tdG9wOiA0cHg7CiAgcGFkZGluZzogOHB4OwogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBnYXA6IDhweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsKfQouQWNjb3VudERyb3Bkb3duTWVudV9zd2l0Y2hBY2NvdW50QnV0dG9uX19kaXYycWwyIHsKICBkaXNwbGF5OiBmbGV4OwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICBhbGlnbi1pdGVtczogY2VudGVyOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X2Rpc2Nvbm5lY3RCdXR0b25fX2RpdjJxbDMgewogIGRpc3BsYXk6IGZsZXg7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLkFjY291bnREcm9wZG93bk1lbnVfc2VwYXJhdG9yX19kaXYycWw0IHsKICBoZWlnaHQ6IDFweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiAjRjNGNkY4Owp9"],
4
- "sourcesContent": [".AccountDropdownMenu_triggerButton__div2ql0 {\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 16px;\n padding-bottom: 16px;\n border-radius: 12px;\n box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n background-color: white;\n color: #182435;\n}\n.AccountDropdownMenu_menuContent__div2ql1 {\n width: 180px;\n max-height: 200px;\n border-radius: 12px;\n margin-top: 4px;\n padding: 8px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n background-color: white;\n}\n.AccountDropdownMenu_switchAccountButton__div2ql2 {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.AccountDropdownMenu_disconnectButton__div2ql3 {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.AccountDropdownMenu_separator__div2ql4 {\n height: 1px;\n background-color: #F3F6F8;\n}"],
5
- "mappings": ";AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEF;AACE;AACA;AACA;AAAA;AAEF;AACE;AACA;AACA;AAAA;AAEF;AACE;AACA;AAAA;",
3
+ "sources": ["vanilla-extract-css-ns:src/components/AccountDropdownMenu.css.ts.vanilla.css?source=LkFjY291bnREcm9wZG93bk1lbnVfY29ubmVjdGVkQWNjb3VudF9fZGl2MnFsMCB7CiAgZ2FwOiA4cHg7Cn0KLkFjY291bnREcm9wZG93bk1lbnVfbWVudUNvbnRlbnRfX2RpdjJxbDEgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICB3aWR0aDogMTgwcHg7CiAgbWF4LWhlaWdodDogMjAwcHg7CiAgbWFyZ2luLXRvcDogNHB4OwogIHBhZGRpbmc6IDhweDsKICBnYXA6IDhweDsKICBib3JkZXItcmFkaXVzOiB2YXIoLS1kYXBwLWtpdC1yYWRpaS1sYXJnZSk7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZGFwcC1raXQtYmFja2dyb3VuZENvbG9ycy1kcm9wZG93bk1lbnUpOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVJdGVtX19kaXYycWwyIHsKICBwYWRkaW5nOiA4cHg7CiAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgb3V0bGluZTogbm9uZTsKICBkaXNwbGF5OiBmbGV4OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tZGFwcC1raXQtcmFkaWktbGFyZ2UpOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVJdGVtX19kaXYycWwyW2RhdGEtaGlnaGxpZ2h0ZWRdIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1kYXBwLWtpdC1iYWNrZ3JvdW5kQ29sb3JzLXByaW1hcnlCdXR0b24pOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X3N3aXRjaEFjY291bnRNZW51SXRlbV9fZGl2MnFsMyB7CiAgZGlzcGxheTogZmxleDsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKfQouQWNjb3VudERyb3Bkb3duTWVudV9zZXBhcmF0b3JfX2RpdjJxbDQgewogIGhlaWdodDogMXB4OwogIGZsZXgtc2hyaW5rOiAwOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhcHAta2l0LWJhY2tncm91bmRDb2xvcnMtZHJvcGRvd25NZW51U2VwYXJhdG9yKTsKfQ==", "vanilla-extract-css-ns:src/components/ui/Button.css.ts.vanilla.css?source=#H4sIAAAAAAAAA62Tz1LCMBDG7zxFjnIIQxEdptz04hPosbNtQruSJjFJodXx3U1aOoAVhNFL0/n2z+/bbTN5qJxTMknb4xkMgnQ2SerILqK3KfkYEcLQagFNTFAKlJyuBK+XXgeBuaToeGljknHpuAnya2UdrhqaKa9IdxhaeYluOeaFlzdgbihloDVdo6Mh9tKGLC05w6ocL0efo8l5g7E3B6ngrHWqNGTovNPp5O5M8aZ7SbTBEkzTN4vaHilk69yoSjI/gVBmYHSf8Bjilu7adKxxmPPnwuxUeqpqagtgajuo6eRh0dWzxYXacPMfEz6FRpdYUJUL/0tvYdbBlWHc0C0yV8Qk0vVyL1rXCB4TqwSyA/mEyTa4M7hDXfoJvqdfPcqftnlE/3WbFt95UrIefXu4RQP+ntgBMci4v0SEaGAMZR6Tha5JdB+Wfp4n8p43v5gnwOT8GBdQZDb3Dw/8AmeLhNtrBAAA", "vanilla-extract-css-ns:src/components/ui/Text.css.ts.vanilla.css?source=LlRleHRfdGV4dFZhcmlhbnRzX3NpemVfc21fXzJidjF1cjEgewogIGZvbnQtc2l6ZTogdmFyKC0tZGFwcC1raXQtZm9udFNpemVzLXNtYWxsKTsKfQouVGV4dF90ZXh0VmFyaWFudHNfd2VpZ2h0X25vcm1hbF9fMmJ2MXVyMiB7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWRhcHAta2l0LWZvbnRXZWlnaHRzLW5vcm1hbCk7Cn0KLlRleHRfdGV4dFZhcmlhbnRzX3dlaWdodF9tZWRpdW1fXzJidjF1cjMgewogIGZvbnQtd2VpZ2h0OiB2YXIoLS1kYXBwLWtpdC1mb250V2VpZ2h0cy1tZWRpdW0pOwp9Ci5UZXh0X3RleHRWYXJpYW50c193ZWlnaHRfYm9sZF9fMmJ2MXVyNCB7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWRhcHAta2l0LWZvbnRXZWlnaHRzLWJvbGQpOwp9Ci5UZXh0X3RleHRWYXJpYW50c19jb2xvcl9tdXRlZF9fMmJ2MXVyNSB7CiAgY29sb3I6IHZhcigtLWRhcHAta2l0LWNvbG9ycy1ib2R5TXV0ZWQpOwp9Ci5UZXh0X3RleHRWYXJpYW50c19jb2xvcl9kYW5nZXJfXzJidjF1cjYgewogIGNvbG9yOiB2YXIoLS1kYXBwLWtpdC1jb2xvcnMtYm9keURhbmdlcik7Cn0KLlRleHRfdGV4dFZhcmlhbnRzX21vbm9fdHJ1ZV9fMmJ2MXVyNyB7CiAgZm9udC1mYW1pbHk6IHVpLW1vbm9zcGFjZSwgU0ZNb25vLVJlZ3VsYXIsIE1lbmxvLCBNb25hY28sIENvbnNvbGFzLCAiTGliZXJhdGlvbiBNb25vIiwgIkNvdXJpZXIgTmV3IiwgbW9ub3NwYWNlOwp9"],
4
+ "sourcesContent": [".AccountDropdownMenu_connectedAccount__div2ql0 {\n gap: 8px;\n}\n.AccountDropdownMenu_menuContent__div2ql1 {\n display: flex;\n flex-direction: column;\n width: 180px;\n max-height: 200px;\n margin-top: 4px;\n padding: 8px;\n gap: 8px;\n border-radius: var(--dapp-kit-radii-large);\n background-color: var(--dapp-kit-backgroundColors-dropdownMenu);\n}\n.AccountDropdownMenu_menuItem__div2ql2 {\n padding: 8px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n outline: none;\n display: flex;\n align-items: center;\n border-radius: var(--dapp-kit-radii-large);\n}\n.AccountDropdownMenu_menuItem__div2ql2[data-highlighted] {\n background-color: var(--dapp-kit-backgroundColors-primaryButton);\n}\n.AccountDropdownMenu_switchAccountMenuItem__div2ql3 {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.AccountDropdownMenu_separator__div2ql4 {\n height: 1px;\n flex-shrink: 0;\n background-color: var(--dapp-kit-backgroundColors-dropdownMenuSeparator);\n}", ".Button_buttonVariants__x1s81q0 {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-weight: var(--dapp-kit-fontWeights-medium);\n}\n.Button_buttonVariants__x1s81q0:disabled {\n opacity: 0.5;\n}\n.Button_buttonVariants_variant_primary__x1s81q1 {\n background-color: var(--dapp-kit-backgroundColors-primaryButton);\n color: var(--dapp-kit-colors-primaryButton);\n box-shadow: var(--dapp-kit-shadows-primaryButton);\n}\n.Button_buttonVariants_variant_primary__x1s81q1:hover {\n background-color: var(--dapp-kit-backgroundColors-primaryButtonHover);\n}\n.Button_buttonVariants_variant_outline__x1s81q2 {\n border-width: 1px;\n border-style: solid;\n border-color: var(--dapp-kit-borderColors-outlineButton);\n color: var(--dapp-kit-colors-outlineButton);\n}\n.Button_buttonVariants_variant_outline__x1s81q2:hover {\n background-color: var(--dapp-kit-backgroundColors-outlineButtonHover);\n}\n.Button_buttonVariants_size_md__x1s81q3 {\n border-radius: var(--dapp-kit-radii-medium);\n padding: 8px 16px;\n}\n.Button_buttonVariants_size_lg__x1s81q4 {\n border-radius: var(--dapp-kit-radii-large);\n padding: 16px 24px ;\n}", ".Text_textVariants_size_sm__2bv1ur1 {\n font-size: var(--dapp-kit-fontSizes-small);\n}\n.Text_textVariants_weight_normal__2bv1ur2 {\n font-weight: var(--dapp-kit-fontWeights-normal);\n}\n.Text_textVariants_weight_medium__2bv1ur3 {\n font-weight: var(--dapp-kit-fontWeights-medium);\n}\n.Text_textVariants_weight_bold__2bv1ur4 {\n font-weight: var(--dapp-kit-fontWeights-bold);\n}\n.Text_textVariants_color_muted__2bv1ur5 {\n color: var(--dapp-kit-colors-bodyMuted);\n}\n.Text_textVariants_color_danger__2bv1ur6 {\n color: var(--dapp-kit-colors-bodyDanger);\n}\n.Text_textVariants_mono_true__2bv1ur7 {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}"],
5
+ "mappings": ";AAAA;AACE;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEF;AACE;AACA;AACG;AACK;AACR;AACA;AACA;AACA;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AACA;AACA;AAAA;AAEF;AACE;AACA;AACA;AAAA;;;ACnCF;AACE;AACA;AACA;AACA;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AACA;AACA;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AACA;AACA;AACA;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;;;AChCF;AACE;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,7 @@
1
1
  // src/components/AccountDropdownMenu.tsx
2
2
  import { formatAddress } from "@mysten/sui.js/utils";
3
3
  import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
4
+ import clsx3 from "clsx";
4
5
 
5
6
  // src/hooks/wallet/useWalletStore.ts
6
7
  import { useContext } from "react";
@@ -109,11 +110,11 @@ function useSwitchAccount({
109
110
  }
110
111
 
111
112
  // src/components/AccountDropdownMenu.css.ts
112
- var disconnectButton = "AccountDropdownMenu_disconnectButton__div2ql3";
113
+ var connectedAccount = "AccountDropdownMenu_connectedAccount__div2ql0";
113
114
  var menuContent = "AccountDropdownMenu_menuContent__div2ql1";
115
+ var menuItem = "AccountDropdownMenu_menuItem__div2ql2";
114
116
  var separator = "AccountDropdownMenu_separator__div2ql4";
115
- var switchAccountButton = "AccountDropdownMenu_switchAccountButton__div2ql2";
116
- var triggerButton = "AccountDropdownMenu_triggerButton__div2ql0";
117
+ var switchAccountMenuItem = "AccountDropdownMenu_switchAccountMenuItem__div2ql3";
117
118
 
118
119
  // src/components/icons/CheckIcon.tsx
119
120
  import { jsx } from "react/jsx-runtime";
@@ -121,7 +122,7 @@ function CheckIcon(props) {
121
122
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", ...props, children: /* @__PURE__ */ jsx(
122
123
  "path",
123
124
  {
124
- fill: "#007195",
125
+ fill: "currentColor",
125
126
  d: "m11.726 5.048-4.73 5.156-1.722-1.879a.72.72 0 0 0-.529-.23.722.722 0 0 0-.525.24.858.858 0 0 0-.22.573.86.86 0 0 0 .211.576l2.255 2.458c.14.153.332.24.53.24.2 0 .391-.087.532-.24l5.261-5.735A.86.86 0 0 0 13 5.63a.858.858 0 0 0-.22-.572.722.722 0 0 0-.525-.24.72.72 0 0 0-.529.23Z"
126
127
  }
127
128
  ) });
@@ -156,40 +157,101 @@ import { jsx as jsx3 } from "react/jsx-runtime";
156
157
  var StyleMarker = forwardRef(({ children }, forwardedRef) => /* @__PURE__ */ jsx3(Slot, { ref: forwardedRef, ...styleDataAttribute, children }));
157
158
  StyleMarker.displayName = "StyleMarker";
158
159
 
160
+ // src/components/ui/Button.tsx
161
+ import { Slot as Slot2 } from "@radix-ui/react-slot";
162
+ import clsx from "clsx";
163
+ import { forwardRef as forwardRef2 } from "react";
164
+
165
+ // src/components/ui/Button.css.ts
166
+ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
167
+ var buttonVariants = _7a468({ defaultClassName: "Button_buttonVariants__x1s81q0", variantClassNames: { variant: { primary: "Button_buttonVariants_variant_primary__x1s81q1", outline: "Button_buttonVariants_variant_outline__x1s81q2" }, size: { md: "Button_buttonVariants_size_md__x1s81q3", lg: "Button_buttonVariants_size_lg__x1s81q4" } }, defaultVariants: { variant: "primary", size: "md" }, compoundVariants: [] });
168
+
169
+ // src/components/ui/Button.tsx
170
+ import { jsx as jsx4 } from "react/jsx-runtime";
171
+ var Button = forwardRef2(
172
+ ({ className, variant, size, asChild = false, ...props }, forwardedRef) => {
173
+ const Comp = asChild ? Slot2 : "button";
174
+ return /* @__PURE__ */ jsx4(
175
+ Comp,
176
+ {
177
+ ...props,
178
+ className: clsx(buttonVariants({ variant, size }), className),
179
+ ref: forwardedRef
180
+ }
181
+ );
182
+ }
183
+ );
184
+ Button.displayName = "Button";
185
+
186
+ // src/components/ui/Text.tsx
187
+ import { Slot as Slot3 } from "@radix-ui/react-slot";
188
+ import clsx2 from "clsx";
189
+ import { forwardRef as forwardRef3 } from "react";
190
+
191
+ // src/components/ui/Text.css.ts
192
+ import { createRuntimeFn as _7a4682 } from "@vanilla-extract/recipes/createRuntimeFn";
193
+ var textVariants = _7a4682({ defaultClassName: "Text__2bv1ur0", variantClassNames: { size: { sm: "Text_textVariants_size_sm__2bv1ur1" }, weight: { normal: "Text_textVariants_weight_normal__2bv1ur2", medium: "Text_textVariants_weight_medium__2bv1ur3", bold: "Text_textVariants_weight_bold__2bv1ur4" }, color: { muted: "Text_textVariants_color_muted__2bv1ur5", danger: "Text_textVariants_color_danger__2bv1ur6" }, mono: { true: "Text_textVariants_mono_true__2bv1ur7" } }, defaultVariants: { size: "sm", weight: "normal" }, compoundVariants: [] });
194
+
195
+ // src/components/ui/Text.tsx
196
+ import { jsx as jsx5 } from "react/jsx-runtime";
197
+ var Text = forwardRef3(
198
+ ({
199
+ children,
200
+ className,
201
+ asChild = false,
202
+ as: Tag = "div",
203
+ size,
204
+ weight,
205
+ color,
206
+ mono,
207
+ ...textProps
208
+ }, forwardedRef) => {
209
+ return /* @__PURE__ */ jsx5(
210
+ Slot3,
211
+ {
212
+ ...textProps,
213
+ ref: forwardedRef,
214
+ className: clsx2(textVariants({ size, weight, color, mono }), className),
215
+ children: asChild ? children : /* @__PURE__ */ jsx5(Tag, { children })
216
+ }
217
+ );
218
+ }
219
+ );
220
+ Text.displayName = "Text";
221
+
159
222
  // src/components/AccountDropdownMenu.tsx
160
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
223
+ import { jsx as jsx6, jsxs } from "react/jsx-runtime";
161
224
  function AccountDropdownMenu({ currentAccount }) {
162
225
  const { mutate: disconnectWallet } = useDisconnectWallet();
163
226
  const { mutate: switchAccount } = useSwitchAccount();
164
227
  const accounts = useAccounts();
165
228
  return /* @__PURE__ */ jsxs(DropdownMenu.Root, { modal: false, children: [
166
- /* @__PURE__ */ jsx4(StyleMarker, { children: /* @__PURE__ */ jsxs(DropdownMenu.Trigger, { className: triggerButton, children: [
167
- formatAddress(currentAccount.address),
168
- /* @__PURE__ */ jsx4(ChevronIcon, {})
169
- ] }) }),
170
- /* @__PURE__ */ jsx4(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx4(StyleMarker, { children: /* @__PURE__ */ jsxs(DropdownMenu.Content, { className: menuContent, children: [
171
- accounts.map((account) => /* @__PURE__ */ jsx4(DropdownMenu.Item, { asChild: true, children: /* @__PURE__ */ jsxs(
172
- "button",
229
+ /* @__PURE__ */ jsx6(StyleMarker, { children: /* @__PURE__ */ jsx6(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { size: "lg", className: connectedAccount, children: [
230
+ /* @__PURE__ */ jsx6(Text, { mono: true, weight: "bold", children: formatAddress(currentAccount.address) }),
231
+ /* @__PURE__ */ jsx6(ChevronIcon, {})
232
+ ] }) }) }),
233
+ /* @__PURE__ */ jsx6(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx6(StyleMarker, { children: /* @__PURE__ */ jsxs(DropdownMenu.Content, { className: menuContent, children: [
234
+ accounts.map((account) => /* @__PURE__ */ jsxs(
235
+ DropdownMenu.Item,
173
236
  {
174
- type: "button",
175
- className: switchAccountButton,
176
- onClick: () => switchAccount({ account }),
237
+ className: clsx3(menuItem, switchAccountMenuItem),
238
+ onSelect: () => switchAccount({ account }),
177
239
  children: [
178
- formatAddress(account.address),
179
- currentAccount.address === account.address ? /* @__PURE__ */ jsx4(CheckIcon, {}) : null
240
+ /* @__PURE__ */ jsx6(Text, { mono: true, children: formatAddress(account.address) }),
241
+ currentAccount.address === account.address ? /* @__PURE__ */ jsx6(CheckIcon, {}) : null
180
242
  ]
181
- }
182
- ) }, account.address)),
183
- /* @__PURE__ */ jsx4(DropdownMenu.Separator, { className: separator }),
184
- /* @__PURE__ */ jsx4(DropdownMenu.Item, { asChild: true, children: /* @__PURE__ */ jsx4(
185
- "button",
243
+ },
244
+ account.address
245
+ )),
246
+ /* @__PURE__ */ jsx6(DropdownMenu.Separator, { className: separator }),
247
+ /* @__PURE__ */ jsx6(
248
+ DropdownMenu.Item,
186
249
  {
187
- className: disconnectButton,
188
- type: "button",
189
- onClick: () => disconnectWallet(),
250
+ className: clsx3(menuItem),
251
+ onSelect: () => disconnectWallet(),
190
252
  children: "Disconnect"
191
253
  }
192
- ) })
254
+ )
193
255
  ] }) }) })
194
256
  ] });
195
257
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/AccountDropdownMenu.tsx", "../../../src/hooks/wallet/useWalletStore.ts", "../../../src/contexts/walletContext.ts", "../../../src/hooks/wallet/useAccounts.ts", "../../../src/hooks/wallet/useDisconnectWallet.ts", "../../../src/constants/walletMutationKeys.ts", "../../../src/errors/walletErrors.ts", "../../../src/hooks/wallet/useCurrentWallet.ts", "../../../src/hooks/wallet/useSwitchAccount.ts", "../../../src/components/AccountDropdownMenu.css.ts", "../../../src/components/icons/CheckIcon.tsx", "../../../src/components/icons/ChevronIcon.tsx", "../../../src/components/styling/StyleMarker.tsx", "../../../src/constants/styleDataAttribute.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { formatAddress } from '@mysten/sui.js/utils';\nimport type { WalletAccount } from '@mysten/wallet-standard';\nimport * as DropdownMenu from '@radix-ui/react-dropdown-menu';\n\nimport { useAccounts } from '../hooks/wallet/useAccounts.js';\nimport { useDisconnectWallet } from '../hooks/wallet/useDisconnectWallet.js';\nimport { useSwitchAccount } from '../hooks/wallet/useSwitchAccount.js';\nimport * as styles from './AccountDropdownMenu.css.js';\nimport { CheckIcon } from './icons/CheckIcon.js';\nimport { ChevronIcon } from './icons/ChevronIcon.js';\nimport { StyleMarker } from './styling/StyleMarker.js';\n\ntype AccountDropdownMenuProps = {\n\tcurrentAccount: WalletAccount;\n};\n\nexport function AccountDropdownMenu({ currentAccount }: AccountDropdownMenuProps) {\n\tconst { mutate: disconnectWallet } = useDisconnectWallet();\n\tconst { mutate: switchAccount } = useSwitchAccount();\n\tconst accounts = useAccounts();\n\n\treturn (\n\t\t<DropdownMenu.Root modal={false}>\n\t\t\t<StyleMarker>\n\t\t\t\t<DropdownMenu.Trigger className={styles.triggerButton}>\n\t\t\t\t\t{formatAddress(currentAccount.address)}\n\t\t\t\t\t<ChevronIcon />\n\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t</StyleMarker>\n\t\t\t<DropdownMenu.Portal>\n\t\t\t\t<StyleMarker>\n\t\t\t\t\t<DropdownMenu.Content className={styles.menuContent}>\n\t\t\t\t\t\t{accounts.map((account) => (\n\t\t\t\t\t\t\t<DropdownMenu.Item key={account.address} asChild>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\tclassName={styles.switchAccountButton}\n\t\t\t\t\t\t\t\t\tonClick={() => switchAccount({ account })}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{formatAddress(account.address)}\n\t\t\t\t\t\t\t\t\t{currentAccount.address === account.address ? <CheckIcon /> : null}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t\t<DropdownMenu.Separator className={styles.separator} />\n\t\t\t\t\t\t<DropdownMenu.Item asChild>\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclassName={styles.disconnectButton}\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tonClick={() => disconnectWallet()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tDisconnect\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t</StyleMarker>\n\t\t\t</DropdownMenu.Portal>\n\t\t</DropdownMenu.Root>\n\t);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useContext } from 'react';\nimport { useStore } from 'zustand';\n\nimport { WalletContext } from '../../contexts/walletContext.js';\nimport type { StoreState } from '../../walletStore.js';\n\nexport function useWalletStore<T>(selector: (state: StoreState) => T): T {\n\tconst store = useContext(WalletContext);\n\tif (!store) {\n\t\tthrow new Error(\n\t\t\t'Could not find WalletContext. Ensure that you have set up the WalletProvider.',\n\t\t);\n\t}\n\treturn useStore(store, selector);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createContext } from 'react';\n\nimport type { WalletStore } from '../walletStore.js';\n\nexport const WalletContext = createContext<WalletStore | null>(null);\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useWalletStore } from './useWalletStore.js';\n\n/**\n * Retrieves a list of connected accounts authorized by the dApp.\n */\nexport function useAccounts() {\n\treturn useWalletStore((state) => state.accounts);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { UseMutationOptions } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nimport { walletMutationKeys } from '../../constants/walletMutationKeys.js';\nimport { WalletNotConnectedError } from '../../errors/walletErrors.js';\nimport { useCurrentWallet } from './useCurrentWallet.js';\nimport { useWalletStore } from './useWalletStore.js';\n\ntype UseDisconnectWalletMutationOptions = Omit<\n\tUseMutationOptions<void, Error, void, unknown>,\n\t'mutationFn'\n>;\n\n/**\n * Mutation hook for disconnecting from an active wallet connection, if currently connected.\n */\nexport function useDisconnectWallet({\n\tmutationKey,\n\t...mutationOptions\n}: UseDisconnectWalletMutationOptions = {}) {\n\tconst currentWallet = useCurrentWallet();\n\tconst setWalletDisconnected = useWalletStore((state) => state.setWalletDisconnected);\n\n\treturn useMutation({\n\t\tmutationKey: walletMutationKeys.disconnectWallet(mutationKey),\n\t\tmutationFn: async () => {\n\t\t\tif (!currentWallet) {\n\t\t\t\tthrow new WalletNotConnectedError('No wallet is connected.');\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Wallets aren't required to implement the disconnect feature, so we'll\n\t\t\t\t// optionally call the disconnect feature if it exists and reset the UI\n\t\t\t\t// state on the frontend at a minimum.\n\t\t\t\tawait currentWallet.features['standard:disconnect']?.disconnect();\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Failed to disconnect the application from the current wallet.', error);\n\t\t\t}\n\n\t\t\tsetWalletDisconnected();\n\t\t},\n\t\t...mutationOptions,\n\t});\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { MutationKey } from '@tanstack/react-query';\n\nexport const walletMutationKeys = {\n\tall: { baseScope: 'wallet' },\n\tconnectWallet: formMutationKeyFn('connect-wallet'),\n\tdisconnectWallet: formMutationKeyFn('disconnect-wallet'),\n\tsignPersonalMessage: formMutationKeyFn('sign-personal-message'),\n\tsignTransactionBlock: formMutationKeyFn('sign-transaction-block'),\n\tsignAndExecuteTransactionBlock: formMutationKeyFn('sign-and-execute-transaction-block'),\n\tswitchAccount: formMutationKeyFn('switch-account'),\n};\n\nfunction formMutationKeyFn(baseEntity: string) {\n\treturn function mutationKeyFn(additionalKeys: MutationKey = []) {\n\t\treturn [{ ...walletMutationKeys.all, baseEntity }, ...additionalKeys];\n\t};\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * An error that is instantiated when someone attempts to perform an action that requires an active wallet connection.\n */\nexport class WalletNotConnectedError extends Error {}\n\n/**\n * An error that is instantiated when someone attempts to perform an action that requires a selected wallet account.\n * This is more of an edge case stemming from the fact that wallets don't technically require you to authorize any\n * accounts when connecting a wallet.\n */\nexport class WalletNoAccountSelectedError extends Error {}\n\n/**\n * An error that is instantiated when someone attempts to perform an action that isn't supported by a wallet.\n */\nexport class WalletFeatureNotSupportedError extends Error {}\n\n/**\n * An error that is instantiated when a wallet account can't be found for a specific wallet.\n */\nexport class WalletAccountNotFoundError extends Error {}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useWalletStore } from './useWalletStore.js';\n\n/**\n * Retrieves the wallet that is currently connected to the dApp, if one exists.\n */\nexport function useCurrentWallet() {\n\treturn useWalletStore((state) => state.currentWallet);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { WalletAccount } from '@mysten/wallet-standard';\nimport type { UseMutationOptions } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nimport { walletMutationKeys } from '../../constants/walletMutationKeys.js';\nimport { WalletAccountNotFoundError, WalletNotConnectedError } from '../../errors/walletErrors.js';\nimport { useCurrentWallet } from './useCurrentWallet.js';\nimport { useWalletStore } from './useWalletStore.js';\n\ntype SwitchAccountArgs = {\n\taccount: WalletAccount;\n};\n\ntype SwitchAccountResult = void;\n\ntype UseSwitchAccountMutationOptions = Omit<\n\tUseMutationOptions<\n\t\tSwitchAccountResult,\n\t\tWalletNotConnectedError | WalletAccountNotFoundError | Error,\n\t\tSwitchAccountArgs,\n\t\tunknown\n\t>,\n\t'mutationFn'\n>;\n\n/**\n * Mutation hook for switching to a specific wallet account.\n */\nexport function useSwitchAccount({\n\tmutationKey,\n\t...mutationOptions\n}: UseSwitchAccountMutationOptions = {}) {\n\tconst currentWallet = useCurrentWallet();\n\tconst setAccountSwitched = useWalletStore((state) => state.setAccountSwitched);\n\n\treturn useMutation({\n\t\tmutationKey: walletMutationKeys.switchAccount(mutationKey),\n\t\tmutationFn: async ({ account }) => {\n\t\t\tif (!currentWallet) {\n\t\t\t\tthrow new WalletNotConnectedError('No wallet is connected.');\n\t\t\t}\n\n\t\t\tconst accountToSelect = currentWallet.accounts.find(\n\t\t\t\t(walletAccount) => walletAccount.address === account.address,\n\t\t\t);\n\t\t\tif (!accountToSelect) {\n\t\t\t\tthrow new WalletAccountNotFoundError(\n\t\t\t\t\t`No account with address ${account.address} is connected to ${currentWallet.name}.`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tsetAccountSwitched(accountToSelect);\n\t\t},\n\t\t...mutationOptions,\n\t});\n}\n", "import 'src/components/AccountDropdownMenu.css.ts.vanilla.css?source=LkFjY291bnREcm9wZG93bk1lbnVfdHJpZ2dlckJ1dHRvbl9fZGl2MnFsMCB7CiAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgZ2FwOiA4cHg7CiAgcGFkZGluZy1sZWZ0OiAyNHB4OwogIHBhZGRpbmctcmlnaHQ6IDI0cHg7CiAgcGFkZGluZy10b3A6IDE2cHg7CiAgcGFkZGluZy1ib3R0b206IDE2cHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBib3gtc2hhZG93OiAwcHggNHB4IDEycHggcmdiYSgwLCAwLCAwLCAwLjEpOwogIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogIGNvbG9yOiAjMTgyNDM1Owp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVDb250ZW50X19kaXYycWwxIHsKICB3aWR0aDogMTgwcHg7CiAgbWF4LWhlaWdodDogMjAwcHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBtYXJnaW4tdG9wOiA0cHg7CiAgcGFkZGluZzogOHB4OwogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBnYXA6IDhweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsKfQouQWNjb3VudERyb3Bkb3duTWVudV9zd2l0Y2hBY2NvdW50QnV0dG9uX19kaXYycWwyIHsKICBkaXNwbGF5OiBmbGV4OwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICBhbGlnbi1pdGVtczogY2VudGVyOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X2Rpc2Nvbm5lY3RCdXR0b25fX2RpdjJxbDMgewogIGRpc3BsYXk6IGZsZXg7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLkFjY291bnREcm9wZG93bk1lbnVfc2VwYXJhdG9yX19kaXYycWw0IHsKICBoZWlnaHQ6IDFweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiAjRjNGNkY4Owp9';\nexport var disconnectButton = 'AccountDropdownMenu_disconnectButton__div2ql3';\nexport var menuContent = 'AccountDropdownMenu_menuContent__div2ql1';\nexport var separator = 'AccountDropdownMenu_separator__div2ql4';\nexport var switchAccountButton = 'AccountDropdownMenu_switchAccountButton__div2ql2';\nexport var triggerButton = 'AccountDropdownMenu_triggerButton__div2ql0';", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ComponentProps } from 'react';\n\nexport function CheckIcon(props: ComponentProps<'svg'>) {\n\treturn (\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"none\" {...props}>\n\t\t\t<path\n\t\t\t\tfill=\"#007195\"\n\t\t\t\td=\"m11.726 5.048-4.73 5.156-1.722-1.879a.72.72 0 0 0-.529-.23.722.722 0 0 0-.525.24.858.858 0 0 0-.22.573.86.86 0 0 0 .211.576l2.255 2.458c.14.153.332.24.53.24.2 0 .391-.087.532-.24l5.261-5.735A.86.86 0 0 0 13 5.63a.858.858 0 0 0-.22-.572.722.722 0 0 0-.525-.24.72.72 0 0 0-.529.23Z\"\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ComponentProps } from 'react';\n\nexport function ChevronIcon(props: ComponentProps<'svg'>) {\n\treturn (\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"none\" {...props}>\n\t\t\t<path\n\t\t\t\tstroke=\"#A0B6C3\"\n\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\tstrokeLinejoin=\"round\"\n\t\t\t\tstrokeWidth={1.5}\n\t\t\t\td=\"m4 6 4 4 4-4\"\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Slot } from '@radix-ui/react-slot';\nimport type { ComponentPropsWithoutRef, ElementRef, ReactNode } from 'react';\nimport { forwardRef } from 'react';\n\nimport { styleDataAttribute } from '../../constants/styleDataAttribute.js';\n\nimport './StyleMarker.css.js';\n\ntype StyleMarker = {\n\tchildren: ReactNode;\n};\n\nexport const StyleMarker = forwardRef<\n\tElementRef<typeof Slot>,\n\tComponentPropsWithoutRef<typeof Slot>\n>(({ children }, forwardedRef) => (\n\t<Slot ref={forwardedRef} {...styleDataAttribute}>\n\t\t{children}\n\t</Slot>\n));\nStyleMarker.displayName = 'StyleMarker';\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nexport const styleDataAttributeName = 'data-dapp-kit';\n\nexport const styleDataAttributeSelector = `[${styleDataAttributeName}]`;\n\nexport const styleDataAttribute = { [styleDataAttributeName]: '' };\n"],
5
- "mappings": ";AAGA,SAAS,qBAAqB;AAE9B,YAAY,kBAAkB;;;ACF9B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;;;ACDzB,SAAS,qBAAqB;AAIvB,IAAM,gBAAgB,cAAkC,IAAI;;;ADE5D,SAAS,eAAkB,UAAuC;AACxE,QAAM,QAAQ,WAAW,aAAa;AACtC,MAAI,CAAC,OAAO;AACX,UAAM,IAAI;AAAA,MACT;AAAA,IACD;AAAA,EACD;AACA,SAAO,SAAS,OAAO,QAAQ;AAChC;;;AETO,SAAS,cAAc;AAC7B,SAAO,eAAe,CAAC,UAAU,MAAM,QAAQ;AAChD;;;ACNA,SAAS,mBAAmB;;;ACCrB,IAAM,qBAAqB;AAAA,EACjC,KAAK,EAAE,WAAW,SAAS;AAAA,EAC3B,eAAe,kBAAkB,gBAAgB;AAAA,EACjD,kBAAkB,kBAAkB,mBAAmB;AAAA,EACvD,qBAAqB,kBAAkB,uBAAuB;AAAA,EAC9D,sBAAsB,kBAAkB,wBAAwB;AAAA,EAChE,gCAAgC,kBAAkB,oCAAoC;AAAA,EACtF,eAAe,kBAAkB,gBAAgB;AAClD;AAEA,SAAS,kBAAkB,YAAoB;AAC9C,SAAO,SAAS,cAAc,iBAA8B,CAAC,GAAG;AAC/D,WAAO,CAAC,EAAE,GAAG,mBAAmB,KAAK,WAAW,GAAG,GAAG,cAAc;AAAA,EACrE;AACD;;;ACbO,IAAM,0BAAN,cAAsC,MAAM;AAAC;AAiB7C,IAAM,6BAAN,cAAyC,MAAM;AAAC;;;ACfhD,SAAS,mBAAmB;AAClC,SAAO,eAAe,CAAC,UAAU,MAAM,aAAa;AACrD;;;AHSO,SAAS,oBAAoB;AAAA,EACnC;AAAA,EACA,GAAG;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C,YACd,gBAAAA,KAAc,mBAAb,EAAwC,SAAO,MAC/C;AAAA,QAAC;AAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAkB;AAAA,UAClB,SAAS,MAAM,cAAc,EAAE,QAAQ,CAAC;AAAA,UAEvC;AAAA,0BAAc,QAAQ,OAAO;AAAA,YAC7B,eAAe,YAAY,QAAQ,UAAU,gBAAAA,KAAC,aAAU,IAAK;AAAA;AAAA;AAAA,MAC/D,KARuB,QAAQ,OAShC,CACA;AAAA,MACD,gBAAAA,KAAc,wBAAb,EAAuB,WAAkB,WAAW;AAAA,MACrD,gBAAAA,KAAc,mBAAb,EAAkB,SAAO,MACzB,0BAAAA;AAAA,QAAC;AAAA;AAAA,UACA,WAAkB;AAAA,UAClB,MAAK;AAAA,UACL,SAAS,MAAM,iBAAiB;AAAA,UAChC;AAAA;AAAA,MAED,GACD;AAAA,OACD,GACD,GACD;AAAA,KACD;AAEF;",
6
- "names": ["useMutation", "useMutation", "jsx", "jsx", "jsx"]
3
+ "sources": ["../../../src/components/AccountDropdownMenu.tsx", "../../../src/hooks/wallet/useWalletStore.ts", "../../../src/contexts/walletContext.ts", "../../../src/hooks/wallet/useAccounts.ts", "../../../src/hooks/wallet/useDisconnectWallet.ts", "../../../src/constants/walletMutationKeys.ts", "../../../src/errors/walletErrors.ts", "../../../src/hooks/wallet/useCurrentWallet.ts", "../../../src/hooks/wallet/useSwitchAccount.ts", "../../../src/components/AccountDropdownMenu.css.ts", "../../../src/components/icons/CheckIcon.tsx", "../../../src/components/icons/ChevronIcon.tsx", "../../../src/components/styling/StyleMarker.tsx", "../../../src/constants/styleDataAttribute.ts", "../../../src/components/ui/Button.tsx", "../../../src/components/ui/Button.css.ts", "../../../src/components/ui/Text.tsx", "../../../src/components/ui/Text.css.ts"],
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { formatAddress } from '@mysten/sui.js/utils';\nimport type { WalletAccount } from '@mysten/wallet-standard';\nimport * as DropdownMenu from '@radix-ui/react-dropdown-menu';\nimport clsx from 'clsx';\n\nimport { useAccounts } from '../hooks/wallet/useAccounts.js';\nimport { useDisconnectWallet } from '../hooks/wallet/useDisconnectWallet.js';\nimport { useSwitchAccount } from '../hooks/wallet/useSwitchAccount.js';\nimport * as styles from './AccountDropdownMenu.css.js';\nimport { CheckIcon } from './icons/CheckIcon.js';\nimport { ChevronIcon } from './icons/ChevronIcon.js';\nimport { StyleMarker } from './styling/StyleMarker.js';\nimport { Button } from './ui/Button.js';\nimport { Text } from './ui/Text.js';\n\ntype AccountDropdownMenuProps = {\n\tcurrentAccount: WalletAccount;\n};\n\nexport function AccountDropdownMenu({ currentAccount }: AccountDropdownMenuProps) {\n\tconst { mutate: disconnectWallet } = useDisconnectWallet();\n\tconst { mutate: switchAccount } = useSwitchAccount();\n\tconst accounts = useAccounts();\n\n\treturn (\n\t\t<DropdownMenu.Root modal={false}>\n\t\t\t<StyleMarker>\n\t\t\t\t<DropdownMenu.Trigger asChild>\n\t\t\t\t\t<Button size=\"lg\" className={styles.connectedAccount}>\n\t\t\t\t\t\t<Text mono weight=\"bold\">\n\t\t\t\t\t\t\t{formatAddress(currentAccount.address)}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t<ChevronIcon />\n\t\t\t\t\t</Button>\n\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t</StyleMarker>\n\t\t\t<DropdownMenu.Portal>\n\t\t\t\t<StyleMarker>\n\t\t\t\t\t<DropdownMenu.Content className={styles.menuContent}>\n\t\t\t\t\t\t{accounts.map((account) => (\n\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\tkey={account.address}\n\t\t\t\t\t\t\t\tclassName={clsx(styles.menuItem, styles.switchAccountMenuItem)}\n\t\t\t\t\t\t\t\tonSelect={() => switchAccount({ account })}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Text mono>{formatAddress(account.address)}</Text>\n\t\t\t\t\t\t\t\t{currentAccount.address === account.address ? <CheckIcon /> : null}\n\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t\t<DropdownMenu.Separator className={styles.separator} />\n\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\tclassName={clsx(styles.menuItem)}\n\t\t\t\t\t\t\tonSelect={() => disconnectWallet()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tDisconnect\n\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t</StyleMarker>\n\t\t\t</DropdownMenu.Portal>\n\t\t</DropdownMenu.Root>\n\t);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useContext } from 'react';\nimport { useStore } from 'zustand';\n\nimport { WalletContext } from '../../contexts/walletContext.js';\nimport type { StoreState } from '../../walletStore.js';\n\nexport function useWalletStore<T>(selector: (state: StoreState) => T): T {\n\tconst store = useContext(WalletContext);\n\tif (!store) {\n\t\tthrow new Error(\n\t\t\t'Could not find WalletContext. Ensure that you have set up the WalletProvider.',\n\t\t);\n\t}\n\treturn useStore(store, selector);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createContext } from 'react';\n\nimport type { WalletStore } from '../walletStore.js';\n\nexport const WalletContext = createContext<WalletStore | null>(null);\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useWalletStore } from './useWalletStore.js';\n\n/**\n * Retrieves a list of connected accounts authorized by the dApp.\n */\nexport function useAccounts() {\n\treturn useWalletStore((state) => state.accounts);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { UseMutationOptions } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nimport { walletMutationKeys } from '../../constants/walletMutationKeys.js';\nimport { WalletNotConnectedError } from '../../errors/walletErrors.js';\nimport { useCurrentWallet } from './useCurrentWallet.js';\nimport { useWalletStore } from './useWalletStore.js';\n\ntype UseDisconnectWalletMutationOptions = Omit<\n\tUseMutationOptions<void, Error, void, unknown>,\n\t'mutationFn'\n>;\n\n/**\n * Mutation hook for disconnecting from an active wallet connection, if currently connected.\n */\nexport function useDisconnectWallet({\n\tmutationKey,\n\t...mutationOptions\n}: UseDisconnectWalletMutationOptions = {}) {\n\tconst currentWallet = useCurrentWallet();\n\tconst setWalletDisconnected = useWalletStore((state) => state.setWalletDisconnected);\n\n\treturn useMutation({\n\t\tmutationKey: walletMutationKeys.disconnectWallet(mutationKey),\n\t\tmutationFn: async () => {\n\t\t\tif (!currentWallet) {\n\t\t\t\tthrow new WalletNotConnectedError('No wallet is connected.');\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Wallets aren't required to implement the disconnect feature, so we'll\n\t\t\t\t// optionally call the disconnect feature if it exists and reset the UI\n\t\t\t\t// state on the frontend at a minimum.\n\t\t\t\tawait currentWallet.features['standard:disconnect']?.disconnect();\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Failed to disconnect the application from the current wallet.', error);\n\t\t\t}\n\n\t\t\tsetWalletDisconnected();\n\t\t},\n\t\t...mutationOptions,\n\t});\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { MutationKey } from '@tanstack/react-query';\n\nexport const walletMutationKeys = {\n\tall: { baseScope: 'wallet' },\n\tconnectWallet: formMutationKeyFn('connect-wallet'),\n\tdisconnectWallet: formMutationKeyFn('disconnect-wallet'),\n\tsignPersonalMessage: formMutationKeyFn('sign-personal-message'),\n\tsignTransactionBlock: formMutationKeyFn('sign-transaction-block'),\n\tsignAndExecuteTransactionBlock: formMutationKeyFn('sign-and-execute-transaction-block'),\n\tswitchAccount: formMutationKeyFn('switch-account'),\n};\n\nfunction formMutationKeyFn(baseEntity: string) {\n\treturn function mutationKeyFn(additionalKeys: MutationKey = []) {\n\t\treturn [{ ...walletMutationKeys.all, baseEntity }, ...additionalKeys];\n\t};\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * An error that is instantiated when someone attempts to perform an action that requires an active wallet connection.\n */\nexport class WalletNotConnectedError extends Error {}\n\n/**\n * An error that is instantiated when someone attempts to perform an action that requires a selected wallet account.\n * This is more of an edge case stemming from the fact that wallets don't technically require you to authorize any\n * accounts when connecting a wallet.\n */\nexport class WalletNoAccountSelectedError extends Error {}\n\n/**\n * An error that is instantiated when someone attempts to perform an action that isn't supported by a wallet.\n */\nexport class WalletFeatureNotSupportedError extends Error {}\n\n/**\n * An error that is instantiated when a wallet account can't be found for a specific wallet.\n */\nexport class WalletAccountNotFoundError extends Error {}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useWalletStore } from './useWalletStore.js';\n\n/**\n * Retrieves the wallet that is currently connected to the dApp, if one exists.\n */\nexport function useCurrentWallet() {\n\treturn useWalletStore((state) => state.currentWallet);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { WalletAccount } from '@mysten/wallet-standard';\nimport type { UseMutationOptions } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nimport { walletMutationKeys } from '../../constants/walletMutationKeys.js';\nimport { WalletAccountNotFoundError, WalletNotConnectedError } from '../../errors/walletErrors.js';\nimport { useCurrentWallet } from './useCurrentWallet.js';\nimport { useWalletStore } from './useWalletStore.js';\n\ntype SwitchAccountArgs = {\n\taccount: WalletAccount;\n};\n\ntype SwitchAccountResult = void;\n\ntype UseSwitchAccountMutationOptions = Omit<\n\tUseMutationOptions<\n\t\tSwitchAccountResult,\n\t\tWalletNotConnectedError | WalletAccountNotFoundError | Error,\n\t\tSwitchAccountArgs,\n\t\tunknown\n\t>,\n\t'mutationFn'\n>;\n\n/**\n * Mutation hook for switching to a specific wallet account.\n */\nexport function useSwitchAccount({\n\tmutationKey,\n\t...mutationOptions\n}: UseSwitchAccountMutationOptions = {}) {\n\tconst currentWallet = useCurrentWallet();\n\tconst setAccountSwitched = useWalletStore((state) => state.setAccountSwitched);\n\n\treturn useMutation({\n\t\tmutationKey: walletMutationKeys.switchAccount(mutationKey),\n\t\tmutationFn: async ({ account }) => {\n\t\t\tif (!currentWallet) {\n\t\t\t\tthrow new WalletNotConnectedError('No wallet is connected.');\n\t\t\t}\n\n\t\t\tconst accountToSelect = currentWallet.accounts.find(\n\t\t\t\t(walletAccount) => walletAccount.address === account.address,\n\t\t\t);\n\t\t\tif (!accountToSelect) {\n\t\t\t\tthrow new WalletAccountNotFoundError(\n\t\t\t\t\t`No account with address ${account.address} is connected to ${currentWallet.name}.`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tsetAccountSwitched(accountToSelect);\n\t\t},\n\t\t...mutationOptions,\n\t});\n}\n", "import 'src/components/AccountDropdownMenu.css.ts.vanilla.css?source=LkFjY291bnREcm9wZG93bk1lbnVfY29ubmVjdGVkQWNjb3VudF9fZGl2MnFsMCB7CiAgZ2FwOiA4cHg7Cn0KLkFjY291bnREcm9wZG93bk1lbnVfbWVudUNvbnRlbnRfX2RpdjJxbDEgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICB3aWR0aDogMTgwcHg7CiAgbWF4LWhlaWdodDogMjAwcHg7CiAgbWFyZ2luLXRvcDogNHB4OwogIHBhZGRpbmc6IDhweDsKICBnYXA6IDhweDsKICBib3JkZXItcmFkaXVzOiB2YXIoLS1kYXBwLWtpdC1yYWRpaS1sYXJnZSk7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZGFwcC1raXQtYmFja2dyb3VuZENvbG9ycy1kcm9wZG93bk1lbnUpOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVJdGVtX19kaXYycWwyIHsKICBwYWRkaW5nOiA4cHg7CiAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgb3V0bGluZTogbm9uZTsKICBkaXNwbGF5OiBmbGV4OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tZGFwcC1raXQtcmFkaWktbGFyZ2UpOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X21lbnVJdGVtX19kaXYycWwyW2RhdGEtaGlnaGxpZ2h0ZWRdIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1kYXBwLWtpdC1iYWNrZ3JvdW5kQ29sb3JzLXByaW1hcnlCdXR0b24pOwp9Ci5BY2NvdW50RHJvcGRvd25NZW51X3N3aXRjaEFjY291bnRNZW51SXRlbV9fZGl2MnFsMyB7CiAgZGlzcGxheTogZmxleDsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKfQouQWNjb3VudERyb3Bkb3duTWVudV9zZXBhcmF0b3JfX2RpdjJxbDQgewogIGhlaWdodDogMXB4OwogIGZsZXgtc2hyaW5rOiAwOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhcHAta2l0LWJhY2tncm91bmRDb2xvcnMtZHJvcGRvd25NZW51U2VwYXJhdG9yKTsKfQ==';\nexport var connectedAccount = 'AccountDropdownMenu_connectedAccount__div2ql0';\nexport var menuContent = 'AccountDropdownMenu_menuContent__div2ql1';\nexport var menuItem = 'AccountDropdownMenu_menuItem__div2ql2';\nexport var separator = 'AccountDropdownMenu_separator__div2ql4';\nexport var switchAccountMenuItem = 'AccountDropdownMenu_switchAccountMenuItem__div2ql3';", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ComponentProps } from 'react';\n\nexport function CheckIcon(props: ComponentProps<'svg'>) {\n\treturn (\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"none\" {...props}>\n\t\t\t<path\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\td=\"m11.726 5.048-4.73 5.156-1.722-1.879a.72.72 0 0 0-.529-.23.722.722 0 0 0-.525.24.858.858 0 0 0-.22.573.86.86 0 0 0 .211.576l2.255 2.458c.14.153.332.24.53.24.2 0 .391-.087.532-.24l5.261-5.735A.86.86 0 0 0 13 5.63a.858.858 0 0 0-.22-.572.722.722 0 0 0-.525-.24.72.72 0 0 0-.529.23Z\"\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ComponentProps } from 'react';\n\nexport function ChevronIcon(props: ComponentProps<'svg'>) {\n\treturn (\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={16} height={16} fill=\"none\" {...props}>\n\t\t\t<path\n\t\t\t\tstroke=\"#A0B6C3\"\n\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\tstrokeLinejoin=\"round\"\n\t\t\t\tstrokeWidth={1.5}\n\t\t\t\td=\"m4 6 4 4 4-4\"\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Slot } from '@radix-ui/react-slot';\nimport type { ComponentPropsWithoutRef, ElementRef, ReactNode } from 'react';\nimport { forwardRef } from 'react';\n\nimport { styleDataAttribute } from '../../constants/styleDataAttribute.js';\n\nimport './StyleMarker.css.js';\n\ntype StyleMarker = {\n\tchildren: ReactNode;\n};\n\nexport const StyleMarker = forwardRef<\n\tElementRef<typeof Slot>,\n\tComponentPropsWithoutRef<typeof Slot>\n>(({ children }, forwardedRef) => (\n\t<Slot ref={forwardedRef} {...styleDataAttribute}>\n\t\t{children}\n\t</Slot>\n));\nStyleMarker.displayName = 'StyleMarker';\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nexport const styleDataAttributeName = 'data-dapp-kit';\n\nexport const styleDataAttributeSelector = `[${styleDataAttributeName}]`;\n\nexport const styleDataAttribute = { [styleDataAttributeName]: '' };\n", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { ButtonHTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\n\nimport { buttonVariants } from './Button.css.js';\nimport type { ButtonVariants } from './Button.css.js';\n\ntype ButtonProps = {\n\tasChild?: boolean;\n} & ButtonHTMLAttributes<HTMLButtonElement> &\n\tButtonVariants;\n\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, asChild = false, ...props }, forwardedRef) => {\n\t\tconst Comp = asChild ? Slot : 'button';\n\t\treturn (\n\t\t\t<Comp\n\t\t\t\t{...props}\n\t\t\t\tclassName={clsx(buttonVariants({ variant, size }), className)}\n\t\t\t\tref={forwardedRef}\n\t\t\t/>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button };\n", "import 'src/components/ui/Button.css.ts.vanilla.css?source=#H4sIAAAAAAAAA62Tz1LCMBDG7zxFjnIIQxEdptz04hPosbNtQruSJjFJodXx3U1aOoAVhNFL0/n2z+/bbTN5qJxTMknb4xkMgnQ2SerILqK3KfkYEcLQagFNTFAKlJyuBK+XXgeBuaToeGljknHpuAnya2UdrhqaKa9IdxhaeYluOeaFlzdgbihloDVdo6Mh9tKGLC05w6ocL0efo8l5g7E3B6ngrHWqNGTovNPp5O5M8aZ7SbTBEkzTN4vaHilk69yoSjI/gVBmYHSf8Bjilu7adKxxmPPnwuxUeqpqagtgajuo6eRh0dWzxYXacPMfEz6FRpdYUJUL/0tvYdbBlWHc0C0yV8Qk0vVyL1rXCB4TqwSyA/mEyTa4M7hDXfoJvqdfPcqftnlE/3WbFt95UrIefXu4RQP+ntgBMci4v0SEaGAMZR6Tha5JdB+Wfp4n8p43v5gnwOT8GBdQZDb3Dw/8AmeLhNtrBAAA';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var buttonVariants = _7a468({defaultClassName:'Button_buttonVariants__x1s81q0',variantClassNames:{variant:{primary:'Button_buttonVariants_variant_primary__x1s81q1',outline:'Button_buttonVariants_variant_outline__x1s81q2'},size:{md:'Button_buttonVariants_size_md__x1s81q3',lg:'Button_buttonVariants_size_lg__x1s81q4'}},defaultVariants:{variant:'primary',size:'md'},compoundVariants:[]});", "// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport { forwardRef } from 'react';\n\nimport { textVariants } from './Text.css.js';\nimport type { TextVariants } from './Text.css.js';\n\ntype TextAsChildProps = {\n\tasChild?: boolean;\n\tas?: never;\n};\n\ntype TextDivProps = { as: 'div'; asChild?: never };\n\ntype TextProps = (TextAsChildProps | TextDivProps) &\n\tReact.HTMLAttributes<HTMLDivElement> &\n\tTextVariants;\n\nconst Text = forwardRef<HTMLDivElement, TextProps>(\n\t(\n\t\t{\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tasChild = false,\n\t\t\tas: Tag = 'div',\n\t\t\tsize,\n\t\t\tweight,\n\t\t\tcolor,\n\t\t\tmono,\n\t\t\t...textProps\n\t\t},\n\t\tforwardedRef,\n\t) => {\n\t\treturn (\n\t\t\t<Slot\n\t\t\t\t{...textProps}\n\t\t\t\tref={forwardedRef}\n\t\t\t\tclassName={clsx(textVariants({ size, weight, color, mono }), className)}\n\t\t\t>\n\t\t\t\t{asChild ? children : <Tag>{children}</Tag>}\n\t\t\t</Slot>\n\t\t);\n\t},\n);\nText.displayName = 'Text';\n\nexport { Text };\n", "import 'src/components/ui/Text.css.ts.vanilla.css?source=LlRleHRfdGV4dFZhcmlhbnRzX3NpemVfc21fXzJidjF1cjEgewogIGZvbnQtc2l6ZTogdmFyKC0tZGFwcC1raXQtZm9udFNpemVzLXNtYWxsKTsKfQouVGV4dF90ZXh0VmFyaWFudHNfd2VpZ2h0X25vcm1hbF9fMmJ2MXVyMiB7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWRhcHAta2l0LWZvbnRXZWlnaHRzLW5vcm1hbCk7Cn0KLlRleHRfdGV4dFZhcmlhbnRzX3dlaWdodF9tZWRpdW1fXzJidjF1cjMgewogIGZvbnQtd2VpZ2h0OiB2YXIoLS1kYXBwLWtpdC1mb250V2VpZ2h0cy1tZWRpdW0pOwp9Ci5UZXh0X3RleHRWYXJpYW50c193ZWlnaHRfYm9sZF9fMmJ2MXVyNCB7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWRhcHAta2l0LWZvbnRXZWlnaHRzLWJvbGQpOwp9Ci5UZXh0X3RleHRWYXJpYW50c19jb2xvcl9tdXRlZF9fMmJ2MXVyNSB7CiAgY29sb3I6IHZhcigtLWRhcHAta2l0LWNvbG9ycy1ib2R5TXV0ZWQpOwp9Ci5UZXh0X3RleHRWYXJpYW50c19jb2xvcl9kYW5nZXJfXzJidjF1cjYgewogIGNvbG9yOiB2YXIoLS1kYXBwLWtpdC1jb2xvcnMtYm9keURhbmdlcik7Cn0KLlRleHRfdGV4dFZhcmlhbnRzX21vbm9fdHJ1ZV9fMmJ2MXVyNyB7CiAgZm9udC1mYW1pbHk6IHVpLW1vbm9zcGFjZSwgU0ZNb25vLVJlZ3VsYXIsIE1lbmxvLCBNb25hY28sIENvbnNvbGFzLCAiTGliZXJhdGlvbiBNb25vIiwgIkNvdXJpZXIgTmV3IiwgbW9ub3NwYWNlOwp9';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var textVariants = _7a468({defaultClassName:'Text__2bv1ur0',variantClassNames:{size:{sm:'Text_textVariants_size_sm__2bv1ur1'},weight:{normal:'Text_textVariants_weight_normal__2bv1ur2',medium:'Text_textVariants_weight_medium__2bv1ur3',bold:'Text_textVariants_weight_bold__2bv1ur4'},color:{muted:'Text_textVariants_color_muted__2bv1ur5',danger:'Text_textV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QAAM,WAAW,YAAY;AAE7B,SACC,qBAAc,mBAAb,EAAkB,OAAO,OACzB;AAAA,oBAAAA,KAAC,eACA,0BAAAA,KAAc,sBAAb,EAAqB,SAAO,MAC5B,+BAAC,UAAO,MAAK,MAAK,WAAkB,kBACnC;AAAA,sBAAAA,KAAC,QAAK,MAAI,MAAC,QAAO,QAChB,wBAAc,eAAe,OAAO,GACtC;AAAA,MACA,gBAAAA,KAAC,eAAY;AAAA,OACd,GACD,GACD;AAAA,IACA,gBAAAA,KAAc,qBAAb,EACA,0BAAAA,KAAC,eACA,+BAAc,sBAAb,EAAqB,WAAkB,aACtC;AAAA,eAAS,IAAI,CAAC,YACd;AAAA,QAAc;AAAA,QAAb;AAAA,UAEA,WAAWC,MAAY,UAAiB,qBAAqB;AAAA,UAC7D,UAAU,MAAM,cAAc,EAAE,QAAQ,CAAC;AAAA,UAEzC;AAAA,4BAAAD,KAAC,QAAK,MAAI,MAAE,wBAAc,QAAQ,OAAO,GAAE;AAAA,YAC1C,eAAe,YAAY,QAAQ,UAAU,gBAAAA,KAAC,aAAU,IAAK;AAAA;AAAA;AAAA,QALzD,QAAQ;AAAA,MAMd,CACA;AAAA,MACD,gBAAAA,KAAc,wBAAb,EAAuB,WAAkB,WAAW;AAAA,MACrD,gBAAAA;AAAA,QAAc;AAAA,QAAb;AAAA,UACA,WAAWC,MAAY,QAAQ;AAAA,UAC/B,UAAU,MAAM,iBAAiB;AAAA,UACjC;AAAA;AAAA,MAED;AAAA,OACD,GACD,GACD;AAAA,KACD;AAEF;",
6
+ "names": ["clsx", "useMutation", "useMutation", "jsx", "jsx", "Slot", "forwardRef", "jsx", "forwardRef", "Slot", "Slot", "clsx", "forwardRef", "_7a468", "jsx", "forwardRef", "Slot", "clsx", "jsx", "clsx"]
7
7
  }