@lightsparkdev/ui 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-54EOEIEN.js → chunk-3DXU76SI.js} +2 -2
  3. package/dist/{chunk-PQKVR2BR.js → chunk-42D2SXB2.js} +1 -1
  4. package/dist/{chunk-BSH6WRUZ.js → chunk-45BHB7K7.js} +3 -3
  5. package/dist/{chunk-35PJW7RT.js → chunk-4EV5IUUJ.js} +2 -2
  6. package/dist/{chunk-XM2HQVUK.js → chunk-4IHNUHE3.js} +5 -5
  7. package/dist/{chunk-X4TGLNCH.js → chunk-5JJUXAVA.js} +3 -3
  8. package/dist/{chunk-ILEZ6AWT.js → chunk-7EAO66LB.js} +5 -5
  9. package/dist/{chunk-LIQSJ5R7.js → chunk-AKGW3FMJ.js} +21 -13
  10. package/dist/{chunk-7N2PFDYE.js → chunk-AVV74PTP.js} +2 -2
  11. package/dist/{chunk-SNFRMD6Z.js → chunk-AXNQ7BDD.js} +4 -4
  12. package/dist/{chunk-CRTTTIAD.js → chunk-BNHCCR3C.js} +2 -2
  13. package/dist/{chunk-UH5F35II.js → chunk-BRJKMY6Z.js} +3 -3
  14. package/dist/{chunk-7WDAN3OC.js → chunk-D4DFISYR.js} +1 -1
  15. package/dist/chunk-E5DUKMCU.js +65 -0
  16. package/dist/{chunk-YRNEIRHM.js → chunk-E6ZY35LN.js} +5 -5
  17. package/dist/{chunk-J3YVJWRG.js → chunk-EHH4M2LZ.js} +5 -5
  18. package/dist/{chunk-XB4KQFK2.js → chunk-EKU5IWJW.js} +2 -2
  19. package/dist/chunk-ERNTWEIJ.js +74 -0
  20. package/dist/{chunk-7IHNYMFQ.js → chunk-FE477HOE.js} +2 -2
  21. package/dist/{chunk-B6S7Y4K7.js → chunk-GGWFUEDW.js} +2 -2
  22. package/dist/{chunk-7YY6BH5O.js → chunk-GMEJR5XX.js} +2 -2
  23. package/dist/{chunk-LOL5TJ3H.js → chunk-GMOJB7PP.js} +16 -16
  24. package/dist/{chunk-RPNTFEXE.js → chunk-H3UUVMZ3.js} +1 -1
  25. package/dist/{chunk-WGKUDRZ7.js → chunk-HLZNFEDV.js} +2 -2
  26. package/dist/{chunk-XDP7GCYE.js → chunk-HNK2KIC7.js} +2 -2
  27. package/dist/{chunk-BENSR2YW.js → chunk-I3WMJNCP.js} +1 -1
  28. package/dist/{chunk-BDZ46Z2I.js → chunk-IH5SIRJL.js} +2 -2
  29. package/dist/{chunk-YIHC25WB.js → chunk-IIRG6R42.js} +3 -3
  30. package/dist/{chunk-C4KZC45Y.js → chunk-ILCC45G7.js} +54 -71
  31. package/dist/{chunk-MRGHRTKA.js → chunk-IXAXRBFS.js} +2 -2
  32. package/dist/{chunk-QQSV7XJX.js → chunk-JZKGVGBU.js} +1 -1
  33. package/dist/{chunk-XUWFUTR4.js → chunk-KPAVY3UH.js} +3 -1
  34. package/dist/{chunk-I3FI3FNP.js → chunk-LAGOF7IU.js} +2 -2
  35. package/dist/{chunk-MWDDIXIP.js → chunk-LH5VFS3E.js} +1 -1
  36. package/dist/{chunk-2XUHQWCJ.js → chunk-LKJ7QTWL.js} +4 -4
  37. package/dist/{chunk-N2NPIZCV.js → chunk-M7E2PMFK.js} +9 -9
  38. package/dist/{chunk-BHP5YL2N.js → chunk-N67Y7GWR.js} +1 -1
  39. package/dist/{chunk-4BFBANKF.js → chunk-NBIK5O3N.js} +37 -34
  40. package/dist/{chunk-SLKPLSJU.js → chunk-NK7WH3TK.js} +11 -11
  41. package/dist/{chunk-KX5QZXCD.js → chunk-NONMMIMQ.js} +1 -1
  42. package/dist/{chunk-Y7RQUJUS.js → chunk-NWPPTOKK.js} +5 -5
  43. package/dist/{chunk-4C2TISN7.js → chunk-OPUCWQMK.js} +1 -1
  44. package/dist/{chunk-GWHKALYQ.js → chunk-PBLWYVQF.js} +2 -2
  45. package/dist/{chunk-E4DUADXU.js → chunk-PYAKYQWS.js} +1 -1
  46. package/dist/{chunk-DXA3WUSX.js → chunk-PZTZ4436.js} +2 -2
  47. package/dist/{chunk-6CNJ5ZCC.js → chunk-Q76C6FJ5.js} +3 -3
  48. package/dist/{chunk-JNNJVBHF.js → chunk-QBRCVOJ4.js} +14 -10
  49. package/dist/{chunk-HGOGF6I7.js → chunk-QEZ7L6YF.js} +1 -1
  50. package/dist/{chunk-435FPPZK.js → chunk-QFVQ6QPA.js} +2 -2
  51. package/dist/{chunk-WTMJTGW4.js → chunk-QON4D7N2.js} +2 -2
  52. package/dist/chunk-QTPYP3IK.js +27 -0
  53. package/dist/{chunk-LH7GLNMY.js → chunk-QZMD3YHI.js} +1 -1
  54. package/dist/{chunk-VXKNN4SF.js → chunk-RQLRNKOP.js} +17 -16
  55. package/dist/{chunk-7FHOKVKJ.js → chunk-RRXB5FQC.js} +7 -7
  56. package/dist/{chunk-AAFUVYVP.js → chunk-SCIQSZSW.js} +1 -1
  57. package/dist/{chunk-5TTLUOJ5.js → chunk-SIYZ5PZT.js} +1 -1
  58. package/dist/{chunk-K7FYXGOI.js → chunk-TMIBU4ME.js} +1 -1
  59. package/dist/{chunk-LTCJ6LNO.js → chunk-TN5UPDZG.js} +1 -1
  60. package/dist/{chunk-IBZBPQMZ.js → chunk-UAUAYQ3C.js} +14 -5
  61. package/dist/{chunk-LGKXPUSI.js → chunk-VF5KSAZG.js} +3 -3
  62. package/dist/{chunk-GSKTHUQJ.js → chunk-XLKL3DNK.js} +2 -2
  63. package/dist/{chunk-OKXC33OU.js → chunk-XQIQOMNE.js} +5 -2
  64. package/dist/{chunk-PG2W2HVB.js → chunk-YG5BANJH.js} +2 -2
  65. package/dist/{chunk-4JHXRPRB.js → chunk-YXAKRSFW.js} +9 -6
  66. package/dist/{chunk-2AGBCGOW.js → chunk-ZR2TARGX.js} +2 -2
  67. package/dist/components/Badge.cjs +7784 -7418
  68. package/dist/components/Badge.d.cts +146 -7
  69. package/dist/components/Badge.d.ts +146 -7
  70. package/dist/components/Badge.js +22 -25
  71. package/dist/components/Banner/Banner.cjs +53 -27
  72. package/dist/components/Banner/Banner.d.cts +1 -1
  73. package/dist/components/Banner/Banner.d.ts +1 -1
  74. package/dist/components/Banner/Banner.js +20 -20
  75. package/dist/components/Button.cjs +39 -25
  76. package/dist/components/Button.d.cts +1 -1
  77. package/dist/components/Button.d.ts +1 -1
  78. package/dist/components/Button.js +22 -22
  79. package/dist/components/ButtonRow.cjs +42 -28
  80. package/dist/components/ButtonRow.d.cts +1 -1
  81. package/dist/components/ButtonRow.d.ts +1 -1
  82. package/dist/components/ButtonRow.js +24 -24
  83. package/dist/components/CardPage.cjs +16 -5
  84. package/dist/components/CardPage.js +26 -26
  85. package/dist/components/Checkbox.cjs +6 -4
  86. package/dist/components/Checkbox.js +4 -4
  87. package/dist/components/CodeBlock.cjs +16 -5
  88. package/dist/components/CodeBlock.js +9 -9
  89. package/dist/components/CodeInput/CodeInput.cjs +16 -5
  90. package/dist/components/CodeInput/CodeInput.js +7 -7
  91. package/dist/components/CodeInput/SingleCodeInput.cjs +16 -5
  92. package/dist/components/CodeInput/SingleCodeInput.js +6 -6
  93. package/dist/components/Collapsible.cjs +81 -8
  94. package/dist/components/Collapsible.js +7 -7
  95. package/dist/components/CommaNumberInput.cjs +16 -5
  96. package/dist/components/CommaNumberInput.d.cts +1 -1
  97. package/dist/components/CommaNumberInput.d.ts +1 -1
  98. package/dist/components/CommaNumberInput.js +12 -12
  99. package/dist/components/ContentTable.cjs +16 -5
  100. package/dist/components/ContentTable.js +5 -5
  101. package/dist/components/CopyToClipboardButton.cjs +16 -5
  102. package/dist/components/CopyToClipboardButton.js +7 -7
  103. package/dist/components/CurrencyAmount.cjs +16 -5
  104. package/dist/components/CurrencyAmount.js +5 -5
  105. package/dist/components/Drawer.cjs +121 -44
  106. package/dist/components/Drawer.js +24 -24
  107. package/dist/components/Dropdown.cjs +16 -5
  108. package/dist/components/Dropdown.d.cts +1 -1
  109. package/dist/components/Dropdown.d.ts +1 -1
  110. package/dist/components/Dropdown.js +7 -7
  111. package/dist/components/FileInput.cjs +16 -5
  112. package/dist/components/FileInput.js +11 -11
  113. package/dist/components/GradientCardHeader.cjs +3 -1
  114. package/dist/components/GradientCardHeader.js +6 -6
  115. package/dist/components/Icon/Icon.cjs +16 -5
  116. package/dist/components/Icon/Icon.d.cts +1 -1
  117. package/dist/components/Icon/Icon.d.ts +1 -1
  118. package/dist/components/Icon/Icon.js +4 -4
  119. package/dist/components/IconWithCircleBackground.cjs +7349 -7340
  120. package/dist/components/IconWithCircleBackground.js +5 -74
  121. package/dist/components/InfoIconTooltip.cjs +56 -30
  122. package/dist/components/InfoIconTooltip.d.cts +1 -1
  123. package/dist/components/InfoIconTooltip.d.ts +1 -1
  124. package/dist/components/InfoIconTooltip.js +21 -21
  125. package/dist/components/LightsparkProvider.cjs +16 -5
  126. package/dist/components/LightsparkProvider.js +5 -5
  127. package/dist/components/Loading.cjs +16 -5
  128. package/dist/components/Loading.js +5 -5
  129. package/dist/components/Modal.cjs +205 -128
  130. package/dist/components/Modal.d.cts +9 -9
  131. package/dist/components/Modal.d.ts +9 -9
  132. package/dist/components/Modal.js +29 -70
  133. package/dist/components/PageSection/PageSection.cjs +208 -98
  134. package/dist/components/PageSection/PageSection.d.cts +1 -1
  135. package/dist/components/PageSection/PageSection.d.ts +1 -1
  136. package/dist/components/PageSection/PageSection.js +29 -33
  137. package/dist/components/PageSection/PageSectionNav.cjs +48 -22
  138. package/dist/components/PageSection/PageSectionNav.js +22 -22
  139. package/dist/components/PhoneInput.cjs +16 -5
  140. package/dist/components/PhoneInput.d.cts +1 -1
  141. package/dist/components/PhoneInput.d.ts +1 -1
  142. package/dist/components/PhoneInput.js +12 -12
  143. package/dist/components/Pill.cjs +16 -5
  144. package/dist/components/Pill.js +8 -8
  145. package/dist/components/ProgressBar.cjs +16 -5
  146. package/dist/components/ProgressBar.js +4 -4
  147. package/dist/components/Radio.cjs +7412 -7339
  148. package/dist/components/Radio.js +10 -24
  149. package/dist/components/SecretContainer.cjs +16 -5
  150. package/dist/components/SecretContainer.js +8 -8
  151. package/dist/components/StatusIndicator.cjs +3 -1
  152. package/dist/components/StatusIndicator.js +5 -5
  153. package/dist/components/TextButton.cjs +44 -18
  154. package/dist/components/TextButton.d.cts +1 -1
  155. package/dist/components/TextButton.d.ts +1 -1
  156. package/dist/components/TextButton.js +21 -21
  157. package/dist/components/TextIconAligner.cjs +38 -12
  158. package/dist/components/TextIconAligner.d.cts +1 -1
  159. package/dist/components/TextIconAligner.d.ts +1 -1
  160. package/dist/components/TextIconAligner.js +19 -19
  161. package/dist/components/TextInput.cjs +16 -5
  162. package/dist/components/TextInput.d.cts +1 -1
  163. package/dist/components/TextInput.d.ts +1 -1
  164. package/dist/components/TextInput.js +11 -11
  165. package/dist/components/Toasts.cjs +64 -38
  166. package/dist/components/Toasts.d.cts +1 -1
  167. package/dist/components/Toasts.d.ts +1 -1
  168. package/dist/components/Toasts.js +22 -22
  169. package/dist/components/Toggle.cjs +107 -98
  170. package/dist/components/Toggle.js +5 -5
  171. package/dist/components/Tooltip.cjs +16 -5
  172. package/dist/components/Tooltip.js +4 -4
  173. package/dist/components/UnstyledButton.cjs +3 -1
  174. package/dist/components/UnstyledButton.js +4 -4
  175. package/dist/components/documentation/AnchorLinkHeader.cjs +16 -5
  176. package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
  177. package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
  178. package/dist/components/documentation/AnchorLinkHeader.js +10 -10
  179. package/dist/components/documentation/DocsBodyParagraph.cjs +16 -5
  180. package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
  181. package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
  182. package/dist/components/documentation/DocsBodyParagraph.js +8 -8
  183. package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -5
  184. package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
  185. package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
  186. package/dist/components/documentation/DocsBodyStrongParagraph.js +8 -8
  187. package/dist/components/documentation/DocsHeadline.cjs +16 -5
  188. package/dist/components/documentation/DocsHeadline.d.cts +1 -1
  189. package/dist/components/documentation/DocsHeadline.d.ts +1 -1
  190. package/dist/components/documentation/DocsHeadline.js +9 -9
  191. package/dist/components/documentation/Video.cjs +3 -1
  192. package/dist/components/documentation/Video.js +3 -3
  193. package/dist/components/documentation/index.cjs +16 -5
  194. package/dist/components/documentation/index.d.cts +1 -1
  195. package/dist/components/documentation/index.d.ts +1 -1
  196. package/dist/components/documentation/index.js +10 -10
  197. package/dist/components/index.cjs +8343 -8176
  198. package/dist/components/index.d.cts +5 -5
  199. package/dist/components/index.d.ts +5 -5
  200. package/dist/components/index.js +71 -72
  201. package/dist/components/typography/Article.cjs +103 -30
  202. package/dist/components/typography/Article.js +16 -16
  203. package/dist/components/typography/Body.cjs +16 -5
  204. package/dist/components/typography/Body.d.cts +2 -2
  205. package/dist/components/typography/Body.d.ts +2 -2
  206. package/dist/components/typography/Body.js +8 -8
  207. package/dist/components/typography/BodyStrong.cjs +16 -5
  208. package/dist/components/typography/BodyStrong.d.cts +2 -2
  209. package/dist/components/typography/BodyStrong.d.ts +2 -2
  210. package/dist/components/typography/BodyStrong.js +8 -8
  211. package/dist/components/typography/Code.cjs +16 -5
  212. package/dist/components/typography/Code.d.cts +2 -2
  213. package/dist/components/typography/Code.d.ts +2 -2
  214. package/dist/components/typography/Code.js +8 -8
  215. package/dist/components/typography/Display.cjs +16 -5
  216. package/dist/components/typography/Display.d.cts +2 -2
  217. package/dist/components/typography/Display.d.ts +2 -2
  218. package/dist/components/typography/Display.js +8 -8
  219. package/dist/components/typography/Headline.cjs +16 -5
  220. package/dist/components/typography/Headline.d.cts +2 -2
  221. package/dist/components/typography/Headline.d.ts +2 -2
  222. package/dist/components/typography/Headline.js +8 -8
  223. package/dist/components/typography/Label.cjs +16 -5
  224. package/dist/components/typography/Label.d.cts +2 -2
  225. package/dist/components/typography/Label.d.ts +2 -2
  226. package/dist/components/typography/Label.js +8 -8
  227. package/dist/components/typography/LabelModerate.cjs +16 -5
  228. package/dist/components/typography/LabelModerate.d.cts +2 -2
  229. package/dist/components/typography/LabelModerate.d.ts +2 -2
  230. package/dist/components/typography/LabelModerate.js +8 -8
  231. package/dist/components/typography/LabelStrong.cjs +16 -5
  232. package/dist/components/typography/LabelStrong.d.cts +2 -2
  233. package/dist/components/typography/LabelStrong.d.ts +2 -2
  234. package/dist/components/typography/LabelStrong.js +8 -8
  235. package/dist/components/typography/Overline.cjs +16 -5
  236. package/dist/components/typography/Overline.d.cts +2 -2
  237. package/dist/components/typography/Overline.d.ts +2 -2
  238. package/dist/components/typography/Overline.js +8 -8
  239. package/dist/components/typography/Title.cjs +16 -5
  240. package/dist/components/typography/Title.d.cts +3 -3
  241. package/dist/components/typography/Title.d.ts +3 -3
  242. package/dist/components/typography/Title.js +8 -8
  243. package/dist/components/typography/index.cjs +103 -30
  244. package/dist/components/typography/index.d.cts +1 -1
  245. package/dist/components/typography/index.d.ts +1 -1
  246. package/dist/components/typography/index.js +24 -25
  247. package/dist/components/typography/renderTypography.cjs +32 -8
  248. package/dist/components/typography/renderTypography.d.cts +20 -20
  249. package/dist/components/typography/renderTypography.d.ts +20 -20
  250. package/dist/components/typography/renderTypography.js +18 -18
  251. package/dist/router.cjs +3 -1
  252. package/dist/router.js +2 -2
  253. package/dist/styles/buttons.d.cts +1 -1
  254. package/dist/styles/buttons.d.ts +1 -1
  255. package/dist/styles/colors.cjs +3 -1
  256. package/dist/styles/colors.d.cts +3 -1
  257. package/dist/styles/colors.d.ts +3 -1
  258. package/dist/styles/colors.js +1 -1
  259. package/dist/styles/common.cjs +16 -5
  260. package/dist/styles/common.d.cts +1 -1
  261. package/dist/styles/common.d.ts +1 -1
  262. package/dist/styles/common.js +3 -3
  263. package/dist/styles/fields.cjs +16 -5
  264. package/dist/styles/fields.d.cts +1 -1
  265. package/dist/styles/fields.d.ts +1 -1
  266. package/dist/styles/fields.js +5 -5
  267. package/dist/styles/global.cjs +16 -5
  268. package/dist/styles/global.d.cts +1 -1
  269. package/dist/styles/global.d.ts +1 -1
  270. package/dist/styles/global.js +4 -4
  271. package/dist/styles/themes.cjs +16 -5
  272. package/dist/styles/themes.d.cts +1 -1
  273. package/dist/styles/themes.d.ts +1 -1
  274. package/dist/styles/themes.js +2 -2
  275. package/dist/styles/tokens/spacing.cjs +60 -21
  276. package/dist/styles/tokens/spacing.d.cts +40 -20
  277. package/dist/styles/tokens/spacing.d.ts +40 -20
  278. package/dist/styles/tokens/spacing.js +1 -1
  279. package/dist/styles/type.cjs +3 -1
  280. package/dist/styles/type.d.cts +1 -1
  281. package/dist/styles/type.d.ts +1 -1
  282. package/dist/styles/type.js +5 -5
  283. package/dist/styles/typography.cjs +16 -5
  284. package/dist/styles/typography.d.cts +1 -1
  285. package/dist/styles/typography.d.ts +1 -1
  286. package/dist/styles/typography.js +3 -3
  287. package/dist/styles/utils.cjs +3 -1
  288. package/dist/styles/utils.js +4 -4
  289. package/dist/{buttons-36cdd0fe.d.ts → themes-37e92940.d.ts} +91 -74
  290. package/dist/{buttons-35280bfe.d.ts → themes-832e46b2.d.ts} +91 -74
  291. package/dist/utils/toNonTypographicReactNodes.cjs +16 -5
  292. package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
  293. package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
  294. package/dist/utils/toNonTypographicReactNodes.js +6 -6
  295. package/dist/utils/toReactNodes.cjs +57 -22
  296. package/dist/utils/toReactNodes.d.cts +13 -9
  297. package/dist/utils/toReactNodes.d.ts +13 -9
  298. package/dist/utils/toReactNodes.js +21 -19
  299. package/package.json +2 -2
  300. package/dist/chunk-3XSQV5U4.js +0 -26
  301. package/dist/chunk-B2VYAIYR.js +0 -0
  302. package/dist/chunk-SEZEDINC.js +0 -35
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @lightsparkdev/ui
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - c17a851: - Update colors
8
+ - Updated dependencies [c17a851]
9
+ - @lightsparkdev/core@1.2.0
10
+
11
+ ## 1.0.4
12
+
13
+ ### Patch Changes
14
+
15
+ - 1028e1c: Adds numbers to Spacing in addition to px values, setDefaultReactNodesTypography
16
+
3
17
  ## 1.0.3
