@lightsparkdev/ui 1.0.3 → 1.0.5

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 (302) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-54EOEIEN.js → chunk-3DXU76SI.js} +2 -2
  3. package/dist/{chunk-PQKVR2BR.js → chunk-42D2SXB2.js} +1 -1
  4. package/dist/{chunk-BSH6WRUZ.js → chunk-45BHB7K7.js} +3 -3
  5. package/dist/{chunk-35PJW7RT.js → chunk-4EV5IUUJ.js} +2 -2
  6. package/dist/{chunk-XM2HQVUK.js → chunk-4IHNUHE3.js} +5 -5
  7. package/dist/{chunk-X4TGLNCH.js → chunk-5JJUXAVA.js} +3 -3
  8. package/dist/{chunk-ILEZ6AWT.js → chunk-7EAO66LB.js} +5 -5
  9. package/dist/{chunk-LIQSJ5R7.js → chunk-AKGW3FMJ.js} +21 -13
  10. package/dist/{chunk-7N2PFDYE.js → chunk-AVV74PTP.js} +2 -2
  11. package/dist/{chunk-SNFRMD6Z.js → chunk-AXNQ7BDD.js} +4 -4
  12. package/dist/{chunk-CRTTTIAD.js → chunk-BNHCCR3C.js} +2 -2
  13. package/dist/{chunk-UH5F35II.js → chunk-BRJKMY6Z.js} +3 -3
  14. package/dist/{chunk-7WDAN3OC.js → chunk-D4DFISYR.js} +1 -1
  15. package/dist/chunk-E5DUKMCU.js +65 -0
  16. package/dist/{chunk-YRNEIRHM.js → chunk-E6ZY35LN.js} +5 -5
  17. package/dist/{chunk-J3YVJWRG.js → chunk-EHH4M2LZ.js} +5 -5
  18. package/dist/{chunk-XB4KQFK2.js → chunk-EKU5IWJW.js} +2 -2
  19. package/dist/chunk-ERNTWEIJ.js +74 -0
  20. package/dist/{chunk-7IHNYMFQ.js → chunk-FE477HOE.js} +2 -2
  21. package/dist/{chunk-B6S7Y4K7.js → chunk-GGWFUEDW.js} +2 -2
  22. package/dist/{chunk-7YY6BH5O.js → chunk-GMEJR5XX.js} +2 -2
  23. package/dist/{chunk-LOL5TJ3H.js → chunk-GMOJB7PP.js} +16 -16
  24. package/dist/{chunk-RPNTFEXE.js → chunk-H3UUVMZ3.js} +1 -1
  25. package/dist/{chunk-WGKUDRZ7.js → chunk-HLZNFEDV.js} +2 -2
  26. package/dist/{chunk-XDP7GCYE.js → chunk-HNK2KIC7.js} +2 -2
  27. package/dist/{chunk-BENSR2YW.js → chunk-I3WMJNCP.js} +1 -1
  28. package/dist/{chunk-BDZ46Z2I.js → chunk-IH5SIRJL.js} +2 -2
  29. package/dist/{chunk-YIHC25WB.js → chunk-IIRG6R42.js} +3 -3
  30. package/dist/{chunk-C4KZC45Y.js → chunk-ILCC45G7.js} +54 -71
  31. package/dist/{chunk-MRGHRTKA.js → chunk-IXAXRBFS.js} +2 -2
  32. package/dist/{chunk-QQSV7XJX.js → chunk-JZKGVGBU.js} +1 -1
  33. package/dist/{chunk-XUWFUTR4.js → chunk-KPAVY3UH.js} +3 -1
  34. package/dist/{chunk-I3FI3FNP.js → chunk-LAGOF7IU.js} +2 -2
  35. package/dist/{chunk-MWDDIXIP.js → chunk-LH5VFS3E.js} +1 -1
  36. package/dist/{chunk-2XUHQWCJ.js → chunk-LKJ7QTWL.js} +4 -4
  37. package/dist/{chunk-N2NPIZCV.js → chunk-M7E2PMFK.js} +9 -9
  38. package/dist/{chunk-BHP5YL2N.js → chunk-N67Y7GWR.js} +1 -1
  39. package/dist/{chunk-4BFBANKF.js → chunk-NBIK5O3N.js} +37 -34
  40. package/dist/{chunk-SLKPLSJU.js → chunk-NK7WH3TK.js} +11 -11
  41. package/dist/{chunk-KX5QZXCD.js → chunk-NONMMIMQ.js} +1 -1
  42. package/dist/{chunk-Y7RQUJUS.js → chunk-NWPPTOKK.js} +5 -5
  43. package/dist/{chunk-4C2TISN7.js → chunk-OPUCWQMK.js} +1 -1
  44. package/dist/{chunk-GWHKALYQ.js → chunk-PBLWYVQF.js} +2 -2
  45. package/dist/{chunk-E4DUADXU.js → chunk-PYAKYQWS.js} +1 -1
  46. package/dist/{chunk-DXA3WUSX.js → chunk-PZTZ4436.js} +2 -2
  47. package/dist/{chunk-6CNJ5ZCC.js → chunk-Q76C6FJ5.js} +3 -3
  48. package/dist/{chunk-JNNJVBHF.js → chunk-QBRCVOJ4.js} +14 -10
  49. package/dist/{chunk-HGOGF6I7.js → chunk-QEZ7L6YF.js} +1 -1
  50. package/dist/{chunk-435FPPZK.js → chunk-QFVQ6QPA.js} +2 -2
  51. package/dist/{chunk-WTMJTGW4.js → chunk-QON4D7N2.js} +2 -2
  52. package/dist/chunk-QTPYP3IK.js +27 -0
  53. package/dist/{chunk-LH7GLNMY.js → chunk-QZMD3YHI.js} +1 -1
  54. package/dist/{chunk-VXKNN4SF.js → chunk-RQLRNKOP.js} +17 -16
  55. package/dist/{chunk-7FHOKVKJ.js → chunk-RRXB5FQC.js} +7 -7
  56. package/dist/{chunk-AAFUVYVP.js → chunk-SCIQSZSW.js} +1 -1
  57. package/dist/{chunk-5TTLUOJ5.js → chunk-SIYZ5PZT.js} +1 -1
  58. package/dist/{chunk-K7FYXGOI.js → chunk-TMIBU4ME.js} +1 -1
  59. package/dist/{chunk-LTCJ6LNO.js → chunk-TN5UPDZG.js} +1 -1
  60. package/dist/{chunk-IBZBPQMZ.js → chunk-UAUAYQ3C.js} +14 -5
  61. package/dist/{chunk-LGKXPUSI.js → chunk-VF5KSAZG.js} +3 -3
  62. package/dist/{chunk-GSKTHUQJ.js → chunk-XLKL3DNK.js} +2 -2
  63. package/dist/{chunk-OKXC33OU.js → chunk-XQIQOMNE.js} +5 -2
  64. package/dist/{chunk-PG2W2HVB.js → chunk-YG5BANJH.js} +2 -2
  65. package/dist/{chunk-4JHXRPRB.js → chunk-YXAKRSFW.js} +9 -6
  66. package/dist/{chunk-2AGBCGOW.js → chunk-ZR2TARGX.js} +2 -2
  67. package/dist/components/Badge.cjs +7784 -7418
  68. package/dist/components/Badge.d.cts +146 -7
  69. package/dist/components/Badge.d.ts +146 -7
  70. package/dist/components/Badge.js +22 -25
  71. package/dist/components/Banner/Banner.cjs +53 -27
  72. package/dist/components/Banner/Banner.d.cts +1 -1
  73. package/dist/components/Banner/Banner.d.ts +1 -1
  74. package/dist/components/Banner/Banner.js +20 -20
  75. package/dist/components/Button.cjs +39 -25
  76. package/dist/components/Button.d.cts +1 -1
  77. package/dist/components/Button.d.ts +1 -1
  78. package/dist/components/Button.js +22 -22
  79. package/dist/components/ButtonRow.cjs +42 -28
  80. package/dist/components/ButtonRow.d.cts +1 -1
  81. package/dist/components/ButtonRow.d.ts +1 -1
  82. package/dist/components/ButtonRow.js +24 -24
  83. package/dist/components/CardPage.cjs +16 -5
  84. package/dist/components/CardPage.js +26 -26
  85. package/dist/components/Checkbox.cjs +6 -4
  86. package/dist/components/Checkbox.js +4 -4
  87. package/dist/components/CodeBlock.cjs +16 -5
  88. package/dist/components/CodeBlock.js +9 -9
  89. package/dist/components/CodeInput/CodeInput.cjs +16 -5
  90. package/dist/components/CodeInput/CodeInput.js +7 -7
  91. package/dist/components/CodeInput/SingleCodeInput.cjs +16 -5
  92. package/dist/components/CodeInput/SingleCodeInput.js +6 -6
  93. package/dist/components/Collapsible.cjs +81 -8
  94. package/dist/components/Collapsible.js +7 -7
  95. package/dist/components/CommaNumberInput.cjs +16 -5
  96. package/dist/components/CommaNumberInput.d.cts +1 -1
  97. package/dist/components/CommaNumberInput.d.ts +1 -1
  98. package/dist/components/CommaNumberInput.js +12 -12
  99. package/dist/components/ContentTable.cjs +16 -5
  100. package/dist/components/ContentTable.js +5 -5
  101. package/dist/components/CopyToClipboardButton.cjs +16 -5
  102. package/dist/components/CopyToClipboardButton.js +7 -7
  103. package/dist/components/CurrencyAmount.cjs +16 -5
  104. package/dist/components/CurrencyAmount.js +5 -5
  105. package/dist/components/Drawer.cjs +121 -44
  106. package/dist/components/Drawer.js +24 -24
  107. package/dist/components/Dropdown.cjs +16 -5
  108. package/dist/components/Dropdown.d.cts +1 -1
  109. package/dist/components/Dropdown.d.ts +1 -1
  110. package/dist/components/Dropdown.js +7 -7
  111. package/dist/components/FileInput.cjs +16 -5
  112. package/dist/components/FileInput.js +11 -11
  113. package/dist/components/GradientCardHeader.cjs +3 -1
  114. package/dist/components/GradientCardHeader.js +6 -6
  115. package/dist/components/Icon/Icon.cjs +16 -5
  116. package/dist/components/Icon/Icon.d.cts +1 -1
  117. package/dist/components/Icon/Icon.d.ts +1 -1
  118. package/dist/components/Icon/Icon.js +4 -4
  119. package/dist/components/IconWithCircleBackground.cjs +7349 -7340
  120. package/dist/components/IconWithCircleBackground.js +5 -74
  121. package/dist/components/InfoIconTooltip.cjs +56 -30
  122. package/dist/components/InfoIconTooltip.d.cts +1 -1
  123. package/dist/components/InfoIconTooltip.d.ts +1 -1
  124. package/dist/components/InfoIconTooltip.js +21 -21
  125. package/dist/components/LightsparkProvider.cjs +16 -5
  126. package/dist/components/LightsparkProvider.js +5 -5
  127. package/dist/components/Loading.cjs +16 -5
  128. package/dist/components/Loading.js +5 -5
  129. package/dist/components/Modal.cjs +205 -128
  130. package/dist/components/Modal.d.cts +9 -9
  131. package/dist/components/Modal.d.ts +9 -9
  132. package/dist/components/Modal.js +29 -70
  133. package/dist/components/PageSection/PageSection.cjs +208 -98
  134. package/dist/components/PageSection/PageSection.d.cts +1 -1
  135. package/dist/components/PageSection/PageSection.d.ts +1 -1
  136. package/dist/components/PageSection/PageSection.js +29 -33
  137. package/dist/components/PageSection/PageSectionNav.cjs +48 -22
  138. package/dist/components/PageSection/PageSectionNav.js +22 -22
  139. package/dist/components/PhoneInput.cjs +16 -5
  140. package/dist/components/PhoneInput.d.cts +1 -1
  141. package/dist/components/PhoneInput.d.ts +1 -1
  142. package/dist/components/PhoneInput.js +12 -12
  143. package/dist/components/Pill.cjs +16 -5
  144. package/dist/components/Pill.js +8 -8
  145. package/dist/components/ProgressBar.cjs +16 -5
  146. package/dist/components/ProgressBar.js +4 -4
  147. package/dist/components/Radio.cjs +7412 -7339
  148. package/dist/components/Radio.js +10 -24
  149. package/dist/components/SecretContainer.cjs +16 -5
  150. package/dist/components/SecretContainer.js +8 -8
  151. package/dist/components/StatusIndicator.cjs +3 -1
  152. package/dist/components/StatusIndicator.js +5 -5
  153. package/dist/components/TextButton.cjs +44 -18
  154. package/dist/components/TextButton.d.cts +1 -1
  155. package/dist/components/TextButton.d.ts +1 -1
  156. package/dist/components/TextButton.js +21 -21
  157. package/dist/components/TextIconAligner.cjs +38 -12
  158. package/dist/components/TextIconAligner.d.cts +1 -1
  159. package/dist/components/TextIconAligner.d.ts +1 -1
  160. package/dist/components/TextIconAligner.js +19 -19
  161. package/dist/components/TextInput.cjs +16 -5
  162. package/dist/components/TextInput.d.cts +1 -1
  163. package/dist/components/TextInput.d.ts +1 -1
  164. package/dist/components/TextInput.js +11 -11
  165. package/dist/components/Toasts.cjs +64 -38
  166. package/dist/components/Toasts.d.cts +1 -1
  167. package/dist/components/Toasts.d.ts +1 -1
  168. package/dist/components/Toasts.js +22 -22
  169. package/dist/components/Toggle.cjs +107 -98
  170. package/dist/components/Toggle.js +5 -5
  171. package/dist/components/Tooltip.cjs +16 -5
  172. package/dist/components/Tooltip.js +4 -4
  173. package/dist/components/UnstyledButton.cjs +3 -1
  174. package/dist/components/UnstyledButton.js +4 -4
  175. package/dist/components/documentation/AnchorLinkHeader.cjs +16 -5
  176. package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
  177. package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
  178. package/dist/components/documentation/AnchorLinkHeader.js +10 -10
  179. package/dist/components/documentation/DocsBodyParagraph.cjs +16 -5
  180. package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
  181. package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
  182. package/dist/components/documentation/DocsBodyParagraph.js +8 -8
  183. package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -5
  184. package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
  185. package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
  186. package/dist/components/documentation/DocsBodyStrongParagraph.js +8 -8
  187. package/dist/components/documentation/DocsHeadline.cjs +16 -5
  188. package/dist/components/documentation/DocsHeadline.d.cts +1 -1
  189. package/dist/components/documentation/DocsHeadline.d.ts +1 -1
  190. package/dist/components/documentation/DocsHeadline.js +9 -9
  191. package/dist/components/documentation/Video.cjs +3 -1
  192. package/dist/components/documentation/Video.js +3 -3
  193. package/dist/components/documentation/index.cjs +16 -5
  194. package/dist/components/documentation/index.d.cts +1 -1
  195. package/dist/components/documentation/index.d.ts +1 -1
  196. package/dist/components/documentation/index.js +10 -10
  197. package/dist/components/index.cjs +8343 -8176
  198. package/dist/components/index.d.cts +5 -5
  199. package/dist/components/index.d.ts +5 -5
  200. package/dist/components/index.js +71 -72
  201. package/dist/components/typography/Article.cjs +103 -30
  202. package/dist/components/typography/Article.js +16 -16
  203. package/dist/components/typography/Body.cjs +16 -5
  204. package/dist/components/typography/Body.d.cts +2 -2
  205. package/dist/components/typography/Body.d.ts +2 -2
  206. package/dist/components/typography/Body.js +8 -8
  207. package/dist/components/typography/BodyStrong.cjs +16 -5
  208. package/dist/components/typography/BodyStrong.d.cts +2 -2
  209. package/dist/components/typography/BodyStrong.d.ts +2 -2
  210. package/dist/components/typography/BodyStrong.js +8 -8
  211. package/dist/components/typography/Code.cjs +16 -5
  212. package/dist/components/typography/Code.d.cts +2 -2
  213. package/dist/components/typography/Code.d.ts +2 -2
  214. package/dist/components/typography/Code.js +8 -8
  215. package/dist/components/typography/Display.cjs +16 -5
  216. package/dist/components/typography/Display.d.cts +2 -2
  217. package/dist/components/typography/Display.d.ts +2 -2
  218. package/dist/components/typography/Display.js +8 -8
  219. package/dist/components/typography/Headline.cjs +16 -5
  220. package/dist/components/typography/Headline.d.cts +2 -2
  221. package/dist/components/typography/Headline.d.ts +2 -2
  222. package/dist/components/typography/Headline.js +8 -8
  223. package/dist/components/typography/Label.cjs +16 -5
  224. package/dist/components/typography/Label.d.cts +2 -2
  225. package/dist/components/typography/Label.d.ts +2 -2
  226. package/dist/components/typography/Label.js +8 -8
  227. package/dist/components/typography/LabelModerate.cjs +16 -5
  228. package/dist/components/typography/LabelModerate.d.cts +2 -2
  229. package/dist/components/typography/LabelModerate.d.ts +2 -2
  230. package/dist/components/typography/LabelModerate.js +8 -8
  231. package/dist/components/typography/LabelStrong.cjs +16 -5
  232. package/dist/components/typography/LabelStrong.d.cts +2 -2
  233. package/dist/components/typography/LabelStrong.d.ts +2 -2
  234. package/dist/components/typography/LabelStrong.js +8 -8
  235. package/dist/components/typography/Overline.cjs +16 -5
  236. package/dist/components/typography/Overline.d.cts +2 -2
  237. package/dist/components/typography/Overline.d.ts +2 -2
  238. package/dist/components/typography/Overline.js +8 -8
  239. package/dist/components/typography/Title.cjs +16 -5
  240. package/dist/components/typography/Title.d.cts +3 -3
  241. package/dist/components/typography/Title.d.ts +3 -3
  242. package/dist/components/typography/Title.js +8 -8
  243. package/dist/components/typography/index.cjs +103 -30
  244. package/dist/components/typography/index.d.cts +1 -1
  245. package/dist/components/typography/index.d.ts +1 -1
  246. package/dist/components/typography/index.js +24 -25
  247. package/dist/components/typography/renderTypography.cjs +32 -8
  248. package/dist/components/typography/renderTypography.d.cts +20 -20
  249. package/dist/components/typography/renderTypography.d.ts +20 -20
  250. package/dist/components/typography/renderTypography.js +18 -18
  251. package/dist/router.cjs +3 -1
  252. package/dist/router.js +2 -2
  253. package/dist/styles/buttons.d.cts +1 -1
  254. package/dist/styles/buttons.d.ts +1 -1
  255. package/dist/styles/colors.cjs +3 -1
  256. package/dist/styles/colors.d.cts +3 -1
  257. package/dist/styles/colors.d.ts +3 -1
  258. package/dist/styles/colors.js +1 -1
  259. package/dist/styles/common.cjs +16 -5
  260. package/dist/styles/common.d.cts +1 -1
  261. package/dist/styles/common.d.ts +1 -1
  262. package/dist/styles/common.js +3 -3
  263. package/dist/styles/fields.cjs +16 -5
  264. package/dist/styles/fields.d.cts +1 -1
  265. package/dist/styles/fields.d.ts +1 -1
  266. package/dist/styles/fields.js +5 -5
  267. package/dist/styles/global.cjs +16 -5
  268. package/dist/styles/global.d.cts +1 -1
  269. package/dist/styles/global.d.ts +1 -1
  270. package/dist/styles/global.js +4 -4
  271. package/dist/styles/themes.cjs +16 -5
  272. package/dist/styles/themes.d.cts +1 -1
  273. package/dist/styles/themes.d.ts +1 -1
  274. package/dist/styles/themes.js +2 -2
  275. package/dist/styles/tokens/spacing.cjs +60 -21
  276. package/dist/styles/tokens/spacing.d.cts +40 -20
  277. package/dist/styles/tokens/spacing.d.ts +40 -20
  278. package/dist/styles/tokens/spacing.js +1 -1
  279. package/dist/styles/type.cjs +3 -1
  280. package/dist/styles/type.d.cts +1 -1
  281. package/dist/styles/type.d.ts +1 -1
  282. package/dist/styles/type.js +5 -5
  283. package/dist/styles/typography.cjs +16 -5
  284. package/dist/styles/typography.d.cts +1 -1
  285. package/dist/styles/typography.d.ts +1 -1
  286. package/dist/styles/typography.js +3 -3
  287. package/dist/styles/utils.cjs +3 -1
  288. package/dist/styles/utils.js +4 -4
  289. package/dist/{buttons-36cdd0fe.d.ts → themes-37e92940.d.ts} +91 -74
  290. package/dist/{buttons-35280bfe.d.ts → themes-832e46b2.d.ts} +91 -74
  291. package/dist/utils/toNonTypographicReactNodes.cjs +16 -5
  292. package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
  293. package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
  294. package/dist/utils/toNonTypographicReactNodes.js +6 -6
  295. package/dist/utils/toReactNodes.cjs +57 -22
  296. package/dist/utils/toReactNodes.d.cts +13 -9
  297. package/dist/utils/toReactNodes.d.ts +13 -9
  298. package/dist/utils/toReactNodes.js +21 -19
  299. package/package.json +2 -2
  300. package/dist/chunk-3XSQV5U4.js +0 -26
  301. package/dist/chunk-B2VYAIYR.js +0 -0
  302. package/dist/chunk-SEZEDINC.js +0 -35
