@lightsparkdev/ui 1.0.6 → 1.0.8

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 (697) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/{chunk-4EV5IUUJ.js → chunk-22TGTMSK.js} +25 -8
  3. package/dist/chunk-24G7XKW5.cjs +87 -0
  4. package/dist/{chunk-ENBUKLVT.js → chunk-24PXYMSU.js} +829 -0
  5. package/dist/chunk-24SOCRDH.cjs +94 -0
  6. package/dist/chunk-2C4Z2X45.cjs +81 -0
  7. package/dist/chunk-2ON6YBGL.cjs +40 -0
  8. package/dist/chunk-2R4K7WK4.cjs +27 -0
  9. package/dist/chunk-2WREDS5B.cjs +73 -0
  10. package/dist/{chunk-SCIQSZSW.js → chunk-34MTU3ER.js} +3 -1
  11. package/dist/chunk-3JDF42CW.cjs +24 -0
  12. package/dist/chunk-3JTH7BHI.cjs +53 -0
  13. package/dist/chunk-3MCK6I7V.js +40 -0
  14. package/dist/chunk-3NYFUIYG.cjs +27 -0
  15. package/dist/chunk-3RJBB7Q6.cjs +38 -0
  16. package/dist/chunk-3TXLQOT4.cjs +94 -0
  17. package/dist/chunk-3UXAUDOL.cjs +168 -0
  18. package/dist/{chunk-FO7I4E45.js → chunk-3Z7RPOMO.js} +2 -2
  19. package/dist/chunk-43KEZLY6.cjs +27 -0
  20. package/dist/chunk-43LGFT5G.cjs +28 -0
  21. package/dist/chunk-46AVXTFO.cjs +6 -0
  22. package/dist/chunk-4BXMY75P.cjs +50 -0
  23. package/dist/chunk-4CW4UJ5X.cjs +50 -0
  24. package/dist/chunk-4HGJNBTO.cjs +41 -0
  25. package/dist/{chunk-RQLRNKOP.js → chunk-4IC7HDY4.js} +10 -10
  26. package/dist/chunk-4P7RPU32.cjs +94 -0
  27. package/dist/{chunk-PZTZ4436.js → chunk-4VKPCWNP.js} +2 -2
  28. package/dist/chunk-4VVPSX5O.cjs +8 -0
  29. package/dist/chunk-4XPAKKBS.cjs +264 -0
  30. package/dist/chunk-4ZF4NPF7.cjs +131 -0
  31. package/dist/chunk-52DSX7BK.cjs +26 -0
  32. package/dist/chunk-544LOSOG.cjs +27 -0
  33. package/dist/chunk-5IO7EL3S.cjs +38 -0
  34. package/dist/chunk-5O6LWFY4.cjs +49 -0
  35. package/dist/{chunk-QBRCVOJ4.js → chunk-5OIQOVHS.js} +6 -6
  36. package/dist/chunk-5P25HFMG.cjs +26 -0
  37. package/dist/{chunk-H3UUVMZ3.js → chunk-5W523NQP.js} +1 -1
  38. package/dist/chunk-6J3HJ3T2.cjs +27 -0
  39. package/dist/chunk-6LHW62FG.cjs +239 -0
  40. package/dist/chunk-6LYX73L5.cjs +67 -0
  41. package/dist/chunk-6O6PX2UG.cjs +33 -0
  42. package/dist/chunk-6VA4SAHQ.cjs +8 -0
  43. package/dist/{chunk-BRJKMY6Z.js → chunk-6YSADIN7.js} +3 -3
  44. package/dist/{chunk-EKU5IWJW.js → chunk-7ICNTAPO.js} +2 -2
  45. package/dist/chunk-7PRNB5U5.cjs +77 -0
  46. package/dist/chunk-A5QRVHWP.cjs +315 -0
  47. package/dist/chunk-A5SF55P6.cjs +27 -0
  48. package/dist/{chunk-TMIBU4ME.js → chunk-A6NNNY72.js} +1 -1
  49. package/dist/chunk-AGIM6BKC.cjs +11 -0
  50. package/dist/chunk-AJ7WPQU4.cjs +57 -0
  51. package/dist/chunk-AMAXYW5C.cjs +28 -0
  52. package/dist/{chunk-YG5BANJH.js → chunk-APUV4UN4.js} +2 -2
  53. package/dist/{chunk-QON4D7N2.js → chunk-AVEKG63Q.js} +24 -7
  54. package/dist/chunk-AXV4CDSK.cjs +89 -0
  55. package/dist/chunk-AZRC3MXC.cjs +119 -0
  56. package/dist/{chunk-I3WMJNCP.js → chunk-BBPNYL4K.js} +3 -1
  57. package/dist/chunk-BD3WXMLE.cjs +68 -0
  58. package/dist/chunk-BOBYW7PP.cjs +23 -0
  59. package/dist/chunk-BQEXNVAD.cjs +36 -0
  60. package/dist/chunk-BQG6DASD.cjs +49 -0
  61. package/dist/chunk-BS5XF33X.cjs +27 -0
  62. package/dist/chunk-BXLJEGX5.cjs +27 -0
  63. package/dist/chunk-BY47I7ZP.cjs +94 -0
  64. package/dist/chunk-C54KLX7Q.cjs +27 -0
  65. package/dist/{chunk-JZKGVGBU.js → chunk-C5KQZIKL.js} +1 -1
  66. package/dist/chunk-CB7GBZCJ.cjs +27 -0
  67. package/dist/chunk-CE5LGEAR.cjs +26 -0
  68. package/dist/chunk-CGLTHYGY.cjs +25 -0
  69. package/dist/{chunk-IIRG6R42.js → chunk-CHXBDWS3.js} +3 -3
  70. package/dist/{chunk-NBIK5O3N.js → chunk-CJBS52GU.js} +10 -10
  71. package/dist/chunk-CS3NUOE2.cjs +37 -0
  72. package/dist/chunk-CV4CDJUL.cjs +27 -0
  73. package/dist/chunk-CYWLRXPQ.cjs +34 -0
  74. package/dist/chunk-DBB5TKTS.cjs +291 -0
  75. package/dist/{chunk-YXAKRSFW.js → chunk-DBMGV4DX.js} +3 -3
  76. package/dist/{chunk-LKJ7QTWL.js → chunk-DGS7USD6.js} +4 -4
  77. package/dist/chunk-DM6GUQAV.cjs +42 -0
  78. package/dist/{chunk-D4DFISYR.js → chunk-DNRHVCOE.js} +1 -1
  79. package/dist/{chunk-M7E2PMFK.js → chunk-DPSSQNBK.js} +11 -10
  80. package/dist/{chunk-42D2SXB2.js → chunk-E4YBYEWH.js} +1 -1
  81. package/dist/chunk-E6YOHZKE.cjs +39 -0
  82. package/dist/{chunk-TN5UPDZG.js → chunk-E7RKIBJY.js} +1 -1
  83. package/dist/chunk-EDAMG44V.js +26 -0
  84. package/dist/{chunk-AVV74PTP.js → chunk-EEB6DWY3.js} +2 -2
  85. package/dist/chunk-EGOOSBGG.js +21 -0
  86. package/dist/{chunk-NK7WH3TK.js → chunk-EJZ3BXS3.js} +19 -18
  87. package/dist/chunk-ELZC2I4Y.cjs +27 -0
  88. package/dist/chunk-EM7O6Y3M.cjs +145 -0
  89. package/dist/chunk-ENRGP6TU.cjs +34 -0
  90. package/dist/chunk-EQ4V4QBD.cjs +35 -0
  91. package/dist/chunk-EXGU7HIU.cjs +49 -0
  92. package/dist/{chunk-NWPPTOKK.js → chunk-EXTVW2LU.js} +5 -5
  93. package/dist/{chunk-5JJUXAVA.js → chunk-F4RWDLPI.js} +3 -3
  94. package/dist/chunk-FBF72OKQ.cjs +33 -0
  95. package/dist/{chunk-XLKL3DNK.js → chunk-FBU6BGRP.js} +26 -9
  96. package/dist/chunk-FE2E2TKC.cjs +46 -0
  97. package/dist/{chunk-ZR2TARGX.js → chunk-FH3E64BU.js} +26 -7
  98. package/dist/chunk-FJZXLAEH.cjs +125 -0
  99. package/dist/chunk-FPOQM3WG.cjs +25 -0
  100. package/dist/chunk-FRASE266.cjs +150 -0
  101. package/dist/chunk-FZUELDMT.cjs +37 -0
  102. package/dist/chunk-G2ZTK5RI.cjs +27 -0
  103. package/dist/chunk-G5HBO2FI.cjs +21 -0
  104. package/dist/{chunk-IH5SIRJL.js → chunk-GB2UBWT4.js} +26 -8
  105. package/dist/chunk-GCE3EVF6.cjs +105 -0
  106. package/dist/chunk-GDXNYWJH.cjs +40 -0
  107. package/dist/{chunk-OPUCWQMK.js → chunk-GHXNMLAB.js} +2 -2
  108. package/dist/chunk-GSYM5JMB.cjs +17 -0
  109. package/dist/chunk-GVKKUMAK.cjs +27 -0
  110. package/dist/chunk-GWCVYEJG.cjs +118 -0
  111. package/dist/chunk-GZNDFGOK.cjs +26 -0
  112. package/dist/{chunk-45BHB7K7.js → chunk-H2OQXO5Z.js} +3 -3
  113. package/dist/chunk-H3Z7VJF4.cjs +27 -0
  114. package/dist/chunk-HA2ITLKV.cjs +26 -0
  115. package/dist/chunk-HJCROZDQ.cjs +55 -0
  116. package/dist/{chunk-QZMD3YHI.js → chunk-HN6NGIKM.js} +1 -13
  117. package/dist/{chunk-XQIQOMNE.js → chunk-HOKT6NQP.js} +1 -1
  118. package/dist/{chunk-QFVQ6QPA.js → chunk-HOR467ZW.js} +2 -2
  119. package/dist/{chunk-E6ZY35LN.js → chunk-HSBQGWYB.js} +5 -5
  120. package/dist/chunk-HTFKWW4S.cjs +381 -0
  121. package/dist/chunk-HVGR22WZ.cjs +24 -0
  122. package/dist/chunk-ICGEMWYQ.cjs +64 -0
  123. package/dist/chunk-IFT6NJX4.cjs +140 -0
  124. package/dist/chunk-IJ4XF2NA.cjs +129 -0
  125. package/dist/chunk-INAP7GDJ.cjs +27 -0
  126. package/dist/chunk-IOSJLM4O.cjs +28 -0
  127. package/dist/{chunk-4IHNUHE3.js → chunk-ISVMIEHD.js} +5 -5
  128. package/dist/chunk-J25ZXQOV.cjs +65 -0
  129. package/dist/chunk-J3G627ED.cjs +35 -0
  130. package/dist/chunk-J4YI5GMY.cjs +27 -0
  131. package/dist/chunk-JE624NDF.cjs +27 -0
  132. package/dist/chunk-JEEFB6LD.cjs +37 -0
  133. package/dist/chunk-JFMGOEGC.cjs +26 -0
  134. package/dist/chunk-JGHR6XRE.cjs +33 -0
  135. package/dist/{chunk-N67Y7GWR.js → chunk-JSOZMOEJ.js} +1 -1
  136. package/dist/{chunk-VF5KSAZG.js → chunk-JWGDZRNN.js} +3 -3
  137. package/dist/chunk-JWWKSKXB.cjs +425 -0
  138. package/dist/{chunk-AKGW3FMJ.js → chunk-JZJQOZEN.js} +2 -2
  139. package/dist/chunk-KACMKEQC.cjs +57 -0
  140. package/dist/{chunk-QEZ7L6YF.js → chunk-KKK2ML75.js} +1 -1
  141. package/dist/chunk-KLC2OBTG.cjs +243 -0
  142. package/dist/chunk-KMFK2MOB.cjs +163 -0
  143. package/dist/chunk-KPGYI4CN.cjs +37 -0
  144. package/dist/chunk-KPMZD7KJ.cjs +25 -0
  145. package/dist/chunk-KS6GHRZI.cjs +8 -0
  146. package/dist/chunk-KSKKC6C2.cjs +126 -0
  147. package/dist/chunk-KW3JYLRI.cjs +233 -0
  148. package/dist/chunk-LIVPDWXD.cjs +27 -0
  149. package/dist/chunk-LKKJVJCG.cjs +63 -0
  150. package/dist/chunk-LLJZ3BRG.cjs +50 -0
  151. package/dist/chunk-LLVW7HU4.cjs +62 -0
  152. package/dist/chunk-LU2G6KCN.cjs +41 -0
  153. package/dist/chunk-LZ24FX6C.cjs +67 -0
  154. package/dist/{chunk-EHH4M2LZ.js → chunk-MBZSVLKB.js} +5 -5
  155. package/dist/{chunk-ILCC45G7.js → chunk-MDAPZY4A.js} +22 -18
  156. package/dist/chunk-MFDGE4AE.cjs +29 -0
  157. package/dist/chunk-MHOXWPRA.cjs +80 -0
  158. package/dist/chunk-MJN5WJMC.cjs +39 -0
  159. package/dist/{chunk-7EAO66LB.js → chunk-MK445W3F.js} +5 -5
  160. package/dist/chunk-MKW2IFOO.cjs +27 -0
  161. package/dist/chunk-MMK4RQ64.cjs +468 -0
  162. package/dist/chunk-MNZQCCZJ.cjs +26 -0
  163. package/dist/chunk-MSBDBEM7.cjs +59 -0
  164. package/dist/chunk-MT2C62ED.cjs +17 -0
  165. package/dist/{chunk-GMOJB7PP.js → chunk-N5A5ZNNB.js} +13 -11
  166. package/dist/chunk-N7NM6ELD.cjs +28 -0
  167. package/dist/chunk-N7QYPDKF.cjs +27 -0
  168. package/dist/chunk-NMRDZ23R.cjs +26 -0
  169. package/dist/chunk-NN23LWC7.cjs +366 -0
  170. package/dist/chunk-NNTGGG2C.cjs +95 -0
  171. package/dist/chunk-NPTHZ6KR.cjs +377 -0
  172. package/dist/chunk-NWMYGKBQ.cjs +27 -0
  173. package/dist/chunk-O2OR4KOM.cjs +27 -0
  174. package/dist/chunk-O3WGQ5ZR.cjs +39 -0
  175. package/dist/chunk-O4MKC7U2.js +22 -0
  176. package/dist/chunk-O7UTME4V.cjs +24 -0
  177. package/dist/{chunk-AXNQ7BDD.js → chunk-ONE4Q37F.js} +4 -4
  178. package/dist/chunk-P73HWTOR.cjs +55 -0
  179. package/dist/chunk-P76JZF4N.cjs +39 -0
  180. package/dist/chunk-PBD4TY4L.cjs +104 -0
  181. package/dist/chunk-PD5XWF2Q.cjs +26 -0
  182. package/dist/chunk-PDDHDR54.cjs +351 -0
  183. package/dist/{chunk-GMEJR5XX.js → chunk-PFYBJXL5.js} +26 -11
  184. package/dist/chunk-PUSW24ER.cjs +28 -0
  185. package/dist/chunk-PYL3O7AF.cjs +164 -0
  186. package/dist/chunk-Q2OOHXBK.cjs +36 -0
  187. package/dist/chunk-Q6IGIW42.cjs +27 -0
  188. package/dist/chunk-QCJWZRIP.cjs +150 -0
  189. package/dist/chunk-QDNTIZC2.js +38 -0
  190. package/dist/chunk-QFOCB4NF.cjs +20 -0
  191. package/dist/chunk-QFXPWIS3.cjs +60 -0
  192. package/dist/chunk-QQKHEU6E.cjs +26 -0
  193. package/dist/{chunk-FT62PIPN.js → chunk-QQLUKKYZ.js} +97 -85
  194. package/dist/{chunk-LAGOF7IU.js → chunk-QQTZ6DZL.js} +3 -3
  195. package/dist/{chunk-BNHCCR3C.js → chunk-QU7VRXE6.js} +16 -13
  196. package/dist/chunk-QYJOJVJD.cjs +27 -0
  197. package/dist/chunk-R6JXXAU3.cjs +25 -0
  198. package/dist/chunk-RCWDQM37.cjs +26 -0
  199. package/dist/{chunk-KPAVY3UH.js → chunk-REL56P3K.js} +1 -0
  200. package/dist/chunk-RFJWSKGK.cjs +27 -0
  201. package/dist/chunk-RKBBY43D.cjs +59 -0
  202. package/dist/chunk-RSUJHDQA.cjs +56 -0
  203. package/dist/{chunk-SIYZ5PZT.js → chunk-RT4SDUU6.js} +19 -11
  204. package/dist/chunk-RU6KW5CM.cjs +27 -0
  205. package/dist/{chunk-Q76C6FJ5.js → chunk-RZMG2TID.js} +6 -5
  206. package/dist/chunk-S3BY6XUW.cjs +27 -0
  207. package/dist/chunk-SEJXEWOJ.cjs +51 -0
  208. package/dist/{chunk-ERNTWEIJ.js → chunk-SI63PJGM.js} +19 -12
  209. package/dist/{chunk-LH5VFS3E.js → chunk-SXY5KR2T.js} +1 -1
  210. package/dist/chunk-T6IAT66E.cjs +106 -0
  211. package/dist/chunk-T7PTO2D2.cjs +327 -0
  212. package/dist/chunk-T7ZB3XF7.cjs +16 -0
  213. package/dist/chunk-TB376AUW.cjs +25 -0
  214. package/dist/chunk-TMTEVKSD.cjs +4056 -0
  215. package/dist/{chunk-RRXB5FQC.js → chunk-TPL3YXOG.js} +7 -7
  216. package/dist/chunk-TPVPCMRQ.cjs +7 -0
  217. package/dist/chunk-TRIJJTMX.cjs +49 -0
  218. package/dist/{chunk-3DXU76SI.js → chunk-TSO4WRU4.js} +2 -2
  219. package/dist/chunk-TZ4KOSZV.cjs +33 -0
  220. package/dist/chunk-TZGHXXX4.cjs +29 -0
  221. package/dist/{chunk-QTPYP3IK.js → chunk-TZN3OW2Q.js} +2 -2
  222. package/dist/chunk-U2CKBWYJ.cjs +46 -0
  223. package/dist/chunk-U5D736PB.cjs +25 -0
  224. package/dist/{chunk-HNK2KIC7.js → chunk-UC6SP4KJ.js} +20 -5
  225. package/dist/chunk-UDKRYLGK.cjs +27 -0
  226. package/dist/chunk-UQ7P6HTC.cjs +27 -0
  227. package/dist/{chunk-IXAXRBFS.js → chunk-UUQZW2LJ.js} +25 -5
  228. package/dist/chunk-UWGIIJDN.cjs +38 -0
  229. package/dist/chunk-UZK5AYDL.cjs +124 -0
  230. package/dist/chunk-V2VDB34C.cjs +27 -0
  231. package/dist/chunk-V3IFCHJZ.cjs +37 -0
  232. package/dist/chunk-V5DGRLV7.cjs +71 -0
  233. package/dist/chunk-VB47G2O4.cjs +35 -0
  234. package/dist/chunk-VBU37CQG.cjs +48 -0
  235. package/dist/{chunk-PYAKYQWS.js → chunk-VCHMPHHC.js} +1 -1
  236. package/dist/{chunk-HLZNFEDV.js → chunk-VD3UNL3N.js} +25 -7
  237. package/dist/chunk-VDKIZEUQ.cjs +28 -0
  238. package/dist/chunk-VDL5FG27.cjs +27 -0
  239. package/dist/chunk-VMYRYEML.cjs +200 -0
  240. package/dist/chunk-VNFSKZW2.cjs +77 -0
  241. package/dist/chunk-VSFFGTTT.cjs +38 -0
  242. package/dist/{chunk-NONMMIMQ.js → chunk-VW2IB7XD.js} +1 -1
  243. package/dist/chunk-VYKXX3SH.cjs +49 -0
  244. package/dist/{chunk-UAUAYQ3C.js → chunk-W5I53DTZ.js} +154 -10
  245. package/dist/{chunk-7UBU5MKY.js → chunk-W7XPZYSY.js} +0 -1
  246. package/dist/chunk-WHCKM6E5.cjs +37 -0
  247. package/dist/chunk-WRN66OMM.cjs +27 -0
  248. package/dist/chunk-WRQEO3XT.cjs +26 -0
  249. package/dist/chunk-WTFNCHBK.cjs +30 -0
  250. package/dist/chunk-WTHHP7G2.cjs +531 -0
  251. package/dist/chunk-WW5RAKEC.cjs +27 -0
  252. package/dist/{chunk-FE477HOE.js → chunk-X5RKTU6O.js} +2 -2
  253. package/dist/chunk-XB2OTOVK.cjs +27 -0
  254. package/dist/chunk-XIFM5AMT.cjs +49 -0
  255. package/dist/chunk-XJPYWPVG.cjs +179 -0
  256. package/dist/chunk-XKQ2XWU5.cjs +28 -0
  257. package/dist/chunk-XTE2IISE.cjs +103 -0
  258. package/dist/chunk-XTLPMH2Q.cjs +27 -0
  259. package/dist/chunk-XYXNI3AO.cjs +76 -0
  260. package/dist/chunk-XZKD27Y2.cjs +49 -0
  261. package/dist/chunk-Y2U2KEP4.cjs +38 -0
  262. package/dist/chunk-Y6M4SBN7.cjs +102 -0
  263. package/dist/chunk-YHDN5LEA.cjs +22 -0
  264. package/dist/chunk-YJJBABLW.cjs +75 -0
  265. package/dist/chunk-YPCTBP2X.cjs +37 -0
  266. package/dist/chunk-YZVHWN44.cjs +101 -0
  267. package/dist/chunk-Z5IAIRIS.cjs +28 -0
  268. package/dist/chunk-ZBBVZQKJ.cjs +21 -0
  269. package/dist/{chunk-GGWFUEDW.js → chunk-ZHCJTMTX.js} +26 -8
  270. package/dist/chunk-ZPIJMKJZ.cjs +218 -0
  271. package/dist/chunk-ZR3J7SMI.cjs +17 -0
  272. package/dist/chunk-ZRHJQUKS.cjs +49 -0
  273. package/dist/chunk-ZSGQEOY3.cjs +37 -0
  274. package/dist/{chunk-PBLWYVQF.js → chunk-ZTIL63SE.js} +25 -7
  275. package/dist/chunk-ZU72XWNE.cjs +29 -0
  276. package/dist/chunk-ZUAO4DW3.cjs +65 -0
  277. package/dist/components/Badge.cjs +152 -8397
  278. package/dist/components/Badge.d.cts +6 -8
  279. package/dist/components/Badge.d.ts +6 -8
  280. package/dist/components/Badge.js +68 -63
  281. package/dist/components/Banner/Banner.cjs +153 -8552
  282. package/dist/components/Banner/Banner.d.cts +6 -8
  283. package/dist/components/Banner/Banner.d.ts +6 -8
  284. package/dist/components/Banner/Banner.js +68 -63
  285. package/dist/components/Banner/constants.cjs +8 -32
  286. package/dist/components/Button.cjs +159 -8821
  287. package/dist/components/Button.d.cts +11 -6
  288. package/dist/components/Button.d.ts +11 -6
  289. package/dist/components/Button.js +70 -65
  290. package/dist/components/ButtonRow.cjs +159 -8937
  291. package/dist/components/ButtonRow.d.cts +6 -2
  292. package/dist/components/ButtonRow.d.ts +6 -2
  293. package/dist/components/ButtonRow.js +72 -67
  294. package/dist/components/CardPage.cjs +167 -4383
  295. package/dist/components/CardPage.js +74 -69
  296. package/dist/components/Checkbox.cjs +11 -351
  297. package/dist/components/Checkbox.js +7 -6
  298. package/dist/components/CodeBlock.cjs +143 -8188
  299. package/dist/components/CodeBlock.js +56 -52
  300. package/dist/components/CodeInput/CodeInput.cjs +15 -4440
  301. package/dist/components/CodeInput/CodeInput.js +10 -9
  302. package/dist/components/CodeInput/SingleCodeInput.cjs +17 -4131
  303. package/dist/components/CodeInput/SingleCodeInput.js +9 -8
  304. package/dist/components/Collapsible.cjs +140 -7976
  305. package/dist/components/Collapsible.d.cts +4 -1
  306. package/dist/components/Collapsible.d.ts +4 -1
  307. package/dist/components/Collapsible.js +53 -49
  308. package/dist/components/CommaNumberInput.cjs +142 -8583
  309. package/dist/components/CommaNumberInput.d.cts +8 -4
  310. package/dist/components/CommaNumberInput.d.ts +8 -4
  311. package/dist/components/CommaNumberInput.js +59 -55
  312. package/dist/components/CommandKey.cjs +7 -71
  313. package/dist/components/ContentTable.cjs +134 -7771
  314. package/dist/components/ContentTable.js +52 -48
  315. package/dist/components/CopyToClipboardButton.cjs +135 -7939
  316. package/dist/components/CopyToClipboardButton.d.cts +4 -1
  317. package/dist/components/CopyToClipboardButton.d.ts +4 -1
  318. package/dist/components/CopyToClipboardButton.js +54 -50
  319. package/dist/components/CurrencyAmount.cjs +134 -7808
  320. package/dist/components/CurrencyAmount.d.cts +0 -6
  321. package/dist/components/CurrencyAmount.d.ts +0 -6
  322. package/dist/components/CurrencyAmount.js +52 -48
  323. package/dist/components/Drawer.cjs +156 -9079
  324. package/dist/components/Drawer.js +71 -66
  325. package/dist/components/Dropdown.cjs +136 -8229
  326. package/dist/components/Dropdown.d.cts +5 -2
  327. package/dist/components/Dropdown.d.ts +5 -2
  328. package/dist/components/Dropdown.js +54 -50
  329. package/dist/components/FileInput.cjs +141 -8257
  330. package/dist/components/FileInput.js +58 -54
  331. package/dist/components/Flex.cjs +6 -50
  332. package/dist/components/GradientCardHeader.cjs +17 -506
  333. package/dist/components/GradientCardHeader.js +9 -8
  334. package/dist/components/Icon/Icon.cjs +134 -7721
  335. package/dist/components/Icon/Icon.d.cts +5 -2
  336. package/dist/components/Icon/Icon.d.ts +5 -2
  337. package/dist/components/Icon/Icon.js +51 -47
  338. package/dist/components/Icon/types.cjs +1 -18
  339. package/dist/components/Icon/types.d.cts +4 -1
  340. package/dist/components/Icon/types.d.ts +4 -1
  341. package/dist/components/IconWithCircleBackground.cjs +133 -7746
  342. package/dist/components/IconWithCircleBackground.js +52 -48
  343. package/dist/components/InfoIconTooltip.cjs +152 -8416
  344. package/dist/components/InfoIconTooltip.d.cts +6 -8
  345. package/dist/components/InfoIconTooltip.d.ts +6 -8
  346. package/dist/components/InfoIconTooltip.js +69 -64
  347. package/dist/components/LightboxImage.cjs +5 -182
  348. package/dist/components/LightsparkProvider.cjs +16 -3969
  349. package/dist/components/LightsparkProvider.js +8 -7
  350. package/dist/components/Loading.cjs +136 -7774
  351. package/dist/components/Loading.d.cts +9 -11
  352. package/dist/components/Loading.d.ts +9 -11
  353. package/dist/components/Loading.js +56 -50
  354. package/dist/components/Modal.cjs +163 -9662
  355. package/dist/components/Modal.d.cts +13 -10
  356. package/dist/components/Modal.d.ts +13 -10
  357. package/dist/components/Modal.js +76 -71
  358. package/dist/components/PageSection/PageSection.cjs +184 -9622
  359. package/dist/components/PageSection/PageSection.d.cts +10 -4
  360. package/dist/components/PageSection/PageSection.d.ts +10 -4
  361. package/dist/components/PageSection/PageSection.js +77 -72
  362. package/dist/components/PageSection/PageSectionNav.cjs +154 -8541
  363. package/dist/components/PageSection/PageSectionNav.d.cts +4 -1
  364. package/dist/components/PageSection/PageSectionNav.d.ts +4 -1
  365. package/dist/components/PageSection/PageSectionNav.js +71 -65
  366. package/dist/components/PageSection/constants.cjs +6 -29
  367. package/dist/components/PhoneInput.cjs +141 -8789
  368. package/dist/components/PhoneInput.d.cts +1 -1
  369. package/dist/components/PhoneInput.d.ts +1 -1
  370. package/dist/components/PhoneInput.js +59 -55
  371. package/dist/components/Pill.cjs +135 -8010
  372. package/dist/components/Pill.d.cts +4 -1
  373. package/dist/components/Pill.d.ts +4 -1
  374. package/dist/components/Pill.js +55 -51
  375. package/dist/components/ProgressBar.cjs +11 -3862
  376. package/dist/components/ProgressBar.js +7 -6
  377. package/dist/components/Radio.cjs +140 -8110
  378. package/dist/components/Radio.js +57 -52
  379. package/dist/components/SecretContainer.cjs +136 -7978
  380. package/dist/components/SecretContainer.js +55 -51
  381. package/dist/components/StatusIndicator.cjs +12 -363
  382. package/dist/components/StatusIndicator.js +8 -7
  383. package/dist/components/TextButton.cjs +152 -8463
  384. package/dist/components/TextButton.d.cts +9 -2
  385. package/dist/components/TextButton.d.ts +9 -2
  386. package/dist/components/TextButton.js +70 -64
  387. package/dist/components/TextIconAligner.cjs +150 -8309
  388. package/dist/components/TextIconAligner.d.cts +15 -7
  389. package/dist/components/TextIconAligner.d.ts +15 -7
  390. package/dist/components/TextIconAligner.js +68 -62
  391. package/dist/components/TextInput.cjs +141 -8445
  392. package/dist/components/TextInput.d.cts +8 -3
  393. package/dist/components/TextInput.d.ts +8 -3
  394. package/dist/components/TextInput.js +58 -54
  395. package/dist/components/Toasts.cjs +153 -8745
  396. package/dist/components/Toasts.d.cts +6 -8
  397. package/dist/components/Toasts.d.ts +6 -8
  398. package/dist/components/Toasts.js +70 -65
  399. package/dist/components/Toggle.cjs +12 -3902
  400. package/dist/components/Toggle.js +8 -7
  401. package/dist/components/Tooltip.cjs +12 -3886
  402. package/dist/components/Tooltip.js +7 -6
  403. package/dist/components/UnstyledButton.cjs +11 -314
  404. package/dist/components/UnstyledButton.js +7 -6
  405. package/dist/components/documentation/AnchorLinkHeader.cjs +142 -7900
  406. package/dist/components/documentation/AnchorLinkHeader.d.cts +6 -2
  407. package/dist/components/documentation/AnchorLinkHeader.d.ts +6 -2
  408. package/dist/components/documentation/AnchorLinkHeader.js +58 -53
  409. package/dist/components/documentation/DocsBodyParagraph.cjs +155 -3813
  410. package/dist/components/documentation/DocsBodyParagraph.d.cts +8 -4
  411. package/dist/components/documentation/DocsBodyParagraph.d.ts +8 -4
  412. package/dist/components/documentation/DocsBodyParagraph.js +73 -52
  413. package/dist/components/documentation/DocsBodyStrongParagraph.cjs +160 -3819
  414. package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +8 -4
  415. package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +8 -4
  416. package/dist/components/documentation/DocsBodyStrongParagraph.js +76 -56
  417. package/dist/components/documentation/DocsHeadline.cjs +137 -3880
  418. package/dist/components/documentation/DocsHeadline.d.cts +6 -2
  419. package/dist/components/documentation/DocsHeadline.d.ts +6 -2
  420. package/dist/components/documentation/DocsHeadline.js +57 -52
  421. package/dist/components/documentation/Video.cjs +20 -297
  422. package/dist/components/documentation/Video.js +6 -5
  423. package/dist/components/documentation/index.cjs +141 -7901
  424. package/dist/components/documentation/index.d.cts +6 -2
  425. package/dist/components/documentation/index.d.ts +6 -2
  426. package/dist/components/documentation/index.js +58 -53
  427. package/dist/components/index.cjs +380 -14544
  428. package/dist/components/index.d.cts +8 -9
  429. package/dist/components/index.d.ts +8 -9
  430. package/dist/components/index.js +108 -103
  431. package/dist/components/typography/Article.cjs +149 -4216
  432. package/dist/components/typography/Article.js +63 -58
  433. package/dist/components/typography/Body.cjs +140 -8011
  434. package/dist/components/typography/Body.d.cts +11 -19
  435. package/dist/components/typography/Body.d.ts +11 -19
  436. package/dist/components/typography/Body.js +56 -51
  437. package/dist/components/typography/BodyStrong.cjs +140 -8010
  438. package/dist/components/typography/BodyStrong.d.cts +11 -20
  439. package/dist/components/typography/BodyStrong.d.ts +11 -20
  440. package/dist/components/typography/BodyStrong.js +56 -51
  441. package/dist/components/typography/Code.cjs +140 -8008
  442. package/dist/components/typography/Code.d.cts +11 -18
  443. package/dist/components/typography/Code.d.ts +11 -18
  444. package/dist/components/typography/Code.js +56 -51
  445. package/dist/components/typography/Display.cjs +143 -8020
  446. package/dist/components/typography/Display.d.cts +12 -11
  447. package/dist/components/typography/Display.d.ts +12 -11
  448. package/dist/components/typography/Display.js +56 -51
  449. package/dist/components/typography/Headline.cjs +147 -8042
  450. package/dist/components/typography/Headline.d.cts +12 -22
  451. package/dist/components/typography/Headline.d.ts +12 -22
  452. package/dist/components/typography/Headline.js +56 -51
  453. package/dist/components/typography/Label.cjs +140 -8009
  454. package/dist/components/typography/Label.d.cts +11 -17
  455. package/dist/components/typography/Label.d.ts +11 -17
  456. package/dist/components/typography/Label.js +56 -51
  457. package/dist/components/typography/LabelModerate.cjs +140 -8009
  458. package/dist/components/typography/LabelModerate.d.cts +11 -17
  459. package/dist/components/typography/LabelModerate.d.ts +11 -17
  460. package/dist/components/typography/LabelModerate.js +56 -51
  461. package/dist/components/typography/LabelStrong.cjs +140 -8011
  462. package/dist/components/typography/LabelStrong.d.cts +11 -19
  463. package/dist/components/typography/LabelStrong.d.ts +11 -19
  464. package/dist/components/typography/LabelStrong.js +56 -51
  465. package/dist/components/typography/Overline.cjs +140 -8009
  466. package/dist/components/typography/Overline.d.cts +11 -17
  467. package/dist/components/typography/Overline.d.ts +11 -17
  468. package/dist/components/typography/Overline.js +56 -51
  469. package/dist/components/typography/Title.cjs +140 -8010
  470. package/dist/components/typography/Title.d.cts +11 -20
  471. package/dist/components/typography/Title.d.ts +11 -20
  472. package/dist/components/typography/Title.js +56 -51
  473. package/dist/components/typography/index.cjs +180 -8535
  474. package/dist/components/typography/index.d.cts +6 -2
  475. package/dist/components/typography/index.d.ts +6 -2
  476. package/dist/components/typography/index.js +68 -63
  477. package/dist/components/typography/renderTypography.cjs +150 -8257
  478. package/dist/components/typography/renderTypography.d.cts +35 -81
  479. package/dist/components/typography/renderTypography.d.ts +35 -81
  480. package/dist/components/typography/renderTypography.js +66 -61
  481. package/dist/components/typography/types.cjs +1 -0
  482. package/dist/components/typography/types.d.cts +147 -0
  483. package/dist/components/typography/types.d.ts +147 -0
  484. package/dist/components/typography/types.js +0 -0
  485. package/dist/components/typography/typographyStyles.cjs +7 -0
  486. package/dist/components/typography/typographyStyles.d.cts +133 -0
  487. package/dist/components/typography/typographyStyles.d.ts +133 -0
  488. package/dist/components/typography/typographyStyles.js +7 -0
  489. package/dist/hooks/useDebounce.cjs +9 -32
  490. package/dist/hooks/useDocumentTitle.cjs +9 -45
  491. package/dist/hooks/useIsomorphicLayoutEffect.cjs +6 -40
  492. package/dist/hooks/useLiveRef.cjs +6 -40
  493. package/dist/hooks/useResizeObserver.cjs +6 -76
  494. package/dist/hooks/useWhatChanged.cjs +5 -28
  495. package/dist/icons/AI.cjs +6 -51
  496. package/dist/icons/AnchorLink.cjs +6 -50
  497. package/dist/icons/ApiConnection.cjs +6 -48
  498. package/dist/icons/AppIcon.cjs +6 -90
  499. package/dist/icons/ArrowCircle.cjs +5 -56
  500. package/dist/icons/ArrowCircleTier1.cjs +6 -50
  501. package/dist/icons/ArrowCircleTier2.cjs +6 -50
  502. package/dist/icons/ArrowCircleTier3.cjs +6 -50
  503. package/dist/icons/ArrowCornerDownRight.cjs +6 -50
  504. package/dist/icons/ArrowDown.cjs +6 -50
  505. package/dist/icons/ArrowUp.cjs +6 -50
  506. package/dist/icons/ArrowUpRightCircleFill.cjs +6 -50
  507. package/dist/icons/Bank.cjs +6 -50
  508. package/dist/icons/BitcoinB.cjs +6 -50
  509. package/dist/icons/BitcoinBOnRoundedSquare.cjs +6 -52
  510. package/dist/icons/CameraCapture.cjs +6 -99
  511. package/dist/icons/CaretRight.cjs +6 -50
  512. package/dist/icons/CentralArrowShareRight.cjs +6 -50
  513. package/dist/icons/Checkmark.cjs +6 -49
  514. package/dist/icons/CheckmarkCircleGreen.cjs +6 -51
  515. package/dist/icons/CheckmarkCircleTier1.cjs +6 -51
  516. package/dist/icons/CheckmarkCircleTier2.cjs +6 -51
  517. package/dist/icons/CheckmarkCircleTier3.cjs +6 -51
  518. package/dist/icons/Chevron.cjs +6 -50
  519. package/dist/icons/ChevronLeft.cjs +6 -49
  520. package/dist/icons/CircleCheck.cjs +6 -51
  521. package/dist/icons/CircleCheckOutline.cjs +6 -48
  522. package/dist/icons/CirclePlus.cjs +6 -40
  523. package/dist/icons/Clock.cjs +6 -50
  524. package/dist/icons/Close.cjs +6 -49
  525. package/dist/icons/Code.cjs +6 -50
  526. package/dist/icons/Copy.cjs +6 -48
  527. package/dist/icons/CreditCard.cjs +6 -56
  528. package/dist/icons/DeleteIcon.cjs +6 -65
  529. package/dist/icons/Dollar.cjs +6 -50
  530. package/dist/icons/DollarManrope.cjs +6 -50
  531. package/dist/icons/DollarManropeSmall.cjs +6 -50
  532. package/dist/icons/DotGrid1x3Horizontal.cjs +6 -64
  533. package/dist/icons/Download.cjs +6 -60
  534. package/dist/icons/Envelope.cjs +6 -50
  535. package/dist/icons/ExclamationPoint.cjs +6 -71
  536. package/dist/icons/Explorer.cjs +6 -47
  537. package/dist/icons/Eye.cjs +6 -58
  538. package/dist/icons/EyeDropper.cjs +6 -50
  539. package/dist/icons/Figma.cjs +6 -50
  540. package/dist/icons/FlutterTwoTone.cjs +6 -70
  541. package/dist/icons/FlutterTwoTone.js +1 -1
  542. package/dist/icons/FramedLetterI.cjs +6 -59
  543. package/dist/icons/Gear.cjs +6 -56
  544. package/dist/icons/Github.cjs +6 -47
  545. package/dist/icons/GoTwoTone.cjs +6 -88
  546. package/dist/icons/GraphQLTwoTone.cjs +6 -147
  547. package/dist/icons/HeartOutline.cjs +6 -50
  548. package/dist/icons/Home.cjs +6 -49
  549. package/dist/icons/HorizontalArrows.cjs +6 -62
  550. package/dist/icons/Info.cjs +6 -72
  551. package/dist/icons/JavaScriptTwoTone.cjs +6 -83
  552. package/dist/icons/JavaTwoTone.cjs +6 -50
  553. package/dist/icons/KotlinTwoTone.cjs +6 -62
  554. package/dist/icons/LeftArrow.cjs +6 -50
  555. package/dist/icons/LightningOnRoundedSquare.cjs +6 -50
  556. package/dist/icons/LinkIcon.cjs +6 -62
  557. package/dist/icons/LoadingCircleLines.cjs +7 -0
  558. package/dist/icons/LoadingCircleLines.d.cts +5 -0
  559. package/dist/icons/LoadingCircleLines.d.ts +5 -0
  560. package/dist/icons/LoadingCircleLines.js +7 -0
  561. package/dist/icons/LoadingSpinner.cjs +6 -202
  562. package/dist/icons/Lock.cjs +6 -58
  563. package/dist/icons/Logo.cjs +4 -78
  564. package/dist/icons/LogoBolt.cjs +6 -129
  565. package/dist/icons/LogoOnCircle.cjs +6 -60
  566. package/dist/icons/MagicWand.cjs +6 -79
  567. package/dist/icons/Minus.cjs +6 -49
  568. package/dist/icons/Monitor.cjs +6 -73
  569. package/dist/icons/NodeAdd.cjs +6 -48
  570. package/dist/icons/NonagonCheckmark.cjs +7 -0
  571. package/dist/icons/NonagonCheckmark.d.cts +5 -0
  572. package/dist/icons/NonagonCheckmark.d.ts +5 -0
  573. package/dist/icons/NonagonCheckmark.js +7 -0
  574. package/dist/icons/NotEye.cjs +6 -60
  575. package/dist/icons/PaperPlane.cjs +6 -49
  576. package/dist/icons/Pencil.cjs +6 -49
  577. package/dist/icons/Person.cjs +6 -60
  578. package/dist/icons/PersonCircle.cjs +6 -60
  579. package/dist/icons/PiggyBank.cjs +6 -69
  580. package/dist/icons/Plus.cjs +6 -78
  581. package/dist/icons/PythonTwoTone.cjs +6 -56
  582. package/dist/icons/QRCodeIcon.cjs +6 -125
  583. package/dist/icons/QuestionCircle.cjs +6 -50
  584. package/dist/icons/QuestionCircleStrong.cjs +6 -50
  585. package/dist/icons/ReactTwoTone.cjs +6 -80
  586. package/dist/icons/Recycling.cjs +6 -50
  587. package/dist/icons/Remove.cjs +6 -49
  588. package/dist/icons/Restart.cjs +6 -49
  589. package/dist/icons/RightArrow.cjs +6 -50
  590. package/dist/icons/Roadmap.cjs +6 -50
  591. package/dist/icons/RustTwoTone.cjs +6 -62
  592. package/dist/icons/Satoshi.cjs +6 -61
  593. package/dist/icons/SatoshiRounded.cjs +6 -87
  594. package/dist/icons/Search.cjs +6 -51
  595. package/dist/icons/SecurityKey.cjs +6 -73
  596. package/dist/icons/Selector.cjs +6 -63
  597. package/dist/icons/SemiCircleOverlap.cjs +6 -60
  598. package/dist/icons/Share.cjs +6 -48
  599. package/dist/icons/ShieldCheck.cjs +6 -49
  600. package/dist/icons/Sidebar.cjs +6 -50
  601. package/dist/icons/Sort.cjs +6 -50
  602. package/dist/icons/StackedLines.cjs +6 -49
  603. package/dist/icons/SwiftTwoTone.cjs +6 -61
  604. package/dist/icons/TapSingle.cjs +6 -48
  605. package/dist/icons/Team.cjs +6 -50
  606. package/dist/icons/Terminal.cjs +6 -51
  607. package/dist/icons/Trash.cjs +6 -53
  608. package/dist/icons/TwoArrowsDown.cjs +6 -50
  609. package/dist/icons/TwoArrowsUp.cjs +6 -50
  610. package/dist/icons/Uma.cjs +6 -59
  611. package/dist/icons/UmaBridgeLoading.cjs +6 -52
  612. package/dist/icons/UmaBridgeLoadingTransparent.cjs +7 -0
  613. package/dist/icons/UmaBridgeLoadingTransparent.d.cts +5 -0
  614. package/dist/icons/UmaBridgeLoadingTransparent.d.ts +5 -0
  615. package/dist/icons/UmaBridgeLoadingTransparent.js +7 -0
  616. package/dist/icons/Upload.cjs +6 -60
  617. package/dist/icons/WalletSDKIcon.cjs +6 -61
  618. package/dist/icons/WarningSign.cjs +6 -61
  619. package/dist/icons/constants.cjs +8 -32
  620. package/dist/icons/index.cjs +461 -3994
  621. package/dist/icons/index.d.cts +3 -0
  622. package/dist/icons/index.d.ts +3 -0
  623. package/dist/icons/index.js +98 -86
  624. package/dist/{index-71766330.d.ts → index-1c620377.d.ts} +9 -0
  625. package/dist/{index-dcf19aa7.d.ts → index-76d74633.d.ts} +9 -0
  626. package/dist/index.cjs +1 -1
  627. package/dist/router.cjs +25 -251
  628. package/dist/router.d.cts +2 -1
  629. package/dist/router.d.ts +2 -1
  630. package/dist/router.js +2 -2
  631. package/dist/styles/breakpoints.cjs +18 -262
  632. package/dist/styles/colors.cjs +25 -170
  633. package/dist/styles/colors.d.cts +1 -0
  634. package/dist/styles/colors.d.ts +1 -0
  635. package/dist/styles/colors.js +1 -1
  636. package/dist/styles/common.cjs +47 -3879
  637. package/dist/styles/common.d.cts +1 -1
  638. package/dist/styles/common.d.ts +1 -1
  639. package/dist/styles/common.js +6 -5
  640. package/dist/styles/constants.cjs +15 -44
  641. package/dist/styles/fields.cjs +42 -4138
  642. package/dist/styles/fields.d.cts +5 -3
  643. package/dist/styles/fields.d.ts +5 -3
  644. package/dist/styles/fields.js +8 -7
  645. package/dist/styles/global.cjs +12 -3944
  646. package/dist/styles/global.d.cts +1 -1
  647. package/dist/styles/global.d.ts +1 -1
  648. package/dist/styles/global.js +7 -6
  649. package/dist/styles/themeDefaults/buttons.cjs +13 -0
  650. package/dist/styles/{buttons.d.cts → themeDefaults/buttons.d.cts} +3 -3
  651. package/dist/styles/{buttons.d.ts → themeDefaults/buttons.d.ts} +3 -3
  652. package/dist/styles/{buttons.js → themeDefaults/buttons.js} +2 -2
  653. package/dist/styles/themeDefaults/loading.cjs +9 -0
  654. package/dist/styles/themeDefaults/loading.d.cts +13 -0
  655. package/dist/styles/themeDefaults/loading.d.ts +13 -0
  656. package/dist/styles/themeDefaults/loading.js +9 -0
  657. package/dist/styles/themes.cjs +38 -3872
  658. package/dist/styles/themes.d.cts +1 -1
  659. package/dist/styles/themes.d.ts +1 -1
  660. package/dist/styles/themes.js +5 -4
  661. package/dist/styles/tokens/spacing.cjs +6 -88
  662. package/dist/styles/tokens/typography.cjs +13 -3346
  663. package/dist/styles/tokens/typography.d.cts +40 -12
  664. package/dist/styles/tokens/typography.d.ts +40 -12
  665. package/dist/styles/tokens/typography.js +1 -1
  666. package/dist/styles/type.cjs +12 -482
  667. package/dist/styles/type.d.cts +1 -1
  668. package/dist/styles/type.d.ts +1 -1
  669. package/dist/styles/type.js +8 -7
  670. package/dist/styles/typography.cjs +10 -3790
  671. package/dist/styles/typography.d.cts +1 -1
  672. package/dist/styles/typography.d.ts +1 -1
  673. package/dist/styles/typography.js +6 -5
  674. package/dist/styles/utils.cjs +32 -378
  675. package/dist/styles/utils.js +7 -6
  676. package/dist/styles/z-index.cjs +6 -52
  677. package/dist/{themes-37e92940.d.ts → themes-13a0ed7c.d.ts} +364 -143
  678. package/dist/{themes-832e46b2.d.ts → themes-67ece8cd.d.ts} +364 -143
  679. package/dist/types/index.cjs +1 -18
  680. package/dist/utils/NextLink.cjs +6 -79
  681. package/dist/utils/countryCodesToNames.cjs +10 -289
  682. package/dist/utils/emotion.cjs +6 -31
  683. package/dist/utils/isReactNodeWithChildren.cjs +6 -34
  684. package/dist/utils/parseURLFragments.cjs +4 -27
  685. package/dist/utils/strings.cjs +21 -108
  686. package/dist/utils/toNonTypographicReactNodes.cjs +144 -7933
  687. package/dist/utils/toNonTypographicReactNodes.d.cts +6 -2
  688. package/dist/utils/toNonTypographicReactNodes.d.ts +6 -2
  689. package/dist/utils/toNonTypographicReactNodes.js +53 -49
  690. package/dist/utils/toReactNodes.cjs +155 -8346
  691. package/dist/utils/toReactNodes.d.cts +9 -11
  692. package/dist/utils/toReactNodes.d.ts +9 -11
  693. package/dist/utils/toReactNodes.js +67 -62
  694. package/dist/utils/transformGQLName.cjs +4 -27
  695. package/dist/utils/unicode.cjs +4 -27
  696. package/package.json +1 -3
  697. package/dist/styles/buttons.cjs +0 -133