4
18
 
5
19
  ### Patch Changes
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  standardBorderRadius
3
- } from "./chunk-PG2W2HVB.js";
3
+ } from "./chunk-YG5BANJH.js";
4
4
  import {
5
5
  themeOr
6
- } from "./chunk-IBZBPQMZ.js";
6
+ } from "./chunk-UAUAYQ3C.js";
7
7
 
8
8
  // src/components/ProgressBar.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  textInputStyle
3
- } from "./chunk-6CNJ5ZCC.js";
3
+ } from "./chunk-Q76C6FJ5.js";
4
4
 
5
5
  // src/components/CodeInput/SingleCodeInput.tsx
6
6
  import { css, useTheme } from "@emotion/react";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Pill
3
- } from "./chunk-J3YVJWRG.js";
3
+ } from "./chunk-EHH4M2LZ.js";
4
4
  import {
5
5
  InputSubtext,
6
6
  inputBlockStyle
7
- } from "./chunk-6CNJ5ZCC.js";
7
+ } from "./chunk-Q76C6FJ5.js";
8
8
  import {
9
9
  Icon
10
- } from "./chunk-I3FI3FNP.js";
10
+ } from "./chunk-LAGOF7IU.js";
11
11
 
12
12
  // src/components/FileInput.tsx
13
13
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toNonTypographicReactNodes
3
- } from "./chunk-XDP7GCYE.js";
3
+ } from "./chunk-HNK2KIC7.js";
4
4
  import {
5
5
  applyTypography
6
- } from "./chunk-4C2TISN7.js";
6
+ } from "./chunk-OPUCWQMK.js";
7
7
 