@@ -84,7 +84,7 @@ __export(Modal_exports, {
84
84
  });
85
85
  module.exports = __toCommonJS(Modal_exports);
86
86
  var import_styled20 = __toESM(require("@emotion/styled"), 1);
87
- var import_react31 = __toESM(require("react"), 1);
87
+ var import_react32 = __toESM(require("react"), 1);
88
88
  var import_react_dom2 = __toESM(require("react-dom"), 1);
89
89
 
90
90
  // src/hooks/useLiveRef.tsx
@@ -231,7 +231,6 @@ var neutral = {
231
231
  gray30: "#4D4D4D",
232
232
  gray40: "#666666",
233
233
  gray50: "#808080",
234
- gray57: "#8B8E98",
235
234
  gray60: "#999999",
236
235
  gray70: "#B3B3B3",
237
236
  gray80: "#CCCCCC",
@@ -255,10 +254,13 @@ var baseColors = __spreadProps(__spreadValues({}, neutral), {
255
254
  blue37: "#21529c",
256
255
  blue58: "#28BFFF",
257
256
  // less than 50% saturated blue
257
+ grayBlue5: "#0c0d0f",
258
258
  grayBlue9: "#16171A",
259
+ grayBlue18: "#21283a",
259
260
  grayBlue32: "#4F5156",
260
261
  grayBlue43: "#686A72",
261
262
  grayBlue45: "#676F80",
263
+ grayBlue57: "#8B8E98",
262
264
  grayBlue67: "#9BA7B9",
263
265
  grayBlue80: "#C0C9D6",
264
266
  grayBlue88: "#DEDFE4",
@@ -3631,8 +3633,7 @@ var baseThemeColors = {
3631
3633
  success: colors.success,
3632
3634
  text: colors.black,
3633
3635
  vlcNeutral: colors.gray95,
3634
- warning: colors.warning,
3635
- inputBackground: colors.white
3636
+ warning: colors.warning
3636
3637
  };
3637
3638
  var themeOrColorKeyValues = [
3638
3639
  ...Object.keys(baseThemeColors),
@@ -3644,6 +3645,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
3644
3645
  typography: getTypography("Lightspark" /* Lightspark */),
3645
3646
  hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
3646
3647
  buttons: defaultButtonsTheme,
3648
+ badge: {
3649
+ bg: "c05Neutral"
3650
+ },
3651
+ inputBackground: colors.white,
3647
3652
  loading: "LoadingSpinner"
3648
3653
  });
3649
3654
  var lightBaseTheme = baseTheme;
@@ -3681,7 +3686,10 @@ var darkBaseTheme = {
3681
3686
  warning: colors.warning,
3682
3687
  buttons: defaultButtonsTheme,
3683
3688
  loading: "LoadingSpinner",
3684
- inputBackground: colors.black
3689
+ inputBackground: colors.black,
3690
+ badge: {
3691
+ bg: "c15Neutral"
3692
+ }
3685
3693
  };
3686
3694
  var lightTheme = extend(lightBaseTheme, {
3687
3695
  header: extendBase(lightBaseTheme, {
@@ -3797,7 +3805,10 @@ var bridgeBaseSettings = {
3797
3805
  defaultBorderWidth: 1
3798
3806
  }
3799
3807
  }
3800
- })
3808
+ }),
3809
+ badge: {
3810
+ bg: "grayBlue94"
3811
+ }
3801
3812
  };
