@lightsparkdev/ui 1.0.0 → 1.0.2

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 (311) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{buttons-73127447.d.ts → buttons-b7f56076.d.ts} +47 -29
  3. package/dist/{buttons-5a4562d5.d.ts → buttons-e4eb84a2.d.ts} +47 -29
  4. package/dist/{chunk-3A6TEYT3.js → chunk-27SFWLPS.js} +1 -1
  5. package/dist/{chunk-I5PGTS2V.js → chunk-2H7TBKII.js} +9 -9
  6. package/dist/{chunk-BAQMHUBZ.js → chunk-2IXAUIKR.js} +2 -2
  7. package/dist/{chunk-NPY3QVGG.js → chunk-2JYYREVX.js} +1 -1
  8. package/dist/{chunk-NEH2HFAW.js → chunk-2XRCGW74.js} +3 -3
  9. package/dist/{chunk-QVKXSZ63.js → chunk-35WJ3PKH.js} +2 -2
  10. package/dist/{chunk-NHZO42IA.js → chunk-37RRWSDE.js} +2 -2
  11. package/dist/{chunk-LXK52GLU.js → chunk-467PLJO3.js} +4 -4
  12. package/dist/{chunk-ACYYMZQZ.js → chunk-55M7XHBZ.js} +13 -13
  13. package/dist/{chunk-NMJGBK5W.js → chunk-56QJRFP2.js} +2 -2
  14. package/dist/{chunk-BPZ7AV7W.js → chunk-5H32AOXL.js} +1 -1
  15. package/dist/{chunk-TW4DU3WY.js → chunk-5XZJEYHG.js} +1 -1
  16. package/dist/{chunk-QBJ57KNQ.js → chunk-6H7PZJ2A.js} +2 -2
  17. package/dist/{chunk-HGYVPOA7.js → chunk-6JFJDBV2.js} +1 -1
  18. package/dist/{chunk-52POF2W4.js → chunk-7NPHOJXD.js} +2 -2
  19. package/dist/{chunk-GKH3ZH4N.js → chunk-7Y2G2JDF.js} +2 -2
  20. package/dist/{chunk-ZFDYANKZ.js → chunk-A4JZESAS.js} +14 -12
  21. package/dist/{chunk-4QVTXKRX.js → chunk-AAFUVYVP.js} +1 -1
  22. package/dist/chunk-ABSTTY5Q.js +7 -0
  23. package/dist/{chunk-KOD6R7U5.js → chunk-AI6DCUWK.js} +1 -1
  24. package/dist/{chunk-54WKLEUU.js → chunk-BMSSV6NX.js} +1 -1
  25. package/dist/{chunk-TKERS7F6.js → chunk-CHK5DOMV.js} +2 -2
  26. package/dist/{chunk-HV6SRK57.js → chunk-CMQELZES.js} +2 -2
  27. package/dist/{chunk-FUC2Z5QZ.js → chunk-CZCPVHVB.js} +2 -2
  28. package/dist/{chunk-SW6GFFIG.js → chunk-CZQER3QD.js} +1 -1
  29. package/dist/{chunk-CY3LZRBR.js → chunk-D73OOC3E.js} +3 -3
  30. package/dist/{chunk-44UNWWP3.js → chunk-DCFB5MJ7.js} +13 -13
  31. package/dist/{chunk-VRZRCDI4.js → chunk-DNVKN2FG.js} +5 -5
  32. package/dist/{chunk-E6XGSPA6.js → chunk-EMXTALIX.js} +1 -1
  33. package/dist/{chunk-GHIYWOAC.js → chunk-EV6PGQPM.js} +26 -40
  34. package/dist/{chunk-4CYGTH2J.js → chunk-F6EVBEMN.js} +2 -2
  35. package/dist/{chunk-GKBQAEH5.js → chunk-FO7I4E45.js} +17 -2
  36. package/dist/{chunk-MD7VQ24I.js → chunk-FT62PIPN.js} +119 -119
  37. package/dist/{chunk-5GVDRJLI.js → chunk-GGEAODIA.js} +7 -7
  38. package/dist/{chunk-IOWK2GBE.js → chunk-GNVEN6UE.js} +2 -2
  39. package/dist/{chunk-7TOLLB23.js → chunk-HA4AQO3T.js} +1 -1
  40. package/dist/{chunk-MGXWKJDU.js → chunk-HP4VPMN7.js} +2 -2
  41. package/dist/{chunk-YQP6EWZY.js → chunk-HRZNVE2K.js} +2 -2
  42. package/dist/{chunk-YYPRW5VJ.js → chunk-HZ63YB4Y.js} +4 -4
  43. package/dist/chunk-IL6J7EBZ.js +17 -0
  44. package/dist/{chunk-ZKJS5M5E.js → chunk-J7SV67XL.js} +1 -1
  45. package/dist/{chunk-HE76YUIL.js → chunk-JOQCJPOA.js} +11 -11
  46. package/dist/{chunk-UAFWDZRG.js → chunk-KBYU4ZQ3.js} +3 -3
  47. package/dist/{chunk-JXXIU52B.js → chunk-KFX7US6Y.js} +1 -1
  48. package/dist/{chunk-AXFZE7WZ.js → chunk-L6S22JUU.js} +4 -4
  49. package/dist/{chunk-C7TNFU3D.js → chunk-LL5YLPNM.js} +5 -5
  50. package/dist/{chunk-TSHXYNRZ.js → chunk-NYQLPSG3.js} +3 -3
  51. package/dist/{chunk-SBFDPMTS.js → chunk-OA3BZAST.js} +3 -3
  52. package/dist/{chunk-4YN25H5H.js → chunk-PNSZAJL7.js} +2 -2
  53. package/dist/{chunk-CB2PBQ2G.js → chunk-RSAYBOK5.js} +3 -3
  54. package/dist/{chunk-FEJU2K4L.js → chunk-S6AOKANU.js} +3 -3
  55. package/dist/{chunk-PK4E5P4Q.js → chunk-SGSLTG65.js} +3 -3
  56. package/dist/{chunk-3TKO2L4T.js → chunk-SKXCT2FQ.js} +2 -2
  57. package/dist/{chunk-QSVZXM35.js → chunk-SRHSJOES.js} +1 -1
  58. package/dist/{chunk-MO5PIHUX.js → chunk-TM2NGRD2.js} +1 -1
  59. package/dist/{chunk-POTDIFIX.js → chunk-TM3C4LEG.js} +2 -2
  60. package/dist/{chunk-LWYMD7X4.js → chunk-TVLELY54.js} +5 -5
  61. package/dist/{chunk-AHIR5UAO.js → chunk-UBYBILLK.js} +2 -2
  62. package/dist/{chunk-3BMKXP5E.js → chunk-UNULJ3P6.js} +5 -5
  63. package/dist/{chunk-VENBTZHV.js → chunk-UVGBD7XM.js} +2 -2
  64. package/dist/{chunk-WIFHFWAN.js → chunk-VUXU77SU.js} +1 -1
  65. package/dist/{chunk-UKAPI3BN.js → chunk-VYTN6ASZ.js} +2 -2
  66. package/dist/{chunk-UA3XC7J6.js → chunk-W3BAJ3HT.js} +11 -11
  67. package/dist/{chunk-SMDDRU6V.js → chunk-WV5AB4ZB.js} +73 -41
  68. package/dist/{chunk-CZH4OCQY.js → chunk-XP3BAAUO.js} +2 -2
  69. package/dist/{chunk-RVT4NV6Z.js → chunk-XUVCOSIE.js} +2 -2
  70. package/dist/{chunk-KYTOF4WO.js → chunk-XUWFUTR4.js} +1 -1
  71. package/dist/{chunk-RHHYOFN6.js → chunk-YRYVSAWS.js} +1 -1
  72. package/dist/{chunk-KBL7GU4S.js → chunk-ZNZAY47J.js} +3 -3
  73. package/dist/components/Badge.cjs +34 -17
  74. package/dist/components/Badge.js +80 -80
  75. package/dist/components/Banner/Banner.cjs +34 -17
  76. package/dist/components/Banner/Banner.d.cts +1 -1
  77. package/dist/components/Banner/Banner.d.ts +1 -1
  78. package/dist/components/Banner/Banner.js +79 -79
  79. package/dist/components/Button.cjs +51 -48
  80. package/dist/components/Button.d.cts +2 -5
  81. package/dist/components/Button.d.ts +2 -5
  82. package/dist/components/Button.js +81 -81
  83. package/dist/components/ButtonRow.cjs +51 -48
  84. package/dist/components/ButtonRow.d.cts +1 -1
  85. package/dist/components/ButtonRow.d.ts +1 -1
  86. package/dist/components/ButtonRow.js +83 -83
  87. package/dist/components/CardPage.cjs +30 -13
  88. package/dist/components/CardPage.js +85 -85
  89. package/dist/components/Checkbox.js +5 -5
  90. package/dist/components/CodeBlock.cjs +34 -17
  91. package/dist/components/CodeBlock.js +68 -68
  92. package/dist/components/CodeInput/CodeInput.cjs +30 -13
  93. package/dist/components/CodeInput/CodeInput.js +8 -8
  94. package/dist/components/CodeInput/SingleCodeInput.cjs +30 -13
  95. package/dist/components/CodeInput/SingleCodeInput.js +7 -7
  96. package/dist/components/Collapsible.cjs +34 -17
  97. package/dist/components/Collapsible.js +65 -65
  98. package/dist/components/CommaNumberInput.cjs +34 -17
  99. package/dist/components/CommaNumberInput.d.cts +1 -1
  100. package/dist/components/CommaNumberInput.d.ts +1 -1
  101. package/dist/components/CommaNumberInput.js +71 -71
  102. package/dist/components/ContentTable.cjs +34 -17
  103. package/dist/components/ContentTable.js +64 -64
  104. package/dist/components/CopyToClipboardButton.cjs +34 -17
  105. package/dist/components/CopyToClipboardButton.js +66 -66
  106. package/dist/components/CurrencyAmount.cjs +34 -17
  107. package/dist/components/CurrencyAmount.js +64 -64
  108. package/dist/components/Drawer.cjs +53 -50
  109. package/dist/components/Drawer.js +82 -82
  110. package/dist/components/Dropdown.cjs +34 -17
  111. package/dist/components/Dropdown.d.cts +1 -1
  112. package/dist/components/Dropdown.d.ts +1 -1
  113. package/dist/components/Dropdown.js +66 -66
  114. package/dist/components/FileInput.cjs +34 -17
  115. package/dist/components/FileInput.js +70 -70
  116. package/dist/components/Flex.cjs +51 -0
  117. package/dist/components/Flex.d.cts +11 -0
  118. package/dist/components/Flex.d.ts +11 -0
  119. package/dist/components/Flex.js +7 -0
  120. package/dist/components/GradientCardHeader.js +7 -7
  121. package/dist/components/Icon/Icon.cjs +34 -17
  122. package/dist/components/Icon/Icon.d.cts +1 -1
  123. package/dist/components/Icon/Icon.d.ts +1 -1
  124. package/dist/components/Icon/Icon.js +63 -63
  125. package/dist/components/IconWithCircleBackground.cjs +7733 -0
  126. package/dist/components/IconWithCircleBackground.d.cts +8 -0
  127. package/dist/components/IconWithCircleBackground.d.ts +8 -0
  128. package/dist/components/IconWithCircleBackground.js +198 -0
  129. package/dist/components/InfoIconTooltip.cjs +34 -17
  130. package/dist/components/InfoIconTooltip.d.cts +1 -1
  131. package/dist/components/InfoIconTooltip.d.ts +1 -1
  132. package/dist/components/InfoIconTooltip.js +80 -80
  133. package/dist/components/LightsparkProvider.cjs +30 -13
  134. package/dist/components/LightsparkProvider.js +6 -6
  135. package/dist/components/Loading.cjs +34 -17
  136. package/dist/components/Loading.js +64 -64
  137. package/dist/components/Modal.cjs +126 -87
  138. package/dist/components/Modal.d.cts +6 -3
  139. package/dist/components/Modal.d.ts +6 -3
  140. package/dist/components/Modal.js +129 -86
  141. package/dist/components/PageSection/PageSection.cjs +34 -17
  142. package/dist/components/PageSection/PageSection.d.cts +1 -1
  143. package/dist/components/PageSection/PageSection.d.ts +1 -1
  144. package/dist/components/PageSection/PageSection.js +90 -90
  145. package/dist/components/PageSection/PageSectionNav.cjs +34 -17
  146. package/dist/components/PageSection/PageSectionNav.js +81 -81
  147. package/dist/components/PhoneInput.cjs +34 -17
  148. package/dist/components/PhoneInput.d.cts +1 -1
  149. package/dist/components/PhoneInput.d.ts +1 -1
  150. package/dist/components/PhoneInput.js +71 -71
  151. package/dist/components/Pill.cjs +34 -17
  152. package/dist/components/Pill.js +67 -67
  153. package/dist/components/ProgressBar.cjs +30 -13
  154. package/dist/components/ProgressBar.js +5 -5
  155. package/dist/components/Radio.cjs +34 -17
  156. package/dist/components/Radio.js +80 -80
  157. package/dist/components/SecretContainer.cjs +34 -17
  158. package/dist/components/SecretContainer.js +67 -67
  159. package/dist/components/StatusIndicator.js +6 -6
  160. package/dist/components/TextButton.cjs +34 -17
  161. package/dist/components/TextButton.d.cts +1 -1
  162. package/dist/components/TextButton.d.ts +1 -1
  163. package/dist/components/TextButton.js +80 -80
  164. package/dist/components/TextIconAligner.cjs +34 -17
  165. package/dist/components/TextIconAligner.d.cts +1 -1
  166. package/dist/components/TextIconAligner.d.ts +1 -1
  167. package/dist/components/TextIconAligner.js +78 -78
  168. package/dist/components/TextInput.cjs +34 -17
  169. package/dist/components/TextInput.d.cts +1 -1
  170. package/dist/components/TextInput.d.ts +1 -1
  171. package/dist/components/TextInput.js +70 -70
  172. package/dist/components/Toasts.cjs +34 -17
  173. package/dist/components/Toasts.d.cts +1 -1
  174. package/dist/components/Toasts.d.ts +1 -1
  175. package/dist/components/Toasts.js +81 -81
  176. package/dist/components/Toggle.cjs +30 -13
  177. package/dist/components/Toggle.js +6 -6
  178. package/dist/components/Tooltip.cjs +30 -13
  179. package/dist/components/Tooltip.js +5 -5
  180. package/dist/components/UnstyledButton.js +5 -5
  181. package/dist/components/documentation/AnchorLinkHeader.cjs +34 -17
  182. package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
  183. package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
  184. package/dist/components/documentation/AnchorLinkHeader.js +69 -69
  185. package/dist/components/documentation/DocsBodyParagraph.cjs +30 -13
  186. package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
  187. package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
  188. package/dist/components/documentation/DocsBodyParagraph.js +67 -67
  189. package/dist/components/documentation/DocsBodyStrongParagraph.cjs +30 -13
  190. package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
  191. package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
  192. package/dist/components/documentation/DocsBodyStrongParagraph.js +67 -67
  193. package/dist/components/documentation/DocsHeadline.cjs +30 -13
  194. package/dist/components/documentation/DocsHeadline.d.cts +1 -1
  195. package/dist/components/documentation/DocsHeadline.d.ts +1 -1
  196. package/dist/components/documentation/DocsHeadline.js +68 -68
  197. package/dist/components/documentation/Video.js +4 -4
  198. package/dist/components/documentation/index.cjs +34 -17
  199. package/dist/components/documentation/index.d.cts +1 -1
  200. package/dist/components/documentation/index.d.ts +1 -1
  201. package/dist/components/documentation/index.js +69 -69
  202. package/dist/components/index.cjs +243 -202
  203. package/dist/components/index.d.cts +3 -1
  204. package/dist/components/index.d.ts +3 -1
  205. package/dist/components/index.js +138 -132
  206. package/dist/components/typography/Article.cjs +30 -13
  207. package/dist/components/typography/Article.js +74 -74
  208. package/dist/components/typography/Body.cjs +34 -17
  209. package/dist/components/typography/Body.d.cts +1 -1
  210. package/dist/components/typography/Body.d.ts +1 -1
  211. package/dist/components/typography/Body.js +67 -67
  212. package/dist/components/typography/BodyStrong.cjs +34 -17
  213. package/dist/components/typography/BodyStrong.d.cts +1 -1
  214. package/dist/components/typography/BodyStrong.d.ts +1 -1
  215. package/dist/components/typography/BodyStrong.js +67 -67
  216. package/dist/components/typography/Code.cjs +34 -17
  217. package/dist/components/typography/Code.d.cts +1 -1
  218. package/dist/components/typography/Code.d.ts +1 -1
  219. package/dist/components/typography/Code.js +67 -67
  220. package/dist/components/typography/Display.cjs +34 -17
  221. package/dist/components/typography/Display.d.cts +1 -1
  222. package/dist/components/typography/Display.d.ts +1 -1
  223. package/dist/components/typography/Display.js +67 -67
  224. package/dist/components/typography/Headline.cjs +34 -17
  225. package/dist/components/typography/Headline.d.cts +1 -1
  226. package/dist/components/typography/Headline.d.ts +1 -1
  227. package/dist/components/typography/Headline.js +67 -67
  228. package/dist/components/typography/Label.cjs +34 -17
  229. package/dist/components/typography/Label.d.cts +1 -1
  230. package/dist/components/typography/Label.d.ts +1 -1
  231. package/dist/components/typography/Label.js +67 -67
  232. package/dist/components/typography/LabelModerate.cjs +34 -17
  233. package/dist/components/typography/LabelModerate.d.cts +1 -1
  234. package/dist/components/typography/LabelModerate.d.ts +1 -1
  235. package/dist/components/typography/LabelModerate.js +67 -67
  236. package/dist/components/typography/LabelStrong.cjs +34 -17
  237. package/dist/components/typography/LabelStrong.d.cts +1 -1
  238. package/dist/components/typography/LabelStrong.d.ts +1 -1
  239. package/dist/components/typography/LabelStrong.js +67 -67
  240. package/dist/components/typography/Overline.cjs +34 -17
  241. package/dist/components/typography/Overline.d.cts +1 -1
  242. package/dist/components/typography/Overline.d.ts +1 -1
  243. package/dist/components/typography/Overline.js +67 -67
  244. package/dist/components/typography/Title.cjs +34 -17
  245. package/dist/components/typography/Title.d.cts +1 -1
  246. package/dist/components/typography/Title.d.ts +1 -1
  247. package/dist/components/typography/Title.js +67 -67
  248. package/dist/components/typography/index.cjs +34 -17
  249. package/dist/components/typography/index.d.cts +1 -1
  250. package/dist/components/typography/index.d.ts +1 -1
  251. package/dist/components/typography/index.js +86 -86
  252. package/dist/components/typography/renderTypography.cjs +34 -17
  253. package/dist/components/typography/renderTypography.d.cts +1 -1
  254. package/dist/components/typography/renderTypography.d.ts +1 -1
  255. package/dist/components/typography/renderTypography.js +77 -77
  256. package/dist/hooks/useDocumentTitle.cjs +56 -0
  257. package/dist/hooks/useDocumentTitle.d.cts +3 -0
  258. package/dist/hooks/useDocumentTitle.d.ts +3 -0
  259. package/dist/hooks/useDocumentTitle.js +20 -0
  260. package/dist/hooks/useIsomorphicLayoutEffect.cjs +41 -0
  261. package/dist/hooks/useIsomorphicLayoutEffect.d.cts +5 -0
  262. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +5 -0
  263. package/dist/hooks/useIsomorphicLayoutEffect.js +7 -0
  264. package/dist/icons/ArrowUpRightCircleFill.cjs +2 -2
  265. package/dist/icons/ArrowUpRightCircleFill.js +1 -1
  266. package/dist/icons/Figma.cjs +2 -2
  267. package/dist/icons/Figma.js +1 -1
  268. package/dist/icons/index.cjs +4 -4
  269. package/dist/icons/index.js +121 -121
  270. package/dist/router.js +2 -2
  271. package/dist/styles/buttons.cjs +17 -2
  272. package/dist/styles/buttons.d.cts +1 -1
  273. package/dist/styles/buttons.d.ts +1 -1
  274. package/dist/styles/buttons.js +1 -1
  275. package/dist/styles/colors.cjs +1 -1
  276. package/dist/styles/colors.d.cts +1 -1
  277. package/dist/styles/colors.d.ts +1 -1
  278. package/dist/styles/colors.js +1 -1
  279. package/dist/styles/common.cjs +30 -13
  280. package/dist/styles/common.d.cts +1 -1
  281. package/dist/styles/common.d.ts +1 -1
  282. package/dist/styles/common.js +4 -4
  283. package/dist/styles/fields.cjs +30 -13
  284. package/dist/styles/fields.d.cts +1 -1
  285. package/dist/styles/fields.d.ts +1 -1
  286. package/dist/styles/fields.js +6 -6
  287. package/dist/styles/global.cjs +30 -13
  288. package/dist/styles/global.d.cts +1 -1
  289. package/dist/styles/global.d.ts +1 -1
  290. package/dist/styles/global.js +5 -5
  291. package/dist/styles/themes.cjs +30 -13
  292. package/dist/styles/themes.d.cts +1 -1
  293. package/dist/styles/themes.d.ts +1 -1
  294. package/dist/styles/themes.js +3 -3
  295. package/dist/styles/type.d.cts +1 -1
  296. package/dist/styles/type.d.ts +1 -1
  297. package/dist/styles/type.js +6 -6
  298. package/dist/styles/typography.cjs +30 -13
  299. package/dist/styles/typography.d.cts +1 -1
  300. package/dist/styles/typography.d.ts +1 -1
  301. package/dist/styles/typography.js +4 -4
  302. package/dist/styles/utils.js +5 -5
  303. package/dist/utils/toNonTypographicReactNodes.cjs +34 -17
  304. package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
  305. package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
  306. package/dist/utils/toNonTypographicReactNodes.js +65 -65
  307. package/dist/utils/toReactNodes.cjs +34 -17
  308. package/dist/utils/toReactNodes.d.cts +1 -1
  309. package/dist/utils/toReactNodes.d.ts +1 -1
  310. package/dist/utils/toReactNodes.js +78 -78
  311. package/package.json +1 -1