8
8
  // src/components/typography/Title.tsx
9
9
  import styled from "@emotion/styled";
@@ -3,24 +3,24 @@ import {
3
3
  } from "./chunk-VQVEZVAG.js";
4
4
  import {
5
5
  Link
6
- } from "./chunk-AAFUVYVP.js";
6
+ } from "./chunk-SCIQSZSW.js";
7
7
  import {
8
8
  UnstyledButton
9
- } from "./chunk-LTCJ6LNO.js";
9
+ } from "./chunk-TN5UPDZG.js";
10
10
  import {
11
11
  z
12
12
  } from "./chunk-55OQPFLF.js";
13
13
  import {
14
14
  Icon
15
- } from "./chunk-I3FI3FNP.js";
15
+ } from "./chunk-LAGOF7IU.js";
16
16
  import {
17
17
  overlaySurface,
18
18
  standardBorderRadius,
19
19
  standardFocusOutline
20
- } from "./chunk-PG2W2HVB.js";
20
+ } from "./chunk-YG5BANJH.js";
21
21
  import {
22
22
  themeOr
23
- } from "./chunk-IBZBPQMZ.js";
23
+ } from "./chunk-UAUAYQ3C.js";
24
24
  import {
25
25
  bp
26
26
  } from "./chunk-JSGRNWSB.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Tooltip
