@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,1361 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __copyProps = (to, from, except, desc) => {
30
+ if (from && typeof from === "object" || typeof from === "function") {
31
+ for (let key of __getOwnPropNames(from))
32
+ if (!__hasOwnProp.call(to, key) && key !== except)
33
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
+ mod
44
+ ));
45
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
+
47
+ // src/styles/fields.tsx
48
+ var fields_exports = {};
49
+ __export(fields_exports, {
50
+ FieldError: () => FieldError,
51
+ InputSubtext: () => InputSubtext,
52
+ Label: () => Label,
53
+ LabelDiv: () => LabelDiv,
54
+ StyledInputSubtext: () => StyledInputSubtext,
55
+ aboveFieldError: () => aboveFieldError,
56
+ fieldWidth: () => fieldWidth,
57
+ formButtonTopMargin: () => formButtonTopMargin,
58
+ formButtonTopMarginStyle: () => formButtonTopMarginStyle,
59
+ inputSpacingPx: () => inputSpacingPx,
60
+ labelStyle: () => labelStyle,
61
+ maxFieldWidth: () => maxFieldWidth,
62
+ standardBorderColor: () => standardBorderColor,
63
+ textInputBorderColor: () => textInputBorderColor,
64
+ textInputBorderColorFocused: () => textInputBorderColorFocused,
65
+ textInputBorderRadiusPx: () => textInputBorderRadiusPx,
66
+ textInputColor: () => textInputColor,
67
+ textInputFontWeight: () => textInputFontWeight,
68
+ textInputPadding: () => textInputPadding,
69
+ textInputPaddingPx: () => textInputPaddingPx,
70
+ textInputPlaceholderColor: () => textInputPlaceholderColor,
71
+ textInputStyle: () => textInputStyle
72
+ });
73
+ module.exports = __toCommonJS(fields_exports);
74
+ var import_react5 = require("@emotion/react");
75
+ var import_styled2 = __toESM(require("@emotion/styled"), 1);
76
+ var import_react6 = require("react");
77
+
78
+ // src/styles/colors.tsx
79
+ var import_react3 = require("@emotion/react");
80
+
81
+ // src/styles/breakpoints.tsx
82
+ var import_react = require("@emotion/react");
83
+ var import_lodash_es = require("lodash-es");
84
+ var import_react2 = require("react");
85
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
86
+ var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
87
+ Breakpoints2["sm"] = "sm";
88
+ Breakpoints2["md"] = "md";
89
+ Breakpoints2["lg"] = "lg";
90
+ return Breakpoints2;
91
+ })(Breakpoints || {});
92
+ var breakpoints = {
93
+ ["sm" /* sm */]: 640,
94
+ ["md" /* md */]: 834,
95
+ ["lg" /* lg */]: 1200
96
+ };
97
+ var breakpointFn = (mq) => (style) => `@media ${mq} { ${style} }`;
98
+ var bp = {
99
+ key: Breakpoints,
100
+ ["sm" /* sm */]: breakpointFn(`(max-width:${breakpoints.sm}px)`),
101
+ ["lg" /* lg */]: breakpointFn(`(min-width:${breakpoints.lg}px)`),
102
+ ["minSmMaxLg" /* minSmMaxLg */]: breakpointFn(
103
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.lg - 1}px)`
104
+ ),
105
+ ["minSmMaxMd" /* minSmMaxMd */]: breakpointFn(
106
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.md - 1}px)`
107
+ ),
108
+ ["minMdMaxLg" /* minMdMaxLg */]: breakpointFn(
109
+ `(min-width:${breakpoints.md}px) and (max-width:${breakpoints.lg - 1}px)`
110
+ ),
111
+ ["maxLg" /* maxLg */]: breakpointFn(`(max-width:${breakpoints.lg - 1}px)`),
112
+ ["maxMd" /* maxMd */]: breakpointFn(`(max-width:${breakpoints.md - 1}px)`),
113
+ ["minSm" /* minSm */]: breakpointFn(`(min-width:${breakpoints.sm + 1}px)`),
114
+ ["minMd" /* minMd */]: breakpointFn(`(min-width:${breakpoints.md + 1}px)`),
115
+ current: function(assertBp) {
116
+ const currentBp = (
117
+ /* window is undefined in first server side render for Next apps: */
118
+ typeof window === "undefined" ? "sm" /* sm */ : window.getComputedStyle(document.body, ":before").content.replace(/"/g, "")
119
+ );
120
+ if (assertBp) {
121
+ return inRange(
122
+ currentBp,
123
+ assertBp
124
+ );
125
+ }
126
+ return currentBp;
127
+ },
128
+ switch: (smVal, minSmMaxMdVal, minMdMaxLgVal, lgVal) => {
129
+ const currentBp = bp.current();
130
+ if (currentBp === "sm" /* sm */) {
131
+ return smVal;
132
+ } else if (currentBp === "minSmMaxMd" /* minSmMaxMd */) {
133
+ return minSmMaxMdVal;
134
+ } else if (currentBp === "minMdMaxLg" /* minMdMaxLg */) {
135
+ return minMdMaxLgVal;
136
+ }
137
+ return lgVal;
138
+ },
139
+ isSm: () => bp.current("sm" /* sm */),
140
+ isMinSm: () => bp.current("minSm" /* minSm */),
141
+ isMinSmMaxMd: () => bp.current("minSmMaxMd" /* minSmMaxMd */),
142
+ isMinMdMaxLg: () => bp.current("minMdMaxLg" /* minMdMaxLg */),
143
+ isLg: () => bp.current("lg" /* lg */)
144
+ };
145
+ function inRange(currentBp, assertBp) {
146
+ const isSm = currentBp === "sm" /* sm */;
147
+ const isMinSmMaxMd = currentBp === "minSmMaxMd" /* minSmMaxMd */;
148
+ const isMinMdMaxLg = currentBp === "minMdMaxLg" /* minMdMaxLg */;
149
+ const isLg = currentBp === "lg" /* lg */;
150
+ if (assertBp) {
151
+ switch (assertBp) {
152
+ case "sm" /* sm */:
153
+ return isSm;
154
+ case "minSmMaxMd" /* minSmMaxMd */:
155
+ return isMinSmMaxMd;
156
+ case "minMdMaxLg" /* minMdMaxLg */:
157
+ return isMinMdMaxLg;
158
+ case "lg" /* lg */:
159
+ return isLg;
160
+ case "minSmMaxLg" /* minSmMaxLg */:
161
+ return isMinSmMaxMd || isMinMdMaxLg;
162
+ case "maxLg" /* maxLg */:
163
+ return isSm || isMinSmMaxMd || isMinMdMaxLg;
164
+ case "maxMd" /* maxMd */:
165
+ return isSm || isMinSmMaxMd;
166
+ case "minSm" /* minSm */:
167
+ return isMinSmMaxMd || isMinMdMaxLg || isLg;
168
+ case "minMd" /* minMd */:
169
+ return isMinMdMaxLg || isLg;
170
+ default:
171
+ return false;
172
+ }
173
+ }
174
+ return false;
175
+ }
176
+
177
+ // src/styles/fonts/typographyTokens.ts
178
+ var FONT_FAMILIES = {
179
+ main: "Montserrat",
180
+ code: "Monaco"
181
+ };
182
+ var LINE_HEIGHTS = {
183
+ "5xl": "72px",
184
+ "4xl": "60px",
185
+ "3xl": "44px",
186
+ "2xl": "40px",
187
+ xl: "36px",
188
+ lg: "32px",
189
+ md: "28px",
190
+ sm: "24px",
191
+ xs: "20px",
192
+ "2xs": "16px"
193
+ };
194
+ var FONT_WEIGHTS = {
195
+ main: {
196
+ Bold: 700,
197
+ SemiBold: 600,
198
+ Medium: 500
199
+ },
200
+ code: {
201
+ Bold: 700,
202
+ Regular: 400
203
+ }
204
+ };
205
+ var FONT_SIZE = {
206
+ "2xs": "11px",
207
+ xs: "12px",
208
+ sm: "14px",
209
+ md: "16px",
210
+ lg: "20px",
211
+ xl: "24px",
212
+ "2xl": "28px",
213
+ "3xl": "32px",
214
+ "4xl": "36px",
215
+ "5xl": "48px",
216
+ "6xl": "64px"
217
+ };
218
+ var LETTER_SPACING = {
219
+ tight: "-.02em",
220
+ normal: "0",
221
+ loose: ".1em"
222
+ };
223
+ var TEXT_CASE = {
224
+ none: "none",
225
+ uppercase: "uppercase"
226
+ };
227
+ var TEXT_DECORATION = {
228
+ none: "none"
229
+ };
230
+ var PARAGRAPH_INDENT = {
231
+ 0: "0px"
232
+ };
233
+ var PARAGRAPH_SPACING = {
234
+ default: "default",
235
+ 16: "16px",
236
+ 40: "40px"
237
+ };
238
+ var getTypography = (customFontFamilies) => {
239
+ const fontFamilies = customFontFamilies != null ? customFontFamilies : FONT_FAMILIES;
240
+ return {
241
+ fontFamilies,
242
+ lineHeights: LINE_HEIGHTS,
243
+ fontWeights: FONT_WEIGHTS,
244
+ fontSize: FONT_SIZE,
245
+ letterSpacing: LETTER_SPACING,
246
+ textCase: TEXT_CASE,
247
+ textDecoration: TEXT_DECORATION,
248
+ paragraphIndent: PARAGRAPH_INDENT,
249
+ paragraphSpacing: PARAGRAPH_SPACING,
250
+ ["Lightspark" /* Lightspark */]: {
251
+ Display: {
252
+ ["Large" /* Large */]: {
253
+ "font-family": `${fontFamilies.main}`,
254
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
255
+ "line-height": `${LINE_HEIGHTS["5xl"]}`,
256
+ "font-size": `${FONT_SIZE["6xl"]}`,
257
+ "letter-spacing": `${LETTER_SPACING.tight}`,
258
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
259
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
260
+ "text-case": `${TEXT_CASE.none}`,
261
+ "text-decoration": `${TEXT_DECORATION.none}`
262
+ },
263
+ ["Medium" /* Medium */]: {
264
+ "font-family": `${fontFamilies.main}`,
265
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
266
+ "line-height": `${LINE_HEIGHTS["4xl"]}`,
267
+ "font-size": `${FONT_SIZE["5xl"]}`,
268
+ "letter-spacing": `${LETTER_SPACING.tight}`,
269
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
270
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
271
+ "text-case": `${TEXT_CASE.none}`,
272
+ "text-decoration": `${TEXT_DECORATION.none}`
273
+ },
274
+ ["Small" /* Small */]: {
275
+ "font-family": `${fontFamilies.main}`,
276
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
277
+ "line-height": `${LINE_HEIGHTS["3xl"]}`,
278
+ "font-size": `${FONT_SIZE["4xl"]}`,
279
+ "letter-spacing": `${LETTER_SPACING.tight}`,
280
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
281
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
282
+ "text-case": `${TEXT_CASE.none}`,
283
+ "text-decoration": `${TEXT_DECORATION.none}`
284
+ }
285
+ },
286
+ Headline: {
287
+ ["Large" /* Large */]: {
288
+ "font-family": `${fontFamilies.main}`,
289
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
290
+ "line-height": `${LINE_HEIGHTS["2xl"]}`,
291
+ "font-size": `${FONT_SIZE["3xl"]}`,
292
+ "letter-spacing": `${LETTER_SPACING.tight}`,
293
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
294
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
295
+ "text-case": `${TEXT_CASE.none}`,
296
+ "text-decoration": `${TEXT_DECORATION.none}`
297
+ },
298
+ ["Medium" /* Medium */]: {
299
+ "font-family": `${fontFamilies.main}`,
300
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
301
+ "line-height": `${LINE_HEIGHTS.xl}`,
302
+ "font-size": `${FONT_SIZE["2xl"]}`,
303
+ "letter-spacing": `${LETTER_SPACING.tight}`,
304
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
305
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
306
+ "text-case": `${TEXT_CASE.none}`,
307
+ "text-decoration": `${TEXT_DECORATION.none}`
308
+ },
309
+ ["Small" /* Small */]: {
310
+ "font-family": `${fontFamilies.main}`,
311
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
312
+ "line-height": `${LINE_HEIGHTS.lg}`,
313
+ "font-size": `${FONT_SIZE.xl}`,
314
+ "letter-spacing": `${LETTER_SPACING.tight}`,
315
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
316
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
317
+ "text-case": `${TEXT_CASE.none}`,
318
+ "text-decoration": `${TEXT_DECORATION.none}`
319
+ }
320
+ },
321
+ Title: {
322
+ ["Large" /* Large */]: {
323
+ "font-family": `${fontFamilies.main}`,
324
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
325
+ "line-height": `${LINE_HEIGHTS.md}`,
326
+ "font-size": `${FONT_SIZE.lg}`,
327
+ "letter-spacing": `${LETTER_SPACING.normal}`,
328
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
329
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
330
+ "text-case": `${TEXT_CASE.none}`,
331
+ "text-decoration": `${TEXT_DECORATION.none}`
332
+ },
333
+ ["Medium" /* Medium */]: {
334
+ "font-family": `${fontFamilies.main}`,
335
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
336
+ "line-height": `${LINE_HEIGHTS.sm}`,
337
+ "font-size": `${FONT_SIZE.md}`,
338
+ "letter-spacing": `${LETTER_SPACING.normal}`,
339
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
340
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
341
+ "text-case": `${TEXT_CASE.none}`,
342
+ "text-decoration": `${TEXT_DECORATION.none}`
343
+ },
344
+ ["Small" /* Small */]: {
345
+ "font-family": `${fontFamilies.main}`,
346
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
347
+ "line-height": `${LINE_HEIGHTS.xs}`,
348
+ "font-size": `${FONT_SIZE.sm}`,
349
+ "letter-spacing": `${LETTER_SPACING.normal}`,
350
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
351
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
352
+ "text-case": `${TEXT_CASE.none}`,
353
+ "text-decoration": `${TEXT_DECORATION.none}`
354
+ }
355
+ },
356
+ Body: {
357
+ ["Large" /* Large */]: {
358
+ "font-family": `${fontFamilies.main}`,
359
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
360
+ "line-height": `${LINE_HEIGHTS.sm}`,
361
+ "font-size": `${FONT_SIZE.md}`,
362
+ "letter-spacing": `${LETTER_SPACING.normal}`,
363
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
364
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
365
+ "text-case": `${TEXT_CASE.none}`,
366
+ "text-decoration": `${TEXT_DECORATION.none}`
367
+ },
368
+ ["Medium" /* Medium */]: {
369
+ "font-family": `${fontFamilies.main}`,
370
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
371
+ "line-height": `${LINE_HEIGHTS.sm}`,
372
+ "font-size": `${FONT_SIZE.sm}`,
373
+ "letter-spacing": `${LETTER_SPACING.normal}`,
374
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
375
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
376
+ "text-case": `${TEXT_CASE.none}`,
377
+ "text-decoration": `${TEXT_DECORATION.none}`
378
+ },
379
+ ["Small" /* Small */]: {
380
+ "font-family": `${fontFamilies.main}`,
381
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
382
+ "line-height": `${LINE_HEIGHTS.sm}`,
383
+ "font-size": `${FONT_SIZE.xs}`,
384
+ "letter-spacing": `${LETTER_SPACING.normal}`,
385
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
386
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
387
+ "text-case": `${TEXT_CASE.none}`,
388
+ "text-decoration": `${TEXT_DECORATION.none}`
389
+ }
390
+ },
391
+ Label: {
392
+ ["Large" /* Large */]: {
393
+ "font-family": `${fontFamilies.main}`,
394
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
395
+ "line-height": `${LINE_HEIGHTS.xs}`,
396
+ "font-size": `${FONT_SIZE.sm}`,
397
+ "letter-spacing": `${LETTER_SPACING.normal}`,
398
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
399
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
400
+ "text-case": `${TEXT_CASE.none}`,
401
+ "text-decoration": `${TEXT_DECORATION.none}`
402
+ },
403
+ ["Medium" /* Medium */]: {
404
+ "font-family": `${fontFamilies.main}`,
405
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
406
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
407
+ "font-size": `${FONT_SIZE.xs}`,
408
+ "letter-spacing": `${LETTER_SPACING.normal}`,
409
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
410
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
411
+ "text-case": `${TEXT_CASE.none}`,
412
+ "text-decoration": `${TEXT_DECORATION.none}`
413
+ },
414
+ ["Small" /* Small */]: {
415
+ "font-family": `${fontFamilies.main}`,
416
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
417
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
418
+ "font-size": `${FONT_SIZE["2xs"]}`,
419
+ "letter-spacing": `${LETTER_SPACING.normal}`,
420
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
421
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
422
+ "text-case": `${TEXT_CASE.none}`,
423
+ "text-decoration": `${TEXT_DECORATION.none}`
424
+ }
425
+ },
426
+ "Label Strong": {
427
+ ["Large" /* Large */]: {
428
+ "font-family": `${fontFamilies.main}`,
429
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
430
+ "line-height": `${LINE_HEIGHTS.xs}`,
431
+ "font-size": `${FONT_SIZE.sm}`,
432
+ "letter-spacing": `${LETTER_SPACING.normal}`,
433
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
434
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
435
+ "text-case": `${TEXT_CASE.none}`,
436
+ "text-decoration": `${TEXT_DECORATION.none}`
437
+ },
438
+ ["Medium" /* Medium */]: {
439
+ "font-family": `${fontFamilies.main}`,
440
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
441
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
442
+ "font-size": `${FONT_SIZE.xs}`,
443
+ "letter-spacing": `${LETTER_SPACING.normal}`,
444
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
445
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
446
+ "text-case": `${TEXT_CASE.none}`,
447
+ "text-decoration": `${TEXT_DECORATION.none}`
448
+ },
449
+ ["Small" /* Small */]: {
450
+ "font-family": `${fontFamilies.main}`,
451
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
452
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
453
+ "font-size": `${FONT_SIZE["2xs"]}`,
454
+ "letter-spacing": `${LETTER_SPACING.normal}`,
455
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
456
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
457
+ "text-case": `${TEXT_CASE.none}`,
458
+ "text-decoration": `${TEXT_DECORATION.none}`
459
+ }
460
+ },
461
+ Overline: {
462
+ ["Large" /* Large */]: {
463
+ "font-family": `${fontFamilies.code}`,
464
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
465
+ "line-height": `${LINE_HEIGHTS.sm}`,
466
+ "font-size": `${FONT_SIZE.md}`,
467
+ "letter-spacing": `${LETTER_SPACING.loose}`,
468
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
469
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
470
+ "text-case": `${TEXT_CASE.uppercase}`,
471
+ "text-decoration": `${TEXT_DECORATION.none}`
472
+ },
473
+ ["Medium" /* Medium */]: {
474
+ "font-family": `${fontFamilies.code}`,
475
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
476
+ "line-height": `${LINE_HEIGHTS.xs}`,
477
+ "font-size": `${FONT_SIZE.sm}`,
478
+ "letter-spacing": `${LETTER_SPACING.loose}`,
479
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
480
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
481
+ "text-case": `${TEXT_CASE.uppercase}`,
482
+ "text-decoration": `${TEXT_DECORATION.none}`
483
+ },
484
+ ["Small" /* Small */]: {
485
+ "font-family": `${fontFamilies.code}`,
486
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
487
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
488
+ "font-size": `${FONT_SIZE.xs}`,
489
+ "letter-spacing": `${LETTER_SPACING.loose}`,
490
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
491
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
492
+ "text-case": `${TEXT_CASE.uppercase}`,
493
+ "text-decoration": `${TEXT_DECORATION.none}`
494
+ }
495
+ },
496
+ Code: {
497
+ ["Large" /* Large */]: {
498
+ "font-family": `${fontFamilies.code}`,
499
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
500
+ "line-height": `${LINE_HEIGHTS.sm}`,
501
+ "font-size": `${FONT_SIZE.md}`,
502
+ "letter-spacing": `${LETTER_SPACING.normal}`,
503
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
504
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
505
+ "text-case": `${TEXT_CASE.none}`,
506
+ "text-decoration": `${TEXT_DECORATION.none}`
507
+ },
508
+ ["Medium" /* Medium */]: {
509
+ "font-family": `${fontFamilies.code}`,
510
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
511
+ "line-height": `${LINE_HEIGHTS.sm}`,
512
+ "font-size": `${FONT_SIZE.sm}`,
513
+ "letter-spacing": `${LETTER_SPACING.normal}`,
514
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
515
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
516
+ "text-case": `${TEXT_CASE.none}`,
517
+ "text-decoration": `${TEXT_DECORATION.none}`
518
+ },
519
+ ["Small" /* Small */]: {
520
+ "font-family": `${fontFamilies.code}`,
521
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
522
+ "line-height": `${LINE_HEIGHTS.xs}`,
523
+ "font-size": `${FONT_SIZE.xs}`,
524
+ "letter-spacing": `${LETTER_SPACING.normal}`,
525
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
526
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
527
+ "text-case": `${TEXT_CASE.none}`,
528
+ "text-decoration": `${TEXT_DECORATION.none}`
529
+ }
530
+ },
531
+ "Code Strong": {
532
+ ["Large" /* Large */]: {
533
+ "font-family": `${fontFamilies.code}`,
534
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
535
+ "line-height": `${LINE_HEIGHTS.sm}`,
536
+ "font-size": `${FONT_SIZE.md}`,
537
+ "letter-spacing": `${LETTER_SPACING.normal}`,
538
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
539
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
540
+ "text-case": `${TEXT_CASE.none}`,
541
+ "text-decoration": `${TEXT_DECORATION.none}`
542
+ },
543
+ ["Medium" /* Medium */]: {
544
+ "font-family": `${fontFamilies.code}`,
545
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
546
+ "line-height": `${LINE_HEIGHTS.sm}`,
547
+ "font-size": `${FONT_SIZE.sm}`,
548
+ "letter-spacing": `${LETTER_SPACING.normal}`,
549
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
550
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
551
+ "text-case": `${TEXT_CASE.none}`,
552
+ "text-decoration": `${TEXT_DECORATION.none}`
553
+ },
554
+ ["Small" /* Small */]: {
555
+ "font-family": `${fontFamilies.code}`,
556
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
557
+ "line-height": `${LINE_HEIGHTS.xs}`,
558
+ "font-size": `${FONT_SIZE.xs}`,
559
+ "letter-spacing": `${LETTER_SPACING.normal}`,
560
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
561
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
562
+ "text-case": `${TEXT_CASE.none}`,
563
+ "text-decoration": `${TEXT_DECORATION.none}`
564
+ }
565
+ }
566
+ },
567
+ ["UmaDocs" /* UmaDocs */]: {
568
+ Display: {
569
+ ["Large" /* Large */]: {
570
+ "font-family": `${fontFamilies.main}`,
571
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
572
+ "line-height": `${LINE_HEIGHTS["5xl"]}`,
573
+ "font-size": `${FONT_SIZE["6xl"]}`,
574
+ "letter-spacing": `${LETTER_SPACING.tight}`,
575
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
576
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
577
+ "text-case": `${TEXT_CASE.none}`,
578
+ "text-decoration": `${TEXT_DECORATION.none}`
579
+ },
580
+ ["Medium" /* Medium */]: {
581
+ "font-family": `${fontFamilies.main}`,
582
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
583
+ "line-height": `${LINE_HEIGHTS["4xl"]}`,
584
+ "font-size": `${FONT_SIZE["5xl"]}`,
585
+ "letter-spacing": `${LETTER_SPACING.tight}`,
586
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
587
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
588
+ "text-case": `${TEXT_CASE.none}`,
589
+ "text-decoration": `${TEXT_DECORATION.none}`
590
+ },
591
+ ["Small" /* Small */]: {
592
+ "font-family": `${fontFamilies.main}`,
593
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
594
+ "line-height": `${LINE_HEIGHTS["3xl"]}`,
595
+ "font-size": `${FONT_SIZE["4xl"]}`,
596
+ "letter-spacing": `${LETTER_SPACING.tight}`,
597
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
598
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
599
+ "text-case": `${TEXT_CASE.none}`,
600
+ "text-decoration": `${TEXT_DECORATION.none}`
601
+ }
602
+ },
603
+ Headline: {
604
+ ["Large" /* Large */]: {
605
+ "font-family": `${fontFamilies.main}`,
606
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
607
+ "line-height": `${LINE_HEIGHTS["2xl"]}`,
608
+ "font-size": `${FONT_SIZE["3xl"]}`,
609
+ "letter-spacing": `${LETTER_SPACING.tight}`,
610
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
611
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
612
+ "text-case": `${TEXT_CASE.none}`,
613
+ "text-decoration": `${TEXT_DECORATION.none}`
614
+ },
615
+ ["Medium" /* Medium */]: {
616
+ "font-family": `${fontFamilies.main}`,
617
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
618
+ "line-height": `${LINE_HEIGHTS.xl}`,
619
+ "font-size": `${FONT_SIZE["2xl"]}`,
620
+ "letter-spacing": `${LETTER_SPACING.tight}`,
621
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
622
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
623
+ "text-case": `${TEXT_CASE.none}`,
624
+ "text-decoration": `${TEXT_DECORATION.none}`
625
+ },
626
+ ["Small" /* Small */]: {
627
+ "font-family": `${fontFamilies.main}`,
628
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
629
+ "line-height": `${LINE_HEIGHTS.lg}`,
630
+ "font-size": `${FONT_SIZE.xl}`,
631
+ "letter-spacing": `${LETTER_SPACING.tight}`,
632
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
633
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
634
+ "text-case": `${TEXT_CASE.none}`,
635
+ "text-decoration": `${TEXT_DECORATION.none}`
636
+ }
637
+ },
638
+ Title: {
639
+ ["Large" /* Large */]: {
640
+ "font-family": `${fontFamilies.main}`,
641
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
642
+ "line-height": `${LINE_HEIGHTS.md}`,
643
+ "font-size": `${FONT_SIZE.lg}`,
644
+ "letter-spacing": `${LETTER_SPACING.normal}`,
645
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
646
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
647
+ "text-case": `${TEXT_CASE.none}`,
648
+ "text-decoration": `${TEXT_DECORATION.none}`
649
+ },
650
+ ["Medium" /* Medium */]: {
651
+ "font-family": `${fontFamilies.main}`,
652
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
653
+ "line-height": `${LINE_HEIGHTS.sm}`,
654
+ "font-size": `${FONT_SIZE.md}`,
655
+ "letter-spacing": `${LETTER_SPACING.normal}`,
656
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
657
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
658
+ "text-case": `${TEXT_CASE.none}`,
659
+ "text-decoration": `${TEXT_DECORATION.none}`
660
+ },
661
+ ["Small" /* Small */]: {
662
+ "font-family": `${fontFamilies.main}`,
663
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
664
+ "line-height": `${LINE_HEIGHTS.xs}`,
665
+ "font-size": `${FONT_SIZE.sm}`,
666
+ "letter-spacing": `${LETTER_SPACING.normal}`,
667
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
668
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
669
+ "text-case": `${TEXT_CASE.none}`,
670
+ "text-decoration": `${TEXT_DECORATION.none}`
671
+ }
672
+ },
673
+ Body: {
674
+ ["Large" /* Large */]: {
675
+ "font-family": `${fontFamilies.main}`,
676
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
677
+ "line-height": `${LINE_HEIGHTS.sm}`,
678
+ "font-size": `${FONT_SIZE.md}`,
679
+ "letter-spacing": `${LETTER_SPACING.normal}`,
680
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
681
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
682
+ "text-case": `${TEXT_CASE.none}`,
683
+ "text-decoration": `${TEXT_DECORATION.none}`
684
+ },
685
+ ["Medium" /* Medium */]: {
686
+ "font-family": `${fontFamilies.main}`,
687
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
688
+ "line-height": `${LINE_HEIGHTS.sm}`,
689
+ "font-size": `${FONT_SIZE.sm}`,
690
+ "letter-spacing": `${LETTER_SPACING.normal}`,
691
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
692
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
693
+ "text-case": `${TEXT_CASE.none}`,
694
+ "text-decoration": `${TEXT_DECORATION.none}`
695
+ },
696
+ ["Small" /* Small */]: {
697
+ "font-family": `${fontFamilies.main}`,
698
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
699
+ "line-height": `${LINE_HEIGHTS.sm}`,
700
+ "font-size": `${FONT_SIZE.xs}`,
701
+ "letter-spacing": `${LETTER_SPACING.normal}`,
702
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
703
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
704
+ "text-case": `${TEXT_CASE.none}`,
705
+ "text-decoration": `${TEXT_DECORATION.none}`
706
+ }
707
+ },
708
+ Label: {
709
+ ["Large" /* Large */]: {
710
+ "font-family": `${fontFamilies.main}`,
711
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
712
+ "line-height": `${LINE_HEIGHTS.xs}`,
713
+ "font-size": `${FONT_SIZE.sm}`,
714
+ "letter-spacing": `${LETTER_SPACING.normal}`,
715
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
716
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
717
+ "text-case": `${TEXT_CASE.none}`,
718
+ "text-decoration": `${TEXT_DECORATION.none}`
719
+ },
720
+ ["Medium" /* Medium */]: {
721
+ "font-family": `${fontFamilies.main}`,
722
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
723
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
724
+ "font-size": `${FONT_SIZE.xs}`,
725
+ "letter-spacing": `${LETTER_SPACING.normal}`,
726
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
727
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
728
+ "text-case": `${TEXT_CASE.none}`,
729
+ "text-decoration": `${TEXT_DECORATION.none}`
730
+ },
731
+ ["Small" /* Small */]: {
732
+ "font-family": `${fontFamilies.main}`,
733
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
734
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
735
+ "font-size": `${FONT_SIZE["2xs"]}`,
736
+ "letter-spacing": `${LETTER_SPACING.normal}`,
737
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
738
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
739
+ "text-case": `${TEXT_CASE.none}`,
740
+ "text-decoration": `${TEXT_DECORATION.none}`
741
+ }
742
+ },
743
+ "Label Strong": {
744
+ ["Large" /* Large */]: {
745
+ "font-family": `${fontFamilies.main}`,
746
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
747
+ "line-height": `${LINE_HEIGHTS.xs}`,
748
+ "font-size": `${FONT_SIZE.sm}`,
749
+ "letter-spacing": `${LETTER_SPACING.normal}`,
750
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
751
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
752
+ "text-case": `${TEXT_CASE.none}`,
753
+ "text-decoration": `${TEXT_DECORATION.none}`
754
+ },
755
+ ["Medium" /* Medium */]: {
756
+ "font-family": `${fontFamilies.main}`,
757
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
758
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
759
+ "font-size": `${FONT_SIZE.xs}`,
760
+ "letter-spacing": `${LETTER_SPACING.normal}`,
761
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
762
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
763
+ "text-case": `${TEXT_CASE.none}`,
764
+ "text-decoration": `${TEXT_DECORATION.none}`
765
+ },
766
+ ["Small" /* Small */]: {
767
+ "font-family": `${fontFamilies.main}`,
768
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
769
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
770
+ "font-size": `${FONT_SIZE["2xs"]}`,
771
+ "letter-spacing": `${LETTER_SPACING.normal}`,
772
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
773
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
774
+ "text-case": `${TEXT_CASE.none}`,
775
+ "text-decoration": `${TEXT_DECORATION.none}`
776
+ }
777
+ },
778
+ Overline: {
779
+ ["Large" /* Large */]: {
780
+ "font-family": `${fontFamilies.code}`,
781
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
782
+ "line-height": `${LINE_HEIGHTS.sm}`,
783
+ "font-size": `${FONT_SIZE.md}`,
784
+ "letter-spacing": `${LETTER_SPACING.loose}`,
785
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
786
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
787
+ "text-case": `${TEXT_CASE.uppercase}`,
788
+ "text-decoration": `${TEXT_DECORATION.none}`
789
+ },
790
+ ["Medium" /* Medium */]: {
791
+ "font-family": `${fontFamilies.code}`,
792
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
793
+ "line-height": `${LINE_HEIGHTS.xs}`,
794
+ "font-size": `${FONT_SIZE.sm}`,
795
+ "letter-spacing": `${LETTER_SPACING.loose}`,
796
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
797
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
798
+ "text-case": `${TEXT_CASE.uppercase}`,
799
+ "text-decoration": `${TEXT_DECORATION.none}`
800
+ },
801
+ ["Small" /* Small */]: {
802
+ "font-family": `${fontFamilies.code}`,
803
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
804
+ "line-height": `${LINE_HEIGHTS["2xs"]}`,
805
+ "font-size": `${FONT_SIZE.xs}`,
806
+ "letter-spacing": `${LETTER_SPACING.loose}`,
807
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
808
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
809
+ "text-case": `${TEXT_CASE.uppercase}`,
810
+ "text-decoration": `${TEXT_DECORATION.none}`
811
+ }
812
+ },
813
+ Code: {
814
+ ["Large" /* Large */]: {
815
+ "font-family": `${fontFamilies.code}`,
816
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
817
+ "line-height": `${LINE_HEIGHTS.sm}`,
818
+ "font-size": `${FONT_SIZE.md}`,
819
+ "letter-spacing": `${LETTER_SPACING.normal}`,
820
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
821
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
822
+ "text-case": `${TEXT_CASE.none}`,
823
+ "text-decoration": `${TEXT_DECORATION.none}`
824
+ },
825
+ ["Medium" /* Medium */]: {
826
+ "font-family": `${fontFamilies.code}`,
827
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
828
+ "line-height": `${LINE_HEIGHTS.sm}`,
829
+ "font-size": `${FONT_SIZE.sm}`,
830
+ "letter-spacing": `${LETTER_SPACING.normal}`,
831
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
832
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
833
+ "text-case": `${TEXT_CASE.none}`,
834
+ "text-decoration": `${TEXT_DECORATION.none}`
835
+ },
836
+ ["Small" /* Small */]: {
837
+ "font-family": `${fontFamilies.code}`,
838
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
839
+ "line-height": `${LINE_HEIGHTS.xs}`,
840
+ "font-size": `${FONT_SIZE.xs}`,
841
+ "letter-spacing": `${LETTER_SPACING.normal}`,
842
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
843
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
844
+ "text-case": `${TEXT_CASE.none}`,
845
+ "text-decoration": `${TEXT_DECORATION.none}`
846
+ }
847
+ },
848
+ "Code Strong": {
849
+ ["Large" /* Large */]: {
850
+ "font-family": `${fontFamilies.code}`,
851
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
852
+ "line-height": `${LINE_HEIGHTS.sm}`,
853
+ "font-size": `${FONT_SIZE.md}`,
854
+ "letter-spacing": `${LETTER_SPACING.normal}`,
855
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
856
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
857
+ "text-case": `${TEXT_CASE.none}`,
858
+ "text-decoration": `${TEXT_DECORATION.none}`
859
+ },
860
+ ["Medium" /* Medium */]: {
861
+ "font-family": `${fontFamilies.code}`,
862
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
863
+ "line-height": `${LINE_HEIGHTS.sm}`,
864
+ "font-size": `${FONT_SIZE.sm}`,
865
+ "letter-spacing": `${LETTER_SPACING.normal}`,
866
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
867
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
868
+ "text-case": `${TEXT_CASE.none}`,
869
+ "text-decoration": `${TEXT_DECORATION.none}`
870
+ },
871
+ ["Small" /* Small */]: {
872
+ "font-family": `${fontFamilies.code}`,
873
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
874
+ "line-height": `${LINE_HEIGHTS.sm}`,
875
+ "font-size": `${FONT_SIZE.xs}`,
876
+ "letter-spacing": `${LETTER_SPACING.normal}`,
877
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
878
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
879
+ "text-case": `${TEXT_CASE.none}`,
880
+ "text-decoration": `${TEXT_DECORATION.none}`
881
+ }
882
+ }
883
+ }
884
+ };
885
+ };
886
+
887
+ // src/styles/colors.tsx
888
+ var neutral = {
889
+ black: "#000000",
890
+ gray5: "#0D0D0D",
891
+ gray10: "#1A1A1A",
892
+ gray15: "#262626",
893
+ gray20: "#333333",
894
+ gray25: "#404040",
895
+ gray30: "#4D4D4D",
896
+ gray40: "#666666",
897
+ gray50: "#808080",
898
+ gray60: "#999999",
899
+ gray70: "#B3B3B3",
900
+ gray80: "#CCCCCC",
901
+ gray85: "#D9D9D9",
902
+ gray90: "#E6E6E6",
903
+ gray95: "#F2F2F2",
904
+ white: "#FFFFFF"
905
+ };
906
+ var uma = {
907
+ background: "#F9F9F9",
908
+ black: "#16171A",
909
+ blue: "#0068C9",
910
+ blue50: "#C0C9D6",
911
+ blue80: "#DCE2EA",
912
+ blue90: "#EBEEF2",
913
+ blue95: "#F2F5F7",
914
+ grey300: "#DEDFE4",
915
+ secondary: "#686A72",
916
+ stroke: "#C0C9D6",
917
+ strokeProminent: "#9BA7B9",
918
+ fill: "#EBEEF2"
919
+ };
920
+ var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
921
+ var primary = "#FFF14E";
922
+ var colors = __spreadProps(__spreadValues({}, neutral), {
923
+ uma,
924
+ // green
925
+ success: "#17C27C",
926
+ // blue
927
+ blue43: "#145BC6",
928
+ blue22: "#0E2E60",
929
+ blue58: "#28BFFF",
930
+ blue95: "#EBEEF2",
931
+ // yellow
932
+ primary,
933
+ warning: primary,
934
+ // orange
935
+ danger: "#FD2C0F",
936
+ // neutral
937
+ secondary: neutral.black,
938
+ // billing
939
+ tier1: "#179257",
940
+ tier2: "#8B38DE",
941
+ tier3: "#0048F7"
942
+ });
943
+ function extend(obj, rest) {
944
+ return __spreadValues(__spreadValues({}, obj), rest);
945
+ }
946
+ function extendBase(obj, rest) {
947
+ return __spreadValues(__spreadValues({}, obj), rest);
948
+ }
949
+ function hcNeutralFromBg(bgHex, defaultHex, altHex) {
950
+ const bgRGB = hexToRGB(bgHex);
951
+ const hcRGB = hexToRGB(defaultHex);
952
+ if (!bgRGB || !hcRGB)
953
+ return defaultHex;
954
+ const c = contrast(bgRGB, hcRGB);
955
+ if (c < 4.5) {
956
+ return altHex;
957
+ }
958
+ return defaultHex;
959
+ }
960
+ var lightBaseTheme = {
961
+ type: "light" /* Light */,
962
+ app: "Lightspark" /* Lightspark */,
963
+ bg: colors.white,
964
+ smBg: colors.white,
965
+ c05Neutral: neutral.gray95,
966
+ c1Neutral: neutral.gray90,
967
+ c15Neutral: neutral.gray85,
968
+ c2Neutral: neutral.gray80,
969
+ c3Neutral: neutral.gray70,
970
+ c4Neutral: neutral.gray60,
971
+ c5Neutral: neutral.gray50,
972
+ c6Neutral: neutral.gray40,
973
+ c7Neutral: neutral.gray30,
974
+ c8Neutral: neutral.gray20,
975
+ c9Neutral: neutral.gray10,
976
+ danger: colors.danger,
977
+ hcNeutral: colors.black,
978
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
979
+ info: colors.blue43,
980
+ lcNeutral: neutral.gray80,
981
+ link: colors.blue43,
982
+ mcNeutral: neutral.gray40,
983
+ onInfoText: colors.white,
984
+ onPrimaryText: colors.black,
985
+ onSuccessText: colors.white,
986
+ primary: colors.primary,
987
+ secondary: colors.secondary,
988
+ success: colors.success,
989
+ text: colors.black,
990
+ typography: getTypography(),
991
+ vlcNeutral: neutral.gray95,
992
+ warning: colors.warning
993
+ };
994
+ var darkBaseTheme = {
995
+ type: "dark" /* Dark */,
996
+ app: "Lightspark" /* Lightspark */,
997
+ bg: colors.black,
998
+ smBg: colors.black,
999
+ c05Neutral: neutral.gray5,
1000
+ c1Neutral: neutral.gray10,
1001
+ c15Neutral: neutral.gray15,
1002
+ c2Neutral: neutral.gray20,
1003
+ c3Neutral: neutral.gray30,
1004
+ c4Neutral: neutral.gray40,
1005
+ c5Neutral: neutral.gray50,
1006
+ c6Neutral: neutral.gray60,
1007
+ c7Neutral: neutral.gray70,
1008
+ c8Neutral: neutral.gray80,
1009
+ c9Neutral: neutral.gray90,
1010
+ danger: colors.danger,
1011
+ hcNeutral: colors.white,
1012
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.white, colors.black),
1013
+ info: colors.white,
1014
+ lcNeutral: neutral.gray40,
1015
+ link: colors.blue43,
1016
+ mcNeutral: neutral.gray60,
1017
+ onInfoText: colors.white,
1018
+ onPrimaryText: colors.black,
1019
+ onSuccessText: colors.white,
1020
+ primary: colors.primary,
1021
+ secondary: colors.secondary,
1022
+ success: colors.success,
1023
+ text: colors.white,
1024
+ typography: getTypography(),
1025
+ vlcNeutral: neutral.gray20,
1026
+ warning: colors.warning
1027
+ };
1028
+ var lightTheme = extend(lightBaseTheme, {
1029
+ header: extendBase(lightBaseTheme, {
1030
+ text: colors.gray60
1031
+ }),
1032
+ nav: extendBase(lightBaseTheme, {
1033
+ text: colors.gray10,
1034
+ secondary: colors.secondary
1035
+ }),
1036
+ content: extendBase(lightBaseTheme, {
1037
+ bg: colors.white,
1038
+ smBg: colors.white
1039
+ }),
1040
+ controls: extendBase(lightBaseTheme, {
1041
+ bg: neutral.gray95,
1042
+ smBg: neutral.gray95,
1043
+ text: neutral.gray60,
1044
+ secondary: colors.secondary
1045
+ })
1046
+ });
1047
+ var darkTheme = extend(darkBaseTheme, {
1048
+ header: extendBase(darkBaseTheme, {}),
1049
+ nav: extendBase(darkBaseTheme, {}),
1050
+ content: extendBase(darkBaseTheme, {}),
1051
+ controls: extendBase(darkBaseTheme, {
1052
+ bg: neutral.gray40,
1053
+ smBg: neutral.gray40,
1054
+ text: neutral.white,
1055
+ secondary: colors.secondary
1056
+ })
1057
+ });
1058
+ var umaLightTheme = extend(lightTheme, {
1059
+ app: "UmaDocs" /* UmaDocs */,
1060
+ bg: uma.background,
1061
+ smBg: uma.background,
1062
+ secondary: uma.secondary,
1063
+ text: uma.black,
1064
+ link: uma.blue,
1065
+ content: extendBase(lightBaseTheme, {
1066
+ bg: uma.background,
1067
+ smBg: uma.background,
1068
+ text: uma.black,
1069
+ secondary: uma.secondary
1070
+ }),
1071
+ controls: extendBase(lightBaseTheme, {
1072
+ text: uma.black,
1073
+ secondary: uma.secondary,
1074
+ bg: uma.blue90
1075
+ })
1076
+ });
1077
+ var isLight = (theme) => theme.type === "light" /* Light */;
1078
+ var themeOr = (lightValue, darkValue) => ({ theme }) => {
1079
+ return isLight(theme) ? lightValue : darkValue;
1080
+ };
1081
+ function luminance(r, g, b) {
1082
+ const a = [r, g, b].map(function(v) {
1083
+ v /= 255;
1084
+ return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
1085
+ });
1086
+ return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
1087
+ }
1088
+ function contrast(rgb1, rgb2) {
1089
+ const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
1090
+ const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
1091
+ const brightest = Math.max(lum1, lum2);
1092
+ const darkest = Math.min(lum1, lum2);
1093
+ return (brightest + 0.05) / (darkest + 0.05);
1094
+ }
1095
+ function hexToRGB(hex) {
1096
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
1097
+ return result ? [
1098
+ parseInt(result[1], 16),
1099
+ parseInt(result[2], 16),
1100
+ parseInt(result[3], 16)
1101
+ ] : [0, 0, 0];
1102
+ }
1103
+
1104
+ // src/styles/common.tsx
1105
+ var import_react4 = require("@emotion/react");
1106
+ var import_styled = __toESM(require("@emotion/styled"), 1);
1107
+ var import_react_tooltip = require("react-tooltip");
1108
+
1109
+ // src/styles/z-index.tsx
1110
+ var z = {
1111
+ card: 1,
1112
+ fieldError: 1,
1113
+ textInput: 2,
1114
+ select: 3,
1115
+ selectFocused: 4,
1116
+ walletActionPreviewTopGradient: 1,
1117
+ headerContainer: 99,
1118
+ smBanner: 99,
1119
+ headerTop: 100,
1120
+ navMenu: 100,
1121
+ smNavMenu: 100,
1122
+ navAction: 101,
1123
+ smNavAction: 100,
1124
+ // keep under navDropdown
1125
+ tooltip: 160,
1126
+ notificationBanner: 170,
1127
+ qrReaderVideo: 180,
1128
+ qrReaderOverlay: 181,
1129
+ modalOverlay: 190,
1130
+ modalContainer: 191,
1131
+ dropdown: 192,
1132
+ toast: 200
1133
+ };
1134
+
1135
+ // src/styles/common.tsx
1136
+ var rootFontSizePx = 12;
1137
+ var rootFontSizeRems = rootFontSizePx / 16;
1138
+ var standardContentInsetPx = 32;
1139
+ var standardContentInsetMdPx = 24;
1140
+ var standardContentInsetSmPx = 16;
1141
+ var smContentInset = import_react4.css`
1142
+ ${bp.sm(`
1143
+ margin-left: auto;
1144
+ margin-right: auto;
1145
+ width: calc(100% - ${standardContentInsetSmPx * 2}px);
1146
+ `)}
1147
+ `;
1148
+ var minSmMaxLgContentInset = import_react4.css`
1149
+ ${bp.minSmMaxLg(`
1150
+ width: calc(100% - ${standardContentInsetMdPx * 2}px);
1151
+ `)}
1152
+ `;
1153
+ var standardContentInset = import_react4.css`
1154
+ margin-left: auto;
1155
+ margin-right: auto;
1156
+ width: calc(100% - ${standardContentInsetPx * 2}px);
1157
+ max-width: 1280px;
1158
+
1159
+ ${smContentInset}
1160
+ ${minSmMaxLgContentInset}
1161
+ `;
1162
+ var standardCardShadow = import_react4.css`
1163
+ box-shadow:
1164
+ 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
1165
+ 0px 8px 24px 0px rgba(0, 0, 0, 0.04);
1166
+ `;
1167
+ var pageBorderRadiusPx = 16;
1168
+ var pageBorderRadius = `
1169
+ border-radius: ${pageBorderRadiusPx}px;
1170
+ `;
1171
+ var subtext = ({ theme }) => import_react4.css`
1172
+ color: ${theme.c6Neutral};
1173
+ font-weight: 600;
1174
+ `;
1175
+ var Subtext = import_styled.default.div`
1176
+ ${subtext}
1177
+ `;
1178
+ var darkGradientBg = import_react4.css`
1179
+ background: ${darkGradient};
1180
+ `;
1181
+ var StyledTooltip = (0, import_styled.default)(import_react_tooltip.Tooltip)`
1182
+ z-index: ${z.modalOverlay};
1183
+ `;
1184
+
1185
+ // src/styles/fields.tsx
1186
+ var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
1187
+ var maxFieldWidth = "100%";
1188
+ var fieldWidth = "100%";
1189
+ var inputSpacingPx = 24;
1190
+ var formButtonTopMargin = "32px";
1191
+ var formButtonTopMarginStyle = import_react5.css`
1192
+ margin-top: ${formButtonTopMargin};
1193
+ `;
1194
+ var standardBorderColor = ({ theme }) => import_react5.css`
1195
+ border-color: ${themeOr(theme.c1Neutral, theme.mcNeutral)({ theme })};
1196
+ `;
1197
+ var textInputPlaceholderColor = ({ theme }) => theme.c4Neutral;
1198
+ var textInputColor = ({ theme }) => theme.text;
1199
+ var textInputFontWeight = 600;
1200
+ var textInputBorderRadiusPx = 8;
1201
+ var textInputPaddingPx = 12;
1202
+ var textInputPadding = `${textInputPaddingPx}px`;
1203
+ var textInputBorderColor = ({ theme }) => themeOr(theme.c1Neutral, theme.c3Neutral)({ theme });
1204
+ var textInputBorderColorFocused = ({ theme }) => themeOr(theme.hcNeutral, theme.hcNeutral)({ theme });
1205
+ var textInputStyle = ({
1206
+ theme,
1207
+ disabled,
1208
+ hasError,
1209
+ paddingLeftPx,
1210
+ paddingRightPx
1211
+ }) => {
1212
+ var _a;
1213
+ return import_react5.css`
1214
+ border-radius: ${textInputBorderRadiusPx}px;
1215
+ background-color: ${disabled ? theme.vlcNeutral : theme.bg};
1216
+ pointer-events: ${disabled ? "none" : "auto"};
1217
+ box-sizing: border-box;
1218
+ font-weight: ${textInputFontWeight};
1219
+
1220
+ position: relative;
1221
+ z-index: ${z.textInput};
1222
+ font-family: ${(_a = theme.typography) == null ? void 0 : _a.fontFamilies.main};
1223
+ padding: ${textInputPaddingPx - (hasError ? 1 : 0)}px;
1224
+ ${paddingLeftPx ? `padding-left: ${paddingLeftPx - (hasError ? 1 : 0)}px;` : ""}
1225
+ ${paddingRightPx ? `padding-right: ${paddingRightPx - (hasError ? 1 : 0)}px;` : ""}
1226
+ border-style: solid;
1227
+ border-width: ${hasError ? "2" : "1"}px;
1228
+ border-color: ${hasError ? theme.danger : textInputBorderColor({ theme })};
1229
+ line-height: 22px;
1230
+ outline: none;
1231
+ /* Use low contrast by default. Some fields, eg login, need high contrast simply
1232
+ because of quirks with default autofill styles. Clicking in to an autofilled value
1233
+ does not change the color of the text, it just uses the default field color */
1234
+ color: ${textInputColor({ theme })};
1235
+ font-size: 14px;
1236
+ width: ${fieldWidth};
1237
+ max-width: ${maxFieldWidth};
1238
+ text-overflow: ellipsis;
1239
+ &:focus,
1240
+ &:active {
1241
+ border-color: ${textInputBorderColorFocused({ theme })};
1242
+ border-width: 2px;
1243
+ color: ${textInputColor({ theme })};
1244
+ padding: ${textInputPaddingPx - 1}px;
1245
+ ${paddingLeftPx ? `padding-left: ${paddingLeftPx - 1}px;` : ""}
1246
+ ${paddingRightPx ? `padding-right: ${paddingRightPx - 1}px;` : ""}
1247
+ }
1248
+
1249
+ &::placeholder {
1250
+ color: ${textInputPlaceholderColor({ theme })};
1251
+ }
1252
+
1253
+ &:focus::placeholder {
1254
+ color: ${textInputPlaceholderColor({ theme })};
1255
+ }
1256
+ `;
1257
+ };
1258
+ var FieldError = import_styled2.default.div`
1259
+ background-color: rgba(242, 239, 255, 1);
1260
+ padding: 16px 16px 8px;
1261
+ margin-top: -8px;
1262
+ border-radius: 0 0 8px 8px;
1263
+ position: relative;
1264
+ z-index: ${z.fieldError};
1265
+ `;
1266
+ var aboveFieldError = ({
1267
+ theme,
1268
+ hasError
1269
+ }) => import_react5.css`
1270
+ ${hasError ? "border: none !important" : ""};
1271
+ background-color: ${theme.bg};
1272
+ position: relative;
1273
+ z-index: ${z.fieldError + 1};
1274
+ ${hasError && "box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1);"}
1275
+ `;
1276
+ var inputSubtextSeconds = 0.25;
1277
+ function InputSubtext({
1278
+ text,
1279
+ hasError = false
1280
+ }) {
1281
+ const timeoutRef = (0, import_react6.useRef)(null);
1282
+ const [subtext2, setSubtext] = (0, import_react6.useState)(text);
1283
+ const [visible, setVisible] = (0, import_react6.useState)(Boolean(text));
1284
+ (0, import_react6.useLayoutEffect)(() => {
1285
+ if (text) {
1286
+ setSubtext(text);
1287
+ setVisible(true);
1288
+ if (timeoutRef.current) {
1289
+ clearTimeout(timeoutRef.current);
1290
+ }
1291
+ } else {
1292
+ setVisible(false);
1293
+ timeoutRef.current = setTimeout(() => {
1294
+ setSubtext(void 0);
1295
+ }, inputSubtextSeconds * 1e3);
1296
+ }
1297
+ }, [text]);
1298
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyledInputSubtext, { visible, hasError, children: subtext2 });
1299
+ }
1300
+ var StyledInputSubtext = import_styled2.default.div`
1301
+ margin-top: ${({ visible }) => visible ? "8px" : "0px"};
1302
+ margin-left: ${({ visible }) => visible ? "8px" : "0px"};
1303
+ font-size: 12px;
1304
+ font-size: ${({ visible }) => visible ? "12px" : "0px"};
1305
+ opacity: ${({ visible }) => visible ? "1" : "0"};
1306
+ overflow: hidden;
1307
+ transition:
1308
+ font-size ${inputSubtextSeconds}s cubic-bezier(0.25, 0.87, 0.56, 1.23),
1309
+ opacity ${inputSubtextSeconds * 0.8}s cubic-bezier(0.25, 0.87, 0.56, 1.23),
1310
+ margin ${inputSubtextSeconds}s cubic-bezier(0.25, 0.87, 0.56, 1.23);
1311
+ color: ${({ hasError, theme }) => hasError ? theme.danger : theme.text};
1312
+ `;
1313
+ var labelStyle = ({
1314
+ theme,
1315
+ hasError
1316
+ }) => import_react5.css`
1317
+ color: ${hasError ? theme.danger : theme.text};
1318
+ font-size: 14px;
1319
+ display: flex;
1320
+ justify-content: space-between;
1321
+ align-items: center;
1322
+ & + * {
1323
+ margin-top: 12px;
1324
+ }
1325
+ * ~ & {
1326
+ margin-top: 40px;
1327
+ }
1328
+ `;
1329
+ var Label = import_styled2.default.label`
1330
+ ${subtext}
1331
+ ${labelStyle}
1332
+ `;
1333
+ var LabelDiv = import_styled2.default.div`
1334
+ ${subtext}
1335
+ ${labelStyle}
1336
+ `;
1337
+ // Annotate the CommonJS export names for ESM import in node:
1338
+ 0 && (module.exports = {
1339
+ FieldError,
1340
+ InputSubtext,
1341
+ Label,
1342
+ LabelDiv,
1343
+ StyledInputSubtext,
1344
+ aboveFieldError,
1345
+ fieldWidth,
1346
+ formButtonTopMargin,
1347
+ formButtonTopMarginStyle,
1348
+ inputSpacingPx,
1349
+ labelStyle,
1350
+ maxFieldWidth,
1351
+ standardBorderColor,
1352
+ textInputBorderColor,
1353
+ textInputBorderColorFocused,
1354
+ textInputBorderRadiusPx,
1355
+ textInputColor,
1356
+ textInputFontWeight,
1357
+ textInputPadding,
1358
+ textInputPaddingPx,
1359
+ textInputPlaceholderColor,
1360
+ textInputStyle
1361
+ });