@lightsparkdev/ui 1.0.2 → 1.0.4

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 (295) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{chunk-SGSLTG65.js → chunk-242JGEN4.js} +3 -3
  3. package/dist/{chunk-F6EVBEMN.js → chunk-2P6TCMZN.js} +2 -2
  4. package/dist/{chunk-J7SV67XL.js → chunk-3R5KJDSL.js} +1 -1
  5. package/dist/{chunk-L6S22JUU.js → chunk-4BERRPJN.js} +3 -3
  6. package/dist/{chunk-AI6DCUWK.js → chunk-4KURUJD2.js} +1 -1
  7. package/dist/{chunk-6H7PZJ2A.js → chunk-4X67A2CS.js} +2 -1
  8. package/dist/{chunk-YRYVSAWS.js → chunk-5F7IOIWL.js} +1 -1
  9. package/dist/{chunk-EMXTALIX.js → chunk-5ON3ICVC.js} +1 -1
  10. package/dist/{chunk-35WJ3PKH.js → chunk-642OXLAD.js} +2 -2
  11. package/dist/{chunk-SKXCT2FQ.js → chunk-7BSME2ZU.js} +2 -2
  12. package/dist/{chunk-GNVEN6UE.js → chunk-7COKMITX.js} +2 -2
  13. package/dist/{chunk-LL5YLPNM.js → chunk-7OJQZEVL.js} +5 -5
  14. package/dist/{chunk-GGEAODIA.js → chunk-7RLDCOUT.js} +4 -4
  15. package/dist/{chunk-S6AOKANU.js → chunk-7RMHMFS2.js} +4 -4
  16. package/dist/{chunk-CMQELZES.js → chunk-AZOVE32P.js} +2 -2
  17. package/dist/{chunk-5H32AOXL.js → chunk-BAGRU7JE.js} +1 -1
  18. package/dist/{chunk-2JYYREVX.js → chunk-BPGBJRZE.js} +1 -1
  19. package/dist/{chunk-UNULJ3P6.js → chunk-BRRDPQWW.js} +4 -4
  20. package/dist/{chunk-W3BAJ3HT.js → chunk-C3YODRA3.js} +15 -15
  21. package/dist/{chunk-HZ63YB4Y.js → chunk-C4HNAZFZ.js} +3 -3
  22. package/dist/{chunk-7NPHOJXD.js → chunk-CZFFMEAS.js} +5 -5
  23. package/dist/{chunk-HRZNVE2K.js → chunk-DIKOS5R6.js} +2 -2
  24. package/dist/{chunk-BMSSV6NX.js → chunk-DNGAINGL.js} +1 -1
  25. package/dist/{chunk-TVLELY54.js → chunk-DWUP3RDU.js} +4 -4
  26. package/dist/chunk-E5DUKMCU.js +65 -0
  27. package/dist/chunk-EIFK352Q.js +27 -0
  28. package/dist/{chunk-OA3BZAST.js → chunk-GLEAWATH.js} +3 -3
  29. package/dist/{chunk-KFX7US6Y.js → chunk-GQVNE3NU.js} +1 -1
  30. package/dist/{chunk-UBYBILLK.js → chunk-HPZVUEDJ.js} +2 -2
  31. package/dist/{chunk-TM3C4LEG.js → chunk-HVDX4OZJ.js} +2 -2
  32. package/dist/{chunk-6JFJDBV2.js → chunk-JAPRGAB7.js} +1 -1
  33. package/dist/{chunk-467PLJO3.js → chunk-JH53NBOD.js} +59 -10
  34. package/dist/{chunk-2XRCGW74.js → chunk-KBLCFXNL.js} +3 -3
  35. package/dist/{chunk-NYQLPSG3.js → chunk-KJHREJHT.js} +2 -2
  36. package/dist/{chunk-CZQER3QD.js → chunk-LFD2KVAB.js} +1 -1
  37. package/dist/{chunk-DCFB5MJ7.js → chunk-LGXMGWLV.js} +17 -16
  38. package/dist/{chunk-37RRWSDE.js → chunk-LLGN3OM3.js} +2 -2
  39. package/dist/{chunk-HA4AQO3T.js → chunk-MK2JFFUG.js} +1 -1
  40. package/dist/{chunk-EV6PGQPM.js → chunk-MNMVZI7D.js} +11 -11
  41. package/dist/{chunk-HP4VPMN7.js → chunk-OMY3WTAU.js} +2 -2
  42. package/dist/{chunk-VUXU77SU.js → chunk-OUHQXQOJ.js} +1 -1
  43. package/dist/{chunk-PNSZAJL7.js → chunk-OZQ5WPLN.js} +2 -2
  44. package/dist/{chunk-2H7TBKII.js → chunk-PDQVYUEW.js} +6 -6
  45. package/dist/{chunk-DNVKN2FG.js → chunk-QCHEDM2I.js} +3 -3
  46. package/dist/{chunk-CHK5DOMV.js → chunk-RESJONBZ.js} +2 -2
  47. package/dist/{chunk-XP3BAAUO.js → chunk-SZ4KKLYJ.js} +2 -2
  48. package/dist/{chunk-VYTN6ASZ.js → chunk-THTKSZSR.js} +2 -2
  49. package/dist/{chunk-KBYU4ZQ3.js → chunk-TNDSUTUN.js} +3 -3
  50. package/dist/{chunk-SRHSJOES.js → chunk-TNISOOCF.js} +1 -1
  51. package/dist/{chunk-55M7XHBZ.js → chunk-UNFCVZ32.js} +36 -33
  52. package/dist/{chunk-56QJRFP2.js → chunk-V523QTZQ.js} +2 -2
  53. package/dist/{chunk-A4JZESAS.js → chunk-VNQE6KEX.js} +16 -3
  54. package/dist/{chunk-5XZJEYHG.js → chunk-VR2GLRXH.js} +1 -1
  55. package/dist/chunk-VWD7T5MQ.js +74 -0
  56. package/dist/{chunk-XUVCOSIE.js → chunk-VXH6GWGE.js} +2 -2
  57. package/dist/{chunk-ZNZAY47J.js → chunk-W2N5QUG6.js} +9 -6
  58. package/dist/{chunk-D73OOC3E.js → chunk-WDJMAZFO.js} +3 -3
  59. package/dist/{chunk-WV5AB4ZB.js → chunk-XS4MH3QA.js} +102 -85
  60. package/dist/{chunk-TM2NGRD2.js → chunk-YRFCWL73.js} +5 -2
  61. package/dist/{chunk-CZCPVHVB.js → chunk-YRZ3VNBI.js} +2 -2
  62. package/dist/{chunk-JOQCJPOA.js → chunk-ZCXGHQQF.js} +9 -9
  63. package/dist/{chunk-UVGBD7XM.js → chunk-ZO35RX7V.js} +21 -13
  64. package/dist/{chunk-27SFWLPS.js → chunk-ZS7G6WIG.js} +1 -1
  65. package/dist/components/Badge.cjs +7845 -7476
  66. package/dist/components/Badge.d.cts +146 -7
  67. package/dist/components/Badge.d.ts +146 -7
  68. package/dist/components/Badge.js +20 -23
  69. package/dist/components/Banner/Banner.cjs +55 -26
  70. package/dist/components/Banner/Banner.d.cts +1 -1
  71. package/dist/components/Banner/Banner.d.ts +1 -1
  72. package/dist/components/Banner/Banner.js +18 -18
  73. package/dist/components/Button.cjs +46 -28
  74. package/dist/components/Button.d.cts +1 -1
  75. package/dist/components/Button.d.ts +1 -1
  76. package/dist/components/Button.js +20 -20
  77. package/dist/components/ButtonRow.cjs +49 -31
  78. package/dist/components/ButtonRow.d.cts +1 -1
  79. package/dist/components/ButtonRow.d.ts +1 -1
  80. package/dist/components/ButtonRow.js +22 -22
  81. package/dist/components/CardPage.cjs +16 -3
  82. package/dist/components/CardPage.js +24 -24
  83. package/dist/components/Checkbox.cjs +3 -3
  84. package/dist/components/Checkbox.js +3 -3
  85. package/dist/components/CodeBlock.cjs +21 -7
  86. package/dist/components/CodeBlock.js +8 -8
  87. package/dist/components/CodeInput/CodeInput.cjs +17 -4
  88. package/dist/components/CodeInput/CodeInput.js +6 -6
  89. package/dist/components/CodeInput/SingleCodeInput.cjs +17 -4
  90. package/dist/components/CodeInput/SingleCodeInput.js +5 -5
  91. package/dist/components/Collapsible.cjs +82 -7
  92. package/dist/components/Collapsible.js +6 -6
  93. package/dist/components/CommaNumberInput.cjs +22 -8
  94. package/dist/components/CommaNumberInput.d.cts +1 -1
  95. package/dist/components/CommaNumberInput.d.ts +1 -1
  96. package/dist/components/CommaNumberInput.js +11 -11
  97. package/dist/components/ContentTable.cjs +17 -4
  98. package/dist/components/ContentTable.js +4 -4
  99. package/dist/components/CopyToClipboardButton.cjs +21 -7
  100. package/dist/components/CopyToClipboardButton.js +6 -6
  101. package/dist/components/CurrencyAmount.cjs +17 -4
  102. package/dist/components/CurrencyAmount.js +4 -4
  103. package/dist/components/Drawer.cjs +293 -176
  104. package/dist/components/Drawer.d.cts +2 -0
  105. package/dist/components/Drawer.d.ts +2 -0
  106. package/dist/components/Drawer.js +22 -22
  107. package/dist/components/Dropdown.cjs +21 -7
  108. package/dist/components/Dropdown.d.cts +1 -1
  109. package/dist/components/Dropdown.d.ts +1 -1
  110. package/dist/components/Dropdown.js +5 -5
  111. package/dist/components/FileInput.cjs +17 -4
  112. package/dist/components/FileInput.js +10 -10
  113. package/dist/components/GradientCardHeader.js +5 -5
  114. package/dist/components/Icon/Icon.cjs +17 -4
  115. package/dist/components/Icon/Icon.d.cts +1 -1
  116. package/dist/components/Icon/Icon.d.ts +1 -1
  117. package/dist/components/Icon/Icon.js +3 -3
  118. package/dist/components/IconWithCircleBackground.cjs +7349 -7338
  119. package/dist/components/IconWithCircleBackground.js +4 -73
  120. package/dist/components/InfoIconTooltip.cjs +62 -32
  121. package/dist/components/InfoIconTooltip.d.cts +1 -1
  122. package/dist/components/InfoIconTooltip.d.ts +1 -1
  123. package/dist/components/InfoIconTooltip.js +19 -19
  124. package/dist/components/LightsparkProvider.cjs +16 -3
  125. package/dist/components/LightsparkProvider.js +4 -4
  126. package/dist/components/Loading.cjs +17 -4
  127. package/dist/components/Loading.js +4 -4
  128. package/dist/components/Modal.cjs +297 -147
  129. package/dist/components/Modal.d.cts +21 -15
  130. package/dist/components/Modal.d.ts +21 -15
  131. package/dist/components/Modal.js +27 -68
  132. package/dist/components/PageSection/PageSection.cjs +214 -100
  133. package/dist/components/PageSection/PageSection.d.cts +1 -1
  134. package/dist/components/PageSection/PageSection.d.ts +1 -1
  135. package/dist/components/PageSection/PageSection.js +27 -31
  136. package/dist/components/PageSection/PageSectionNav.cjs +50 -21
  137. package/dist/components/PageSection/PageSectionNav.js +20 -20
  138. package/dist/components/PhoneInput.cjs +22 -8
  139. package/dist/components/PhoneInput.d.cts +1 -1
  140. package/dist/components/PhoneInput.d.ts +1 -1
  141. package/dist/components/PhoneInput.js +11 -11
  142. package/dist/components/Pill.cjs +17 -4
  143. package/dist/components/Pill.js +7 -7
  144. package/dist/components/ProgressBar.cjs +16 -3
  145. package/dist/components/ProgressBar.js +3 -3
  146. package/dist/components/Radio.cjs +7410 -7334
  147. package/dist/components/Radio.js +8 -22
  148. package/dist/components/SecretContainer.cjs +21 -7
  149. package/dist/components/SecretContainer.js +7 -7
  150. package/dist/components/StatusIndicator.js +4 -4
  151. package/dist/components/TextButton.cjs +46 -17
  152. package/dist/components/TextButton.d.cts +1 -1
  153. package/dist/components/TextButton.d.ts +1 -1
  154. package/dist/components/TextButton.js +19 -19
  155. package/dist/components/TextIconAligner.cjs +40 -11
  156. package/dist/components/TextIconAligner.d.cts +1 -1
  157. package/dist/components/TextIconAligner.d.ts +1 -1
  158. package/dist/components/TextIconAligner.js +17 -17
  159. package/dist/components/TextInput.cjs +22 -8
  160. package/dist/components/TextInput.d.cts +1 -1
  161. package/dist/components/TextInput.d.ts +1 -1
  162. package/dist/components/TextInput.js +10 -10
  163. package/dist/components/Toasts.cjs +66 -37
  164. package/dist/components/Toasts.d.cts +1 -1
  165. package/dist/components/Toasts.d.ts +1 -1
  166. package/dist/components/Toasts.js +20 -20
  167. package/dist/components/Toggle.cjs +108 -97
  168. package/dist/components/Toggle.js +4 -4
  169. package/dist/components/Tooltip.cjs +20 -6
  170. package/dist/components/Tooltip.js +3 -3
  171. package/dist/components/UnstyledButton.js +3 -3
  172. package/dist/components/documentation/AnchorLinkHeader.cjs +17 -4
  173. package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
  174. package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
  175. package/dist/components/documentation/AnchorLinkHeader.js +8 -8
  176. package/dist/components/documentation/DocsBodyParagraph.cjs +16 -3
  177. package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
  178. package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
  179. package/dist/components/documentation/DocsBodyParagraph.js +6 -6
  180. package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -3
  181. package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
  182. package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
  183. package/dist/components/documentation/DocsBodyStrongParagraph.js +6 -6
  184. package/dist/components/documentation/DocsHeadline.cjs +16 -3
  185. package/dist/components/documentation/DocsHeadline.d.cts +1 -1
  186. package/dist/components/documentation/DocsHeadline.d.ts +1 -1
  187. package/dist/components/documentation/DocsHeadline.js +7 -7
  188. package/dist/components/documentation/Video.cjs +16 -0
  189. package/dist/components/documentation/Video.d.cts +7 -1
  190. package/dist/components/documentation/Video.d.ts +7 -1
  191. package/dist/components/documentation/Video.js +18 -2
  192. package/dist/components/documentation/index.cjs +17 -4
  193. package/dist/components/documentation/index.d.cts +1 -1
  194. package/dist/components/documentation/index.d.ts +1 -1
  195. package/dist/components/documentation/index.js +8 -8
  196. package/dist/components/index.cjs +8474 -8234
  197. package/dist/components/index.d.cts +5 -5
  198. package/dist/components/index.d.ts +5 -5
  199. package/dist/components/index.js +69 -70
  200. package/dist/components/typography/Article.cjs +103 -28
  201. package/dist/components/typography/Article.js +14 -14
  202. package/dist/components/typography/Body.cjs +18 -4
  203. package/dist/components/typography/Body.d.cts +2 -2
  204. package/dist/components/typography/Body.d.ts +2 -2
  205. package/dist/components/typography/Body.js +6 -6
  206. package/dist/components/typography/BodyStrong.cjs +18 -4
  207. package/dist/components/typography/BodyStrong.d.cts +2 -2
  208. package/dist/components/typography/BodyStrong.d.ts +2 -2
  209. package/dist/components/typography/BodyStrong.js +6 -6
  210. package/dist/components/typography/Code.cjs +18 -4
  211. package/dist/components/typography/Code.d.cts +2 -2
  212. package/dist/components/typography/Code.d.ts +2 -2
  213. package/dist/components/typography/Code.js +6 -6
  214. package/dist/components/typography/Display.cjs +18 -4
  215. package/dist/components/typography/Display.d.cts +2 -2
  216. package/dist/components/typography/Display.d.ts +2 -2
  217. package/dist/components/typography/Display.js +6 -6
  218. package/dist/components/typography/Headline.cjs +18 -4
  219. package/dist/components/typography/Headline.d.cts +2 -2
  220. package/dist/components/typography/Headline.d.ts +2 -2
  221. package/dist/components/typography/Headline.js +6 -6
  222. package/dist/components/typography/Label.cjs +18 -4
  223. package/dist/components/typography/Label.d.cts +2 -2
  224. package/dist/components/typography/Label.d.ts +2 -2
  225. package/dist/components/typography/Label.js +6 -6
  226. package/dist/components/typography/LabelModerate.cjs +18 -4
  227. package/dist/components/typography/LabelModerate.d.cts +2 -2
  228. package/dist/components/typography/LabelModerate.d.ts +2 -2
  229. package/dist/components/typography/LabelModerate.js +6 -6
  230. package/dist/components/typography/LabelStrong.cjs +18 -4
  231. package/dist/components/typography/LabelStrong.d.cts +2 -2
  232. package/dist/components/typography/LabelStrong.d.ts +2 -2
  233. package/dist/components/typography/LabelStrong.js +6 -6
  234. package/dist/components/typography/Overline.cjs +18 -4
  235. package/dist/components/typography/Overline.d.cts +2 -2
  236. package/dist/components/typography/Overline.d.ts +2 -2
  237. package/dist/components/typography/Overline.js +6 -6
  238. package/dist/components/typography/Title.cjs +18 -4
  239. package/dist/components/typography/Title.d.cts +3 -3
  240. package/dist/components/typography/Title.d.ts +3 -3
  241. package/dist/components/typography/Title.js +6 -6
  242. package/dist/components/typography/index.cjs +105 -29
  243. package/dist/components/typography/index.d.cts +1 -1
  244. package/dist/components/typography/index.d.ts +1 -1
  245. package/dist/components/typography/index.js +22 -23
  246. package/dist/components/typography/renderTypography.cjs +34 -7
  247. package/dist/components/typography/renderTypography.d.cts +20 -20
  248. package/dist/components/typography/renderTypography.d.ts +20 -20
  249. package/dist/components/typography/renderTypography.js +16 -16
  250. package/dist/styles/buttons.d.cts +1 -1
  251. package/dist/styles/buttons.d.ts +1 -1
  252. package/dist/styles/common.cjs +20 -6
  253. package/dist/styles/common.d.cts +3 -2
  254. package/dist/styles/common.d.ts +3 -2
  255. package/dist/styles/common.js +2 -2
  256. package/dist/styles/fields.cjs +17 -4
  257. package/dist/styles/fields.d.cts +1 -1
  258. package/dist/styles/fields.d.ts +1 -1
  259. package/dist/styles/fields.js +4 -4
  260. package/dist/styles/global.cjs +16 -3
  261. package/dist/styles/global.d.cts +1 -1
  262. package/dist/styles/global.d.ts +1 -1
  263. package/dist/styles/global.js +3 -3
  264. package/dist/styles/themes.cjs +16 -3
  265. package/dist/styles/themes.d.cts +1 -1
  266. package/dist/styles/themes.d.ts +1 -1
  267. package/dist/styles/themes.js +1 -1
  268. package/dist/styles/tokens/spacing.cjs +60 -21
  269. package/dist/styles/tokens/spacing.d.cts +40 -20
  270. package/dist/styles/tokens/spacing.d.ts +40 -20
  271. package/dist/styles/tokens/spacing.js +1 -1
  272. package/dist/styles/type.d.cts +1 -1
  273. package/dist/styles/type.d.ts +1 -1
  274. package/dist/styles/type.js +4 -4
  275. package/dist/styles/typography.cjs +16 -3
  276. package/dist/styles/typography.d.cts +1 -1
  277. package/dist/styles/typography.d.ts +1 -1
  278. package/dist/styles/typography.js +2 -2
  279. package/dist/styles/utils.js +3 -3
  280. package/dist/{buttons-b7f56076.d.ts → themes-37e92940.d.ts} +91 -67
  281. package/dist/{buttons-e4eb84a2.d.ts → themes-832e46b2.d.ts} +91 -67
  282. package/dist/types/index.d.cts +1 -1
  283. package/dist/types/index.d.ts +1 -1
  284. package/dist/utils/toNonTypographicReactNodes.cjs +18 -4
  285. package/dist/utils/toNonTypographicReactNodes.d.cts +2 -1
  286. package/dist/utils/toNonTypographicReactNodes.d.ts +2 -1
  287. package/dist/utils/toNonTypographicReactNodes.js +4 -4
  288. package/dist/utils/toReactNodes.cjs +59 -21
  289. package/dist/utils/toReactNodes.d.cts +13 -9
  290. package/dist/utils/toReactNodes.d.ts +13 -9
  291. package/dist/utils/toReactNodes.js +19 -17
  292. package/package.json +1 -1
  293. package/dist/chunk-3XSQV5U4.js +0 -26
  294. package/dist/chunk-B2VYAIYR.js +0 -0
  295. package/dist/chunk-RSAYBOK5.js +0 -35