@@ -83,7 +83,7 @@ __export(Modal_exports, {
83
83
  Modal: () => Modal
84
84
  });
85
85
  module.exports = __toCommonJS(Modal_exports);
86
- var import_styled18 = __toESM(require("@emotion/styled"), 1);
86
+ var import_styled20 = __toESM(require("@emotion/styled"), 1);
87
87
  var import_react31 = __toESM(require("react"), 1);
88
88
  var import_react_dom2 = __toESM(require("react-dom"), 1);
89
89
 
@@ -281,7 +281,7 @@ var colors = baseColors;
281
281
  function isColorKey(key) {
282
282
  return key in colors;
283
283
  }
284
- function hcNeutralFromBg(bgHex, defaultHex, altHex) {
284
+ function hcNeutralFromBg(bgHex, defaultHex = colors.black, altHex = colors.white) {
285
285
  const bgRGB = hexToRGB(bgHex);
286
286
  const hcRGB = hexToRGB(defaultHex);
287
287
  if (!bgRGB || !hcRGB)
@@ -322,7 +322,8 @@ var import_deepmerge = __toESM(require("deepmerge"), 1);
322
322
  // src/styles/buttons.tsx
323
323
  var buttonsThemeBase = {
324
324
  defaultSize: "Small",
325
- defaultTypography: "Body Strong",
325
+ defaultTypographyType: "Body Strong",
326
+ defaultColor: "text",
326
327
  defaultBorderRadius: 32,
327
328
  defaultBorderWidth: 1,
328
329
  defaultBackgroundColor: "bg",
@@ -346,6 +347,7 @@ var buttonsThemeBase = {
346
347
  var defaultButtonsTheme = __spreadProps(__spreadValues({}, buttonsThemeBase), {
347
348
  kinds: {
348
349
  primary: {
350
+ defaultColor: "bg",
349
351
  defaultBorderWidth: 0,
350
352
  defaultBackgroundColor: "c9Neutral",
351
353
  defaultBorderColor: "c9Neutral",
@@ -373,7 +375,20 @@ var defaultButtonsTheme = __spreadProps(__spreadValues({}, buttonsThemeBase), {
373
375
  defaultHoverBorderColor: ["gray90", "gray20"]
374
376
  },
375
377
  blue39: {
376
- defaultBorderColor: "blue39"
378
+ defaultBorderColor: "blue39",
379
+ defaultColor: "gray98"
380
+ },
381
+ blue43: {
382
+ defaultColor: "white"
383
+ },
384
+ green33: {
385
+ defaultColor: "white"
386
+ },
387
+ purple55: {
388
+ defaultColor: "white"
389
+ },
390
+ danger: {
391
+ defaultColor: "white"
377
392
  }
378
393
  }
379
394
  });
@@ -3747,28 +3762,30 @@ var bridgeBaseSettings = {
3747
3762
  code: "Monaco"
3748
3763
  }),
3749
3764
  buttons: (0, import_deepmerge.default)(buttonsThemeBase, {
3750
- defaultTypography: "Title",
3765
+ defaultTypographyType: "Title",
3751
3766
  defaultSize: "Medium",
3752
3767
  defaultBorderRadius: 8,
3753
3768
  defaultBorderWidth: 0,
3769
+ defaultPaddingsY: {
3770
+ ExtraSmall: 14,
3771
+ Small: 14,
3772
+ Schmedium: 14,
3773
+ Medium: 14,
3774
+ Mlarge: 14,
3775
+ Large: 14
3776
+ },
3754
3777
  kinds: {
3755
3778
  primary: {
3779
+ defaultColor: "bg",
3756
3780
  defaultBackgroundColor: "blue39",
3757
3781
  defaultHoverBackgroundColor: "blue37"
3758
3782
  },
3759
3783
  ghost: {
3784
+ defaultColor: "secondary",
3760
3785
  defaultBackgroundColor: "transparent",
3761
3786
  defaultBorderWidth: 0,
3762
3787
  defaultHoverBackgroundColor: "transparent",
3763
- defaultHoverBorderColor: "transparent",
3764
- defaultPaddingsY: {
3765
- ExtraSmall: 0,
3766
- Small: 0,
3767
- Schmedium: 0,
3768
- Medium: 0,
3769
- Mlarge: 0,
3770
- Large: 0
3771
- }
3788
+ defaultHoverBorderColor: "transparent"
3772
3789
  },
3773
3790
  secondary: {
3774
3791
  defaultBackgroundColor: "transparent",
@@ -4524,8 +4541,8 @@ function ArrowUpRightCircleFill() {
4524
4541
  children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4525
4542
  "path",
4526
4543
  {
4527
- "fill-rule": "evenodd",
4528
- "clip-rule": "evenodd",
4544
+ fillRule: "evenodd",
4545
+ clipRule: "evenodd",
4529
4546
  d: "M20 1.25C30.3553 1.25 38.75 9.64468 38.75 20C38.75 30.3553 30.3553 38.75 20 38.75C9.64468 38.75 1.25 30.3553 1.25 20C1.25 9.64468 9.64468 1.25 20 1.25ZM15.4392 12.4122C14.8869 12.4122 14.4392 12.8599 14.4392 13.4122C14.4392 13.9644 14.8869 14.4122 15.4392 14.4122H24.1736L12.7051 25.8807C12.3146 26.2713 12.3146 26.9044 12.7051 27.2949C13.0956 27.6855 13.7288 27.6855 14.1193 27.2949L25.5879 15.8263V24.5608C25.5879 25.1131 26.0356 25.5608 26.5879 25.5608C27.1402 25.5608 27.5879 25.1131 27.5879 24.5608V13.4122C27.5879 12.8599 27.1402 12.4122 26.5879 12.4122H15.4392Z",
4530
4547
  fill: "black"
4531
4548
  }
@@ -5426,8 +5443,8 @@ function Figma() {
5426
5443
  children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5427
5444
  "path",
5428
5445
  {
5429
- "fill-rule": "evenodd",
5430
- "clip-rule": "evenodd",
5446
+ fillRule: "evenodd",
5447
+ clipRule: "evenodd",
5431
5448
  d: "M8.01074 9.04831C8.01074 5.43178 10.9425 2.5 14.5591 2.5L25.7952 2.5C29.4118 2.5 32.3435 5.43178 32.3435 9.04831C32.3435 11.3383 31.1681 13.3537 29.3876 14.5242C31.1681 15.6947 32.3435 17.7102 32.3435 20.0001C32.3435 23.6167 29.4118 26.5485 25.7952 26.5485H25.653C23.9575 26.5485 22.4126 25.9041 21.2496 24.847V30.8806C21.2496 34.5453 18.2412 37.5 14.5944 37.5C10.9868 37.5 8.01074 34.5772 8.01074 30.9517C8.01074 28.6617 9.18619 26.6463 10.9666 25.476C9.18618 24.3055 8.01074 22.2901 8.01074 20.0001C8.01074 17.7102 9.1862 15.6947 10.9667 14.5242C9.18621 13.3537 8.01074 11.3383 8.01074 9.04831ZM14.5591 13.4517C12.1272 13.4517 10.1557 11.4802 10.1557 9.04831C10.1557 6.61641 12.1272 4.64497 14.5591 4.64497L19.1047 4.64497V13.4517H14.5591ZM19.1047 15.5966H14.5591C12.1272 15.5966 10.1557 17.5682 10.1557 20.0001C10.1557 22.4321 12.1272 24.4035 14.5591 24.4035H19.1047V15.5966ZM19.1047 26.5485H14.5591C12.1271 26.5485 10.1557 28.5198 10.1557 30.9517C10.1557 33.3746 12.1535 35.355 14.5944 35.355C17.0746 35.355 19.1047 33.3428 19.1047 30.8806V26.5485ZM25.7952 15.5966L25.653 15.5968C23.2211 15.5968 21.2496 17.5682 21.2496 20.0001C21.2496 22.4321 23.2211 24.4035 25.653 24.4035H25.7952C28.2271 24.4035 30.1986 22.4321 30.1986 20.0001C30.1986 17.5682 28.227 15.5967 25.7952 15.5966C25.7953 15.5966 25.7952 15.5966 25.7952 15.5966ZM25.7952 14.5242V13.4517H21.2496V4.64497H25.7952C28.2271 4.64497 30.1986 6.61641 30.1986 9.04831C30.1986 11.4802 28.2271 13.4517 25.7952 13.4517",
5432
5449
  fill: "black"
5433
5450
  }
@@ -8573,22 +8590,6 @@ var UnstyledButton = import_styled14.default.button`
8573
8590
 
8574
8591
  // src/components/Button.tsx
8575
8592
  var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
8576
- function getDefaultTextColor({ kind }) {
8577
- switch (kind) {
8578
- case "blue43":
8579
- case "green33":
8580
- case "purple55":
8581
- case "danger":
8582
- return "white";
8583
- case "blue39":
8584
- return "gray98";
8585
- case "primary": {
8586
- return "bg";
8587
- }
8588
- default:
8589
- return "text";
8590
- }
8591
- }
8592
8593
  var roundPaddingsX = {
8593
8594
  [TokenSize.ExtraSmall]: 10,
8594
8595
  [TokenSize.Small]: 10,
@@ -8641,12 +8642,14 @@ function resolveProps(props, theme) {
8641
8642
  kind = "secondary",
8642
8643
  size: sizeProp,
8643
8644
  paddingY: paddingYType = "regular",
8644
- borderRadius
8645
+ borderRadius,
8646
+ typography: typographyProp
8645
8647
  } = _a, rest = __objRest(_a, [
8646
8648
  "kind",
8647
8649
  "size",
8648
8650
  "paddingY",
8649
- "borderRadius"
8651
+ "borderRadius",
8652
+ "typography"
8650
8653
  ]);
8651
8654
  const size2 = resolveProp(sizeProp, kind, "defaultSize", theme);
8652
8655
  const defaultPaddingsY = resolveProp(null, kind, "defaultPaddingsY", theme);
@@ -8672,9 +8675,15 @@ function resolveProps(props, theme) {
8672
8675
  kind,
8673
8676
  "defaultHoverBorderColor"
8674
8677
  );
8678
+ const typography = {
8679
+ type: (typographyProp == null ? void 0 : typographyProp.type) || resolveProp(null, kind, "defaultTypographyType", theme),
8680
+ color: (typographyProp == null ? void 0 : typographyProp.color) || resolveProp(null, kind, "defaultColor", theme),
8681
+ size: size2
8682
+ };
8675
8683
  return __spreadProps(__spreadValues({}, rest), {
8676
8684
  kind,
8677
8685
  size: size2,
8686
+ typography,
8678
8687
  paddingY: typeof defaultPaddingY === "number" ? defaultPaddingY : defaultPaddingY[paddingYType],
8679
8688
  borderRadius: resolveProp(borderRadius, kind, "defaultBorderRadius", theme),
8680
8689
  backgroundColor,
@@ -8718,12 +8727,6 @@ function Button(props) {
8718
8727
  borderRadius
8719
8728
  } = resolveProps(props, theme);
8720
8729
  const tooltipId = (0, import_react28.useRef)((0, import_lodash_es4.uniqueId)());
8721
- const fontColor = (typography == null ? void 0 : typography.color) || getDefaultTextColor({ kind, theme });
8722
- const buttonTypography = {
8723
- type: (typography == null ? void 0 : typography.type) || theme.buttons.defaultTypography,
8724
- size: size2,
8725
- color: fontColor
8726
- };
8727
8730
  const iconSize = size2 === "ExtraSmall" ? 12 : 16;
8728
8731
  let currentIcon = null;
8729
8732
  if (loading) {
@@ -8732,7 +8735,7 @@ function Button(props) {
8732
8735
  {
8733
8736
  iconSide,
8734
8737
  text,
8735
- typography: buttonTypography,
8738
+ typography,
8736
8739
  kind,
8737
8740
  children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Loading, { size: iconSize, center: false })
8738
8741
  }
@@ -8743,9 +8746,9 @@ function Button(props) {
8743
8746
  {
8744
8747
  iconSide,
8745
8748
  text,
8746
- typography: buttonTypography,
8749
+ typography,
8747
8750
  kind,
8748
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: icon, width: iconSize, color: fontColor })
8751
+ children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8749
8752
  }
8750
8753
  );
8751
8754
  }
@@ -8768,10 +8771,10 @@ function Button(props) {
8768
8771
  textOverflow: "ellipsis",
8769
8772
  overflow: "hidden"
8770
8773
  },
8771
- children: renderTypography(buttonTypography.type, {
8774
+ children: renderTypography(typography.type, {
8772
8775
  content: text,
8773
- color: buttonTypography.color,
8774
- size: buttonTypography.size
8776
+ color: typography.color,
8777
+ size: size2
8775
8778
  })
8776
8779
  }
8777
8780
  ),
@@ -8786,7 +8789,7 @@ function Button(props) {
8786
8789
  id,
8787
8790
  kind,
8788
8791
  type,
8789
- typography: buttonTypography,
8792
+ typography,
8790
8793
  onClick,
8791
8794
  fullWidth,
8792
8795
  iconSide,
@@ -8989,7 +8992,7 @@ var Drawer = (props) => {
8989
8992
  ] });
8990
8993
  };
8991
8994
  var Background = import_styled16.default.div`
8992
- position: absolute;
8995
+ position: fixed;
8993
8996
  top: 0;
8994
8997
  left: 0;
8995
8998
  width: 100%;
@@ -9013,7 +9016,7 @@ var Background = import_styled16.default.div`
9013
9016
  }
9014
9017
  `;
9015
9018
  var DrawerContainer = import_styled16.default.div`
9016
- position: absolute;
9019
+ position: fixed;
9017
9020
  width: 100%;
9018
9021
  background-color: ${({ theme }) => theme.bg};
9019
9022
  right: 0;
@@ -9082,10 +9085,27 @@ var GrabberBar = import_styled16.default.div`
9082
9085
  background: #c0c9d6;
9083
9086
  `;
9084
9087
 
9085
- // src/components/ProgressBar.tsx
9088
+ // src/components/IconWithCircleBackground.tsx
9089
+ var import_styled19 = __toESM(require("@emotion/styled"), 1);
9090
+
9091
+ // src/components/Flex.tsx
9086
9092
  var import_styled17 = __toESM(require("@emotion/styled"), 1);
9087
- var import_react30 = require("react");
9088
9093
  var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
9094
+ function Flex({ center = false, children, as = "div" }) {
9095
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(StyledFlex, { center, as, children });
9096
+ }
9097
+ var StyledFlex = import_styled17.default.div`
9098
+ display: flex;
9099
+ ${({ center }) => center && `
9100
+ justify-content: center;
9101
+ align-items: center;
9102
+ `}
9103
+ `;
9104
+
9105
+ // src/components/ProgressBar.tsx
9106
+ var import_styled18 = __toESM(require("@emotion/styled"), 1);
9107
+ var import_react30 = require("react");
9108
+ var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
9089
9109
  var defaultProps2 = {
9090
9110
  isSm: false,
9091
9111
  stepDuration: 0.5
@@ -9106,7 +9126,7 @@ function ProgressBar({
9106
9126
  }, 0);
9107
9127
  }
9108
9128
  }, [progressPercentage]);
9109
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ProgressBarContainer, { isSm, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9129
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ProgressBarContainer, { isSm, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9110
9130
  BarBg,
9111
9131
  {
9112
9132
  background,
@@ -9117,7 +9137,7 @@ function ProgressBar({
9117
9137
  ) }) });
9118
9138
  }
9119
9139
  ProgressBar.defaultProps = defaultProps2;
9120
- var ProgressBarContainer = import_styled17.default.div`
9140
+ var ProgressBarContainer = import_styled18.default.div`
9121
9141
  ${standardBorderRadius(16)}
9122
9142
  background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
9123
9143
  box-sizing: border-box;
@@ -9127,7 +9147,7 @@ var ProgressBarContainer = import_styled17.default.div`
9127
9147
  width: 100%;
9128
9148
  position: relative;
9129
9149
  `;
9130
- var BarBg = import_styled17.default.div`
9150
+ var BarBg = import_styled18.default.div`
9131
9151
  ${standardBorderRadius(16)}
9132
9152
  width: ${({ percentage }) => 100 / percentage * 100}%;
9133
9153
  height: 100%;
@@ -9141,7 +9161,7 @@ var BarBg = import_styled17.default.div`
9141
9161
  #3f2e7e 115.32%
9142
9162
  )`};
9143
9163
  `;
9144
- var Bar = import_styled17.default.div`
9164
+ var Bar = import_styled18.default.div`
9145
9165
  ${standardBorderRadius(16)}
9146
9166
  overflow: hidden;
9147
9167
  box-sizing: border-box;
@@ -9152,13 +9172,27 @@ var Bar = import_styled17.default.div`
9152
9172
  cubic-bezier(0.16, 0.3, 0.18, 1);
9153
9173
  `;
9154
9174
 
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
+
9155
9188
  // src/components/Modal.tsx
9156
- var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
9189
+ var import_jsx_runtime137 = require("@emotion/react/jsx-runtime");
9157
9190
  function isSubmitLinkWithHref(submitLink) {
9158
9191
  return Boolean(submitLink && "href" in submitLink);
9159
9192
  }
9160
9193
  function Modal({
9161
9194
  visible,
9195
+ topContent,
9162
9196
  title,
9163
9197
  description,
9164
9198
  children,
@@ -9280,9 +9314,9 @@ function Modal({
9280
9314
  }
9281
9315
  const linkIsHref = isSubmitLinkWithHref(submitLink);
9282
9316
  const linkIsRoute = !linkIsHref && submitLink;
9283
- const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
9317
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_jsx_runtime137.Fragment, { children: [
9284
9318
  extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((action) => action.content),
9285
- !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9319
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9286
9320
  Button,
9287
9321
  {
9288
9322
  disabled: cancelDisabled,
@@ -9290,7 +9324,7 @@ function Modal({
9290
9324
  text: cancelText
9291
9325
  }
9292
9326
  ),
9293
- onSubmit && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9327
+ (onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9294
9328
  Button,
9295
9329
  {
9296
9330
  kind: "primary",
@@ -9304,13 +9338,13 @@ function Modal({
9304
9338
  onClick: submitLink ? onSubmit : void 0
9305
9339
  }
9306
9340
  ),
9307
- isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Button, { onClick: onClose, text: cancelText }),
9341
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, { onClick: onClose, text: cancelText }),
9308
9342
  extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((action) => action.content)
9309
9343
  ] });
9310
9344
  let titleContent = null;
9311
9345
  if (title) {
9312
9346
  if (typeof title === "string") {
9313
- titleContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9347
+ titleContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9314
9348
  } else {
9315
9349
  titleContent = toReactNodes(title);
9316
9350
  }
@@ -9318,31 +9352,36 @@ function Modal({
9318
9352
  let descriptionContent = null;
9319
9353
  if (description) {
9320
9354
  if (typeof description === "string") {
9321
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Body, { size: "ExtraSmall", content: description }) });
9355
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Body, { size: "ExtraSmall", content: description }) });
9322
9356
  } else {
9323
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Description, { children: toReactNodes(description) });
9357
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: toReactNodes(description) });
9324
9358
  }
9325
9359
  }
9326
- const modalContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_react31.Fragment, { children: [
9327
- progressBar ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9360
+ let topContentNode = null;
9361
+ 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)) });
9363
+ }
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)(
9328
9366
  ProgressBar,
9329
9367
  {
9330
9368
  progressPercentage: progressBar.progressPercentage,
9331
9369
  isSm: progressBar.isSm
9332
9370
  }
9333
9371
  ) }) : null,
9372
+ topContentNode,
9334
9373
  titleContent,
9335
9374
  descriptionContent,
9336
9375
  children,
9337
- onSubmit || onCancel ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ModalButtonColumn, { children: buttonContent }) : null
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
9338
9377
  ] });