3802
3813
  var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
3803
3814
  type: "bridgeLight" /* BridgeLight */,
@@ -3989,6 +4000,68 @@ var overlaySurface = ({
3989
4000
  )({ theme })}
3990
4001
  `;
3991
4002
 
4003
+ // src/styles/tokens/spacing.tsx
4004
+ var n = {
4005
+ "4xs": 2,
4006
+ "3xs": 4,
4007
+ "2xs": 6,
4008
+ xs: 8,
4009
+ sm: 12,
4010
+ md: 16,
4011
+ lg: 24,
4012
+ xl: 32,
4013
+ "2xl": 40,
4014
+ "3xl": 48,
4015
+ "4xl": 56,
4016
+ "5xl": 64,
4017
+ "6xl": 72,
4018
+ "7xl": 80,
4019
+ "8xl": 96,
4020
+ "9xl": 112,
4021
+ "10xl": 128,
4022
+ "11xl": 160
4023
+ };
4024
+ var Spacing = {
4025
+ "4xs": n["4xs"],
4026
+ "3xs": n["3xs"],
4027
+ "2xs": n["2xs"],
4028
+ xs: n.xs,
4029
+ sm: n.sm,
4030
+ md: n.md,
4031
+ lg: n.lg,
4032
+ xl: n.xl,
4033
+ "2xl": n["2xl"],
4034
+ "3xl": n["3xl"],
4035
+ "4xl": n["4xl"],
4036
+ "5xl": n["5xl"],
4037
+ "6xl": n["6xl"],
4038
+ "7xl": n["7xl"],
4039
+ "8xl": n["8xl"],
4040
+ "9xl": n["9xl"],
4041
+ "10xl": n["10xl"],
4042
+ "11xl": n["11xl"],
4043
+ px: {
4044
+ "4xs": `${n["4xs"]}px`,
4045
+ "3xs": `${n["3xs"]}px`,
4046
+ "2xs": `${n["2xs"]}px`,
4047
+ xs: `${n.xs}px`,
4048
+ sm: `${n.sm}px`,
4049
+ md: `${n.md}px`,
4050
+ lg: `${n.lg}px`,
4051
+ xl: `${n.xl}px`,
4052
+ "2xl": `${n["2xl"]}px`,
4053
+ "3xl": `${n["3xl"]}px`,
4054
+ "4xl": `${n["4xl"]}px`,
4055
+ "5xl": `${n["5xl"]}px`,
4056
+ "6xl": `${n["6xl"]}px`,
4057
+ "7xl": `${n["7xl"]}px`,
4058
+ "8xl": `${n["8xl"]}px`,
4059
+ "9xl": `${n["9xl"]}px`,
4060
+ "10xl": `${n["10xl"]}px`,
4061
+ "11xl": `${n["11xl"]}px`
4062
+ }
4063
+ };
4064
+
3992
4065
  // src/styles/utils.tsx
3993
4066
  var import_react6 = require("@emotion/react");
3994
4067
  function pxToRems(rems, asNum = false) {
@@ -4082,7 +4155,11 @@ function select(component) {
4082
4155
  }
4083
4156
 
4084
4157
  // src/utils/toReactNodes.tsx
4085
- var import_react23 = require("react");
4158
+ var import_lodash_es4 = require("lodash-es");
4159
+ var import_react24 = require("react");
4160
+
4161
+ // src/components/typography/renderTypography.tsx
4162
+ var import_react23 = __toESM(require("react"), 1);
4086
4163
 
4087
4164
  // src/components/typography/Body.tsx
4088
4165
  var import_styled3 = __toESM(require("@emotion/styled"), 1);
@@ -8425,7 +8502,6 @@ var StyledTitle = import_styled12.default.span`
8425
8502
  `;
8426
8503
 
8427
8504
  // src/components/typography/renderTypography.tsx
8428
- var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
8429
8505
  var typographyMap = {
8430
8506
  Display,
8431
8507
  Headline,
@@ -8437,46 +8513,46 @@ var typographyMap = {
8437
8513
  "Label Strong": LabelStrong,
8438
8514
  Overline,
8439
8515
  Code: Code2,
8440
- "Code Strong": () => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { children: "Unimplemented" })
8516
+ "Code Strong": Code2
8441
8517
  };
8442
8518
  var renderTypography = (type, props) => {
8443
8519
  const TypographyComponent = typographyMap[type];
8444
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(TypographyComponent, __spreadValues({}, props));
8520
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
8521
+ return import_react23.default.createElement(TypographyComponent, rest, children);
8445
8522
  };
8446
8523
 
8447
8524
  // src/utils/toReactNodes.tsx
8448
- var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
8525
+ var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
8449
8526
  function toReactNodes(toReactNodesArg) {
8450
8527
  const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
8451
8528
  const reactNodes = toReactNodesArray.map((node, i) => {
8452
8529
  let content;
8453
8530
  if (!node) {
8454
8531
  return null;
8455
- } else if (typeof node !== "string" && "typography" in node && node.typography.type && node.typography.props) {
8456
- content = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react23.Fragment, { children: renderTypography(
8532
+ } else if (typeof node !== "string" && "typography" in node && node.typography.type) {
8533
+ const props = node.typography.props || {};
8534
+ content = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react24.Fragment, { children: renderTypography(
8457
8535
  node.typography.type,
8458
- Object.assign(node.typography.props, {
8459
- content: node
8460
- })
8536
+ Object.assign(props, { content: node })
8461
8537
  ) }, `typography-${i}-${node.text.substr(0, 10)}`);
8462
8538
  } else {
8463
8539
  content = toNonTypographicReactNodes(node);
8464
8540
  }
8465
8541
  return content || null;
8466
8542
  });
8467
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react23.Fragment, { children: reactNodes });
8543
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react24.Fragment, { children: reactNodes });
8468
8544
  }
8469
8545
 
8470
8546
  // src/components/Button.tsx
8471
- var import_react27 = require("@emotion/react");
8547
+ var import_react28 = require("@emotion/react");
8472
8548
  var import_styled15 = __toESM(require("@emotion/styled"), 1);
8473
- var import_lodash_es4 = require("lodash-es");
8474
- var import_react28 = require("react");
8549
+ var import_lodash_es5 = require("lodash-es");
8550
+ var import_react29 = require("react");
8475
8551
 
8476
8552
  // src/components/Loading.tsx
8477
- var import_react24 = require("@emotion/react");
8553
+ var import_react25 = require("@emotion/react");
8478
8554
  var import_styled13 = __toESM(require("@emotion/styled"), 1);
8479
- var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
8555
+ var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
8480
8556
  var defaultProps = {
8481
8557
  size: 60,
8482
8558
  center: true,
@@ -8487,8 +8563,8 @@ function Loading({
8487
8563
  size: size2 = defaultProps.size,
8488
8564
  ml = defaultProps.ml
8489
8565
  }) {
8490
- const theme = (0, import_react24.useTheme)();
8491
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(LoadingWrapper, { center, ml, children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Rotate, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: theme.loading, width: size2 }) }) });
8566
+ const theme = (0, import_react25.useTheme)();
8567
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(LoadingWrapper, { center, ml, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Rotate, { children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { name: theme.loading, width: size2 }) }) });
8492
8568
  }
8493
8569
  Loading.defaultProps = defaultProps;
8494
8570
  var LoadingWrapper = import_styled13.default.div`
