@lightsparkdev/ui 0.0.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 (655) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +23 -0
  3. package/dist/chunk-2RF46PE5.js +127 -0
  4. package/dist/chunk-4X3K3VRC.js +263 -0
  5. package/dist/chunk-6AV4TE6I.js +20 -0
  6. package/dist/chunk-6RDG2DE3.js +25 -0
  7. package/dist/chunk-7ENCWBAN.js +112 -0
  8. package/dist/chunk-7NQH4LBZ.js +25 -0
  9. package/dist/chunk-ACZDUWPH.js +304 -0
  10. package/dist/chunk-BKOTW3CK.js +51 -0
  11. package/dist/chunk-BZ5MKMI2.js +58 -0
  12. package/dist/chunk-CIGAQ47A.js +45 -0
  13. package/dist/chunk-CLU2FRJZ.js +29 -0
  14. package/dist/chunk-CQDQFIWT.js +24 -0
  15. package/dist/chunk-DE24BV2C.js +61 -0
  16. package/dist/chunk-FETTWCK3.js +101 -0
  17. package/dist/chunk-I4PO6FQP.js +36 -0
  18. package/dist/chunk-IJVWYT5G.js +8 -0
  19. package/dist/chunk-JSGRNWSB.js +233 -0
  20. package/dist/chunk-K7MPHJNG.js +66 -0
  21. package/dist/chunk-L7XFJWMY.js +93 -0
  22. package/dist/chunk-LAMQKQU3.js +56 -0
  23. package/dist/chunk-LJYASIJC.js +117 -0
  24. package/dist/chunk-LWTUQB7O.js +34 -0
  25. package/dist/chunk-LZHLWOXG.js +94 -0
  26. package/dist/chunk-NBCCPGA4.js +17 -0
  27. package/dist/chunk-O27TAUAS.js +76 -0
  28. package/dist/chunk-QR7BKTM6.js +131 -0
  29. package/dist/chunk-RUVXOYBL.js +19 -0
  30. package/dist/chunk-SVQELXFK.js +131 -0
  31. package/dist/chunk-W4GDCWKZ.js +86 -0
  32. package/dist/chunk-WOR7J4KZ.js +37 -0
  33. package/dist/chunk-WVEK4LFA.js +137 -0
  34. package/dist/chunk-WVJNZRKF.js +741 -0
  35. package/dist/chunk-X6BI4STY.js +23 -0
  36. package/dist/chunk-XTEEADPV.js +288 -0
  37. package/dist/chunk-Y4RJ7WS4.js +38 -0
  38. package/dist/components/Button.cjs +1645 -0
  39. package/dist/components/Button.d.cts +62 -0
  40. package/dist/components/Button.d.ts +62 -0
  41. package/dist/components/Button.js +21 -0
  42. package/dist/components/ButtonRow.cjs +1759 -0
  43. package/dist/components/ButtonRow.d.cts +24 -0
  44. package/dist/components/ButtonRow.d.ts +24 -0
  45. package/dist/components/ButtonRow.js +21 -0
  46. package/dist/components/Collapsible.cjs +1433 -0
  47. package/dist/components/Collapsible.d.cts +35 -0
  48. package/dist/components/Collapsible.d.ts +35 -0
  49. package/dist/components/Collapsible.js +21 -0
  50. package/dist/components/CommandKey.cjs +72 -0
  51. package/dist/components/CommandKey.d.cts +12 -0
  52. package/dist/components/CommandKey.d.ts +12 -0
  53. package/dist/components/CommandKey.js +8 -0
  54. package/dist/components/CopyToClipboardButton.cjs +1346 -0
  55. package/dist/components/CopyToClipboardButton.d.cts +18 -0
  56. package/dist/components/CopyToClipboardButton.d.ts +18 -0
  57. package/dist/components/CopyToClipboardButton.js +15 -0
  58. package/dist/components/CurrencyAmount.cjs +1355 -0
  59. package/dist/components/CurrencyAmount.d.cts +24 -0
  60. package/dist/components/CurrencyAmount.d.ts +24 -0
  61. package/dist/components/CurrencyAmount.js +16 -0
  62. package/dist/components/Icon.cjs +1265 -0
  63. package/dist/components/Icon.d.cts +29 -0
  64. package/dist/components/Icon.d.ts +29 -0
  65. package/dist/components/Icon.js +15 -0
  66. package/dist/components/LightboxImage.cjs +186 -0
  67. package/dist/components/LightboxImage.d.cts +8 -0
  68. package/dist/components/LightboxImage.d.ts +8 -0
  69. package/dist/components/LightboxImage.js +9 -0
  70. package/dist/components/LightsparkProvider.cjs +1332 -0
  71. package/dist/components/LightsparkProvider.d.cts +8 -0
  72. package/dist/components/LightsparkProvider.d.ts +8 -0
  73. package/dist/components/LightsparkProvider.js +14 -0
  74. package/dist/components/Loading.cjs +1317 -0
  75. package/dist/components/Loading.d.cts +27 -0
  76. package/dist/components/Loading.d.ts +27 -0
  77. package/dist/components/Loading.js +16 -0
  78. package/dist/components/Modal.cjs +1998 -0
  79. package/dist/components/Modal.d.cts +35 -0
  80. package/dist/components/Modal.d.ts +35 -0
  81. package/dist/components/Modal.js +21 -0
  82. package/dist/components/SecretContainer.cjs +1379 -0
  83. package/dist/components/SecretContainer.d.cts +10 -0
  84. package/dist/components/SecretContainer.d.ts +10 -0
  85. package/dist/components/SecretContainer.js +16 -0
  86. package/dist/components/TextIconAligner.cjs +1309 -0
  87. package/dist/components/TextIconAligner.d.cts +23 -0
  88. package/dist/components/TextIconAligner.d.ts +23 -0
  89. package/dist/components/TextIconAligner.js +14 -0
  90. package/dist/components/UnstyledButton.cjs +1190 -0
  91. package/dist/components/UnstyledButton.d.cts +10 -0
  92. package/dist/components/UnstyledButton.d.ts +10 -0
  93. package/dist/components/UnstyledButton.js +12 -0
  94. package/dist/components/documentation/AnchorLinkHeader.cjs +1387 -0
  95. package/dist/components/documentation/AnchorLinkHeader.d.cts +8 -0
  96. package/dist/components/documentation/AnchorLinkHeader.d.ts +8 -0
  97. package/dist/components/documentation/AnchorLinkHeader.js +16 -0
  98. package/dist/components/documentation/index.cjs +1388 -0
  99. package/dist/components/documentation/index.d.cts +5 -0
  100. package/dist/components/documentation/index.d.ts +5 -0
  101. package/dist/components/documentation/index.js +15 -0
  102. package/dist/components/index.cjs +2720 -0
  103. package/dist/components/index.d.cts +23 -0
  104. package/dist/components/index.d.ts +23 -0
  105. package/dist/components/index.js +82 -0
  106. package/dist/hooks/useLiveRef.cjs +41 -0
  107. package/dist/hooks/useLiveRef.d.cts +8 -0
  108. package/dist/hooks/useLiveRef.d.ts +8 -0
  109. package/dist/hooks/useLiveRef.js +7 -0
  110. package/dist/icons/AI.cjs +49 -0
  111. package/dist/icons/AI.d.cts +5 -0
  112. package/dist/icons/AI.d.ts +5 -0
  113. package/dist/icons/AI.js +30 -0
  114. package/dist/icons/AnchorLink.cjs +48 -0
  115. package/dist/icons/AnchorLink.d.cts +5 -0
  116. package/dist/icons/AnchorLink.d.ts +5 -0
  117. package/dist/icons/AnchorLink.js +29 -0
  118. package/dist/icons/AppIcon.cjs +88 -0
  119. package/dist/icons/AppIcon.d.cts +5 -0
  120. package/dist/icons/AppIcon.d.ts +5 -0
  121. package/dist/icons/AppIcon.js +69 -0
  122. package/dist/icons/ArrowCircleTier1.cjs +48 -0
  123. package/dist/icons/ArrowCircleTier1.d.cts +5 -0
  124. package/dist/icons/ArrowCircleTier1.d.ts +5 -0
  125. package/dist/icons/ArrowCircleTier1.js +29 -0
  126. package/dist/icons/ArrowCircleTier2.cjs +48 -0
  127. package/dist/icons/ArrowCircleTier2.d.cts +5 -0
  128. package/dist/icons/ArrowCircleTier2.d.ts +5 -0
  129. package/dist/icons/ArrowCircleTier2.js +29 -0
  130. package/dist/icons/ArrowCircleTier3.cjs +48 -0
  131. package/dist/icons/ArrowCircleTier3.d.cts +5 -0
  132. package/dist/icons/ArrowCircleTier3.d.ts +5 -0
  133. package/dist/icons/ArrowCircleTier3.js +29 -0
  134. package/dist/icons/ArrowDown.cjs +53 -0
  135. package/dist/icons/ArrowDown.d.cts +5 -0
  136. package/dist/icons/ArrowDown.d.ts +5 -0
  137. package/dist/icons/ArrowDown.js +30 -0
  138. package/dist/icons/ArrowUp.cjs +53 -0
  139. package/dist/icons/ArrowUp.d.cts +5 -0
  140. package/dist/icons/ArrowUp.d.ts +5 -0
  141. package/dist/icons/ArrowUp.js +30 -0
  142. package/dist/icons/Bell.cjs +57 -0
  143. package/dist/icons/Bell.d.cts +8 -0
  144. package/dist/icons/Bell.d.ts +8 -0
  145. package/dist/icons/Bell.js +38 -0
  146. package/dist/icons/BellOn.cjs +67 -0
  147. package/dist/icons/BellOn.d.cts +8 -0
  148. package/dist/icons/BellOn.d.ts +8 -0
  149. package/dist/icons/BellOn.js +48 -0
  150. package/dist/icons/BitcoinB.cjs +46 -0
  151. package/dist/icons/BitcoinB.d.cts +5 -0
  152. package/dist/icons/BitcoinB.d.ts +5 -0
  153. package/dist/icons/BitcoinB.js +27 -0
  154. package/dist/icons/BitcoinBOnRoundedSquare.cjs +48 -0
  155. package/dist/icons/BitcoinBOnRoundedSquare.d.cts +5 -0
  156. package/dist/icons/BitcoinBOnRoundedSquare.d.ts +5 -0
  157. package/dist/icons/BitcoinBOnRoundedSquare.js +29 -0
  158. package/dist/icons/Bolt.cjs +116 -0
  159. package/dist/icons/Bolt.d.cts +9 -0
  160. package/dist/icons/Bolt.d.ts +9 -0
  161. package/dist/icons/Bolt.js +97 -0
  162. package/dist/icons/Camera.cjs +55 -0
  163. package/dist/icons/Camera.d.cts +5 -0
  164. package/dist/icons/Camera.d.ts +5 -0
  165. package/dist/icons/Camera.js +36 -0
  166. package/dist/icons/CameraCapture.cjs +97 -0
  167. package/dist/icons/CameraCapture.d.cts +5 -0
  168. package/dist/icons/CameraCapture.d.ts +5 -0
  169. package/dist/icons/CameraCapture.js +78 -0
  170. package/dist/icons/Channel.cjs +67 -0
  171. package/dist/icons/Channel.d.cts +5 -0
  172. package/dist/icons/Channel.d.ts +5 -0
  173. package/dist/icons/Channel.js +48 -0
  174. package/dist/icons/ChannelBalance.cjs +58 -0
  175. package/dist/icons/ChannelBalance.d.cts +5 -0
  176. package/dist/icons/ChannelBalance.d.ts +5 -0
  177. package/dist/icons/ChannelBalance.js +39 -0
  178. package/dist/icons/ChannelOpen.cjs +64 -0
  179. package/dist/icons/ChannelOpen.d.cts +5 -0
  180. package/dist/icons/ChannelOpen.d.ts +5 -0
  181. package/dist/icons/ChannelOpen.js +45 -0
  182. package/dist/icons/CheckboxIcon.cjs +81 -0
  183. package/dist/icons/CheckboxIcon.d.cts +8 -0
  184. package/dist/icons/CheckboxIcon.d.ts +8 -0
  185. package/dist/icons/CheckboxIcon.js +62 -0
  186. package/dist/icons/Checkmark.cjs +47 -0
  187. package/dist/icons/Checkmark.d.cts +5 -0
  188. package/dist/icons/Checkmark.d.ts +5 -0
  189. package/dist/icons/Checkmark.js +28 -0
  190. package/dist/icons/CheckmarkCircleGreen.cjs +49 -0
  191. package/dist/icons/CheckmarkCircleGreen.d.cts +5 -0
  192. package/dist/icons/CheckmarkCircleGreen.d.ts +5 -0
  193. package/dist/icons/CheckmarkCircleGreen.js +30 -0
  194. package/dist/icons/CheckmarkCircleTier1.cjs +49 -0
  195. package/dist/icons/CheckmarkCircleTier1.d.cts +5 -0
  196. package/dist/icons/CheckmarkCircleTier1.d.ts +5 -0
  197. package/dist/icons/CheckmarkCircleTier1.js +30 -0
  198. package/dist/icons/CheckmarkCircleTier2.cjs +49 -0
  199. package/dist/icons/CheckmarkCircleTier2.d.cts +5 -0
  200. package/dist/icons/CheckmarkCircleTier2.d.ts +5 -0
  201. package/dist/icons/CheckmarkCircleTier2.js +30 -0
  202. package/dist/icons/CheckmarkCircleTier3.cjs +49 -0
  203. package/dist/icons/CheckmarkCircleTier3.d.cts +5 -0
  204. package/dist/icons/CheckmarkCircleTier3.d.ts +5 -0
  205. package/dist/icons/CheckmarkCircleTier3.js +30 -0
  206. package/dist/icons/Chevron.cjs +45 -0
  207. package/dist/icons/Chevron.d.cts +5 -0
  208. package/dist/icons/Chevron.d.ts +5 -0
  209. package/dist/icons/Chevron.js +26 -0
  210. package/dist/icons/CircleCheck.cjs +54 -0
  211. package/dist/icons/CircleCheck.d.cts +5 -0
  212. package/dist/icons/CircleCheck.d.ts +5 -0
  213. package/dist/icons/CircleCheck.js +31 -0
  214. package/dist/icons/CircleCheckOutline.cjs +51 -0
  215. package/dist/icons/CircleCheckOutline.d.cts +5 -0
  216. package/dist/icons/CircleCheckOutline.d.ts +5 -0
  217. package/dist/icons/CircleCheckOutline.js +28 -0
  218. package/dist/icons/CirclePlus.cjs +43 -0
  219. package/dist/icons/CirclePlus.d.cts +5 -0
  220. package/dist/icons/CirclePlus.d.ts +5 -0
  221. package/dist/icons/CirclePlus.js +20 -0
  222. package/dist/icons/Clock.cjs +53 -0
  223. package/dist/icons/Clock.d.cts +5 -0
  224. package/dist/icons/Clock.d.ts +5 -0
  225. package/dist/icons/Clock.js +30 -0
  226. package/dist/icons/Close.cjs +47 -0
  227. package/dist/icons/Close.d.cts +5 -0
  228. package/dist/icons/Close.d.ts +5 -0
  229. package/dist/icons/Close.js +28 -0
  230. package/dist/icons/Code.cjs +48 -0
  231. package/dist/icons/Code.d.cts +5 -0
  232. package/dist/icons/Code.d.ts +5 -0
  233. package/dist/icons/Code.js +29 -0
  234. package/dist/icons/Copy.cjs +45 -0
  235. package/dist/icons/Copy.d.cts +5 -0
  236. package/dist/icons/Copy.d.ts +5 -0
  237. package/dist/icons/Copy.js +26 -0
  238. package/dist/icons/CreditCard.cjs +52 -0
  239. package/dist/icons/CreditCard.d.cts +5 -0
  240. package/dist/icons/CreditCard.d.ts +5 -0
  241. package/dist/icons/CreditCard.js +33 -0
  242. package/dist/icons/DeleteIcon.cjs +63 -0
  243. package/dist/icons/DeleteIcon.d.cts +5 -0
  244. package/dist/icons/DeleteIcon.d.ts +5 -0
  245. package/dist/icons/DeleteIcon.js +44 -0
  246. package/dist/icons/Dollar.cjs +48 -0
  247. package/dist/icons/Dollar.d.cts +5 -0
  248. package/dist/icons/Dollar.d.ts +5 -0
  249. package/dist/icons/Dollar.js +29 -0
  250. package/dist/icons/Dots.cjs +38 -0
  251. package/dist/icons/Dots.d.cts +5 -0
  252. package/dist/icons/Dots.d.ts +5 -0
  253. package/dist/icons/Dots.js +19 -0
  254. package/dist/icons/Down.cjs +47 -0
  255. package/dist/icons/Down.d.cts +5 -0
  256. package/dist/icons/Down.d.ts +5 -0
  257. package/dist/icons/Down.js +28 -0
  258. package/dist/icons/Download.cjs +45 -0
  259. package/dist/icons/Download.d.cts +5 -0
  260. package/dist/icons/Download.d.ts +5 -0
  261. package/dist/icons/Download.js +26 -0
  262. package/dist/icons/ExclamationPoint.cjs +67 -0
  263. package/dist/icons/ExclamationPoint.d.cts +5 -0
  264. package/dist/icons/ExclamationPoint.d.ts +5 -0
  265. package/dist/icons/ExclamationPoint.js +48 -0
  266. package/dist/icons/Exit.cjs +46 -0
  267. package/dist/icons/Exit.d.cts +5 -0
  268. package/dist/icons/Exit.d.ts +5 -0
  269. package/dist/icons/Exit.js +27 -0
  270. package/dist/icons/Explorer.cjs +43 -0
  271. package/dist/icons/Explorer.d.cts +5 -0
  272. package/dist/icons/Explorer.d.ts +5 -0
  273. package/dist/icons/Explorer.js +24 -0
  274. package/dist/icons/Eye.cjs +54 -0
  275. package/dist/icons/Eye.d.cts +5 -0
  276. package/dist/icons/Eye.d.ts +5 -0
  277. package/dist/icons/Eye.js +35 -0
  278. package/dist/icons/EyeDropper.cjs +46 -0
  279. package/dist/icons/EyeDropper.d.cts +5 -0
  280. package/dist/icons/EyeDropper.d.ts +5 -0
  281. package/dist/icons/EyeDropper.js +27 -0
  282. package/dist/icons/FlutterTwoTone.cjs +70 -0
  283. package/dist/icons/FlutterTwoTone.d.cts +5 -0
  284. package/dist/icons/FlutterTwoTone.d.ts +5 -0
  285. package/dist/icons/FlutterTwoTone.js +51 -0
  286. package/dist/icons/Gear.cjs +54 -0
  287. package/dist/icons/Gear.d.cts +5 -0
  288. package/dist/icons/Gear.d.ts +5 -0
  289. package/dist/icons/Gear.js +35 -0
  290. package/dist/icons/Github.cjs +45 -0
  291. package/dist/icons/Github.d.cts +5 -0
  292. package/dist/icons/Github.d.ts +5 -0
  293. package/dist/icons/Github.js +26 -0
  294. package/dist/icons/GoTwoTone.cjs +86 -0
  295. package/dist/icons/GoTwoTone.d.cts +5 -0
  296. package/dist/icons/GoTwoTone.d.ts +5 -0
  297. package/dist/icons/GoTwoTone.js +67 -0
  298. package/dist/icons/GraphQLTwoTone.cjs +145 -0
  299. package/dist/icons/GraphQLTwoTone.d.cts +5 -0
  300. package/dist/icons/GraphQLTwoTone.d.ts +5 -0
  301. package/dist/icons/GraphQLTwoTone.js +126 -0
  302. package/dist/icons/HeartOutline.cjs +70 -0
  303. package/dist/icons/HeartOutline.d.cts +8 -0
  304. package/dist/icons/HeartOutline.d.ts +8 -0
  305. package/dist/icons/HeartOutline.js +51 -0
  306. package/dist/icons/HorizontalArrows.cjs +60 -0
  307. package/dist/icons/HorizontalArrows.d.cts +5 -0
  308. package/dist/icons/HorizontalArrows.d.ts +5 -0
  309. package/dist/icons/HorizontalArrows.js +41 -0
  310. package/dist/icons/Info.cjs +68 -0
  311. package/dist/icons/Info.d.cts +5 -0
  312. package/dist/icons/Info.d.ts +5 -0
  313. package/dist/icons/Info.js +49 -0
  314. package/dist/icons/InvoiceNew.cjs +46 -0
  315. package/dist/icons/InvoiceNew.d.cts +5 -0
  316. package/dist/icons/InvoiceNew.d.ts +5 -0
  317. package/dist/icons/InvoiceNew.js +27 -0
  318. package/dist/icons/JavaScriptTwoTone.cjs +83 -0
  319. package/dist/icons/JavaScriptTwoTone.d.cts +5 -0
  320. package/dist/icons/JavaScriptTwoTone.d.ts +5 -0
  321. package/dist/icons/JavaScriptTwoTone.js +64 -0
  322. package/dist/icons/JavaTwoTone.cjs +48 -0
  323. package/dist/icons/JavaTwoTone.d.cts +5 -0
  324. package/dist/icons/JavaTwoTone.d.ts +5 -0
  325. package/dist/icons/JavaTwoTone.js +29 -0
  326. package/dist/icons/KotlinTwoTone.cjs +62 -0
  327. package/dist/icons/KotlinTwoTone.d.cts +5 -0
  328. package/dist/icons/KotlinTwoTone.d.ts +5 -0
  329. package/dist/icons/KotlinTwoTone.js +43 -0
  330. package/dist/icons/LeftArrow.cjs +46 -0
  331. package/dist/icons/LeftArrow.d.cts +5 -0
  332. package/dist/icons/LeftArrow.d.ts +5 -0
  333. package/dist/icons/LeftArrow.js +27 -0
  334. package/dist/icons/LightningOnRoundedSquare.cjs +46 -0
  335. package/dist/icons/LightningOnRoundedSquare.d.cts +5 -0
  336. package/dist/icons/LightningOnRoundedSquare.d.ts +5 -0
  337. package/dist/icons/LightningOnRoundedSquare.js +27 -0
  338. package/dist/icons/LinkIcon.cjs +58 -0
  339. package/dist/icons/LinkIcon.d.cts +5 -0
  340. package/dist/icons/LinkIcon.d.ts +5 -0
  341. package/dist/icons/LinkIcon.js +39 -0
  342. package/dist/icons/LoadingSpinner.cjs +202 -0
  343. package/dist/icons/LoadingSpinner.d.cts +5 -0
  344. package/dist/icons/LoadingSpinner.d.ts +5 -0
  345. package/dist/icons/LoadingSpinner.js +183 -0
  346. package/dist/icons/Lock.cjs +56 -0
  347. package/dist/icons/Lock.d.cts +5 -0
  348. package/dist/icons/Lock.d.ts +5 -0
  349. package/dist/icons/Lock.js +37 -0
  350. package/dist/icons/Logo.cjs +78 -0
  351. package/dist/icons/Logo.d.cts +5 -0
  352. package/dist/icons/Logo.d.ts +5 -0
  353. package/dist/icons/Logo.js +33 -0
  354. package/dist/icons/LogoBolt.cjs +125 -0
  355. package/dist/icons/LogoBolt.d.cts +5 -0
  356. package/dist/icons/LogoBolt.d.ts +5 -0
  357. package/dist/icons/LogoBolt.js +106 -0
  358. package/dist/icons/LogoOnCircle.cjs +56 -0
  359. package/dist/icons/LogoOnCircle.d.cts +5 -0
  360. package/dist/icons/LogoOnCircle.d.ts +5 -0
  361. package/dist/icons/LogoOnCircle.js +37 -0
  362. package/dist/icons/MagicWand.cjs +75 -0
  363. package/dist/icons/MagicWand.d.cts +5 -0
  364. package/dist/icons/MagicWand.d.ts +5 -0
  365. package/dist/icons/MagicWand.js +56 -0
  366. package/dist/icons/Mail.cjs +47 -0
  367. package/dist/icons/Mail.d.cts +5 -0
  368. package/dist/icons/Mail.d.ts +5 -0
  369. package/dist/icons/Mail.js +28 -0
  370. package/dist/icons/Monitor.cjs +71 -0
  371. package/dist/icons/Monitor.d.cts +5 -0
  372. package/dist/icons/Monitor.d.ts +5 -0
  373. package/dist/icons/Monitor.js +52 -0
  374. package/dist/icons/NodeAdd.cjs +44 -0
  375. package/dist/icons/NodeAdd.d.cts +5 -0
  376. package/dist/icons/NodeAdd.d.ts +5 -0
  377. package/dist/icons/NodeAdd.js +25 -0
  378. package/dist/icons/NotEye.cjs +56 -0
  379. package/dist/icons/NotEye.d.cts +5 -0
  380. package/dist/icons/NotEye.d.ts +5 -0
  381. package/dist/icons/NotEye.js +37 -0
  382. package/dist/icons/NoteLine.cjs +44 -0
  383. package/dist/icons/NoteLine.d.cts +5 -0
  384. package/dist/icons/NoteLine.d.ts +5 -0
  385. package/dist/icons/NoteLine.js +25 -0
  386. package/dist/icons/PaperPlane.cjs +45 -0
  387. package/dist/icons/PaperPlane.d.cts +5 -0
  388. package/dist/icons/PaperPlane.d.ts +5 -0
  389. package/dist/icons/PaperPlane.js +26 -0
  390. package/dist/icons/Pencil.cjs +46 -0
  391. package/dist/icons/Pencil.d.cts +8 -0
  392. package/dist/icons/Pencil.d.ts +8 -0
  393. package/dist/icons/Pencil.js +27 -0
  394. package/dist/icons/Person.cjs +48 -0
  395. package/dist/icons/Person.d.cts +5 -0
  396. package/dist/icons/Person.d.ts +5 -0
  397. package/dist/icons/Person.js +29 -0
  398. package/dist/icons/Phone.cjs +57 -0
  399. package/dist/icons/Phone.d.cts +5 -0
  400. package/dist/icons/Phone.d.ts +5 -0
  401. package/dist/icons/Phone.js +38 -0
  402. package/dist/icons/PiggyBank.cjs +72 -0
  403. package/dist/icons/PiggyBank.d.cts +5 -0
  404. package/dist/icons/PiggyBank.d.ts +5 -0
  405. package/dist/icons/PiggyBank.js +49 -0
  406. package/dist/icons/Plus.cjs +74 -0
  407. package/dist/icons/Plus.d.cts +5 -0
  408. package/dist/icons/Plus.d.ts +5 -0
  409. package/dist/icons/Plus.js +55 -0
  410. package/dist/icons/PythonTwoTone.cjs +54 -0
  411. package/dist/icons/PythonTwoTone.d.cts +5 -0
  412. package/dist/icons/PythonTwoTone.d.ts +5 -0
  413. package/dist/icons/PythonTwoTone.js +35 -0
  414. package/dist/icons/QRCodeIcon.cjs +125 -0
  415. package/dist/icons/QRCodeIcon.d.cts +5 -0
  416. package/dist/icons/QRCodeIcon.d.ts +5 -0
  417. package/dist/icons/QRCodeIcon.js +106 -0
  418. package/dist/icons/ReactTwoTone.cjs +80 -0
  419. package/dist/icons/ReactTwoTone.d.cts +5 -0
  420. package/dist/icons/ReactTwoTone.d.ts +5 -0
  421. package/dist/icons/ReactTwoTone.js +61 -0
  422. package/dist/icons/Receive.cjs +47 -0
  423. package/dist/icons/Receive.d.cts +6 -0
  424. package/dist/icons/Receive.d.ts +6 -0
  425. package/dist/icons/Receive.js +28 -0
  426. package/dist/icons/Recycling.cjs +46 -0
  427. package/dist/icons/Recycling.d.cts +5 -0
  428. package/dist/icons/Recycling.d.ts +5 -0
  429. package/dist/icons/Recycling.js +27 -0
  430. package/dist/icons/Restart.cjs +46 -0
  431. package/dist/icons/Restart.d.cts +5 -0
  432. package/dist/icons/Restart.d.ts +5 -0
  433. package/dist/icons/Restart.js +27 -0
  434. package/dist/icons/RightArrow.cjs +46 -0
  435. package/dist/icons/RightArrow.d.cts +5 -0
  436. package/dist/icons/RightArrow.d.ts +5 -0
  437. package/dist/icons/RightArrow.js +27 -0
  438. package/dist/icons/Roadmap.cjs +46 -0
  439. package/dist/icons/Roadmap.d.cts +5 -0
  440. package/dist/icons/Roadmap.d.ts +5 -0
  441. package/dist/icons/Roadmap.js +27 -0
  442. package/dist/icons/Route.cjs +59 -0
  443. package/dist/icons/Route.d.cts +6 -0
  444. package/dist/icons/Route.d.ts +6 -0
  445. package/dist/icons/Route.js +40 -0
  446. package/dist/icons/RustTwoTone.cjs +60 -0
  447. package/dist/icons/RustTwoTone.d.cts +5 -0
  448. package/dist/icons/RustTwoTone.d.ts +5 -0
  449. package/dist/icons/RustTwoTone.js +41 -0
  450. package/dist/icons/Satoshi.cjs +59 -0
  451. package/dist/icons/Satoshi.d.cts +5 -0
  452. package/dist/icons/Satoshi.d.ts +5 -0
  453. package/dist/icons/Satoshi.js +40 -0
  454. package/dist/icons/SatoshiRounded.cjs +85 -0
  455. package/dist/icons/SatoshiRounded.d.cts +5 -0
  456. package/dist/icons/SatoshiRounded.d.ts +5 -0
  457. package/dist/icons/SatoshiRounded.js +66 -0
  458. package/dist/icons/Search.cjs +47 -0
  459. package/dist/icons/Search.d.cts +5 -0
  460. package/dist/icons/Search.d.ts +5 -0
  461. package/dist/icons/Search.js +28 -0
  462. package/dist/icons/SecurityKey.cjs +71 -0
  463. package/dist/icons/SecurityKey.d.cts +5 -0
  464. package/dist/icons/SecurityKey.d.ts +5 -0
  465. package/dist/icons/SecurityKey.js +52 -0
  466. package/dist/icons/Selector.cjs +61 -0
  467. package/dist/icons/Selector.d.cts +5 -0
  468. package/dist/icons/Selector.d.ts +5 -0
  469. package/dist/icons/Selector.js +42 -0
  470. package/dist/icons/SemiCircleOverlap.cjs +58 -0
  471. package/dist/icons/SemiCircleOverlap.d.cts +5 -0
  472. package/dist/icons/SemiCircleOverlap.d.ts +5 -0
  473. package/dist/icons/SemiCircleOverlap.js +39 -0
  474. package/dist/icons/Send.cjs +47 -0
  475. package/dist/icons/Send.d.cts +6 -0
  476. package/dist/icons/Send.d.ts +6 -0
  477. package/dist/icons/Send.js +28 -0
  478. package/dist/icons/Sidebar.cjs +48 -0
  479. package/dist/icons/Sidebar.d.cts +5 -0
  480. package/dist/icons/Sidebar.d.ts +5 -0
  481. package/dist/icons/Sidebar.js +29 -0
  482. package/dist/icons/StackedLines.cjs +52 -0
  483. package/dist/icons/StackedLines.d.cts +5 -0
  484. package/dist/icons/StackedLines.d.ts +5 -0
  485. package/dist/icons/StackedLines.js +29 -0
  486. package/dist/icons/SwiftTwoTone.cjs +59 -0
  487. package/dist/icons/SwiftTwoTone.d.cts +5 -0
  488. package/dist/icons/SwiftTwoTone.d.ts +5 -0
  489. package/dist/icons/SwiftTwoTone.js +40 -0
  490. package/dist/icons/Team.cjs +46 -0
  491. package/dist/icons/Team.d.cts +5 -0
  492. package/dist/icons/Team.d.ts +5 -0
  493. package/dist/icons/Team.js +27 -0
  494. package/dist/icons/Terminal.cjs +49 -0
  495. package/dist/icons/Terminal.d.cts +5 -0
  496. package/dist/icons/Terminal.d.ts +5 -0
  497. package/dist/icons/Terminal.js +30 -0
  498. package/dist/icons/Trash.cjs +49 -0
  499. package/dist/icons/Trash.d.cts +5 -0
  500. package/dist/icons/Trash.d.ts +5 -0
  501. package/dist/icons/Trash.js +30 -0
  502. package/dist/icons/TrashOld.cjs +53 -0
  503. package/dist/icons/TrashOld.d.cts +8 -0
  504. package/dist/icons/TrashOld.d.ts +8 -0
  505. package/dist/icons/TrashOld.js +34 -0
  506. package/dist/icons/TwoArrowsDown.cjs +53 -0
  507. package/dist/icons/TwoArrowsDown.d.cts +5 -0
  508. package/dist/icons/TwoArrowsDown.d.ts +5 -0
  509. package/dist/icons/TwoArrowsDown.js +30 -0
  510. package/dist/icons/TwoArrowsUp.cjs +53 -0
  511. package/dist/icons/TwoArrowsUp.d.cts +5 -0
  512. package/dist/icons/TwoArrowsUp.d.ts +5 -0
  513. package/dist/icons/TwoArrowsUp.js +30 -0
  514. package/dist/icons/Upload.cjs +45 -0
  515. package/dist/icons/Upload.d.cts +5 -0
  516. package/dist/icons/Upload.d.ts +5 -0
  517. package/dist/icons/Upload.js +26 -0
  518. package/dist/icons/VerticalArrows.cjs +59 -0
  519. package/dist/icons/VerticalArrows.d.cts +8 -0
  520. package/dist/icons/VerticalArrows.d.ts +8 -0
  521. package/dist/icons/VerticalArrows.js +40 -0
  522. package/dist/icons/ViewAll.cjs +45 -0
  523. package/dist/icons/ViewAll.d.cts +5 -0
  524. package/dist/icons/ViewAll.d.ts +5 -0
  525. package/dist/icons/ViewAll.js +26 -0
  526. package/dist/icons/WalletSDKIcon.cjs +59 -0
  527. package/dist/icons/WalletSDKIcon.d.cts +5 -0
  528. package/dist/icons/WalletSDKIcon.d.ts +5 -0
  529. package/dist/icons/WalletSDKIcon.js +40 -0
  530. package/dist/icons/WarningIcon.cjs +48 -0
  531. package/dist/icons/WarningIcon.d.cts +5 -0
  532. package/dist/icons/WarningIcon.d.ts +5 -0
  533. package/dist/icons/WarningIcon.js +29 -0
  534. package/dist/icons/WarningSign.cjs +57 -0
  535. package/dist/icons/WarningSign.d.cts +5 -0
  536. package/dist/icons/WarningSign.d.ts +5 -0
  537. package/dist/icons/WarningSign.js +38 -0
  538. package/dist/icons/index.cjs +1267 -0
  539. package/dist/icons/index.d.cts +5 -0
  540. package/dist/icons/index.d.ts +5 -0
  541. package/dist/icons/index.js +15 -0
  542. package/dist/index.cjs +1 -0
  543. package/dist/index.d.cts +2 -0
  544. package/dist/index.d.ts +2 -0
  545. package/dist/index.js +0 -0
  546. package/dist/router.cjs +1082 -0
  547. package/dist/router.d.cts +39 -0
  548. package/dist/router.d.ts +39 -0
  549. package/dist/router.js +24 -0
  550. package/dist/static/fonts/LightsparkIcons/LightsparkIcons.eot +0 -0
  551. package/dist/static/fonts/LightsparkIcons/LightsparkIcons.svg +14 -0
  552. package/dist/static/fonts/LightsparkIcons/LightsparkIcons.ttf +0 -0
  553. package/dist/static/fonts/LightsparkIcons/LightsparkIcons.woff +0 -0
  554. package/dist/static/fonts/LightsparkIcons/README.md +1 -0
  555. package/dist/static/fonts/LightsparkIcons/glyph-svg-src/btc.svg +3 -0
  556. package/dist/static/fonts/LightsparkIcons/glyph-svg-src/margin-btc.svg +3 -0
  557. package/dist/static/fonts/LightsparkIcons/glyph-svg-src/margin-sats.svg +7 -0
  558. package/dist/static/fonts/LightsparkIcons/glyph-svg-src/sats.svg +7 -0
  559. package/dist/static/fonts.css +14 -0
  560. package/dist/static/images/Checkmark.svg +3 -0
  561. package/dist/static/images/FramedLogoOnCircle.svg +12 -0
  562. package/dist/static/images/Logo.svg +55 -0
  563. package/dist/static/images/RainLogo.png +0 -0
  564. package/dist/static/images/RotatedElipseGradient-2x.png +0 -0
  565. package/dist/static/images/RotatedElipseGradient.png +0 -0
  566. package/dist/static/images/country-flags/us.svg +10 -0
  567. package/dist/styles/breakpoints.cjs +263 -0
  568. package/dist/styles/breakpoints.d.cts +88 -0
  569. package/dist/styles/breakpoints.d.ts +88 -0
  570. package/dist/styles/breakpoints.js +19 -0
  571. package/dist/styles/colors.cjs +1177 -0
  572. package/dist/styles/colors.d.cts +135 -0
  573. package/dist/styles/colors.d.ts +135 -0
  574. package/dist/styles/colors.js +41 -0
  575. package/dist/styles/common.cjs +1248 -0
  576. package/dist/styles/common.d.cts +48 -0
  577. package/dist/styles/common.d.ts +48 -0
  578. package/dist/styles/common.js +59 -0
  579. package/dist/styles/constants.cjs +32 -0
  580. package/dist/styles/constants.d.cts +5 -0
  581. package/dist/styles/constants.d.ts +5 -0
  582. package/dist/styles/constants.js +7 -0
  583. package/dist/styles/fields.cjs +1361 -0
  584. package/dist/styles/fields.d.cts +67 -0
  585. package/dist/styles/fields.d.ts +67 -0
  586. package/dist/styles/fields.js +192 -0
  587. package/dist/styles/fonts/typography/Article.cjs +1388 -0
  588. package/dist/styles/fonts/typography/Article.d.cts +10 -0
  589. package/dist/styles/fonts/typography/Article.d.ts +10 -0
  590. package/dist/styles/fonts/typography/Article.js +17 -0
  591. package/dist/styles/fonts/typography/Body.cjs +1012 -0
  592. package/dist/styles/fonts/typography/Body.d.cts +23 -0
  593. package/dist/styles/fonts/typography/Body.d.ts +23 -0
  594. package/dist/styles/fonts/typography/Body.js +13 -0
  595. package/dist/styles/fonts/typography/Code.cjs +68 -0
  596. package/dist/styles/fonts/typography/Code.d.cts +10 -0
  597. package/dist/styles/fonts/typography/Code.d.ts +10 -0
  598. package/dist/styles/fonts/typography/Code.js +9 -0
  599. package/dist/styles/fonts/typography/Display.cjs +1022 -0
  600. package/dist/styles/fonts/typography/Display.d.cts +15 -0
  601. package/dist/styles/fonts/typography/Display.d.ts +15 -0
  602. package/dist/styles/fonts/typography/Display.js +15 -0
  603. package/dist/styles/fonts/typography/Headline.cjs +1076 -0
  604. package/dist/styles/fonts/typography/Headline.d.cts +18 -0
  605. package/dist/styles/fonts/typography/Headline.d.ts +18 -0
  606. package/dist/styles/fonts/typography/Headline.js +19 -0
  607. package/dist/styles/fonts/typography/Label.cjs +1012 -0
  608. package/dist/styles/fonts/typography/Label.d.cts +18 -0
  609. package/dist/styles/fonts/typography/Label.d.ts +18 -0
  610. package/dist/styles/fonts/typography/Label.js +13 -0
  611. package/dist/styles/fonts/typography/LabelStrong.cjs +1023 -0
  612. package/dist/styles/fonts/typography/LabelStrong.d.cts +18 -0
  613. package/dist/styles/fonts/typography/LabelStrong.d.ts +18 -0
  614. package/dist/styles/fonts/typography/LabelStrong.js +13 -0
  615. package/dist/styles/fonts/typography/Title.cjs +1011 -0
  616. package/dist/styles/fonts/typography/Title.d.cts +18 -0
  617. package/dist/styles/fonts/typography/Title.d.ts +18 -0
  618. package/dist/styles/fonts/typography/Title.js +13 -0
  619. package/dist/styles/fonts/typography/index.cjs +1513 -0
  620. package/dist/styles/fonts/typography/index.d.cts +13 -0
  621. package/dist/styles/fonts/typography/index.d.ts +13 -0
  622. package/dist/styles/fonts/typography/index.js +41 -0
  623. package/dist/styles/fonts/typographyTokens.cjs +768 -0
  624. package/dist/styles/fonts/typographyTokens.d.cts +723 -0
  625. package/dist/styles/fonts/typographyTokens.d.ts +723 -0
  626. package/dist/styles/fonts/typographyTokens.js +13 -0
  627. package/dist/styles/global.cjs +1315 -0
  628. package/dist/styles/global.d.cts +10 -0
  629. package/dist/styles/global.d.ts +10 -0
  630. package/dist/styles/global.js +15 -0
  631. package/dist/styles/type.cjs +1362 -0
  632. package/dist/styles/type.d.cts +28 -0
  633. package/dist/styles/type.d.ts +28 -0
  634. package/dist/styles/type.js +153 -0
  635. package/dist/styles/utils.cjs +1259 -0
  636. package/dist/styles/utils.d.cts +29 -0
  637. package/dist/styles/utils.d.ts +29 -0
  638. package/dist/styles/utils.js +38 -0
  639. package/dist/styles/z-index.cjs +53 -0
  640. package/dist/styles/z-index.d.cts +25 -0
  641. package/dist/styles/z-index.d.ts +25 -0
  642. package/dist/styles/z-index.js +7 -0
  643. package/dist/types/index.cjs +18 -0
  644. package/dist/types/index.d.cts +11 -0
  645. package/dist/types/index.d.ts +11 -0
  646. package/dist/types/index.js +0 -0
  647. package/dist/types/utils.cjs +37 -0
  648. package/dist/types/utils.d.cts +16 -0
  649. package/dist/types/utils.d.ts +16 -0
  650. package/dist/types/utils.js +13 -0
  651. package/dist/utils/strings.cjs +87 -0
  652. package/dist/utils/strings.d.cts +12 -0
  653. package/dist/utils/strings.d.ts +12 -0
  654. package/dist/utils/strings.js +21 -0
  655. package/package.json +72 -0