@@ -84,7 +84,7 @@ __export(Drawer_exports, {
84
84
  });
85
85
  module.exports = __toCommonJS(Drawer_exports);
86
86
  var import_styled16 = __toESM(require("@emotion/styled"), 1);
87
- var import_react26 = require("react");
87
+ var import_react27 = require("react");
88
88
 
89
89
  // src/styles/colors.tsx
90
90
  var neutral = {
@@ -181,128 +181,15 @@ function hexToRGB(hex) {
181
181
  ] : [0, 0, 0];
182
182
  }
183
183
 
184
- // src/styles/z-index.tsx
185
- var z = {
186
- card: 1,
187
- fieldError: 1,
188
- textInput: 2,
189
- select: 3,
190
- selectFocused: 4,
191
- walletActionPreviewTopGradient: 1,
192
- headerContainer: 99,
193
- smBanner: 99,
194
- headerTop: 100,
195
- navMenu: 100,
196
- smNavMenu: 100,
197
- navAction: 101,
198
- smNavAction: 100,
199
- // keep under navDropdown
200
- notificationBanner: 170,
201
- qrReaderVideo: 180,
202
- qrReaderOverlay: 181,
203
- modalOverlay: 190,
204
- modalContainer: 191,
205
- dropdown: 192,
206
- tooltip: 193,
207
- toast: 200
208
- };
209
-
210
- // src/components/Button.tsx
211
- var import_react24 = require("@emotion/react");
212
- var import_styled15 = __toESM(require("@emotion/styled"), 1);
213
- var import_lodash_es4 = require("lodash-es");
214
- var import_react25 = require("react");
215
-
216
- // src/router.tsx
217
- var import_lodash_es = require("lodash-es");
218
- var import_react = require("react");
219
- var import_react_router_dom = require("react-router-dom");
220
-
221
- // src/utils/strings.tsx
222
- function isString(str) {
223
- return typeof str === "string";
224
- }
225
-
226
- // src/router.tsx
227
- var import_jsx_runtime = require("@emotion/react/jsx-runtime");
228
- function replaceParams(to, params) {
229
- if (params) {
230
- let toWithParams = to;
231
- Object.entries((0, import_lodash_es.omit)(params, "query")).forEach(([key, value]) => {
232
- if (typeof value !== "string") {
233
- throw new Error(
234
- `Only 'query' may be an object. Route params must be a string, but '${key}' is not.`
235
- );
236
- }
237
- toWithParams = toWithParams.replace(`:${key}`, value);
238
- });
239
- if (params.query) {
240
- let query = params.query;
241
- if (typeof query !== "string") {
242
- query = Object.entries(params.query).map(([key, value]) => `${key}${value ? `=${value}` : ""}`).join("&");
243
- }
244
- toWithParams = `${toWithParams}?${query}`;
245
- }
246
- to = toWithParams;
247
- }
248
- return to;
249
- }
250
- function Link({
251
- to,
252
- id,
253
- externalLink,
254
- params,
255
- children,
256
- css: css6,
257
- onClick,
258
- className,
259
- hash = null,
260
- blue = false,
261
- newTab = false
262
- }) {
263
- if (!isString(to) && !externalLink && !onClick) {
264
- throw new Error(
265
- "Link must have either `to` or `externalLink` or `onClick` defined"
266
- );
267
- }
268
- let toStr;
269
- if (isString(to)) {
270
- toStr = replaceParams(to, params);
271
- toStr += hash ? `#${hash}` : "";
272
- } else if (externalLink) {
273
- const definedExternalLink = externalLink;
274
- if (!definedExternalLink.startsWith("http")) {
275
- throw new Error("Link's externalLink must start with http");
276
- }
277
- toStr = definedExternalLink;
278
- } else {
279
- toStr = "#";
280
- }
281
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
282
- import_react_router_dom.Link,
283
- {
284
- to: toStr,
285
- id,
286
- css: css6,
287
- onClick,
288
- className,
289
- style: { color: blue ? colors.blue43 : "inherit" },
290
- target: newTab ? "_blank" : void 0,
291
- rel: newTab ? "noopener noreferrer" : void 0,
292
- children
293
- }
294
- );
295
- }
296
-
297
184
  // src/styles/common.tsx
