@lightsparkdev/ui 1.0.3 → 1.0.4

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