@lightsparkdev/ui 1.0.1 → 1.0.3

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 (318) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{buttons-38b5823f.d.ts → buttons-35280bfe.d.ts} +40 -15
  3. package/dist/{buttons-a63671c2.d.ts → buttons-36cdd0fe.d.ts} +40 -15
  4. package/dist/{chunk-IOWK2GBE.js → chunk-2AGBCGOW.js} +2 -2
  5. package/dist/{chunk-BAQMHUBZ.js → chunk-2IXAUIKR.js} +2 -2
  6. package/dist/{chunk-YYPRW5VJ.js → chunk-2XUHQWCJ.js} +4 -4
  7. package/dist/{chunk-HV6SRK57.js → chunk-35PJW7RT.js} +2 -2
  8. package/dist/{chunk-NHZO42IA.js → chunk-435FPPZK.js} +2 -2
  9. package/dist/{chunk-ACYYMZQZ.js → chunk-4BFBANKF.js} +13 -13
  10. package/dist/{chunk-WIFHFWAN.js → chunk-4C2TISN7.js} +1 -1
  11. package/dist/{chunk-KBL7GU4S.js → chunk-4JHXRPRB.js} +3 -3
  12. package/dist/{chunk-RVT4NV6Z.js → chunk-54EOEIEN.js} +2 -2
  13. package/dist/{chunk-54WKLEUU.js → chunk-5TTLUOJ5.js} +1 -1
  14. package/dist/{chunk-FEJU2K4L.js → chunk-6CNJ5ZCC.js} +4 -4
  15. package/dist/{chunk-I5PGTS2V.js → chunk-7FHOKVKJ.js} +9 -9
  16. package/dist/{chunk-UKAPI3BN.js → chunk-7IHNYMFQ.js} +2 -2
  17. package/dist/{chunk-4CYGTH2J.js → chunk-7N2PFDYE.js} +2 -2
  18. package/dist/{chunk-JXXIU52B.js → chunk-7WDAN3OC.js} +1 -1
  19. package/dist/{chunk-GKH3ZH4N.js → chunk-7Y2G2JDF.js} +2 -2
  20. package/dist/{chunk-CZH4OCQY.js → chunk-7YY6BH5O.js} +2 -2
  21. package/dist/{chunk-4QVTXKRX.js → chunk-AAFUVYVP.js} +1 -1
  22. package/dist/chunk-ABSTTY5Q.js +7 -0
  23. package/dist/{chunk-NMJGBK5W.js → chunk-B6S7Y4K7.js} +2 -2
  24. package/dist/{chunk-3TKO2L4T.js → chunk-BDZ46Z2I.js} +2 -2
  25. package/dist/{chunk-E6XGSPA6.js → chunk-BENSR2YW.js} +1 -1
  26. package/dist/{chunk-BPZ7AV7W.js → chunk-BHP5YL2N.js} +1 -1
  27. package/dist/{chunk-NEH2HFAW.js → chunk-BSH6WRUZ.js} +3 -3
  28. package/dist/{chunk-2I6UL3CQ.js → chunk-C4KZC45Y.js} +125 -59
  29. package/dist/{chunk-4YN25H5H.js → chunk-CRTTTIAD.js} +2 -2
  30. package/dist/{chunk-TKERS7F6.js → chunk-DXA3WUSX.js} +2 -2
  31. package/dist/{chunk-SW6GFFIG.js → chunk-E4DUADXU.js} +1 -1
  32. package/dist/{chunk-GKBQAEH5.js → chunk-FO7I4E45.js} +17 -2
  33. package/dist/{chunk-MD7VQ24I.js → chunk-FT62PIPN.js} +119 -119
  34. package/dist/{chunk-FUC2Z5QZ.js → chunk-GSKTHUQJ.js} +2 -2
  35. package/dist/{chunk-POTDIFIX.js → chunk-GWHKALYQ.js} +2 -2
  36. package/dist/{chunk-TW4DU3WY.js → chunk-HGOGF6I7.js} +1 -1
  37. package/dist/{chunk-UAFWDZRG.js → chunk-I3FI3FNP.js} +4 -4
  38. package/dist/{chunk-ZFDYANKZ.js → chunk-IBZBPQMZ.js} +21 -15
  39. package/dist/chunk-IL6J7EBZ.js +17 -0
  40. package/dist/{chunk-VRZRCDI4.js → chunk-ILEZ6AWT.js} +5 -5
  41. package/dist/{chunk-LWYMD7X4.js → chunk-J3YVJWRG.js} +5 -5
  42. package/dist/{chunk-HXKKG2VQ.js → chunk-JNNJVBHF.js} +52 -7
  43. package/dist/{chunk-ZKJS5M5E.js → chunk-K7FYXGOI.js} +1 -1
  44. package/dist/{chunk-NPY3QVGG.js → chunk-KX5QZXCD.js} +1 -1
  45. package/dist/{chunk-TSHXYNRZ.js → chunk-LGKXPUSI.js} +3 -3
  46. package/dist/{chunk-KOD6R7U5.js → chunk-LH7GLNMY.js} +1 -1
  47. package/dist/{chunk-VENBTZHV.js → chunk-LIQSJ5R7.js} +2 -2
  48. package/dist/{chunk-UA3XC7J6.js → chunk-LOL5TJ3H.js} +11 -11
  49. package/dist/{chunk-HGYVPOA7.js → chunk-LTCJ6LNO.js} +1 -1
  50. package/dist/{chunk-YQP6EWZY.js → chunk-MRGHRTKA.js} +2 -2
  51. package/dist/{chunk-7TOLLB23.js → chunk-MWDDIXIP.js} +1 -1
  52. package/dist/{chunk-HE76YUIL.js → chunk-N2NPIZCV.js} +11 -11
  53. package/dist/{chunk-MO5PIHUX.js → chunk-OKXC33OU.js} +1 -1
  54. package/dist/{chunk-52POF2W4.js → chunk-PG2W2HVB.js} +6 -6
  55. package/dist/{chunk-QSVZXM35.js → chunk-PQKVR2BR.js} +1 -1
  56. package/dist/{chunk-RHHYOFN6.js → chunk-QQSV7XJX.js} +1 -1
  57. package/dist/{chunk-3A6TEYT3.js → chunk-RPNTFEXE.js} +1 -1
  58. package/dist/{chunk-CB2PBQ2G.js → chunk-SEZEDINC.js} +3 -3
  59. package/dist/{chunk-GHIYWOAC.js → chunk-SLKPLSJU.js} +27 -41
  60. package/dist/{chunk-AXFZE7WZ.js → chunk-SNFRMD6Z.js} +4 -4
  61. package/dist/{chunk-SBFDPMTS.js → chunk-UH5F35II.js} +3 -3
  62. package/dist/{chunk-44UNWWP3.js → chunk-VXKNN4SF.js} +13 -13
  63. package/dist/{chunk-AHIR5UAO.js → chunk-WGKUDRZ7.js} +2 -2
  64. package/dist/{chunk-MGXWKJDU.js → chunk-WTMJTGW4.js} +2 -2
  65. package/dist/{chunk-PK4E5P4Q.js → chunk-X4TGLNCH.js} +3 -3
  66. package/dist/{chunk-QVKXSZ63.js → chunk-XB4KQFK2.js} +2 -2
  67. package/dist/{chunk-QBJ57KNQ.js → chunk-XDP7GCYE.js} +3 -2
  68. package/dist/{chunk-5GVDRJLI.js → chunk-XM2HQVUK.js} +7 -7
  69. package/dist/{chunk-KYTOF4WO.js → chunk-XUWFUTR4.js} +1 -1
  70. package/dist/{chunk-C7TNFU3D.js → chunk-Y7RQUJUS.js} +5 -5
  71. package/dist/{chunk-CY3LZRBR.js → chunk-YIHC25WB.js} +3 -3
  72. package/dist/{chunk-3BMKXP5E.js → chunk-YRNEIRHM.js} +5 -5
  73. package/dist/components/Badge.cjs +43 -21
  74. package/dist/components/Badge.js +80 -80
  75. package/dist/components/Banner/Banner.cjs +43 -21
  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 +65 -56
  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 +65 -56
  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 +37 -16
  88. package/dist/components/CardPage.js +85 -85
  89. package/dist/components/Checkbox.js +5 -5
  90. package/dist/components/CodeBlock.cjs +46 -24
  91. package/dist/components/CodeBlock.js +68 -68
  92. package/dist/components/CodeInput/CodeInput.cjs +38 -17
  93. package/dist/components/CodeInput/CodeInput.js +8 -8
  94. package/dist/components/CodeInput/SingleCodeInput.cjs +38 -17
  95. package/dist/components/CodeInput/SingleCodeInput.js +7 -7
  96. package/dist/components/Collapsible.cjs +42 -21
  97. package/dist/components/Collapsible.js +65 -65
  98. package/dist/components/CommaNumberInput.cjs +47 -25
  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 +42 -21
  103. package/dist/components/ContentTable.js +64 -64
  104. package/dist/components/CopyToClipboardButton.cjs +46 -24
  105. package/dist/components/CopyToClipboardButton.js +66 -66
  106. package/dist/components/CurrencyAmount.cjs +42 -21
  107. package/dist/components/CurrencyAmount.js +64 -64
  108. package/dist/components/Drawer.cjs +236 -191
  109. package/dist/components/Drawer.d.cts +2 -0
  110. package/dist/components/Drawer.d.ts +2 -0
  111. package/dist/components/Drawer.js +82 -82
  112. package/dist/components/Dropdown.cjs +46 -24
  113. package/dist/components/Dropdown.d.cts +1 -1
  114. package/dist/components/Dropdown.d.ts +1 -1
  115. package/dist/components/Dropdown.js +66 -66
  116. package/dist/components/FileInput.cjs +42 -21
  117. package/dist/components/FileInput.js +70 -70
  118. package/dist/components/Flex.cjs +51 -0
  119. package/dist/components/Flex.d.cts +11 -0
  120. package/dist/components/Flex.d.ts +11 -0
  121. package/dist/components/Flex.js +7 -0
  122. package/dist/components/GradientCardHeader.js +7 -7
  123. package/dist/components/Icon/Icon.cjs +42 -21
  124. package/dist/components/Icon/Icon.d.cts +1 -1
  125. package/dist/components/Icon/Icon.d.ts +1 -1
  126. package/dist/components/Icon/Icon.js +63 -63
  127. package/dist/components/IconWithCircleBackground.cjs +7737 -0
  128. package/dist/components/IconWithCircleBackground.d.cts +8 -0
  129. package/dist/components/IconWithCircleBackground.d.ts +8 -0
  130. package/dist/components/IconWithCircleBackground.js +198 -0
  131. package/dist/components/InfoIconTooltip.cjs +47 -24
  132. package/dist/components/InfoIconTooltip.d.cts +1 -1
  133. package/dist/components/InfoIconTooltip.d.ts +1 -1
  134. package/dist/components/InfoIconTooltip.js +80 -80
  135. package/dist/components/LightsparkProvider.cjs +37 -16
  136. package/dist/components/LightsparkProvider.js +6 -6
  137. package/dist/components/Loading.cjs +42 -21
  138. package/dist/components/Loading.js +64 -64
  139. package/dist/components/Modal.cjs +229 -115
  140. package/dist/components/Modal.d.cts +18 -9
  141. package/dist/components/Modal.d.ts +18 -9
  142. package/dist/components/Modal.js +129 -86
  143. package/dist/components/PageSection/PageSection.cjs +47 -24
  144. package/dist/components/PageSection/PageSection.d.cts +1 -1
  145. package/dist/components/PageSection/PageSection.d.ts +1 -1
  146. package/dist/components/PageSection/PageSection.js +90 -90
  147. package/dist/components/PageSection/PageSectionNav.cjs +43 -21
  148. package/dist/components/PageSection/PageSectionNav.js +81 -81
  149. package/dist/components/PhoneInput.cjs +47 -25
  150. package/dist/components/PhoneInput.d.cts +1 -1
  151. package/dist/components/PhoneInput.d.ts +1 -1
  152. package/dist/components/PhoneInput.js +71 -71
  153. package/dist/components/Pill.cjs +42 -21
  154. package/dist/components/Pill.js +67 -67
  155. package/dist/components/ProgressBar.cjs +37 -16
  156. package/dist/components/ProgressBar.js +5 -5
  157. package/dist/components/Radio.cjs +43 -21
  158. package/dist/components/Radio.js +80 -80
  159. package/dist/components/SecretContainer.cjs +46 -24
  160. package/dist/components/SecretContainer.js +67 -67
  161. package/dist/components/StatusIndicator.js +6 -6
  162. package/dist/components/TextButton.cjs +43 -21
  163. package/dist/components/TextButton.d.cts +1 -1
  164. package/dist/components/TextButton.d.ts +1 -1
  165. package/dist/components/TextButton.js +80 -80
  166. package/dist/components/TextIconAligner.cjs +43 -21
  167. package/dist/components/TextIconAligner.d.cts +1 -1
  168. package/dist/components/TextIconAligner.d.ts +1 -1
  169. package/dist/components/TextIconAligner.js +78 -78
  170. package/dist/components/TextInput.cjs +47 -25
  171. package/dist/components/TextInput.d.cts +1 -1
  172. package/dist/components/TextInput.d.ts +1 -1
  173. package/dist/components/TextInput.js +70 -70
  174. package/dist/components/Toasts.cjs +43 -21
  175. package/dist/components/Toasts.d.cts +1 -1
  176. package/dist/components/Toasts.d.ts +1 -1
  177. package/dist/components/Toasts.js +81 -81
  178. package/dist/components/Toggle.cjs +37 -16
  179. package/dist/components/Toggle.js +6 -6
  180. package/dist/components/Tooltip.cjs +41 -19
  181. package/dist/components/Tooltip.js +5 -5
  182. package/dist/components/UnstyledButton.js +5 -5
  183. package/dist/components/documentation/AnchorLinkHeader.cjs +42 -21
  184. package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
  185. package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
  186. package/dist/components/documentation/AnchorLinkHeader.js +69 -69
  187. package/dist/components/documentation/DocsBodyParagraph.cjs +37 -16
  188. package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
  189. package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
  190. package/dist/components/documentation/DocsBodyParagraph.js +67 -67
  191. package/dist/components/documentation/DocsBodyStrongParagraph.cjs +37 -16
  192. package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
  193. package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
  194. package/dist/components/documentation/DocsBodyStrongParagraph.js +67 -67
  195. package/dist/components/documentation/DocsHeadline.cjs +37 -16
  196. package/dist/components/documentation/DocsHeadline.d.cts +1 -1
  197. package/dist/components/documentation/DocsHeadline.d.ts +1 -1
  198. package/dist/components/documentation/DocsHeadline.js +68 -68
  199. package/dist/components/documentation/Video.cjs +16 -0
  200. package/dist/components/documentation/Video.d.cts +7 -1
  201. package/dist/components/documentation/Video.d.ts +7 -1
  202. package/dist/components/documentation/Video.js +20 -4
  203. package/dist/components/documentation/index.cjs +42 -21
  204. package/dist/components/documentation/index.d.cts +1 -1
  205. package/dist/components/documentation/index.d.ts +1 -1
  206. package/dist/components/documentation/index.js +69 -69
  207. package/dist/components/index.cjs +347 -231
  208. package/dist/components/index.d.cts +3 -1
  209. package/dist/components/index.d.ts +3 -1
  210. package/dist/components/index.js +138 -132
  211. package/dist/components/typography/Article.cjs +37 -16
  212. package/dist/components/typography/Article.js +74 -74
  213. package/dist/components/typography/Body.cjs +43 -21
  214. package/dist/components/typography/Body.d.cts +1 -1
  215. package/dist/components/typography/Body.d.ts +1 -1
  216. package/dist/components/typography/Body.js +67 -67
  217. package/dist/components/typography/BodyStrong.cjs +43 -21
  218. package/dist/components/typography/BodyStrong.d.cts +1 -1
  219. package/dist/components/typography/BodyStrong.d.ts +1 -1
  220. package/dist/components/typography/BodyStrong.js +67 -67
  221. package/dist/components/typography/Code.cjs +43 -21
  222. package/dist/components/typography/Code.d.cts +1 -1
  223. package/dist/components/typography/Code.d.ts +1 -1
  224. package/dist/components/typography/Code.js +67 -67
  225. package/dist/components/typography/Display.cjs +43 -21
  226. package/dist/components/typography/Display.d.cts +1 -1
  227. package/dist/components/typography/Display.d.ts +1 -1
  228. package/dist/components/typography/Display.js +67 -67
  229. package/dist/components/typography/Headline.cjs +43 -21
  230. package/dist/components/typography/Headline.d.cts +1 -1
  231. package/dist/components/typography/Headline.d.ts +1 -1
  232. package/dist/components/typography/Headline.js +67 -67
  233. package/dist/components/typography/Label.cjs +43 -21
  234. package/dist/components/typography/Label.d.cts +1 -1
  235. package/dist/components/typography/Label.d.ts +1 -1
  236. package/dist/components/typography/Label.js +67 -67
  237. package/dist/components/typography/LabelModerate.cjs +43 -21
  238. package/dist/components/typography/LabelModerate.d.cts +1 -1
  239. package/dist/components/typography/LabelModerate.d.ts +1 -1
  240. package/dist/components/typography/LabelModerate.js +67 -67
  241. package/dist/components/typography/LabelStrong.cjs +43 -21
  242. package/dist/components/typography/LabelStrong.d.cts +1 -1
  243. package/dist/components/typography/LabelStrong.d.ts +1 -1
  244. package/dist/components/typography/LabelStrong.js +67 -67
  245. package/dist/components/typography/Overline.cjs +43 -21
  246. package/dist/components/typography/Overline.d.cts +1 -1
  247. package/dist/components/typography/Overline.d.ts +1 -1
  248. package/dist/components/typography/Overline.js +67 -67
  249. package/dist/components/typography/Title.cjs +43 -21
  250. package/dist/components/typography/Title.d.cts +1 -1
  251. package/dist/components/typography/Title.d.ts +1 -1
  252. package/dist/components/typography/Title.js +67 -67
  253. package/dist/components/typography/index.cjs +43 -21
  254. package/dist/components/typography/index.d.cts +1 -1
  255. package/dist/components/typography/index.d.ts +1 -1
  256. package/dist/components/typography/index.js +86 -86
  257. package/dist/components/typography/renderTypography.cjs +43 -21
  258. package/dist/components/typography/renderTypography.d.cts +1 -1
  259. package/dist/components/typography/renderTypography.d.ts +1 -1
  260. package/dist/components/typography/renderTypography.js +77 -77
  261. package/dist/hooks/useDocumentTitle.cjs +56 -0
  262. package/dist/hooks/useDocumentTitle.d.cts +3 -0
  263. package/dist/hooks/useDocumentTitle.d.ts +3 -0
  264. package/dist/hooks/useDocumentTitle.js +20 -0
  265. package/dist/hooks/useIsomorphicLayoutEffect.cjs +41 -0
  266. package/dist/hooks/useIsomorphicLayoutEffect.d.cts +5 -0
  267. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +5 -0
  268. package/dist/hooks/useIsomorphicLayoutEffect.js +7 -0
  269. package/dist/icons/ArrowUpRightCircleFill.cjs +2 -2
  270. package/dist/icons/ArrowUpRightCircleFill.js +1 -1
  271. package/dist/icons/Figma.cjs +2 -2
  272. package/dist/icons/Figma.js +1 -1
  273. package/dist/icons/index.cjs +4 -4
  274. package/dist/icons/index.js +121 -121
  275. package/dist/router.js +2 -2
  276. package/dist/styles/buttons.cjs +17 -2
  277. package/dist/styles/buttons.d.cts +1 -1
  278. package/dist/styles/buttons.d.ts +1 -1
  279. package/dist/styles/buttons.js +1 -1
  280. package/dist/styles/colors.cjs +1 -1
  281. package/dist/styles/colors.d.cts +1 -1
  282. package/dist/styles/colors.d.ts +1 -1
  283. package/dist/styles/colors.js +1 -1
  284. package/dist/styles/common.cjs +41 -19
  285. package/dist/styles/common.d.cts +3 -2
  286. package/dist/styles/common.d.ts +3 -2
  287. package/dist/styles/common.js +4 -4
  288. package/dist/styles/fields.cjs +38 -17
  289. package/dist/styles/fields.d.cts +1 -1
  290. package/dist/styles/fields.d.ts +1 -1
  291. package/dist/styles/fields.js +6 -6
  292. package/dist/styles/global.cjs +37 -16
  293. package/dist/styles/global.d.cts +1 -1
  294. package/dist/styles/global.d.ts +1 -1
  295. package/dist/styles/global.js +5 -5
  296. package/dist/styles/themes.cjs +37 -16
  297. package/dist/styles/themes.d.cts +1 -1
  298. package/dist/styles/themes.d.ts +1 -1
  299. package/dist/styles/themes.js +3 -3
  300. package/dist/styles/type.d.cts +1 -1
  301. package/dist/styles/type.d.ts +1 -1
  302. package/dist/styles/type.js +6 -6
  303. package/dist/styles/typography.cjs +37 -16
  304. package/dist/styles/typography.d.cts +1 -1
  305. package/dist/styles/typography.d.ts +1 -1
  306. package/dist/styles/typography.js +4 -4
  307. package/dist/styles/utils.js +5 -5
  308. package/dist/types/index.d.cts +1 -1
  309. package/dist/types/index.d.ts +1 -1
  310. package/dist/utils/toNonTypographicReactNodes.cjs +43 -21
  311. package/dist/utils/toNonTypographicReactNodes.d.cts +2 -1
  312. package/dist/utils/toNonTypographicReactNodes.d.ts +2 -1
  313. package/dist/utils/toNonTypographicReactNodes.js +65 -65
  314. package/dist/utils/toReactNodes.cjs +43 -21
  315. package/dist/utils/toReactNodes.d.cts +1 -1
  316. package/dist/utils/toReactNodes.d.ts +1 -1
  317. package/dist/utils/toReactNodes.js +78 -78
  318. 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
  });
