@lightsparkdev/ui 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{chunk-ACZDUWPH.js → chunk-2VBDEO6M.js} +2 -2
  3. package/dist/{chunk-FETTWCK3.js → chunk-3PB5DNAL.js} +1 -1
  4. package/dist/chunk-3XSQV5U4.js +26 -0
  5. package/dist/chunk-4I2ABBID.js +38 -0
  6. package/dist/{chunk-W4GDCWKZ.js → chunk-4K2KAYVH.js} +3 -3
  7. package/dist/{chunk-2RF46PE5.js → chunk-4ZZHBSW4.js} +48 -30
  8. package/dist/{chunk-XTEEADPV.js → chunk-6R6A5H4I.js} +34 -13
  9. package/dist/{chunk-LJYASIJC.js → chunk-6RXFA73Z.js} +19 -3
  10. package/dist/{chunk-DE24BV2C.js → chunk-ANJDI74G.js} +2 -2
  11. package/dist/{chunk-RUVXOYBL.js → chunk-BCFRW7CV.js} +5 -4
  12. package/dist/{chunk-X6BI4STY.js → chunk-DHNWT2E5.js} +1 -1
  13. package/dist/chunk-E4EXM4SY.js +921 -0
  14. package/dist/chunk-EZ4RHFY7.js +57 -0
  15. package/dist/{chunk-CQDQFIWT.js → chunk-FHNYQLMF.js} +10 -4
  16. package/dist/{chunk-K7MPHJNG.js → chunk-FRIQXHPR.js} +3 -3
  17. package/dist/{chunk-7NQH4LBZ.js → chunk-LD5LZXUP.js} +2 -2
  18. package/dist/chunk-LN7MMOXE.js +29 -0
  19. package/dist/{chunk-L7XFJWMY.js → chunk-MYG24ZWT.js} +1 -1
  20. package/dist/{chunk-I4PO6FQP.js → chunk-MYKMYG6H.js} +2 -2
  21. package/dist/{chunk-BZ5MKMI2.js → chunk-OLAFBUE5.js} +1 -1
  22. package/dist/{chunk-6RDG2DE3.js → chunk-OO5UJRAW.js} +2 -2
  23. package/dist/{chunk-Y4RJ7WS4.js → chunk-PVUPVJ3F.js} +1 -1
  24. package/dist/chunk-RBYRXBPI.js +29 -0
  25. package/dist/{chunk-4X3K3VRC.js → chunk-SUD5NOKE.js} +6 -6
  26. package/dist/{chunk-LZHLWOXG.js → chunk-SV5QPU7N.js} +1 -1
  27. package/dist/{chunk-LWTUQB7O.js → chunk-SW6ZA7W2.js} +2 -2
  28. package/dist/{chunk-O27TAUAS.js → chunk-U6LQLAWI.js} +3 -3
  29. package/dist/{chunk-6AV4TE6I.js → chunk-VV7F7VVL.js} +2 -2
  30. package/dist/{chunk-7ENCWBAN.js → chunk-WB6FFT7Y.js} +21 -7
  31. package/dist/{chunk-BKOTW3CK.js → chunk-WEPQ7LRL.js} +1 -1
  32. package/dist/{chunk-QR7BKTM6.js → chunk-XUGLVWSH.js} +4 -4
  33. package/dist/{chunk-WVEK4LFA.js → chunk-YHSFWCFN.js} +3 -3
  34. package/dist/chunk-ZQTE53SK.js +78 -0
  35. package/dist/components/Button.cjs +429 -236
  36. package/dist/components/Button.js +9 -9
  37. package/dist/components/ButtonRow.cjs +431 -236
  38. package/dist/components/ButtonRow.js +11 -11
  39. package/dist/components/Collapsible.cjs +428 -232
  40. package/dist/components/Collapsible.d.cts +10 -1
  41. package/dist/components/Collapsible.d.ts +10 -1
  42. package/dist/components/Collapsible.js +8 -7
  43. package/dist/components/ContentTable.cjs +1498 -0
  44. package/dist/components/ContentTable.d.cts +26 -0
  45. package/dist/components/ContentTable.d.ts +26 -0
  46. package/dist/components/ContentTable.js +16 -0
  47. package/dist/components/CopyToClipboardButton.cjs +409 -227
  48. package/dist/components/CopyToClipboardButton.js +7 -7
  49. package/dist/components/CurrencyAmount.cjs +409 -227
  50. package/dist/components/CurrencyAmount.js +6 -6
  51. package/dist/components/Icon.cjs +409 -227
  52. package/dist/components/Icon.js +5 -5
  53. package/dist/components/LightsparkProvider.cjs +410 -228
  54. package/dist/components/LightsparkProvider.js +6 -6
  55. package/dist/components/Loading.cjs +409 -227
  56. package/dist/components/Loading.js +6 -6
  57. package/dist/components/Modal.cjs +559 -275
  58. package/dist/components/Modal.d.cts +5 -10
  59. package/dist/components/Modal.d.ts +5 -10
  60. package/dist/components/Modal.js +12 -11
  61. package/dist/components/ProgressBar.cjs +1238 -0
  62. package/dist/components/ProgressBar.d.cts +17 -0
  63. package/dist/components/ProgressBar.d.ts +17 -0
  64. package/dist/components/ProgressBar.js +10 -0
  65. package/dist/components/SecretContainer.cjs +409 -227
  66. package/dist/components/SecretContainer.js +8 -8
  67. package/dist/components/TextIconAligner.cjs +409 -227
  68. package/dist/components/TextIconAligner.js +6 -6
  69. package/dist/components/UnstyledButton.cjs +409 -227
  70. package/dist/components/UnstyledButton.js +5 -5
  71. package/dist/components/documentation/AnchorLinkHeader.cjs +409 -229
  72. package/dist/components/documentation/AnchorLinkHeader.js +7 -7
  73. package/dist/components/documentation/index.cjs +409 -229
  74. package/dist/components/documentation/index.js +7 -7
  75. package/dist/components/index.cjs +590 -292
  76. package/dist/components/index.d.cts +1 -0
  77. package/dist/components/index.d.ts +1 -0
  78. package/dist/components/index.js +24 -19
  79. package/dist/hooks/useWhatChanged.cjs +30 -0
  80. package/dist/hooks/useWhatChanged.d.cts +1 -0
  81. package/dist/hooks/useWhatChanged.d.ts +1 -0
  82. package/dist/hooks/useWhatChanged.js +7 -0
  83. package/dist/icons/ApiConnection.cjs +44 -0
  84. package/dist/icons/ApiConnection.d.cts +5 -0
  85. package/dist/icons/ApiConnection.d.ts +5 -0
  86. package/dist/icons/ApiConnection.js +25 -0
  87. package/dist/icons/CentralArrowShareRight.cjs +53 -0
  88. package/dist/icons/CentralArrowShareRight.d.cts +5 -0
  89. package/dist/icons/CentralArrowShareRight.d.ts +5 -0
  90. package/dist/icons/CentralArrowShareRight.js +30 -0
  91. package/dist/icons/Restart.cjs +1 -1
  92. package/dist/icons/Restart.js +1 -1
  93. package/dist/icons/Uma.cjs +57 -0
  94. package/dist/icons/Uma.d.cts +5 -0
  95. package/dist/icons/Uma.d.ts +5 -0
  96. package/dist/icons/Uma.js +38 -0
  97. package/dist/icons/index.cjs +409 -227
  98. package/dist/icons/index.js +5 -5
  99. package/dist/index.d.cts +1 -2
  100. package/dist/index.d.ts +1 -2
  101. package/dist/router.cjs +429 -229
  102. package/dist/router.d.cts +8 -5
  103. package/dist/router.d.ts +8 -5
  104. package/dist/router.js +4 -3
  105. package/dist/styles/colors.cjs +409 -227
  106. package/dist/styles/colors.js +2 -2
  107. package/dist/styles/common.cjs +409 -227
  108. package/dist/styles/common.d.cts +1 -1
  109. package/dist/styles/common.d.ts +1 -1
  110. package/dist/styles/common.js +4 -4
  111. package/dist/styles/fields.cjs +409 -227
  112. package/dist/styles/fields.js +6 -6
  113. package/dist/styles/fonts/typography/Article.cjs +514 -274
  114. package/dist/styles/fonts/typography/Article.js +15 -9
  115. package/dist/styles/fonts/typography/Body.cjs +409 -229
  116. package/dist/styles/fonts/typography/Body.js +3 -3
  117. package/dist/styles/fonts/typography/BodyStrong.cjs +1196 -0
  118. package/dist/styles/fonts/typography/BodyStrong.d.cts +23 -0
  119. package/dist/styles/fonts/typography/BodyStrong.d.ts +23 -0
  120. package/dist/styles/fonts/typography/BodyStrong.js +13 -0
  121. package/dist/styles/fonts/typography/Code.cjs +6 -6
  122. package/dist/styles/fonts/typography/Code.d.cts +8 -1
  123. package/dist/styles/fonts/typography/Code.d.ts +8 -1
  124. package/dist/styles/fonts/typography/Code.js +6 -4
  125. package/dist/styles/fonts/typography/Display.cjs +409 -229
  126. package/dist/styles/fonts/typography/Display.js +3 -3
  127. package/dist/styles/fonts/typography/Headline.cjs +410 -230
  128. package/dist/styles/fonts/typography/Headline.js +3 -3
  129. package/dist/styles/fonts/typography/Label.cjs +409 -229
  130. package/dist/styles/fonts/typography/Label.js +3 -3
  131. package/dist/styles/fonts/typography/LabelModerate.cjs +1205 -0
  132. package/dist/styles/fonts/typography/LabelModerate.d.cts +18 -0
  133. package/dist/styles/fonts/typography/LabelModerate.d.ts +18 -0
  134. package/dist/styles/fonts/typography/LabelModerate.js +13 -0
  135. package/dist/styles/fonts/typography/LabelStrong.cjs +409 -229
  136. package/dist/styles/fonts/typography/LabelStrong.js +3 -3
  137. package/dist/styles/fonts/typography/Overline.cjs +1196 -0
  138. package/dist/styles/fonts/typography/Overline.d.cts +18 -0
  139. package/dist/styles/fonts/typography/Overline.d.ts +18 -0
  140. package/dist/styles/fonts/typography/Overline.js +13 -0
  141. package/dist/styles/fonts/typography/Title.cjs +417 -231
  142. package/dist/styles/fonts/typography/Title.d.cts +2 -1
  143. package/dist/styles/fonts/typography/Title.d.ts +2 -1
  144. package/dist/styles/fonts/typography/Title.js +3 -3
  145. package/dist/styles/fonts/typography/index.cjs +594 -299
  146. package/dist/styles/fonts/typography/index.d.cts +3 -0
  147. package/dist/styles/fonts/typography/index.d.ts +3 -0
  148. package/dist/styles/fonts/typography/index.js +31 -15
  149. package/dist/styles/fonts/typographyTokens.cjs +413 -233
  150. package/dist/styles/fonts/typographyTokens.d.cts +210 -28
  151. package/dist/styles/fonts/typographyTokens.d.ts +210 -28
  152. package/dist/styles/fonts/typographyTokens.js +1 -1
  153. package/dist/styles/global.cjs +410 -228
  154. package/dist/styles/global.js +5 -5
  155. package/dist/styles/tokens/spacing.cjs +50 -0
  156. package/dist/styles/tokens/spacing.d.cts +22 -0
  157. package/dist/styles/tokens/spacing.d.ts +22 -0
  158. package/dist/styles/tokens/spacing.js +7 -0
  159. package/dist/styles/type.cjs +409 -227
  160. package/dist/styles/type.js +5 -5
  161. package/dist/styles/utils.cjs +409 -227
  162. package/dist/styles/utils.js +5 -5
  163. package/package.json +7 -4
  164. package/dist/chunk-WVJNZRKF.js +0 -741
