@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,1998 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __defProps = Object.defineProperties;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
+ var __spreadValues = (a, b) => {
15
+ for (var prop in b || (b = {}))
16
+ if (__hasOwnProp.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ if (__getOwnPropSymbols)
19
+ for (var prop of __getOwnPropSymbols(b)) {
20
+ if (__propIsEnum.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ }
23
+ return a;
24
+ };
25
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
+ var __export = (target, all) => {
27
+ for (var name in all)
28
+ __defProp(target, name, { get: all[name], enumerable: true });
29
+ };
30
+ var __copyProps = (to, from, except, desc) => {
31
+ if (from && typeof from === "object" || typeof from === "function") {
32
+ for (let key of __getOwnPropNames(from))
33
+ if (!__hasOwnProp.call(to, key) && key !== except)
34
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
35
+ }
36
+ return to;
37
+ };
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
39
+ // If the importer is in node compatibility mode or this is not an ESM
40
+ // file that has been converted to a CommonJS file using a Babel-
41
+ // compatible transform (i.e. "__esModule" has not been set), then set
42
+ // "default" to the CommonJS "module.exports" for node compatibility.
43
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
44
+ mod
45
+ ));
46
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
47
+ var __async = (__this, __arguments, generator) => {
48
+ return new Promise((resolve, reject) => {
49
+ var fulfilled = (value) => {
50
+ try {
51
+ step(generator.next(value));
52
+ } catch (e) {
53
+ reject(e);
54
+ }
55
+ };
56
+ var rejected = (value) => {
57
+ try {
58
+ step(generator.throw(value));
59
+ } catch (e) {
60
+ reject(e);
61
+ }
62
+ };
63
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
64
+ step((generator = generator.apply(__this, __arguments)).next());
65
+ });
66
+ };
67
+
68
+ // src/components/Modal.tsx
69
+ var Modal_exports = {};
70
+ __export(Modal_exports, {
71
+ Modal: () => Modal
72
+ });
73
+ module.exports = __toCommonJS(Modal_exports);
74
+ var import_styled6 = __toESM(require("@emotion/styled"), 1);
75
+ var import_react10 = __toESM(require("react"), 1);
76
+ var import_react_dom = __toESM(require("react-dom"), 1);
77
+
78
+ // src/hooks/useLiveRef.tsx
79
+ var import_react = require("react");
80
+ function useLiveRef() {
81
+ const [ready, setReady] = (0, import_react.useState)(false);
82
+ const ref = (0, import_react.useRef)(null);
83
+ const refCb = (0, import_react.useCallback)((node) => {
84
+ if (node !== null) {
85
+ ref.current = node;
86
+ setReady(true);
87
+ }
88
+ }, []);
89
+ return [ready ? ref : { current: null }, refCb];
90
+ }
91
+
92
+ // src/styles/breakpoints.tsx
93
+ var import_react2 = require("@emotion/react");
94
+ var import_lodash_es = require("lodash-es");
95
+ var import_react3 = require("react");
96
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
97
+ var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
98
+ Breakpoints2["sm"] = "sm";
99
+ Breakpoints2["md"] = "md";
100
+ Breakpoints2["lg"] = "lg";
101
+ return Breakpoints2;
102
+ })(Breakpoints || {});
103
+ var breakpoints = {
104
+ ["sm" /* sm */]: 640,
105
+ ["md" /* md */]: 834,
106
+ ["lg" /* lg */]: 1200
107
+ };
108
+ var breakpointFn = (mq) => (style) => `@media ${mq} { ${style} }`;
109
+ var bp = {
110
+ key: Breakpoints,
111
+ ["sm" /* sm */]: breakpointFn(`(max-width:${breakpoints.sm}px)`),
112
+ ["lg" /* lg */]: breakpointFn(`(min-width:${breakpoints.lg}px)`),
113
+ ["minSmMaxLg" /* minSmMaxLg */]: breakpointFn(
114
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.lg - 1}px)`
115
+ ),
116
+ ["minSmMaxMd" /* minSmMaxMd */]: breakpointFn(
117
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.md - 1}px)`
118
+ ),
119
+ ["minMdMaxLg" /* minMdMaxLg */]: breakpointFn(
120
+ `(min-width:${breakpoints.md}px) and (max-width:${breakpoints.lg - 1}px)`
121
+ ),
122
+ ["maxLg" /* maxLg */]: breakpointFn(`(max-width:${breakpoints.lg - 1}px)`),
123
+ ["maxMd" /* maxMd */]: breakpointFn(`(max-width:${breakpoints.md - 1}px)`),
124
+ ["minSm" /* minSm */]: breakpointFn(`(min-width:${breakpoints.sm + 1}px)`),
125
+ ["minMd" /* minMd */]: breakpointFn(`(min-width:${breakpoints.md + 1}px)`),
126
+ current: function(assertBp) {
127
+ const currentBp = (
128
+ /* window is undefined in first server side render for Next apps: */
129
+ typeof window === "undefined" ? "sm" /* sm */ : window.getComputedStyle(document.body, ":before").content.replace(/"/g, "")
130
+ );
131
+ if (assertBp) {
132
+ return inRange(
133
+ currentBp,
134
+ assertBp
135
+ );
136
+ }
137
+ return currentBp;
138
+ },
139
+ switch: (smVal, minSmMaxMdVal, minMdMaxLgVal, lgVal) => {
140
+ const currentBp = bp.current();
141
+ if (currentBp === "sm" /* sm */) {
142
+ return smVal;
143
+ } else if (currentBp === "minSmMaxMd" /* minSmMaxMd */) {
144
+ return minSmMaxMdVal;
145
+ } else if (currentBp === "minMdMaxLg" /* minMdMaxLg */) {
146
+ return minMdMaxLgVal;
147
+ }
148
+ return lgVal;
149
+ },
150
+ isSm: () => bp.current("sm" /* sm */),
151
+ isMinSm: () => bp.current("minSm" /* minSm */),
152
+ isMinSmMaxMd: () => bp.current("minSmMaxMd" /* minSmMaxMd */),
153
+ isMinMdMaxLg: () => bp.current("minMdMaxLg" /* minMdMaxLg */),
154
+ isLg: () => bp.current("lg" /* lg */)
155
+ };
156
+ function inRange(currentBp, assertBp) {
157
+ const isSm = currentBp === "sm" /* sm */;
158
+ const isMinSmMaxMd = currentBp === "minSmMaxMd" /* minSmMaxMd */;
159
+ const isMinMdMaxLg = currentBp === "minMdMaxLg" /* minMdMaxLg */;
160
+ const isLg = currentBp === "lg" /* lg */;
161
+ if (assertBp) {
162
+ switch (assertBp) {
163
+ case "sm" /* sm */:
164
+ return isSm;
165
+ case "minSmMaxMd" /* minSmMaxMd */:
166
+ return isMinSmMaxMd;
167
+ case "minMdMaxLg" /* minMdMaxLg */:
168
+ return isMinMdMaxLg;
169
+ case "lg" /* lg */:
170
+ return isLg;
171
+ case "minSmMaxLg" /* minSmMaxLg */:
172
+ return isMinSmMaxMd || isMinMdMaxLg;
173
+ case "maxLg" /* maxLg */:
174
+ return isSm || isMinSmMaxMd || isMinMdMaxLg;
175
+ case "maxMd" /* maxMd */:
176
+ return isSm || isMinSmMaxMd;
177
+ case "minSm" /* minSm */:
178
+ return isMinSmMaxMd || isMinMdMaxLg || isLg;
179
+ case "minMd" /* minMd */:
180
+ return isMinMdMaxLg || isLg;
181
+ default:
182
+ return false;
183
+ }
184
+ }
185
+ return false;
186
+ }
187
+ function useBreakpoints() {
188
+ const [currentBp, setCurrentBp] = (0, import_react3.useState)(bp.current());
189
+ (0, import_react3.useLayoutEffect)(() => {
190
+ const handleResize = () => {
191
+ const newBp = bp.current();
192
+ if (newBp !== currentBp) {
193
+ setCurrentBp(newBp);
194
+ }
195
+ };
196
+ handleResize();
197
+ window.addEventListener("resize", handleResize);
198
+ window.addEventListener("deviceorientation", handleResize);
199
+ return () => {
200
+ window.removeEventListener("resize", handleResize);
201
+ window.removeEventListener("deviceorientation", handleResize);
202
+ };
203
+ });
204
+ return bp;
205
+ }
206
+
207
+ // src/styles/common.tsx
208
+ var import_react5 = require("@emotion/react");
209
+ var import_styled = __toESM(require("@emotion/styled"), 1);
210
+ var import_react_tooltip = require("react-tooltip");
211
+
212
+ // src/styles/colors.tsx
213
+ var import_react4 = require("@emotion/react");
214
+
215
+ // src/styles/fonts/typographyTokens.ts
216
+ var FONT_FAMILIES = {
217
+ main: "Montserrat",
218
+ code: "Monaco"
219
+ };
220
+ var LINE_HEIGHTS = {
221
+ "5xl": "72px",
222
+ "4xl": "60px",
223
+ "3xl": "44px",
224
+ "2xl": "40px",
225
+ xl: "36px",
226
+ lg: "32px",
227
+ md: "28px",
228
+ sm: "24px",
229
+ xs: "20px",
230
+ "2xs": "16px"
231
+ };
232
+ var FONT_WEIGHTS = {
233
+ main: {
234
+ Bold: 700,
235
+ SemiBold: 600,
236
+ Medium: 500
237
+ },
238
+ code: {
239
+ Bold: 700,
240
+ Regular: 400
241
+ }
242
+ };
243
+ var FONT_SIZE = {
244
+ "2xs": "11px",
245
+ xs: "12px",
246
+ sm: "14px",
247
+ md: "16px",
248
+ lg: "20px",
249
+ xl: "24px",
250
+ "2xl": "28px",
251
+ "3xl": "32px",
252
+ "4xl": "36px",
253
+ "5xl": "48px",
254
+ "6xl": "64px"
255
+ };
256
+ var LETTER_SPACING = {
257
+ tight: "-.02em",
258
+ normal: "0",
259
+ loose: ".1em"
260
+ };
261
+ var TEXT_CASE = {
262
+ none: "none",
263
+ uppercase: "uppercase"
264
+ };
265
+ var TEXT_DECORATION = {
266
+ none: "none"
267
+ };
268
+ var PARAGRAPH_INDENT = {
269
+ 0: "0px"
270
+ };
271
+ var PARAGRAPH_SPACING = {
272
+ default: "default",
273
+ 16: "16px",
274
+ 40: "40px"
275
+ };
276
+ var getTypography = (customFontFamilies) => {
277
+ const fontFamilies = customFontFamilies != null ? customFontFamilies : FONT_FAMILIES;
278
+ return {
279
+ fontFamilies,
280
+ lineHeights: LINE_HEIGHTS,
281
+ fontWeights: FONT_WEIGHTS,
282
+ fontSize: FONT_SIZE,
283
+ letterSpacing: LETTER_SPACING,
284
+ textCase: TEXT_CASE,
285
+ textDecoration: TEXT_DECORATION,
286
+ paragraphIndent: PARAGRAPH_INDENT,
287
+ paragraphSpacing: PARAGRAPH_SPACING,
288
+ ["Lightspark" /* Lightspark */]: {
289
+ Display: {
290
+ ["Large" /* Large */]: {
291
+ "font-family": `${fontFamilies.main}`,
292
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
293
+ "line-height": `${LINE_HEIGHTS["5xl"]}`,
294
+ "font-size": `${FONT_SIZE["6xl"]}`,
295
+ "letter-spacing": `${LETTER_SPACING.tight}`,
296
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
297
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
298
+ "text-case": `${TEXT_CASE.none}`,
299
+ "text-decoration": `${TEXT_DECORATION.none}`
300
+ },
301
+ ["Medium" /* Medium */]: {
302
+ "font-family": `${fontFamilies.main}`,
303
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
304
+ "line-height": `${LINE_HEIGHTS["4xl"]}`,
305
+ "font-size": `${FONT_SIZE["5xl"]}`,
306
+ "letter-spacing": `${LETTER_SPACING.tight}`,
307
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
308
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
309
+ "text-case": `${TEXT_CASE.none}`,
310
+ "text-decoration": `${TEXT_DECORATION.none}`
311
+ },
312
+ ["Small" /* Small */]: {
313
+ "font-family": `${fontFamilies.main}`,
314
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
315
+ "line-height": `${LINE_HEIGHTS["3xl"]}`,
316
+ "font-size": `${FONT_SIZE["4xl"]}`,
317
+ "letter-spacing": `${LETTER_SPACING.tight}`,
318
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
319
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
320
+ "text-case": `${TEXT_CASE.none}`,
321
+ "text-decoration": `${TEXT_DECORATION.none}`
322
+ }
323
+ },
324
+ Headline: {
325
+ ["Large" /* Large */]: {
326
+ "font-family": `${fontFamilies.main}`,
327
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
328
+ "line-height": `${LINE_HEIGHTS["2xl"]}`,
329
+ "font-size": `${FONT_SIZE["3xl"]}`,
330
+ "letter-spacing": `${LETTER_SPACING.tight}`,
331
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
332
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
333
+ "text-case": `${TEXT_CASE.none}`,
334
+ "text-decoration": `${TEXT_DECORATION.none}`
335
+ },
336
+ ["Medium" /* Medium */]: {
337
+ "font-family": `${fontFamilies.main}`,
338
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
339
+ "line-height": `${LINE_HEIGHTS.xl}`,
340
+ "font-size": `${FONT_SIZE["2xl"]}`,
341
+ "letter-spacing": `${LETTER_SPACING.tight}`,
342
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
343
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
344
+ "text-case": `${TEXT_CASE.none}`,
345
+ "text-decoration": `${TEXT_DECORATION.none}`
346
+ },
347
+ ["Small" /* Small */]: {
348
+ "font-family": `${fontFamilies.main}`,
349
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
350
+ "line-height": `${LINE_HEIGHTS.lg}`,
351
+ "font-size": `${FONT_SIZE.xl}`,
352
+ "letter-spacing": `${LETTER_SPACING.tight}`,
353
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
354
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
355
+ "text-case": `${TEXT_CASE.none}`,
356
+ "text-decoration": `${TEXT_DECORATION.none}`
357
+ }
358
+ },
359
+ Title: {
360
+ ["Large" /* Large */]: {
361
+ "font-family": `${fontFamilies.main}`,
362
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
363
+ "line-height": `${LINE_HEIGHTS.md}`,
364
+ "font-size": `${FONT_SIZE.lg}`,
365
+ "letter-spacing": `${LETTER_SPACING.normal}`,
366
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
367
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
368
+ "text-case": `${TEXT_CASE.none}`,
369
+ "text-decoration": `${TEXT_DECORATION.none}`
370
+ },
371
+ ["Medium" /* Medium */]: {
372
+ "font-family": `${fontFamilies.main}`,
373
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
374
+ "line-height": `${LINE_HEIGHTS.sm}`,
375
+ "font-size": `${FONT_SIZE.md}`,
376
+ "letter-spacing": `${LETTER_SPACING.normal}`,
377
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
378
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
379
+ "text-case": `${TEXT_CASE.none}`,
380
+ "text-decoration": `${TEXT_DECORATION.none}`
381
+ },
382
+ ["Small" /* Small */]: {
383
+ "font-family": `${fontFamilies.main}`,
384
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
385
+ "line-height": `${LINE_HEIGHTS.xs}`,
386
+ "font-size": `${FONT_SIZE.sm}`,
387
+ "letter-spacing": `${LETTER_SPACING.normal}`,
388
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
389
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
390
+ "text-case": `${TEXT_CASE.none}`,
391
+ "text-decoration": `${TEXT_DECORATION.none}`
392
+ }
393
+ },
394
+ Body: {
395
+ ["Large" /* Large */]: {
396
+ "font-family": `${fontFamilies.main}`,
397
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
398
+ "line-height": `${LINE_HEIGHTS.sm}`,
399
+ "font-size": `${FONT_SIZE.md}`,
400
+ "letter-spacing": `${LETTER_SPACING.normal}`,
401
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
402
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
403
+ "text-case": `${TEXT_CASE.none}`,
404
+ "text-decoration": `${TEXT_DECORATION.none}`
405
+ },
406
+ ["Medium" /* Medium */]: {
407
+ "font-family": `${fontFamilies.main}`,
408
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
409
+ "line-height": `${LINE_HEIGHTS.sm}`,
410
+ "font-size": `${FONT_SIZE.sm}`,
411
+ "letter-spacing": `${LETTER_SPACING.normal}`,
412
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
413
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
414
+ "text-case": `${TEXT_CASE.none}`,
415
+ "text-decoration": `${TEXT_DECORATION.none}`
416
+ },
417
+ ["Small" /* Small */]: {
418
+ "font-family": `${fontFamilies.main}`,
419
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
420
+ "line-height": `${LINE_HEIGHTS.sm}`,
421
+ "font-size": `${FONT_SIZE.xs}`,
422
+ "letter-spacing": `${LETTER_SPACING.normal}`,
423
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
424
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
425
+ "text-case": `${TEXT_CASE.none}`,
426
+ "text-decoration": `${TEXT_DECORATION.none}`
427
+ }
428
+ },
429
+ Label: {
430
+ ["Large" /* Large */]: {
431
+ "font-family": `${fontFamilies.main}`,
432
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
433
+ "line-height": `${LINE_HEIGHTS.xs}`,
434
+ "font-size": `${FONT_SIZE.sm}`,
435
+ "letter-spacing": `${LETTER_SPACING.normal}`,
436
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
437
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
438
+ "text-case": `${TEXT_CASE.none}`,
439
+ "text-decoration": `${TEXT_DECORATION.none}`
440
+ },
441
+ ["Medium" /* Medium */]: {
442
+ "font-family": `${fontFamilies.main}`,
443
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
444
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
445
+ "font-size": `${FONT_SIZE.xs}`,
446
+ "letter-spacing": `${LETTER_SPACING.normal}`,
447
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
448
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
449
+ "text-case": `${TEXT_CASE.none}`,
450
+ "text-decoration": `${TEXT_DECORATION.none}`
451
+ },
452
+ ["Small" /* Small */]: {
453
+ "font-family": `${fontFamilies.main}`,
454
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
455
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
456
+ "font-size": `${FONT_SIZE["2xs"]}`,
457
+ "letter-spacing": `${LETTER_SPACING.normal}`,
458
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
459
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
460
+ "text-case": `${TEXT_CASE.none}`,
461
+ "text-decoration": `${TEXT_DECORATION.none}`
462
+ }
463
+ },
464
+ "Label Strong": {
465
+ ["Large" /* Large */]: {
466
+ "font-family": `${fontFamilies.main}`,
467
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
468
+ "line-height": `${LINE_HEIGHTS.xs}`,
469
+ "font-size": `${FONT_SIZE.sm}`,
470
+ "letter-spacing": `${LETTER_SPACING.normal}`,
471
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
472
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
473
+ "text-case": `${TEXT_CASE.none}`,
474
+ "text-decoration": `${TEXT_DECORATION.none}`
475
+ },
476
+ ["Medium" /* Medium */]: {
477
+ "font-family": `${fontFamilies.main}`,
478
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
479
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
480
+ "font-size": `${FONT_SIZE.xs}`,
481
+ "letter-spacing": `${LETTER_SPACING.normal}`,
482
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
483
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
484
+ "text-case": `${TEXT_CASE.none}`,
485
+ "text-decoration": `${TEXT_DECORATION.none}`
486
+ },
487
+ ["Small" /* Small */]: {
488
+ "font-family": `${fontFamilies.main}`,
489
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
490
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
491
+ "font-size": `${FONT_SIZE["2xs"]}`,
492
+ "letter-spacing": `${LETTER_SPACING.normal}`,
493
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
494
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
495
+ "text-case": `${TEXT_CASE.none}`,
496
+ "text-decoration": `${TEXT_DECORATION.none}`
497
+ }
498
+ },
499
+ Overline: {
500
+ ["Large" /* Large */]: {
501
+ "font-family": `${fontFamilies.code}`,
502
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
503
+ "line-height": `${LINE_HEIGHTS.sm}`,
504
+ "font-size": `${FONT_SIZE.md}`,
505
+ "letter-spacing": `${LETTER_SPACING.loose}`,
506
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
507
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
508
+ "text-case": `${TEXT_CASE.uppercase}`,
509
+ "text-decoration": `${TEXT_DECORATION.none}`
510
+ },
511
+ ["Medium" /* Medium */]: {
512
+ "font-family": `${fontFamilies.code}`,
513
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
514
+ "line-height": `${LINE_HEIGHTS.xs}`,
515
+ "font-size": `${FONT_SIZE.sm}`,
516
+ "letter-spacing": `${LETTER_SPACING.loose}`,
517
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
518
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
519
+ "text-case": `${TEXT_CASE.uppercase}`,
520
+ "text-decoration": `${TEXT_DECORATION.none}`
521
+ },
522
+ ["Small" /* Small */]: {
523
+ "font-family": `${fontFamilies.code}`,
524
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
525
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
526
+ "font-size": `${FONT_SIZE.xs}`,
527
+ "letter-spacing": `${LETTER_SPACING.loose}`,
528
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
529
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
530
+ "text-case": `${TEXT_CASE.uppercase}`,
531
+ "text-decoration": `${TEXT_DECORATION.none}`
532
+ }
533
+ },
534
+ Code: {
535
+ ["Large" /* Large */]: {
536
+ "font-family": `${fontFamilies.code}`,
537
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
538
+ "line-height": `${LINE_HEIGHTS.sm}`,
539
+ "font-size": `${FONT_SIZE.md}`,
540
+ "letter-spacing": `${LETTER_SPACING.normal}`,
541
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
542
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
543
+ "text-case": `${TEXT_CASE.none}`,
544
+ "text-decoration": `${TEXT_DECORATION.none}`
545
+ },
546
+ ["Medium" /* Medium */]: {
547
+ "font-family": `${fontFamilies.code}`,
548
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
549
+ "line-height": `${LINE_HEIGHTS.sm}`,
550
+ "font-size": `${FONT_SIZE.sm}`,
551
+ "letter-spacing": `${LETTER_SPACING.normal}`,
552
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
553
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
554
+ "text-case": `${TEXT_CASE.none}`,
555
+ "text-decoration": `${TEXT_DECORATION.none}`
556
+ },
557
+ ["Small" /* Small */]: {
558
+ "font-family": `${fontFamilies.code}`,
559
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
560
+ "line-height": `${LINE_HEIGHTS.xs}`,
561
+ "font-size": `${FONT_SIZE.xs}`,
562
+ "letter-spacing": `${LETTER_SPACING.normal}`,
563
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
564
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
565
+ "text-case": `${TEXT_CASE.none}`,
566
+ "text-decoration": `${TEXT_DECORATION.none}`
567
+ }
568
+ },
569
+ "Code Strong": {
570
+ ["Large" /* Large */]: {
571
+ "font-family": `${fontFamilies.code}`,
572
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
573
+ "line-height": `${LINE_HEIGHTS.sm}`,
574
+ "font-size": `${FONT_SIZE.md}`,
575
+ "letter-spacing": `${LETTER_SPACING.normal}`,
576
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
577
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
578
+ "text-case": `${TEXT_CASE.none}`,
579
+ "text-decoration": `${TEXT_DECORATION.none}`
580
+ },
581
+ ["Medium" /* Medium */]: {
582
+ "font-family": `${fontFamilies.code}`,
583
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
584
+ "line-height": `${LINE_HEIGHTS.sm}`,
585
+ "font-size": `${FONT_SIZE.sm}`,
586
+ "letter-spacing": `${LETTER_SPACING.normal}`,
587
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
588
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
589
+ "text-case": `${TEXT_CASE.none}`,
590
+ "text-decoration": `${TEXT_DECORATION.none}`
591
+ },
592
+ ["Small" /* Small */]: {
593
+ "font-family": `${fontFamilies.code}`,
594
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
595
+ "line-height": `${LINE_HEIGHTS.xs}`,
596
+ "font-size": `${FONT_SIZE.xs}`,
597
+ "letter-spacing": `${LETTER_SPACING.normal}`,
598
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
599
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
600
+ "text-case": `${TEXT_CASE.none}`,
601
+ "text-decoration": `${TEXT_DECORATION.none}`
602
+ }
603
+ }
604
+ },
605
+ ["UmaDocs" /* UmaDocs */]: {
606
+ Display: {
607
+ ["Large" /* Large */]: {
608
+ "font-family": `${fontFamilies.main}`,
609
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
610
+ "line-height": `${LINE_HEIGHTS["5xl"]}`,
611
+ "font-size": `${FONT_SIZE["6xl"]}`,
612
+ "letter-spacing": `${LETTER_SPACING.tight}`,
613
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
614
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
615
+ "text-case": `${TEXT_CASE.none}`,
616
+ "text-decoration": `${TEXT_DECORATION.none}`
617
+ },
618
+ ["Medium" /* Medium */]: {
619
+ "font-family": `${fontFamilies.main}`,
620
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
621
+ "line-height": `${LINE_HEIGHTS["4xl"]}`,
622
+ "font-size": `${FONT_SIZE["5xl"]}`,
623
+ "letter-spacing": `${LETTER_SPACING.tight}`,
624
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
625
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
626
+ "text-case": `${TEXT_CASE.none}`,
627
+ "text-decoration": `${TEXT_DECORATION.none}`
628
+ },
629
+ ["Small" /* Small */]: {
630
+ "font-family": `${fontFamilies.main}`,
631
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
632
+ "line-height": `${LINE_HEIGHTS["3xl"]}`,
633
+ "font-size": `${FONT_SIZE["4xl"]}`,
634
+ "letter-spacing": `${LETTER_SPACING.tight}`,
635
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
636
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
637
+ "text-case": `${TEXT_CASE.none}`,
638
+ "text-decoration": `${TEXT_DECORATION.none}`
639
+ }
640
+ },
641
+ Headline: {
642
+ ["Large" /* Large */]: {
643
+ "font-family": `${fontFamilies.main}`,
644
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
645
+ "line-height": `${LINE_HEIGHTS["2xl"]}`,
646
+ "font-size": `${FONT_SIZE["3xl"]}`,
647
+ "letter-spacing": `${LETTER_SPACING.tight}`,
648
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
649
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
650
+ "text-case": `${TEXT_CASE.none}`,
651
+ "text-decoration": `${TEXT_DECORATION.none}`
652
+ },
653
+ ["Medium" /* Medium */]: {
654
+ "font-family": `${fontFamilies.main}`,
655
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
656
+ "line-height": `${LINE_HEIGHTS.xl}`,
657
+ "font-size": `${FONT_SIZE["2xl"]}`,
658
+ "letter-spacing": `${LETTER_SPACING.tight}`,
659
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
660
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
661
+ "text-case": `${TEXT_CASE.none}`,
662
+ "text-decoration": `${TEXT_DECORATION.none}`
663
+ },
664
+ ["Small" /* Small */]: {
665
+ "font-family": `${fontFamilies.main}`,
666
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
667
+ "line-height": `${LINE_HEIGHTS.lg}`,
668
+ "font-size": `${FONT_SIZE.xl}`,
669
+ "letter-spacing": `${LETTER_SPACING.tight}`,
670
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
671
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
672
+ "text-case": `${TEXT_CASE.none}`,
673
+ "text-decoration": `${TEXT_DECORATION.none}`
674
+ }
675
+ },
676
+ Title: {
677
+ ["Large" /* Large */]: {
678
+ "font-family": `${fontFamilies.main}`,
679
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
680
+ "line-height": `${LINE_HEIGHTS.md}`,
681
+ "font-size": `${FONT_SIZE.lg}`,
682
+ "letter-spacing": `${LETTER_SPACING.normal}`,
683
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
684
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
685
+ "text-case": `${TEXT_CASE.none}`,
686
+ "text-decoration": `${TEXT_DECORATION.none}`
687
+ },
688
+ ["Medium" /* Medium */]: {
689
+ "font-family": `${fontFamilies.main}`,
690
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
691
+ "line-height": `${LINE_HEIGHTS.sm}`,
692
+ "font-size": `${FONT_SIZE.md}`,
693
+ "letter-spacing": `${LETTER_SPACING.normal}`,
694
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
695
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
696
+ "text-case": `${TEXT_CASE.none}`,
697
+ "text-decoration": `${TEXT_DECORATION.none}`
698
+ },
699
+ ["Small" /* Small */]: {
700
+ "font-family": `${fontFamilies.main}`,
701
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
702
+ "line-height": `${LINE_HEIGHTS.xs}`,
703
+ "font-size": `${FONT_SIZE.sm}`,
704
+ "letter-spacing": `${LETTER_SPACING.normal}`,
705
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
706
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
707
+ "text-case": `${TEXT_CASE.none}`,
708
+ "text-decoration": `${TEXT_DECORATION.none}`
709
+ }
710
+ },
711
+ Body: {
712
+ ["Large" /* Large */]: {
713
+ "font-family": `${fontFamilies.main}`,
714
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
715
+ "line-height": `${LINE_HEIGHTS.sm}`,
716
+ "font-size": `${FONT_SIZE.md}`,
717
+ "letter-spacing": `${LETTER_SPACING.normal}`,
718
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
719
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
720
+ "text-case": `${TEXT_CASE.none}`,
721
+ "text-decoration": `${TEXT_DECORATION.none}`
722
+ },
723
+ ["Medium" /* Medium */]: {
724
+ "font-family": `${fontFamilies.main}`,
725
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
726
+ "line-height": `${LINE_HEIGHTS.sm}`,
727
+ "font-size": `${FONT_SIZE.sm}`,
728
+ "letter-spacing": `${LETTER_SPACING.normal}`,
729
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
730
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
731
+ "text-case": `${TEXT_CASE.none}`,
732
+ "text-decoration": `${TEXT_DECORATION.none}`
733
+ },
734
+ ["Small" /* Small */]: {
735
+ "font-family": `${fontFamilies.main}`,
736
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
737
+ "line-height": `${LINE_HEIGHTS.sm}`,
738
+ "font-size": `${FONT_SIZE.xs}`,
739
+ "letter-spacing": `${LETTER_SPACING.normal}`,
740
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
741
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
742
+ "text-case": `${TEXT_CASE.none}`,
743
+ "text-decoration": `${TEXT_DECORATION.none}`
744
+ }
745
+ },
746
+ Label: {
747
+ ["Large" /* Large */]: {
748
+ "font-family": `${fontFamilies.main}`,
749
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
750
+ "line-height": `${LINE_HEIGHTS.xs}`,
751
+ "font-size": `${FONT_SIZE.sm}`,
752
+ "letter-spacing": `${LETTER_SPACING.normal}`,
753
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
754
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
755
+ "text-case": `${TEXT_CASE.none}`,
756
+ "text-decoration": `${TEXT_DECORATION.none}`
757
+ },
758
+ ["Medium" /* Medium */]: {
759
+ "font-family": `${fontFamilies.main}`,
760
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
761
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
762
+ "font-size": `${FONT_SIZE.xs}`,
763
+ "letter-spacing": `${LETTER_SPACING.normal}`,
764
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
765
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
766
+ "text-case": `${TEXT_CASE.none}`,
767
+ "text-decoration": `${TEXT_DECORATION.none}`
768
+ },
769
+ ["Small" /* Small */]: {
770
+ "font-family": `${fontFamilies.main}`,
771
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
772
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
773
+ "font-size": `${FONT_SIZE["2xs"]}`,
774
+ "letter-spacing": `${LETTER_SPACING.normal}`,
775
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
776
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
777
+ "text-case": `${TEXT_CASE.none}`,
778
+ "text-decoration": `${TEXT_DECORATION.none}`
779
+ }
780
+ },
781
+ "Label Strong": {
782
+ ["Large" /* Large */]: {
783
+ "font-family": `${fontFamilies.main}`,
784
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
785
+ "line-height": `${LINE_HEIGHTS.xs}`,
786
+ "font-size": `${FONT_SIZE.sm}`,
787
+ "letter-spacing": `${LETTER_SPACING.normal}`,
788
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
789
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
790
+ "text-case": `${TEXT_CASE.none}`,
791
+ "text-decoration": `${TEXT_DECORATION.none}`
792
+ },
793
+ ["Medium" /* Medium */]: {
794
+ "font-family": `${fontFamilies.main}`,
795
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
796
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
797
+ "font-size": `${FONT_SIZE.xs}`,
798
+ "letter-spacing": `${LETTER_SPACING.normal}`,
799
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
800
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
801
+ "text-case": `${TEXT_CASE.none}`,
802
+ "text-decoration": `${TEXT_DECORATION.none}`
803
+ },
804
+ ["Small" /* Small */]: {
805
+ "font-family": `${fontFamilies.main}`,
806
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
807
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
808
+ "font-size": `${FONT_SIZE["2xs"]}`,
809
+ "letter-spacing": `${LETTER_SPACING.normal}`,
810
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
811
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
812
+ "text-case": `${TEXT_CASE.none}`,
813
+ "text-decoration": `${TEXT_DECORATION.none}`
814
+ }
815
+ },
816
+ Overline: {
817
+ ["Large" /* Large */]: {
818
+ "font-family": `${fontFamilies.code}`,
819
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
820
+ "line-height": `${LINE_HEIGHTS.sm}`,
821
+ "font-size": `${FONT_SIZE.md}`,
822
+ "letter-spacing": `${LETTER_SPACING.loose}`,
823
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
824
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
825
+ "text-case": `${TEXT_CASE.uppercase}`,
826
+ "text-decoration": `${TEXT_DECORATION.none}`
827
+ },
828
+ ["Medium" /* Medium */]: {
829
+ "font-family": `${fontFamilies.code}`,
830
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
831
+ "line-height": `${LINE_HEIGHTS.xs}`,
832
+ "font-size": `${FONT_SIZE.sm}`,
833
+ "letter-spacing": `${LETTER_SPACING.loose}`,
834
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
835
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
836
+ "text-case": `${TEXT_CASE.uppercase}`,
837
+ "text-decoration": `${TEXT_DECORATION.none}`
838
+ },
839
+ ["Small" /* Small */]: {
840
+ "font-family": `${fontFamilies.code}`,
841
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
842
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
843
+ "font-size": `${FONT_SIZE.xs}`,
844
+ "letter-spacing": `${LETTER_SPACING.loose}`,
845
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
846
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
847
+ "text-case": `${TEXT_CASE.uppercase}`,
848
+ "text-decoration": `${TEXT_DECORATION.none}`
849
+ }
850
+ },
851
+ Code: {
852
+ ["Large" /* Large */]: {
853
+ "font-family": `${fontFamilies.code}`,
854
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
855
+ "line-height": `${LINE_HEIGHTS.sm}`,
856
+ "font-size": `${FONT_SIZE.md}`,
857
+ "letter-spacing": `${LETTER_SPACING.normal}`,
858
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
859
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
860
+ "text-case": `${TEXT_CASE.none}`,
861
+ "text-decoration": `${TEXT_DECORATION.none}`
862
+ },
863
+ ["Medium" /* Medium */]: {
864
+ "font-family": `${fontFamilies.code}`,
865
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
866
+ "line-height": `${LINE_HEIGHTS.sm}`,
867
+ "font-size": `${FONT_SIZE.sm}`,
868
+ "letter-spacing": `${LETTER_SPACING.normal}`,
869
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
870
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
871
+ "text-case": `${TEXT_CASE.none}`,
872
+ "text-decoration": `${TEXT_DECORATION.none}`
873
+ },
874
+ ["Small" /* Small */]: {
875
+ "font-family": `${fontFamilies.code}`,
876
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
877
+ "line-height": `${LINE_HEIGHTS.xs}`,
878
+ "font-size": `${FONT_SIZE.xs}`,
879
+ "letter-spacing": `${LETTER_SPACING.normal}`,
880
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
881
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
882
+ "text-case": `${TEXT_CASE.none}`,
883
+ "text-decoration": `${TEXT_DECORATION.none}`
884
+ }
885
+ },
886
+ "Code Strong": {
887
+ ["Large" /* Large */]: {
888
+ "font-family": `${fontFamilies.code}`,
889
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
890
+ "line-height": `${LINE_HEIGHTS.sm}`,
891
+ "font-size": `${FONT_SIZE.md}`,
892
+ "letter-spacing": `${LETTER_SPACING.normal}`,
893
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
894
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
895
+ "text-case": `${TEXT_CASE.none}`,
896
+ "text-decoration": `${TEXT_DECORATION.none}`
897
+ },
898
+ ["Medium" /* Medium */]: {
899
+ "font-family": `${fontFamilies.code}`,
900
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
901
+ "line-height": `${LINE_HEIGHTS.sm}`,
902
+ "font-size": `${FONT_SIZE.sm}`,
903
+ "letter-spacing": `${LETTER_SPACING.normal}`,
904
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
905
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
906
+ "text-case": `${TEXT_CASE.none}`,
907
+ "text-decoration": `${TEXT_DECORATION.none}`
908
+ },
909
+ ["Small" /* Small */]: {
910
+ "font-family": `${fontFamilies.code}`,
911
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
912
+ "line-height": `${LINE_HEIGHTS.sm}`,
913
+ "font-size": `${FONT_SIZE.xs}`,
914
+ "letter-spacing": `${LETTER_SPACING.normal}`,
915
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
916
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
917
+ "text-case": `${TEXT_CASE.none}`,
918
+ "text-decoration": `${TEXT_DECORATION.none}`
919
+ }
920
+ }
921
+ }
922
+ };
923
+ };
924
+
925
+ // src/styles/colors.tsx
926
+ var neutral = {
927
+ black: "#000000",
928
+ gray5: "#0D0D0D",
929
+ gray10: "#1A1A1A",
930
+ gray15: "#262626",
931
+ gray20: "#333333",
932
+ gray25: "#404040",
933
+ gray30: "#4D4D4D",
934
+ gray40: "#666666",
935
+ gray50: "#808080",
936
+ gray60: "#999999",
937
+ gray70: "#B3B3B3",
938
+ gray80: "#CCCCCC",
939
+ gray85: "#D9D9D9",
940
+ gray90: "#E6E6E6",
941
+ gray95: "#F2F2F2",
942
+ white: "#FFFFFF"
943
+ };
944
+ var uma = {
945
+ background: "#F9F9F9",
946
+ black: "#16171A",
947
+ blue: "#0068C9",
948
+ blue50: "#C0C9D6",
949
+ blue80: "#DCE2EA",
950
+ blue90: "#EBEEF2",
951
+ blue95: "#F2F5F7",
952
+ grey300: "#DEDFE4",
953
+ secondary: "#686A72",
954
+ stroke: "#C0C9D6",
955
+ strokeProminent: "#9BA7B9",
956
+ fill: "#EBEEF2"
957
+ };
958
+ var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
959
+ var primary = "#FFF14E";
960
+ var colors = __spreadProps(__spreadValues({}, neutral), {
961
+ uma,
962
+ // green
963
+ success: "#17C27C",
964
+ // blue
965
+ blue43: "#145BC6",
966
+ blue22: "#0E2E60",
967
+ blue58: "#28BFFF",
968
+ blue95: "#EBEEF2",
969
+ // yellow
970
+ primary,
971
+ warning: primary,
972
+ // orange
973
+ danger: "#FD2C0F",
974
+ // neutral
975
+ secondary: neutral.black,
976
+ // billing
977
+ tier1: "#179257",
978
+ tier2: "#8B38DE",
979
+ tier3: "#0048F7"
980
+ });
981
+ function extend(obj, rest) {
982
+ return __spreadValues(__spreadValues({}, obj), rest);
983
+ }
984
+ function extendBase(obj, rest) {
985
+ return __spreadValues(__spreadValues({}, obj), rest);
986
+ }
987
+ function hcNeutralFromBg(bgHex, defaultHex, altHex) {
988
+ const bgRGB = hexToRGB(bgHex);
989
+ const hcRGB = hexToRGB(defaultHex);
990
+ if (!bgRGB || !hcRGB)
991
+ return defaultHex;
992
+ const c = contrast(bgRGB, hcRGB);
993
+ if (c < 4.5) {
994
+ return altHex;
995
+ }
996
+ return defaultHex;
997
+ }
998
+ var lightBaseTheme = {
999
+ type: "light" /* Light */,
1000
+ app: "Lightspark" /* Lightspark */,
1001
+ bg: colors.white,
1002
+ smBg: colors.white,
1003
+ c05Neutral: neutral.gray95,
1004
+ c1Neutral: neutral.gray90,
1005
+ c15Neutral: neutral.gray85,
1006
+ c2Neutral: neutral.gray80,
1007
+ c3Neutral: neutral.gray70,
1008
+ c4Neutral: neutral.gray60,
1009
+ c5Neutral: neutral.gray50,
1010
+ c6Neutral: neutral.gray40,
1011
+ c7Neutral: neutral.gray30,
1012
+ c8Neutral: neutral.gray20,
1013
+ c9Neutral: neutral.gray10,
1014
+ danger: colors.danger,
1015
+ hcNeutral: colors.black,
1016
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
1017
+ info: colors.blue43,
1018
+ lcNeutral: neutral.gray80,
1019
+ link: colors.blue43,
1020
+ mcNeutral: neutral.gray40,
1021
+ onInfoText: colors.white,
1022
+ onPrimaryText: colors.black,
1023
+ onSuccessText: colors.white,
1024
+ primary: colors.primary,
1025
+ secondary: colors.secondary,
1026
+ success: colors.success,
1027
+ text: colors.black,
1028
+ typography: getTypography(),
1029
+ vlcNeutral: neutral.gray95,
1030
+ warning: colors.warning
1031
+ };
1032
+ var darkBaseTheme = {
1033
+ type: "dark" /* Dark */,
1034
+ app: "Lightspark" /* Lightspark */,
1035
+ bg: colors.black,
1036
+ smBg: colors.black,
1037
+ c05Neutral: neutral.gray5,
1038
+ c1Neutral: neutral.gray10,
1039
+ c15Neutral: neutral.gray15,
1040
+ c2Neutral: neutral.gray20,
1041
+ c3Neutral: neutral.gray30,
1042
+ c4Neutral: neutral.gray40,
1043
+ c5Neutral: neutral.gray50,
1044
+ c6Neutral: neutral.gray60,
1045
+ c7Neutral: neutral.gray70,
1046
+ c8Neutral: neutral.gray80,
1047
+ c9Neutral: neutral.gray90,
1048
+ danger: colors.danger,
1049
+ hcNeutral: colors.white,
1050
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.white, colors.black),
1051
+ info: colors.white,
1052
+ lcNeutral: neutral.gray40,
1053
+ link: colors.blue43,
1054
+ mcNeutral: neutral.gray60,
1055
+ onInfoText: colors.white,
1056
+ onPrimaryText: colors.black,
1057
+ onSuccessText: colors.white,
1058
+ primary: colors.primary,
1059
+ secondary: colors.secondary,
1060
+ success: colors.success,
1061
+ text: colors.white,
1062
+ typography: getTypography(),
1063
+ vlcNeutral: neutral.gray20,
1064
+ warning: colors.warning
1065
+ };
1066
+ var lightTheme = extend(lightBaseTheme, {
1067
+ header: extendBase(lightBaseTheme, {
1068
+ text: colors.gray60
1069
+ }),
1070
+ nav: extendBase(lightBaseTheme, {
1071
+ text: colors.gray10,
1072
+ secondary: colors.secondary
1073
+ }),
1074
+ content: extendBase(lightBaseTheme, {
1075
+ bg: colors.white,
1076
+ smBg: colors.white
1077
+ }),
1078
+ controls: extendBase(lightBaseTheme, {
1079
+ bg: neutral.gray95,
1080
+ smBg: neutral.gray95,
1081
+ text: neutral.gray60,
1082
+ secondary: colors.secondary
1083
+ })
1084
+ });
1085
+ var darkTheme = extend(darkBaseTheme, {
1086
+ header: extendBase(darkBaseTheme, {}),
1087
+ nav: extendBase(darkBaseTheme, {}),
1088
+ content: extendBase(darkBaseTheme, {}),
1089
+ controls: extendBase(darkBaseTheme, {
1090
+ bg: neutral.gray40,
1091
+ smBg: neutral.gray40,
1092
+ text: neutral.white,
1093
+ secondary: colors.secondary
1094
+ })
1095
+ });
1096
+ var umaLightTheme = extend(lightTheme, {
1097
+ app: "UmaDocs" /* UmaDocs */,
1098
+ bg: uma.background,
1099
+ smBg: uma.background,
1100
+ secondary: uma.secondary,
1101
+ text: uma.black,
1102
+ link: uma.blue,
1103
+ content: extendBase(lightBaseTheme, {
1104
+ bg: uma.background,
1105
+ smBg: uma.background,
1106
+ text: uma.black,
1107
+ secondary: uma.secondary
1108
+ }),
1109
+ controls: extendBase(lightBaseTheme, {
1110
+ text: uma.black,
1111
+ secondary: uma.secondary,
1112
+ bg: uma.blue90
1113
+ })
1114
+ });
1115
+ var isLight = (theme) => theme.type === "light" /* Light */;
1116
+ var themeOr = (lightValue, darkValue) => ({ theme }) => {
1117
+ return isLight(theme) ? lightValue : darkValue;
1118
+ };
1119
+ function luminance(r, g, b) {
1120
+ const a = [r, g, b].map(function(v) {
1121
+ v /= 255;
1122
+ return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
1123
+ });
1124
+ return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
1125
+ }
1126
+ function contrast(rgb1, rgb2) {
1127
+ const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
1128
+ const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
1129
+ const brightest = Math.max(lum1, lum2);
1130
+ const darkest = Math.min(lum1, lum2);
1131
+ return (brightest + 0.05) / (darkest + 0.05);
1132
+ }
1133
+ function hexToRGB(hex) {
1134
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
1135
+ return result ? [
1136
+ parseInt(result[1], 16),
1137
+ parseInt(result[2], 16),
1138
+ parseInt(result[3], 16)
1139
+ ] : [0, 0, 0];
1140
+ }
1141
+
1142
+ // src/styles/z-index.tsx
1143
+ var z = {
1144
+ card: 1,
1145
+ fieldError: 1,
1146
+ textInput: 2,
1147
+ select: 3,
1148
+ selectFocused: 4,
1149
+ walletActionPreviewTopGradient: 1,
1150
+ headerContainer: 99,
1151
+ smBanner: 99,
1152
+ headerTop: 100,
1153
+ navMenu: 100,
1154
+ smNavMenu: 100,
1155
+ navAction: 101,
1156
+ smNavAction: 100,
1157
+ // keep under navDropdown
1158
+ tooltip: 160,
1159
+ notificationBanner: 170,
1160
+ qrReaderVideo: 180,
1161
+ qrReaderOverlay: 181,
1162
+ modalOverlay: 190,
1163
+ modalContainer: 191,
1164
+ dropdown: 192,
1165
+ toast: 200
1166
+ };
1167
+
1168
+ // src/styles/common.tsx
1169
+ var rootFontSizePx = 12;
1170
+ var rootFontSizeRems = rootFontSizePx / 16;
1171
+ var standardContentInsetPx = 32;
1172
+ var standardContentInsetMdPx = 24;
1173
+ var standardContentInsetSmPx = 16;
1174
+ var smContentInset = import_react5.css`
1175
+ ${bp.sm(`
1176
+ margin-left: auto;
1177
+ margin-right: auto;
1178
+ width: calc(100% - ${standardContentInsetSmPx * 2}px);
1179
+ `)}
1180
+ `;
1181
+ var minSmMaxLgContentInset = import_react5.css`
1182
+ ${bp.minSmMaxLg(`
1183
+ width: calc(100% - ${standardContentInsetMdPx * 2}px);
1184
+ `)}
1185
+ `;
1186
+ var standardContentInset = import_react5.css`
1187
+ margin-left: auto;
1188
+ margin-right: auto;
1189
+ width: calc(100% - ${standardContentInsetPx * 2}px);
1190
+ max-width: 1280px;
1191
+
1192
+ ${smContentInset}
1193
+ ${minSmMaxLgContentInset}
1194
+ `;
1195
+ var standardCardShadow = import_react5.css`
1196
+ box-shadow:
1197
+ 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
1198
+ 0px 8px 24px 0px rgba(0, 0, 0, 0.04);
1199
+ `;
1200
+ var pageBorderRadiusPx = 16;
1201
+ var pageBorderRadius = `
1202
+ border-radius: ${pageBorderRadiusPx}px;
1203
+ `;
1204
+ var getFocusOutline = ({
1205
+ theme,
1206
+ onBgHex
1207
+ }) => `${onBgHex ? theme.hcNeutralFromBg(onBgHex) : theme.hcNeutral} dashed 1px`;
1208
+ var outlineOffset = "-2px";
1209
+ var standardFocusOutline = ({ theme }) => import_react5.css`
1210
+ &,
1211
+ & a,
1212
+ & button {
1213
+ &:focus-visible {
1214
+ outline: ${getFocusOutline({ theme })};
1215
+ outline-offset: ${outlineOffset};
1216
+ }
1217
+ }
1218
+ `;
1219
+ var subtext = ({ theme }) => import_react5.css`
1220
+ color: ${theme.c6Neutral};
1221
+ font-weight: 600;
1222
+ `;
1223
+ var Subtext = import_styled.default.div`
1224
+ ${subtext}
1225
+ `;
1226
+ var darkGradientBg = import_react5.css`
1227
+ background: ${darkGradient};
1228
+ `;
1229
+ var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1230
+ z-index: ${z.modalOverlay};
1231
+ `;
1232
+ var overlaySurface = ({ theme }) => import_react5.css`
1233
+ background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })};
1234
+ border: 0.5px solid ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })};
1235
+ ${themeOr(
1236
+ "box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1);",
1237
+ ""
1238
+ )({ theme })}
1239
+ `;
1240
+
1241
+ // src/styles/utils.tsx
1242
+ var import_react6 = require("@emotion/react");
1243
+ function pxToRems(rems, asNum = false) {
1244
+ const value = (rems / rootFontSizePx).toFixed(6);
1245
+ return asNum ? Number(value) : `${value}rem`;
1246
+ }
1247
+ var size = {
1248
+ px8: pxToRems(8),
1249
+ px10: pxToRems(10),
1250
+ px12: pxToRems(12),
1251
+ px14: pxToRems(14),
1252
+ px16: pxToRems(16),
1253
+ px18: pxToRems(18),
1254
+ px20: pxToRems(20),
1255
+ px21: pxToRems(21),
1256
+ px24: pxToRems(24)
1257
+ };
1258
+ var flexCenterAxis = import_react6.css`
1259
+ display: flex;
1260
+ align-items: center;
1261
+ `;
1262
+ var flexCenter = import_react6.css`
1263
+ display: flex;
1264
+ justify-content: center;
1265
+ align-items: center;
1266
+ `;
1267
+ var inlineFlexCenter = import_react6.css`
1268
+ display: flex;
1269
+ justify-content: center;
1270
+ align-items: center;
1271
+ `;
1272
+ var flexBetween = import_react6.css`
1273
+ display: flex;
1274
+ justify-content: space-between;
1275
+ align-items: center;
1276
+ `;
1277
+ var absoluteCenter = import_react6.css`
1278
+ position: absolute;
1279
+ top: 0;
1280
+ bottom: 0;
1281
+ left: 0;
1282
+ right: 0;
1283
+ margin: auto;
1284
+ `;
1285
+ var textCenter = import_react6.css`
1286
+ text-align: center;
1287
+ `;
1288
+ var overflowAutoWithoutScrollbars = import_react6.css`
1289
+ overflow: auto;
1290
+ scrollbar-width: none;
1291
+ -ms-overflow-style: none;
1292
+
1293
+ &::-webkit-scrollbar {
1294
+ display: none;
1295
+ }
1296
+
1297
+ &::-moz-scrollbar {
1298
+ display: none;
1299
+ }
1300
+ `;
1301
+
1302
+ // src/components/Button.tsx
1303
+ var import_react9 = require("@emotion/react");
1304
+ var import_styled5 = __toESM(require("@emotion/styled"), 1);
1305
+
1306
+ // src/router.tsx
1307
+ var import_lodash_es2 = require("lodash-es");
1308
+ var import_react7 = require("react");
1309
+ var import_react_router_dom = require("react-router-dom");
1310
+ var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
1311
+ function replaceParams(to, params) {
1312
+ if (params) {
1313
+ let toWithParams = to;
1314
+ Object.entries((0, import_lodash_es2.omit)(params, "query")).forEach(([key, value]) => {
1315
+ if (typeof value !== "string") {
1316
+ throw new Error(
1317
+ `Only 'query' may be an object. Route params must be a string, but '${key}' is not.`
1318
+ );
1319
+ }
1320
+ toWithParams = toWithParams.replace(`:${key}`, value);
1321
+ });
1322
+ if (params.query) {
1323
+ let query = params.query;
1324
+ if (typeof query !== "string") {
1325
+ query = Object.entries(params.query).map(([key, value]) => `${key}${value ? `=${value}` : ""}`).join("&");
1326
+ }
1327
+ toWithParams = `${toWithParams}?${query}`;
1328
+ }
1329
+ to = toWithParams;
1330
+ }
1331
+ return to;
1332
+ }
1333
+ function Link({
1334
+ to,
1335
+ params,
1336
+ children,
1337
+ css: css6,
1338
+ onClick,
1339
+ className,
1340
+ hash = null,
1341
+ blue = false,
1342
+ newTab = false
1343
+ }) {
1344
+ let toStr = replaceParams(to, params);
1345
+ toStr += hash ? `#${hash}` : "";
1346
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1347
+ import_react_router_dom.Link,
1348
+ {
1349
+ to: toStr,
1350
+ css: css6,
1351
+ onClick,
1352
+ className,
1353
+ style: { color: blue ? colors.blue43 : "inherit" },
1354
+ target: newTab ? "_blank" : void 0,
1355
+ rel: newTab ? "noopener noreferrer" : void 0,
1356
+ children
1357
+ }
1358
+ );
1359
+ }
1360
+
1361
+ // src/components/Icon.tsx
1362
+ var import_styled2 = __toESM(require("@emotion/styled"), 1);
1363
+ var import_react8 = require("react");
1364
+
1365
+ // src/utils/strings.tsx
1366
+ function isString(str) {
1367
+ return typeof str === "string";
1368
+ }
1369
+
1370
+ // src/components/Icon.tsx
1371
+ var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1372
+ var iconMap = {};
1373
+ function loadIcon(iconName) {
1374
+ return __async(this, null, function* () {
1375
+ let IconComp;
1376
+ try {
1377
+ ({ default: IconComp } = yield import(
1378
+ /* webpackMode: "eager" */
1379
+ // this can't be a variable only, needs to have some string constraints:
1380
+ `./icons/${iconName}.js`
1381
+ ));
1382
+ } catch (e) {
1383
+ throw new Error(`Icon ${iconName} not found`);
1384
+ }
1385
+ iconMap[iconName] = IconComp;
1386
+ });
1387
+ }
1388
+ function Icon({
1389
+ className,
1390
+ name,
1391
+ width,
1392
+ tutorialStep,
1393
+ mr = 0,
1394
+ ml = 0,
1395
+ verticalAlign = "middle",
1396
+ color = void 0
1397
+ }) {
1398
+ const [, setLoading] = (0, import_react8.useState)(false);
1399
+ const IconComponent = iconMap[name] || null;
1400
+ (0, import_react8.useLayoutEffect)(() => {
1401
+ void (() => __async(this, null, function* () {
1402
+ if (!iconMap[name]) {
1403
+ setLoading(true);
1404
+ yield loadIcon(name);
1405
+ setLoading(false);
1406
+ }
1407
+ }))();
1408
+ }, [name]);
1409
+ const w = parseFloat((width / rootFontSizePx).toFixed(2));
1410
+ const mrRems = parseFloat((mr / rootFontSizePx).toFixed(2));
1411
+ const mlRems = parseFloat((ml / rootFontSizePx).toFixed(2));
1412
+ const va = typeof verticalAlign === "string" ? verticalAlign : parseFloat((verticalAlign / rootFontSizePx).toFixed(2));
1413
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1414
+ IconContainer,
1415
+ {
1416
+ className,
1417
+ w,
1418
+ mr: mrRems,
1419
+ ml: mlRems,
1420
+ verticalAlign: va,
1421
+ fontColor: color,
1422
+ "data-tutorial-tip": tutorialStep == null ? void 0 : tutorialStep.toString(),
1423
+ children: IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(IconComponent, {}) : null
1424
+ }
1425
+ );
1426
+ }
1427
+ var IconContainer = import_styled2.default.span`
1428
+ pointer-events: none;
1429
+ display: inline-flex;
1430
+ ${({ mr, ml, w }) => `
1431
+ width: ${w}em;
1432
+ /* ensure no shrink in flex containers: */
1433
+ min-width: ${w}em;
1434
+ ${mr ? `margin-right: ${mr}em;` : ""}
1435
+ ${ml ? `margin-left: ${ml}em;` : ""}
1436
+ `}
1437
+
1438
+ vertical-align: ${({ verticalAlign }) => isString(verticalAlign) ? verticalAlign : `${verticalAlign}em`};
1439
+
1440
+ ${({ fontColor }) => `
1441
+ & svg {
1442
+ color: ${fontColor || "inherit"};
1443
+ }
1444
+ `}
1445
+ `;
1446
+
1447
+ // src/components/Loading.tsx
1448
+ var import_styled3 = __toESM(require("@emotion/styled"), 1);
1449
+ var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1450
+ var defaultProps = {
1451
+ size: 60,
1452
+ center: true,
1453
+ ml: 0
1454
+ };
1455
+ function Loading({
1456
+ center = defaultProps.center,
1457
+ size: size2 = defaultProps.size,
1458
+ ml = defaultProps.ml
1459
+ }) {
1460
+ 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 }) }) });
1461
+ }
1462
+ Loading.defaultProps = defaultProps;
1463
+ var LoadingWrapper = import_styled3.default.div`
1464
+ flex-grow: 1;
1465
+ display: flex;
1466
+ align-items: center;
1467
+ justify-content: center;
1468
+ text-align: center;
1469
+ width: 100%;
1470
+ margin-left: ${({ ml }) => ml}px;
1471
+
1472
+ ${({ center }) => center && `
1473
+ position: absolute;
1474
+ height: 100%;
1475
+ width: 100%;
1476
+ top: 0;
1477
+ bottom: 0;
1478
+ left: 0;
1479
+ right: 0;
1480
+ margin: 0 !important;
1481
+ `}
1482
+ `;
1483
+ var Rotate = import_styled3.default.div`
1484
+ display: inline-flex;
1485
+ animation: rotate 0.5s linear infinite;
1486
+
1487
+ @keyframes rotate {
1488
+ 0% {
1489
+ transform: rotate(0deg);
1490
+ }
1491
+ 100% {
1492
+ transform: rotate(360deg);
1493
+ }
1494
+ }
1495
+ `;
1496
+
1497
+ // src/components/UnstyledButton.tsx
1498
+ var import_styled4 = __toESM(require("@emotion/styled"), 1);
1499
+ var UnstyledButton = import_styled4.default.button`
1500
+ ${standardFocusOutline}
1501
+ font-family: ${({ theme }) => theme.typography.fontFamilies.main};
1502
+ appearance: none;
1503
+ background: transparent;
1504
+ border: none;
1505
+ padding: 0;
1506
+ cursor: ${({ disabled }) => disabled ? "not-allowed" : "pointer"};
1507
+ /* needed in Safari for some reason */
1508
+ font-size: 1rem;
1509
+ color: inherit;
1510
+ font-weight: inherit;
1511
+ `;
1512
+
1513
+ // src/components/Button.tsx
1514
+ var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
1515
+ function getTextColor({ color, theme, primary: primary2, blue }) {
1516
+ if (color) {
1517
+ return color;
1518
+ }
1519
+ if (blue) {
1520
+ return colors.white;
1521
+ }
1522
+ if (primary2) {
1523
+ const color2 = theme.hcNeutralFromBg(theme.hcNeutral);
1524
+ return color2;
1525
+ }
1526
+ return theme.text;
1527
+ }
1528
+ function getBackgroundColor({
1529
+ backgroundColor,
1530
+ theme,
1531
+ primary: primary2,
1532
+ blue,
1533
+ ghost
1534
+ }) {
1535
+ if (ghost) {
1536
+ return "none";
1537
+ }
1538
+ if (backgroundColor) {
1539
+ return backgroundColor;
1540
+ }
1541
+ if (blue) {
1542
+ return colors.blue43;
1543
+ }
1544
+ if (primary2) {
1545
+ return themeOr(theme.c9Neutral, colors.white)({ theme });
1546
+ }
1547
+ return themeOr(colors.white, theme.c1Neutral)({ theme });
1548
+ }
1549
+ function getPaddingX({ size: size2, ghost }) {
1550
+ return ghost ? 0 : size2 === "lg" ? hPaddingPx : size2 === "md" ? 18 : 16;
1551
+ }
1552
+ function getPadding({ iconWidth, size: size2, ghost, iconSide }) {
1553
+ const paddingY = ghost ? 0 : size2 === "lg" ? 14 : size2 === "md" ? 9 : 6;
1554
+ const paddingX = getPaddingX({ size: size2, ghost });
1555
+ const paddingForIcon = iconWidth && !ghost ? iconWidth : 0;
1556
+ return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
1557
+ }
1558
+ function getBorder({ ghost }) {
1559
+ if (ghost) {
1560
+ return "none";
1561
+ }
1562
+ return "1px solid";
1563
+ }
1564
+ function getInnerBorderColor({
1565
+ backgroundColor,
1566
+ theme,
1567
+ primary: primary2,
1568
+ blue
1569
+ }) {
1570
+ if (primary2 || blue || backgroundColor) {
1571
+ return getBackgroundColor({
1572
+ backgroundColor,
1573
+ theme,
1574
+ primary: primary2,
1575
+ blue
1576
+ });
1577
+ }
1578
+ return themeOr(colors.gray90, colors.gray20)({ theme });
1579
+ }
1580
+ function Button({
1581
+ backgroundColor,
1582
+ color,
1583
+ hoverColor,
1584
+ primary: primary2 = false,
1585
+ ghost = false,
1586
+ text,
1587
+ to,
1588
+ hash,
1589
+ href,
1590
+ toParams,
1591
+ onClick,
1592
+ icon,
1593
+ iconSide = "left",
1594
+ loading = false,
1595
+ fullWidth = false,
1596
+ disabled = false,
1597
+ size: size2 = "lg",
1598
+ mt = 0,
1599
+ ml = 0,
1600
+ type = "button",
1601
+ blue = false,
1602
+ newTab = false,
1603
+ zIndex = void 0
1604
+ }) {
1605
+ const iconMarginRight = 6;
1606
+ const iconSize = size2 === "lg" ? 16 : 12;
1607
+ let currentIcon = null;
1608
+ if (loading) {
1609
+ 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 }) });
1610
+ } else if (icon) {
1611
+ 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 }) });
1612
+ }
1613
+ const content = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1614
+ "div",
1615
+ {
1616
+ css: {
1617
+ display: "flex",
1618
+ alignItems: "center",
1619
+ justifyContent: "center"
1620
+ },
1621
+ children: [
1622
+ iconSide === "left" && currentIcon,
1623
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1624
+ "div",
1625
+ {
1626
+ css: {
1627
+ textOverflow: "ellipsis",
1628
+ overflow: "hidden"
1629
+ },
1630
+ children: text
1631
+ }
1632
+ ),
1633
+ iconSide === "right" && currentIcon
1634
+ ]
1635
+ }
1636
+ );
1637
+ const commonProps = {
1638
+ backgroundColor,
1639
+ color,
1640
+ hoverColor,
1641
+ type,
1642
+ size: size2,
1643
+ onClick,
1644
+ primary: primary2,
1645
+ ghost,
1646
+ fullWidth,
1647
+ blue,
1648
+ iconSide,
1649
+ iconWidth: currentIcon ? iconSize + iconMarginRight : 0,
1650
+ isLoading: loading,
1651
+ disabled: disabled || loading,
1652
+ css: {
1653
+ marginTop: mt ? `${mt}px` : void 0,
1654
+ marginLeft: ml ? `${ml}px` : void 0
1655
+ },
1656
+ newTab,
1657
+ text,
1658
+ zIndex
1659
+ };
1660
+ if (to) {
1661
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
1662
+ }
1663
+ 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 }));
1664
+ }
1665
+ var hPaddingPx = 24;
1666
+ var buttonStyle = ({
1667
+ color,
1668
+ backgroundColor,
1669
+ hoverColor,
1670
+ theme,
1671
+ primary: primary2,
1672
+ ghost,
1673
+ disabled,
1674
+ isLoading,
1675
+ size: size2,
1676
+ fullWidth,
1677
+ iconWidth,
1678
+ blue,
1679
+ text,
1680
+ zIndex,
1681
+ iconSide
1682
+ }) => import_react9.css`
1683
+ display: inline-flex;
1684
+ opacity: ${disabled && !isLoading ? 0.2 : 1};
1685
+ transition: opacity 0.2s;
1686
+ position: relative;
1687
+
1688
+ ${zIndex && `z-index: ${zIndex};`}
1689
+
1690
+ color: ${getTextColor({ color, theme, primary: primary2, blue })};
1691
+ font-size: ${["lg", "md"].includes(size2) ? "14px" : "12px"};
1692
+ font-weight: 600;
1693
+
1694
+ &:focus-visible {
1695
+ outline: ${getFocusOutline({ theme })};
1696
+ }
1697
+
1698
+ width: ${fullWidth ? "100%" : "fit-content"};
1699
+
1700
+ & > * {
1701
+ width: 100%;
1702
+ text-align: center;
1703
+ white-space: nowrap;
1704
+ background-color: ${getBackgroundColor({
1705
+ backgroundColor,
1706
+ theme,
1707
+ primary: primary2,
1708
+ blue,
1709
+ ghost
1710
+ })};
1711
+ border: ${getBorder({ ghost })};
1712
+ border-color: ${getInnerBorderColor({
1713
+ backgroundColor,
1714
+ theme,
1715
+ primary: primary2,
1716
+ blue
1717
+ })};
1718
+ border-radius: 32px;
1719
+ padding: ${getPadding({ size: size2, iconWidth, text, ghost, iconSide })};
1720
+ color: ${getTextColor({ color, theme, primary: primary2, blue })};
1721
+ transition:
1722
+ background-color 0.2s ease-out,
1723
+ border-color 0.2s ease-out;
1724
+
1725
+ &:hover {
1726
+ ${hoverColor && ghost ? "" : `background-color: ${hoverColor}; border-color: ${hoverColor};`}
1727
+ }
1728
+ }
1729
+ `;
1730
+ var ButtonIcon = import_styled5.default.div`
1731
+ ${(props) => props.ghost ? "" : "position: absolute;"}
1732
+ ${({ iconSide, ghost, text, size: size2 }) => `${iconSide}: ${ghost && text ? 0 : getPaddingX({ size: size2, ghost })}px;`}
1733
+ `;
1734
+ var StyledButton = (0, import_styled5.default)(UnstyledButton)`
1735
+ ${(props) => buttonStyle(props)}
1736
+ `;
1737
+ var ButtonLink = (0, import_styled5.default)(Link)`
1738
+ ${(props) => buttonStyle(props)}
1739
+ `;
1740
+ var ButtonHrefLink = import_styled5.default.a`
1741
+ ${(props) => buttonStyle(props)}
1742
+ `;
1743
+
1744
+ // src/components/Modal.tsx
1745
+ var import_jsx_runtime6 = require("@emotion/react/jsx-runtime");
1746
+ function Modal({
1747
+ visible,
1748
+ title,
1749
+ description,
1750
+ children,
1751
+ onClose,
1752
+ onCancel,
1753
+ cancelDisabled,
1754
+ cancelHidden,
1755
+ ghost,
1756
+ onSubmit,
1757
+ submitDisabled,
1758
+ submitLoading,
1759
+ submitText,
1760
+ cancelText,
1761
+ firstFocusRef,
1762
+ nonDismissable = false,
1763
+ autoFocus = true,
1764
+ width
1765
+ }) {
1766
+ const nodeRef = (0, import_react10.useRef)(null);
1767
+ const [defaultFirstFocusRef, defaultFirstFocusRefCb] = useLiveRef();
1768
+ const ref = firstFocusRef || defaultFirstFocusRef;
1769
+ const [nodeReady, setNodeReady] = import_react10.default.useState(false);
1770
+ const overlayRef = (0, import_react10.useRef)(null);
1771
+ const prevFocusedElement = (0, import_react10.useRef)();
1772
+ const modalContainerRef = (0, import_react10.useRef)(null);
1773
+ const bp2 = useBreakpoints();
1774
+ const isSm = bp2.current("sm" /* sm */);
1775
+ (0, import_react10.useEffect)(() => {
1776
+ prevFocusedElement.current = document.activeElement;
1777
+ if (!nodeRef.current) {
1778
+ nodeRef.current = document.createElement("div");
1779
+ document.body.appendChild(nodeRef.current);
1780
+ }
1781
+ setNodeReady(true);
1782
+ return () => {
1783
+ if (nodeRef.current) {
1784
+ document.body.removeChild(nodeRef.current);
1785
+ nodeRef.current = null;
1786
+ }
1787
+ };
1788
+ }, []);
1789
+ (0, import_react10.useEffect)(() => {
1790
+ const handleOutsideClick = (event) => {
1791
+ if (visible && overlayRef.current && event.target && overlayRef.current.contains(event.target) && !nonDismissable) {
1792
+ onClose();
1793
+ }
1794
+ };
1795
+ const handleKeyDown = (event) => {
1796
+ if (visible && event.key === "Escape" && !nonDismissable) {
1797
+ onClose();
1798
+ }
1799
+ };
1800
+ if (visible) {
1801
+ if (modalContainerRef.current) {
1802
+ modalContainerRef.current.addEventListener("keydown", handleKeyDown);
1803
+ }
1804
+ if (overlayRef.current) {
1805
+ overlayRef.current.addEventListener("click", handleOutsideClick);
1806
+ }
1807
+ } else {
1808
+ if (modalContainerRef.current) {
1809
+ modalContainerRef.current.removeEventListener("keydown", handleKeyDown);
1810
+ }
1811
+ if (overlayRef.current) {
1812
+ overlayRef.current.removeEventListener("click", handleOutsideClick);
1813
+ }
1814
+ }
1815
+ const containerRef = modalContainerRef.current;
1816
+ const overlayRefVar = overlayRef.current;
1817
+ return () => {
1818
+ if (containerRef) {
1819
+ containerRef.removeEventListener("keydown", handleKeyDown);
1820
+ }
1821
+ if (overlayRefVar) {
1822
+ overlayRefVar.removeEventListener("click", handleOutsideClick);
1823
+ }
1824
+ };
1825
+ }, [onClose, visible, nonDismissable]);
1826
+ (0, import_react10.useLayoutEffect)(() => {
1827
+ if (visible) {
1828
+ prevFocusedElement.current = document.activeElement;
1829
+ if (typeof ref === "object" && (ref == null ? void 0 : ref.current) && autoFocus) {
1830
+ ref.current.focus();
1831
+ }
1832
+ } else if (prevFocusedElement.current) {
1833
+ prevFocusedElement.current.focus();
1834
+ }
1835
+ }, [visible, ref, autoFocus]);
1836
+ function onClickCloseButton(event) {
1837
+ event.stopPropagation();
1838
+ onClose();
1839
+ }
1840
+ function onSubmitForm(e) {
1841
+ e.preventDefault();
1842
+ if (!submitDisabled && onSubmit) {
1843
+ onSubmit();
1844
+ }
1845
+ }
1846
+ function onClickCancel() {
1847
+ if (onCancel) {
1848
+ onCancel();
1849
+ } else {
1850
+ onClose();
1851
+ }
1852
+ }
1853
+ const modalContent = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react10.Fragment, { children: [
1854
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ModalOverlay, { ref: overlayRef }),
1855
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1856
+ ModalContainer,
1857
+ {
1858
+ "aria-modal": true,
1859
+ "aria-hidden": true,
1860
+ tabIndex: -1,
1861
+ role: "dialog",
1862
+ ref: modalContainerRef,
1863
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(ModalContent, { width, ghost, children: [
1864
+ !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
1865
+ !(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "Close", width: 9 }) }),
1866
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(ModalContentInner, { ghost, children: [
1867
+ title ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h4", { children: title }) : null,
1868
+ description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Description, { children: description }) : null,
1869
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { children }),
1870
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(ModalButtonRow, { children: [
1871
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1872
+ Button,
1873
+ {
1874
+ disabled: cancelDisabled,
1875
+ onClick: onClickCancel,
1876
+ text: cancelText != null ? cancelText : "Cancel"
1877
+ }
1878
+ ),
1879
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1880
+ Button,
1881
+ {
1882
+ disabled: submitDisabled,
1883
+ primary: true,
1884
+ text: submitText != null ? submitText : "Continue",
1885
+ loading: submitLoading,
1886
+ type: "submit"
1887
+ }
1888
+ ),
1889
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Button, { onClick: onClose, text: "Cancel" })
1890
+ ] }) : null
1891
+ ] })
1892
+ ] })
1893
+ }
1894
+ )
1895
+ ] });
1896
+ return visible && nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
1897
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("form", { onSubmit: onSubmitForm, children: modalContent }) : modalContent,
1898
+ nodeRef.current
1899
+ ) : null;
1900
+ }
1901
+ var DefaultFocusTarget = (0, import_styled6.default)(UnstyledButton)`
1902
+ position: absolute;
1903
+ top: -30px;
1904
+ width: 0;
1905
+ height: 0;
1906
+ `;
1907
+ var ModalOverlay = import_styled6.default.div`
1908
+ position: fixed;
1909
+ bottom: 0;
1910
+ left: 0;
1911
+ z-index: ${z.modalOverlay};
1912
+ width: 100vw;
1913
+ height: 100vh;
1914
+ background: rgba(0, 0, 0, 0.5);
1915
+ backdrop-filter: blur(2px);
1916
+ `;
1917
+ var ModalContainer = import_styled6.default.div`
1918
+ pointer-events: none;
1919
+ position: fixed;
1920
+ top: 0;
1921
+ left: 0;
1922
+ z-index: ${z.modalContainer};
1923
+ width: 100%;
1924
+ height: 100%;
1925
+ overflow-x: hidden;
1926
+ overflow-y: auto;
1927
+ outline: 0;
1928
+ display: flex;
1929
+ justify-content: center;
1930
+ align-items: center;
1931
+ color: ${({ theme }) => theme.text};
1932
+ padding-top: ${standardContentInsetSmPx}px;
1933
+ `;
1934
+ var contentTopMarginPx = 24;
1935
+ var Description = import_styled6.default.div`
1936
+ color: ${({ theme }) => theme.mcNeutral};
1937
+ margin-top: 4px;
1938
+ & + * {
1939
+ margin-top: ${contentTopMarginPx}px;
1940
+ }
1941
+ `;
1942
+ var ModalButtonRow = import_styled6.default.div`
1943
+ margin-top: 32px;
1944
+ ${bp.minSm(`display: flex;`)}
1945
+
1946
+ button {
1947
+ width: 50%;
1948
+ ${bp.sm(`
1949
+ width: 100%;
1950
+ `)}
1951
+ }
1952
+
1953
+ button:last-of-type {
1954
+ ${bp.sm(`
1955
+ margin-top: 16px;
1956
+ `)}
1957
+ ${bp.minSm(`
1958
+ margin-left: 10px;
1959
+ `)}
1960
+ }
1961
+ `;
1962
+ var ModalContent = import_styled6.default.div`
1963
+ ${overflowAutoWithoutScrollbars}
1964
+ ${smContentInset}
1965
+ ${(props) => props.ghost ? "" : overlaySurface}
1966
+ pointer-events: auto;
1967
+ width: ${(props) => props.width || 430}px;
1968
+ max-width: 100%;
1969
+ max-height: 100%;
1970
+ border-radius: 16px;
1971
+ position: absolute;
1972
+ ${(props) => props.ghost ? "" : "padding: 16px 16px 40px;"}
1973
+
1974
+ h4 {
1975
+ margin: 0;
1976
+ font-weight: 800;
1977
+ font-size: ${pxToRems(21)};
1978
+ & + *:not(${Description}) {
1979
+ margin-top: ${contentTopMarginPx}px;
1980
+ }
1981
+ }
1982
+ `;
1983
+ var CloseButton = (0, import_styled6.default)(UnstyledButton)`
1984
+ ${standardFocusOutline}
1985
+ width: 24px;
1986
+ height: 24px;
1987
+ `;
1988
+ var ModalContentInner = import_styled6.default.div`
1989
+ ${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
1990
+ ${(props) => props.ghost ? "" : `${bp.sm(`
1991
+ padding-left: 10px;
1992
+ padding-right: 10px;
1993
+ `)}`}
1994
+ `;
1995
+ // Annotate the CommonJS export names for ESM import in node:
1996
+ 0 && (module.exports = {
1997
+ Modal
1998
+ });