@@ -3616,7 +3631,8 @@ var baseThemeColors = {
3616
3631
  success: colors.success,
3617
3632
  text: colors.black,
3618
3633
  vlcNeutral: colors.gray95,
3619
- warning: colors.warning
3634
+ warning: colors.warning,
3635
+ inputBackground: colors.white
3620
3636
  };
3621
3637
  var themeOrColorKeyValues = [
3622
3638
  ...Object.keys(baseThemeColors),
@@ -3664,7 +3680,8 @@ var darkBaseTheme = {
3664
3680
  vlcNeutral: colors.gray20,
3665
3681
  warning: colors.warning,
3666
3682
  buttons: defaultButtonsTheme,
3667
- loading: "LoadingSpinner"
3683
+ loading: "LoadingSpinner",
3684
+ inputBackground: colors.black
3668
3685
  };
3669
3686
  var lightTheme = extend(lightBaseTheme, {
3670
3687
  header: extendBase(lightBaseTheme, {
@@ -3703,6 +3720,7 @@ var umameDocsLightTheme = extend(lightTheme, {
3703
3720
  secondary: colors.grayBlue43,
3704
3721
  text: colors.grayBlue9,
3705
3722
  link: colors.blue39,
3723
+ inputBackground: colors.white,
3706
3724
  typography: getTypography("UmameDocs" /* UmameDocs */, {
3707
3725
  main: "Manrope",
3708
3726
  code: "Monaco"
@@ -3747,28 +3765,30 @@ var bridgeBaseSettings = {
3747
3765
  code: "Monaco"
3748
3766
  }),
3749
3767
  buttons: (0, import_deepmerge.default)(buttonsThemeBase, {
3750
- defaultTypography: "Title",
3768
+ defaultTypographyType: "Title",
3751
3769
  defaultSize: "Medium",
3752
3770
  defaultBorderRadius: 8,
3753
3771
  defaultBorderWidth: 0,
3772
+ defaultPaddingsY: {
3773
+ ExtraSmall: 14,
3774
+ Small: 14,
3775
+ Schmedium: 14,
3776
+ Medium: 14,
3777
+ Mlarge: 14,
3778
+ Large: 14
3779
+ },
3754
3780
  kinds: {
3755
3781
  primary: {
3782
+ defaultColor: "bg",
3756
3783
  defaultBackgroundColor: "blue39",
3757
3784
  defaultHoverBackgroundColor: "blue37"
3758
3785
  },
3759
3786
  ghost: {
3787
+ defaultColor: "secondary",
3760
3788
  defaultBackgroundColor: "transparent",
3761
3789
  defaultBorderWidth: 0,
3762
3790
  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
- }
3791
+ defaultHoverBorderColor: "transparent"
3772
3792
  },
3773
3793
  secondary: {
3774
3794
  defaultBackgroundColor: "transparent",
@@ -3785,7 +3805,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
3785
3805
  bg: colors.gray98,
3786
3806
  smBg: colors.gray98,
3787
3807
  text: colors.grayBlue9,
3788
- secondary: colors.grayBlue43
3808
+ secondary: colors.grayBlue43,
3809
+ inputBackground: colors.white
3789
3810
  }));
3790
3811
  var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
3791
3812
  type: "bridgeDark" /* BridgeDark */
@@ -3955,11 +3976,12 @@ var overlaySurfaceBorderColor = ({
3955
3976
  `;
3956
3977
  var overlaySurface = ({
3957
3978
  theme,
3958
- important = false
3979
+ important = false,
3980
+ border = true
3959
3981
  }) => import_react5.css`
3960
- background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
3982
+ background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
3961
3983
  ${important ? "!important" : ""};
3962
- border: 0.5px solid ${important ? "!important" : ""};
3984
+ ${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
3963
3985
  ${overlaySurfaceBorderColor({ theme, important })};
3964
3986
  ${themeOr(
3965
3987
  `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
@@ -4524,8 +4546,8 @@ function ArrowUpRightCircleFill() {
4524
4546
  children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4525
4547
  "path",
4526
4548
  {
4527
- "fill-rule": "evenodd",
4528
- "clip-rule": "evenodd",
4549
+ fillRule: "evenodd",
4550
+ clipRule: "evenodd",
4529
4551
  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
4552
  fill: "black"
4531
4553
  }
@@ -5426,8 +5448,8 @@ function Figma() {
5426
5448
  children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5427
5449
  "path",
5428
5450
  {
5429
- "fill-rule": "evenodd",
5430
- "clip-rule": "evenodd",
5451
+ fillRule: "evenodd",
5452
+ clipRule: "evenodd",
5431
5453
  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
5454
  fill: "black"
5433
5455
  }
@@ -7971,7 +7993,7 @@ var IconContainer = import_styled2.default.span`
7971
7993
  ${({ theme, fontColor }) => {
7972
7994
  const color = getFontColor(theme, fontColor, "inherit");
7973
7995
  return `
7974
- & svg {
7996
+ svg, path {
7975
7997
  color: ${getFontColor(theme, fontColor, "inherit")};
7976
7998
 
7977
7999
  /*
@@ -8126,6 +8148,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
8126
8148
  Link,
8127
8149
  {
8128
8150
  to: node.to,
8151
+ newTab: !!node.newTab,
8129
8152
  children: node.text
8130
8153
  },
8131
8154
  `link-${i}-${node.text.substr(0, 10)}`
@@ -8573,22 +8596,6 @@ var UnstyledButton = import_styled14.default.button`
8573
8596
 
8574
8597
  // src/components/Button.tsx
8575
8598
  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
8599
  var roundPaddingsX = {
8593
8600
  [TokenSize.ExtraSmall]: 10,
8594
8601
  [TokenSize.Small]: 10,
@@ -8611,7 +8618,7 @@ function getPaddingX(size2, kind, isRound) {
8611
8618
  function getPadding({ paddingY, kind, size: size2, iconSide, isRound }) {
8612
8619
  const paddingX = getPaddingX(size2, kind, isRound);
8613
8620
  const paddingForIcon = 0;
8614
- return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
8621
+ return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
8615
8622
  }
8616
8623
  function resolveBackgroundColorKey(theme, kind, defaultKey) {
8617
8624
  var _a;
@@ -8641,12 +8648,14 @@ function resolveProps(props, theme) {
8641
8648
  kind = "secondary",
8642
8649
  size: sizeProp,
8643
8650
  paddingY: paddingYType = "regular",
8644
- borderRadius
8651
+ borderRadius,
8652
+ typography: typographyProp
8645
8653
  } = _a, rest = __objRest(_a, [
8646
8654
  "kind",
8647
8655
  "size",
8648
8656
  "paddingY",
8649
- "borderRadius"
8657
+ "borderRadius",
8658
+ "typography"
8650
8659
  ]);
8651
8660
  const size2 = resolveProp(sizeProp, kind, "defaultSize", theme);
8652
8661
  const defaultPaddingsY = resolveProp(null, kind, "defaultPaddingsY", theme);
@@ -8672,9 +8681,15 @@ function resolveProps(props, theme) {
8672
8681
  kind,
8673
8682
  "defaultHoverBorderColor"
8674
8683
  );
8684
+ const typography = {
8685
+ type: (typographyProp == null ? void 0 : typographyProp.type) || resolveProp(null, kind, "defaultTypographyType", theme),
8686
+ color: (typographyProp == null ? void 0 : typographyProp.color) || resolveProp(null, kind, "defaultColor", theme),
8687
+ size: size2
8688
+ };
8675
8689
  return __spreadProps(__spreadValues({}, rest), {
8676
8690
  kind,
8677
8691
  size: size2,
8692
+ typography,
8678
8693
  paddingY: typeof defaultPaddingY === "number" ? defaultPaddingY : defaultPaddingY[paddingYType],
8679
8694
  borderRadius: resolveProp(borderRadius, kind, "defaultBorderRadius", theme),
8680
8695
  backgroundColor,
@@ -8718,12 +8733,6 @@ function Button(props) {
8718
8733
  borderRadius
8719
8734
  } = resolveProps(props, theme);
8720
8735
  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
8736
  const iconSize = size2 === "ExtraSmall" ? 12 : 16;
8728
8737
  let currentIcon = null;
8729
8738
  if (loading) {
@@ -8732,7 +8741,7 @@ function Button(props) {
8732
8741
  {
8733
8742
  iconSide,
8734
8743
  text,
8735
- typography: buttonTypography,
8744
+ typography,
8736
8745
  kind,
8737
8746
  children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Loading, { size: iconSize, center: false })
8738
8747
  }
@@ -8743,9 +8752,9 @@ function Button(props) {
8743
8752
  {
8744
8753
  iconSide,
8745
8754
  text,
8746
- typography: buttonTypography,
8755
+ typography,
8747
8756
  kind,
8748
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: icon, width: iconSize, color: fontColor })
8757
+ children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
8749
8758
  }
8750
8759
  );
8751
8760
  }
@@ -8768,10 +8777,10 @@ function Button(props) {
8768
8777
  textOverflow: "ellipsis",
8769
8778
  overflow: "hidden"
8770
8779
  },
8771
- children: renderTypography(buttonTypography.type, {
8780
+ children: renderTypography(typography.type, {
8772
8781
  content: text,
8773
- color: buttonTypography.color,
8774
- size: buttonTypography.size
8782
+ color: typography.color,
8783
+ size: size2
8775
8784
  })
8776
8785
  }
8777
8786
  ),
@@ -8786,7 +8795,7 @@ function Button(props) {
8786
8795
  id,
8787
8796
  kind,
8788
8797
  type,
8789
- typography: buttonTypography,
8798
+ typography,
8790
8799
  onClick,
8791
8800
  fullWidth,
8792
8801
  iconSide,
@@ -8917,6 +8926,9 @@ var Drawer = (props) => {
8917
8926
  const [grabbing, setGrabbing] = (0, import_react29.useState)(false);
8918
8927
  const drawerContainerRef = (0, import_react29.useRef)(null);
8919
8928
  const handleClose = () => {
8929
+ if (props.nonDismissable) {
8930
+ return;
8931
+ }
8920
8932
  setIsOpen(false);
8921
8933
  setTimeout(() => {
8922
8934
  props.onClose && props.onClose();
@@ -8926,6 +8938,9 @@ var Drawer = (props) => {
8926
8938
  };
8927
8939
  const handleTouchMove = (event) => {
8928
8940
  var _a, _b;
8941
+ if (props.nonDismissable) {
8942
+ return;
8943
+ }
8929
8944
  if (lastY === null) {
8930
8945
  setLastY(event.touches[0].clientY);
8931
8946
  } else {
@@ -8942,9 +8957,15 @@ var Drawer = (props) => {
8942
8957
  }
8943
8958
  };
8944
8959
  const handleTouchStart = () => {
8960
+ if (props.nonDismissable) {
8961
+ return;
8962
+ }
8945
8963
  setGrabbing(true);
8946
8964
  };
8947
8965
  const handleTouchEnd = () => {
8966
+ if (props.nonDismissable) {
8967
+ return;
8968
+ }
8948
8969
  setGrabbing(false);
8949
8970
  if (fractionVisible < 0.8) {
8950
8971
  handleClose();
@@ -8972,16 +8993,17 @@ var Drawer = (props) => {
8972
8993
  grabbing,
8973
8994
  ref: drawerContainerRef,
8974
8995
  children: [
8975
- props.grabber && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(GrabberBar, {}) }),
8976
- props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
8996
+ props.grabber && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(GrabberBar, {}) }),
8997
+ props.handleBack && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(BackButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
8977
8998
  Button,
8978
8999
  {
8979
- onClick: handleClose,
8980
- icon: "Close",
9000
+ onClick: props.handleBack,
9001
+ icon: "ChevronLeft",
8981
9002
  kind: "ghost",
8982
- size: "ExtraSmall"
9003
+ size: "Small"
8983
9004
  }
8984
9005
  ) }),
9006
+ props.closeButton && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(CloseButton, { onClick: handleClose, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Icon, { name: "Close", width: 12 }) }) }),
8985
9007
  props.children
8986
9008
  ]
8987
9009
  }
@@ -9014,6 +9036,7 @@ var Background = import_styled16.default.div`
9014
9036
  `;
9015
9037
  var DrawerContainer = import_styled16.default.div`
9016
9038
  position: fixed;
9039
+ max-height: 100dvh;
9017
9040
  width: 100%;
9018
9041
  background-color: ${({ theme }) => theme.bg};
9019
9042
  right: 0;
@@ -9024,6 +9047,7 @@ var DrawerContainer = import_styled16.default.div`
9024
9047
  display: flex;
9025
9048
  flex-direction: column;
9026
9049
  padding: ${"72px" /* 6xl */} ${"32px" /* xl */} ${"40px" /* 2xl */} ${"32px" /* xl */};
9050
+ overflow-y: scroll;
9027
9051
 
9028
9052
  // Only smooth transition when not grabbing, otherwise dragging will feel very laggy
9029
9053
  ${(props) => props.grabbing && props.isOpen ? "" : "transition: transform 0.3s ease-in-out;"};
@@ -9070,11 +9094,32 @@ var CloseButtonContainer = import_styled16.default.div`
9070
9094
  border-radius: 50%;
9071
9095
  background-color: ${colors.grayBlue94};
9072
9096
  padding: ${"8px" /* xs */};
9097
+ height: 30px;
9098
+ width: 30px;
9099
+ display: flex;
9100
+ align-items: center;
9073
9101
 
9074
9102
  * > * {
9075
9103
  line-height: 14px;
9076
9104
  }
9077
9105
  `;
9106
+ var CloseButton = (0, import_styled16.default)(UnstyledButton)`
9107
+ ${standardFocusOutline}
9108
+ width: 24px;
9109
+ height: 24px;
9110
+ justify-self: flex-end;
9111
+ `;
9112
+ var BackButtonContainer = import_styled16.default.div`
9113
+ position: absolute;
9114
+ top: 20px;
9115
+ left: 20px;
9116
+ border-radius: 50%;
9117
+ padding: ${"8px" /* xs */};
9118
+ height: 30px;
9119
+ width: 30px;
9120
+ display: flex;
9121
+ align-items: center;
9122
+ `;
9078
9123
  var GrabberBar = import_styled16.default.div`
9079
9124
  width: 36px;
9080
9125
  height: 5px;
@@ -9082,10 +9127,27 @@ var GrabberBar = import_styled16.default.div`
9082
9127
  background: #c0c9d6;
9083
9128
  `;
9084
9129
 
9085
- // src/components/ProgressBar.tsx
9130
+ // src/components/IconWithCircleBackground.tsx
9131
+ var import_styled19 = __toESM(require("@emotion/styled"), 1);
9132
+
9133
+ // src/components/Flex.tsx
9086
9134
  var import_styled17 = __toESM(require("@emotion/styled"), 1);
9087
- var import_react30 = require("react");
9088
9135
  var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
9136
+ function Flex({ center = false, children, as = "div" }) {
9137
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(StyledFlex, { center, as, children });
9138
+ }
9139
+ var StyledFlex = import_styled17.default.div`
9140
+ display: flex;
9141
+ ${({ center }) => center && `
9142
+ justify-content: center;
9143
+ align-items: center;
9144
+ `}
9145
+ `;
9146
+
9147
+ // src/components/ProgressBar.tsx
9148
+ var import_styled18 = __toESM(require("@emotion/styled"), 1);
9149
+ var import_react30 = require("react");
9150
+ var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
9089
9151
  var defaultProps2 = {
9090
9152
  isSm: false,
9091
9153
  stepDuration: 0.5
@@ -9106,7 +9168,7 @@ function ProgressBar({
9106
9168
  }, 0);
9107
9169
  }
9108
9170
  }, [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)(
9171
+ 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
9172
  BarBg,
9111
9173
  {
9112
9174
  background,
@@ -9117,7 +9179,7 @@ function ProgressBar({
9117
9179
  ) }) });
9118
9180
  }
9119
9181
  ProgressBar.defaultProps = defaultProps2;
9120
- var ProgressBarContainer = import_styled17.default.div`
9182
+ var ProgressBarContainer = import_styled18.default.div`
9121
9183
  ${standardBorderRadius(16)}
9122
9184
  background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
9123
9185
  box-sizing: border-box;
@@ -9127,7 +9189,7 @@ var ProgressBarContainer = import_styled17.default.div`
9127
9189
  width: 100%;
9128
9190
  position: relative;
9129
9191
  `;
9130
- var BarBg = import_styled17.default.div`
9192
+ var BarBg = import_styled18.default.div`
9131
9193
  ${standardBorderRadius(16)}
9132
9194
  width: ${({ percentage }) => 100 / percentage * 100}%;
9133
9195
  height: 100%;
@@ -9141,7 +9203,7 @@ var BarBg = import_styled17.default.div`
9141
9203
  #3f2e7e 115.32%
9142
9204
  )`};
9143
9205
  `;
9144
- var Bar = import_styled17.default.div`
9206
+ var Bar = import_styled18.default.div`
9145
9207
  ${standardBorderRadius(16)}
9146
9208
  overflow: hidden;
9147
9209
  box-sizing: border-box;
@@ -9152,13 +9214,27 @@ var Bar = import_styled17.default.div`
9152
9214
  cubic-bezier(0.16, 0.3, 0.18, 1);
9153
9215
  `;
9154
9216
 
9217
+ // src/components/IconWithCircleBackground.tsx
9218
+ var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
9219
+ function IconWithCircleBackground({
9220
+ iconName = "WarningSign"
9221
+ }) {
9222
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Flex, { center: true, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(StyledIconWithCircleBackground, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: iconName, width: 40, color: "grayBlue9" }) }) });
9223
+ }
9224
+ var StyledIconWithCircleBackground = import_styled19.default.div`
9225
+ background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
9226
+ border-radius: 50%;
9227
+ padding: 20px;
9228
+ `;
9229
+
9155
9230
  // src/components/Modal.tsx
9156
- var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
9231
+ var import_jsx_runtime137 = require("@emotion/react/jsx-runtime");
9157
9232
  function isSubmitLinkWithHref(submitLink) {
9158
9233
  return Boolean(submitLink && "href" in submitLink);
9159
9234
  }
9160
9235
  function Modal({
9161
9236
  visible,
9237
+ topContent,
9162
9238
  title,
9163
9239
  description,
9164
9240
  children,
@@ -9174,13 +9250,15 @@ function Modal({
9174
9250
  submitLink,
9175
9251
  cancelText = "Cancel",
9176
9252
  firstFocusRef,
9177
- smDrawer,
9253
+ smKind = "default",
9254
+ top,
9178
9255
  nonDismissable = false,
9179
9256
  autoFocus = true,
9180
9257
  width = 460,
9181
9258
  progressBar,
9182
9259
  buttonLayout = "horizontal",
9183
- extraActions
9260
+ extraActions,
9261
+ handleBack
9184
9262
  }) {
9185
9263
  const visibleChangedRef = (0, import_react31.useRef)(false);
9186
9264
  const nodeRef = (0, import_react31.useRef)(null);
@@ -9280,9 +9358,12 @@ function Modal({
9280
9358
  }
9281
9359
  const linkIsHref = isSubmitLinkWithHref(submitLink);
9282
9360
  const linkIsRoute = !linkIsHref && submitLink;
9283
- const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
9284
- extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((action) => action.content),
9285
- !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9361
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_jsx_runtime137.Fragment, { children: [
9362
+ extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((_a, i) => {
9363
+ var _b = _a, { placement, text } = _b, rest = __objRest(_b, ["placement", "text"]);
9364
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9365
+ }),
9366
+ !isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9286
9367
  Button,
9287
9368
  {
9288
9369
  disabled: cancelDisabled,
@@ -9290,7 +9371,7 @@ function Modal({
9290
9371
  text: cancelText
9291
9372
  }
9292
9373
  ),
9293
- onSubmit && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9374
+ (onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9294
9375
  Button,
9295
9376
  {
9296
9377
  kind: "primary",
@@ -9304,13 +9385,16 @@ function Modal({
9304
9385
  onClick: submitLink ? onSubmit : void 0
9305
9386
  }
9306
9387
  ),
9307
- isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Button, { onClick: onClose, text: cancelText }),
9308
- extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((action) => action.content)
9388
+ isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, { onClick: onClose, text: cancelText }),
9389
+ extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((_c, i) => {
9390
+ var _d = _c, { placement, text } = _d, rest = __objRest(_d, ["placement", "text"]);
9391
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
9392
+ })
9309
9393
  ] });
9310
9394
  let titleContent = null;
9311
9395
  if (title) {
9312
9396
  if (typeof title === "string") {
9313
- titleContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9397
+ titleContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
9314
9398
  } else {
9315
9399
  titleContent = toReactNodes(title);
9316
9400
  }
@@ -9318,31 +9402,45 @@ function Modal({
9318
9402
  let descriptionContent = null;
9319
9403
  if (description) {
9320
9404
  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 }) });
9405
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Body, { size: "ExtraSmall", content: description }) });
9322
9406
  } else {
9323
- descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Description, { children: toReactNodes(description) });
9407
+ descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Description, { children: toReactNodes(description) });
9324
9408
  }
9325
9409
  }
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)(
9410
+ let topContentNode = null;
9411
+ if (topContent) {
9412
+ topContentNode = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { css: { marginBottom: "32px" /* xl */ }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IconWithCircleBackground, __spreadValues({}, topContent)) });
9413
+ }
9414
+ const modalContent = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_react31.Fragment, { children: [
9415
+ progressBar ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9328
9416
  ProgressBar,
9329
9417
  {
9330
9418
  progressPercentage: progressBar.progressPercentage,
9331
9419
  isSm: progressBar.isSm
9332
9420
  }
9333
9421
  ) }) : null,
9422
+ topContentNode,
9334
9423
  titleContent,
9335
9424
  descriptionContent,
9336
9425
  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
9426
+ onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalButtonColumn, { children: buttonContent }) : null
9338
9427
  ] });
9339
9428
  let content;
9340
- if (smDrawer && isSm) {
9341
- content = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Drawer, { onClose: () => onClickCloseButton(), closeButton: true, children: modalContent });
9429
+ if (smKind === "drawer" && isSm) {
9430
+ content = /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9431
+ Drawer,
9432
+ {
9433
+ onClose: () => onClickCloseButton(),
9434
+ closeButton: true,
9435
+ nonDismissable,
9436
+ handleBack,
9437
+ children: modalContent
9438
+ }
9439
+ );
9342
9440
  } 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)(
9441
+ content = /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_react31.Fragment, { children: [
9442
+ !(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalOverlay, { ref: overlayRef }) : null,
9443
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9346
9444
  ModalContainer,
9347
9445
  {
9348
9446
  "aria-modal": true,
@@ -9350,27 +9448,31 @@ function Modal({
9350
9448
  tabIndex: -1,
9351
9449
  role: "dialog",
9352
9450
  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 })
9451
+ top: top || (smKind === "default" ? standardContentInset.smPx : 0),
9452
+ children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(ModalContent, { width, ghost, smKind, children: [
9453
+ !firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
9454
+ !ghost && /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(ModalNavigation, { children: [
9455
+ handleBack && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(BackButton, { onClick: handleBack, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Icon, { name: "ChevronLeft", width: 16 }) }),
9456
+ !nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(CloseButton2, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Icon, { name: "Close", width: 9 }) })
9457
+ ] }),
9458
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(ModalContentInner, { ghost, children: modalContent })
9357
9459
  ] })
9358
9460
  }
