@lightsparkdev/ui 0.0.2 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/{chunk-Z4M2ODOW.js → chunk-2VBDEO6M.js} +1 -1
- package/dist/{chunk-6CJNPRC3.js → chunk-3PB5DNAL.js} +1 -1
- package/dist/chunk-3XSQV5U4.js +26 -0
- package/dist/{chunk-ABA75YLN.js → chunk-4I2ABBID.js} +2 -2
- package/dist/{chunk-7ZTWDJAE.js → chunk-4K2KAYVH.js} +2 -2
- package/dist/{chunk-AFAP6ZGM.js → chunk-4ZZHBSW4.js} +41 -37
- package/dist/{chunk-JD7JHP46.js → chunk-6R6A5H4I.js} +18 -9
- package/dist/{chunk-I5KUI7TK.js → chunk-6RXFA73Z.js} +1 -1
- package/dist/{chunk-WLHM7GX2.js → chunk-ANJDI74G.js} +2 -2
- package/dist/{chunk-EXB35D5E.js → chunk-BCFRW7CV.js} +1 -1
- package/dist/{chunk-RIU33XNS.js → chunk-DHNWT2E5.js} +1 -1
- package/dist/{chunk-F4FIOIYM.js → chunk-E4EXM4SY.js} +0 -2
- package/dist/{chunk-5XTI555J.js → chunk-EZ4RHFY7.js} +1 -1
- package/dist/{chunk-345XTQ55.js → chunk-FHNYQLMF.js} +2 -2
- package/dist/{chunk-N2J673NM.js → chunk-FRIQXHPR.js} +3 -3
- package/dist/{chunk-4Y2M2HEF.js → chunk-LD5LZXUP.js} +2 -2
- package/dist/{chunk-XU3F6HH6.js → chunk-LN7MMOXE.js} +2 -2
- package/dist/{chunk-HC4KIHUT.js → chunk-MYG24ZWT.js} +1 -1
- package/dist/{chunk-WK4HZX53.js → chunk-MYKMYG6H.js} +2 -2
- package/dist/{chunk-N7SP3C6R.js → chunk-OLAFBUE5.js} +1 -1
- package/dist/{chunk-BGOEN6S2.js → chunk-OO5UJRAW.js} +2 -2
- package/dist/{chunk-QOUEEA3G.js → chunk-PVUPVJ3F.js} +1 -1
- package/dist/{chunk-7VX4OOSZ.js → chunk-RBYRXBPI.js} +2 -2
- package/dist/{chunk-MQZEMU23.js → chunk-SUD5NOKE.js} +6 -6
- package/dist/{chunk-Z4MZOSEJ.js → chunk-SV5QPU7N.js} +1 -1
- package/dist/{chunk-C4OKXC6T.js → chunk-SW6ZA7W2.js} +2 -2
- package/dist/{chunk-QMHY6EGS.js → chunk-U6LQLAWI.js} +3 -3
- package/dist/{chunk-IZBH5JX6.js → chunk-VV7F7VVL.js} +2 -2
- package/dist/{chunk-SMLXEMZE.js → chunk-WB6FFT7Y.js} +16 -7
- package/dist/{chunk-M46YHH4D.js → chunk-WEPQ7LRL.js} +1 -1
- package/dist/{chunk-HZH77KO7.js → chunk-XUGLVWSH.js} +1 -1
- package/dist/{chunk-XRIZ5OCE.js → chunk-YHSFWCFN.js} +2 -2
- package/dist/{chunk-2GX5Y72Y.js → chunk-ZQTE53SK.js} +1 -1
- package/dist/components/Button.js +8 -8
- package/dist/components/ButtonRow.js +10 -10
- package/dist/components/Collapsible.cjs +14 -5
- package/dist/components/Collapsible.d.cts +9 -1
- package/dist/components/Collapsible.d.ts +9 -1
- package/dist/components/Collapsible.js +7 -6
- package/dist/components/ContentTable.js +5 -5
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.js +5 -5
- package/dist/components/Icon.js +4 -4
- package/dist/components/LightsparkProvider.js +5 -5
- package/dist/components/Loading.js +5 -5
- package/dist/components/Modal.cjs +12 -3
- package/dist/components/Modal.js +11 -11
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/TextIconAligner.js +5 -5
- package/dist/components/UnstyledButton.js +4 -4
- package/dist/components/documentation/AnchorLinkHeader.cjs +0 -2
- package/dist/components/documentation/AnchorLinkHeader.js +6 -6
- package/dist/components/documentation/index.cjs +0 -2
- package/dist/components/documentation/index.js +6 -6
- package/dist/components/index.cjs +26 -8
- package/dist/components/index.js +20 -19
- package/dist/hooks/useWhatChanged.cjs +30 -0
- package/dist/hooks/useWhatChanged.d.cts +1 -0
- package/dist/hooks/useWhatChanged.d.ts +1 -0
- package/dist/hooks/useWhatChanged.js +7 -0
- package/dist/icons/ApiConnection.cjs +44 -0
- package/dist/icons/ApiConnection.d.cts +5 -0
- package/dist/icons/ApiConnection.d.ts +5 -0
- package/dist/icons/ApiConnection.js +25 -0
- package/dist/icons/index.js +4 -4
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/router.js +3 -3
- package/dist/styles/colors.js +2 -2
- package/dist/styles/common.js +3 -3
- package/dist/styles/fields.js +3 -3
- package/dist/styles/fonts/typography/Article.cjs +28 -26
- package/dist/styles/fonts/typography/Article.js +13 -12
- package/dist/styles/fonts/typography/Body.cjs +0 -2
- package/dist/styles/fonts/typography/Body.js +3 -3
- package/dist/styles/fonts/typography/BodyStrong.cjs +0 -2
- package/dist/styles/fonts/typography/BodyStrong.js +3 -3
- package/dist/styles/fonts/typography/Code.cjs +0 -2
- package/dist/styles/fonts/typography/Code.js +2 -2
- package/dist/styles/fonts/typography/Display.cjs +0 -2
- package/dist/styles/fonts/typography/Display.js +3 -3
- package/dist/styles/fonts/typography/Headline.cjs +0 -2
- package/dist/styles/fonts/typography/Headline.js +3 -3
- package/dist/styles/fonts/typography/Label.cjs +0 -2
- package/dist/styles/fonts/typography/Label.js +3 -3
- package/dist/styles/fonts/typography/LabelModerate.cjs +0 -2
- package/dist/styles/fonts/typography/LabelModerate.js +3 -3
- package/dist/styles/fonts/typography/LabelStrong.cjs +0 -2
- package/dist/styles/fonts/typography/LabelStrong.js +3 -3
- package/dist/styles/fonts/typography/Overline.cjs +0 -2
- package/dist/styles/fonts/typography/Overline.js +3 -3
- package/dist/styles/fonts/typography/Title.cjs +0 -2
- package/dist/styles/fonts/typography/Title.js +3 -3
- package/dist/styles/fonts/typography/index.cjs +28 -26
- package/dist/styles/fonts/typography/index.js +26 -25
- package/dist/styles/fonts/typographyTokens.cjs +0 -2
- package/dist/styles/fonts/typographyTokens.d.cts +1 -4
- package/dist/styles/fonts/typographyTokens.d.ts +1 -4
- package/dist/styles/fonts/typographyTokens.js +1 -1
- package/dist/styles/global.js +4 -4
- package/dist/styles/tokens/spacing.cjs +50 -0
- package/dist/styles/tokens/spacing.d.cts +22 -0
- package/dist/styles/tokens/spacing.d.ts +22 -0
- package/dist/styles/tokens/spacing.js +7 -0
- package/dist/styles/type.js +4 -4
- package/dist/styles/utils.js +4 -4
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -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-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-FHNYQLMF.js";
|
|
10
4
|
import {
|
|
11
5
|
StyledBody
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
16
|
+
} from "./chunk-4K2KAYVH.js";
|
|
17
17
|
import {
|
|
18
18
|
overflowAutoWithoutScrollbars
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SV5QPU7N.js";
|
|
20
20
|
import {
|
|
21
21
|
StyledContentTable
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EZ4RHFY7.js";
|
|
23
23
|
import {
|
|
24
24
|
colors
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2VBDEO6M.js";
|
|
26
26
|
import {
|
|
27
27
|
getTypographyString
|
|
28
|
-
} from "./chunk-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
74
|
-
margin-bottom:
|
|
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-
|
|
6
|
+
} from "./chunk-ZQTE53SK.js";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SUD5NOKE.js";
|
|
10
10
|
import {
|
|
11
11
|
overflowAutoWithoutScrollbars,
|
|
12
12
|
pxToRems
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SV5QPU7N.js";
|
|
14
14
|
import {
|
|
15
15
|
UnstyledButton
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DHNWT2E5.js";
|
|
17
17
|
import {
|
|
18
18
|
Icon
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MYG24ZWT.js";
|
|
20
20
|
import {
|
|
21
21
|
overlaySurface,
|
|
22
22
|
smContentInset,
|
|
23
23
|
standardContentInsetSmPx,
|
|
24
24
|
standardFocusOutline
|
|
25
|
-
} from "./chunk-
|
|
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
|
-
|
|
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();
|
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-DHNWT2E5.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MYG24ZWT.js";
|
|
7
7
|
import {
|
|
8
8
|
StyledTooltip
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E4EXM4SY.js";
|
|
7
7
|
|
|
8
8
|
// src/styles/fonts/typography/BodyStrong.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E4EXM4SY.js";
|
|
7
7
|
|
|
8
8
|
// src/styles/fonts/typography/LabelStrong.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E4EXM4SY.js";
|
|
7
7
|
|
|
8
8
|
// src/styles/fonts/typography/Label.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-6RXFA73Z.js";
|
|
4
4
|
import {
|
|
5
5
|
Loading
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OLAFBUE5.js";
|
|
7
7
|
import {
|
|
8
8
|
UnstyledButton
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DHNWT2E5.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MYG24ZWT.js";
|
|
13
13
|
import {
|
|
14
14
|
getFocusOutline
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XUGLVWSH.js";
|
|
16
16
|
import {
|
|
17
17
|
colors,
|
|
18
18
|
themeOr
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2VBDEO6M.js";
|
|
20
20
|
import {
|
|
21
21
|
__spreadProps,
|
|
22
22
|
__spreadValues
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VBDEO6M.js";
|
|
4
4
|
import {
|
|
5
5
|
getTypographyString
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-SUD5NOKE.js";
|
|
4
4
|
import {
|
|
5
5
|
overflowAutoWithoutScrollbars
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SV5QPU7N.js";
|
|
7
7
|
import {
|
|
8
8
|
standardContentInsetSmPx
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-YHSFWCFN.js";
|
|
4
4
|
import {
|
|
5
5
|
themes
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-SV5QPU7N.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
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
|
-
|
|
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
|
|
103
|
-
|
|
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
|
`;
|