@lightsparkdev/ui 0.0.2 → 0.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 (109) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-Z4M2ODOW.js → chunk-2VBDEO6M.js} +1 -1
  3. package/dist/{chunk-6CJNPRC3.js → chunk-3PB5DNAL.js} +1 -1
  4. package/dist/chunk-3XSQV5U4.js +26 -0
  5. package/dist/{chunk-ABA75YLN.js → chunk-4I2ABBID.js} +2 -2
  6. package/dist/{chunk-7ZTWDJAE.js → chunk-4K2KAYVH.js} +2 -2
  7. package/dist/{chunk-AFAP6ZGM.js → chunk-4ZZHBSW4.js} +41 -37
  8. package/dist/{chunk-JD7JHP46.js → chunk-6R6A5H4I.js} +18 -9
  9. package/dist/{chunk-I5KUI7TK.js → chunk-6RXFA73Z.js} +1 -1
  10. package/dist/{chunk-WLHM7GX2.js → chunk-ANJDI74G.js} +2 -2
  11. package/dist/{chunk-EXB35D5E.js → chunk-BCFRW7CV.js} +1 -1
  12. package/dist/{chunk-RIU33XNS.js → chunk-DHNWT2E5.js} +1 -1
  13. package/dist/{chunk-F4FIOIYM.js → chunk-E4EXM4SY.js} +0 -2
  14. package/dist/{chunk-5XTI555J.js → chunk-EZ4RHFY7.js} +1 -1
  15. package/dist/{chunk-345XTQ55.js → chunk-FHNYQLMF.js} +2 -2
  16. package/dist/{chunk-N2J673NM.js → chunk-FRIQXHPR.js} +3 -3
  17. package/dist/{chunk-4Y2M2HEF.js → chunk-LD5LZXUP.js} +2 -2
  18. package/dist/{chunk-XU3F6HH6.js → chunk-LN7MMOXE.js} +2 -2
  19. package/dist/{chunk-HC4KIHUT.js → chunk-MYG24ZWT.js} +1 -1
  20. package/dist/{chunk-WK4HZX53.js → chunk-MYKMYG6H.js} +2 -2
  21. package/dist/{chunk-N7SP3C6R.js → chunk-OLAFBUE5.js} +1 -1
  22. package/dist/{chunk-BGOEN6S2.js → chunk-OO5UJRAW.js} +2 -2
  23. package/dist/{chunk-QOUEEA3G.js → chunk-PVUPVJ3F.js} +1 -1
  24. package/dist/{chunk-7VX4OOSZ.js → chunk-RBYRXBPI.js} +2 -2
  25. package/dist/{chunk-MQZEMU23.js → chunk-SUD5NOKE.js} +6 -6
  26. package/dist/{chunk-Z4MZOSEJ.js → chunk-SV5QPU7N.js} +1 -1
  27. package/dist/{chunk-C4OKXC6T.js → chunk-SW6ZA7W2.js} +2 -2
  28. package/dist/{chunk-QMHY6EGS.js → chunk-U6LQLAWI.js} +3 -3
  29. package/dist/{chunk-IZBH5JX6.js → chunk-VV7F7VVL.js} +2 -2
  30. package/dist/{chunk-SMLXEMZE.js → chunk-WB6FFT7Y.js} +16 -7
  31. package/dist/{chunk-M46YHH4D.js → chunk-WEPQ7LRL.js} +1 -1
  32. package/dist/{chunk-HZH77KO7.js → chunk-XUGLVWSH.js} +1 -1
  33. package/dist/{chunk-XRIZ5OCE.js → chunk-YHSFWCFN.js} +2 -2
  34. package/dist/{chunk-2GX5Y72Y.js → chunk-ZQTE53SK.js} +1 -1
  35. package/dist/components/Button.js +8 -8
  36. package/dist/components/ButtonRow.js +10 -10
  37. package/dist/components/Collapsible.cjs +14 -5
  38. package/dist/components/Collapsible.d.cts +9 -1
  39. package/dist/components/Collapsible.d.ts +9 -1
  40. package/dist/components/Collapsible.js +7 -6
  41. package/dist/components/ContentTable.js +5 -5
  42. package/dist/components/CopyToClipboardButton.js +6 -6
  43. package/dist/components/CurrencyAmount.js +5 -5
  44. package/dist/components/Icon.js +4 -4
  45. package/dist/components/LightsparkProvider.js +5 -5
  46. package/dist/components/Loading.js +5 -5
  47. package/dist/components/Modal.cjs +12 -3
  48. package/dist/components/Modal.js +11 -11
  49. package/dist/components/ProgressBar.js +3 -3
  50. package/dist/components/SecretContainer.js +7 -7
  51. package/dist/components/TextIconAligner.js +5 -5
  52. package/dist/components/UnstyledButton.js +4 -4
  53. package/dist/components/documentation/AnchorLinkHeader.cjs +0 -2
  54. package/dist/components/documentation/AnchorLinkHeader.js +6 -6
  55. package/dist/components/documentation/index.cjs +0 -2
  56. package/dist/components/documentation/index.js +6 -6
  57. package/dist/components/index.cjs +26 -8
  58. package/dist/components/index.js +20 -19
  59. package/dist/hooks/useWhatChanged.cjs +30 -0
  60. package/dist/hooks/useWhatChanged.d.cts +1 -0
  61. package/dist/hooks/useWhatChanged.d.ts +1 -0
  62. package/dist/hooks/useWhatChanged.js +7 -0
  63. package/dist/icons/ApiConnection.cjs +44 -0
  64. package/dist/icons/ApiConnection.d.cts +5 -0
  65. package/dist/icons/ApiConnection.d.ts +5 -0
  66. package/dist/icons/ApiConnection.js +25 -0
  67. package/dist/icons/index.js +4 -4
  68. package/dist/index.d.cts +1 -2
  69. package/dist/index.d.ts +1 -2
  70. package/dist/router.js +3 -3
  71. package/dist/styles/colors.js +2 -2
  72. package/dist/styles/common.js +3 -3
  73. package/dist/styles/fields.js +3 -3
  74. package/dist/styles/fonts/typography/Article.cjs +28 -26
  75. package/dist/styles/fonts/typography/Article.js +13 -12
  76. package/dist/styles/fonts/typography/Body.cjs +0 -2
  77. package/dist/styles/fonts/typography/Body.js +3 -3
  78. package/dist/styles/fonts/typography/BodyStrong.cjs +0 -2
  79. package/dist/styles/fonts/typography/BodyStrong.js +3 -3
  80. package/dist/styles/fonts/typography/Code.cjs +0 -2
  81. package/dist/styles/fonts/typography/Code.js +2 -2
  82. package/dist/styles/fonts/typography/Display.cjs +0 -2
  83. package/dist/styles/fonts/typography/Display.js +3 -3
  84. package/dist/styles/fonts/typography/Headline.cjs +0 -2
  85. package/dist/styles/fonts/typography/Headline.js +3 -3
  86. package/dist/styles/fonts/typography/Label.cjs +0 -2
  87. package/dist/styles/fonts/typography/Label.js +3 -3
  88. package/dist/styles/fonts/typography/LabelModerate.cjs +0 -2
  89. package/dist/styles/fonts/typography/LabelModerate.js +3 -3
  90. package/dist/styles/fonts/typography/LabelStrong.cjs +0 -2
  91. package/dist/styles/fonts/typography/LabelStrong.js +3 -3
  92. package/dist/styles/fonts/typography/Overline.cjs +0 -2
  93. package/dist/styles/fonts/typography/Overline.js +3 -3
  94. package/dist/styles/fonts/typography/Title.cjs +0 -2
  95. package/dist/styles/fonts/typography/Title.js +3 -3
  96. package/dist/styles/fonts/typography/index.cjs +28 -26
  97. package/dist/styles/fonts/typography/index.js +26 -25
  98. package/dist/styles/fonts/typographyTokens.cjs +0 -2
  99. package/dist/styles/fonts/typographyTokens.d.cts +1 -4
  100. package/dist/styles/fonts/typographyTokens.d.ts +1 -4
  101. package/dist/styles/fonts/typographyTokens.js +1 -1
  102. package/dist/styles/global.js +4 -4
  103. package/dist/styles/tokens/spacing.cjs +50 -0
  104. package/dist/styles/tokens/spacing.d.cts +22 -0
  105. package/dist/styles/tokens/spacing.d.ts +22 -0
  106. package/dist/styles/tokens/spacing.js +7 -0
  107. package/dist/styles/type.js +4 -4
  108. package/dist/styles/utils.js +4 -4
  109. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @lightsparkdev/ui
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [da1e0b2]
8
+ - @lightsparkdev/core@1.0.13
9
+
10
+ ## 0.0.3
11
+
12
+ ### Patch Changes
13
+
14
+ - e77aa92: - Add spacing tokens for every component in Article
15
+ - Fix modal focus on previous focused element when closed
16
+
3
17
  ## 0.0.2