9359
9461
  )
9360
9462
  ] });
9361
9463
  }
9362
9464
  return visible && nodeReady && nodeRef.current ? import_react_dom2.default.createPortal(
9363
- onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9465
+ onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
9364
9466
  nodeRef.current
9365
9467
  ) : null;
9366
9468
  }
9367
- var DefaultFocusTarget = (0, import_styled18.default)(UnstyledButton)`
9469
+ var DefaultFocusTarget = (0, import_styled20.default)(UnstyledButton)`
9368
9470
  position: absolute;
9369
9471
  top: -30px;
9370
9472
  width: 0;
9371
9473
  height: 0;
9372
9474
  `;
9373
- var ModalOverlay = import_styled18.default.div`
9475
+ var ModalOverlay = import_styled20.default.div`
9374
9476
  position: fixed;
9375
9477
  bottom: 0;
9376
9478
  left: 0;
@@ -9379,7 +9481,7 @@ var ModalOverlay = import_styled18.default.div`
9379
9481
  height: 100vh;
9380
9482
  background: rgba(0, 0, 0, 0.5);
9381
9483
  `;
9382
- var ModalContainer = import_styled18.default.div`
9484
+ var ModalContainer = import_styled20.default.div`
9383
9485
  pointer-events: none;
9384
9486
  position: fixed;
9385
9487
  top: 0;
@@ -9394,17 +9496,17 @@ var ModalContainer = import_styled18.default.div`
9394
9496
  justify-content: center;
