@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(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
@@ -3643,6 +3643,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
3643
3643
  typography: getTypography("Lightspark" /* Lightspark */),
3644
3644
  hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
3645
3645
  buttons: defaultButtonsTheme,
3646
+ badge: {
3647
+ bg: "c05Neutral"
3648
+ },
3649
+ inputBackground: colors.white,
3646
3650
  loading: "LoadingSpinner"
3647
3651
  });
3648
3652
  var lightBaseTheme = baseTheme;
@@ -3679,7 +3683,11 @@ var darkBaseTheme = {
3679
3683
  vlcNeutral: colors.gray20,
3680
3684
  warning: colors.warning,
3681
3685
  buttons: defaultButtonsTheme,
3682
- loading: "LoadingSpinner"
3686
+ loading: "LoadingSpinner",
3687
+ inputBackground: colors.black,
3688
+ badge: {
3689
+ bg: "c15Neutral"
3690
+ }
3683
3691
  };
3684
3692
  var lightTheme = extend(lightBaseTheme, {
3685
3693
  header: extendBase(lightBaseTheme, {
@@ -3718,6 +3726,7 @@ var umameDocsLightTheme = extend(lightTheme, {
3718
3726
  secondary: colors.grayBlue43,
3719
3727
  text: colors.grayBlue9,
3720
3728
  link: colors.blue39,
3729
+ inputBackground: colors.white,
3721
3730
  typography: getTypography("UmameDocs" /* UmameDocs */, {
3722
3731
  main: "Manrope",
3723
3732
  code: "Monaco"
@@ -3794,7 +3803,10 @@ var bridgeBaseSettings = {
3794
3803
  defaultBorderWidth: 1
3795
3804
  }
3796
3805
  }
3797
- })
3806
+ }),
3807
+ badge: {
3808
+ bg: "grayBlue94"
3809
+ }
3798
3810
  };
3799
3811
  var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
3800
3812
  type: "bridgeLight" /* BridgeLight */,
@@ -3802,7 +3814,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
3802
3814
  bg: colors.gray98,
3803
3815
  smBg: colors.gray98,
3804
3816
  text: colors.grayBlue9,
3805
- secondary: colors.grayBlue43
3817
+ secondary: colors.grayBlue43,
3818
+ inputBackground: colors.white
3806
3819
  }));
3807
3820
  var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
3808
3821
  type: "bridgeDark" /* BridgeDark */