4
18
 
5
19
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTypography
3
- } from "./chunk-F4FIOIYM.js";
3
+ } from "./chunk-E4EXM4SY.js";
4
4
  import {
5
5
  useBreakpoints
6
6
  } from "./chunk-JSGRNWSB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "./chunk-HC4KIHUT.js";
3
+ } from "./chunk-MYG24ZWT.js";
4
4
 
5
5
  // src/components/CurrencyAmount.tsx
6
6
  import { gql } from "@apollo/client";
@@ -0,0 +1,26 @@
1
+ // src/styles/tokens/spacing.tsx
2
+ var Spacing = /* @__PURE__ */ ((Spacing2) => {
3
+ Spacing2["4xs"] = "2px";
4
+ Spacing2["3xs"] = "4px";
5
+ Spacing2["2xs"] = "6px";
6
+ Spacing2["xs"] = "8px";
7
+ Spacing2["sm"] = "12px";
8
+ Spacing2["md"] = "16px";
9
+ Spacing2["lg"] = "24px";
10
+ Spacing2["xl"] = "32px";
11
+ Spacing2["2xl"] = "40px";
12
+ Spacing2["3xl"] = "48px";
13
+ Spacing2["4xl"] = "56px";
14
+ Spacing2["5xl"] = "64px";
15
+ Spacing2["6xl"] = "72px";
16
+ Spacing2["7xl"] = "80px";
17
+ Spacing2["8xl"] = "96px";
18
+ Spacing2["9xl"] = "112px";
19
+ Spacing2["10xl"] = "128px";
20
+ Spacing2["11xl"] = "160px";
21
+ return Spacing2;
22
+ })(Spacing || {});
23
+
24
+ export {
25
+ Spacing
26
+ };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/LabelModerate.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Headline.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,31 +1,31 @@
1
- import {
2
- StyledCode
3
- } from "./chunk-EXB35D5E.js";
4
- import {
5
- displaySelector
6
- } from "./chunk-C4OKXC6T.js";
7
1
  import {
8
2
  StyledTitle
9
- } from "./chunk-345XTQ55.js";
3
+ } from "./chunk-FHNYQLMF.js";
10
4
  import {
11
5
  StyledBody
12
- } from "./chunk-4Y2M2HEF.js";
6
+ } from "./chunk-LD5LZXUP.js";
7
+ import {
8
+ StyledCode
9
+ } from "./chunk-BCFRW7CV.js";
10
+ import {
11
+ displaySelector
12
+ } from "./chunk-SW6ZA7W2.js";
13
13
  import {
14
14
  ALL_HEADLINE_SELECTORS,
15
15
  headlineSelector
16
- } from "./chunk-7ZTWDJAE.js";
16
+ } from "./chunk-4K2KAYVH.js";
17
17
  import {
18
18
  overflowAutoWithoutScrollbars
19
- } from "./chunk-Z4MZOSEJ.js";
19
+ } from "./chunk-SV5QPU7N.js";
20
20
  import {
21
21
  StyledContentTable
22
- } from "./chunk-5XTI555J.js";
22
+ } from "./chunk-EZ4RHFY7.js";
23
23
  import {
24
24
  colors
25
- } from "./chunk-Z4M2ODOW.js";
25
+ } from "./chunk-2VBDEO6M.js";
26
26
  import {
27
27
  getTypographyString
28
- } from "./chunk-F4FIOIYM.js";
28
+ } from "./chunk-E4EXM4SY.js";
29
29
 