298
- var import_react5 = require("@emotion/react");
185
+ var import_react4 = require("@emotion/react");
299
186
  var import_styled = __toESM(require("@emotion/styled"), 1);
300
187
 
301
188
  // src/styles/breakpoints.tsx
302
- var import_react2 = require("@emotion/react");
303
- var import_lodash_es2 = require("lodash-es");
304
- var import_react3 = require("react");
305
- var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
189
+ var import_react = require("@emotion/react");
190
+ var import_lodash_es = require("lodash-es");
191
+ var import_react2 = require("react");
192
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
306
193
  var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
307
194
  Breakpoints2["sm"] = "sm";
308
195
  Breakpoints2["md"] = "md";
@@ -395,7 +282,7 @@ function inRange(currentBp, assertBp) {
395
282
  }
396
283
 
397
284
  // src/styles/themes.tsx
398
- var import_react4 = require("@emotion/react");
285
+ var import_react3 = require("@emotion/react");
399
286
  var import_deepmerge = __toESM(require("deepmerge"), 1);
400
287
 
401
288
  // src/styles/buttons.tsx
@@ -3722,6 +3609,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
3722
3609
  typography: getTypography("Lightspark" /* Lightspark */),
3723
3610
  hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
3724
3611
  buttons: defaultButtonsTheme,