@@ -8527,15 +8603,15 @@ var Rotate = import_styled13.default.div`
8527
8603
 
8528
8604
  // src/components/Tooltip.tsx
8529
8605
  var import_css = require("@emotion/css");
8530
- var import_react25 = require("@emotion/react");
8531
- var import_react26 = __toESM(require("react"), 1);
8606
+ var import_react26 = require("@emotion/react");
8607
+ var import_react27 = __toESM(require("react"), 1);
8532
8608
  var import_react_dom = __toESM(require("react-dom"), 1);
8533
8609
  var import_react_tooltip = require("react-tooltip");
8534
- var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
8610
+ var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
8535
8611
  function Tooltip(props) {
8536
- const nodeRef = (0, import_react26.useRef)(null);
8537
- const [nodeReady, setNodeReady] = import_react26.default.useState(false);
8538
- (0, import_react26.useEffect)(() => {
8612
+ const nodeRef = (0, import_react27.useRef)(null);
8613
+ const [nodeReady, setNodeReady] = import_react27.default.useState(false);
8614
+ (0, import_react27.useEffect)(() => {
8539
8615
  if (!nodeRef.current) {
8540
8616
  nodeRef.current = document.createElement("div");
8541
8617
  document.body.appendChild(nodeRef.current);
@@ -8548,9 +8624,9 @@ function Tooltip(props) {
8548
8624
  }
8549
8625
  };
8550
8626
  }, []);
8551
- const theme = (0, import_react25.useTheme)();
8627
+ const theme = (0, import_react26.useTheme)();
8552
8628
  return nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
8553
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8629
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8554
8630
  import_react_tooltip.Tooltip,
8555
8631
  __spreadProps(__spreadValues({}, props), {
8556
8632
  id: props.id || "",
@@ -8595,7 +8671,7 @@ var UnstyledButton = import_styled14.default.button`
8595
8671
  `;
8596
8672
 
8597
8673
  // src/components/Button.tsx
8598
- var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
8674
+ var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
8599
8675
  var roundPaddingsX = {
8600
8676
  [TokenSize.ExtraSmall]: 10,
8601
8677
  [TokenSize.Small]: 10,
@@ -8700,7 +8776,7 @@ function resolveProps(props, theme) {
8700
8776
  });
8701
8777
  }
8702
8778
  function Button(props) {
8703
- const theme = (0, import_react27.useTheme)();
8779
+ const theme = (0, import_react28.useTheme)();
8704
8780
  const {
8705
8781
  kind,
8706
8782
  typography,
@@ -8732,34 +8808,34 @@ function Button(props) {
8732
8808
  tooltipText,
8733
8809
  borderRadius
8734
8810
  } = resolveProps(props, theme);
8735
- const tooltipId = (0, import_react28.useRef)((0, import_lodash_es4.uniqueId)());
8811
+ const tooltipId = (0, import_react29.useRef)((0, import_lodash_es5.uniqueId)());
8736
8812
  const iconSize = size2 === "ExtraSmall" ? 12 : 16;
8737
8813
  let currentIcon = null;
8738
8814
  if (loading) {
8739
- currentIcon = /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8815
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8740
8816
  ButtonIcon,
8741
8817
  {
8742
8818
  iconSide,
8743
8819
  text,
8744
8820
  typography,
8745
8821
  kind,
8746
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Loading, { size: iconSize, center: false })
8822
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Loading, { size: iconSize, center: false })
8747
8823
  }
8748
8824
  );
8749
8825
  } else if (icon) {
8750
- currentIcon = /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8826
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8751
8827
  ButtonIcon,
8752
8828
  {
8753
8829
  iconSide,
8754
8830
  text,
8755
8831
  typography,
8756
8832
  kind,
8757
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8833
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8758
8834
  }
8759
8835
  );
8760
8836
  }
8761
- const content = /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_react28.Fragment, { children: [
8762
- /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
8837
+ const content = /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_react29.Fragment, { children: [
8838
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
8763
8839
  "div",
8764
8840
  __spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
8765
8841
  css: {
@@ -8770,7 +8846,7 @@ function Button(props) {
8770
8846
  },
8771
8847
  children: [
8772
8848
  iconSide === "left" && currentIcon,
8773
- text && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8849
+ text && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8774
8850
  "div",
8775
8851
  {
8776
8852
  css: {
@@ -8788,7 +8864,7 @@ function Button(props) {
8788
8864
  ]
8789
8865
  })
8790
8866
  ),
8791
- tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
8867
+ tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
8792
8868
  ] });
8793
8869
  const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
8794
8870
  const commonProps = {
@@ -8818,9 +8894,9 @@ function Button(props) {
8818
8894
  zIndex
8819
8895
  };
8820
8896
  if (to) {
8821
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
8897
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
8822
8898
  }
8823
- return href ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8899
+ return href ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8824
8900
  ButtonHrefLink,
8825
8901
  __spreadProps(__spreadValues({}, commonProps), {
8826
8902
  href,
@@ -8828,7 +8904,7 @@ function Button(props) {
8828
8904
  target: "_blank",
8829
8905
  children: content
8830
8906
  })
8831
- ) : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
8907
+ ) : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
8832
8908
  }
8833
8909
  var buttonStyle = ({
8834
8910
  paddingY,
@@ -8848,7 +8924,7 @@ var buttonStyle = ({
8848
8924
  hoverBackgroundColor,
8849
8925
  hoverBorderColor
8850
8926
  }) => {
8851
- return import_react27.css`
8927
+ return import_react28.css`
8852
8928
  display: inline-flex;
8853
8929
  opacity: ${disabled && !isLoading ? 0.2 : 1};
8854
8930
  ${disabled ? "pointer-events: none;" : ""}
@@ -8916,15 +8992,15 @@ var ButtonSelector = (prepend = "", append = "") => `${prepend}*:is(${select(Sty
8916
8992
 
8917
8993
  // src/components/Drawer.tsx
8918
8994
  var import_styled16 = __toESM(require("@emotion/styled"), 1);
8919
- var import_react29 = require("react");
8920
- var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
8995
+ var import_react30 = require("react");
8996
+ var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
8921
8997
  var Drawer = (props) => {
8922
- const [isOpen, setIsOpen] = (0, import_react29.useState)(true);
8923
- const [lastY, setLastY] = (0, import_react29.useState)(null);
8924
- const [totalDeltaY, setTotalDeltaY] = (0, import_react29.useState)(0);
8925
- const [fractionVisible, setFractionVisible] = (0, import_react29.useState)(1);
8926
- const [grabbing, setGrabbing] = (0, import_react29.useState)(false);
8927
- const drawerContainerRef = (0, import_react29.useRef)(null);
8998
+ const [isOpen, setIsOpen] = (0, import_react30.useState)(true);
8999
+ const [lastY, setLastY] = (0, import_react30.useState)(null);
9000
+ const [totalDeltaY, setTotalDeltaY] = (0, import_react30.useState)(0);
9001
+ const [fractionVisible, setFractionVisible] = (0, import_react30.useState)(1);
9002
+ const [grabbing, setGrabbing] = (0, import_react30.useState)(false);
9003
+ const drawerContainerRef = (0, import_react30.useRef)(null);
8928
9004
  const handleClose = () => {
8929
9005
  if (props.nonDismissable) {
8930
9006
  return;
@@ -8973,8 +9049,8 @@ var Drawer = (props) => {
8973
9049
  setTotalDeltaY(0);
8974
9050
  setLastY(null);
8975
9051
  };
8976
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_jsx_runtime133.Fragment, { children: [
8977
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9052
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
9053
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8978
9054
  Background,
8979
9055
  {
8980
9056
  isOpen,
@@ -8982,7 +9058,7 @@ var Drawer = (props) => {
8982
9058
  onClick: handleClose
8983
9059
  }
8984
9060
  ),
8985
- /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
9061
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
8986
9062
  DrawerContainer,
8987
9063
  {
8988
9064
  isOpen,
@@ -8993,8 +9069,8 @@ var Drawer = (props) => {
8993
9069
  grabbing,
8994
9070
  ref: drawerContainerRef,
8995
9071
  children: [
8996
- props.grabber && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(GrabberBar, {}) }),
8997
- props.handleBack && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(BackButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9072
+ props.grabber && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(GrabberBar, {}) }),
9073
+ props.handleBack && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(BackButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8998
9074
  Button,
8999
9075
  {
9000
9076
  onClick: props.handleBack,
@@ -9003,7 +9079,7 @@ var Drawer = (props) => {
9003
9079
  size: "Small"
9004
9080
  }
9005
9081
  ) }),
9006
- props.closeButton && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(CloseButton, { onClick: handleClose, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Icon, { name: "Close", width: 12 }) }) }),
9082
+ props.closeButton && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(CloseButton, { onClick: handleClose, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: "Close", width: 12 }) }) }),
9007
9083
  props.children