9395
9497
  align-items: center;
9396
9498
  color: ${({ theme }) => theme.text};
9397
- padding-top: ${standardContentInset.smPx}px;
9499
+ ${(props) => `top: ${props.top}px;`}
9398
9500
  `;
9399
9501
  var contentTopMarginPx = 24;
9400
- var Description = import_styled18.default.div`
9502
+ var Description = import_styled20.default.div`
9401
9503
  color: ${({ theme }) => theme.mcNeutral};
9402
9504
  margin-top: ${"12px" /* sm */};
9403
9505
  & + * {
9404
9506
  margin-top: ${contentTopMarginPx}px;
9405
9507
  }
9406
9508
  `;
9407
- var ModalButtonRow = import_styled18.default.div`
9509
+ var ModalButtonRow = import_styled20.default.div`
9408
9510
  margin-top: ${"24px" /* lg */};
9409
9511
  ${bp.minSm(`display: flex;`)}
9410
9512
  gap: 10px;
@@ -9416,7 +9518,7 @@ var ModalButtonRow = import_styled18.default.div`
9416
9518
  `)}
9417
9519
  }
9418
9520
  `;
9419
- var ModalButtonColumn = import_styled18.default.div`
9521
+ var ModalButtonColumn = import_styled20.default.div`
9420
9522
  display: flex;
9421
9523
  flex-direction: column;
9422
9524
  gap: ${"12px" /* sm */};
@@ -9427,17 +9529,23 @@ var ModalButtonColumn = import_styled18.default.div`
9427
9529
 