3612
+ badge: {
3613
+ bg: "c05Neutral"
3614
+ },
3615
+ inputBackground: colors.white,
3725
3616
  loading: "LoadingSpinner"
3726
3617
  });
3727
3618
  var lightBaseTheme = baseTheme;
@@ -3758,7 +3649,11 @@ var darkBaseTheme = {
3758
3649
  vlcNeutral: colors.gray20,
3759
3650
  warning: colors.warning,
3760
3651
  buttons: defaultButtonsTheme,
3761
- loading: "LoadingSpinner"
3652
+ loading: "LoadingSpinner",
3653
+ inputBackground: colors.black,
3654
+ badge: {
3655
+ bg: "c15Neutral"
3656
+ }
3762
3657
  };
3763
3658
  var lightTheme = extend(lightBaseTheme, {
3764
3659
  header: extendBase(lightBaseTheme, {
@@ -3797,6 +3692,7 @@ var umameDocsLightTheme = extend(lightTheme, {
3797
3692
  secondary: colors.grayBlue43,
3798
3693
  text: colors.grayBlue9,
3799
3694
  link: colors.blue39,
3695
+ inputBackground: colors.white,
3800
3696
  typography: getTypography("UmameDocs" /* UmameDocs */, {
3801
3697
  main: "Manrope",
3802
3698
  code: "Monaco"
@@ -3873,7 +3769,10 @@ var bridgeBaseSettings = {
3873
3769
  defaultBorderWidth: 1
3874
3770
  }
3875
3771
  }
3876
- })
3772
+ }),
3773
+ badge: {
3774
+ bg: "grayBlue94"
3775
+ }
3877
3776
  };
3878
3777
  var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
3879
3778
  type: "bridgeLight" /* BridgeLight */,
@@ -3881,7 +3780,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
3881
3780
  bg: colors.gray98,
3882
3781
  smBg: colors.gray98,
3883
3782
  text: colors.grayBlue9,
3884
- secondary: colors.grayBlue43
3783
+ secondary: colors.grayBlue43,
3784
+ inputBackground: colors.white
3885
3785
  }));