3
- } from "./chunk-RPNTFEXE.js";
3
+ } from "./chunk-H3UUVMZ3.js";
4
4
  import {
5
5
  UnstyledButton
6
- } from "./chunk-LTCJ6LNO.js";
6
+ } from "./chunk-TN5UPDZG.js";
7
7
  import {
8
8
  Icon
9
- } from "./chunk-I3FI3FNP.js";
9
+ } from "./chunk-LAGOF7IU.js";
10
10
  import {
11
11
  __async
12
12
  } from "./chunk-LOPKRCGI.js";
@@ -6,25 +6,25 @@ import {
6
6
  } from "./chunk-E3FGOYEJ.js";
7
7
  import {
8
8
  toReactNodes
9
- } from "./chunk-LIQSJ5R7.js";
9
+ } from "./chunk-AKGW3FMJ.js";
10
10
  import {
11
11
  Link
12
- } from "./chunk-AAFUVYVP.js";
12
+ } from "./chunk-SCIQSZSW.js";
13
13
  import {
14
14
  z
15
15
  } from "./chunk-55OQPFLF.js";
16
16
  import {
17
17
  Icon
18
- } from "./chunk-I3FI3FNP.js";
18
+ } from "./chunk-LAGOF7IU.js";
19
19
  import {
20
20
  getColor
21
- } from "./chunk-IBZBPQMZ.js";
21
+ } from "./chunk-UAUAYQ3C.js";
22
22
  import {
23
23
  bp
24
24
  } from "./chunk-JSGRNWSB.js";