9428
9530
  margin-top: ${"24px" /* lg */};
9429
9531
  `;
9430
- var ModalContent = import_styled18.default.div`
9431
- ${overflowAutoWithoutScrollbars}
9432
- ${standardContentInset.smCSS}
9433
- ${(props) => props.ghost ? "" : standardBorderRadius(16)}
9434
- ${(props) => props.ghost ? "" : overlaySurface}
9532
+ var ModalContent = import_styled20.default.div`
9435
9533
  pointer-events: auto;
9436
9534
  transition: width 0.25s ease-in;
9437
- width: ${(props) => props.width}px;
9438
- max-width: 100%;
9439
- max-height: 100%;
9440
- position: absolute;
9535
+
9536
+ ${({ theme, smKind, ghost }) => ghost ? "" : overlaySurface({ theme, border: smKind !== "fullscreen" })}
9537
+ ${overflowAutoWithoutScrollbars}
9538
+ ${(props) => props.smKind === "fullscreen" && bp.isSm() ? `
9539
+ width: 100%;
9540
+ height: 100%;
9541
+ ` : `
9542
+ ${props.ghost ? "" : standardBorderRadius(16)}
9543
+ ${standardContentInset.smCSS.styles}
9544
+ width: ${props.width}px;
9545
+ max-width: 100%;
9546
+ max-height: 100%;
9547
+ position: absolute;
9548
+ `}
9441
9549
  ${(props) => props.ghost ? "" : "padding: 16px 16px 40px;"}
9442
9550
 
9443
9551
  ${headlineSelector("h4")} { {
@@ -9447,18 +9555,24 @@ var ModalContent = import_styled18.default.div`
9447
9555
  }
9448
9556
  }
9449
9557
  `;
9450
- var CloseButtonContainer2 = import_styled18.default.div`
9451
- display: flex;
9452
- flex-direction: row;
9558
+ var ModalNavigation = import_styled20.default.div`
9559
+ display: grid;
9560
+ grid-auto-flow: column;
9453
9561
  width: 100%;
9454
- justify-content: flex-end;
9455
9562
  `;
9456
- var CloseButton = (0, import_styled18.default)(UnstyledButton)`
9563
+ var BackButton = (0, import_styled20.default)(UnstyledButton)`
9564
+ ${standardFocusOutline}
9565
+ width: 24px;
9566
+ height: 24px;
9567
+ justify-self: flex-start;
9568
+ `;
9569
+ var CloseButton2 = (0, import_styled20.default)(UnstyledButton)`
9457
9570
  ${standardFocusOutline}
9458
9571
  width: 24px;
9459
9572
  height: 24px;
9573
+ justify-self: flex-end;
9460
9574
  `;
9461
- var ModalContentInner = import_styled18.default.div`
9575
+ var ModalContentInner = import_styled20.default.div`
9462
9576
  ${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
9463
9577
  ${(props) => props.ghost ? "" : `${bp.sm(`
9464
9578
  padding-left: 10px;