9339
9378
  let content;
9340
9379
  if (smDrawer && isSm) {
9341
- content = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Drawer, { onClose: () => onClickCloseButton(), closeButton: true, children: modalContent });
9380
+ content = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Drawer, { onClose: () => onClickCloseButton(), closeButton: true, children: modalContent });
9342
9381
  } else {
9343
- content = /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_react31.Fragment, { children: [
9344
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ModalOverlay, { ref: overlayRef }),
9345
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
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)(
9346
9385
  ModalContainer,
9347
9386
  {
9348
9387
  "aria-modal": true,
@@ -9350,27 +9389,27 @@ function Modal({
9350
9389
  tabIndex: -1,
9351
9390
  role: "dialog",
9352
9391
  ref: modalContainerRef,
9353
- children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(ModalContent, { width, ghost, children: [
9354
- !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
9355
- !(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(CloseButtonContainer2, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon, { name: "Close", width: 9 }) }) }),
9356
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ModalContentInner, { ghost, children: modalContent })
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 })
9357
9396
  ] })
9358
9397
  }
9359
9398
  )
9360
9399
  ] });
9361
9400
  }
9362
9401
  return visible && nodeReady && nodeRef.current ? import_react_dom2.default.createPortal(
9363
- onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9402
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9364
9403
  nodeRef.current
9365
9404
  ) : null;