25
25
  import {
26
26
  colors
27
- } from "./chunk-XUWFUTR4.js";
27
+ } from "./chunk-KPAVY3UH.js";
28
28
 
29
29
  // src/components/Banner/Banner.tsx
30
30
  import styled from "@emotion/styled";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderTypography
3
- } from "./chunk-VXKNN4SF.js";
3
+ } from "./chunk-RQLRNKOP.js";
4
4
  import {
5
5
  isExternalLinkNode,
6
6
  isIconNode,
@@ -8,13 +8,14 @@ import {
8
8
  isNextLinkNode,
9
9
  isTextNode,
10
10
  toNonTypographicReactNodes
11
- } from "./chunk-XDP7GCYE.js";
11
+ } from "./chunk-HNK2KIC7.js";
12
12
  import {
13
13
  __spreadProps,
14
14
  __spreadValues
15
15
  } from "./chunk-LOPKRCGI.js";
16
16
 
17
17
  // src/utils/toReactNodes.tsx
18
+ import { isObject } from "lodash-es";
18
19
  import { Fragment } from "react";
19
20
  import { jsx } from "@emotion/react/jsx-runtime";
20
21
  function toReactNodes(toReactNodesArg) {
@@ -23,12 +24,11 @@ function toReactNodes(toReactNodesArg) {
23
24
  let content;
24
25
  if (!node) {
25
26
  return null;
26
- } else if (typeof node !== "string" && "typography" in node && node.typography.type && node.typography.props) {
27
+ } else if (typeof node !== "string" && "typography" in node && node.typography.type) {
28
+ const props = node.typography.props || {};
27
29
  content = /* @__PURE__ */ jsx(Fragment, { children: renderTypography(
28
30
  node.typography.type,
29
- Object.assign(node.typography.props, {
30
- content: node
31
- })
31
+ Object.assign(props, { content: node })
32
32
  ) }, `typography-${i}-${node.text.substr(0, 10)}`);
33
33
  } else {
34
34
  content = toNonTypographicReactNodes(node);
@@ -37,7 +37,7 @@ function toReactNodes(toReactNodesArg) {
37
37
  });
38
38
  return /* @__PURE__ */ jsx(Fragment, { children: reactNodes });
39
39
  }
40
- function setReactNodesTypography(nodesArg, nodesTypographyMap) {
40
+ function setReactNodesTypography(nodesArg, nodesTypographyMap, replaceExistingTypography = true) {
41
41
  const nodes = Array.isArray(nodesArg) ? nodesArg : [nodesArg];
42
42
  const nodesWithTypography = nodes.map((node, i) => {
43
43
  if (isIconNode(node)) {
@@ -49,28 +49,32 @@ function setReactNodesTypography(nodesArg, nodesTypographyMap) {
49
49
  typography: nodesTypographyMap.text
50
50
  };
51
51
  }
52
- } else if (isLinkNode(node)) {
52
+ } else if (!node) {
53
+ return node;
54
+ }
55
+ const useExistingTypography = !replaceExistingTypography && isObject(node) && "typography" in node ? node.typography : void 0;
56
+ if (isLinkNode(node)) {
53
57
  if (nodesTypographyMap.link) {
54
58
  return __spreadProps(__spreadValues({}, node), {
55
- typography: nodesTypographyMap.link
59
+ typography: useExistingTypography || nodesTypographyMap.link
56
60
  });
57
61
  }
58
62
  } else if (isExternalLinkNode(node)) {
59
63
  if (nodesTypographyMap.externalLink) {
60
64
  return __spreadProps(__spreadValues({}, node), {
61
- typography: nodesTypographyMap.externalLink
65
+ typography: useExistingTypography || nodesTypographyMap.externalLink
62
66
  });
63
67
  }
64
68
  } else if (isNextLinkNode(node)) {
65
69
  if (nodesTypographyMap.nextLink) {
66
70
  return __spreadProps(__spreadValues({}, node), {
67
- typography: nodesTypographyMap.nextLink
71
+ typography: useExistingTypography || nodesTypographyMap.nextLink
68
72
  });
69
73
  }
70
74
  } else if (isTextNode(node)) {
71
75
  if (nodesTypographyMap.text) {
72
76
  return __spreadProps(__spreadValues({}, node), {
73
- typography: nodesTypographyMap.text
77
+ typography: useExistingTypography || nodesTypographyMap.text
74
78
  });
75
79
  }
76
80
  }
@@ -89,9 +93,13 @@ function toReactNodesWithTypographyMap(nodesArg, nodesTypographyMap) {
89
93
  const nodes = toReactNodes(nodesWithTypography);
90
94
  return nodes;
91
95
  }
96
+ function setDefaultReactNodesTypography(nodesArg, nodesTypographyMap) {
97
+ return setReactNodesTypography(nodesArg, nodesTypographyMap, false);
98
+ }
92
99
 
93
100
  export {
94
101
  toReactNodes,
95
102
  setReactNodesTypography,
96
- toReactNodesWithTypographyMap
103
+ toReactNodesWithTypographyMap,
104
+ setDefaultReactNodesTypography
97
105
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SingleCodeInput
3
- } from "./chunk-PQKVR2BR.js";
3
+ } from "./chunk-42D2SXB2.js";
4
4
  import {
5
5
  textInputBorderColor
6
- } from "./chunk-6CNJ5ZCC.js";
6
+ } from "./chunk-Q76C6FJ5.js";
7
7
  import {
8
8
  __spreadProps,
9
9
  __spreadValues
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  UnstyledButton
3
- } from "./chunk-LTCJ6LNO.js";
3
+ } from "./chunk-TN5UPDZG.js";
4
4
  import {
5
5
  standardLineHeightEms
6
- } from "./chunk-PG2W2HVB.js";
6
+ } from "./chunk-YG5BANJH.js";
7
7
  import {
8
8
  themeOr
9
- } from "./chunk-IBZBPQMZ.js";
9
+ } from "./chunk-UAUAYQ3C.js";
10
10
  import {
11
11
  colors
12
- } from "./chunk-XUWFUTR4.js";
12
+ } from "./chunk-KPAVY3UH.js";
13
13
 