9008
9084
  ]
9009
9085
  }
@@ -9043,10 +9119,11 @@ var DrawerContainer = import_styled16.default.div`
9043
9119
  bottom: 0;
9044
9120
  transform: translateY(${(props) => `${props.totalDeltaY}px`});
9045
9121
  z-index: ${z.modalContainer};
9046
- border-radius: ${"24px" /* lg */} ${"24px" /* lg */} 0 0;
9122
+ border-radius: ${Spacing.px.lg} ${Spacing.px.lg} 0 0;
9047
9123
  display: flex;
9048
9124
  flex-direction: column;
9049
- padding: ${"72px" /* 6xl */} ${"32px" /* xl */} ${"40px" /* 2xl */} ${"32px" /* xl */};
9125
+ padding: ${Spacing.px["6xl"]} ${Spacing.px.xl} ${Spacing.px["2xl"]}
9126
+ ${Spacing.px.xl};
9050
9127
  overflow-y: scroll;
9051
9128
 
9052
9129
  // Only smooth transition when not grabbing, otherwise dragging will feel very laggy
@@ -9079,7 +9156,7 @@ var Grabber = import_styled16.default.div`
9079
9156
  top: 0;
9080
9157
  left: 0;
9081
9158
  width: 100%;
9082
- height: ${"24px" /* lg */};
9159
+ height: ${Spacing.px.lg};
9083
9160
  display: flex;