@@ -3972,11 +3985,12 @@ var overlaySurfaceBorderColor = ({
3972
3985
  `;
3973
3986
  var overlaySurface = ({
3974
3987
  theme,
3975
- important = false
3988
+ important = false,
3989
+ border = true
3976
3990
  }) => import_react5.css`
3977
- background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
3991
+ background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
3978
3992
  ${important ? "!important" : ""};
3979
- border: 0.5px solid ${important ? "!important" : ""};
3993
+ ${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
3980
3994
  ${overlaySurfaceBorderColor({ theme, important })};
3981
3995
  ${themeOr(
3982
3996
  `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
@@ -3984,6 +3998,68 @@ var overlaySurface = ({
3984
3998
  )({ theme })}
3985
3999
  `;
3986
4000
 
4001
+ // src/styles/tokens/spacing.tsx
4002
+ var n = {
4003
+ "4xs": 2,
4004
+ "3xs": 4,
4005
+ "2xs": 6,
4006
+ xs: 8,
4007
+ sm: 12,
4008
+ md: 16,
4009
+ lg: 24,
4010
+ xl: 32,
4011
+ "2xl": 40,
4012
+ "3xl": 48,
4013
+ "4xl": 56,
4014
+ "5xl": 64,
4015
+ "6xl": 72,
4016
+ "7xl": 80,
4017
+ "8xl": 96,
4018
+ "9xl": 112,
4019
+ "10xl": 128,
4020
+ "11xl": 160
4021
+ };
4022
+ var Spacing = {
4023
+ "4xs": n["4xs"],
4024
+ "3xs": n["3xs"],
4025
+ "2xs": n["2xs"],
4026
+ xs: n.xs,
4027
+ sm: n.sm,
4028
+ md: n.md,
4029
+ lg: n.lg,
4030
+ xl: n.xl,
4031
+ "2xl": n["2xl"],
4032
+ "3xl": n["3xl"],
4033
+ "4xl": n["4xl"],
4034
+ "5xl": n["5xl"],
4035
+ "6xl": n["6xl"],
4036
+ "7xl": n["7xl"],
4037
+ "8xl": n["8xl"],
4038
+ "9xl": n["9xl"],
4039
+ "10xl": n["10xl"],
4040
+ "11xl": n["11xl"],
4041
+ px: {
4042
+ "4xs": `${n["4xs"]}px`,
4043
+ "3xs": `${n["3xs"]}px`,
4044
+ "2xs": `${n["2xs"]}px`,
4045
+ xs: `${n.xs}px`,
4046
+ sm: `${n.sm}px`,
4047
+ md: `${n.md}px`,
4048
+ lg: `${n.lg}px`,
4049
+ xl: `${n.xl}px`,
4050
+ "2xl": `${n["2xl"]}px`,
4051
+ "3xl": `${n["3xl"]}px`,
4052
+ "4xl": `${n["4xl"]}px`,
4053
+ "5xl": `${n["5xl"]}px`,
4054
+ "6xl": `${n["6xl"]}px`,
4055
+ "7xl": `${n["7xl"]}px`,
4056
+ "8xl": `${n["8xl"]}px`,
4057
+ "9xl": `${n["9xl"]}px`,
4058
+ "10xl": `${n["10xl"]}px`,
4059
+ "11xl": `${n["11xl"]}px`
4060
+ }
4061
+ };
4062
+
3987
4063
  // src/styles/utils.tsx
3988
4064
  var import_react6 = require("@emotion/react");
3989
4065
  function pxToRems(rems, asNum = false) {
@@ -4077,7 +4153,11 @@ function select(component) {
4077
4153
  }
4078
4154
 
4079
4155
  // src/utils/toReactNodes.tsx
4080
- var import_react23 = require("react");
4156
+ var import_lodash_es4 = require("lodash-es");
4157
+ var import_react24 = require("react");
4158
+
4159
+ // src/components/typography/renderTypography.tsx
4160
+ var import_react23 = __toESM(require("react"), 1);
4081
4161
 
4082
4162
  // src/components/typography/Body.tsx
4083
4163
  var import_styled3 = __toESM(require("@emotion/styled"), 1);
@@ -7988,7 +8068,7 @@ var IconContainer = import_styled2.default.span`
7988
8068
  ${({ theme, fontColor }) => {
7989
8069
  const color = getFontColor(theme, fontColor, "inherit");
7990
8070
  return `
7991
- & svg {
8071
+ svg, path {
7992
8072
  color: ${getFontColor(theme, fontColor, "inherit")};
7993
8073
 
7994
8074
  /*
@@ -8143,6 +8223,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
8143
8223
  Link,
8144
8224
  {
8145
8225
  to: node.to,
8226
+ newTab: !!node.newTab,
8146
8227
  children: node.text
8147
8228
  },
8148
8229
  `link-${i}-${node.text.substr(0, 10)}`
@@ -8419,7 +8500,6 @@ var StyledTitle = import_styled12.default.span`
8419
8500
  `;
8420
8501
 
8421
8502
  // src/components/typography/renderTypography.tsx
8422
- var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
8423
8503
  var typographyMap = {
8424
8504
  Display,
8425
8505
  Headline,
@@ -8431,46 +8511,46 @@ var typographyMap = {
8431
8511
  "Label Strong": LabelStrong,
8432
8512
  Overline,
8433
8513
  Code: Code2,
8434
- "Code Strong": () => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { children: "Unimplemented" })
8514
+ "Code Strong": Code2
8435
8515
  };
8436
8516
  var renderTypography = (type, props) => {
8437
8517
  const TypographyComponent = typographyMap[type];
8438
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(TypographyComponent, __spreadValues({}, props));
8518
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
8519
+ return import_react23.default.createElement(TypographyComponent, rest, children);
8439
8520
  };
8440
8521
 
8441
8522
  // src/utils/toReactNodes.tsx
8442
- var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
8523
+ var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
8443
8524
  function toReactNodes(toReactNodesArg) {
8444
8525
  const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
8445
8526
  const reactNodes = toReactNodesArray.map((node, i) => {
8446
8527
  let content;
8447
8528
  if (!node) {
8448
8529
  return null;
8449
- } else if (typeof node !== "string" && "typography" in node && node.typography.type && node.typography.props) {
8450
- content = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react23.Fragment, { children: renderTypography(
8530
+ } else if (typeof node !== "string" && "typography" in node && node.typography.type) {
8531
+ const props = node.typography.props || {};
8532
+ content = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react24.Fragment, { children: renderTypography(
8451
8533
  node.typography.type,
8452
- Object.assign(node.typography.props, {
8453
- content: node
8454
- })
8534
+ Object.assign(props, { content: node })
8455
8535
  ) }, `typography-${i}-${node.text.substr(0, 10)}`);
8456
8536
  } else {
8457
8537
  content = toNonTypographicReactNodes(node);
8458
8538
  }
8459
8539
  return content || null;
8460
8540
  });
8461
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react23.Fragment, { children: reactNodes });
8541
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react24.Fragment, { children: reactNodes });
8462
8542
  }
8463
8543
 
8464
8544
  // src/components/Button.tsx
8465
- var import_react27 = require("@emotion/react");
8545
+ var import_react28 = require("@emotion/react");
8466
8546
  var import_styled15 = __toESM(require("@emotion/styled"), 1);
8467
- var import_lodash_es4 = require("lodash-es");
8468
- var import_react28 = require("react");
8547
+ var import_lodash_es5 = require("lodash-es");
8548
+ var import_react29 = require("react");
8469
8549
 
8470
8550
  // src/components/Loading.tsx
8471
- var import_react24 = require("@emotion/react");
8551
+ var import_react25 = require("@emotion/react");
8472
8552
  var import_styled13 = __toESM(require("@emotion/styled"), 1);
8473
- var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
8553
+ var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
8474
8554
  var defaultProps = {
8475
8555
  size: 60,
8476
8556
  center: true,
@@ -8481,8 +8561,8 @@ function Loading({
8481
8561
  size: size2 = defaultProps.size,
8482
8562
  ml = defaultProps.ml
8483
8563
  }) {
8484
- const theme = (0, import_react24.useTheme)();
8485
- 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 }) }) });
8564
+ const theme = (0, import_react25.useTheme)();
8565
+ 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 }) }) });
8486
8566
  }
8487
8567
  Loading.defaultProps = defaultProps;
8488
8568
  var LoadingWrapper = import_styled13.default.div`
@@ -8521,15 +8601,15 @@ var Rotate = import_styled13.default.div`
8521
8601
 
8522
8602
  // src/components/Tooltip.tsx
8523
8603
  var import_css = require("@emotion/css");
8524
- var import_react25 = require("@emotion/react");
8525
- var import_react26 = __toESM(require("react"), 1);
8604
+ var import_react26 = require("@emotion/react");
8605
+ var import_react27 = __toESM(require("react"), 1);
8526
8606
  var import_react_dom = __toESM(require("react-dom"), 1);
8527
8607
  var import_react_tooltip = require("react-tooltip");
8528
- var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
8608
+ var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
8529
8609
  function Tooltip(props) {
8530
- const nodeRef = (0, import_react26.useRef)(null);
8531
- const [nodeReady, setNodeReady] = import_react26.default.useState(false);
8532
- (0, import_react26.useEffect)(() => {
8610
+ const nodeRef = (0, import_react27.useRef)(null);
8611
+ const [nodeReady, setNodeReady] = import_react27.default.useState(false);
8612
+ (0, import_react27.useEffect)(() => {
8533
8613
  if (!nodeRef.current) {
8534
8614
  nodeRef.current = document.createElement("div");
8535
8615
  document.body.appendChild(nodeRef.current);
@@ -8542,9 +8622,9 @@ function Tooltip(props) {
8542
8622
  }
8543
8623
  };
8544
8624
  }, []);
8545
- const theme = (0, import_react25.useTheme)();
8625
+ const theme = (0, import_react26.useTheme)();
8546
8626
  return nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
8547
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8627
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8548
8628
  import_react_tooltip.Tooltip,
8549
8629
  __spreadProps(__spreadValues({}, props), {
8550
8630
  id: props.id || "",
@@ -8589,7 +8669,7 @@ var UnstyledButton = import_styled14.default.button`
8589
8669
  `;
8590
8670
 
8591
8671
  // src/components/Button.tsx
8592
- var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
8672
+ var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
8593
8673
  var roundPaddingsX = {
8594
8674
  [TokenSize.ExtraSmall]: 10,
8595
8675
  [TokenSize.Small]: 10,
@@ -8612,7 +8692,7 @@ function getPaddingX(size2, kind, isRound) {
8612
8692
  function getPadding({ paddingY, kind, size: size2, iconSide, isRound }) {
8613
8693
  const paddingX = getPaddingX(size2, kind, isRound);
8614
8694
  const paddingForIcon = 0;
8615
- return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
8695
+ return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
8616
8696
  }
8617
8697
  function resolveBackgroundColorKey(theme, kind, defaultKey) {
8618
8698
  var _a;
@@ -8694,7 +8774,7 @@ function resolveProps(props, theme) {
8694
8774
  });
8695
8775
  }
8696
8776
  function Button(props) {
8697
- const theme = (0, import_react27.useTheme)();
8777
+ const theme = (0, import_react28.useTheme)();
8698
8778
  const {
8699
8779
  kind,
8700
8780
  typography,
@@ -8726,34 +8806,34 @@ function Button(props) {
8726
8806
  tooltipText,
8727
8807
  borderRadius
8728
8808
  } = resolveProps(props, theme);
8729
- const tooltipId = (0, import_react28.useRef)((0, import_lodash_es4.uniqueId)());
8809
+ const tooltipId = (0, import_react29.useRef)((0, import_lodash_es5.uniqueId)());
8730
8810
  const iconSize = size2 === "ExtraSmall" ? 12 : 16;
8731
8811
  let currentIcon = null;
8732
8812
  if (loading) {
8733
- currentIcon = /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8813
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8734
8814
  ButtonIcon,
8735
8815
  {
8736
8816
  iconSide,
8737
8817
  text,
8738
8818
  typography,
8739
8819
  kind,
8740
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Loading, { size: iconSize, center: false })
8820
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Loading, { size: iconSize, center: false })
8741
8821
  }
8742
8822
  );
8743
8823
  } else if (icon) {
8744
- currentIcon = /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8824
+ currentIcon = /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8745
8825
  ButtonIcon,
8746
8826
  {
8747
8827
  iconSide,
8748
8828
  text,
8749
8829
  typography,
8750
8830
  kind,
8751
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8831
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8752
8832
  }
8753
8833
  );
8754
8834
  }
8755
- const content = /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_react28.Fragment, { children: [
8756
- /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
8835
+ const content = /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_react29.Fragment, { children: [
8836
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
8757
8837
  "div",
8758
8838
  __spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
8759
8839
  css: {
@@ -8764,7 +8844,7 @@ function Button(props) {
8764
8844
  },
8765
8845
  children: [
8766
8846
  iconSide === "left" && currentIcon,
8767
- text && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8847
+ text && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8768
8848
  "div",
8769
8849
  {
8770
8850
  css: {
@@ -8782,7 +8862,7 @@ function Button(props) {
8782
8862
  ]
8783
8863
  })
8784
8864
  ),
8785
- tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
8865
+ tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
8786
8866
  ] });
8787
8867
  const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
8788
8868
  const commonProps = {
@@ -8812,9 +8892,9 @@ function Button(props) {
8812
8892
  zIndex
8813
8893
  };
8814
8894
  if (to) {
8815
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
8895
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
8816
8896
  }
8817
- return href ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8897
+ return href ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8818
8898
  ButtonHrefLink,
8819
8899
  __spreadProps(__spreadValues({}, commonProps), {
8820
8900
  href,
@@ -8822,7 +8902,7 @@ function Button(props) {
8822
8902
  target: "_blank",
8823
8903
  children: content
8824
8904
  })
8825
- ) : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
8905
+ ) : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
8826
8906
  }
8827
8907
  var buttonStyle = ({
8828
8908
  paddingY,
@@ -8842,7 +8922,7 @@ var buttonStyle = ({
8842
8922
  hoverBackgroundColor,
8843
8923
  hoverBorderColor
8844
8924
  }) => {
8845
- return import_react27.css`
8925
+ return import_react28.css`
8846
8926
  display: inline-flex;
8847
8927
  opacity: ${disabled && !isLoading ? 0.2 : 1};
8848
8928
  ${disabled ? "pointer-events: none;" : ""}
@@ -8910,16 +8990,19 @@ var ButtonSelector = (prepend = "", append = "") => `${prepend}*:is(${select(Sty
8910
8990
 
8911
8991
  // src/components/Drawer.tsx
8912
8992
  var import_styled16 = __toESM(require("@emotion/styled"), 1);
8913
- var import_react29 = require("react");
8914
- var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
8993
+ var import_react30 = require("react");
8994
+ var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
8915
8995
  var Drawer = (props) => {
8916
- const [isOpen, setIsOpen] = (0, import_react29.useState)(true);
8917
- const [lastY, setLastY] = (0, import_react29.useState)(null);
8918
- const [totalDeltaY, setTotalDeltaY] = (0, import_react29.useState)(0);
8919
- const [fractionVisible, setFractionVisible] = (0, import_react29.useState)(1);
8920
- const [grabbing, setGrabbing] = (0, import_react29.useState)(false);
8921
- const drawerContainerRef = (0, import_react29.useRef)(null);
8996
+ const [isOpen, setIsOpen] = (0, import_react30.useState)(true);
8997
+ const [lastY, setLastY] = (0, import_react30.useState)(null);
8998
+ const [totalDeltaY, setTotalDeltaY] = (0, import_react30.useState)(0);
8999
+ const [fractionVisible, setFractionVisible] = (0, import_react30.useState)(1);
9000
+ const [grabbing, setGrabbing] = (0, import_react30.useState)(false);
9001
+ const drawerContainerRef = (0, import_react30.useRef)(null);
8922
9002
  const handleClose = () => {
9003
+ if (props.nonDismissable) {
9004
+ return;
9005
+ }
8923
9006
  setIsOpen(false);
8924
9007
  setTimeout(() => {
8925
9008
  props.onClose && props.onClose();
@@ -8929,6 +9012,9 @@ var Drawer = (props) => {
8929
9012
  };
8930
9013
  const handleTouchMove = (event) => {
8931
9014
  var _a, _b;
9015
+ if (props.nonDismissable) {
9016
+ return;
9017
+ }
8932
9018
  if (lastY === null) {
8933
9019
  setLastY(event.touches[0].clientY);
8934
9020
  } else {
@@ -8945,9 +9031,15 @@ var Drawer = (props) => {
8945
9031
  }
8946
9032
  };
8947
9033
  const handleTouchStart = () => {
9034
+ if (props.nonDismissable) {
9035
+ return;
9036
+ }
8948
9037
  setGrabbing(true);
8949
9038
  };
8950
9039
  const handleTouchEnd = () => {
9040
+ if (props.nonDismissable) {
9041
+ return;
9042
+ }
8951
9043
  setGrabbing(false);
8952
9044
  if (fractionVisible < 0.8) {
8953
9045
  handleClose();
@@ -8955,8 +9047,8 @@ var Drawer = (props) => {
8955
9047
  setTotalDeltaY(0);
8956
9048
  setLastY(null);
8957
9049
  };
8958
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_jsx_runtime133.Fragment, { children: [
8959
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9050
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
9051
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8960
9052
  Background,
8961
9053
  {
8962
9054
  isOpen,
@@ -8964,7 +9056,7 @@ var Drawer = (props) => {
8964
9056
  onClick: handleClose
8965
9057
  }
8966
9058
  ),
8967
- /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
9059
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
8968
9060
  DrawerContainer,
8969
9061
  {
8970
9062
  isOpen,
@@ -8975,16 +9067,17 @@ var Drawer = (props) => {
8975
9067
  grabbing,
8976
9068
  ref: drawerContainerRef,
8977
9069
  children: [
8978
- props.grabber && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(GrabberBar, {}) }),
8979
- props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9070
+ props.grabber && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(GrabberBar, {}) }),
9071
+ props.handleBack && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(BackButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8980
9072
  Button,
8981
9073
  {
8982
- onClick: handleClose,
8983
- icon: "Close",
9074
+ onClick: props.handleBack,
9075
+ icon: "ChevronLeft",
8984
9076
  kind: "ghost",
8985
- size: "ExtraSmall"
9077
+ size: "Small"
8986
9078
  }
8987
9079
  ) }),
9080
+ 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 }) }) }),
8988
9081
  props.children
8989
9082
  ]
8990
9083
  }
@@ -9017,16 +9110,19 @@ var Background = import_styled16.default.div`
9017
9110
  `;
9018
9111
  var DrawerContainer = import_styled16.default.div`
9019
9112
  position: fixed;
9113
+ max-height: 100dvh;
9020
9114
  width: 100%;
9021
9115
  background-color: ${({ theme }) => theme.bg};
9022
9116
  right: 0;
9023
9117
  bottom: 0;
9024
9118
  transform: translateY(${(props) => `${props.totalDeltaY}px`});
9025
9119
  z-index: ${z.modalContainer};
9026
- border-radius: ${"24px" /* lg */} ${"24px" /* lg */} 0 0;
9120
+ border-radius: ${Spacing.px.lg} ${Spacing.px.lg} 0 0;
9027
9121
  display: flex;
9028
9122
  flex-direction: column;
9029
- padding: ${"72px" /* 6xl */} ${"32px" /* xl */} ${"40px" /* 2xl */} ${"32px" /* xl */};
9123
+ padding: ${Spacing.px["6xl"]} ${Spacing.px.xl} ${Spacing.px["2xl"]}
9124
+ ${Spacing.px.xl};
9125
+ overflow-y: scroll;
9030
9126
 
9031
9127
  // Only smooth transition when not grabbing, otherwise dragging will feel very laggy
9032
9128
  ${(props) => props.grabbing && props.isOpen ? "" : "transition: transform 0.3s ease-in-out;"};
@@ -9058,7 +9154,7 @@ var Grabber = import_styled16.default.div`
9058
9154
  top: 0;
9059
9155
  left: 0;
9060
9156
  width: 100%;
9061
- height: ${"24px" /* lg */};
9157
+ height: ${Spacing.px.lg};
9062
9158
  display: flex;
9063
9159
  flex-direction: row;
9064
9160
  justify-content: center;
@@ -9072,12 +9168,33 @@ var CloseButtonContainer = import_styled16.default.div`
9072
9168
  right: 20px;
9073
9169
  border-radius: 50%;
9074
9170
  background-color: ${colors.grayBlue94};
9075
- padding: ${"8px" /* xs */};
9171
+ padding: ${Spacing.px.xs};
9172
+ height: 30px;
9173
+ width: 30px;
9174
+ display: flex;
9175
+ align-items: center;
9076
9176
 
9077
9177
  * > * {
9078
9178
  line-height: 14px;
9079
9179
  }
9080
9180
  `;
9181
+ var CloseButton = (0, import_styled16.default)(UnstyledButton)`
9182
+ ${standardFocusOutline}
9183
+ width: 24px;
9184
+ height: 24px;
9185
+ justify-self: flex-end;
9186
+ `;
9187
+ var BackButtonContainer = import_styled16.default.div`
9188
+ position: absolute;
9189
+ top: 20px;
9190
+ left: 20px;
9191
+ border-radius: 50%;
9192
+ padding: ${Spacing.px.xs};
9193
+ height: 30px;
9194
+ width: 30px;
9195
+ display: flex;
9196
+ align-items: center;
9197
+ `;
9081
9198
  var GrabberBar = import_styled16.default.div`
9082
9199
  width: 36px;
9083
9200
  height: 5px;
@@ -9086,13 +9203,13 @@ var GrabberBar = import_styled16.default.div`
9086
9203
  `;
9087
9204
 
9088
9205
  // src/components/IconWithCircleBackground.tsx
9089
- var import_styled19 = __toESM(require("@emotion/styled"), 1);
9206
+ var import_styled18 = __toESM(require("@emotion/styled"), 1);
9090
9207
 
9091
9208
  // src/components/Flex.tsx
9092
9209
  var import_styled17 = __toESM(require("@emotion/styled"), 1);
9093
- var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
9210
+ var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
9094
9211
  function Flex({ center = false, children, as = "div" }) {
9095
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(StyledFlex, { center, as, children });
9212
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(StyledFlex, { center, as, children });
9096
9213
  }
9097
9214
  var StyledFlex = import_styled17.default.div`
9098
9215
  display: flex;
@@ -9102,9 +9219,22 @@ var StyledFlex = import_styled17.default.div`
9102
9219
  `}
9103
9220
  `;
9104
9221
 
9222
+ // src/components/IconWithCircleBackground.tsx
9223
+ var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
9224
+ function IconWithCircleBackground({
9225
+ iconName = "WarningSign"
9226
+ }) {
9227
+ 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" }) }) });
9228
+ }
9229
+ var StyledIconWithCircleBackground = import_styled18.default.div`
9230
+ background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
9231
+ border-radius: 50%;
9232
+ padding: 20px;
9233
+ `;
9234
+
9105
9235
  // src/components/ProgressBar.tsx
9106
- var import_styled18 = __toESM(require("@emotion/styled"), 1);
9107
- var import_react30 = require("react");
9236
+ var import_styled19 = __toESM(require("@emotion/styled"), 1);
9237
+ var import_react31 = require("react");
9108
9238
  var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
9109
9239
  var defaultProps2 = {
9110
9240
  isSm: false,
@@ -9116,8 +9246,8 @@ function ProgressBar({
9116
9246
  isSm = defaultProps2.isSm,
9117
9247
  stepDuration = defaultProps2.stepDuration
9118
9248
  }) {
9119
- const [percentage, setPercentage] = (0, import_react30.useState)(5);
9120
- (0, import_react30.useEffect)(() => {
9249
+ const [percentage, setPercentage] = (0, import_react31.useState)(5);
9250
+ (0, import_react31.useEffect)(() => {
9121
9251
  if (progressPercentage !== void 0) {
9122
9252
  setPercentage(progressPercentage);
9123
9253
  } else {
@@ -9137,7 +9267,7 @@ function ProgressBar({
9137
9267
  ) }) });
9138
9268
  }
9139
9269
  ProgressBar.defaultProps = defaultProps2;
9140
- var ProgressBarContainer = import_styled18.default.div`
9270
+ var ProgressBarContainer = import_styled19.default.div`
9141
9271
  ${standardBorderRadius(16)}
9142
9272
  background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
9143
9273
  box-sizing: border-box;
@@ -9147,7 +9277,7 @@ var ProgressBarContainer = import_styled18.default.div`
9147
9277
  width: 100%;
9148
9278
  position: relative;
9149
9279
  `;
9150
- var BarBg = import_styled18.default.div`
9280
+ var BarBg = import_styled19.default.div`
9151
9281
  ${standardBorderRadius(16)}
9152
9282
  width: ${({ percentage }) => 100 / percentage * 100}%;
9153
9283
  height: 100%;
@@ -9161,7 +9291,7 @@ var BarBg = import_styled18.default.div`
9161
9291
  #3f2e7e 115.32%
9162
9292
  )`};
9163
9293
  `;
9164
- var Bar = import_styled18.default.div`
9294
+ var Bar = import_styled19.default.div`
9165
9295
  ${standardBorderRadius(16)}
9166
9296
  overflow: hidden;
9167
9297
  box-sizing: border-box;
@@ -9172,21 +9302,8 @@ var Bar = import_styled18.default.div`
9172
9302
  cubic-bezier(0.16, 0.3, 0.18, 1);
9173
9303
  `;
9174
9304
 
9175
- // src/components/IconWithCircleBackground.tsx
9176
- var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
9177
- function IconWithCircleBackground({
9178
- iconName = "WarningSign"
9179
- }) {
9180
- 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" }) }) });
9181
- }
9182
- var StyledIconWithCircleBackground = import_styled19.default.div`
9183
- background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
9184
- border-radius: 50%;
9185
- padding: 20px;
9186
- `;
9187
-
9188
9305
  // src/components/Modal.tsx
9189
- var import_jsx_runtime137 = require("@emotion/react/jsx-runtime");
9306
+ var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
9190
9307
  function isSubmitLinkWithHref(submitLink) {
9191
9308
  return Boolean(submitLink && "href" in submitLink);
9192
9309
  }
@@ -9208,31 +9325,33 @@ function Modal({
9208
9325
  submitLink,
9209
9326
  cancelText = "Cancel",
9210
9327
  firstFocusRef,
9211
- smDrawer,
9328
+ smKind = "default",
9329
+ top,
9212
9330
  nonDismissable = false,
9213
9331
  autoFocus = true,
9214
9332
  width = 460,
9215
9333
  progressBar,
9216
9334
  buttonLayout = "horizontal",
9217
- extraActions
9335
+ extraActions,
9336
+ handleBack
9218
9337
  }) {
9219
- const visibleChangedRef = (0, import_react31.useRef)(false);
9220
- const nodeRef = (0, import_react31.useRef)(null);
9338
+ const visibleChangedRef = (0, import_react32.useRef)(false);
9339
+ const nodeRef = (0, import_react32.useRef)(null);
9221
9340
  const [defaultFirstFocusRef, defaultFirstFocusRefCb] = useLiveRef();
9222
9341
  const ref = firstFocusRef || defaultFirstFocusRef;
9223
- const [nodeReady, setNodeReady] = import_react31.default.useState(false);
9224
- const overlayRef = (0, import_react31.useRef)(null);
9225
- const prevFocusedElement = (0, import_react31.useRef)();
9226
- const modalContainerRef = (0, import_react31.useRef)(null);
9342
+ const [nodeReady, setNodeReady] = import_react32.default.useState(false);
9343
+ const overlayRef = (0, import_react32.useRef)(null);
9344
+ const prevFocusedElement = (0, import_react32.useRef)();
9345
+ const modalContainerRef = (0, import_react32.useRef)(null);
9227
9346
  const bp2 = useBreakpoints();
9228
9347
  const isSm = bp2.current("sm" /* sm */);
9229
- (0, import_react31.useEffect)(() => {
9348
+ (0, import_react32.useEffect)(() => {
9230
9349
  if (visible !== visibleChangedRef.current) {
9231
9350
  visibleChangedRef.current = visible;
9232
9351
  }
9233
9352
  }, [visible]);
9234
9353
  const visibleChanged = visible !== visibleChangedRef.current;
9235
- (0, import_react31.useEffect)(() => {
9354
+ (0, import_react32.useEffect)(() => {
9236
9355
  prevFocusedElement.current = document.activeElement;
9237
9356
  if (!nodeRef.current) {
9238
9357
  nodeRef.current = document.createElement("div");
@@ -9246,7 +9365,7 @@ function Modal({
9246
9365
  }
9247
9366
  };
9248
9367
  }, []);
9249
- (0, import_react31.useEffect)(() => {
9368
+ (0, import_react32.useEffect)(() => {
9250
9369
  const handleOutsideClick = (event) => {
9251
9370
  if (visible && overlayRef.current && event.target && overlayRef.current.contains(event.target) && !nonDismissable) {
9252
9371
  onClose();
@@ -9283,7 +9402,7 @@ function Modal({
9283
9402
  }
9284
9403
  };
9285
9404
  }, [onClose, visible, nonDismissable]);
9286
- (0, import_react31.useLayoutEffect)(() => {
9405
+ (0, import_react32.useLayoutEffect)(() => {
9287
9406
  if (visible) {
9288
9407
  if (visibleChanged) {
9289
9408
  prevFocusedElement.current = document.activeElement;
@@ -9314,9 +9433,12 @@ function Modal({
9314
9433
  }
9315
9434
  const linkIsHref = isSubmitLinkWithHref(submitLink);
9316
9435
  const linkIsRoute = !linkIsHref && submitLink;
9317
- const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_jsx_runtime137.Fragment, { children: [
9318
- extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((action) => action.content),
9319
- !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9436
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_jsx_runtime136.Fragment, { children: [
9437
+ extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((_a, i) => {
9438
+ var _b = _a, { placement, text } = _b, rest = __objRest(_b, ["placement", "text"]);
9439
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9440
+ }),
9441
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9320
9442
  Button,
9321
9443
  {
9322
9444
  disabled: cancelDisabled,
@@ -9324,7 +9446,7 @@ function Modal({
9324
9446
  text: cancelText
9325
9447
  }
9326
9448
  ),
9327
- (onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9449
+ (onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9328
9450
  Button,
9329
9451
  {
9330
9452
  kind: "primary",
@@ -9338,13 +9460,16 @@ function Modal({
9338
9460
  onClick: submitLink ? onSubmit : void 0
9339
9461
  }
9340
9462
  ),
9341
- isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, { onClick: onClose, text: cancelText }),
9342
- extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((action) => action.content)
9463
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, { onClick: onClose, text: cancelText }),
9464
+ extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((_c, i) => {
9465
+ var _d = _c, { placement, text } = _d, rest = __objRest(_d, ["placement", "text"]);
9466
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9467
+ })
9343
9468
  ] });
9344
9469
  let titleContent = null;
9345
9470
  if (title) {
9346
9471
  if (typeof title === "string") {
9347
- titleContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9472
+ titleContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9348
9473
  } else {
9349
9474
  titleContent = toReactNodes(title);
9350
9475
  }
@@ -9352,17 +9477,17 @@ function Modal({
9352
9477
  let descriptionContent = null;
9353
9478
  if (description) {
9354
9479
  if (typeof description === "string") {
9355
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Body, { size: "ExtraSmall", content: description }) });
9480
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Body, { size: "ExtraSmall", content: description }) });
9356
9481
  } else {
9357
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: toReactNodes(description) });
9482
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Description, { children: toReactNodes(description) });
9358
9483
  }
9359
9484
  }
9360
9485
  let topContentNode = null;
9361
9486
  if (topContent) {
9362
- topContentNode = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { css: { marginBottom: "32px" /* xl */ }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IconWithCircleBackground, __spreadValues({}, topContent)) });
9487
+ topContentNode = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { css: { marginBottom: Spacing.px.xl }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(IconWithCircleBackground, __spreadValues({}, topContent)) });
9363
9488
  }
9364
- const modalContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_react31.Fragment, { children: [
9365
- progressBar ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9489
+ const modalContent = /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_react32.Fragment, { children: [
9490
+ progressBar ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9366
9491
  ProgressBar,
9367
9492
  {
9368
9493
  progressPercentage: progressBar.progressPercentage,
@@ -9373,15 +9498,24 @@ function Modal({
9373
9498
  titleContent,
9374
9499
  descriptionContent,
9375
9500
  children,
9376
- onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalButtonColumn, { children: buttonContent }) : null
9501
+ onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalButtonColumn, { children: buttonContent }) : null
9377
9502
  ] });
9378
9503
  let content;
9379
- if (smDrawer && isSm) {
9380
- content = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Drawer, { onClose: () => onClickCloseButton(), closeButton: true, children: modalContent });
9504
+ if (smKind === "drawer" && isSm) {
9505
+ content = /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9506
+ Drawer,
9507
+ {
9508
+ onClose: () => onClickCloseButton(),
9509
+ closeButton: true,
9510
+ nonDismissable,
9511
+ handleBack,
9512
+ children: modalContent
9513
+ }
9514
+ );
9381
9515
  } else {
9382
- content = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_react31.Fragment, { children: [
9383
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalOverlay, { ref: overlayRef }),
9384
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9516
+ content = /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_react32.Fragment, { children: [
9517
+ !(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalOverlay, { ref: overlayRef }) : null,
9518
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9385
9519
  ModalContainer,
9386
9520
  {
9387
9521
  "aria-modal": true,
@@ -9389,17 +9523,21 @@ function Modal({
9389
9523
  tabIndex: -1,
9390
9524
  role: "dialog",
9391
9525
  ref: modalContainerRef,
9392
- children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(ModalContent, { width, ghost, children: [
9393
- !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
9394
- !(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(CloseButtonContainer2, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Icon, { name: "Close", width: 9 }) }) }),
9395
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalContentInner, { ghost, children: modalContent })
9526
+ top: top || (smKind === "default" ? standardContentInset.smPx : 0),
9527
+ children: /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(ModalContent, { width, ghost, smKind, children: [
9528
+ !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
9529
+ !ghost && /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(ModalNavigation, { children: [
9530
+ handleBack && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(BackButton, { onClick: handleBack, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: "ChevronLeft", width: 16 }) }),
9531
+ !nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(CloseButton2, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: "Close", width: 9 }) })
9532
+ ] }),
9533
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ModalContentInner, { ghost, children: modalContent })
9396
9534
  ] })
9397
9535
  }
9398
9536
  )
9399
9537
  ] });
9400
9538
  }
9401
9539
  return visible && nodeReady && nodeRef.current ? import_react_dom2.default.createPortal(
9402
- onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9540
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9403
9541
  nodeRef.current
9404
9542
  ) : null;
9405
9543
  }
@@ -9433,18 +9571,18 @@ var ModalContainer = import_styled20.default.div`
9433
9571
  justify-content: center;
9434
9572
  align-items: center;
9435
9573
  color: ${({ theme }) => theme.text};
9436
- padding-top: ${standardContentInset.smPx}px;
9574
+ ${(props) => `top: ${props.top}px;`}
9437
9575
  `;
9438
9576
  var contentTopMarginPx = 24;
9439
9577
  var Description = import_styled20.default.div`
9440
9578
  color: ${({ theme }) => theme.mcNeutral};
9441
- margin-top: ${"12px" /* sm */};
9579
+ margin-top: ${Spacing.px.sm};
9442
9580
  & + * {
9443
9581
  margin-top: ${contentTopMarginPx}px;
9444
9582
  }
9445
9583
  `;
9446
9584
  var ModalButtonRow = import_styled20.default.div`
9447
- margin-top: ${"24px" /* lg */};
9585
+ margin-top: ${Spacing.px.lg};
9448
9586
  ${bp.minSm(`display: flex;`)}
9449
9587
  gap: 10px;
9450
9588
 
@@ -9458,25 +9596,31 @@ var ModalButtonRow = import_styled20.default.div`
9458
9596
  var ModalButtonColumn = import_styled20.default.div`
9459
9597
  display: flex;
9460
9598
  flex-direction: column;
9461
- gap: ${"12px" /* sm */};
9599
+ gap: ${Spacing.px.sm};
9462
9600
 
9463
9601
  ${ButtonSelector()} {
9464
9602
  width: 100%;
9465
9603
  }
9466
9604
 
9467
- margin-top: ${"24px" /* lg */};
9605
+ margin-top: ${Spacing.px.lg};
9468
9606
  `;
9469
9607
  var ModalContent = import_styled20.default.div`
9470
- ${overflowAutoWithoutScrollbars}
9471
- ${standardContentInset.smCSS}
9472
- ${(props) => props.ghost ? "" : standardBorderRadius(16)}
9473
- ${(props) => props.ghost ? "" : overlaySurface}
9474
9608
  pointer-events: auto;
9475
9609
  transition: width 0.25s ease-in;
9476
- width: ${(props) => props.width}px;
9477
- max-width: 100%;
9478
- max-height: 100%;
9479
- position: absolute;
9610
+
9611
+ ${({ theme, smKind, ghost }) => ghost ? "" : overlaySurface({ theme, border: smKind !== "fullscreen" })}
9612
+ ${overflowAutoWithoutScrollbars}
9613
+ ${(props) => props.smKind === "fullscreen" && bp.isSm() ? `
9614
+ width: 100%;
9615
+ height: 100%;
9616
+ ` : `
9617
+ ${props.ghost ? "" : standardBorderRadius(16)}
9618
+ ${standardContentInset.smCSS.styles}
9619
+ width: ${props.width}px;
9620
+ max-width: 100%;
9621
+ max-height: 100%;
9622
+ position: absolute;
9623
+ `}
9480
9624
  ${(props) => props.ghost ? "" : "padding: 16px 16px 40px;"}
9481
9625
 
9482
9626
  ${headlineSelector("h4")} { {
@@ -9486,16 +9630,22 @@ var ModalContent = import_styled20.default.div`
9486
9630
  }
9487
9631
  }
9488
9632
  `;
9489
- var CloseButtonContainer2 = import_styled20.default.div`
9490
- display: flex;
9491
- flex-direction: row;
9633
+ var ModalNavigation = import_styled20.default.div`
9634
+ display: grid;
9635
+ grid-auto-flow: column;
9492
9636
  width: 100%;
9493
- justify-content: flex-end;
9494
9637
  `;
9495
- var CloseButton = (0, import_styled20.default)(UnstyledButton)`
9638
+ var BackButton = (0, import_styled20.default)(UnstyledButton)`
9639
+ ${standardFocusOutline}
9640
+ width: 24px;
9641
+ height: 24px;
9642
+ justify-self: flex-start;
9643
+ `;
9644
+ var CloseButton2 = (0, import_styled20.default)(UnstyledButton)`
9496
9645
  ${standardFocusOutline}
9497
9646
  width: 24px;
9498
9647
  height: 24px;
9648
+ justify-self: flex-end;
9499
9649
  `;
9500
9650
  var ModalContentInner = import_styled20.default.div`
9501
9651
  ${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}