9366
9405
  }
9367
- var DefaultFocusTarget = (0, import_styled18.default)(UnstyledButton)`
9406
+ var DefaultFocusTarget = (0, import_styled20.default)(UnstyledButton)`
9368
9407
  position: absolute;
9369
9408
  top: -30px;
9370
9409
  width: 0;
9371
9410
  height: 0;
9372
9411
  `;
9373
- var ModalOverlay = import_styled18.default.div`
9412
+ var ModalOverlay = import_styled20.default.div`
9374
9413
  position: fixed;
9375
9414
  bottom: 0;
9376
9415
  left: 0;
@@ -9379,7 +9418,7 @@ var ModalOverlay = import_styled18.default.div`
9379
9418
  height: 100vh;
9380
9419
  background: rgba(0, 0, 0, 0.5);
9381
9420
  `;
9382
- var ModalContainer = import_styled18.default.div`
9421
+ var ModalContainer = import_styled20.default.div`
9383
9422
  pointer-events: none;
9384
9423
  position: fixed;
9385
9424
  top: 0;
@@ -9397,14 +9436,14 @@ var ModalContainer = import_styled18.default.div`
9397
9436
  padding-top: ${standardContentInset.smPx}px;
9398
9437
  `;
9399
9438
  var contentTopMarginPx = 24;
9400
- var Description = import_styled18.default.div`
9439
+ var Description = import_styled20.default.div`
9401
9440
  color: ${({ theme }) => theme.mcNeutral};
9402
9441
  margin-top: ${"12px" /* sm */};
9403
9442
  & + * {
9404
9443
  margin-top: ${contentTopMarginPx}px;
9405
9444
  }
9406
9445
  `;