3886
3786
  var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
3887
3787
  type: "bridgeDark" /* BridgeDark */
@@ -3956,21 +3856,21 @@ var themeOr = (lightValue, darkValue) => ({ theme }) => {
3956
3856
  var rootFontSizePx = 12;
3957
3857
  var rootFontSizeRems = rootFontSizePx / 16;
3958
3858
  function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
3959
- const smCSS = import_react5.css`
3859
+ const smCSS = import_react4.css`
3960
3860
  ${bp.sm(`
3961
3861
  margin-left: auto;
3962
3862
  margin-right: auto;
3963
3863
  width: calc(100% - ${smPx * 2}px);
3964
3864
  `)}
3965
3865
  `;
3966
- const minSmMaxLgCSS = import_react5.css`
3866
+ const minSmMaxLgCSS = import_react4.css`
3967
3867
  ${bp.minSmMaxLg(`
3968
3868
  margin-left: auto;
3969
3869
  margin-right: auto;
3970
3870
  width: calc(100% - ${minSmMaxLgPx * 2}px);
3971
3871
  `)}
3972
3872
  `;
3973
- const lgCSS = import_react5.css`
3873
+ const lgCSS = import_react4.css`
3974
3874
  ${bp.lg(`
3975
3875
  margin-left: auto;
3976
3876
  margin-right: auto;
@@ -3985,7 +3885,7 @@ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
3985
3885
  smCSS,
3986
3886
  minSmMaxLgCSS,
3987
3887
  lgCSS,
3988
- css: import_react5.css`
3888
+ css: import_react4.css`
3989
3889
  ${lgCSS}
3990
3890
  ${smCSS}
3991
3891
  ${minSmMaxLgCSS}
@@ -3993,12 +3893,12 @@ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
3993
3893
  };
3994
3894
  }
3995
3895
  var standardContentInset = buildStandardContentInset(16, 24, 32);
3996
- var standardCardShadow = import_react5.css`
3896
+ var standardCardShadow = import_react4.css`
3997
3897
  box-shadow:
3998
3898
  0px 4px 10px 0px rgba(0, 0, 0, 0.08),
3999
3899
  0px 8px 24px 0px rgba(0, 0, 0, 0.04);
4000
3900
  `;
4001
- var standardCardShadowHard = import_react5.css`
3901
+ var standardCardShadowHard = import_react4.css`
4002
3902
  box-shadow:
4003
3903
  0px 24px 24px -12px rgba(0, 0, 0, 0.06),
4004
3904
  0px 12px 12px -6px rgba(0, 0, 0, 0.06),
@@ -4016,7 +3916,7 @@ var getFocusOutline = ({
4016
3916
  onBgHex
4017
3917
  }) => `${onBgHex ? theme.hcNeutralFromBg(onBgHex) : theme.hcNeutral} dashed 1px`;
4018
3918
  var outlineOffset = "-2px";
4019
- var standardFocusOutline = ({ theme }) => import_react5.css`
3919
+ var standardFocusOutline = ({ theme }) => import_react4.css`
4020
3920
  &,
4021
3921
  & a,
4022
3922
  & button {
@@ -4026,30 +3926,31 @@ var standardFocusOutline = ({ theme }) => import_react5.css`
4026
3926
  }
4027
3927
  }
4028
3928
  `;
4029
- var subtext = ({ theme }) => import_react5.css`
3929
+ var subtext = ({ theme }) => import_react4.css`
4030
3930
  color: ${theme.c6Neutral};
4031
3931
  font-weight: 600;
4032
3932
  `;
4033
3933
  var Subtext = import_styled.default.div`
4034
3934
  ${subtext}
4035
3935
  `;
4036
- var darkGradientBg = import_react5.css`
3936
+ var darkGradientBg = import_react4.css`
4037
3937
  background: ${darkGradient};
4038
3938
  `;
4039
3939
  var overlaySurfaceBorderColor = ({
4040
3940
  theme,
4041
3941
  important = false
4042
- }) => import_react5.css`
3942
+ }) => import_react4.css`
4043
3943
  border-color: ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })}
4044
3944
  ${important ? "!important" : ""};
4045
3945
  `;
4046
3946
  var overlaySurface = ({
4047
3947
  theme,
4048
- important = false
4049
- }) => import_react5.css`
4050
- background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
3948
+ important = false,
3949
+ border = true
3950
+ }) => import_react4.css`
3951
+ background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
4051
3952
  ${important ? "!important" : ""};
4052
- border: 0.5px solid ${important ? "!important" : ""};
3953
+ ${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
4053
3954
  ${overlaySurfaceBorderColor({ theme, important })};
4054
3955
  ${themeOr(
4055
3956
  `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
@@ -4057,6 +3958,181 @@ var overlaySurface = ({
4057
3958
  )({ theme })}