@@ -0,0 +1,57 @@
1
+ import {
2
+ Icon
3
+ } from "./chunk-MYG24ZWT.js";
4
+
5
+ // src/components/ContentTable.tsx
6
+ import styled from "@emotion/styled";
7
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
8
+ function ContentTable({
9
+ columns,
10
+ rows
11
+ }) {
12
+ return /* @__PURE__ */ jsxs(StyledContentTable, { children: [
13
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
14
+ /* @__PURE__ */ jsx("th", {}),
15
+ columns.map((column) => /* @__PURE__ */ jsx("th", { children: column.title }, column.key))
16
+ ] }) }),
17
+ /* @__PURE__ */ jsx("tbody", { children: rows.map((row, index) => /* @__PURE__ */ jsxs("tr", { children: [
18
+ /* @__PURE__ */ jsx("td", { children: row.title }),
19
+ columns.map((column) => {
20
+ const value = row[column.key];
21
+ return /* @__PURE__ */ jsx("td", { children: value === true ? /* @__PURE__ */ jsx(Icon, { name: "CheckmarkCircleGreen", width: 16 }) : value }, column.key);
22
+ })
23
+ ] }, index)) })
24
+ ] });
25
+ }
26
+ var StyledContentTable = styled.table`
27
+ width: 100%;
28
+ border-collapse: collapse;
29
+ border: 1px solid ${({ theme }) => theme.c1Neutral};
30
+ color: ${({ theme }) => theme.c6Neutral};
31
+
32
+ tr:last-child td:first-child {
33
+ border-bottom-left-radius: 10px;
34
+ }
35
+
36
+ tr:last-child td:last-child {
37
+ border-bottom-right-radius: 10px;
38
+ }
39
+
40
+ th,
41
+ td {
42
+ padding: 26px 12px;
43
+ border: 1px solid #e5e5e5;
44
+ }
45
+ th {
46
+ text-align: center;
47
+ }
48
+ td {
49
+ vertical-align: middle;
50
+ text-align: center;
51
+ }
52
+ `;
53
+
54
+ export {
55
+ ContentTable,
56
+ StyledContentTable
57
+ };
@@ -1,17 +1,23 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-ACZDUWPH.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-WVJNZRKF.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Title.tsx
9
9
  import styled from "@emotion/styled";