9407
- var ModalButtonRow = import_styled18.default.div`
9446
+ var ModalButtonRow = import_styled20.default.div`
9408
9447
  margin-top: ${"24px" /* lg */};
9409
9448
  ${bp.minSm(`display: flex;`)}
9410
9449
  gap: 10px;
@@ -9416,7 +9455,7 @@ var ModalButtonRow = import_styled18.default.div`
9416
9455
  `)}
9417
9456
  }
9418
9457
  `;
9419
- var ModalButtonColumn = import_styled18.default.div`
9458
+ var ModalButtonColumn = import_styled20.default.div`
9420
9459
  display: flex;
9421
9460
  flex-direction: column;
9422
9461
  gap: ${"12px" /* sm */};
@@ -9427,7 +9466,7 @@ var ModalButtonColumn = import_styled18.default.div`
9427
9466
 
9428
9467
  margin-top: ${"24px" /* lg */};
9429
9468
  `;
9430
- var ModalContent = import_styled18.default.div`
9469
+ var ModalContent = import_styled20.default.div`
9431
9470
  ${overflowAutoWithoutScrollbars}
9432
9471
  ${standardContentInset.smCSS}
9433
9472
  ${(props) => props.ghost ? "" : standardBorderRadius(16)}
@@ -9447,18 +9486,18 @@ var ModalContent = import_styled18.default.div`
9447
9486
  }