4058
3959
  `;
4059
3960
 
3961
+ // src/styles/tokens/spacing.tsx
3962
+ var n = {
3963
+ "4xs": 2,
3964
+ "3xs": 4,
3965
+ "2xs": 6,
3966
+ xs: 8,
3967
+ sm: 12,
3968
+ md: 16,
3969
+ lg: 24,
3970
+ xl: 32,
3971
+ "2xl": 40,
3972
+ "3xl": 48,
3973
+ "4xl": 56,
3974
+ "5xl": 64,
3975
+ "6xl": 72,
3976
+ "7xl": 80,
3977
+ "8xl": 96,
3978
+ "9xl": 112,
3979
+ "10xl": 128,
3980
+ "11xl": 160
3981
+ };
3982
+ var Spacing = {
3983
+ "4xs": n["4xs"],
3984
+ "3xs": n["3xs"],
3985
+ "2xs": n["2xs"],
3986
+ xs: n.xs,
3987
+ sm: n.sm,
3988
+ md: n.md,
3989
+ lg: n.lg,
3990
+ xl: n.xl,
3991
+ "2xl": n["2xl"],
3992
+ "3xl": n["3xl"],
3993
+ "4xl": n["4xl"],
3994
+ "5xl": n["5xl"],
3995
+ "6xl": n["6xl"],
3996
+ "7xl": n["7xl"],
3997
+ "8xl": n["8xl"],
3998
+ "9xl": n["9xl"],
3999
+ "10xl": n["10xl"],
4000
+ "11xl": n["11xl"],
4001
+ px: {
4002
+ "4xs": `${n["4xs"]}px`,
4003
+ "3xs": `${n["3xs"]}px`,
4004
+ "2xs": `${n["2xs"]}px`,
4005
+ xs: `${n.xs}px`,
4006
+ sm: `${n.sm}px`,
4007
+ md: `${n.md}px`,
4008
+ lg: `${n.lg}px`,
4009
+ xl: `${n.xl}px`,
4010
+ "2xl": `${n["2xl"]}px`,
4011
+ "3xl": `${n["3xl"]}px`,
4012
+ "4xl": `${n["4xl"]}px`,
4013
+ "5xl": `${n["5xl"]}px`,
4014
+ "6xl": `${n["6xl"]}px`,
4015
+ "7xl": `${n["7xl"]}px`,
4016
+ "8xl": `${n["8xl"]}px`,
4017
+ "9xl": `${n["9xl"]}px`,
4018
+ "10xl": `${n["10xl"]}px`,
4019
+ "11xl": `${n["11xl"]}px`
4020
+ }
4021
+ };
4022
+
4023
+ // src/styles/z-index.tsx
4024
+ var z = {
4025
+ card: 1,
4026
+ fieldError: 1,
4027
+ textInput: 2,
4028
+ select: 3,
4029
+ selectFocused: 4,
4030
+ walletActionPreviewTopGradient: 1,
4031
+ headerContainer: 99,
4032
+ smBanner: 99,
4033
+ headerTop: 100,
4034
+ navMenu: 100,
4035
+ smNavMenu: 100,
4036
+ navAction: 101,
4037
+ smNavAction: 100,
4038
+ // keep under navDropdown
4039
+ notificationBanner: 170,
4040
+ qrReaderVideo: 180,
4041
+ qrReaderOverlay: 181,
4042
+ modalOverlay: 190,
4043
+ modalContainer: 191,
4044
+ dropdown: 192,
4045
+ tooltip: 193,
4046
+ toast: 200
4047
+ };
4048
+
4049
+ // src/components/Button.tsx
4050
+ var import_react25 = require("@emotion/react");
4051
+ var import_styled15 = __toESM(require("@emotion/styled"), 1);
4052
+ var import_lodash_es4 = require("lodash-es");
4053
+ var import_react26 = require("react");
4054
+
4055
+ // src/router.tsx
4056
+ var import_lodash_es2 = require("lodash-es");
4057
+ var import_react5 = require("react");
4058
+ var import_react_router_dom = require("react-router-dom");
4059
+
4060
+ // src/utils/strings.tsx
4061
+ function isString(str) {
4062
+ return typeof str === "string";
4063
+ }
4064
+
4065
+ // src/router.tsx
4066
+ var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
4067
+ function replaceParams(to, params) {
4068
+ if (params) {
4069
+ let toWithParams = to;
4070
+ Object.entries((0, import_lodash_es2.omit)(params, "query")).forEach(([key, value]) => {
4071
+ if (typeof value !== "string") {
4072
+ throw new Error(
4073
+ `Only 'query' may be an object. Route params must be a string, but '${key}' is not.`
4074
+ );
4075
+ }
4076
+ toWithParams = toWithParams.replace(`:${key}`, value);
4077
+ });
4078
+ if (params.query) {
4079
+ let query = params.query;
4080
+ if (typeof query !== "string") {
4081
+ query = Object.entries(params.query).map(([key, value]) => `${key}${value ? `=${value}` : ""}`).join("&");
4082
+ }
4083
+ toWithParams = `${toWithParams}?${query}`;
4084
+ }
4085
+ to = toWithParams;
4086
+ }
4087
+ return to;
4088
+ }
4089
+ function Link({
4090
+ to,
4091
+ id,
4092
+ externalLink,
4093
+ params,
4094
+ children,
4095
+ css: css6,
4096
+ onClick,
4097
+ className,
4098
+ hash = null,
4099
+ blue = false,
4100
+ newTab = false
4101
+ }) {
4102
+ if (!isString(to) && !externalLink && !onClick) {
4103
+ throw new Error(
4104
+ "Link must have either `to` or `externalLink` or `onClick` defined"
4105
+ );
4106
+ }
4107
+ let toStr;
4108
+ if (isString(to)) {
4109
+ toStr = replaceParams(to, params);
4110
+ toStr += hash ? `#${hash}` : "";
4111
+ } else if (externalLink) {
4112
+ const definedExternalLink = externalLink;
4113
+ if (!definedExternalLink.startsWith("http")) {
4114
+ throw new Error("Link's externalLink must start with http");
4115
+ }
4116
+ toStr = definedExternalLink;
4117
+ } else {
4118
+ toStr = "#";
4119
+ }
4120
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
4121
+ import_react_router_dom.Link,
4122
+ {
4123
+ to: toStr,
4124
+ id,
4125
+ css: css6,
4126
+ onClick,
4127
+ className,
4128
+ style: { color: blue ? colors.blue43 : "inherit" },
4129
+ target: newTab ? "_blank" : void 0,
4130
+ rel: newTab ? "noopener noreferrer" : void 0,
4131
+ children
4132
+ }
4133
+ );
4134
+ }
4135
+
4060
4136
  // src/styles/typography.tsx