30
30
  // src/styles/fonts/typography/Article.tsx
31
31
  import styled from "@emotion/styled";
@@ -36,51 +36,51 @@ var Article = styled.article`
36
36
 
37
37
  ${headlineSelector("h1")} {
38
38
  margin: 0;
39
- padding-bottom: 8px;
39
+ padding-bottom: ${"8px" /* xs */};
40
40
  }
41
41
 
42
42
  ${headlineSelector("h2")} {
43
- padding-top: 32px;
44
- padding-bottom: 8px;
43
+ padding-top: ${"40px" /* 2xl */};
44
+ padding-bottom: ${"8px" /* xs */};
45
45
  margin: 0;
46
46
  }
47
47
 
48
48
  ${headlineSelector("h3")} {
49
- padding-top: 32px;
50
- padding-bottom: 8px;
49
+ padding-top: ${"40px" /* 2xl */};
50
+ padding-bottom: ${"8px" /* xs */};
51
51
  margin: 0;
52
52
  }
53
53
 
54
54
  ${headlineSelector("h4")} {
55
- padding-top: 16px;
56
- padding-bottom: 8px;
55
+ padding-top: ${"40px" /* 2xl */};
56
+ padding-bottom: ${"8px" /* xs */};
57
57
  margin: 0;
58
58
  }
59
59
 
60
60
  ${headlineSelector("h5")} {
61
- padding-top: 32px;
62
- padding-bottom: 8px;
61
+ padding-top: ${"40px" /* 2xl */};
62
+ padding-bottom: ${"8px" /* xs */};
63
63
  margin: 0;
64
64
  }
65
65
 
66
66
  ${headlineSelector("h6")} {
67
- padding-top: 32px;
68
- padding-bottom: 8px;
67
+ padding-top: ${"40px" /* 2xl */};
68
+ padding-bottom: ${"8px" /* xs */};
69
69
  margin: 0;
70
70
  }
71
71
 
72
72
  ${StyledBody} {
73
- margin-top: 12px;
74
- margin-bottom: 12px;
73
+ margin-top: ${"8px" /* xs */};
74
+ margin-bottom: ${"8px" /* xs */};
75
75
  }
76
76
 
77
77
  ${StyledContentTable} {
78
- margin: 40px 0;
78
+ margin: ${"40px" /* 2xl */} 0;
79
79
  }
80
80
 
81
81
  img {
82
- margin-top: 16px;
83
- margin-bottom: 16px;
82
+ margin-top: ${"16px" /* md */};
83
+ margin-bottom: ${"16px" /* md */};
84
84
  }
85
85
 
86
86
  strong {
@@ -97,9 +97,9 @@ var Article = styled.article`
97
97
 