14
14
  // src/components/Toggle.tsx
15
15
  import styled from "@emotion/styled";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-YMNSXZ5D.js";
4
4
  import {
5
5
  toNonTypographicReactNodes
6
- } from "./chunk-XDP7GCYE.js";
6
+ } from "./chunk-HNK2KIC7.js";
7
7
  import {
8
8
  applyTypography
9
- } from "./chunk-4C2TISN7.js";
9
+ } from "./chunk-OPUCWQMK.js";
10
10
 
11
11
  // src/components/typography/Headline.tsx
12
12
  import styled from "@emotion/styled";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  toReactNodes
3
- } from "./chunk-LIQSJ5R7.js";
3
+ } from "./chunk-AKGW3FMJ.js";
4
4
  import {
5
5
  Tooltip
6
- } from "./chunk-RPNTFEXE.js";
6
+ } from "./chunk-H3UUVMZ3.js";
7
7
  import {
8
8
  Icon
9
- } from "./chunk-I3FI3FNP.js";
9
+ } from "./chunk-LAGOF7IU.js";
10
10
 
11
11
  // src/components/InfoIconTooltip.tsx
12
12
  import { Fragment } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rootFontSizePx
3
- } from "./chunk-PG2W2HVB.js";
3
+ } from "./chunk-YG5BANJH.js";
4
4
 
5
5
  // src/styles/utils.tsx
6
6
  import { css } from "@emotion/react";