10
10
  import { jsx } from "@emotion/react/jsx-runtime";
11
- var Title = ({ children, color, size = "Medium" /* Medium */ }) => {
12
- return /* @__PURE__ */ jsx(StyledTitle, { size, color, children });
11
+ var Title = ({
12
+ children,
13
+ color,
14
+ size = "Medium" /* Medium */,
15
+ block = false
16
+ }) => {
17
+ return /* @__PURE__ */ jsx(StyledTitle, { size, color, block, children });
13
18
  };
14
19
  var StyledTitle = styled.span`
20
+ ${({ block }) => block ? "display: block;" : ""}
15
21
  color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
16
22
  ${({ theme, size }) => {
17
23
  return size ? getTypographyString(theme.typography[theme.app].Title[size]) : "";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  UnstyledButton
3
- } from "./chunk-X6BI4STY.js";
3
+ } from "./chunk-DHNWT2E5.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-L7XFJWMY.js";
6
+ } from "./chunk-MYG24ZWT.js";
7
7
  import {
8
8
  StyledTooltip
9
- } from "./chunk-QR7BKTM6.js";
9
+ } from "./chunk-XUGLVWSH.js";
10
10
  import {
11
11
  __async
12
12
  } from "./chunk-CIGAQ47A.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-ACZDUWPH.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-WVJNZRKF.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Body.tsx
9
9
  import styled from "@emotion/styled";
@@ -0,0 +1,29 @@
1
+ import {
2
+ colors
3
+ } from "./chunk-2VBDEO6M.js";
4
+ import {
5
+ getTypographyString
6
+ } from "./chunk-E4EXM4SY.js";
7
+
8
+ // src/styles/fonts/typography/BodyStrong.tsx
9
+ import styled from "@emotion/styled";
10
+ import { jsx } from "@emotion/react/jsx-runtime";
11
+ var BodyStrong = ({
12
+ children,
13
+ color,
14
+ size = "Medium" /* Medium */
15
+ }) => {
16
+ return /* @__PURE__ */ jsx(StyledBodyStrong, { size, color, children });
17
+ };
18
+ var StyledBodyStrong = styled.span`
19
+ display: block;
20
+ color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
21
+ ${({ theme, size }) => {
22
+ return size ? getTypographyString(theme.typography[theme.app]["Body Strong"][size]) : "";
23
+ }}
24
+ `;
25
+
26
+ export {
27
+ BodyStrong,
28
+ StyledBodyStrong
29
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-LAMQKQU3.js";
4
4
  import {
5
5
  rootFontSizePx
6
- } from "./chunk-QR7BKTM6.js";
6
+ } from "./chunk-XUGLVWSH.js";
7
7
  import {
8
8
  __async
9
9
  } from "./chunk-CIGAQ47A.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-ACZDUWPH.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-WVJNZRKF.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/LabelStrong.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "./chunk-L7XFJWMY.js";
3
+ } from "./chunk-MYG24ZWT.js";
4
4
 
5
5
  // src/components/Loading.tsx
6
6
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-ACZDUWPH.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-WVJNZRKF.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Label.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CopyToClipboardButton
3
- } from "./chunk-K7MPHJNG.js";
3
+ } from "./chunk-FRIQXHPR.js";
4
4
 
5
5
  // src/components/SecretContainer.tsx
6
6
  import styled from "@emotion/styled";
@@ -0,0 +1,29 @@
1
+ import {
2
+ colors
3
+ } from "./chunk-2VBDEO6M.js";
4
+ import {
5
+ getTypographyString
6
+ } from "./chunk-E4EXM4SY.js";
7
+
8
+ // src/styles/fonts/typography/Overline.tsx
9
+ import styled from "@emotion/styled";
10
+ import { jsx } from "@emotion/react/jsx-runtime";
11
+ var Overline = ({
12
+ children,
13
+ color,
14
+ size = "Medium" /* Medium */
15
+ }) => {
16
+ return /* @__PURE__ */ jsx(StyledOverline, { size, color, children });
17
+ };
18
+ var StyledOverline = styled.span`
19
+ color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
20
+ ${({ theme, size }) => {
21
+ return size ? getTypographyString(theme.typography[theme.app].Overline[size]) : "";
22
+ }}
23
+ cursor: inherit;
24
+ `;
25
+
26
+ export {
27
+ Overline,
28
+ StyledOverline
29
+ };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  Link
3
- } from "./chunk-LJYASIJC.js";
3
+ } from "./chunk-6RXFA73Z.js";
4
4
  import {
5
5
  Loading
6
- } from "./chunk-BZ5MKMI2.js";
6
+ } from "./chunk-OLAFBUE5.js";
7
7
  import {
8
8
  UnstyledButton
9
- } from "./chunk-X6BI4STY.js";
9
+ } from "./chunk-DHNWT2E5.js";
10
10
  import {
11
11
  Icon
12
- } from "./chunk-L7XFJWMY.js";
12
+ } from "./chunk-MYG24ZWT.js";
13
13
  import {
14
14
  getFocusOutline
15
- } from "./chunk-QR7BKTM6.js";
15
+ } from "./chunk-XUGLVWSH.js";
16
16
  import {
17
17
  colors,
18
18
  themeOr
19
- } from "./chunk-ACZDUWPH.js";
19
+ } from "./chunk-2VBDEO6M.js";
20
20
  import {
21
21
  __spreadProps,
22
22
  __spreadValues
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rootFontSizePx
3
- } from "./chunk-QR7BKTM6.js";
3
+ } from "./chunk-XUGLVWSH.js";
4
4
 
5
5
  // src/styles/utils.tsx
6
6
  import { css } from "@emotion/react";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-ACZDUWPH.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-WVJNZRKF.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Display.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-4X3K3VRC.js";
3
+ } from "./chunk-SUD5NOKE.js";
4
4
  import {
5
5
  overflowAutoWithoutScrollbars
6
- } from "./chunk-LZHLWOXG.js";
6
+ } from "./chunk-SV5QPU7N.js";
7
7
  import {
8
8
  standardContentInsetSmPx
9
- } from "./chunk-QR7BKTM6.js";
9
+ } from "./chunk-XUGLVWSH.js";
10
10
  import {
11
11
  bp
12
12
  } from "./chunk-JSGRNWSB.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  GlobalStyles
3
- } from "./chunk-WVEK4LFA.js";
3
+ } from "./chunk-YHSFWCFN.js";
4
4
  import {
5
5
  themes
6
- } from "./chunk-ACZDUWPH.js";
6
+ } from "./chunk-2VBDEO6M.js";
7
7
 
8
8
  // src/components/LightsparkProvider.tsx
9
9
  import { ThemeProvider } from "@emotion/react";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  overflowAutoWithoutScrollbars
3
- } from "./chunk-LZHLWOXG.js";
3
+ } from "./chunk-SV5QPU7N.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-L7XFJWMY.js";
6
+ } from "./chunk-MYG24ZWT.js";
7
7
 
8
8
  // src/components/Collapsible.tsx
9
9
  import styled from "@emotion/styled";
@@ -13,10 +13,13 @@ function Collapsible({
13
13
  children,
14
14
  className,
15
15
  text,
16
+ color,
16
17
  open,
17
18
  handleToggle,
18
19
  hamburger,
19
- full
20
+ full,
21
+ buttonTextElement,
22
+ contentIndent = true
20
23
  }) {
21
24
  const [isOpen, setIsOpen] = useState(open);
22
25
  const handleClick = () => {
@@ -30,12 +33,18 @@ function Collapsible({
30
33
  }, [open]);
31
34
  const iconName = hamburger ? isOpen ? "Close" : "StackedLines" : "Down";
32
35
  const iconWidth = iconName === "Close" ? 12 : 14;
36
+ let textElement = /* @__PURE__ */ jsx("div", {});
37
+ if (buttonTextElement) {
38
+ textElement = buttonTextElement;
39
+ } else if (text) {
40
+ textElement = /* @__PURE__ */ jsx(Text, { color, children: text });
41
+ }
33
42
  return /* @__PURE__ */ jsxs(StyledCollapsible, { className, children: [
34
43
  /* @__PURE__ */ jsxs(StyledCollapsibleButton, { onClick: handleClick, children: [
35
- text ? text : /* @__PURE__ */ jsx("div", {}),
44
+ textElement,
36
45
  /* @__PURE__ */ jsx(IconContainer, { isOpen, hamburger, children: /* @__PURE__ */ jsx(Icon, { width: iconWidth, name: iconName }) })
37
46
  ] }),
38
- /* @__PURE__ */ jsx(CollapsingContainer, { isOpen, full, children: /* @__PURE__ */ jsx(InnerPadding, { children }) })
47
+ /* @__PURE__ */ jsx(CollapsingContainer, { isOpen, full, children: /* @__PURE__ */ jsx(InnerPadding, { contentIndent, children }) })
39
48
  ] });
40
49
  }
41
50
  var StyledCollapsible = styled.div`
@@ -98,11 +107,16 @@ var CollapsingContainer = styled.div`
98
107
  }
99
108
  `;
100
109
  var InnerPadding = styled.div`
101
- padding: 4px 0 4px 16px;
102
- gap: 4px;
110
+ padding: ${"4px" /* 3xs */} 0 ${"4px" /* 3xs */}
111
+ ${(props) => props.contentIndent ? "16px" /* md */ : "0"};
112
+ gap: ${"2px" /* 4xs */};
103
113
  display: flex;
104
114
  flex-direction: column;
105
115
  `;
116
+ var Text = styled.span`
117
+ ${(props) => props.color ? `color: ${props.color};` : ""}
118
+ line-height: inherit;
119
+ `;
106
120
 
107
121
  export {
108
122
  Collapsible,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "./chunk-L7XFJWMY.js";
3
+ } from "./chunk-MYG24ZWT.js";
4
4
 
5
5
  // src/components/TextIconAligner.tsx
6
6
  import { jsx, jsxs } from "@emotion/react/jsx-runtime";
@@ -1,14 +1,14 @@
1
+ import {
2
+ z
3
+ } from "./chunk-CLU2FRJZ.js";
1
4
  import {
2
5
  colors,
3
6
  darkGradient,
4
7
  themeOr
5
- } from "./chunk-ACZDUWPH.js";
8
+ } from "./chunk-2VBDEO6M.js";
6
9
  import {
7
10
  bp
8
11
  } from "./chunk-JSGRNWSB.js";