98
98
  ul,
99
99
  ol {
100
- padding-left: 24px;
101
- margin-top: 8px;
102
- margin-bottom: 8px;
100
+ padding-left: ${"24px" /* lg */};
101
+ margin-top: ${"8px" /* xs */};
102
+ margin-bottom: ${"8px" /* xs */};
103
103
  *:not(a) {
104
104
  color: ${({ theme }) => theme.text};
105
105
  }
@@ -108,23 +108,23 @@ var Article = styled.article`
108
108
  li {
109
109
  ${({ theme }) => getTypographyString(theme.typography[theme.app].Body["Medium" /* Medium */])}
110
110
  :not(:last-child) {
111
- margin-bottom: 4px;
111
+ margin-bottom: ${"4px" /* 3xs */};
112
112
  }
113
113
  }
114
114
 
115
115
  code:not([class|="language"]) {
116
116
  ${({ theme }) => getTypographyString(theme.typography[theme.app].Code["Medium" /* Medium */])}
117
117
  background: ${colors.uma.blue90};
118
- padding: 2px 6px;
119
- margin: 2px;
118
+ padding: ${"2px" /* 4xs */} ${"6px" /* 2xs */};
119
+ margin: ${"2px" /* 4xs */};
120
120
  border-radius: 4px;
121
121
  }
122
122
 
123
123
  pre[class|="language"] {
124
124
  border-radius: 8px;
125
125
  width: 100%;
126
- padding: 16px 24px;
127
- margin: 0;
126
+ padding: ${"16px" /* md */} ${"24px" /* lg */};
127
+ margin: ${"16px" /* md */} 0;
128
128
  }
129
129
 
130
130
  // Must match specificity of prismjs to get proper line height!
@@ -134,6 +134,10 @@ var Article = styled.article`
134
134
 
135
135
  ${overflowAutoWithoutScrollbars}
136
136
  }