@@ -0,0 +1,65 @@
1
+ // src/styles/tokens/spacing.tsx
2
+ var n = {
3
+ "4xs": 2,
4
+ "3xs": 4,
5
+ "2xs": 6,
6
+ xs: 8,
7
+ sm: 12,
8
+ md: 16,
9
+ lg: 24,
10
+ xl: 32,
11
+ "2xl": 40,
12
+ "3xl": 48,
13
+ "4xl": 56,
14
+ "5xl": 64,
15
+ "6xl": 72,
16
+ "7xl": 80,
17
+ "8xl": 96,
18
+ "9xl": 112,
19
+ "10xl": 128,
20
+ "11xl": 160
21
+ };
22
+ var Spacing = {
23
+ "4xs": n["4xs"],
24
+ "3xs": n["3xs"],
25
+ "2xs": n["2xs"],
26
+ xs: n.xs,
27
+ sm: n.sm,
28
+ md: n.md,
29
+ lg: n.lg,
30
+ xl: n.xl,
31
+ "2xl": n["2xl"],
32
+ "3xl": n["3xl"],
33
+ "4xl": n["4xl"],
34
+ "5xl": n["5xl"],
35
+ "6xl": n["6xl"],
36
+ "7xl": n["7xl"],
37
+ "8xl": n["8xl"],
38
+ "9xl": n["9xl"],
39
+ "10xl": n["10xl"],
40
+ "11xl": n["11xl"],
41
+ px: {
42
+ "4xs": `${n["4xs"]}px`,
43
+ "3xs": `${n["3xs"]}px`,
44
+ "2xs": `${n["2xs"]}px`,
45
+ xs: `${n.xs}px`,
46
+ sm: `${n.sm}px`,
47
+ md: `${n.md}px`,
48
+ lg: `${n.lg}px`,
49
+ xl: `${n.xl}px`,
50
+ "2xl": `${n["2xl"]}px`,
51
+ "3xl": `${n["3xl"]}px`,
52
+ "4xl": `${n["4xl"]}px`,
53
+ "5xl": `${n["5xl"]}px`,
54
+ "6xl": `${n["6xl"]}px`,
55
+ "7xl": `${n["7xl"]}px`,
56
+ "8xl": `${n["8xl"]}px`,
57
+ "9xl": `${n["9xl"]}px`,
58
+ "10xl": `${n["10xl"]}px`,
59
+ "11xl": `${n["11xl"]}px`
60
+ }
61
+ };
62
+
63
+ export {
64
+ Spacing
65
+ };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CopyToClipboardButton
3
- } from "./chunk-X4TGLNCH.js";
3
+ } from "./chunk-5JJUXAVA.js";
4
4
  import {
5
5
  overflowAutoWithoutScrollbars
6
- } from "./chunk-7WDAN3OC.js";
6
+ } from "./chunk-D4DFISYR.js";
7
7
  import {
8
8
  standardBorderRadius
9
- } from "./chunk-PG2W2HVB.js";
9
+ } from "./chunk-YG5BANJH.js";
10
10
  import {
11
11
  themeOr
12
- } from "./chunk-IBZBPQMZ.js";
12
+ } from "./chunk-UAUAYQ3C.js";
13
13
  import {
14
14
  colors
15
- } from "./chunk-XUWFUTR4.js";
15
+ } from "./chunk-KPAVY3UH.js";
16
16
  import {
17
17
  __spreadProps,
18
18
  __spreadValues
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Loading
3
- } from "./chunk-5TTLUOJ5.js";
3
+ } from "./chunk-SIYZ5PZT.js";
4
4
  import {
5
5
  UnstyledButton
6
- } from "./chunk-LTCJ6LNO.js";
6
+ } from "./chunk-TN5UPDZG.js";
7
7
  import {
8
8
  flexCenter
9
- } from "./chunk-7WDAN3OC.js";
9
+ } from "./chunk-D4DFISYR.js";
10
10
  import {
11
11
  Icon
12
- } from "./chunk-I3FI3FNP.js";
12
+ } from "./chunk-LAGOF7IU.js";
13
13
  import {
14
14
  colors
15
- } from "./chunk-XUWFUTR4.js";
15
+ } from "./chunk-KPAVY3UH.js";
16
16
 
17
17
  // src/components/Pill.tsx
18
18
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  GlobalStyles
3
- } from "./chunk-7IHNYMFQ.js";
3
+ } from "./chunk-FE477HOE.js";
4
4
  import {
5
5
  themes
6
- } from "./chunk-IBZBPQMZ.js";
6
+ } from "./chunk-UAUAYQ3C.js";
7
7
 
8
8
  // src/components/LightsparkProvider.tsx
9
9
  import { ThemeProvider } from "@emotion/react";
@@ -0,0 +1,74 @@
1
+ import {
2
+ setDefaultReactNodesTypography,
3
+ toReactNodes
4
+ } from "./chunk-AKGW3FMJ.js";
5
+ import {
6
+ Icon
7
+ } from "./chunk-LAGOF7IU.js";
8
+ import {
9
+ standardBorderRadius
10
+ } from "./chunk-YG5BANJH.js";
11
+ import {
12
+ getColor
13
+ } from "./chunk-UAUAYQ3C.js";
14
+
15
+ // src/components/Badge.tsx
16
+ import styled from "@emotion/styled";
17
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
18
+ function Badge({
19
+ content: contentProp,
20
+ kind,
21
+ icon,
22
+ ml = 0,
23
+ mr = 0,
24
+ size = "sm",
25
+ block = false,
26
+ typography: typographyProp
27
+ }) {
28
+ const typography = {
29
+ type: (typographyProp == null ? void 0 : typographyProp.type) || "Label Moderate",
30
+ props: {
31
+ size: (typographyProp == null ? void 0 : typographyProp.size) || "Small",
32
+ color: (typographyProp == null ? void 0 : typographyProp.color) || (kind === "danger" ? "danger" : "text")
33
+ }
34
+ };
35
+ const typographyMap = {
36
+ link: typography,
37
+ externalLink: typography,
38
+ text: typography,
39
+ nextLink: typography
40
+ };
41
+ let content = setDefaultReactNodesTypography(
42
+ contentProp,
43
+ typographyMap
44
+ );
45
+ content = toReactNodes(content);
46
+ return contentProp ? /* @__PURE__ */ jsxs(StyledBadge, { kind, ml, size, block, children: [
47
+ icon ? /* @__PURE__ */ jsx(Icon, { name: icon.name, width: 20, color: icon.color }) : null,
48
+ /* @__PURE__ */ jsx(BadgeContent, { children: content })
49
+ ] }) : null;
50
+ }
51
+ var badgeSmVPadding = 2;
52
+ var badgeSmHPadding = 6;
53
+ var StyledBadge = styled.div`
54
+ ${({ size }) => standardBorderRadius(size === "sm" ? 4 : 12)}
55
+ ${({ ml }) => ml === 0 ? "" : `margin-left: ${ml}px;`}
56
+
57
+ display: ${({ block }) => block ? "flex" : "inline-flex"};
58
+ gap: ${({ size }) => size === "sm" ? badgeSmHPadding : 12}px;
59
+ align-items: center;
60
+ padding: ${({ size }) => size === "sm" ? `${badgeSmVPadding}px ${badgeSmHPadding}px` : "12px 16px"};
61
+ background-color: ${({ theme, kind }) => {
62
+ if (kind === "danger") {
63
+ return getColor(theme, "red42a10");
64
+ } else {
65
+ return getColor(theme, theme.badge.bg);
66
+ }
67
+ }};
68
+ `;
69
+ var BadgeContent = styled.div``;
70
+
71
+ export {
72
+ Badge,
73
+ badgeSmVPadding
74
+ };
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  rootFontSizeRems,
6
6
  standardLineHeightEms