9
- import {
10
- z
11
- } from "./chunk-CLU2FRJZ.js";
12
12
 
13
13
  // src/styles/common.tsx
14
14
  import { css } from "@emotion/react";
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  rootFontSizeRems,
6
6
  standardLineHeightEms
7
- } from "./chunk-QR7BKTM6.js";
7
+ } from "./chunk-XUGLVWSH.js";
8
8
  import {
9
9
  useThemeBg
10
- } from "./chunk-ACZDUWPH.js";
10
+ } from "./chunk-2VBDEO6M.js";
11
11
  import {
12
12
  bp
13
13
  } from "./chunk-JSGRNWSB.js";
@@ -88,7 +88,7 @@ var globalComponentStyles = ({ theme }) => css`
88
88
  }
89
89
 
90
90
  strong {
91
- font-weight: 600;
91
+ font-weight: 700;
92
92
  }
93
93
  `;
94
94
  function GlobalStyles() {
@@ -0,0 +1,78 @@
1
+ import {
2
+ themeOr
3
+ } from "./chunk-2VBDEO6M.js";
4
+
5
+ // src/components/ProgressBar.tsx
6
+ import styled from "@emotion/styled";
7
+ import { useEffect, useState } from "react";
8
+ import { jsx } from "@emotion/react/jsx-runtime";
9
+ var defaultProps = {
10
+ isSm: false,
11
+ stepDuration: 0.5
12
+ };
13
+ function ProgressBar({
14
+ background,
15
+ progressPercentage,
16
+ isSm = defaultProps.isSm,
17
+ stepDuration = defaultProps.stepDuration
18
+ }) {
19
+ const [percentage, setPercentage] = useState(5);
20
+ if (progressPercentage === void 0) {
21
+ setTimeout(() => {
22
+ setPercentage(100);
23
+ }, 0);
24
+ }
25
+ useEffect(() => {
26
+ if (progressPercentage !== void 0) {
27
+ setPercentage(progressPercentage);
28
+ }
29
+ }, [progressPercentage]);
30
+ return /* @__PURE__ */ jsx(ProgressBarContainer, { isSm, children: /* @__PURE__ */ jsx(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ jsx(
31
+ BarBg,
32
+ {
33
+ background,
34
+ isSm,
35
+ percentage,
36
+ stepDuration
37
+ }
38
+ ) }) });
39
+ }
40
+ ProgressBar.defaultProps = defaultProps;
41
+ var ProgressBarContainer = styled.div`
42
+ background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
43
+ border-radius: 16px;
44
+ box-sizing: border-box;
45
+ display: flex;
46
+ height: ${({ isSm }) => isSm ? "6px" : "16px"};
47
+ justify-content: flex-start;
48
+ width: 100%;
49
+ position: relative;
50
+ `;
51
+ var BarBg = styled.div`
52
+ border-radius: 16px;
53
+ width: ${({ percentage }) => 100 / percentage * 100}%;
54
+ height: 100%;
55
+
56
+ background: ${({ background }) => background ? background : `
57
+ linear-gradient(
58
+ 90deg,
59
+ #000000 -25.9%,
60
+ #1b4077 14.55%,
61
+ #a152c7 82.22%,
62
+ #3f2e7e 115.32%
63
+ )`};
64
+ `;
65
+ var Bar = styled.div`
66
+ overflow: hidden;
67
+ border-radius: ${({ isSm }) => isSm ? "6px" : "16px"};
68
+ box-sizing: border-box;
69
+ display: inline-block;
70
+ height: ${({ isSm }) => isSm ? "6px" : "16px"};
71
+ width: ${(props) => props.percentage}%;
72
+ transition: width ${({ stepDuration }) => stepDuration}s
73
+ cubic-bezier(0.16, 0.3, 0.18, 1);
74
+ `;
75
+
76
+ export {
77
+ ProgressBar
78
+ };