@@ -0,0 +1,2720 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __copyProps = (to, from, except, desc) => {
30
+ if (from && typeof from === "object" || typeof from === "function") {
31
+ for (let key of __getOwnPropNames(from))
32
+ if (!__hasOwnProp.call(to, key) && key !== except)
33
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
+ mod
44
+ ));
45
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
+ var __async = (__this, __arguments, generator) => {
47
+ return new Promise((resolve, reject) => {
48
+ var fulfilled = (value) => {
49
+ try {
50
+ step(generator.next(value));
51
+ } catch (e) {
52
+ reject(e);
53
+ }
54
+ };
55
+ var rejected = (value) => {
56
+ try {
57
+ step(generator.throw(value));
58
+ } catch (e) {
59
+ reject(e);
60
+ }
61
+ };
62
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
63
+ step((generator = generator.apply(__this, __arguments)).next());
64
+ });
65
+ };
66
+
67
+ // src/components/index.tsx
68
+ var components_exports = {};
69
+ __export(components_exports, {
70
+ Button: () => Button,
71
+ ButtonRow: () => ButtonRow,
72
+ ButtonRowContainer: () => ButtonRowContainer,
73
+ ButtonSelector: () => ButtonSelector,
74
+ Collapsible: () => Collapsible,
75
+ CommandKey: () => CommandKey,
76
+ CopyToClipboardButton: () => CopyToClipboardButton,
77
+ CurrencyAmount: () => CurrencyAmount,
78
+ CurrencyIcon: () => CurrencyIcon,
79
+ Icon: () => Icon,
80
+ IconContainer: () => IconContainer,
81
+ LightboxImage: () => LightboxImage,
82
+ LightsparkProvider: () => LightsparkProvider,
83
+ Loading: () => Loading,
84
+ LoadingWrapper: () => LoadingWrapper,
85
+ Modal: () => Modal,
86
+ SecretContainer: () => SecretContainer,
87
+ StyledButton: () => StyledButton,
88
+ TextIconAligner: () => TextIconAligner,
89
+ UnstyledButton: () => UnstyledButton
90
+ });
91
+ module.exports = __toCommonJS(components_exports);
92
+
93
+ // src/components/Button.tsx
94
+ var import_react7 = require("@emotion/react");
95
+ var import_styled5 = __toESM(require("@emotion/styled"), 1);
96
+
97
+ // src/router.tsx
98
+ var import_lodash_es2 = require("lodash-es");
99
+ var import_react4 = require("react");
100
+ var import_react_router_dom = require("react-router-dom");
101
+
102
+ // src/styles/colors.tsx
103
+ var import_react3 = require("@emotion/react");
104
+
105
+ // src/styles/breakpoints.tsx
106
+ var import_react = require("@emotion/react");
107
+ var import_lodash_es = require("lodash-es");
108
+ var import_react2 = require("react");
109
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
110
+ var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
111
+ Breakpoints2["sm"] = "sm";
112
+ Breakpoints2["md"] = "md";
113
+ Breakpoints2["lg"] = "lg";
114
+ return Breakpoints2;
115
+ })(Breakpoints || {});
116
+ var breakpoints = {
117
+ ["sm" /* sm */]: 640,
118
+ ["md" /* md */]: 834,
119
+ ["lg" /* lg */]: 1200
120
+ };
121
+ var breakpointFn = (mq) => (style) => `@media ${mq} { ${style} }`;
122
+ var bp = {
123
+ key: Breakpoints,
124
+ ["sm" /* sm */]: breakpointFn(`(max-width:${breakpoints.sm}px)`),
125
+ ["lg" /* lg */]: breakpointFn(`(min-width:${breakpoints.lg}px)`),
126
+ ["minSmMaxLg" /* minSmMaxLg */]: breakpointFn(
127
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.lg - 1}px)`
128
+ ),
129
+ ["minSmMaxMd" /* minSmMaxMd */]: breakpointFn(
130
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.md - 1}px)`
131
+ ),
132
+ ["minMdMaxLg" /* minMdMaxLg */]: breakpointFn(
133
+ `(min-width:${breakpoints.md}px) and (max-width:${breakpoints.lg - 1}px)`
134
+ ),
135
+ ["maxLg" /* maxLg */]: breakpointFn(`(max-width:${breakpoints.lg - 1}px)`),
136
+ ["maxMd" /* maxMd */]: breakpointFn(`(max-width:${breakpoints.md - 1}px)`),
137
+ ["minSm" /* minSm */]: breakpointFn(`(min-width:${breakpoints.sm + 1}px)`),
138
+ ["minMd" /* minMd */]: breakpointFn(`(min-width:${breakpoints.md + 1}px)`),
139
+ current: function(assertBp) {
140
+ const currentBp = (
141
+ /* window is undefined in first server side render for Next apps: */
142
+ typeof window === "undefined" ? "sm" /* sm */ : window.getComputedStyle(document.body, ":before").content.replace(/"/g, "")
143
+ );
144
+ if (assertBp) {
145
+ return inRange(
146
+ currentBp,
147
+ assertBp
148
+ );
149
+ }
150
+ return currentBp;
151
+ },
152
+ switch: (smVal, minSmMaxMdVal, minMdMaxLgVal, lgVal) => {
153
+ const currentBp = bp.current();
154
+ if (currentBp === "sm" /* sm */) {
155
+ return smVal;
156
+ } else if (currentBp === "minSmMaxMd" /* minSmMaxMd */) {
157
+ return minSmMaxMdVal;
158
+ } else if (currentBp === "minMdMaxLg" /* minMdMaxLg */) {
159
+ return minMdMaxLgVal;
160
+ }
161
+ return lgVal;
162
+ },
163
+ isSm: () => bp.current("sm" /* sm */),
164
+ isMinSm: () => bp.current("minSm" /* minSm */),
165
+ isMinSmMaxMd: () => bp.current("minSmMaxMd" /* minSmMaxMd */),
166
+ isMinMdMaxLg: () => bp.current("minMdMaxLg" /* minMdMaxLg */),
167
+ isLg: () => bp.current("lg" /* lg */)
168
+ };
169
+ function inRange(currentBp, assertBp) {
170
+ const isSm = currentBp === "sm" /* sm */;
171
+ const isMinSmMaxMd = currentBp === "minSmMaxMd" /* minSmMaxMd */;
172
+ const isMinMdMaxLg = currentBp === "minMdMaxLg" /* minMdMaxLg */;
173
+ const isLg = currentBp === "lg" /* lg */;
174
+ if (assertBp) {
175
+ switch (assertBp) {
176
+ case "sm" /* sm */:
177
+ return isSm;
178
+ case "minSmMaxMd" /* minSmMaxMd */:
179
+ return isMinSmMaxMd;
180
+ case "minMdMaxLg" /* minMdMaxLg */:
181
+ return isMinMdMaxLg;
182
+ case "lg" /* lg */:
183
+ return isLg;
184
+ case "minSmMaxLg" /* minSmMaxLg */:
185
+ return isMinSmMaxMd || isMinMdMaxLg;
186
+ case "maxLg" /* maxLg */:
187
+ return isSm || isMinSmMaxMd || isMinMdMaxLg;
188
+ case "maxMd" /* maxMd */:
189
+ return isSm || isMinSmMaxMd;
190
+ case "minSm" /* minSm */:
191
+ return isMinSmMaxMd || isMinMdMaxLg || isLg;
192
+ case "minMd" /* minMd */:
193
+ return isMinMdMaxLg || isLg;
194
+ default:
195
+ return false;
196
+ }
197
+ }
198
+ return false;
199
+ }
200
+ function useBreakpoints() {
201
+ const [currentBp, setCurrentBp] = (0, import_react2.useState)(bp.current());
202
+ (0, import_react2.useLayoutEffect)(() => {
203
+ const handleResize = () => {
204
+ const newBp = bp.current();
205
+ if (newBp !== currentBp) {
206
+ setCurrentBp(newBp);
207
+ }
208
+ };
209
+ handleResize();
210
+ window.addEventListener("resize", handleResize);
211
+ window.addEventListener("deviceorientation", handleResize);
212
+ return () => {
213
+ window.removeEventListener("resize", handleResize);
214
+ window.removeEventListener("deviceorientation", handleResize);
215
+ };
216
+ });
217
+ return bp;
218
+ }
219
+
220
+ // src/styles/fonts/typographyTokens.ts
221
+ var FONT_FAMILIES = {
222
+ main: "Montserrat",
223
+ code: "Monaco"
224
+ };
225
+ var LINE_HEIGHTS = {
226
+ "5xl": "72px",
227
+ "4xl": "60px",
228
+ "3xl": "44px",
229
+ "2xl": "40px",
230
+ xl: "36px",
231
+ lg: "32px",
232
+ md: "28px",
233
+ sm: "24px",
234
+ xs: "20px",
235
+ "2xs": "16px"
236
+ };
237
+ var FONT_WEIGHTS = {
238
+ main: {
239
+ Bold: 700,
240
+ SemiBold: 600,
241
+ Medium: 500
242
+ },
243
+ code: {
244
+ Bold: 700,
245
+ Regular: 400
246
+ }
247
+ };
248
+ var FONT_SIZE = {
249
+ "2xs": "11px",
250
+ xs: "12px",
251
+ sm: "14px",
252
+ md: "16px",
253
+ lg: "20px",
254
+ xl: "24px",
255
+ "2xl": "28px",
256
+ "3xl": "32px",
257
+ "4xl": "36px",
258
+ "5xl": "48px",
259
+ "6xl": "64px"
260
+ };
261
+ var LETTER_SPACING = {
262
+ tight: "-.02em",
263
+ normal: "0",
264
+ loose: ".1em"
265
+ };
266
+ var TEXT_CASE = {
267
+ none: "none",
268
+ uppercase: "uppercase"
269
+ };
270
+ var TEXT_DECORATION = {
271
+ none: "none"
272
+ };
273
+ var PARAGRAPH_INDENT = {
274
+ 0: "0px"
275
+ };
276
+ var PARAGRAPH_SPACING = {
277
+ default: "default",
278
+ 16: "16px",
279
+ 40: "40px"
280
+ };
281
+ var getTypography = (customFontFamilies) => {
282
+ const fontFamilies = customFontFamilies != null ? customFontFamilies : FONT_FAMILIES;
283
+ return {
284
+ fontFamilies,
285
+ lineHeights: LINE_HEIGHTS,
286
+ fontWeights: FONT_WEIGHTS,
287
+ fontSize: FONT_SIZE,
288
+ letterSpacing: LETTER_SPACING,
289
+ textCase: TEXT_CASE,
290
+ textDecoration: TEXT_DECORATION,
291
+ paragraphIndent: PARAGRAPH_INDENT,
292
+ paragraphSpacing: PARAGRAPH_SPACING,
293
+ ["Lightspark" /* Lightspark */]: {
294
+ Display: {
295
+ ["Large" /* Large */]: {
296
+ "font-family": `${fontFamilies.main}`,
297
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
298
+ "line-height": `${LINE_HEIGHTS["5xl"]}`,
299
+ "font-size": `${FONT_SIZE["6xl"]}`,
300
+ "letter-spacing": `${LETTER_SPACING.tight}`,
301
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
302
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
303
+ "text-case": `${TEXT_CASE.none}`,
304
+ "text-decoration": `${TEXT_DECORATION.none}`
305
+ },
306
+ ["Medium" /* Medium */]: {
307
+ "font-family": `${fontFamilies.main}`,
308
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
309
+ "line-height": `${LINE_HEIGHTS["4xl"]}`,
310
+ "font-size": `${FONT_SIZE["5xl"]}`,
311
+ "letter-spacing": `${LETTER_SPACING.tight}`,
312
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
313
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
314
+ "text-case": `${TEXT_CASE.none}`,
315
+ "text-decoration": `${TEXT_DECORATION.none}`
316
+ },
317
+ ["Small" /* Small */]: {
318
+ "font-family": `${fontFamilies.main}`,
319
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
320
+ "line-height": `${LINE_HEIGHTS["3xl"]}`,
321
+ "font-size": `${FONT_SIZE["4xl"]}`,
322
+ "letter-spacing": `${LETTER_SPACING.tight}`,
323
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
324
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
325
+ "text-case": `${TEXT_CASE.none}`,
326
+ "text-decoration": `${TEXT_DECORATION.none}`
327
+ }
328
+ },
329
+ Headline: {
330
+ ["Large" /* Large */]: {
331
+ "font-family": `${fontFamilies.main}`,
332
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
333
+ "line-height": `${LINE_HEIGHTS["2xl"]}`,
334
+ "font-size": `${FONT_SIZE["3xl"]}`,
335
+ "letter-spacing": `${LETTER_SPACING.tight}`,
336
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
337
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
338
+ "text-case": `${TEXT_CASE.none}`,
339
+ "text-decoration": `${TEXT_DECORATION.none}`
340
+ },
341
+ ["Medium" /* Medium */]: {
342
+ "font-family": `${fontFamilies.main}`,
343
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
344
+ "line-height": `${LINE_HEIGHTS.xl}`,
345
+ "font-size": `${FONT_SIZE["2xl"]}`,
346
+ "letter-spacing": `${LETTER_SPACING.tight}`,
347
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
348
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
349
+ "text-case": `${TEXT_CASE.none}`,
350
+ "text-decoration": `${TEXT_DECORATION.none}`
351
+ },
352
+ ["Small" /* Small */]: {
353
+ "font-family": `${fontFamilies.main}`,
354
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
355
+ "line-height": `${LINE_HEIGHTS.lg}`,
356
+ "font-size": `${FONT_SIZE.xl}`,
357
+ "letter-spacing": `${LETTER_SPACING.tight}`,
358
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
359
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
360
+ "text-case": `${TEXT_CASE.none}`,
361
+ "text-decoration": `${TEXT_DECORATION.none}`
362
+ }
363
+ },
364
+ Title: {
365
+ ["Large" /* Large */]: {
366
+ "font-family": `${fontFamilies.main}`,
367
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
368
+ "line-height": `${LINE_HEIGHTS.md}`,
369
+ "font-size": `${FONT_SIZE.lg}`,
370
+ "letter-spacing": `${LETTER_SPACING.normal}`,
371
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
372
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
373
+ "text-case": `${TEXT_CASE.none}`,
374
+ "text-decoration": `${TEXT_DECORATION.none}`
375
+ },
376
+ ["Medium" /* Medium */]: {
377
+ "font-family": `${fontFamilies.main}`,
378
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
379
+ "line-height": `${LINE_HEIGHTS.sm}`,
380
+ "font-size": `${FONT_SIZE.md}`,
381
+ "letter-spacing": `${LETTER_SPACING.normal}`,
382
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
383
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
384
+ "text-case": `${TEXT_CASE.none}`,
385
+ "text-decoration": `${TEXT_DECORATION.none}`
386
+ },
387
+ ["Small" /* Small */]: {
388
+ "font-family": `${fontFamilies.main}`,
389
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
390
+ "line-height": `${LINE_HEIGHTS.xs}`,
391
+ "font-size": `${FONT_SIZE.sm}`,
392
+ "letter-spacing": `${LETTER_SPACING.normal}`,
393
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
394
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
395
+ "text-case": `${TEXT_CASE.none}`,
396
+ "text-decoration": `${TEXT_DECORATION.none}`
397
+ }
398
+ },
399
+ Body: {
400
+ ["Large" /* Large */]: {
401
+ "font-family": `${fontFamilies.main}`,
402
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
403
+ "line-height": `${LINE_HEIGHTS.sm}`,
404
+ "font-size": `${FONT_SIZE.md}`,
405
+ "letter-spacing": `${LETTER_SPACING.normal}`,
406
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
407
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
408
+ "text-case": `${TEXT_CASE.none}`,
409
+ "text-decoration": `${TEXT_DECORATION.none}`
410
+ },
411
+ ["Medium" /* Medium */]: {
412
+ "font-family": `${fontFamilies.main}`,
413
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
414
+ "line-height": `${LINE_HEIGHTS.sm}`,
415
+ "font-size": `${FONT_SIZE.sm}`,
416
+ "letter-spacing": `${LETTER_SPACING.normal}`,
417
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
418
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
419
+ "text-case": `${TEXT_CASE.none}`,
420
+ "text-decoration": `${TEXT_DECORATION.none}`
421
+ },
422
+ ["Small" /* Small */]: {
423
+ "font-family": `${fontFamilies.main}`,
424
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
425
+ "line-height": `${LINE_HEIGHTS.sm}`,
426
+ "font-size": `${FONT_SIZE.xs}`,
427
+ "letter-spacing": `${LETTER_SPACING.normal}`,
428
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
429
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
430
+ "text-case": `${TEXT_CASE.none}`,
431
+ "text-decoration": `${TEXT_DECORATION.none}`
432
+ }
433
+ },
434
+ Label: {
435
+ ["Large" /* Large */]: {
436
+ "font-family": `${fontFamilies.main}`,
437
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
438
+ "line-height": `${LINE_HEIGHTS.xs}`,
439
+ "font-size": `${FONT_SIZE.sm}`,
440
+ "letter-spacing": `${LETTER_SPACING.normal}`,
441
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
442
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
443
+ "text-case": `${TEXT_CASE.none}`,
444
+ "text-decoration": `${TEXT_DECORATION.none}`
445
+ },
446
+ ["Medium" /* Medium */]: {
447
+ "font-family": `${fontFamilies.main}`,
448
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
449
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
450
+ "font-size": `${FONT_SIZE.xs}`,
451
+ "letter-spacing": `${LETTER_SPACING.normal}`,
452
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
453
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
454
+ "text-case": `${TEXT_CASE.none}`,
455
+ "text-decoration": `${TEXT_DECORATION.none}`
456
+ },
457
+ ["Small" /* Small */]: {
458
+ "font-family": `${fontFamilies.main}`,
459
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
460
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
461
+ "font-size": `${FONT_SIZE["2xs"]}`,
462
+ "letter-spacing": `${LETTER_SPACING.normal}`,
463
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
464
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
465
+ "text-case": `${TEXT_CASE.none}`,
466
+ "text-decoration": `${TEXT_DECORATION.none}`
467
+ }
468
+ },
469
+ "Label Strong": {
470
+ ["Large" /* Large */]: {
471
+ "font-family": `${fontFamilies.main}`,
472
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
473
+ "line-height": `${LINE_HEIGHTS.xs}`,
474
+ "font-size": `${FONT_SIZE.sm}`,
475
+ "letter-spacing": `${LETTER_SPACING.normal}`,
476
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
477
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
478
+ "text-case": `${TEXT_CASE.none}`,
479
+ "text-decoration": `${TEXT_DECORATION.none}`
480
+ },
481
+ ["Medium" /* Medium */]: {
482
+ "font-family": `${fontFamilies.main}`,
483
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
484
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
485
+ "font-size": `${FONT_SIZE.xs}`,
486
+ "letter-spacing": `${LETTER_SPACING.normal}`,
487
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
488
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
489
+ "text-case": `${TEXT_CASE.none}`,
490
+ "text-decoration": `${TEXT_DECORATION.none}`
491
+ },
492
+ ["Small" /* Small */]: {
493
+ "font-family": `${fontFamilies.main}`,
494
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
495
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
496
+ "font-size": `${FONT_SIZE["2xs"]}`,
497
+ "letter-spacing": `${LETTER_SPACING.normal}`,
498
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
499
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
500
+ "text-case": `${TEXT_CASE.none}`,
501
+ "text-decoration": `${TEXT_DECORATION.none}`
502
+ }
503
+ },
504
+ Overline: {
505
+ ["Large" /* Large */]: {
506
+ "font-family": `${fontFamilies.code}`,
507
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
508
+ "line-height": `${LINE_HEIGHTS.sm}`,
509
+ "font-size": `${FONT_SIZE.md}`,
510
+ "letter-spacing": `${LETTER_SPACING.loose}`,
511
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
512
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
513
+ "text-case": `${TEXT_CASE.uppercase}`,
514
+ "text-decoration": `${TEXT_DECORATION.none}`
515
+ },
516
+ ["Medium" /* Medium */]: {
517
+ "font-family": `${fontFamilies.code}`,
518
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
519
+ "line-height": `${LINE_HEIGHTS.xs}`,
520
+ "font-size": `${FONT_SIZE.sm}`,
521
+ "letter-spacing": `${LETTER_SPACING.loose}`,
522
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
523
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
524
+ "text-case": `${TEXT_CASE.uppercase}`,
525
+ "text-decoration": `${TEXT_DECORATION.none}`
526
+ },
527
+ ["Small" /* Small */]: {
528
+ "font-family": `${fontFamilies.code}`,
529
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
530
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
531
+ "font-size": `${FONT_SIZE.xs}`,
532
+ "letter-spacing": `${LETTER_SPACING.loose}`,
533
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
534
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
535
+ "text-case": `${TEXT_CASE.uppercase}`,
536
+ "text-decoration": `${TEXT_DECORATION.none}`
537
+ }
538
+ },
539
+ Code: {
540
+ ["Large" /* Large */]: {
541
+ "font-family": `${fontFamilies.code}`,
542
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
543
+ "line-height": `${LINE_HEIGHTS.sm}`,
544
+ "font-size": `${FONT_SIZE.md}`,
545
+ "letter-spacing": `${LETTER_SPACING.normal}`,
546
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
547
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
548
+ "text-case": `${TEXT_CASE.none}`,
549
+ "text-decoration": `${TEXT_DECORATION.none}`
550
+ },
551
+ ["Medium" /* Medium */]: {
552
+ "font-family": `${fontFamilies.code}`,
553
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
554
+ "line-height": `${LINE_HEIGHTS.sm}`,
555
+ "font-size": `${FONT_SIZE.sm}`,
556
+ "letter-spacing": `${LETTER_SPACING.normal}`,
557
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
558
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
559
+ "text-case": `${TEXT_CASE.none}`,
560
+ "text-decoration": `${TEXT_DECORATION.none}`
561
+ },
562
+ ["Small" /* Small */]: {
563
+ "font-family": `${fontFamilies.code}`,
564
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
565
+ "line-height": `${LINE_HEIGHTS.xs}`,
566
+ "font-size": `${FONT_SIZE.xs}`,
567
+ "letter-spacing": `${LETTER_SPACING.normal}`,
568
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
569
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
570
+ "text-case": `${TEXT_CASE.none}`,
571
+ "text-decoration": `${TEXT_DECORATION.none}`
572
+ }
573
+ },
574
+ "Code Strong": {
575
+ ["Large" /* Large */]: {
576
+ "font-family": `${fontFamilies.code}`,
577
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
578
+ "line-height": `${LINE_HEIGHTS.sm}`,
579
+ "font-size": `${FONT_SIZE.md}`,
580
+ "letter-spacing": `${LETTER_SPACING.normal}`,
581
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
582
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
583
+ "text-case": `${TEXT_CASE.none}`,
584
+ "text-decoration": `${TEXT_DECORATION.none}`
585
+ },
586
+ ["Medium" /* Medium */]: {
587
+ "font-family": `${fontFamilies.code}`,
588
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
589
+ "line-height": `${LINE_HEIGHTS.sm}`,
590
+ "font-size": `${FONT_SIZE.sm}`,
591
+ "letter-spacing": `${LETTER_SPACING.normal}`,
592
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
593
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
594
+ "text-case": `${TEXT_CASE.none}`,
595
+ "text-decoration": `${TEXT_DECORATION.none}`
596
+ },
597
+ ["Small" /* Small */]: {
598
+ "font-family": `${fontFamilies.code}`,
599
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
600
+ "line-height": `${LINE_HEIGHTS.xs}`,
601
+ "font-size": `${FONT_SIZE.xs}`,
602
+ "letter-spacing": `${LETTER_SPACING.normal}`,
603
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
604
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
605
+ "text-case": `${TEXT_CASE.none}`,
606
+ "text-decoration": `${TEXT_DECORATION.none}`
607
+ }
608
+ }
609
+ },
610
+ ["UmaDocs" /* UmaDocs */]: {
611
+ Display: {
612
+ ["Large" /* Large */]: {
613
+ "font-family": `${fontFamilies.main}`,
614
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
615
+ "line-height": `${LINE_HEIGHTS["5xl"]}`,
616
+ "font-size": `${FONT_SIZE["6xl"]}`,
617
+ "letter-spacing": `${LETTER_SPACING.tight}`,
618
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
619
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
620
+ "text-case": `${TEXT_CASE.none}`,
621
+ "text-decoration": `${TEXT_DECORATION.none}`
622
+ },
623
+ ["Medium" /* Medium */]: {
624
+ "font-family": `${fontFamilies.main}`,
625
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
626
+ "line-height": `${LINE_HEIGHTS["4xl"]}`,
627
+ "font-size": `${FONT_SIZE["5xl"]}`,
628
+ "letter-spacing": `${LETTER_SPACING.tight}`,
629
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
630
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
631
+ "text-case": `${TEXT_CASE.none}`,
632
+ "text-decoration": `${TEXT_DECORATION.none}`
633
+ },
634
+ ["Small" /* Small */]: {
635
+ "font-family": `${fontFamilies.main}`,
636
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
637
+ "line-height": `${LINE_HEIGHTS["3xl"]}`,
638
+ "font-size": `${FONT_SIZE["4xl"]}`,
639
+ "letter-spacing": `${LETTER_SPACING.tight}`,
640
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
641
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
642
+ "text-case": `${TEXT_CASE.none}`,
643
+ "text-decoration": `${TEXT_DECORATION.none}`
644
+ }
645
+ },
646
+ Headline: {
647
+ ["Large" /* Large */]: {
648
+ "font-family": `${fontFamilies.main}`,
649
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
650
+ "line-height": `${LINE_HEIGHTS["2xl"]}`,
651
+ "font-size": `${FONT_SIZE["3xl"]}`,
652
+ "letter-spacing": `${LETTER_SPACING.tight}`,
653
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
654
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
655
+ "text-case": `${TEXT_CASE.none}`,
656
+ "text-decoration": `${TEXT_DECORATION.none}`
657
+ },
658
+ ["Medium" /* Medium */]: {
659
+ "font-family": `${fontFamilies.main}`,
660
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
661
+ "line-height": `${LINE_HEIGHTS.xl}`,
662
+ "font-size": `${FONT_SIZE["2xl"]}`,
663
+ "letter-spacing": `${LETTER_SPACING.tight}`,
664
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
665
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
666
+ "text-case": `${TEXT_CASE.none}`,
667
+ "text-decoration": `${TEXT_DECORATION.none}`
668
+ },
669
+ ["Small" /* Small */]: {
670
+ "font-family": `${fontFamilies.main}`,
671
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
672
+ "line-height": `${LINE_HEIGHTS.lg}`,
673
+ "font-size": `${FONT_SIZE.xl}`,
674
+ "letter-spacing": `${LETTER_SPACING.tight}`,
675
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
676
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
677
+ "text-case": `${TEXT_CASE.none}`,
678
+ "text-decoration": `${TEXT_DECORATION.none}`
679
+ }
680
+ },
681
+ Title: {
682
+ ["Large" /* Large */]: {
683
+ "font-family": `${fontFamilies.main}`,
684
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
685
+ "line-height": `${LINE_HEIGHTS.md}`,
686
+ "font-size": `${FONT_SIZE.lg}`,
687
+ "letter-spacing": `${LETTER_SPACING.normal}`,
688
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
689
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
690
+ "text-case": `${TEXT_CASE.none}`,
691
+ "text-decoration": `${TEXT_DECORATION.none}`
692
+ },
693
+ ["Medium" /* Medium */]: {
694
+ "font-family": `${fontFamilies.main}`,
695
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
696
+ "line-height": `${LINE_HEIGHTS.sm}`,
697
+ "font-size": `${FONT_SIZE.md}`,
698
+ "letter-spacing": `${LETTER_SPACING.normal}`,
699
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
700
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
701
+ "text-case": `${TEXT_CASE.none}`,
702
+ "text-decoration": `${TEXT_DECORATION.none}`
703
+ },
704
+ ["Small" /* Small */]: {
705
+ "font-family": `${fontFamilies.main}`,
706
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
707
+ "line-height": `${LINE_HEIGHTS.xs}`,
708
+ "font-size": `${FONT_SIZE.sm}`,
709
+ "letter-spacing": `${LETTER_SPACING.normal}`,
710
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
711
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
712
+ "text-case": `${TEXT_CASE.none}`,
713
+ "text-decoration": `${TEXT_DECORATION.none}`
714
+ }
715
+ },
716
+ Body: {
717
+ ["Large" /* Large */]: {
718
+ "font-family": `${fontFamilies.main}`,
719
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
720
+ "line-height": `${LINE_HEIGHTS.sm}`,
721
+ "font-size": `${FONT_SIZE.md}`,
722
+ "letter-spacing": `${LETTER_SPACING.normal}`,
723
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
724
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
725
+ "text-case": `${TEXT_CASE.none}`,
726
+ "text-decoration": `${TEXT_DECORATION.none}`
727
+ },
728
+ ["Medium" /* Medium */]: {
729
+ "font-family": `${fontFamilies.main}`,
730
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
731
+ "line-height": `${LINE_HEIGHTS.sm}`,
732
+ "font-size": `${FONT_SIZE.sm}`,
733
+ "letter-spacing": `${LETTER_SPACING.normal}`,
734
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
735
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
736
+ "text-case": `${TEXT_CASE.none}`,
737
+ "text-decoration": `${TEXT_DECORATION.none}`
738
+ },
739
+ ["Small" /* Small */]: {
740
+ "font-family": `${fontFamilies.main}`,
741
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
742
+ "line-height": `${LINE_HEIGHTS.sm}`,
743
+ "font-size": `${FONT_SIZE.xs}`,
744
+ "letter-spacing": `${LETTER_SPACING.normal}`,
745
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
746
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
747
+ "text-case": `${TEXT_CASE.none}`,
748
+ "text-decoration": `${TEXT_DECORATION.none}`
749
+ }
750
+ },
751
+ Label: {
752
+ ["Large" /* Large */]: {
753
+ "font-family": `${fontFamilies.main}`,
754
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
755
+ "line-height": `${LINE_HEIGHTS.xs}`,
756
+ "font-size": `${FONT_SIZE.sm}`,
757
+ "letter-spacing": `${LETTER_SPACING.normal}`,
758
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
759
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
760
+ "text-case": `${TEXT_CASE.none}`,
761
+ "text-decoration": `${TEXT_DECORATION.none}`
762
+ },
763
+ ["Medium" /* Medium */]: {
764
+ "font-family": `${fontFamilies.main}`,
765
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
766
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
767
+ "font-size": `${FONT_SIZE.xs}`,
768
+ "letter-spacing": `${LETTER_SPACING.normal}`,
769
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
770
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
771
+ "text-case": `${TEXT_CASE.none}`,
772
+ "text-decoration": `${TEXT_DECORATION.none}`
773
+ },
774
+ ["Small" /* Small */]: {
775
+ "font-family": `${fontFamilies.main}`,
776
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
777
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
778
+ "font-size": `${FONT_SIZE["2xs"]}`,
779
+ "letter-spacing": `${LETTER_SPACING.normal}`,
780
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
781
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
782
+ "text-case": `${TEXT_CASE.none}`,
783
+ "text-decoration": `${TEXT_DECORATION.none}`
784
+ }
785
+ },
786
+ "Label Strong": {
787
+ ["Large" /* Large */]: {
788
+ "font-family": `${fontFamilies.main}`,
789
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
790
+ "line-height": `${LINE_HEIGHTS.xs}`,
791
+ "font-size": `${FONT_SIZE.sm}`,
792
+ "letter-spacing": `${LETTER_SPACING.normal}`,
793
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
794
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
795
+ "text-case": `${TEXT_CASE.none}`,
796
+ "text-decoration": `${TEXT_DECORATION.none}`
797
+ },
798
+ ["Medium" /* Medium */]: {
799
+ "font-family": `${fontFamilies.main}`,
800
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
801
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
802
+ "font-size": `${FONT_SIZE.xs}`,
803
+ "letter-spacing": `${LETTER_SPACING.normal}`,
804
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
805
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
806
+ "text-case": `${TEXT_CASE.none}`,
807
+ "text-decoration": `${TEXT_DECORATION.none}`
808
+ },
809
+ ["Small" /* Small */]: {
810
+ "font-family": `${fontFamilies.main}`,
811
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
812
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
813
+ "font-size": `${FONT_SIZE["2xs"]}`,
814
+ "letter-spacing": `${LETTER_SPACING.normal}`,
815
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
816
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
817
+ "text-case": `${TEXT_CASE.none}`,
818
+ "text-decoration": `${TEXT_DECORATION.none}`
819
+ }
820
+ },
821
+ Overline: {
822
+ ["Large" /* Large */]: {
823
+ "font-family": `${fontFamilies.code}`,
824
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
825
+ "line-height": `${LINE_HEIGHTS.sm}`,
826
+ "font-size": `${FONT_SIZE.md}`,
827
+ "letter-spacing": `${LETTER_SPACING.loose}`,
828
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
829
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
830
+ "text-case": `${TEXT_CASE.uppercase}`,
831
+ "text-decoration": `${TEXT_DECORATION.none}`
832
+ },
833
+ ["Medium" /* Medium */]: {
834
+ "font-family": `${fontFamilies.code}`,
835
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
836
+ "line-height": `${LINE_HEIGHTS.xs}`,
837
+ "font-size": `${FONT_SIZE.sm}`,
838
+ "letter-spacing": `${LETTER_SPACING.loose}`,
839
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
840
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
841
+ "text-case": `${TEXT_CASE.uppercase}`,
842
+ "text-decoration": `${TEXT_DECORATION.none}`
843
+ },
844
+ ["Small" /* Small */]: {
845
+ "font-family": `${fontFamilies.code}`,
846
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
847
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
848
+ "font-size": `${FONT_SIZE.xs}`,
849
+ "letter-spacing": `${LETTER_SPACING.loose}`,
850
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
851
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
852
+ "text-case": `${TEXT_CASE.uppercase}`,
853
+ "text-decoration": `${TEXT_DECORATION.none}`
854
+ }
855
+ },
856
+ Code: {
857
+ ["Large" /* Large */]: {
858
+ "font-family": `${fontFamilies.code}`,
859
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
860
+ "line-height": `${LINE_HEIGHTS.sm}`,
861
+ "font-size": `${FONT_SIZE.md}`,
862
+ "letter-spacing": `${LETTER_SPACING.normal}`,
863
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
864
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
865
+ "text-case": `${TEXT_CASE.none}`,
866
+ "text-decoration": `${TEXT_DECORATION.none}`
867
+ },
868
+ ["Medium" /* Medium */]: {
869
+ "font-family": `${fontFamilies.code}`,
870
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
871
+ "line-height": `${LINE_HEIGHTS.sm}`,
872
+ "font-size": `${FONT_SIZE.sm}`,
873
+ "letter-spacing": `${LETTER_SPACING.normal}`,
874
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
875
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
876
+ "text-case": `${TEXT_CASE.none}`,
877
+ "text-decoration": `${TEXT_DECORATION.none}`
878
+ },
879
+ ["Small" /* Small */]: {
880
+ "font-family": `${fontFamilies.code}`,
881
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
882
+ "line-height": `${LINE_HEIGHTS.xs}`,
883
+ "font-size": `${FONT_SIZE.xs}`,
884
+ "letter-spacing": `${LETTER_SPACING.normal}`,
885
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
886
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
887
+ "text-case": `${TEXT_CASE.none}`,
888
+ "text-decoration": `${TEXT_DECORATION.none}`
889
+ }
890
+ },
891
+ "Code Strong": {
892
+ ["Large" /* Large */]: {
893
+ "font-family": `${fontFamilies.code}`,
894
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
895
+ "line-height": `${LINE_HEIGHTS.sm}`,
896
+ "font-size": `${FONT_SIZE.md}`,
897
+ "letter-spacing": `${LETTER_SPACING.normal}`,
898
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
899
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
900
+ "text-case": `${TEXT_CASE.none}`,
901
+ "text-decoration": `${TEXT_DECORATION.none}`
902
+ },
903
+ ["Medium" /* Medium */]: {
904
+ "font-family": `${fontFamilies.code}`,
905
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
906
+ "line-height": `${LINE_HEIGHTS.sm}`,
907
+ "font-size": `${FONT_SIZE.sm}`,
908
+ "letter-spacing": `${LETTER_SPACING.normal}`,
909
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
910
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
911
+ "text-case": `${TEXT_CASE.none}`,
912
+ "text-decoration": `${TEXT_DECORATION.none}`
913
+ },
914
+ ["Small" /* Small */]: {
915
+ "font-family": `${fontFamilies.code}`,
916
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
917
+ "line-height": `${LINE_HEIGHTS.sm}`,
918
+ "font-size": `${FONT_SIZE.xs}`,
919
+ "letter-spacing": `${LETTER_SPACING.normal}`,
920
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
921
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
922
+ "text-case": `${TEXT_CASE.none}`,
923
+ "text-decoration": `${TEXT_DECORATION.none}`
924
+ }
925
+ }
926
+ }
927
+ };
928
+ };
929
+
930
+ // src/styles/colors.tsx
931
+ var neutral = {
932
+ black: "#000000",
933
+ gray5: "#0D0D0D",
934
+ gray10: "#1A1A1A",
935
+ gray15: "#262626",
936
+ gray20: "#333333",
937
+ gray25: "#404040",
938
+ gray30: "#4D4D4D",
939
+ gray40: "#666666",
940
+ gray50: "#808080",
941
+ gray60: "#999999",
942
+ gray70: "#B3B3B3",
943
+ gray80: "#CCCCCC",
944
+ gray85: "#D9D9D9",
945
+ gray90: "#E6E6E6",
946
+ gray95: "#F2F2F2",
947
+ white: "#FFFFFF"
948
+ };
949
+ var uma = {
950
+ background: "#F9F9F9",
951
+ black: "#16171A",
952
+ blue: "#0068C9",
953
+ blue50: "#C0C9D6",
954
+ blue80: "#DCE2EA",
955
+ blue90: "#EBEEF2",
956
+ blue95: "#F2F5F7",
957
+ grey300: "#DEDFE4",
958
+ secondary: "#686A72",
959
+ stroke: "#C0C9D6",
960
+ strokeProminent: "#9BA7B9",
961
+ fill: "#EBEEF2"
962
+ };
963
+ var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
964
+ var primary = "#FFF14E";
965
+ var colors = __spreadProps(__spreadValues({}, neutral), {
966
+ uma,
967
+ // green
968
+ success: "#17C27C",
969
+ // blue
970
+ blue43: "#145BC6",
971
+ blue22: "#0E2E60",
972
+ blue58: "#28BFFF",
973
+ blue95: "#EBEEF2",
974
+ // yellow
975
+ primary,
976
+ warning: primary,
977
+ // orange
978
+ danger: "#FD2C0F",
979
+ // neutral
980
+ secondary: neutral.black,
981
+ // billing
982
+ tier1: "#179257",
983
+ tier2: "#8B38DE",
984
+ tier3: "#0048F7"
985
+ });
986
+ function extend(obj, rest) {
987
+ return __spreadValues(__spreadValues({}, obj), rest);
988
+ }
989
+ function extendBase(obj, rest) {
990
+ return __spreadValues(__spreadValues({}, obj), rest);
991
+ }
992
+ function hcNeutralFromBg(bgHex, defaultHex, altHex) {
993
+ const bgRGB = hexToRGB(bgHex);
994
+ const hcRGB = hexToRGB(defaultHex);
995
+ if (!bgRGB || !hcRGB)
996
+ return defaultHex;
997
+ const c = contrast(bgRGB, hcRGB);
998
+ if (c < 4.5) {
999
+ return altHex;
1000
+ }
1001
+ return defaultHex;
1002
+ }
1003
+ var lightBaseTheme = {
1004
+ type: "light" /* Light */,
1005
+ app: "Lightspark" /* Lightspark */,
1006
+ bg: colors.white,
1007
+ smBg: colors.white,
1008
+ c05Neutral: neutral.gray95,
1009
+ c1Neutral: neutral.gray90,
1010
+ c15Neutral: neutral.gray85,
1011
+ c2Neutral: neutral.gray80,
1012
+ c3Neutral: neutral.gray70,
1013
+ c4Neutral: neutral.gray60,
1014
+ c5Neutral: neutral.gray50,
1015
+ c6Neutral: neutral.gray40,
1016
+ c7Neutral: neutral.gray30,
1017
+ c8Neutral: neutral.gray20,
1018
+ c9Neutral: neutral.gray10,
1019
+ danger: colors.danger,
1020
+ hcNeutral: colors.black,
1021
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
1022
+ info: colors.blue43,
1023
+ lcNeutral: neutral.gray80,
1024
+ link: colors.blue43,
1025
+ mcNeutral: neutral.gray40,
1026
+ onInfoText: colors.white,
1027
+ onPrimaryText: colors.black,
1028
+ onSuccessText: colors.white,
1029
+ primary: colors.primary,
1030
+ secondary: colors.secondary,
1031
+ success: colors.success,
1032
+ text: colors.black,
1033
+ typography: getTypography(),
1034
+ vlcNeutral: neutral.gray95,
1035
+ warning: colors.warning
1036
+ };
1037
+ var darkBaseTheme = {
1038
+ type: "dark" /* Dark */,
1039
+ app: "Lightspark" /* Lightspark */,
1040
+ bg: colors.black,
1041
+ smBg: colors.black,
1042
+ c05Neutral: neutral.gray5,
1043
+ c1Neutral: neutral.gray10,
1044
+ c15Neutral: neutral.gray15,
1045
+ c2Neutral: neutral.gray20,
1046
+ c3Neutral: neutral.gray30,
1047
+ c4Neutral: neutral.gray40,
1048
+ c5Neutral: neutral.gray50,
1049
+ c6Neutral: neutral.gray60,
1050
+ c7Neutral: neutral.gray70,
1051
+ c8Neutral: neutral.gray80,
1052
+ c9Neutral: neutral.gray90,
1053
+ danger: colors.danger,
1054
+ hcNeutral: colors.white,
1055
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.white, colors.black),
1056
+ info: colors.white,
1057
+ lcNeutral: neutral.gray40,
1058
+ link: colors.blue43,
1059
+ mcNeutral: neutral.gray60,
1060
+ onInfoText: colors.white,
1061
+ onPrimaryText: colors.black,
1062
+ onSuccessText: colors.white,
1063
+ primary: colors.primary,
1064
+ secondary: colors.secondary,
1065
+ success: colors.success,
1066
+ text: colors.white,
1067
+ typography: getTypography(),
1068
+ vlcNeutral: neutral.gray20,
1069
+ warning: colors.warning
1070
+ };
1071
+ var lightTheme = extend(lightBaseTheme, {
1072
+ header: extendBase(lightBaseTheme, {
1073
+ text: colors.gray60
1074
+ }),
1075
+ nav: extendBase(lightBaseTheme, {
1076
+ text: colors.gray10,
1077
+ secondary: colors.secondary
1078
+ }),
1079
+ content: extendBase(lightBaseTheme, {
1080
+ bg: colors.white,
1081
+ smBg: colors.white
1082
+ }),
1083
+ controls: extendBase(lightBaseTheme, {
1084
+ bg: neutral.gray95,
1085
+ smBg: neutral.gray95,
1086
+ text: neutral.gray60,
1087
+ secondary: colors.secondary
1088
+ })
1089
+ });
1090
+ var darkTheme = extend(darkBaseTheme, {
1091
+ header: extendBase(darkBaseTheme, {}),
1092
+ nav: extendBase(darkBaseTheme, {}),
1093
+ content: extendBase(darkBaseTheme, {}),
1094
+ controls: extendBase(darkBaseTheme, {
1095
+ bg: neutral.gray40,
1096
+ smBg: neutral.gray40,
1097
+ text: neutral.white,
1098
+ secondary: colors.secondary
1099
+ })
1100
+ });
1101
+ var umaLightTheme = extend(lightTheme, {
1102
+ app: "UmaDocs" /* UmaDocs */,
1103
+ bg: uma.background,
1104
+ smBg: uma.background,
1105
+ secondary: uma.secondary,
1106
+ text: uma.black,
1107
+ link: uma.blue,
1108
+ content: extendBase(lightBaseTheme, {
1109
+ bg: uma.background,
1110
+ smBg: uma.background,
1111
+ text: uma.black,
1112
+ secondary: uma.secondary
1113
+ }),
1114
+ controls: extendBase(lightBaseTheme, {
1115
+ text: uma.black,
1116
+ secondary: uma.secondary,
1117
+ bg: uma.blue90
1118
+ })
1119
+ });
1120
+ var themes = {
1121
+ light: lightTheme,
1122
+ dark: darkTheme,
1123
+ uma: {
1124
+ light: umaLightTheme
1125
+ }
1126
+ };
1127
+ var isDark = (theme) => theme.type === "dark" /* Dark */;
1128
+ var isLight = (theme) => theme.type === "light" /* Light */;
1129
+ var themeOr = (lightValue, darkValue) => ({ theme }) => {
1130
+ return isLight(theme) ? lightValue : darkValue;
1131
+ };
1132
+ function luminance(r, g, b) {
1133
+ const a = [r, g, b].map(function(v) {
1134
+ v /= 255;
1135
+ return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
1136
+ });
1137
+ return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
1138
+ }
1139
+ function contrast(rgb1, rgb2) {
1140
+ const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
1141
+ const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
1142
+ const brightest = Math.max(lum1, lum2);
1143
+ const darkest = Math.min(lum1, lum2);
1144
+ return (brightest + 0.05) / (darkest + 0.05);
1145
+ }
1146
+ function hexToRGB(hex) {
1147
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
1148
+ return result ? [
1149
+ parseInt(result[1], 16),
1150
+ parseInt(result[2], 16),
1151
+ parseInt(result[3], 16)
1152
+ ] : [0, 0, 0];
1153
+ }
1154
+ function useThemeBg() {
1155
+ const theme = (0, import_react3.useTheme)();
1156
+ const bp2 = useBreakpoints();
1157
+ const isSm = bp2.current("sm" /* sm */);
1158
+ if (isDark(theme)) {
1159
+ return darkGradient;
1160
+ }
1161
+ return isSm ? theme.smBg : theme.bg;
1162
+ }
1163
+
1164
+ // src/router.tsx
1165
+ var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
1166
+ function replaceParams(to, params) {
1167
+ if (params) {
1168
+ let toWithParams = to;
1169
+ Object.entries((0, import_lodash_es2.omit)(params, "query")).forEach(([key, value]) => {
1170
+ if (typeof value !== "string") {
1171
+ throw new Error(
1172
+ `Only 'query' may be an object. Route params must be a string, but '${key}' is not.`
1173
+ );
1174
+ }
1175
+ toWithParams = toWithParams.replace(`:${key}`, value);
1176
+ });
1177
+ if (params.query) {
1178
+ let query = params.query;
1179
+ if (typeof query !== "string") {
1180
+ query = Object.entries(params.query).map(([key, value]) => `${key}${value ? `=${value}` : ""}`).join("&");
1181
+ }
1182
+ toWithParams = `${toWithParams}?${query}`;
1183
+ }
1184
+ to = toWithParams;
1185
+ }
1186
+ return to;
1187
+ }
1188
+ function Link({
1189
+ to,
1190
+ params,
1191
+ children,
1192
+ css: css7,
1193
+ onClick,
1194
+ className,
1195
+ hash = null,
1196
+ blue = false,
1197
+ newTab = false
1198
+ }) {
1199
+ let toStr = replaceParams(to, params);
1200
+ toStr += hash ? `#${hash}` : "";
1201
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1202
+ import_react_router_dom.Link,
1203
+ {
1204
+ to: toStr,
1205
+ css: css7,
1206
+ onClick,
1207
+ className,
1208
+ style: { color: blue ? colors.blue43 : "inherit" },
1209
+ target: newTab ? "_blank" : void 0,
1210
+ rel: newTab ? "noopener noreferrer" : void 0,
1211
+ children
1212
+ }
1213
+ );
1214
+ }
1215
+
1216
+ // src/styles/common.tsx
1217
+ var import_react5 = require("@emotion/react");
1218
+ var import_styled = __toESM(require("@emotion/styled"), 1);
1219
+ var import_react_tooltip = require("react-tooltip");
1220
+
1221
+ // src/styles/z-index.tsx
1222
+ var z = {
1223
+ card: 1,
1224
+ fieldError: 1,
1225
+ textInput: 2,
1226
+ select: 3,
1227
+ selectFocused: 4,
1228
+ walletActionPreviewTopGradient: 1,
1229
+ headerContainer: 99,
1230
+ smBanner: 99,
1231
+ headerTop: 100,
1232
+ navMenu: 100,
1233
+ smNavMenu: 100,
1234
+ navAction: 101,
1235
+ smNavAction: 100,
1236
+ // keep under navDropdown
1237
+ tooltip: 160,
1238
+ notificationBanner: 170,
1239
+ qrReaderVideo: 180,
1240
+ qrReaderOverlay: 181,
1241
+ modalOverlay: 190,
1242
+ modalContainer: 191,
1243
+ dropdown: 192,
1244
+ toast: 200
1245
+ };
1246
+
1247
+ // src/styles/common.tsx
1248
+ var rootFontSizePx = 12;
1249
+ var rootFontSizeRems = rootFontSizePx / 16;
1250
+ var standardLineHeightEms = 1.21;
1251
+ var standardContentInsetPx = 32;
1252
+ var standardContentInsetMdPx = 24;
1253
+ var standardContentInsetSmPx = 16;
1254
+ var smContentInset = import_react5.css`
1255
+ ${bp.sm(`
1256
+ margin-left: auto;
1257
+ margin-right: auto;
1258
+ width: calc(100% - ${standardContentInsetSmPx * 2}px);
1259
+ `)}
1260
+ `;
1261
+ var minSmMaxLgContentInset = import_react5.css`
1262
+ ${bp.minSmMaxLg(`
1263
+ width: calc(100% - ${standardContentInsetMdPx * 2}px);
1264
+ `)}
1265
+ `;
1266
+ var standardContentInset = import_react5.css`
1267
+ margin-left: auto;
1268
+ margin-right: auto;
1269
+ width: calc(100% - ${standardContentInsetPx * 2}px);
1270
+ max-width: 1280px;
1271
+
1272
+ ${smContentInset}
1273
+ ${minSmMaxLgContentInset}
1274
+ `;
1275
+ var standardCardShadow = import_react5.css`
1276
+ box-shadow:
1277
+ 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
1278
+ 0px 8px 24px 0px rgba(0, 0, 0, 0.04);
1279
+ `;
1280
+ var pageBorderRadiusPx = 16;
1281
+ var pageBorderRadius = `
1282
+ border-radius: ${pageBorderRadiusPx}px;
1283
+ `;
1284
+ var getFocusOutline = ({
1285
+ theme,
1286
+ onBgHex
1287
+ }) => `${onBgHex ? theme.hcNeutralFromBg(onBgHex) : theme.hcNeutral} dashed 1px`;
1288
+ var outlineOffset = "-2px";
1289
+ var standardFocusOutline = ({ theme }) => import_react5.css`
1290
+ &,
1291
+ & a,
1292
+ & button {
1293
+ &:focus-visible {
1294
+ outline: ${getFocusOutline({ theme })};
1295
+ outline-offset: ${outlineOffset};
1296
+ }
1297
+ }
1298
+ `;
1299
+ var subtext = ({ theme }) => import_react5.css`
1300
+ color: ${theme.c6Neutral};
1301
+ font-weight: 600;
1302
+ `;
1303
+ var Subtext = import_styled.default.div`
1304
+ ${subtext}
1305
+ `;
1306
+ var darkGradientBg = import_react5.css`
1307
+ background: ${darkGradient};
1308
+ `;
1309
+ var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1310
+ z-index: ${z.modalOverlay};
1311
+ `;
1312
+ var overlaySurface = ({ theme }) => import_react5.css`
1313
+ background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })};
1314
+ border: 0.5px solid ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })};
1315
+ ${themeOr(
1316
+ "box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1);",
1317
+ ""
1318
+ )({ theme })}
1319
+ `;
1320
+
1321
+ // src/components/Icon.tsx
1322
+ var import_styled2 = __toESM(require("@emotion/styled"), 1);
1323
+ var import_react6 = require("react");
1324
+
1325
+ // src/utils/strings.tsx
1326
+ function isString(str) {
1327
+ return typeof str === "string";
1328
+ }
1329
+
1330
+ // src/components/Icon.tsx
1331
+ var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1332
+ var iconMap = {};
1333
+ function loadIcon(iconName) {
1334
+ return __async(this, null, function* () {
1335
+ let IconComp;
1336
+ try {
1337
+ ({ default: IconComp } = yield import(
1338
+ /* webpackMode: "eager" */
1339
+ // this can't be a variable only, needs to have some string constraints:
1340
+ `./icons/${iconName}.js`
1341
+ ));
1342
+ } catch (e) {
1343
+ throw new Error(`Icon ${iconName} not found`);
1344
+ }
1345
+ iconMap[iconName] = IconComp;
1346
+ });
1347
+ }
1348
+ function Icon({
1349
+ className,
1350
+ name,
1351
+ width,
1352
+ tutorialStep,
1353
+ mr = 0,
1354
+ ml = 0,
1355
+ verticalAlign = "middle",
1356
+ color = void 0
1357
+ }) {
1358
+ const [, setLoading] = (0, import_react6.useState)(false);
1359
+ const IconComponent = iconMap[name] || null;
1360
+ (0, import_react6.useLayoutEffect)(() => {
1361
+ void (() => __async(this, null, function* () {
1362
+ if (!iconMap[name]) {
1363
+ setLoading(true);
1364
+ yield loadIcon(name);
1365
+ setLoading(false);
1366
+ }
1367
+ }))();
1368
+ }, [name]);
1369
+ const w = parseFloat((width / rootFontSizePx).toFixed(2));
1370
+ const mrRems = parseFloat((mr / rootFontSizePx).toFixed(2));
1371
+ const mlRems = parseFloat((ml / rootFontSizePx).toFixed(2));
1372
+ const va = typeof verticalAlign === "string" ? verticalAlign : parseFloat((verticalAlign / rootFontSizePx).toFixed(2));
1373
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1374
+ IconContainer,
1375
+ {
1376
+ className,
1377
+ w,
1378
+ mr: mrRems,
1379
+ ml: mlRems,
1380
+ verticalAlign: va,
1381
+ fontColor: color,
1382
+ "data-tutorial-tip": tutorialStep == null ? void 0 : tutorialStep.toString(),
1383
+ children: IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(IconComponent, {}) : null
1384
+ }
1385
+ );
1386
+ }
1387
+ var IconContainer = import_styled2.default.span`
1388
+ pointer-events: none;
1389
+ display: inline-flex;
1390
+ ${({ mr, ml, w }) => `
1391
+ width: ${w}em;
1392
+ /* ensure no shrink in flex containers: */
1393
+ min-width: ${w}em;
1394
+ ${mr ? `margin-right: ${mr}em;` : ""}
1395
+ ${ml ? `margin-left: ${ml}em;` : ""}
1396
+ `}
1397
+
1398
+ vertical-align: ${({ verticalAlign }) => isString(verticalAlign) ? verticalAlign : `${verticalAlign}em`};
1399
+
1400
+ ${({ fontColor }) => `
1401
+ & svg {
1402
+ color: ${fontColor || "inherit"};
1403
+ }
1404
+ `}
1405
+ `;
1406
+
1407
+ // src/components/Loading.tsx
1408
+ var import_styled3 = __toESM(require("@emotion/styled"), 1);
1409
+ var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1410
+ var defaultProps = {
1411
+ size: 60,
1412
+ center: true,
1413
+ ml: 0
1414
+ };
1415
+ function Loading({
1416
+ center = defaultProps.center,
1417
+ size: size2 = defaultProps.size,
1418
+ ml = defaultProps.ml
1419
+ }) {
1420
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LoadingWrapper, { center, ml, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Rotate, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "LoadingSpinner", width: size2 }) }) });
1421
+ }
1422
+ Loading.defaultProps = defaultProps;
1423
+ var LoadingWrapper = import_styled3.default.div`
1424
+ flex-grow: 1;
1425
+ display: flex;
1426
+ align-items: center;
1427
+ justify-content: center;
1428
+ text-align: center;
1429
+ width: 100%;
1430
+ margin-left: ${({ ml }) => ml}px;
1431
+
1432
+ ${({ center }) => center && `
1433
+ position: absolute;
1434
+ height: 100%;
1435
+ width: 100%;
1436
+ top: 0;
1437
+ bottom: 0;
1438
+ left: 0;
1439
+ right: 0;
1440
+ margin: 0 !important;
1441
+ `}
1442
+ `;
1443
+ var Rotate = import_styled3.default.div`
1444
+ display: inline-flex;
1445
+ animation: rotate 0.5s linear infinite;
1446
+
1447
+ @keyframes rotate {
1448
+ 0% {
1449
+ transform: rotate(0deg);
1450
+ }
1451
+ 100% {
1452
+ transform: rotate(360deg);
1453
+ }
1454
+ }
1455
+ `;
1456
+
1457
+ // src/components/UnstyledButton.tsx
1458
+ var import_styled4 = __toESM(require("@emotion/styled"), 1);
1459
+ var UnstyledButton = import_styled4.default.button`
1460
+ ${standardFocusOutline}
1461
+ font-family: ${({ theme }) => theme.typography.fontFamilies.main};
1462
+ appearance: none;
1463
+ background: transparent;
1464
+ border: none;
1465
+ padding: 0;
1466
+ cursor: ${({ disabled }) => disabled ? "not-allowed" : "pointer"};
1467
+ /* needed in Safari for some reason */
1468
+ font-size: 1rem;
1469
+ color: inherit;
1470
+ font-weight: inherit;
1471
+ `;
1472
+
1473
+ // src/components/Button.tsx
1474
+ var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
1475
+ function getTextColor({ color, theme, primary: primary2, blue }) {
1476
+ if (color) {
1477
+ return color;
1478
+ }
1479
+ if (blue) {
1480
+ return colors.white;
1481
+ }
1482
+ if (primary2) {
1483
+ const color2 = theme.hcNeutralFromBg(theme.hcNeutral);
1484
+ return color2;
1485
+ }
1486
+ return theme.text;
1487
+ }
1488
+ function getBackgroundColor({
1489
+ backgroundColor,
1490
+ theme,
1491
+ primary: primary2,
1492
+ blue,
1493
+ ghost
1494
+ }) {
1495
+ if (ghost) {
1496
+ return "none";
1497
+ }
1498
+ if (backgroundColor) {
1499
+ return backgroundColor;
1500
+ }
1501
+ if (blue) {
1502
+ return colors.blue43;
1503
+ }
1504
+ if (primary2) {
1505
+ return themeOr(theme.c9Neutral, colors.white)({ theme });
1506
+ }
1507
+ return themeOr(colors.white, theme.c1Neutral)({ theme });
1508
+ }
1509
+ function getPaddingX({ size: size2, ghost }) {
1510
+ return ghost ? 0 : size2 === "lg" ? hPaddingPx : size2 === "md" ? 18 : 16;
1511
+ }
1512
+ function getPadding({ iconWidth, size: size2, ghost, iconSide }) {
1513
+ const paddingY = ghost ? 0 : size2 === "lg" ? 14 : size2 === "md" ? 9 : 6;
1514
+ const paddingX = getPaddingX({ size: size2, ghost });
1515
+ const paddingForIcon = iconWidth && !ghost ? iconWidth : 0;
1516
+ return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
1517
+ }
1518
+ function getBorder({ ghost }) {
1519
+ if (ghost) {
1520
+ return "none";
1521
+ }
1522
+ return "1px solid";
1523
+ }
1524
+ function getInnerBorderColor({
1525
+ backgroundColor,
1526
+ theme,
1527
+ primary: primary2,
1528
+ blue
1529
+ }) {
1530
+ if (primary2 || blue || backgroundColor) {
1531
+ return getBackgroundColor({
1532
+ backgroundColor,
1533
+ theme,
1534
+ primary: primary2,
1535
+ blue
1536
+ });
1537
+ }
1538
+ return themeOr(colors.gray90, colors.gray20)({ theme });
1539
+ }
1540
+ function Button({
1541
+ backgroundColor,
1542
+ color,
1543
+ hoverColor,
1544
+ primary: primary2 = false,
1545
+ ghost = false,
1546
+ text,
1547
+ to,
1548
+ hash,
1549
+ href,
1550
+ toParams,
1551
+ onClick,
1552
+ icon,
1553
+ iconSide = "left",
1554
+ loading = false,
1555
+ fullWidth = false,
1556
+ disabled = false,
1557
+ size: size2 = "lg",
1558
+ mt = 0,
1559
+ ml = 0,
1560
+ type = "button",
1561
+ blue = false,
1562
+ newTab = false,
1563
+ zIndex = void 0
1564
+ }) {
1565
+ const iconMarginRight = 6;
1566
+ const iconSize = size2 === "lg" ? 16 : 12;
1567
+ let currentIcon = null;
1568
+ if (loading) {
1569
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonIcon, { ghost, iconSide, text, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Loading, { size: iconSize, center: false }) });
1570
+ } else if (icon) {
1571
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonIcon, { ghost, iconSide, text, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: icon, width: iconSize }) });
1572
+ }
1573
+ const content = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1574
+ "div",
1575
+ {
1576
+ css: {
1577
+ display: "flex",
1578
+ alignItems: "center",
1579
+ justifyContent: "center"
1580
+ },
1581
+ children: [
1582
+ iconSide === "left" && currentIcon,
1583
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1584
+ "div",
1585
+ {
1586
+ css: {
1587
+ textOverflow: "ellipsis",
1588
+ overflow: "hidden"
1589
+ },
1590
+ children: text
1591
+ }
1592
+ ),
1593
+ iconSide === "right" && currentIcon
1594
+ ]
1595
+ }
1596
+ );
1597
+ const commonProps = {
1598
+ backgroundColor,
1599
+ color,
1600
+ hoverColor,
1601
+ type,
1602
+ size: size2,
1603
+ onClick,
1604
+ primary: primary2,
1605
+ ghost,
1606
+ fullWidth,
1607
+ blue,
1608
+ iconSide,
1609
+ iconWidth: currentIcon ? iconSize + iconMarginRight : 0,
1610
+ isLoading: loading,
1611
+ disabled: disabled || loading,
1612
+ css: {
1613
+ marginTop: mt ? `${mt}px` : void 0,
1614
+ marginLeft: ml ? `${ml}px` : void 0
1615
+ },
1616
+ newTab,
1617
+ text,
1618
+ zIndex
1619
+ };
1620
+ if (to) {
1621
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
1622
+ }
1623
+ return href ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonHrefLink, __spreadProps(__spreadValues({}, commonProps), { href, target: "_blank", children: content })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
1624
+ }
1625
+ var hPaddingPx = 24;
1626
+ var buttonStyle = ({
1627
+ color,
1628
+ backgroundColor,
1629
+ hoverColor,
1630
+ theme,
1631
+ primary: primary2,
1632
+ ghost,
1633
+ disabled,
1634
+ isLoading,
1635
+ size: size2,
1636
+ fullWidth,
1637
+ iconWidth,
1638
+ blue,
1639
+ text,
1640
+ zIndex,
1641
+ iconSide
1642
+ }) => import_react7.css`
1643
+ display: inline-flex;
1644
+ opacity: ${disabled && !isLoading ? 0.2 : 1};
1645
+ transition: opacity 0.2s;
1646
+ position: relative;
1647
+
1648
+ ${zIndex && `z-index: ${zIndex};`}
1649
+
1650
+ color: ${getTextColor({ color, theme, primary: primary2, blue })};
1651
+ font-size: ${["lg", "md"].includes(size2) ? "14px" : "12px"};
1652
+ font-weight: 600;
1653
+
1654
+ &:focus-visible {
1655
+ outline: ${getFocusOutline({ theme })};
1656
+ }
1657
+
1658
+ width: ${fullWidth ? "100%" : "fit-content"};
1659
+
1660
+ & > * {
1661
+ width: 100%;
1662
+ text-align: center;
1663
+ white-space: nowrap;
1664
+ background-color: ${getBackgroundColor({
1665
+ backgroundColor,
1666
+ theme,
1667
+ primary: primary2,
1668
+ blue,
1669
+ ghost
1670
+ })};
1671
+ border: ${getBorder({ ghost })};
1672
+ border-color: ${getInnerBorderColor({
1673
+ backgroundColor,
1674
+ theme,
1675
+ primary: primary2,
1676
+ blue
1677
+ })};
1678
+ border-radius: 32px;
1679
+ padding: ${getPadding({ size: size2, iconWidth, text, ghost, iconSide })};
1680
+ color: ${getTextColor({ color, theme, primary: primary2, blue })};
1681
+ transition:
1682
+ background-color 0.2s ease-out,
1683
+ border-color 0.2s ease-out;
1684
+
1685
+ &:hover {
1686
+ ${hoverColor && ghost ? "" : `background-color: ${hoverColor}; border-color: ${hoverColor};`}
1687
+ }
1688
+ }
1689
+ `;
1690
+ var ButtonIcon = import_styled5.default.div`
1691
+ ${(props) => props.ghost ? "" : "position: absolute;"}
1692
+ ${({ iconSide, ghost, text, size: size2 }) => `${iconSide}: ${ghost && text ? 0 : getPaddingX({ size: size2, ghost })}px;`}
1693
+ `;
1694
+ var StyledButton = (0, import_styled5.default)(UnstyledButton)`
1695
+ ${(props) => buttonStyle(props)}
1696
+ `;
1697
+ var ButtonLink = (0, import_styled5.default)(Link)`
1698
+ ${(props) => buttonStyle(props)}
1699
+ `;
1700
+ var ButtonHrefLink = import_styled5.default.a`
1701
+ ${(props) => buttonStyle(props)}
1702
+ `;
1703
+ var ButtonSelector = (prepend = "", append = "") => `${prepend}${StyledButton.toString()}${append}, ${prepend}${ButtonLink.toString()}${append}, ${prepend}${ButtonHrefLink.toString()}${append}`;
1704
+
1705
+ // src/components/ButtonRow.tsx
1706
+ var import_styled6 = __toESM(require("@emotion/styled"), 1);
1707
+
1708
+ // src/styles/utils.tsx
1709
+ var import_react8 = require("@emotion/react");
1710
+ function pxToRems(rems, asNum = false) {
1711
+ const value = (rems / rootFontSizePx).toFixed(6);
1712
+ return asNum ? Number(value) : `${value}rem`;
1713
+ }
1714
+ var size = {
1715
+ px8: pxToRems(8),
1716
+ px10: pxToRems(10),
1717
+ px12: pxToRems(12),
1718
+ px14: pxToRems(14),
1719
+ px16: pxToRems(16),
1720
+ px18: pxToRems(18),
1721
+ px20: pxToRems(20),
1722
+ px21: pxToRems(21),
1723
+ px24: pxToRems(24)
1724
+ };
1725
+ var flexCenterAxis = import_react8.css`
1726
+ display: flex;
1727
+ align-items: center;
1728
+ `;
1729
+ var flexCenter = import_react8.css`
1730
+ display: flex;
1731
+ justify-content: center;
1732
+ align-items: center;
1733
+ `;
1734
+ var inlineFlexCenter = import_react8.css`
1735
+ display: flex;
1736
+ justify-content: center;
1737
+ align-items: center;
1738
+ `;
1739
+ var flexBetween = import_react8.css`
1740
+ display: flex;
1741
+ justify-content: space-between;
1742
+ align-items: center;
1743
+ `;
1744
+ var absoluteCenter = import_react8.css`
1745
+ position: absolute;
1746
+ top: 0;
1747
+ bottom: 0;
1748
+ left: 0;
1749
+ right: 0;
1750
+ margin: auto;
1751
+ `;
1752
+ var textCenter = import_react8.css`
1753
+ text-align: center;
1754
+ `;
1755
+ var overflowAutoWithoutScrollbars = import_react8.css`
1756
+ overflow: auto;
1757
+ scrollbar-width: none;
1758
+ -ms-overflow-style: none;
1759
+
1760
+ &::-webkit-scrollbar {
1761
+ display: none;
1762
+ }
1763
+
1764
+ &::-moz-scrollbar {
1765
+ display: none;
1766
+ }
1767
+ `;
1768
+
1769
+ // src/components/ButtonRow.tsx
1770
+ var import_jsx_runtime6 = require("@emotion/react/jsx-runtime");
1771
+ function ButtonRow({
1772
+ buttons,
1773
+ className,
1774
+ smSticky = true,
1775
+ headerHeight = 0
1776
+ }) {
1777
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ButtonRowContainer, { smSticky, headerHeight, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(StyledButtonRow, { className, children: buttons.map((button, idx) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Button, __spreadValues({}, button), idx)) }) });
1778
+ }
1779
+ var ButtonRowContainer = import_styled6.default.div`
1780
+ max-width: 100%;
1781
+ ${({ theme }) => bp.sm(`background: ${theme.bg}`)}
1782
+ ${({ headerHeight, smSticky }) => bp.sm(
1783
+ `
1784
+ ${smSticky ? `
1785
+ display: block;
1786
+ position: sticky;
1787
+ top: ${headerHeight}px;
1788
+ margin-top: 24px;
1789
+ margin-left: -${standardContentInsetSmPx}px;
1790
+ width: calc(100% + ${standardContentInsetSmPx * 2}px);
1791
+ max-width: calc(100% + ${standardContentInsetSmPx * 2}px);
1792
+ z-index: 2;` : `position: relative;`}
1793
+ z-index: 2;
1794
+ &:before {
1795
+ content: "";
1796
+ box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.09);
1797
+ height: 1px;
1798
+ position: absolute;
1799
+ background: black;
1800
+ bottom: 1px;
1801
+ width: 100%;
1802
+ z-index: 0;
1803
+ }
1804
+ `
1805
+ )}
1806
+ `;
1807
+ var StyledButtonRow = import_styled6.default.div`
1808
+ ${overflowAutoWithoutScrollbars}
1809
+ background: ${({ theme }) => theme.bg};
1810
+ display: flex;
1811
+ position: relative;
1812
+ z-index: 1;
1813
+
1814
+ & button:not(:first-of-type),
1815
+ & a:not(:first-of-type) {
1816
+ margin-left: 8px;
1817
+ }
1818
+
1819
+ ${bp.sm(`
1820
+ padding: 12px;
1821
+ `)}
1822
+ `;
1823
+
1824
+ // src/components/Collapsible.tsx
1825
+ var import_styled7 = __toESM(require("@emotion/styled"), 1);
1826
+ var import_react9 = require("react");
1827
+ var import_jsx_runtime7 = require("@emotion/react/jsx-runtime");
1828
+ function Collapsible({
1829
+ children,
1830
+ className,
1831
+ text,
1832
+ open,
1833
+ handleToggle,
1834
+ hamburger,
1835
+ full
1836
+ }) {
1837
+ const [isOpen, setIsOpen] = (0, import_react9.useState)(open);
1838
+ const handleClick = () => {
1839
+ if (handleToggle) {
1840
+ handleToggle(!isOpen);
1841
+ }
1842
+ setIsOpen(!isOpen);
1843
+ };
1844
+ (0, import_react9.useEffect)(() => {
1845
+ setIsOpen(open);
1846
+ }, [open]);
1847
+ const iconName = hamburger ? isOpen ? "Close" : "StackedLines" : "Down";
1848
+ const iconWidth = iconName === "Close" ? 12 : 14;
1849
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StyledCollapsible, { className, children: [
1850
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StyledCollapsibleButton, { onClick: handleClick, children: [
1851
+ text ? text : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {}),
1852
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(IconContainer2, { isOpen, hamburger, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { width: iconWidth, name: iconName }) })
1853
+ ] }),
1854
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CollapsingContainer, { isOpen, full, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(InnerPadding, { children }) })
1855
+ ] });
1856
+ }
1857
+ var StyledCollapsible = import_styled7.default.div`
1858
+ display: flex;
1859
+ flex-direction: column;
1860
+ `;
1861
+ var StyledCollapsibleButton = import_styled7.default.button`
1862
+ display: flex;
1863
+ flex-direction: row;
1864
+ align-items: center;
1865
+ justify-content: space-between;
1866
+ background: none;
1867
+ border: none;
1868
+ cursor: pointer;
1869
+ border-radius: 8px;
1870
+ padding: 0;
1871
+ `;
1872
+ var IconContainer2 = import_styled7.default.div`
1873
+ ${(props) => {
1874
+ if (props.hamburger) {
1875
+ return;
1876
+ }
1877
+ return props.isOpen ? `transform: rotate(0deg);` : `transform: rotate(-90deg);`;
1878
+ }}
1879
+ transition: transform 0.25s ease-out;
1880
+ width: 20px;
1881
+ `;
1882
+ var CollapsingContainer = import_styled7.default.div`
1883
+ overflow: scroll;
1884
+ opacity: 0;
1885
+ animation-duration: 0.4s;
1886
+ animation-fill-mode: forwards;
1887
+
1888
+ ${(props) => props.isOpen ? `height: 100%; animation-name: fadeIn;` : `height: 0; animation-name: fadeOut;`}
1889
+ ${(props) => props.full ? `height: ${props.isOpen ? "100vh" : 0};` : ""}
1890
+
1891
+ ${overflowAutoWithoutScrollbars}
1892
+
1893
+ @keyframes fadeIn {
1894
+ from {
1895
+ opacity: 0;
1896
+ transform: translateY(-10px);
1897
+ }
1898
+ to {
1899
+ opacity: 1;
1900
+ transform: none;
1901
+ }
1902
+ }
1903
+
1904
+ @keyframes fadeOut {
1905
+ from {
1906
+ opacity: 1;
1907
+ transform: none;
1908
+ }
1909
+ to {
1910
+ opacity: 0;
1911
+ transform: translateY(-10px);
1912
+ visibility: hidden;
1913
+ }
1914
+ }
1915
+ `;
1916
+ var InnerPadding = import_styled7.default.div`
1917
+ padding: 4px 0 4px 16px;
1918
+ gap: 4px;
1919
+ display: flex;
1920
+ flex-direction: column;
1921
+ `;
1922
+
1923
+ // src/components/CommandKey.tsx
1924
+ var import_styled8 = __toESM(require("@emotion/styled"), 1);
1925
+ var import_jsx_runtime8 = require("@emotion/react/jsx-runtime");
1926
+ var CommandKey = ({
1927
+ keyboardKey,
1928
+ size: size2,
1929
+ color,
1930
+ backgroundColor
1931
+ }) => {
1932
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1933
+ StyledCommandKey,
1934
+ {
1935
+ color,
1936
+ size: size2,
1937
+ backgroundColor,
1938
+ children: keyboardKey
1939
+ }
1940
+ );
1941
+ };
1942
+ var StyledCommandKey = import_styled8.default.div`
1943
+ height: 24px;
1944
+ display: flex;
1945
+ align-items: center;
1946
+ justify-content: center;
1947
+ font-weight: 500;
1948
+ color: ${(props) => props.color || "black"};
1949
+ ${(props) => props.backgroundColor ? `background-color: ${props.backgroundColor};` : ""}
1950
+ border-radius: 3.6px;
1951
+ min-width: ${(props) => props.size === "sm" ? 20 : 24}px;
1952
+ height: ${(props) => props.size === "sm" ? 20 : 24}px;
1953
+ font-size: ${(props) => props.size === "sm" ? 12 : 14}px;
1954
+ padding: 3px 6px;
1955
+ `;
1956
+
1957
+ // src/components/CopyToClipboardButton.tsx
1958
+ var import_styled9 = __toESM(require("@emotion/styled"), 1);
1959
+ var import_nanoid = require("nanoid");
1960
+ var import_react10 = require("react");
1961
+ var import_jsx_runtime9 = require("@emotion/react/jsx-runtime");
1962
+ var CopyToClipboardButton = (props) => {
1963
+ var _a;
1964
+ const originalTooltipContent = props.tooltipContent || "Click to copy";
1965
+ const icon = props.icon || "Copy";
1966
+ const id = `copy-node-name-${(_a = props.id) != null ? _a : (0, import_nanoid.nanoid)()}`;
1967
+ const [tooltipContent, setTooltipContent] = (0, import_react10.useState)(originalTooltipContent);
1968
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
1969
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1970
+ Button2,
1971
+ {
1972
+ type: "button",
1973
+ onClick: () => {
1974
+ void (() => __async(void 0, null, function* () {
1975
+ try {
1976
+ yield navigator.clipboard.writeText(props.value);
1977
+ setTooltipContent("Copied!");
1978
+ } catch (err) {
1979
+ setTooltipContent("Unable to copy");
1980
+ }
1981
+ setTimeout(() => {
1982
+ setTooltipContent(originalTooltipContent);
1983
+ }, 2e3);
1984
+ }))();
1985
+ },
1986
+ css: props.buttonCSS,
1987
+ ml: props.ml,
1988
+ "data-tooltip-id": id,
1989
+ children: [
1990
+ props.children ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Children, { children: props.children }) : null,
1991
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1992
+ ]
1993
+ }
1994
+ ),
1995
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StyledTooltip, { id, place: props.place || "right", variant: "dark", children: tooltipContent })
1996
+ ] });
1997
+ };
1998
+ var Children = import_styled9.default.span`
1999
+ margin-right: 4px;
2000
+ `;
2001
+ var Button2 = (0, import_styled9.default)(UnstyledButton)`
2002
+ background: rgba(0, 0, 0, 0);
2003
+ vertical-align: middle;
2004
+ ${({ ml }) => ml ? `margin-left: ${ml}px` : ""};
2005
+ `;
2006
+
2007
+ // src/components/CurrencyAmount.tsx
2008
+ var import_client = require("@apollo/client");
2009
+ var import_styled10 = __toESM(require("@emotion/styled"), 1);
2010
+ var import_core = require("@lightsparkdev/core");
2011
+ var import_jsx_runtime10 = require("@emotion/react/jsx-runtime");
2012
+ function CurrencyAmount({
2013
+ amount,
2014
+ displayUnit = import_core.CurrencyUnit.SATOSHI,
2015
+ shortNumber = false,
2016
+ showUnits = false,
2017
+ includeEstimatedIndicator = false,
2018
+ /* Product has voted to hide msats from end users.
2019
+ showSubSatDigits should only be used in ops tools: */
2020
+ showSubSatDigits = false,
2021
+ ml = 0
2022
+ }) {
2023
+ const unit = displayUnit;
2024
+ const amountMap = (0, import_core.isCurrencyMap)(amount) ? amount : (0, import_core.mapCurrencyAmount)(amount);
2025
+ const value = amountMap[unit];
2026
+ const defaultFormattedNumber = amountMap.formatted[unit];
2027
+ let formattedNumber = defaultFormattedNumber;
2028
+ if (shortNumber) {
2029
+ formattedNumber = (0, import_core.formatCurrencyStr)(
2030
+ { value: Number(value), unit },
2031
+ 1,
2032
+ true
2033
+ );
2034
+ } else if (showSubSatDigits) {
2035
+ formattedNumber = (0, import_core.formatCurrencyStr)(
2036
+ { value: Number(value), unit: import_core.CurrencyUnit.SATOSHI },
2037
+ 3
2038
+ );
2039
+ }
2040
+ if (showUnits) {
2041
+ formattedNumber += ` ${shorttext(unit, value)}`;
2042
+ }
2043
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(StyledCurrencyAmount, { ml, children: [
2044
+ includeEstimatedIndicator && "Est. ",
2045
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CurrencyIcon, { unit }),
2046
+ formattedNumber
2047
+ ] });
2048
+ }
2049
+ var CurrencyIcon = ({ unit }) => {
2050
+ switch (unit) {
2051
+ case import_core.CurrencyUnit.BITCOIN:
2052
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "BitcoinB", width: 8, verticalAlign: -2, mr: 2 });
2053
+ case import_core.CurrencyUnit.SATOSHI:
2054
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "Satoshi", width: 8, verticalAlign: -2, mr: 2 });
2055
+ default:
2056
+ return null;
2057
+ }
2058
+ };
2059
+ var shorttext = (unit, value) => {
2060
+ const pl = value !== 1;
2061
+ switch (unit) {
2062
+ case import_core.CurrencyUnit.BITCOIN:
2063
+ return "BTC";
2064
+ case import_core.CurrencyUnit.MILLIBITCOIN:
2065
+ return "mBTC";
2066
+ case import_core.CurrencyUnit.MICROBITCOIN:
2067
+ return "\u03BCBTC";
2068
+ case import_core.CurrencyUnit.SATOSHI:
2069
+ return `sat${pl ? "s" : ""}`;
2070
+ case import_core.CurrencyUnit.MILLISATOSHI:
2071
+ return `msat${pl ? "s" : ""}`;
2072
+ }
2073
+ return unit;
2074
+ };
2075
+ var StyledCurrencyAmount = import_styled10.default.span`
2076
+ color: inherit !important;
2077
+ white-space: nowrap;
2078
+ font-feature-settings:
2079
+ "tnum" on,
2080
+ "lnum" on;
2081
+ margin-left: ${({ ml }) => ml}px;
2082
+ `;
2083
+ CurrencyAmount.fragments = {
2084
+ amount: import_client.gql`
2085
+ fragment CurrencyAmount_amount on CurrencyAmount {
2086
+ original_value
2087
+ original_unit
2088
+ preferred_currency_unit
2089
+ preferred_currency_value_rounded
2090
+ preferred_currency_value_approx
2091
+ }
2092
+ `
2093
+ };
2094
+
2095
+ // src/components/LightboxImage.tsx
2096
+ var import_styled11 = __toESM(require("@emotion/styled"), 1);
2097
+ var import_react11 = require("react");
2098
+ var import_jsx_runtime11 = require("@emotion/react/jsx-runtime");
2099
+ var LightboxImage = ({ children }) => {
2100
+ const [isOpen, setIsOpen] = (0, import_react11.useState)(false);
2101
+ const [boundingRect, setBoundingRect] = (0, import_react11.useState)({
2102
+ x: 0,
2103
+ y: 0,
2104
+ width: 0,
2105
+ height: 0
2106
+ });
2107
+ const imageRef = (0, import_react11.useRef)(null);
2108
+ const handleMouseUp = () => {
2109
+ setIsOpen(!isOpen);
2110
+ };
2111
+ const handleSetBoundingRect = (ref) => {
2112
+ var _a;
2113
+ const rect = (_a = ref.current) == null ? void 0 : _a.getBoundingClientRect();
2114
+ if (rect) {
2115
+ setBoundingRect({
2116
+ x: rect.x,
2117
+ y: rect.y,
2118
+ width: rect.width,
2119
+ height: rect.height
2120
+ });
2121
+ }
2122
+ };
2123
+ (0, import_react11.useEffect)(() => {
2124
+ handleSetBoundingRect(imageRef);
2125
+ }, [imageRef]);
2126
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
2127
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DummyImage, { isOpen, boundingRect }),
2128
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2129
+ StyledImage,
2130
+ {
2131
+ isOpen,
2132
+ ref: imageRef,
2133
+ boundingRect,
2134
+ onMouseDown: () => handleSetBoundingRect(imageRef),
2135
+ onMouseUp: handleMouseUp,
2136
+ children
2137
+ }
2138
+ ),
2139
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Lightbox, { isOpen, onClick: handleMouseUp })
2140
+ ] });
2141
+ };
2142
+ var DummyImage = import_styled11.default.div`
2143
+ ${(props) => props.isOpen ? `height: ${props.boundingRect.height}px; width: ${props.boundingRect.width}px;` : ``}
2144
+ `;
2145
+ var StyledImage = import_styled11.default.div`
2146
+ display: flex;
2147
+ justify-content: start;
2148
+ align-items: center;
2149
+ z-index: ${z.modalContainer};
2150
+
2151
+ animation-duration: 0.4s;
2152
+ animation-fill-mode: forwards;
2153
+ transition: all 0.2s ease-out;
2154
+
2155
+ ${(props) => props.isOpen ? `
2156
+ animation-direction: normal;
2157
+ position: fixed;
2158
+ animation-name: zoomIn;
2159
+ pointer-events: none;
2160
+ ` : `
2161
+ &:hover {
2162
+ cursor: zoom-in;
2163
+ }
2164
+ `}
2165
+
2166
+ img {
2167
+ width: 100%;
2168
+ height: 100%;
2169
+ object-fit: contain;
2170
+ }
2171
+
2172
+ @keyframes zoomIn {
2173
+ from {
2174
+ ${(props) => {
2175
+ const { x, y, width, height } = props.boundingRect;
2176
+ return `
2177
+ top: ${y}px;
2178
+ left: ${x}px;
2179
+ width: ${width}px;
2180
+ height: ${height}px;
2181
+ `;
2182
+ }}
2183
+ }
2184
+ to {
2185
+ top: 0;
2186
+ left: 0;
2187
+ width: 100%;
2188
+ height: 100%;
2189
+ padding: 24px;
2190
+ }
2191
+ }
2192
+ `;
2193
+ var Lightbox = import_styled11.default.div`
2194
+ transition: opacity 0.2s ease-out;
2195
+ position: fixed;
2196
+ opacity: 0;
2197
+ z-index: ${z.modalOverlay};
2198
+ top: 0;
2199
+ left: 0;
2200
+ width: 100%;
2201
+ height: 100%;
2202
+
2203
+ ${({ theme, isOpen }) => isOpen ? `
2204
+ opacity: 1;
2205
+ background: ${theme.bg};
2206
+
2207
+ &:hover {
2208
+ cursor: zoom-out;
2209
+ }
2210
+ ` : `
2211
+ pointer-events: none;
2212
+ `}
2213
+ `;
2214
+
2215
+ // src/components/LightsparkProvider.tsx
2216
+ var import_react14 = require("@emotion/react");
2217
+
2218
+ // src/styles/global.tsx
2219
+ var import_react12 = require("@emotion/react");
2220
+ var import_react13 = require("react");
2221
+ var import_react_tooltip2 = require("react-tooltip/dist/react-tooltip.css");
2222
+ var import_fonts = require("../static/fonts.css");
2223
+
2224
+ // src/styles/constants.ts
2225
+ var cssVars = {
2226
+ docHeight: "--doc-height"
2227
+ };
2228
+
2229
+ // src/styles/global.tsx
2230
+ var import_jsx_runtime12 = require("@emotion/react/jsx-runtime");
2231
+ var globalComponentStyles = ({ theme }) => import_react12.css`
2232
+ @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
2233
+
2234
+ html {
2235
+ font-size: ${rootFontSizeRems}rem;
2236
+ color: ${theme.text};
2237
+
2238
+ /* required for iOS https://bit.ly/3Q8syG8 */
2239
+ -webkit-text-size-adjust: none;
2240
+ text-size-adjust: none;
2241
+ }
2242
+
2243
+ body {
2244
+ font-family: ${theme.typography.fontFamilies.main}, sans-serif;
2245
+ font-weight: 500;
2246
+ -webkit-font-smoothing: antialiased;
2247
+ -moz-osx-font-smoothing: grayscale;
2248
+
2249
+ &:before {
2250
+ position: absolute;
2251
+ visibility: hidden;
2252
+ }
2253
+
2254
+ ${bp.sm(`&:before { content: "${"sm" /* sm */}"; }`)}
2255
+ ${bp.minSmMaxMd(`&:before { content: "${"minSmMaxMd" /* minSmMaxMd */}"; }`)}
2256
+ ${bp.minMdMaxLg(
2257
+ `&:before { content: "${"minMdMaxLg" /* minMdMaxLg */}"; }`
2258
+ )}
2259
+ ${bp.lg(`&:before { content: "${"lg" /* lg */}"; }`)}
2260
+ }
2261
+
2262
+ * {
2263
+ box-sizing: border-box;
2264
+ line-height: ${standardLineHeightEms}em;
2265
+ }
2266
+
2267
+ code {
2268
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
2269
+ monospace;
2270
+ }
2271
+
2272
+ a {
2273
+ color: #0d6efd;
2274
+ text-decoration: none;
2275
+ }
2276
+
2277
+ .pretty-scrollbar {
2278
+ scrollbar-width: auto;
2279
+ scrollbar-color: #333333 #000000;
2280
+ }
2281
+
2282
+ .pretty-scrollbar::-webkit-scrollbar {
2283
+ width: 16px;
2284
+ }
2285
+
2286
+ .pretty-scrollbar::-webkit-scrollbar-track {
2287
+ background: #000000;
2288
+ }
2289
+
2290
+ .pretty-scrollbar::-webkit-scrollbar-thumb {
2291
+ background-color: #333333;
2292
+ border-radius: 10px;
2293
+ border: 3px solid #000000;
2294
+ }
2295
+
2296
+ *:focus-visible {
2297
+ outline: ${theme.hcNeutral} dashed 1px;
2298
+ }
2299
+
2300
+ strong {
2301
+ font-weight: 600;
2302
+ }
2303
+ `;
2304
+ function GlobalStyles() {
2305
+ const theme = (0, import_react12.useTheme)();
2306
+ const bg = useThemeBg();
2307
+ (0, import_react13.useEffect)(() => {
2308
+ const documentHeight = () => {
2309
+ const doc = document.documentElement;
2310
+ doc.style.setProperty(cssVars.docHeight, `${window.innerHeight}px`);
2311
+ };
2312
+ window.addEventListener("resize", documentHeight);
2313
+ documentHeight();
2314
+ return () => window.removeEventListener("resize", documentHeight);
2315
+ }, []);
2316
+ const globalStyles = import_react12.css`
2317
+ ${globalComponentStyles({ theme })}
2318
+
2319
+ :root {
2320
+ ${cssVars.docHeight}: 100vh;
2321
+ --rt-opacity: 1;
2322
+ }
2323
+
2324
+ html {
2325
+ background: ${bg};
2326
+ }
2327
+
2328
+ body {
2329
+ height: 100%;
2330
+ margin: 0;
2331
+ min-height: var(${cssVars.docHeight});
2332
+ overflow-x: hidden;
2333
+ overflow-y: auto;
2334
+ overscroll-behavior: auto;
2335
+ }
2336
+
2337
+ [id="root"] {
2338
+ height: 100%;
2339
+ }
2340
+ `;
2341
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react12.Global, { styles: globalStyles });
2342
+ }
2343
+
2344
+ // src/components/LightsparkProvider.tsx
2345
+ var import_jsx_runtime13 = require("@emotion/react/jsx-runtime");
2346
+ function LightsparkProvider({ children }) {
2347
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react14.ThemeProvider, { theme: themes.light, children: [
2348
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(GlobalStyles, {}),
2349
+ children
2350
+ ] });
2351
+ }
2352
+
2353
+ // src/components/Modal.tsx
2354
+ var import_styled12 = __toESM(require("@emotion/styled"), 1);
2355
+ var import_react16 = __toESM(require("react"), 1);
2356
+ var import_react_dom = __toESM(require("react-dom"), 1);
2357
+
2358
+ // src/hooks/useLiveRef.tsx
2359
+ var import_react15 = require("react");
2360
+ function useLiveRef() {
2361
+ const [ready, setReady] = (0, import_react15.useState)(false);
2362
+ const ref = (0, import_react15.useRef)(null);
2363
+ const refCb = (0, import_react15.useCallback)((node) => {
2364
+ if (node !== null) {
2365
+ ref.current = node;
2366
+ setReady(true);
2367
+ }
2368
+ }, []);
2369
+ return [ready ? ref : { current: null }, refCb];
2370
+ }
2371
+
2372
+ // src/components/Modal.tsx
2373
+ var import_jsx_runtime14 = require("@emotion/react/jsx-runtime");
2374
+ function Modal({
2375
+ visible,
2376
+ title,
2377
+ description,
2378
+ children,
2379
+ onClose,
2380
+ onCancel,
2381
+ cancelDisabled,
2382
+ cancelHidden,
2383
+ ghost,
2384
+ onSubmit,
2385
+ submitDisabled,
2386
+ submitLoading,
2387
+ submitText,
2388
+ cancelText,
2389
+ firstFocusRef,
2390
+ nonDismissable = false,
2391
+ autoFocus = true,
2392
+ width
2393
+ }) {
2394
+ const nodeRef = (0, import_react16.useRef)(null);
2395
+ const [defaultFirstFocusRef, defaultFirstFocusRefCb] = useLiveRef();
2396
+ const ref = firstFocusRef || defaultFirstFocusRef;
2397
+ const [nodeReady, setNodeReady] = import_react16.default.useState(false);
2398
+ const overlayRef = (0, import_react16.useRef)(null);
2399
+ const prevFocusedElement = (0, import_react16.useRef)();
2400
+ const modalContainerRef = (0, import_react16.useRef)(null);
2401
+ const bp2 = useBreakpoints();
2402
+ const isSm = bp2.current("sm" /* sm */);
2403
+ (0, import_react16.useEffect)(() => {
2404
+ prevFocusedElement.current = document.activeElement;
2405
+ if (!nodeRef.current) {
2406
+ nodeRef.current = document.createElement("div");
2407
+ document.body.appendChild(nodeRef.current);
2408
+ }
2409
+ setNodeReady(true);
2410
+ return () => {
2411
+ if (nodeRef.current) {
2412
+ document.body.removeChild(nodeRef.current);
2413
+ nodeRef.current = null;
2414
+ }
2415
+ };
2416
+ }, []);
2417
+ (0, import_react16.useEffect)(() => {
2418
+ const handleOutsideClick = (event) => {
2419
+ if (visible && overlayRef.current && event.target && overlayRef.current.contains(event.target) && !nonDismissable) {
2420
+ onClose();
2421
+ }
2422
+ };
2423
+ const handleKeyDown = (event) => {
2424
+ if (visible && event.key === "Escape" && !nonDismissable) {
2425
+ onClose();
2426
+ }
2427
+ };
2428
+ if (visible) {
2429
+ if (modalContainerRef.current) {
2430
+ modalContainerRef.current.addEventListener("keydown", handleKeyDown);
2431
+ }
2432
+ if (overlayRef.current) {
2433
+ overlayRef.current.addEventListener("click", handleOutsideClick);
2434
+ }
2435
+ } else {
2436
+ if (modalContainerRef.current) {
2437
+ modalContainerRef.current.removeEventListener("keydown", handleKeyDown);
2438
+ }
2439
+ if (overlayRef.current) {
2440
+ overlayRef.current.removeEventListener("click", handleOutsideClick);
2441
+ }
2442
+ }
2443
+ const containerRef = modalContainerRef.current;
2444
+ const overlayRefVar = overlayRef.current;
2445
+ return () => {
2446
+ if (containerRef) {
2447
+ containerRef.removeEventListener("keydown", handleKeyDown);
2448
+ }
2449
+ if (overlayRefVar) {
2450
+ overlayRefVar.removeEventListener("click", handleOutsideClick);
2451
+ }
2452
+ };
2453
+ }, [onClose, visible, nonDismissable]);
2454
+ (0, import_react16.useLayoutEffect)(() => {
2455
+ if (visible) {
2456
+ prevFocusedElement.current = document.activeElement;
2457
+ if (typeof ref === "object" && (ref == null ? void 0 : ref.current) && autoFocus) {
2458
+ ref.current.focus();
2459
+ }
2460
+ } else if (prevFocusedElement.current) {
2461
+ prevFocusedElement.current.focus();
2462
+ }
2463
+ }, [visible, ref, autoFocus]);
2464
+ function onClickCloseButton(event) {
2465
+ event.stopPropagation();
2466
+ onClose();
2467
+ }
2468
+ function onSubmitForm(e) {
2469
+ e.preventDefault();
2470
+ if (!submitDisabled && onSubmit) {
2471
+ onSubmit();
2472
+ }
2473
+ }
2474
+ function onClickCancel() {
2475
+ if (onCancel) {
2476
+ onCancel();
2477
+ } else {
2478
+ onClose();
2479
+ }
2480
+ }
2481
+ const modalContent = /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react16.Fragment, { children: [
2482
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ModalOverlay, { ref: overlayRef }),
2483
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2484
+ ModalContainer,
2485
+ {
2486
+ "aria-modal": true,
2487
+ "aria-hidden": true,
2488
+ tabIndex: -1,
2489
+ role: "dialog",
2490
+ ref: modalContainerRef,
2491
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ModalContent, { width, ghost, children: [
2492
+ !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
2493
+ !(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { name: "Close", width: 9 }) }),
2494
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ModalContentInner, { ghost, children: [
2495
+ title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h4", { children: title }) : null,
2496
+ description ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Description, { children: description }) : null,
2497
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children }),
2498
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ModalButtonRow, { children: [
2499
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2500
+ Button,
2501
+ {
2502
+ disabled: cancelDisabled,
2503
+ onClick: onClickCancel,
2504
+ text: cancelText != null ? cancelText : "Cancel"
2505
+ }
2506
+ ),
2507
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2508
+ Button,
2509
+ {
2510
+ disabled: submitDisabled,
2511
+ primary: true,
2512
+ text: submitText != null ? submitText : "Continue",
2513
+ loading: submitLoading,
2514
+ type: "submit"
2515
+ }
2516
+ ),
2517
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { onClick: onClose, text: "Cancel" })
2518
+ ] }) : null
2519
+ ] })
2520
+ ] })
2521
+ }
2522
+ )
2523
+ ] });
2524
+ return visible && nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
2525
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("form", { onSubmit: onSubmitForm, children: modalContent }) : modalContent,
2526
+ nodeRef.current
2527
+ ) : null;
2528
+ }
2529
+ var DefaultFocusTarget = (0, import_styled12.default)(UnstyledButton)`
2530
+ position: absolute;
2531
+ top: -30px;
2532
+ width: 0;
2533
+ height: 0;
2534
+ `;
2535
+ var ModalOverlay = import_styled12.default.div`
2536
+ position: fixed;
2537
+ bottom: 0;
2538
+ left: 0;
2539
+ z-index: ${z.modalOverlay};
2540
+ width: 100vw;
2541
+ height: 100vh;
2542
+ background: rgba(0, 0, 0, 0.5);
2543
+ backdrop-filter: blur(2px);
2544
+ `;
2545
+ var ModalContainer = import_styled12.default.div`
2546
+ pointer-events: none;
2547
+ position: fixed;
2548
+ top: 0;
2549
+ left: 0;
2550
+ z-index: ${z.modalContainer};
2551
+ width: 100%;
2552
+ height: 100%;
2553
+ overflow-x: hidden;
2554
+ overflow-y: auto;
2555
+ outline: 0;
2556
+ display: flex;
2557
+ justify-content: center;
2558
+ align-items: center;
2559
+ color: ${({ theme }) => theme.text};
2560
+ padding-top: ${standardContentInsetSmPx}px;
2561
+ `;
2562
+ var contentTopMarginPx = 24;
2563
+ var Description = import_styled12.default.div`
2564
+ color: ${({ theme }) => theme.mcNeutral};
2565
+ margin-top: 4px;
2566
+ & + * {
2567
+ margin-top: ${contentTopMarginPx}px;
2568
+ }
2569
+ `;
2570
+ var ModalButtonRow = import_styled12.default.div`
2571
+ margin-top: 32px;
2572
+ ${bp.minSm(`display: flex;`)}
2573
+
2574
+ button {
2575
+ width: 50%;
2576
+ ${bp.sm(`
2577
+ width: 100%;
2578
+ `)}
2579
+ }
2580
+
2581
+ button:last-of-type {
2582
+ ${bp.sm(`
2583
+ margin-top: 16px;
2584
+ `)}
2585
+ ${bp.minSm(`
2586
+ margin-left: 10px;
2587
+ `)}
2588
+ }
2589
+ `;
2590
+ var ModalContent = import_styled12.default.div`
2591
+ ${overflowAutoWithoutScrollbars}
2592
+ ${smContentInset}
2593
+ ${(props) => props.ghost ? "" : overlaySurface}
2594
+ pointer-events: auto;
2595
+ width: ${(props) => props.width || 430}px;
2596
+ max-width: 100%;
2597
+ max-height: 100%;
2598
+ border-radius: 16px;
2599
+ position: absolute;
2600
+ ${(props) => props.ghost ? "" : "padding: 16px 16px 40px;"}
2601
+
2602
+ h4 {
2603
+ margin: 0;
2604
+ font-weight: 800;
2605
+ font-size: ${pxToRems(21)};
2606
+ & + *:not(${Description}) {
2607
+ margin-top: ${contentTopMarginPx}px;
2608
+ }
2609
+ }
2610
+ `;
2611
+ var CloseButton = (0, import_styled12.default)(UnstyledButton)`
2612
+ ${standardFocusOutline}
2613
+ width: 24px;
2614
+ height: 24px;
2615
+ `;
2616
+ var ModalContentInner = import_styled12.default.div`
2617
+ ${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
2618
+ ${(props) => props.ghost ? "" : `${bp.sm(`
2619
+ padding-left: 10px;
2620
+ padding-right: 10px;
2621
+ `)}`}
2622
+ `;
2623
+
2624
+ // src/components/SecretContainer.tsx
2625
+ var import_styled13 = __toESM(require("@emotion/styled"), 1);
2626
+ var import_jsx_runtime15 = require("@emotion/react/jsx-runtime");
2627
+ function SecretContainer(props) {
2628
+ return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
2629
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2630
+ "span",
2631
+ {
2632
+ style: {
2633
+ textOverflow: "ellipsis",
2634
+ whiteSpace: "nowrap",
2635
+ overflow: "hidden",
2636
+ flex: 1
2637
+ },
2638
+ children: props.secret
2639
+ }
2640
+ ),
2641
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
2642
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
2643
+ }
2644
+ var StyledSecretContainer = import_styled13.default.div`
2645
+ background-color: ${({ theme, hasSecret, success }) => hasSecret ? success ? theme.success : theme.c05Neutral : theme.bg};
2646
+ border-radius: 8px;
2647
+ padding: 18px 20px;
2648
+ color: ${({ theme, success }) => success ? theme.hcNeutral : theme.text};
2649
+ border: solid 1px
2650
+ ${({ theme, hasSecret }) => hasSecret ? theme.c05Neutral : theme.c1Neutral};
2651
+ display: flex;
2652
+ gap: 4px;
2653
+ `;
2654
+
2655
+ // src/components/TextIconAligner.tsx
2656
+ var import_jsx_runtime16 = require("@emotion/react/jsx-runtime");
2657
+ function TextIconAligner({
2658
+ text,
2659
+ rightIcon,
2660
+ leftIcon,
2661
+ onClick
2662
+ }) {
2663
+ const leftIconNode = leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2664
+ Icon,
2665
+ {
2666
+ name: leftIcon.name,
2667
+ width: leftIcon.lg ? 16 : 12,
2668
+ mr: leftIcon.mr || 6,
2669
+ color: leftIcon.color
2670
+ }
2671
+ ) : null;
2672
+ const rightIconNode = rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2673
+ Icon,
2674
+ {
2675
+ name: rightIcon.name,
2676
+ width: rightIcon.lg ? 16 : 12,
2677
+ ml: rightIcon.ml || 6,
2678
+ color: rightIcon.color
2679
+ }
2680
+ ) : null;
2681
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2682
+ "span",
2683
+ {
2684
+ css: {
2685
+ cursor: onClick ? "pointer" : "inherit",
2686
+ display: "inline-flex",
2687
+ alignItems: "center"
2688
+ },
2689
+ onClick,
2690
+ children: [
2691
+ leftIconNode,
2692
+ text,
2693
+ rightIconNode
2694
+ ]
2695
+ }
2696
+ );
2697
+ }
2698
+ // Annotate the CommonJS export names for ESM import in node:
2699
+ 0 && (module.exports = {
2700
+ Button,
2701
+ ButtonRow,
2702
+ ButtonRowContainer,
2703
+ ButtonSelector,
2704
+ Collapsible,
2705
+ CommandKey,
2706
+ CopyToClipboardButton,
2707
+ CurrencyAmount,
2708
+ CurrencyIcon,
2709
+ Icon,
2710
+ IconContainer,
2711
+ LightboxImage,
2712
+ LightsparkProvider,
2713
+ Loading,
2714
+ LoadingWrapper,
2715
+ Modal,
2716
+ SecretContainer,
2717
+ StyledButton,
2718
+ TextIconAligner,
2719
+ UnstyledButton
2720
+ });