9448
9487
  }
9449
9488
  `;
9450
- var CloseButtonContainer2 = import_styled18.default.div`
9489
+ var CloseButtonContainer2 = import_styled20.default.div`
9451
9490
  display: flex;
9452
9491
  flex-direction: row;
9453
9492
  width: 100%;
9454
9493
  justify-content: flex-end;
9455
9494
  `;
9456
- var CloseButton = (0, import_styled18.default)(UnstyledButton)`
9495
+ var CloseButton = (0, import_styled20.default)(UnstyledButton)`
9457
9496
  ${standardFocusOutline}
9458
9497
  width: 24px;
9459
9498
  height: 24px;
9460
9499
  `;
9461
- var ModalContentInner = import_styled18.default.div`
9500
+ var ModalContentInner = import_styled20.default.div`
9462
9501
  ${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
9463
9502
  ${(props) => props.ghost ? "" : `${bp.sm(`
9464
9503
  padding-left: 10px;
@@ -1,12 +1,13 @@
1
- import react__default, { MutableRefObject } from 'react';
1
+ import react__default, { MutableRefObject, ComponentProps } from 'react';
2
2
  import { ToReactNodesArgs } from '../utils/toReactNodes.cjs';
3
+ import { IconWithCircleBackground } from './IconWithCircleBackground.cjs';
3
4
  import { ProgressBarProps } from './ProgressBar.cjs';
4
5
  import '@emotion/react/jsx-runtime';
5
6
  import './typography/renderTypography.cjs';
6
7
  import './typography/Code.cjs';
7
8
  import '@emotion/styled';
8
9
  import '@emotion/react';
9
- import '../buttons-73127447.js';
10
+ import '../buttons-b7f56076.js';
10
11
  import '../styles/tokens/typography.cjs';
11
12
  import '@emotion/css';
12
13
  import '../styles/colors.cjs';
@@ -140,9 +141,11 @@ type SubmitLinkWithHref = {
140
141
  href: string;
141
142
  filename?: string;
142
143
  };
144
+ type TopContent = ComponentProps<typeof IconWithCircleBackground>;
143
145
  type ModalProps<RoutesType extends string> = {
144
146
  visible: boolean;
145
147
  onClose: () => void;
148
+ topContent?: TopContent | undefined;
146
149
  title?: ToReactNodesArgs;
147
150
  description?: ToReactNodesArgs;
148
151
  cancelText?: string | undefined;
@@ -171,6 +174,6 @@ type ModalProps<RoutesType extends string> = {
171
174
  /** Allows placing extra buttons in the same button layout */
172
175
  extraActions?: ExtraAction[];
173
176
  };
174
- declare function Modal<RoutesType extends string>({ visible, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, submitLink, cancelText, firstFocusRef, smDrawer, nonDismissable, autoFocus, width, progressBar, buttonLayout, extraActions, }: ModalProps<RoutesType>): react__default.ReactPortal | null;
177
+ declare function Modal<RoutesType extends string>({ visible, topContent, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, submitLink, cancelText, firstFocusRef, smDrawer, nonDismissable, autoFocus, width, progressBar, buttonLayout, extraActions, }: ModalProps<RoutesType>): react__default.ReactPortal | null;
175
178
 
176
179
  export { ExtraAction, Modal };
@@ -1,12 +1,13 @@
1
- import react__default, { MutableRefObject } from 'react';
1
+ import react__default, { MutableRefObject, ComponentProps } from 'react';
2
2
  import { ToReactNodesArgs } from '../utils/toReactNodes.js';
3
+ import { IconWithCircleBackground } from './IconWithCircleBackground.js';
3
4
  import { ProgressBarProps } from './ProgressBar.js';
4
5
  import '@emotion/react/jsx-runtime';
5
6
  import './typography/renderTypography.js';
6
7
  import './typography/Code.js';
7
8
  import '@emotion/styled';
8
9
  import '@emotion/react';
9
- import '../buttons-5a4562d5.js';
10
+ import '../buttons-e4eb84a2.js';
10
11
  import '../styles/tokens/typography.js';
11
12
  import '@emotion/css';
12
13
  import '../styles/colors.js';
@@ -140,9 +141,11 @@ type SubmitLinkWithHref = {
140
141
  href: string;
141
142
  filename?: string;
142
143
  };
144
+ type TopContent = ComponentProps<typeof IconWithCircleBackground>;
143
145
  type ModalProps<RoutesType extends string> = {
144
146
  visible: boolean;
145
147
  onClose: () => void;
148
+ topContent?: TopContent | undefined;
146
149
  title?: ToReactNodesArgs;
147
150
  description?: ToReactNodesArgs;
148
151
  cancelText?: string | undefined;
@@ -171,6 +174,6 @@ type ModalProps<RoutesType extends string> = {
171
174
  /** Allows placing extra buttons in the same button layout */
172
175
  extraActions?: ExtraAction[];
173
176
  };
174
- declare function Modal<RoutesType extends string>({ visible, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, submitLink, cancelText, firstFocusRef, smDrawer, nonDismissable, autoFocus, width, progressBar, buttonLayout, extraActions, }: ModalProps<RoutesType>): react__default.ReactPortal | null;
177
+ declare function Modal<RoutesType extends string>({ visible, topContent, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, submitLink, cancelText, firstFocusRef, smDrawer, nonDismissable, autoFocus, width, progressBar, buttonLayout, extraActions, }: ModalProps<RoutesType>): react__default.ReactPortal | null;
175
178
 
176
179
  export { ExtraAction, Modal };