9084
9161
  flex-direction: row;
9085
9162
  justify-content: center;
@@ -9093,7 +9170,7 @@ var CloseButtonContainer = import_styled16.default.div`
9093
9170
  right: 20px;
9094
9171
  border-radius: 50%;
9095
9172
  background-color: ${colors.grayBlue94};
9096
- padding: ${"8px" /* xs */};
9173
+ padding: ${Spacing.px.xs};
9097
9174
  height: 30px;
9098
9175
  width: 30px;
9099
9176
  display: flex;
@@ -9114,7 +9191,7 @@ var BackButtonContainer = import_styled16.default.div`
9114
9191
  top: 20px;
9115
9192
  left: 20px;
9116
9193
  border-radius: 50%;
9117
- padding: ${"8px" /* xs */};
9194
+ padding: ${Spacing.px.xs};
9118
9195
  height: 30px;
9119
9196
  width: 30px;
9120
9197
  display: flex;
@@ -9128,13 +9205,13 @@ var GrabberBar = import_styled16.default.div`
9128
9205
  `;
9129
9206
 
9130
9207
  // src/components/IconWithCircleBackground.tsx
9131
- var import_styled19 = __toESM(require("@emotion/styled"), 1);
9208
+ var import_styled18 = __toESM(require("@emotion/styled"), 1);
9132
9209
 