7
- } from "./chunk-PG2W2HVB.js";
7
+ } from "./chunk-YG5BANJH.js";
8
8
  import {
9
9
  useThemeBg
10
- } from "./chunk-IBZBPQMZ.js";
10
+ } from "./chunk-UAUAYQ3C.js";
11
11
  import {
12
12
  bp
13
13
  } from "./chunk-JSGRNWSB.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toNonTypographicReactNodes
3
- } from "./chunk-XDP7GCYE.js";
3
+ } from "./chunk-HNK2KIC7.js";
4
4
  import {
5
5
  applyTypography
6
- } from "./chunk-4C2TISN7.js";
6
+ } from "./chunk-OPUCWQMK.js";
7
7
 
8
8
  // src/components/typography/LabelModerate.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  renderTypography
3
- } from "./chunk-VXKNN4SF.js";
3
+ } from "./chunk-RQLRNKOP.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-I3FI3FNP.js";
6
+ } from "./chunk-LAGOF7IU.js";
7
7
 
8
8
  // src/components/TextIconAligner.tsx
9
9
  import { jsx, jsxs } from "@emotion/react/jsx-runtime";
@@ -3,46 +3,46 @@ import {
3
3
  } from "./chunk-JJC2AUQ3.js";
4
4
  import {
5
5
  TextButton
6
- } from "./chunk-2XUHQWCJ.js";
7
- import {
8
- toReactNodes
9
- } from "./chunk-LIQSJ5R7.js";
6
+ } from "./chunk-LKJ7QTWL.js";
10
7
  import {
11
8
  Dropdown
12
- } from "./chunk-XM2HQVUK.js";
9
+ } from "./chunk-4IHNUHE3.js";
13
10
  import {
14
11
  standardBorderColor
15
- } from "./chunk-6CNJ5ZCC.js";
12
+ } from "./chunk-Q76C6FJ5.js";
16
13
  import {
17
14
  Badge,
18
- badgeVPadding
19
- } from "./chunk-SEZEDINC.js";
15
+ badgeSmVPadding
16
+ } from "./chunk-ERNTWEIJ.js";
17
+ import {
18
+ toReactNodes
19
+ } from "./chunk-AKGW3FMJ.js";
20
20
  import {
21
21
  Heading,
22
22
  headingWithDefaults
23
- } from "./chunk-BHP5YL2N.js";
23
+ } from "./chunk-N67Y7GWR.js";
24
24
  import {
25
25
  Loading
26
- } from "./chunk-5TTLUOJ5.js";
26
+ } from "./chunk-SIYZ5PZT.js";
27
27
  import {
28
28
  select
29
29
  } from "./chunk-YMNSXZ5D.js";
30
30
  import {
31
31
  UnstyledButton
32
- } from "./chunk-LTCJ6LNO.js";
32
+ } from "./chunk-TN5UPDZG.js";
33
33
  import {
34
34
  Icon
35
- } from "./chunk-I3FI3FNP.js";
35
+ } from "./chunk-LAGOF7IU.js";
36
36
  import {
37
37
  standardBorderRadius,
38
38
  standardLineHeightEms
39
- } from "./chunk-PG2W2HVB.js";
39
+ } from "./chunk-YG5BANJH.js";
40
40
  import {
41
41
  bp
42
42
  } from "./chunk-JSGRNWSB.js";
43
43
  import {
44
44
  colors
45
- } from "./chunk-XUWFUTR4.js";
45
+ } from "./chunk-KPAVY3UH.js";
46
46
  import {
47
47
  __spreadValues
48
48
  } from "./chunk-LOPKRCGI.js";
@@ -161,7 +161,7 @@ var PageSectionBoxActionRow = ({
161
161
  title ? /* @__PURE__ */ jsxs("div", { children: [
162
162
  /* @__PURE__ */ jsxs(PageSectionBoxTitle, { children: [
163
163
  title,
164
- titleBadge ? /* @__PURE__ */ jsx(Badge, { text: titleBadge, ml: 4 }) : null
164
+ titleBadge ? /* @__PURE__ */ jsx(Badge, { content: titleBadge, ml: 4 }) : null
165
165
  ] }),
166
166
  description ? /* @__PURE__ */ jsx(PageSectionBoxDescription, { children: description }) : null
167
167
  ] }) : null,
@@ -283,7 +283,7 @@ var PageSectionBoxTitle = styled.div`
283
283
  align-items: center;
284
284
  font-size: ${({ lg }) => lg ? 14 : 12}px;
285
285
  font-weight: 600;
286
- line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) + badgeVPadding * 2}px;
286
+ line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) + badgeSmVPadding * 2}px;
287
287
  `;
288
288
  var PageSectionBoxDescription = styled.div`
289
289
  color: ${({ theme }) => theme.mcNeutral};
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-55OQPFLF.js";
4
4
  import {
5
5
  overlaySurface
6
- } from "./chunk-PG2W2HVB.js";
6
+ } from "./chunk-YG5BANJH.js";
7
7
  import {
8
8
  __spreadProps,
9
9
  __spreadValues
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toNonTypographicReactNodes
3
- } from "./chunk-XDP7GCYE.js";
3
+ } from "./chunk-HNK2KIC7.js";
4
4
  import {
5
5
  applyTypography
6
- } from "./chunk-4C2TISN7.js";
6
+ } from "./chunk-OPUCWQMK.js";
7
7
 
8
8
  // src/components/typography/Overline.tsx
9
9
  import styled from "@emotion/styled";