@@ -0,0 +1,243 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+ var _chunkZBBVZQKJcjs = require('./chunk-ZBBVZQKJ.cjs');
4
+
5
+
6
+ var _chunkZU72XWNEcjs = require('./chunk-ZU72XWNE.cjs');
7
+
8
+
9
+
10
+ var _chunkPYL3O7AFcjs = require('./chunk-PYL3O7AF.cjs');
11
+
12
+
13
+ var _chunkWTHHP7G2cjs = require('./chunk-WTHHP7G2.cjs');
14
+
15
+ // src/styles/fields.tsx
16
+ var _react = require('@emotion/react');
17
+ var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);
18
+ var _react3 = require('react');
19
+ var _jsxruntime = require('@emotion/react/jsx-runtime');
20
+ var maxFieldWidth = "100%";
21
+ var fieldWidth = "100%";
22
+ var inputSpacingPx = 24;
23
+ var formButtonTopMargin = "32px";
24
+ var formButtonTopMarginStyle = _react.css`
25
+ margin-top: ${formButtonTopMargin};
26
+ `;
27
+ var standardBorderColor = ({ theme }) => _react.css`
28
+ border-color: ${_chunkWTHHP7G2cjs.themeOr.call(void 0, theme.c1Neutral, theme.mcNeutral)({ theme })};
29
+ `;
30
+ var inputBlockStyle = ({
31
+ theme,
32
+ hasValue,
33
+ hasError
34
+ }) => _react.css`
35
+ ${_chunkPYL3O7AFcjs.subtext.call(void 0, { theme })}
36
+ ${standardBorderColor({ theme })}
37
+ ${_chunkPYL3O7AFcjs.standardBorderRadius.call(void 0, 8)}
38
+ background-color: ${theme.bg};
39
+ border-width: 2px;
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ flex-direction: column;
44
+ position: relative;
45
+ cursor: pointer;
46
+ padding: 52.5px;
47
+ ${hasError ? `border-style: solid; border-color: ${theme.danger}; border-width: 2px;` : hasValue ? `border-style: solid; border-color: ${theme.info};` : `border-style: dashed;`}
48
+ `;
49
+ var textInputPlaceholderColor = ({ theme }) => theme.c4Neutral;
50
+ var textInputFontWeight = 600;
51
+ var textInputBorderRadiusPx = 8;
52
+ var textInputPaddingPx = 12;
53
+ var textInputPadding = `${textInputPaddingPx}px`;
54
+ var textInputBorderColor = ({ theme }) => _chunkWTHHP7G2cjs.themeOr.call(void 0, theme.c1Neutral, theme.c3Neutral)({ theme });
55
+ var textInputBorderColorFocused = ({ theme }) => _chunkWTHHP7G2cjs.themeOr.call(void 0, theme.hcNeutral, theme.hcNeutral)({ theme });
56
+ var textInputActiveStyles = ({
57
+ theme,
58
+ paddingLeftPx,
59
+ paddingRightPx
60
+ }) => _react.css`
61
+ border-color: ${textInputBorderColorFocused({ theme })};
62
+ border-width: 2px;
63
+ padding: ${textInputPaddingPx - 1}px;
64
+ ${paddingLeftPx ? `padding-left: ${paddingLeftPx - 1}px;` : ""}
65
+ ${paddingRightPx ? `padding-right: ${paddingRightPx - 1}px;` : ""}
66
+ `;
67
+ var defaultTextInputTypography = {
68
+ type: "Body",
69
+ size: "Small",
70
+ color: "text"
71
+ };
72
+ var textInputStyle = ({
73
+ theme,
74
+ active,
75
+ disabled,
76
+ hasError,
77
+ paddingLeftPx,
78
+ paddingRightPx,
79
+ typography,
80
+ borderRadius
81
+ }) => {
82
+ var _a;
83
+ return _react.css`
84
+ border-radius: ${borderRadius === "round" ? "999" : textInputBorderRadiusPx}px;
85
+ background-color: ${disabled ? theme.vlcNeutral : theme.inputBackground};
86
+ cursor: ${disabled ? "not-allowed" : "auto"};
87
+ box-sizing: border-box;
88
+ font-weight: ${textInputFontWeight};
89
+
90
+ position: relative;
91
+ z-index: ${_chunkZU72XWNEcjs.z.textInput};
92
+ font-family: ${(_a = theme.typography) == null ? void 0 : _a.fontFamilies.main};
93
+ padding: ${textInputPaddingPx - (hasError ? 1 : 0)}px;
94
+ ${paddingLeftPx ? `padding-left: ${paddingLeftPx - (hasError ? 1 : 0)}px;` : ""}
95
+ ${paddingRightPx ? `padding-right: ${paddingRightPx - (hasError ? 1 : 0)}px;` : ""}
96
+ border-style: solid;
97
+ border-width: ${hasError ? "2" : "1"}px;
98
+ border-color: ${hasError ? theme.danger : textInputBorderColor({ theme })};
99
+ line-height: 22px;
100
+ outline: none;
101
+
102
+ ${_chunkZBBVZQKJcjs.applyTypography.call(void 0,
103
+ theme,
104
+ (typography == null ? void 0 : typography.type) || defaultTextInputTypography.type,
105
+ (typography == null ? void 0 : typography.size) || defaultTextInputTypography.size,
106
+ (typography == null ? void 0 : typography.color) || defaultTextInputTypography.color
107
+ )}
108
+
109
+ width: ${fieldWidth};
110
+ max-width: ${maxFieldWidth};
111
+ text-overflow: ellipsis;
112
+ &:focus,
113
+ &:active,
114
+ &:has(:focus) {
115
+ ${textInputActiveStyles({ theme, paddingLeftPx, paddingRightPx })}
116
+ }
117
+
118
+ ${active && textInputActiveStyles({ theme, paddingLeftPx, paddingRightPx })}
119
+
120
+ &::placeholder {
121
+ color: ${textInputPlaceholderColor({ theme })};
122
+ }
123
+
124
+ &:focus::placeholder {
125
+ color: ${textInputPlaceholderColor({ theme })};
126
+ }
127
+ `;
128
+ };
129
+ var FieldError = _styled2.default.div`
130
+ background-color: rgba(242, 239, 255, 1);
131
+ padding: 16px 16px 8px;
132
+ margin-top: -8px;
133
+ border-radius: 0 0 8px 8px;
134
+ position: relative;
135
+ z-index: ${_chunkZU72XWNEcjs.z.fieldError};
136
+ `;
137
+ var aboveFieldError = ({
138
+ theme,
139
+ hasError
140
+ }) => _react.css`
141
+ ${hasError ? "border: none !important" : ""};
142
+ background-color: ${theme.bg};
143
+ position: relative;
144
+ z-index: ${_chunkZU72XWNEcjs.z.fieldError + 1};
145
+ ${hasError && "box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1);"}
146
+ `;
147
+ var inputSubtextSeconds = 0.25;
148
+ function InputSubtext({
149
+ text,
150
+ hasError = false,
151
+ tooltipId
152
+ }) {
153
+ const timeoutRef = _react3.useRef.call(void 0, null);
154
+ const [subtext2, setSubtext] = _react3.useState.call(void 0, text);
155
+ const [visible, setVisible] = _react3.useState.call(void 0, Boolean(text));
156
+ _react3.useLayoutEffect.call(void 0, () => {
157
+ if (text) {
158
+ setSubtext(text);
159
+ setVisible(true);
160
+ if (timeoutRef.current) {
161
+ clearTimeout(timeoutRef.current);
162
+ }
163
+ } else {
164
+ setVisible(false);
165
+ timeoutRef.current = setTimeout(() => {
166
+ setSubtext(void 0);
167
+ }, inputSubtextSeconds * 1e3);
168
+ }
169
+ }, [text]);
170
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
171
+ StyledInputSubtext,
172
+ {
173
+ visible,
174
+ hasError,
175
+ cursorPointer: Boolean(tooltipId),
176
+ children: tooltipId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "data-tooltip-id": tooltipId, children: subtext2 }) : subtext2
177
+ }
178
+ );
179
+ }
180
+ var StyledInputSubtext = _styled2.default.div`
181
+ margin-top: ${({ visible }) => visible ? "8px" : "0px"};
182
+ margin-left: ${({ visible }) => visible ? "8px" : "0px"};
183
+ font-size: 12px;
184
+ font-size: ${({ visible }) => visible ? "12px" : "0px"};
185
+ opacity: ${({ visible }) => visible ? "1" : "0"};
186
+ overflow: hidden;
187
+ transition:
188
+ font-size ${inputSubtextSeconds}s cubic-bezier(0.25, 0.87, 0.56, 1.23),
189
+ opacity ${inputSubtextSeconds * 0.8}s cubic-bezier(0.25, 0.87, 0.56, 1.23),
190
+ margin ${inputSubtextSeconds}s cubic-bezier(0.25, 0.87, 0.56, 1.23);
191
+ color: ${({ hasError, theme }) => hasError ? theme.danger : theme.text};
192
+ cursor: ${({ cursorPointer }) => cursorPointer ? "pointer" : "auto"};
193
+ `;
194
+ var labelStyle = ({
195
+ theme,
196
+ hasError
197
+ }) => _react.css`
198
+ color: ${hasError ? theme.danger : theme.text};
199
+ font-size: 14px;
200
+ display: flex;
201
+ justify-content: space-between;
202
+ align-items: center;
203
+ & + * {
204
+ margin-top: 12px;
205
+ }
206
+ * ~ & {
207
+ margin-top: 40px;
208
+ }
209
+ `;
210
+ var Label = _styled2.default.label`
211
+ ${_chunkPYL3O7AFcjs.subtext}
212
+ ${labelStyle}
213
+ `;
214
+ var LabelDiv = _styled2.default.div`
215
+ ${_chunkPYL3O7AFcjs.subtext}
216
+ ${labelStyle}
217
+ `;
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ exports.maxFieldWidth = maxFieldWidth; exports.fieldWidth = fieldWidth; exports.inputSpacingPx = inputSpacingPx; exports.formButtonTopMargin = formButtonTopMargin; exports.formButtonTopMarginStyle = formButtonTopMarginStyle; exports.standardBorderColor = standardBorderColor; exports.inputBlockStyle = inputBlockStyle; exports.textInputPlaceholderColor = textInputPlaceholderColor; exports.textInputFontWeight = textInputFontWeight; exports.textInputBorderRadiusPx = textInputBorderRadiusPx; exports.textInputPaddingPx = textInputPaddingPx; exports.textInputPadding = textInputPadding; exports.textInputBorderColor = textInputBorderColor; exports.textInputBorderColorFocused = textInputBorderColorFocused; exports.defaultTextInputTypography = defaultTextInputTypography; exports.textInputStyle = textInputStyle; exports.FieldError = FieldError; exports.aboveFieldError = aboveFieldError; exports.InputSubtext = InputSubtext; exports.StyledInputSubtext = StyledInputSubtext; exports.labelStyle = labelStyle; exports.Label = Label; exports.LabelDiv = LabelDiv;
@@ -0,0 +1,163 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+ var _chunkBD3WXMLEcjs = require('./chunk-BD3WXMLE.cjs');
4
+
5
+
6
+ var _chunkBOBYW7PPcjs = require('./chunk-BOBYW7PP.cjs');
7
+
8
+
9
+ var _chunk4P7RPU32cjs = require('./chunk-4P7RPU32.cjs');
10
+
11
+
12
+ var _chunkBY47I7ZPcjs = require('./chunk-BY47I7ZP.cjs');
13
+
14
+
15
+ var _chunkKSKKC6C2cjs = require('./chunk-KSKKC6C2.cjs');
16
+
17
+ // src/components/Pill.tsx
18
+ var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);
19
+ var _react = require('react');
20
+ var _jsxruntime = require('@emotion/react/jsx-runtime');
21
+ function Pill({
22
+ text,
23
+ onDeleteMouseDown,
24
+ onDeleteMouseUp,
25
+ onDeleteFromKeyboard,
26
+ icon,
27
+ loading = false,
28
+ cursor = "text",
29
+ isEditing = false,
30
+ onChangeTextInput = () => {
31
+ },
32
+ onFocusTextInput = () => {
33
+ },
34
+ onClickPillBody = () => {
35
+ },
36
+ onBlurTextInput = () => {
37
+ }
38
+ }) {
39
+ const textInputRef = _react.useRef.call(void 0, null);
40
+ _react.useEffect.call(void 0, () => {
41
+ if (isEditing && textInputRef.current) {
42
+ textInputRef.current.focus();
43
+ }
44
+ }, [isEditing]);
45
+ function handleOnDeleteMouseDown(event) {
46
+ if (onDeleteMouseDown) {
47
+ event.stopPropagation();
48
+ onDeleteMouseDown(event);
49
+ }
50
+ }
51
+ function handleOnDeleteKeyDown(event) {
52
+ if (onDeleteFromKeyboard) {
53
+ event.stopPropagation();
54
+ if (event.key === "Enter") {
55
+ onDeleteFromKeyboard();
56
+ }
57
+ }
58
+ }
59
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
60
+ StyledPill,
61
+ {
62
+ hasIcon: Boolean(icon || loading || onDeleteMouseDown),
63
+ cursor,
64
+ onClick: (event) => {
65
+ if (onClickPillBody) {
66
+ event.stopPropagation();
67
+ onClickPillBody();
68
+ }
69
+ },
70
+ children: [
71
+ isEditing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
72
+ PillInput,
73
+ {
74
+ value: text,
75
+ onChange: (event) => onChangeTextInput(event.target.value),
76
+ onFocus: onFocusTextInput,
77
+ onBlur: onBlurTextInput,
78
+ ref: textInputRef
79
+ }
80
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PillText, { children: text }),
81
+ (icon || loading || onDeleteMouseDown) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
82
+ PillIconContainer,
83
+ {
84
+ hasIconInset: Boolean(icon && !loading && !onDeleteMouseDown),
85
+ children: [
86
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBD3WXMLEcjs.Loading, { size: 16.1, center: false, ml: 5 }),
87
+ !loading && onDeleteMouseDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
88
+ _chunkBOBYW7PPcjs.UnstyledButton,
89
+ {
90
+ onMouseDown: handleOnDeleteMouseDown,
91
+ onKeyDown: handleOnDeleteKeyDown,
92
+ type: "button",
93
+ css: {
94
+ display: "flex",
95
+ padding: "10px",
96
+ marginRight: "-10px"
97
+ },
98
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBY47I7ZPcjs.Icon, { name: "DeleteIcon", width: 16.1 })
99
+ }
100
+ ),
101
+ !loading && icon && !onDeleteMouseDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBY47I7ZPcjs.Icon, { name: icon, width: 16.1, color: "white" })
102
+ ]
103
+ }
104
+ )
105
+ ]
106
+ }
107
+ );
108
+ }
109
+ var PillText = _styled2.default.div`
110
+ /* For mobile ensure empty values don't prevent div from having height: */
111
+ height: 1.2rem;
112
+ min-width: 100px;
113
+ max-width: 210px;
114
+ white-space: nowrap;
115
+ text-overflow: ellipsis;
116
+ overflow: hidden;
117
+ font-weight: 600;
118
+ `;
119
+ var StyledPill = _styled2.default.div`
120
+ * + & {
121
+ margin-top: 16px;
122
+ }
123
+ background-color: ${({ theme }) => theme.c05Neutral};
124
+ color: ${({ theme }) => theme.text};
125
+ padding: 12px 18px;
126
+ ${({ hasIcon }) => hasIcon && `padding-right: 48px;`}
127
+ border-radius: 2em;
128
+ display: flex;
129
+ align-items: center;
130
+ cursor: ${({ cursor }) => cursor};
131
+ position: relative;
132
+ `;
133
+ var PillIconContainer = _styled2.default.div`
134
+ ${_chunk4P7RPU32cjs.flexCenter}
135
+ ${({ hasIconInset }) => hasIconInset ? `
136
+ background-color: ${_chunkKSKKC6C2cjs.colors.blue43};
137
+ padding: 8px;
138
+ right: 4px;
139
+ top: 3.5px;` : `right: 18px;`}
140
+ border-radius: 50%;
141
+ margin-left: 12px;
142
+ position: absolute;
143
+ `;
144
+ var PillInput = _styled2.default.input`
145
+ background-color: transparent;
146
+ border: none;
147
+ outline: none;
148
+ color: ${({ theme }) => theme.text};
149
+ font-weight: 600;
150
+ font-size: 1rem;
151
+ padding: 0;
152
+ margin: 0;
153
+ width: 100%;
154
+ max-width: 210px;
155
+ white-space: nowrap;
156
+ text-overflow: ellipsis;
157
+ overflow: hidden;
158
+ font-family: ${({ theme }) => theme.typography.fontFamilies.main};
159
+ `;
160
+
161
+
162
+
163
+ exports.Pill = Pill;
@@ -0,0 +1,37 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/components/CommandKey.tsx
2
+ var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);
3
+ var _jsxruntime = require('@emotion/react/jsx-runtime');
4
+ var CommandKey = ({
5
+ keyboardKey,
6
+ size,
7
+ color,
8
+ backgroundColor
9
+ }) => {
10
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11
+ StyledCommandKey,
12
+ {
13
+ color,
14
+ size,
15
+ backgroundColor,
16
+ children: keyboardKey
17
+ }
18
+ );
19
+ };
20
+ var StyledCommandKey = _styled2.default.div`
21
+ height: 24px;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ font-weight: 500;
26
+ color: ${(props) => props.color || "black"};
27
+ ${(props) => props.backgroundColor ? `background-color: ${props.backgroundColor};` : ""}
28
+ border-radius: 3.6px;
29
+ min-width: ${(props) => props.size === "sm" ? 20 : 24}px;
30
+ height: ${(props) => props.size === "sm" ? 20 : 24}px;
31
+ font-size: ${(props) => props.size === "sm" ? 12 : 14}px;
32
+ padding: 3px 6px;
33
+ `;
34
+
35
+
36
+
37
+ exports.CommandKey = CommandKey;
@@ -0,0 +1,25 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/icons/CircleCheckOutline.tsx
2
+ var _jsxruntime = require('@emotion/react/jsx-runtime');
3
+ function CircleCheckOutline() {
4
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5
+ "svg",
6
+ {
7
+ width: "100%",
8
+ viewBox: "0 0 20 20",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12
+ "path",
13
+ {
14
+ d: "M6 10L8.5 12.5L13.5 7.5M19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10Z",
15
+ stroke: "currentColor",
16
+ strokeWidth: "2"
17
+ }
18
+ )
19
+ }
20
+ );
21
+ }
22
+
23
+
24
+
25
+ exports.CircleCheckOutline = CircleCheckOutline;
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/icons/constants.tsx
2
+ var invertFillColor = "invert-fill-color";
3
+ var invertStrokeColor = "invert-stroke-color";
4
+
5
+
6
+
7
+
8
+ exports.invertFillColor = invertFillColor; exports.invertStrokeColor = invertStrokeColor;
@@ -0,0 +1,126 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkLKKJVJCGcjs = require('./chunk-LKKJVJCG.cjs');
5
+
6
+ // src/styles/colors.tsx
7
+ var neutral = {
8
+ black: "#000000",
9
+ gray5: "#0D0D0D",
10
+ gray10: "#1A1A1A",
11
+ gray15: "#262626",
12
+ gray20: "#333333",
13
+ gray25: "#404040",
14
+ gray30: "#4D4D4D",
15
+ gray40: "#666666",
16
+ gray50: "#808080",
17
+ gray60: "#999999",
18
+ gray70: "#B3B3B3",
19
+ gray80: "#CCCCCC",
20
+ gray85: "#D9D9D9",
21
+ gray90: "#E6E6E6",
22
+ gray91: "#171717",
23
+ gray95: "#F2F2F2",
24
+ gray98: "#F9F9F9",
25
+ white: "#FFFFFF"
26
+ };
27
+ var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
28
+ var primary = "#FFF14E";
29
+ var baseColors = _chunkLKKJVJCGcjs.__spreadProps.call(void 0, _chunkLKKJVJCGcjs.__spreadValues.call(void 0, {}, neutral), {
30
+ // green
31
+ success: "#17C27C",
32
+ green33: "#179257",
33
+ // blue
34
+ blue43: "#145BC6",
35
+ blue22: "#0E2E60",
36
+ blue39: "#0068C9",
37
+ blue37: "#21529c",
38
+ blue58: "#28BFFF",
39
+ // less than 50% saturated blue
40
+ grayBlue5: "#0c0d0f",
41
+ grayBlue9: "#16171A",
42
+ grayBlue18: "#21283a",
43
+ grayBlue32: "#4F5156",
44
+ grayBlue43: "#686A72",
45
+ grayBlue45: "#676F80",
46
+ grayBlue57: "#8B8E98",
47
+ grayBlue67: "#9BA7B9",
48
+ grayBlue69: "#A6A9BA",
49
+ grayBlue80: "#C0C9D6",
50
+ grayBlue88: "#DEDFE4",
51
+ grayBlue94: "#EBEEF2",
52
+ grayBlue96: "#F2F5F7",
53
+ // purple
54
+ purple43: "#820AD1",
55
+ purple55: "#8B38DE",
56
+ // red
57
+ red42a10: "#D800271A",
58
+ // yellow
59
+ primary,
60
+ warning: primary,
61
+ // orange
62
+ danger: "#FD2C0F",
63
+ // neutral
64
+ secondary: neutral.black
65
+ });
66
+ var colors = baseColors;
67
+ function isColorKey(key) {
68
+ return key in colors;
69
+ }
70
+ function hcNeutralFromBg(bgHex, defaultHex = colors.black, altHex = colors.white) {
71
+ const bgRGB = hexToRGB(bgHex);
72
+ const hcRGB = hexToRGB(defaultHex);
73
+ if (!bgRGB || !hcRGB)
74
+ return defaultHex;
75
+ const c = contrast(bgRGB, hcRGB);
76
+ if (c < 4.5) {
77
+ return altHex;
78
+ }
79
+ return defaultHex;
80
+ }
81
+ function luminance(r, g, b) {
82
+ const a = [r, g, b].map(function(v) {
83
+ v /= 255;
84
+ return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
85
+ });
86
+ return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
87
+ }
88
+ function contrast(rgb1, rgb2) {
89
+ const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
90
+ const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
91
+ const brightest = Math.max(lum1, lum2);
92
+ const darkest = Math.min(lum1, lum2);
93
+ return (brightest + 0.05) / (darkest + 0.05);
94
+ }
95
+ function componentToHex(c) {
96
+ const hex = c.toString(16);
97
+ return hex.length === 1 ? "0" + hex : hex;
98
+ }
99
+ function rgbToHex(r, g, b) {
100
+ return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
101
+ }
102
+ function hexToRGB(hex) {
103
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
104
+ return result ? [
105
+ parseInt(result[1], 16),
106
+ parseInt(result[2], 16),
107
+ parseInt(result[3], 16)
108
+ ] : [0, 0, 0];
109
+ }
110
+ function hexToRGBAStr(hex, alpha) {
111
+ const rgb = hexToRGB(hex);
112
+ return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, ${alpha})`;
113
+ }
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ exports.darkGradient = darkGradient; exports.colors = colors; exports.isColorKey = isColorKey; exports.hcNeutralFromBg = hcNeutralFromBg; exports.luminance = luminance; exports.contrast = contrast; exports.componentToHex = componentToHex; exports.rgbToHex = rgbToHex; exports.hexToRGB = hexToRGB; exports.hexToRGBAStr = hexToRGBAStr;