9133
9210
  // src/components/Flex.tsx
9134
9211
  var import_styled17 = __toESM(require("@emotion/styled"), 1);
9135
- var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
9212
+ var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
9136
9213
  function Flex({ center = false, children, as = "div" }) {
9137
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(StyledFlex, { center, as, children });
9214
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(StyledFlex, { center, as, children });
9138
9215
  }
9139
9216
  var StyledFlex = import_styled17.default.div`
9140
9217
  display: flex;
@@ -9144,9 +9221,22 @@ var StyledFlex = import_styled17.default.div`
9144
9221
  `}
9145
9222
  `;
9146
9223
 
9224
+ // src/components/IconWithCircleBackground.tsx
9225
+ var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
9226
+ function IconWithCircleBackground({
9227
+ iconName = "WarningSign"
9228
+ }) {
9229
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Flex, { center: true, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(StyledIconWithCircleBackground, { children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Icon, { name: iconName, width: 40, color: "grayBlue9" }) }) });
9230
+ }
9231
+ var StyledIconWithCircleBackground = import_styled18.default.div`
9232
+ background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
9233
+ border-radius: 50%;
9234
+ padding: 20px;
9235
+ `;
9236
+
9147
9237
  // src/components/ProgressBar.tsx
9148
- var import_styled18 = __toESM(require("@emotion/styled"), 1);
9149
- var import_react30 = require("react");
9238
+ var import_styled19 = __toESM(require("@emotion/styled"), 1);
9239
+ var import_react31 = require("react");
9150
9240
  var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