137
+
138
+ blockquote {
139
+ margin: ${"8px" /* xs */} 0;
140
+ }
137
141
  `;
138
142
 
139
143
  export {
@@ -3,26 +3,26 @@ import {
3
3
  } from "./chunk-NBCCPGA4.js";
4
4
  import {
5
5
  ProgressBar
6
- } from "./chunk-2GX5Y72Y.js";
6
+ } from "./chunk-ZQTE53SK.js";
7
7
  import {
8
8
  Button
9
- } from "./chunk-MQZEMU23.js";
9
+ } from "./chunk-SUD5NOKE.js";
10
10
  import {
11
11
  overflowAutoWithoutScrollbars,
12
12
  pxToRems
13
- } from "./chunk-Z4MZOSEJ.js";
13
+ } from "./chunk-SV5QPU7N.js";
14
14
  import {
15
15
  UnstyledButton
16
- } from "./chunk-RIU33XNS.js";
16
+ } from "./chunk-DHNWT2E5.js";
17
17
  import {
18
18
  Icon
19
- } from "./chunk-HC4KIHUT.js";
19
+ } from "./chunk-MYG24ZWT.js";
20
20
  import {
21
21
  overlaySurface,
22
22
  smContentInset,
23
23
  standardContentInsetSmPx,
24
24
  standardFocusOutline
25
- } from "./chunk-HZH77KO7.js";
25
+ } from "./chunk-XUGLVWSH.js";
26
26
  import {
27
27
  z
28
28
  } from "./chunk-CLU2FRJZ.js";
@@ -57,6 +57,7 @@ function Modal({
57
57
  width = 460,
58
58
  progressBar
59
59
  }) {
60
+ const visibleChangedRef = useRef(false);
60
61
  const nodeRef = useRef(null);
61
62
  const [defaultFirstFocusRef, defaultFirstFocusRefCb] = useLiveRef();
62
63
  const ref = firstFocusRef || defaultFirstFocusRef;
@@ -66,6 +67,12 @@ function Modal({
66
67
  const modalContainerRef = useRef(null);
67
68
  const bp2 = useBreakpoints();
68
69
  const isSm = bp2.current("sm" /* sm */);
70
+ useEffect(() => {
71
+ if (visible !== visibleChangedRef.current) {
72
+ visibleChangedRef.current = visible;
73
+ }
74
+ }, [visible]);
75
+ const visibleChanged = visible !== visibleChangedRef.current;
69
76
  useEffect(() => {
70
77
  prevFocusedElement.current = document.activeElement;
71
78
  if (!nodeRef.current) {
@@ -119,14 +126,16 @@ function Modal({
119
126
  }, [onClose, visible, nonDismissable]);
120
127
  useLayoutEffect(() => {
121
128
  if (visible) {
122
- prevFocusedElement.current = document.activeElement;
129
+ if (visibleChanged) {
130
+ prevFocusedElement.current = document.activeElement;
131
+ }
123
132
  if (typeof ref === "object" && (ref == null ? void 0 : ref.current) && autoFocus) {
124
133
  ref.current.focus();
125
134
  }
126
- } else if (prevFocusedElement.current) {
135
+ } else if (visibleChanged && prevFocusedElement.current) {
127
136
  prevFocusedElement.current.focus();
128
137
  }
129
- }, [visible, ref, autoFocus]);
138
+ }, [visible, visibleChanged, ref, autoFocus]);
130
139
  function onClickCloseButton(event) {
131
140
  event.stopPropagation();
132
141
  onClose();
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-LAMQKQU3.js";
4
4
  import {
5
5
  colors
6
- } from "./chunk-Z4M2ODOW.js";
6
+ } from "./chunk-2VBDEO6M.js";
7
7
 
8
8
  // src/router.tsx
9
9
  import { omit } from "lodash-es";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Headline
3
- } from "./chunk-7ZTWDJAE.js";
3
+ } from "./chunk-4K2KAYVH.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-HC4KIHUT.js";
6
+ } from "./chunk-MYG24ZWT.js";
7
7
  import {
8
8
  __spreadProps,
9
9
  __spreadValues
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTypographyString
3
- } from "./chunk-F4FIOIYM.js";
3
+ } from "./chunk-E4EXM4SY.js";
4
4
 
5
5
  // src/styles/fonts/typography/Code.tsx
6
6
  import styled from "@emotion/styled";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  standardFocusOutline
3
- } from "./chunk-HZH77KO7.js";
3
+ } from "./chunk-XUGLVWSH.js";
4
4
 
5
5
  // src/components/UnstyledButton.tsx
6
6
  import styled from "@emotion/styled";
@@ -903,8 +903,6 @@ var getTypography = (customFontFamilies) => {
903
903
  var getTypographyString = (token) => {
904
904
  return Object.entries(token).map((entry) => {
905
905
  switch (entry[0]) {
906
- case "paragraph-spacing":
907
- return entry[1] === "default" ? "" : `margin-bottom: ${entry[1]};`;
908
906
  case "paragraph-indent":
909
907
  return `text-indent: ${entry[1]};`;
910
908
  case "text-case":
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "./chunk-HC4KIHUT.js";
3
+ } from "./chunk-MYG24ZWT.js";
4
4
 
5
5
  // src/components/ContentTable.tsx
6
6
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Title.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  UnstyledButton
3
- } from "./chunk-RIU33XNS.js";
3
+ } from "./chunk-DHNWT2E5.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-HC4KIHUT.js";
6
+ } from "./chunk-MYG24ZWT.js";
7
7
  import {
8
8
  StyledTooltip
9
- } from "./chunk-HZH77KO7.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-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Body.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/BodyStrong.tsx
9
9
  import styled from "@emotion/styled";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-LAMQKQU3.js";
4
4
  import {
5
5
  rootFontSizePx
6
- } from "./chunk-HZH77KO7.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-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.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-HC4KIHUT.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-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.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-N2J673NM.js";
3
+ } from "./chunk-FRIQXHPR.js";
4
4
 
5
5
  // src/components/SecretContainer.tsx
6
6
  import styled from "@emotion/styled";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colors
3
- } from "./chunk-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.js";
6
+ } from "./chunk-E4EXM4SY.js";
7
7
 
8
8
  // src/styles/fonts/typography/Overline.tsx
9
9
  import styled from "@emotion/styled";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  Link
3
- } from "./chunk-I5KUI7TK.js";
3
+ } from "./chunk-6RXFA73Z.js";
4
4
  import {
5
5
  Loading
6
- } from "./chunk-N7SP3C6R.js";
6
+ } from "./chunk-OLAFBUE5.js";
7
7
  import {
8
8
  UnstyledButton
9
- } from "./chunk-RIU33XNS.js";
9
+ } from "./chunk-DHNWT2E5.js";
10
10
  import {
11
11
  Icon
12
- } from "./chunk-HC4KIHUT.js";
12
+ } from "./chunk-MYG24ZWT.js";
13
13
  import {
14
14
  getFocusOutline
15
- } from "./chunk-HZH77KO7.js";
15
+ } from "./chunk-XUGLVWSH.js";
16
16
  import {
17
17
  colors,
18
18
  themeOr
19
- } from "./chunk-Z4M2ODOW.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-HZH77KO7.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-Z4M2ODOW.js";
3
+ } from "./chunk-2VBDEO6M.js";
4
4
  import {
5
5
  getTypographyString
6
- } from "./chunk-F4FIOIYM.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-MQZEMU23.js";
3
+ } from "./chunk-SUD5NOKE.js";
4
4
  import {
5
5
  overflowAutoWithoutScrollbars
6
- } from "./chunk-Z4MZOSEJ.js";
6
+ } from "./chunk-SV5QPU7N.js";
7
7
  import {
8
8
  standardContentInsetSmPx
9
- } from "./chunk-HZH77KO7.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-XRIZ5OCE.js";
3
+ } from "./chunk-YHSFWCFN.js";
4
4
  import {
5
5
  themes
6
- } from "./chunk-Z4M2ODOW.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-Z4MZOSEJ.js";
3
+ } from "./chunk-SV5QPU7N.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-HC4KIHUT.js";
6
+ } from "./chunk-MYG24ZWT.js";
7
7
 
8
8
  // src/components/Collapsible.tsx
9
9
  import styled from "@emotion/styled";
@@ -17,7 +17,9 @@ function Collapsible({
17
17
  open,
18
18
  handleToggle,
19
19
  hamburger,
20
- full
20
+ full,
21
+ buttonTextElement,
22
+ contentIndent = true
21
23
  }) {
22
24
  const [isOpen, setIsOpen] = useState(open);
23
25
  const handleClick = () => {
@@ -31,12 +33,18 @@ function Collapsible({
31
33
  }, [open]);
32
34
  const iconName = hamburger ? isOpen ? "Close" : "StackedLines" : "Down";
33
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
+ }
34
42
  return /* @__PURE__ */ jsxs(StyledCollapsible, { className, children: [
35
43
  /* @__PURE__ */ jsxs(StyledCollapsibleButton, { onClick: handleClick, children: [
36
- text ? /* @__PURE__ */ jsx(Text, { color, children: text }) : /* @__PURE__ */ jsx("div", {}),
44
+ textElement,
37
45
  /* @__PURE__ */ jsx(IconContainer, { isOpen, hamburger, children: /* @__PURE__ */ jsx(Icon, { width: iconWidth, name: iconName }) })
38
46
  ] }),
39
- /* @__PURE__ */ jsx(CollapsingContainer, { isOpen, full, children: /* @__PURE__ */ jsx(InnerPadding, { children }) })
47
+ /* @__PURE__ */ jsx(CollapsingContainer, { isOpen, full, children: /* @__PURE__ */ jsx(InnerPadding, { contentIndent, children }) })
40
48
  ] });
41
49
  }
42
50
  var StyledCollapsible = styled.div`
@@ -99,8 +107,9 @@ var CollapsingContainer = styled.div`
99
107
  }
100
108
  `;
101
109
  var InnerPadding = styled.div`
102
- padding: 4px 0 4px 16px;
103
- gap: 4px;
110
+ padding: ${"4px" /* 3xs */} 0 ${"4px" /* 3xs */}
111
+ ${(props) => props.contentIndent ? "16px" /* md */ : "0"};
112
+ gap: ${"2px" /* 4xs */};
104
113
  display: flex;
105
114
  flex-direction: column;
106
115
  `;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Icon
3
- } from "./chunk-HC4KIHUT.js";
3
+ } from "./chunk-MYG24ZWT.js";
4
4
 
5
5
  // src/components/TextIconAligner.tsx
6
6
  import { jsx, jsxs } from "@emotion/react/jsx-runtime";