4061
4137
  var applyTypography = (theme, typographyType, size, color = "inherit", applyToAll = true) => {
4062
4138
  const selector = applyToAll ? "&, & *" : "&";
@@ -7958,7 +8034,7 @@ var IconContainer = import_styled2.default.span`
7958
8034
  ${({ theme, fontColor }) => {
7959
8035
  const color = getFontColor(theme, fontColor, "inherit");
7960
8036
  return `
7961
- & svg {
8037
+ svg, path {
7962
8038
  color: ${getFontColor(theme, fontColor, "inherit")};
7963
8039
 
7964
8040
  /*
@@ -8104,6 +8180,9 @@ var UnstyledButton = import_styled4.default.button`
8104
8180
  font-weight: inherit;
8105
8181
  `;
8106
8182
 
8183
+ // src/components/typography/renderTypography.tsx
8184
+ var import_react24 = __toESM(require("react"), 1);
8185
+
8107
8186
  // src/components/typography/Body.tsx
8108
8187
  var import_styled5 = __toESM(require("@emotion/styled"), 1);
8109
8188
 
@@ -8168,6 +8247,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
8168
8247
  Link,
8169
8248
  {
8170
8249
  to: node.to,
8250
+ newTab: !!node.newTab,
8171
8251
  children: node.text
8172
8252
  },
8173
8253
  `link-${i}-${node.text.substr(0, 10)}`
@@ -8444,7 +8524,6 @@ var StyledTitle = import_styled14.default.span`
8444
8524
  `;
8445
8525
 
8446
8526
  // src/components/typography/renderTypography.tsx
8447
- var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
8448
8527
  var typographyMap = {
8449
8528
  Display,
8450
8529
  Headline,
@@ -8456,15 +8535,16 @@ var typographyMap = {
8456
8535
  "Label Strong": LabelStrong,
8457
8536
  Overline,
8458
8537
  Code: Code2,
8459
- "Code Strong": () => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { children: "Unimplemented" })
8538
+ "Code Strong": Code2
8460
8539
  };
8461
8540
  var renderTypography = (type, props) => {
8462
8541
  const TypographyComponent = typographyMap[type];
8463
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(TypographyComponent, __spreadValues({}, props));
8542
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
8543
+ return import_react24.default.createElement(TypographyComponent, rest, children);
8464
8544
  };
8465
8545
 
8466
8546
  // src/components/Button.tsx
8467
- var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
8547
+ var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
8468
8548
  var roundPaddingsX = {
8469
8549
  [TokenSize.ExtraSmall]: 10,
8470
8550
  [TokenSize.Small]: 10,
@@ -8487,7 +8567,7 @@ function getPaddingX(size, kind, isRound) {
8487
8567
  function getPadding({ paddingY, kind, size, iconSide, isRound }) {
8488
8568
  const paddingX = getPaddingX(size, kind, isRound);
8489
8569
  const paddingForIcon = 0;
8490
- return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
8570
+ return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
8491
8571
  }
8492
8572
  function resolveBackgroundColorKey(theme, kind, defaultKey) {
8493
8573
  var _a;
@@ -8569,7 +8649,7 @@ function resolveProps(props, theme) {
8569
8649
  });
8570
8650
  }
8571
8651
  function Button(props) {
8572
- const theme = (0, import_react24.useTheme)();
8652
+ const theme = (0, import_react25.useTheme)();
8573
8653
  const {
8574
8654
  kind,
8575
8655
  typography,
@@ -8601,34 +8681,34 @@ function Button(props) {
8601
8681
  tooltipText,
8602
8682
  borderRadius
8603
8683
  } = resolveProps(props, theme);
8604
- const tooltipId = (0, import_react25.useRef)((0, import_lodash_es4.uniqueId)());
8684
+ const tooltipId = (0, import_react26.useRef)((0, import_lodash_es4.uniqueId)());
8605
8685
  const iconSize = size === "ExtraSmall" ? 12 : 16;
8606
8686
  let currentIcon = null;
8607
8687
  if (loading) {
8608
- currentIcon = /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8688
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8609
8689
  ButtonIcon,
8610
8690
  {
8611
8691
  iconSide,
8612
8692
  text,
8613
8693
  typography,
8614
8694
  kind,
8615
- children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Loading, { size: iconSize, center: false })
8695
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Loading, { size: iconSize, center: false })
8616
8696
  }
8617
8697
  );
8618
8698
  } else if (icon) {
8619
- currentIcon = /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8699
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8620
8700
  ButtonIcon,
8621
8701
  {
8622
8702
  iconSide,
8623
8703
  text,
8624
8704
  typography,
8625
8705
  kind,
8626
- children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8706
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8627
8707
  }
8628
8708
  );
8629
8709
  }
8630
- const content = /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_react25.Fragment, { children: [
8631
- /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
8710
+ const content = /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_react26.Fragment, { children: [
8711
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
8632
8712
  "div",
8633
8713
  __spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
8634
8714
  css: {
@@ -8639,7 +8719,7 @@ function Button(props) {
8639
8719
  },
8640
8720
  children: [
8641
8721
  iconSide === "left" && currentIcon,
8642
- text && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8722
+ text && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8643
8723
  "div",
8644
8724
  {
8645
8725
  css: {
@@ -8657,7 +8737,7 @@ function Button(props) {
8657
8737
  ]
8658
8738
  })
8659
8739
  ),
8660
- tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
8740
+ tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
8661
8741
  ] });
8662
8742
  const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
8663
8743
  const commonProps = {
@@ -8687,9 +8767,9 @@ function Button(props) {
8687
8767
  zIndex
8688
8768
  };
8689
8769
  if (to) {
8690
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
8770
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
8691
8771
  }
8692
- return href ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8772
+ return href ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8693
8773
  ButtonHrefLink,
8694
8774
  __spreadProps(__spreadValues({}, commonProps), {
8695
8775
  href,
@@ -8697,7 +8777,7 @@ function Button(props) {
8697
8777
  target: "_blank",
8698
8778
  children: content
8699
8779
  })
8700
- ) : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
8780
+ ) : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
8701
8781
  }
8702
8782
  var buttonStyle = ({
8703
8783
  paddingY,
@@ -8717,7 +8797,7 @@ var buttonStyle = ({
8717
8797
  hoverBackgroundColor,
8718
8798
  hoverBorderColor
8719
8799
  }) => {
8720
- return import_react24.css`
8800
+ return import_react25.css`
8721
8801
  display: inline-flex;
8722
8802
  opacity: ${disabled && !isLoading ? 0.2 : 1};
8723
8803
  ${disabled ? "pointer-events: none;" : ""}
@@ -8781,15 +8861,18 @@ var ButtonHrefLink = import_styled15.default.a`
8781
8861
  `;
8782
8862
 
8783
8863
  // src/components/Drawer.tsx
8784
- var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
8864
+ var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
8785
8865
  var Drawer = (props) => {
8786
- const [isOpen, setIsOpen] = (0, import_react26.useState)(true);
8787
- const [lastY, setLastY] = (0, import_react26.useState)(null);
8788
- const [totalDeltaY, setTotalDeltaY] = (0, import_react26.useState)(0);
8789
- const [fractionVisible, setFractionVisible] = (0, import_react26.useState)(1);
8790
- const [grabbing, setGrabbing] = (0, import_react26.useState)(false);
8791
- const drawerContainerRef = (0, import_react26.useRef)(null);
8866
+ const [isOpen, setIsOpen] = (0, import_react27.useState)(true);
8867
+ const [lastY, setLastY] = (0, import_react27.useState)(null);
8868
+ const [totalDeltaY, setTotalDeltaY] = (0, import_react27.useState)(0);
8869
+ const [fractionVisible, setFractionVisible] = (0, import_react27.useState)(1);
8870
+ const [grabbing, setGrabbing] = (0, import_react27.useState)(false);
8871
+ const drawerContainerRef = (0, import_react27.useRef)(null);
8792
8872
  const handleClose = () => {
8873
+ if (props.nonDismissable) {
8874
+ return;
8875
+ }
8793
8876
  setIsOpen(false);
8794
8877
  setTimeout(() => {
8795
8878
  props.onClose && props.onClose();
@@ -8799,6 +8882,9 @@ var Drawer = (props) => {
8799
8882
  };
8800
8883
  const handleTouchMove = (event) => {
8801
8884
  var _a, _b;
8885
+ if (props.nonDismissable) {
8886
+ return;
8887
+ }
8802
8888
  if (lastY === null) {
8803
8889
  setLastY(event.touches[0].clientY);
8804
8890
  } else {
@@ -8815,9 +8901,15 @@ var Drawer = (props) => {
8815
8901
  }
8816
8902
  };
8817
8903
  const handleTouchStart = () => {
8904
+ if (props.nonDismissable) {
8905
+ return;
8906
+ }
8818
8907
  setGrabbing(true);
8819
8908
  };
8820
8909
  const handleTouchEnd = () => {
8910
+ if (props.nonDismissable) {
8911
+ return;
8912
+ }
8821
8913
  setGrabbing(false);
8822
8914
  if (fractionVisible < 0.8) {
8823
8915
  handleClose();
@@ -8825,8 +8917,8 @@ var Drawer = (props) => {
8825
8917
  setTotalDeltaY(0);
8826
8918
  setLastY(null);
8827
8919
  };
8828
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
8829
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8920
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
8921
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8830
8922
  Background,
8831
8923
  {
8832
8924
  isOpen,
@@ -8834,7 +8926,7 @@ var Drawer = (props) => {
8834
8926
  onClick: handleClose
8835
8927
  }
8836
8928
  ),
8837
- /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
8929
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
8838
8930
  DrawerContainer,
8839
8931
  {
8840
8932
  isOpen,
@@ -8845,16 +8937,17 @@ var Drawer = (props) => {
8845
8937
  grabbing,
8846
8938
  ref: drawerContainerRef,
8847
8939
  children: [
8848
- props.grabber && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(GrabberBar, {}) }),
8849
- props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8940
+ props.grabber && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(GrabberBar, {}) }),
8941
+ props.handleBack && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(BackButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8850
8942
  Button,
8851
8943
  {
8852
- onClick: handleClose,
8853
- icon: "Close",
8944
+ onClick: props.handleBack,
8945
+ icon: "ChevronLeft",
8854
8946
  kind: "ghost",
8855
- size: "ExtraSmall"
8947
+ size: "Small"
8856
8948
  }
8857
8949
  ) }),
8950
+ props.closeButton && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(CloseButton, { onClick: handleClose, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon, { name: "Close", width: 12 }) }) }),
8858
8951
  props.children
8859
8952
  ]
8860
8953
  }
@@ -8887,16 +8980,19 @@ var Background = import_styled16.default.div`
8887
8980
  `;
8888
8981
  var DrawerContainer = import_styled16.default.div`
8889
8982
  position: fixed;
8983
+ max-height: 100dvh;
8890
8984
  width: 100%;
8891
8985
  background-color: ${({ theme }) => theme.bg};
8892
8986
  right: 0;
8893
8987
  bottom: 0;
8894
8988
  transform: translateY(${(props) => `${props.totalDeltaY}px`});
8895
8989
  z-index: ${z.modalContainer};
8896
- border-radius: ${"24px" /* lg */} ${"24px" /* lg */} 0 0;
8990
+ border-radius: ${Spacing.px.lg} ${Spacing.px.lg} 0 0;
8897
8991
  display: flex;
8898
8992
  flex-direction: column;
8899
- padding: ${"72px" /* 6xl */} ${"32px" /* xl */} ${"40px" /* 2xl */} ${"32px" /* xl */};
8993
+ padding: ${Spacing.px["6xl"]} ${Spacing.px.xl} ${Spacing.px["2xl"]}
8994
+ ${Spacing.px.xl};
8995
+ overflow-y: scroll;
8900
8996
 
8901
8997
  // Only smooth transition when not grabbing, otherwise dragging will feel very laggy
8902
8998
  ${(props) => props.grabbing && props.isOpen ? "" : "transition: transform 0.3s ease-in-out;"};
@@ -8928,7 +9024,7 @@ var Grabber = import_styled16.default.div`
8928
9024
  top: 0;
8929
9025
  left: 0;
8930
9026
  width: 100%;
8931
- height: ${"24px" /* lg */};
9027
+ height: ${Spacing.px.lg};
8932
9028
  display: flex;
8933
9029
  flex-direction: row;
8934
9030
  justify-content: center;
@@ -8942,12 +9038,33 @@ var CloseButtonContainer = import_styled16.default.div`
8942
9038
  right: 20px;
8943
9039
  border-radius: 50%;
8944
9040
  background-color: ${colors.grayBlue94};
8945
- padding: ${"8px" /* xs */};
9041
+ padding: ${Spacing.px.xs};
9042
+ height: 30px;
9043
+ width: 30px;
9044
+ display: flex;
9045
+ align-items: center;
8946
9046
 
8947
9047
  * > * {
8948
9048
  line-height: 14px;
8949
9049
  }
8950
9050
  `;
9051
+ var CloseButton = (0, import_styled16.default)(UnstyledButton)`
9052
+ ${standardFocusOutline}
9053
+ width: 24px;
9054
+ height: 24px;
9055
+ justify-self: flex-end;
9056
+ `;
9057
+ var BackButtonContainer = import_styled16.default.div`
9058
+ position: absolute;
9059
+ top: 20px;
9060
+ left: 20px;
9061
+ border-radius: 50%;
9062
+ padding: ${Spacing.px.xs};
9063
+ height: 30px;
9064
+ width: 30px;
9065
+ display: flex;
9066
+ align-items: center;
9067
+ `;
8951
9068
  var GrabberBar = import_styled16.default.div`
8952
9069
  width: 36px;
8953
9070
  height: 5px;