9151
9241
  var defaultProps2 = {
9152
9242
  isSm: false,
@@ -9158,8 +9248,8 @@ function ProgressBar({
9158
9248
  isSm = defaultProps2.isSm,
9159
9249
  stepDuration = defaultProps2.stepDuration
9160
9250
  }) {
9161
- const [percentage, setPercentage] = (0, import_react30.useState)(5);
9162
- (0, import_react30.useEffect)(() => {
9251
+ const [percentage, setPercentage] = (0, import_react31.useState)(5);
9252
+ (0, import_react31.useEffect)(() => {
9163
9253
  if (progressPercentage !== void 0) {
9164
9254
  setPercentage(progressPercentage);
9165
9255
  } else {
@@ -9179,7 +9269,7 @@ function ProgressBar({
9179
9269
  ) }) });
9180
9270
  }
9181
9271
  ProgressBar.defaultProps = defaultProps2;
9182
- var ProgressBarContainer = import_styled18.default.div`
9272
+ var ProgressBarContainer = import_styled19.default.div`
9183
9273
  ${standardBorderRadius(16)}
9184
9274
  background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
9185
9275
  box-sizing: border-box;
@@ -9189,7 +9279,7 @@ var ProgressBarContainer = import_styled18.default.div`
9189
9279
  width: 100%;
9190
9280
  position: relative;
9191
9281
  `;
9192
- var BarBg = import_styled18.default.div`
9282
+ var BarBg = import_styled19.default.div`
9193
9283
  ${standardBorderRadius(16)}
9194
9284
  width: ${({ percentage }) => 100 / percentage * 100}%;
9195
9285
  height: 100%;
@@ -9203,7 +9293,7 @@ var BarBg = import_styled18.default.div`
9203
9293
  #3f2e7e 115.32%
9204
9294
  )`};
9205
9295
  `;
9206
- var Bar = import_styled18.default.div`
9296
+ var Bar = import_styled19.default.div`
9207
9297
  ${standardBorderRadius(16)}
9208
9298
  overflow: hidden;
9209
9299
  box-sizing: border-box;
@@ -9214,21 +9304,8 @@ var Bar = import_styled18.default.div`
9214
9304
  cubic-bezier(0.16, 0.3, 0.18, 1);
9215
9305
  `;
9216
9306
 
9217
- // src/components/IconWithCircleBackground.tsx
9218
- var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
9219
- function IconWithCircleBackground({
9220
- iconName = "WarningSign"
9221
- }) {
9222
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Flex, { center: true, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(StyledIconWithCircleBackground, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: iconName, width: 40, color: "grayBlue9" }) }) });
9223
- }
9224
- var StyledIconWithCircleBackground = import_styled19.default.div`
9225
- background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
9226
- border-radius: 50%;
9227
- padding: 20px;
9228
- `;
9229
-
9230
9307
  // src/components/Modal.tsx
9231
- var import_jsx_runtime137 = require("@emotion/react/jsx-runtime");
9308
+ var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
9232
9309
  function isSubmitLinkWithHref(submitLink) {
9233
9310
  return Boolean(submitLink && "href" in submitLink);
9234
9311
  }
@@ -9260,23 +9337,23 @@ function Modal({
9260
9337
  extraActions,
9261
9338
  handleBack
9262
9339
  }) {
9263
- const visibleChangedRef = (0, import_react31.useRef)(false);
9264
- const nodeRef = (0, import_react31.useRef)(null);
9340
+ const visibleChangedRef = (0, import_react32.useRef)(false);
9341
+ const nodeRef = (0, import_react32.useRef)(null);
9265
9342
  const [defaultFirstFocusRef, defaultFirstFocusRefCb] = useLiveRef();
9266
9343
  const ref = firstFocusRef || defaultFirstFocusRef;
9267
- const [nodeReady, setNodeReady] = import_react31.default.useState(false);
9268
- const overlayRef = (0, import_react31.useRef)(null);
9269
- const prevFocusedElement = (0, import_react31.useRef)();
9270
- const modalContainerRef = (0, import_react31.useRef)(null);
9344
+ const [nodeReady, setNodeReady] = import_react32.default.useState(false);
9345
+ const overlayRef = (0, import_react32.useRef)(null);
9346
+ const prevFocusedElement = (0, import_react32.useRef)();
9347
+ const modalContainerRef = (0, import_react32.useRef)(null);
9271
9348
  const bp2 = useBreakpoints();
9272
9349
  const isSm = bp2.current("sm" /* sm */);
9273
- (0, import_react31.useEffect)(() => {
9350
+ (0, import_react32.useEffect)(() => {
9274
9351
  if (visible !== visibleChangedRef.current) {
9275
9352
  visibleChangedRef.current = visible;
9276
9353
  }
9277
9354
  }, [visible]);
9278
9355
  const visibleChanged = visible !== visibleChangedRef.current;
9279
- (0, import_react31.useEffect)(() => {
9356
+ (0, import_react32.useEffect)(() => {
9280
9357
  prevFocusedElement.current = document.activeElement;
9281
9358
  if (!nodeRef.current) {
9282
9359
  nodeRef.current = document.createElement("div");
@@ -9290,7 +9367,7 @@ function Modal({
9290
9367
  }
9291
9368
  };
9292
9369
  }, []);
9293
- (0, import_react31.useEffect)(() => {
9370
+ (0, import_react32.useEffect)(() => {
9294
9371
  const handleOutsideClick = (event) => {
9295
9372
  if (visible && overlayRef.current && event.target && overlayRef.current.contains(event.target) && !nonDismissable) {
9296
9373
  onClose();
@@ -9327,7 +9404,7 @@ function Modal({
9327
9404
  }
9328
9405
  };
9329
9406
  }, [onClose, visible, nonDismissable]);
9330
- (0, import_react31.useLayoutEffect)(() => {
9407
+ (0, import_react32.useLayoutEffect)(() => {
9331
9408
  if (visible) {
9332
9409
  if (visibleChanged) {
9333
9410
  prevFocusedElement.current = document.activeElement;
@@ -9358,12 +9435,12 @@ function Modal({
9358
9435
  }
9359
9436
  const linkIsHref = isSubmitLinkWithHref(submitLink);
9360
9437
  const linkIsRoute = !linkIsHref && submitLink;
9361
- const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_jsx_runtime137.Fragment, { children: [
9438
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_jsx_runtime136.Fragment, { children: [
9362
9439
  extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((_a, i) => {
9363
9440
  var _b = _a, { placement, text } = _b, rest = __objRest(_b, ["placement", "text"]);
9364
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9441
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9365
9442
  }),
9366
- !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9443
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9367
9444
  Button,
9368
9445
  {
9369
9446
  disabled: cancelDisabled,
@@ -9371,7 +9448,7 @@ function Modal({
9371
9448
  text: cancelText
9372
9449
  }
9373
9450
  ),
9374
- (onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9451
+ (onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9375
9452
  Button,
9376
9453
  {
9377
9454
  kind: "primary",
@@ -9385,16 +9462,16 @@ function Modal({
9385
9462
  onClick: submitLink ? onSubmit : void 0
9386
9463
  }
9387
9464
  ),
9388
- isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, { onClick: onClose, text: cancelText }),
9465
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, { onClick: onClose, text: cancelText }),
9389
9466
  extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((_c, i) => {
9390
9467
  var _d = _c, { placement, text } = _d, rest = __objRest(_d, ["placement", "text"]);
9391
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9468
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9392
9469
  })
9393
9470
  ] });
9394
9471
  let titleContent = null;
9395
9472
  if (title) {
9396
9473
  if (typeof title === "string") {
9397
- titleContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9474
+ titleContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9398
9475
  } else {
9399
9476
  titleContent = toReactNodes(title);
9400
9477
  }
@@ -9402,17 +9479,17 @@ function Modal({
9402
9479
  let descriptionContent = null;
9403
9480
  if (description) {
9404
9481
  if (typeof description === "string") {
9405
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Body, { size: "ExtraSmall", content: description }) });
9482
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Body, { size: "ExtraSmall", content: description }) });
9406
9483
  } else {
9407
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: toReactNodes(description) });
9484
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Description, { children: toReactNodes(description) });
9408
9485
  }
9409
9486
  }
9410
9487
  let topContentNode = null;
9411
9488
  if (topContent) {
9412
- topContentNode = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { css: { marginBottom: "32px" /* xl */ }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IconWithCircleBackground, __spreadValues({}, topContent)) });
9489
+ topContentNode = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { css: { marginBottom: Spacing.px.xl }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(IconWithCircleBackground, __spreadValues({}, topContent)) });
9413
9490
  }
9414
- const modalContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_react31.Fragment, { children: [
9415
- progressBar ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9491
+ const modalContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_react32.Fragment, { children: [
9492
+ progressBar ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9416
9493
  ProgressBar,
9417
9494
  {
9418
9495
  progressPercentage: progressBar.progressPercentage,
@@ -9423,11 +9500,11 @@ function Modal({
9423
9500
  titleContent,
9424
9501
  descriptionContent,
9425
9502
  children,
9426
- onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalButtonColumn, { children: buttonContent }) : null
9503
+ onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalButtonColumn, { children: buttonContent }) : null
9427
9504
  ] });
9428
9505
  let content;
9429
9506
  if (smKind === "drawer" && isSm) {
9430
- content = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9507
+ content = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9431
9508
  Drawer,
9432
9509
  {
9433
9510
  onClose: () => onClickCloseButton(),
@@ -9438,9 +9515,9 @@ function Modal({
9438
9515
  }
9439
9516
  );
9440
9517
  } else {
9441
- content = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_react31.Fragment, { children: [
9442
- !(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalOverlay, { ref: overlayRef }) : null,
9443
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9518
+ content = /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_react32.Fragment, { children: [
9519
+ !(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalOverlay, { ref: overlayRef }) : null,
9520
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9444
9521
  ModalContainer,
9445
9522
  {
9446
9523
  "aria-modal": true,
@@ -9449,20 +9526,20 @@ function Modal({
9449
9526
  role: "dialog",
9450
9527
  ref: modalContainerRef,
9451
9528
  top: top || (smKind === "default" ? standardContentInset.smPx : 0),
9452
- children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(ModalContent, { width, ghost, smKind, children: [
9453
- !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
9454
- !ghost && /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(ModalNavigation, { children: [
9455
- handleBack && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(BackButton, { onClick: handleBack, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Icon, { name: "ChevronLeft", width: 16 }) }),
9456
- !nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(CloseButton2, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Icon, { name: "Close", width: 9 }) })
9529
+ children: /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(ModalContent, { width, ghost, smKind, children: [
9530
+ !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
9531
+ !ghost && /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(ModalNavigation, { children: [
9532
+ handleBack && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(BackButton, { onClick: handleBack, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: "ChevronLeft", width: 16 }) }),
9533
+ !nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(CloseButton2, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: "Close", width: 9 }) })
9457
9534
  ] }),
9458
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalContentInner, { ghost, children: modalContent })
9535
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalContentInner, { ghost, children: modalContent })
9459
9536
  ] })
9460
9537
  }
9461
9538
  )
9462
9539
  ] });
9463
9540
  }
9464
9541
  return visible && nodeReady && nodeRef.current ? import_react_dom2.default.createPortal(
9465
- onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9542
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9466
9543
  nodeRef.current
9467
9544
  ) : null;
9468
9545
  }
@@ -9501,13 +9578,13 @@ var ModalContainer = import_styled20.default.div`
9501
9578
  var contentTopMarginPx = 24;
9502
9579
  var Description = import_styled20.default.div`
9503
9580
  color: ${({ theme }) => theme.mcNeutral};
9504
- margin-top: ${"12px" /* sm */};
9581
+ margin-top: ${Spacing.px.sm};
9505
9582
  & + * {
9506
9583
  margin-top: ${contentTopMarginPx}px;
9507
9584
  }
9508
9585
  `;
9509
9586
  var ModalButtonRow = import_styled20.default.div`
9510
- margin-top: ${"24px" /* lg */};
9587
+ margin-top: ${Spacing.px.lg};
9511
9588
  ${bp.minSm(`display: flex;`)}
9512
9589
  gap: 10px;
9513
9590
 
@@ -9521,13 +9598,13 @@ var ModalButtonRow = import_styled20.default.div`
9521
9598
  var ModalButtonColumn = import_styled20.default.div`
9522
9599
  display: flex;
9523
9600
  flex-direction: column;
9524
- gap: ${"12px" /* sm */};
9601
+ gap: ${Spacing.px.sm};
9525
9602
 
9526
9603
  ${ButtonSelector()} {
9527
9604
  width: 100%;
9528
9605
  }
9529
9606
 
9530
- margin-top: ${"24px" /* lg */};
9607
+ margin-top: ${Spacing.px.lg};
9531
9608
  `;
9532
9609
  var ModalContent = import_styled20.default.div`
9533
9610
  pointer-events: auto;