@lightsparkdev/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-SGSLTG65.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-F6EVBEMN.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-J7SV67XL.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-L6S22JUU.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-AI6DCUWK.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-6H7PZJ2A.js → chunk-4X67A2CS.js} +2 -1
- package/dist/{chunk-YRYVSAWS.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-EMXTALIX.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-35WJ3PKH.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-SKXCT2FQ.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-GNVEN6UE.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-LL5YLPNM.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-GGEAODIA.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-S6AOKANU.js → chunk-7RMHMFS2.js} +4 -4
- package/dist/{chunk-CMQELZES.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-5H32AOXL.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-2JYYREVX.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-UNULJ3P6.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-W3BAJ3HT.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-HZ63YB4Y.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-7NPHOJXD.js → chunk-CZFFMEAS.js} +5 -5
- package/dist/{chunk-HRZNVE2K.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-BMSSV6NX.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-TVLELY54.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-OA3BZAST.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-KFX7US6Y.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-UBYBILLK.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-TM3C4LEG.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-6JFJDBV2.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-467PLJO3.js → chunk-JH53NBOD.js} +59 -10
- package/dist/{chunk-2XRCGW74.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-NYQLPSG3.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-CZQER3QD.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-DCFB5MJ7.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-37RRWSDE.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-HA4AQO3T.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-EV6PGQPM.js → chunk-MNMVZI7D.js} +11 -11
- package/dist/{chunk-HP4VPMN7.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-VUXU77SU.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-PNSZAJL7.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-2H7TBKII.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-DNVKN2FG.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-CHK5DOMV.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-XP3BAAUO.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-VYTN6ASZ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-KBYU4ZQ3.js → chunk-TNDSUTUN.js} +3 -3
- package/dist/{chunk-SRHSJOES.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-55M7XHBZ.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-56QJRFP2.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-A4JZESAS.js → chunk-VNQE6KEX.js} +16 -3
- package/dist/{chunk-5XZJEYHG.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-XUVCOSIE.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-ZNZAY47J.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-D73OOC3E.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-WV5AB4ZB.js → chunk-XS4MH3QA.js} +102 -85
- package/dist/{chunk-TM2NGRD2.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-CZCPVHVB.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-JOQCJPOA.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-UVGBD7XM.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-27SFWLPS.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7845 -7476
- package/dist/components/Badge.d.cts +146 -7
- package/dist/components/Badge.d.ts +146 -7
- package/dist/components/Badge.js +20 -23
- package/dist/components/Banner/Banner.cjs +55 -26
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +18 -18
- package/dist/components/Button.cjs +46 -28
- package/dist/components/Button.d.cts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +20 -20
- package/dist/components/ButtonRow.cjs +49 -31
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +22 -22
- package/dist/components/CardPage.cjs +16 -3
- package/dist/components/CardPage.js +24 -24
- package/dist/components/Checkbox.cjs +3 -3
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/CodeBlock.cjs +21 -7
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +17 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +17 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +82 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +22 -8
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +11 -11
- package/dist/components/ContentTable.cjs +17 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +21 -7
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +17 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +293 -176
- package/dist/components/Drawer.d.cts +2 -0
- package/dist/components/Drawer.d.ts +2 -0
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +21 -7
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +5 -5
- package/dist/components/FileInput.cjs +17 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +17 -4
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/IconWithCircleBackground.cjs +7349 -7338
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +62 -32
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +19 -19
- package/dist/components/LightsparkProvider.cjs +16 -3
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +17 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +297 -147
- package/dist/components/Modal.d.cts +21 -15
- package/dist/components/Modal.d.ts +21 -15
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +214 -100
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +27 -31
- package/dist/components/PageSection/PageSectionNav.cjs +50 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +22 -8
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +11 -11
- package/dist/components/Pill.cjs +17 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +16 -3
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7410 -7334
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +21 -7
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +46 -17
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +19 -19
- package/dist/components/TextIconAligner.cjs +40 -11
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +17 -17
- package/dist/components/TextInput.cjs +22 -8
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +10 -10
- package/dist/components/Toasts.cjs +66 -37
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +20 -20
- package/dist/components/Toggle.cjs +108 -97
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +20 -6
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +17 -4
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +8 -8
- package/dist/components/documentation/DocsBodyParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +6 -6
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +6 -6
- package/dist/components/documentation/DocsHeadline.cjs +16 -3
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +7 -7
- package/dist/components/documentation/Video.cjs +16 -0
- package/dist/components/documentation/Video.d.cts +7 -1
- package/dist/components/documentation/Video.d.ts +7 -1
- package/dist/components/documentation/Video.js +18 -2
- package/dist/components/documentation/index.cjs +17 -4
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +8 -8
- package/dist/components/index.cjs +8474 -8234
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +69 -70
- package/dist/components/typography/Article.cjs +103 -28
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +18 -4
- package/dist/components/typography/Body.d.cts +2 -2
- package/dist/components/typography/Body.d.ts +2 -2
- package/dist/components/typography/Body.js +6 -6
- package/dist/components/typography/BodyStrong.cjs +18 -4
- package/dist/components/typography/BodyStrong.d.cts +2 -2
- package/dist/components/typography/BodyStrong.d.ts +2 -2
- package/dist/components/typography/BodyStrong.js +6 -6
- package/dist/components/typography/Code.cjs +18 -4
- package/dist/components/typography/Code.d.cts +2 -2
- package/dist/components/typography/Code.d.ts +2 -2
- package/dist/components/typography/Code.js +6 -6
- package/dist/components/typography/Display.cjs +18 -4
- package/dist/components/typography/Display.d.cts +2 -2
- package/dist/components/typography/Display.d.ts +2 -2
- package/dist/components/typography/Display.js +6 -6
- package/dist/components/typography/Headline.cjs +18 -4
- package/dist/components/typography/Headline.d.cts +2 -2
- package/dist/components/typography/Headline.d.ts +2 -2
- package/dist/components/typography/Headline.js +6 -6
- package/dist/components/typography/Label.cjs +18 -4
- package/dist/components/typography/Label.d.cts +2 -2
- package/dist/components/typography/Label.d.ts +2 -2
- package/dist/components/typography/Label.js +6 -6
- package/dist/components/typography/LabelModerate.cjs +18 -4
- package/dist/components/typography/LabelModerate.d.cts +2 -2
- package/dist/components/typography/LabelModerate.d.ts +2 -2
- package/dist/components/typography/LabelModerate.js +6 -6
- package/dist/components/typography/LabelStrong.cjs +18 -4
- package/dist/components/typography/LabelStrong.d.cts +2 -2
- package/dist/components/typography/LabelStrong.d.ts +2 -2
- package/dist/components/typography/LabelStrong.js +6 -6
- package/dist/components/typography/Overline.cjs +18 -4
- package/dist/components/typography/Overline.d.cts +2 -2
- package/dist/components/typography/Overline.d.ts +2 -2
- package/dist/components/typography/Overline.js +6 -6
- package/dist/components/typography/Title.cjs +18 -4
- package/dist/components/typography/Title.d.cts +3 -3
- package/dist/components/typography/Title.d.ts +3 -3
- package/dist/components/typography/Title.js +6 -6
- package/dist/components/typography/index.cjs +105 -29
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +22 -23
- package/dist/components/typography/renderTypography.cjs +34 -7
- package/dist/components/typography/renderTypography.d.cts +20 -20
- package/dist/components/typography/renderTypography.d.ts +20 -20
- package/dist/components/typography/renderTypography.js +16 -16
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/common.cjs +20 -6
- package/dist/styles/common.d.cts +3 -2
- package/dist/styles/common.d.ts +3 -2
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +17 -4
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +4 -4
- package/dist/styles/global.cjs +16 -3
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +3 -3
- package/dist/styles/themes.cjs +16 -3
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +1 -1
- package/dist/styles/tokens/spacing.cjs +60 -21
- package/dist/styles/tokens/spacing.d.cts +40 -20
- package/dist/styles/tokens/spacing.d.ts +40 -20
- package/dist/styles/tokens/spacing.js +1 -1
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +4 -4
- package/dist/styles/typography.cjs +16 -3
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +2 -2
- package/dist/styles/utils.js +3 -3
- package/dist/{buttons-b7f56076.d.ts → themes-37e92940.d.ts} +91 -67
- package/dist/{buttons-e4eb84a2.d.ts → themes-832e46b2.d.ts} +91 -67
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.cjs +18 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +2 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +2 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +59 -21
- package/dist/utils/toReactNodes.d.cts +13 -9
- package/dist/utils/toReactNodes.d.ts +13 -9
- package/dist/utils/toReactNodes.js +19 -17
- package/package.json +1 -1
- package/dist/chunk-3XSQV5U4.js +0 -26
- package/dist/chunk-B2VYAIYR.js +0 -0
- package/dist/chunk-RSAYBOK5.js +0 -35
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MNMVZI7D.js";
|
|
4
|
+
import {
|
|
5
|
+
UnstyledButton
|
|
6
|
+
} from "./chunk-JAPRGAB7.js";
|
|
4
7
|
import {
|
|
5
8
|
z
|
|
6
9
|
} from "./chunk-55OQPFLF.js";
|
|
10
|
+
import {
|
|
11
|
+
Spacing
|
|
12
|
+
} from "./chunk-E5DUKMCU.js";
|
|
13
|
+
import {
|
|
14
|
+
Icon
|
|
15
|
+
} from "./chunk-TNDSUTUN.js";
|
|
16
|
+
import {
|
|
17
|
+
standardFocusOutline
|
|
18
|
+
} from "./chunk-CZFFMEAS.js";
|
|
7
19
|
import {
|
|
8
20
|
colors
|
|
9
21
|
} from "./chunk-XUWFUTR4.js";
|
|
@@ -20,6 +32,9 @@ var Drawer = (props) => {
|
|
|
20
32
|
const [grabbing, setGrabbing] = useState(false);
|
|
21
33
|
const drawerContainerRef = useRef(null);
|
|
22
34
|
const handleClose = () => {
|
|
35
|
+
if (props.nonDismissable) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
23
38
|
setIsOpen(false);
|
|
24
39
|
setTimeout(() => {
|
|
25
40
|
props.onClose && props.onClose();
|
|
@@ -29,6 +44,9 @@ var Drawer = (props) => {
|
|
|
29
44
|
};
|
|
30
45
|
const handleTouchMove = (event) => {
|
|
31
46
|
var _a, _b;
|
|
47
|
+
if (props.nonDismissable) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
32
50
|
if (lastY === null) {
|
|
33
51
|
setLastY(event.touches[0].clientY);
|
|
34
52
|
} else {
|
|
@@ -45,9 +63,15 @@ var Drawer = (props) => {
|
|
|
45
63
|
}
|
|
46
64
|
};
|
|
47
65
|
const handleTouchStart = () => {
|
|
66
|
+
if (props.nonDismissable) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
48
69
|
setGrabbing(true);
|
|
49
70
|
};
|
|
50
71
|
const handleTouchEnd = () => {
|
|
72
|
+
if (props.nonDismissable) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
51
75
|
setGrabbing(false);
|
|
52
76
|
if (fractionVisible < 0.8) {
|
|
53
77
|
handleClose();
|
|
@@ -75,16 +99,17 @@ var Drawer = (props) => {
|
|
|
75
99
|
grabbing,
|
|
76
100
|
ref: drawerContainerRef,
|
|
77
101
|
children: [
|
|
78
|
-
props.grabber && /* @__PURE__ */ jsx(Grabber, { onClick: handleClose, children: /* @__PURE__ */ jsx(GrabberBar, {}) }),
|
|
79
|
-
props.
|
|
102
|
+
props.grabber && !props.nonDismissable && /* @__PURE__ */ jsx(Grabber, { onClick: handleClose, children: /* @__PURE__ */ jsx(GrabberBar, {}) }),
|
|
103
|
+
props.handleBack && /* @__PURE__ */ jsx(BackButtonContainer, { children: /* @__PURE__ */ jsx(
|
|
80
104
|
Button,
|
|
81
105
|
{
|
|
82
|
-
onClick:
|
|
83
|
-
icon: "
|
|
106
|
+
onClick: props.handleBack,
|
|
107
|
+
icon: "ChevronLeft",
|
|
84
108
|
kind: "ghost",
|
|
85
|
-
size: "
|
|
109
|
+
size: "Small"
|
|
86
110
|
}
|
|
87
111
|
) }),
|
|
112
|
+
props.closeButton && !props.nonDismissable && /* @__PURE__ */ jsx(CloseButtonContainer, { children: /* @__PURE__ */ jsx(CloseButton, { onClick: handleClose, type: "button", children: /* @__PURE__ */ jsx(Icon, { name: "Close", width: 12 }) }) }),
|
|
88
113
|
props.children
|
|
89
114
|
]
|
|
90
115
|
}
|
|
@@ -117,16 +142,19 @@ var Background = styled.div`
|
|
|
117
142
|
`;
|
|
118
143
|
var DrawerContainer = styled.div`
|
|
119
144
|
position: fixed;
|
|
145
|
+
max-height: 100dvh;
|
|
120
146
|
width: 100%;
|
|
121
147
|
background-color: ${({ theme }) => theme.bg};
|
|
122
148
|
right: 0;
|
|
123
149
|
bottom: 0;
|
|
124
150
|
transform: translateY(${(props) => `${props.totalDeltaY}px`});
|
|
125
151
|
z-index: ${z.modalContainer};
|
|
126
|
-
border-radius: ${
|
|
152
|
+
border-radius: ${Spacing.px.lg} ${Spacing.px.lg} 0 0;
|
|
127
153
|
display: flex;
|
|
128
154
|
flex-direction: column;
|
|
129
|
-
padding: ${"
|
|
155
|
+
padding: ${Spacing.px["6xl"]} ${Spacing.px.xl} ${Spacing.px["2xl"]}
|
|
156
|
+
${Spacing.px.xl};
|
|
157
|
+
overflow-y: scroll;
|
|
130
158
|
|
|
131
159
|
// Only smooth transition when not grabbing, otherwise dragging will feel very laggy
|
|
132
160
|
${(props) => props.grabbing && props.isOpen ? "" : "transition: transform 0.3s ease-in-out;"};
|
|
@@ -158,7 +186,7 @@ var Grabber = styled.div`
|
|
|
158
186
|
top: 0;
|
|
159
187
|
left: 0;
|
|
160
188
|
width: 100%;
|
|
161
|
-
height: ${
|
|
189
|
+
height: ${Spacing.px.lg};
|
|
162
190
|
display: flex;
|
|
163
191
|
flex-direction: row;
|
|
164
192
|
justify-content: center;
|
|
@@ -172,12 +200,33 @@ var CloseButtonContainer = styled.div`
|
|
|
172
200
|
right: 20px;
|
|
173
201
|
border-radius: 50%;
|
|
174
202
|
background-color: ${colors.grayBlue94};
|
|
175
|
-
padding: ${
|
|
203
|
+
padding: ${Spacing.px.xs};
|
|
204
|
+
height: 30px;
|
|
205
|
+
width: 30px;
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
176
208
|
|
|
177
209
|
* > * {
|
|
178
210
|
line-height: 14px;
|
|
179
211
|
}
|
|
180
212
|
`;
|
|
213
|
+
var CloseButton = styled(UnstyledButton)`
|
|
214
|
+
${standardFocusOutline}
|
|
215
|
+
width: 24px;
|
|
216
|
+
height: 24px;
|
|
217
|
+
justify-self: flex-end;
|
|
218
|
+
`;
|
|
219
|
+
var BackButtonContainer = styled.div`
|
|
220
|
+
position: absolute;
|
|
221
|
+
top: 20px;
|
|
222
|
+
left: 20px;
|
|
223
|
+
border-radius: 50%;
|
|
224
|
+
padding: ${Spacing.px.xs};
|
|
225
|
+
height: 30px;
|
|
226
|
+
width: 30px;
|
|
227
|
+
display: flex;
|
|
228
|
+
align-items: center;
|
|
229
|
+
`;
|
|
181
230
|
var GrabberBar = styled.div`
|
|
182
231
|
width: 36px;
|
|
183
232
|
height: 5px;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Pill
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWUP3RDU.js";
|
|
4
4
|
import {
|
|
5
5
|
InputSubtext,
|
|
6
6
|
inputBlockStyle
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7RMHMFS2.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TNDSUTUN.js";
|
|
11
11
|
|
|
12
12
|
// src/components/FileInput.tsx
|
|
13
13
|
import styled from "@emotion/styled";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-JJC2AUQ3.js";
|
|
4
4
|
import {
|
|
5
5
|
TextButton
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C4HNAZFZ.js";
|
|
7
7
|
import {
|
|
8
8
|
IconContainer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TNDSUTUN.js";
|
|
10
10
|
import {
|
|
11
11
|
bp
|
|
12
12
|
} from "./chunk-JSGRNWSB.js";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Label
|
|
3
|
-
} from "./chunk-SKXCT2FQ.js";
|
|
4
1
|
import {
|
|
5
2
|
LabelModerate
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V523QTZQ.js";
|
|
7
4
|
import {
|
|
8
5
|
LabelStrong
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YRZ3VNBI.js";
|
|
10
7
|
import {
|
|
11
8
|
Overline
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HPZVUEDJ.js";
|
|
13
10
|
import {
|
|
14
11
|
Code
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7COKMITX.js";
|
|
16
13
|
import {
|
|
17
14
|
Display
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DIKOS5R6.js";
|
|
19
16
|
import {
|
|
20
17
|
Title
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AZOVE32P.js";
|
|
22
19
|
import {
|
|
23
20
|
Body
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HVDX4OZJ.js";
|
|
25
22
|
import {
|
|
26
23
|
BodyStrong
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OMY3WTAU.js";
|
|
28
25
|
import {
|
|
29
26
|
Headline
|
|
30
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OZQ5WPLN.js";
|
|
28
|
+
import {
|
|
29
|
+
Label
|
|
30
|
+
} from "./chunk-7BSME2ZU.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
__objRest
|
|
33
33
|
} from "./chunk-LOPKRCGI.js";
|
|
34
34
|
|
|
35
35
|
// src/components/typography/renderTypography.tsx
|
|
36
|
-
import
|
|
36
|
+
import React from "react";
|
|
37
37
|
var typographyMap = {
|
|
38
38
|
Display,
|
|
39
39
|
Headline,
|
|
@@ -45,11 +45,12 @@ var typographyMap = {
|
|
|
45
45
|
"Label Strong": LabelStrong,
|
|
46
46
|
Overline,
|
|
47
47
|
Code,
|
|
48
|
-
"Code Strong":
|
|
48
|
+
"Code Strong": Code
|
|
49
49
|
};
|
|
50
50
|
var renderTypography = (type, props) => {
|
|
51
51
|
const TypographyComponent = typographyMap[type];
|
|
52
|
-
|
|
52
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
53
|
+
return React.createElement(TypographyComponent, rest, children);
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DocsHeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ON3ICVC.js";
|
|
4
4
|
import {
|
|
5
5
|
select
|
|
6
6
|
} from "./chunk-YMNSXZ5D.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TNDSUTUN.js";
|
|
10
10
|
import {
|
|
11
11
|
__spreadProps,
|
|
12
12
|
__spreadValues
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderTypography
|
|
3
|
-
} from "./chunk-DCFB5MJ7.js";
|
|
4
1
|
import {
|
|
5
2
|
Loading
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DNGAINGL.js";
|
|
4
|
+
import {
|
|
5
|
+
renderTypography
|
|
6
|
+
} from "./chunk-LGXMGWLV.js";
|
|
7
7
|
import {
|
|
8
8
|
select
|
|
9
9
|
} from "./chunk-YMNSXZ5D.js";
|
|
@@ -12,23 +12,23 @@ import {
|
|
|
12
12
|
} from "./chunk-AAFUVYVP.js";
|
|
13
13
|
import {
|
|
14
14
|
applyTypography
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
16
16
|
import {
|
|
17
17
|
Tooltip
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZS7G6WIG.js";
|
|
19
19
|
import {
|
|
20
20
|
UnstyledButton
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JAPRGAB7.js";
|
|
22
22
|
import {
|
|
23
23
|
Icon
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TNDSUTUN.js";
|
|
25
25
|
import {
|
|
26
26
|
getFocusOutline
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CZFFMEAS.js";
|
|
28
28
|
import {
|
|
29
29
|
getBackgroundColor,
|
|
30
30
|
isThemeOrColorKey
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VNQE6KEX.js";
|
|
32
32
|
import {
|
|
33
33
|
TokenSize
|
|
34
34
|
} from "./chunk-ENBUKLVT.js";
|
|
@@ -76,7 +76,7 @@ function getPaddingX(size, kind, isRound) {
|
|
|
76
76
|
function getPadding({ paddingY, kind, size, iconSide, isRound }) {
|
|
77
77
|
const paddingX = getPaddingX(size, kind, isRound);
|
|
78
78
|
const paddingForIcon = 0;
|
|
79
|
-
return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
79
|
+
return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
80
80
|
}
|
|
81
81
|
function resolveBackgroundColorKey(theme, kind, defaultKey) {
|
|
82
82
|
var _a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toNonTypographicReactNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4X67A2CS.js";
|
|
4
4
|
import {
|
|
5
5
|
applyTypography
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
7
7
|
|
|
8
8
|
// src/components/typography/BodyStrong.tsx
|
|
9
9
|
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-
|
|
6
|
+
} from "./chunk-4X67A2CS.js";
|
|
7
7
|
import {
|
|
8
8
|
applyTypography
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
10
10
|
|
|
11
11
|
// src/components/typography/Headline.tsx
|
|
12
12
|
import styled from "@emotion/styled";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toReactNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZO35RX7V.js";
|
|
4
4
|
import {
|
|
5
5
|
UnstyledButton
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JAPRGAB7.js";
|
|
7
7
|
import {
|
|
8
8
|
z
|
|
9
9
|
} from "./chunk-55OQPFLF.js";
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
extend,
|
|
12
12
|
flexCenter,
|
|
13
13
|
pxToRems
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GQVNE3NU.js";
|
|
15
15
|
import {
|
|
16
16
|
Icon
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TNDSUTUN.js";
|
|
18
18
|
import {
|
|
19
19
|
standardContentInset
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CZFFMEAS.js";
|
|
21
21
|
import {
|
|
22
22
|
themeOr
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VNQE6KEX.js";
|
|
24
24
|
import {
|
|
25
25
|
colors
|
|
26
26
|
} from "./chunk-XUWFUTR4.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-E3FGOYEJ.js";
|
|
7
7
|
import {
|
|
8
8
|
toReactNodes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZO35RX7V.js";
|
|
10
10
|
import {
|
|
11
11
|
Link
|
|
12
12
|
} from "./chunk-AAFUVYVP.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-55OQPFLF.js";
|
|
16
16
|
import {
|
|
17
17
|
Icon
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TNDSUTUN.js";
|
|
19
19
|
import {
|
|
20
20
|
getColor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VNQE6KEX.js";
|
|
22
22
|
import {
|
|
23
23
|
bp
|
|
24
24
|
} from "./chunk-JSGRNWSB.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopyToClipboardButton
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-242JGEN4.js";
|
|
4
4
|
import {
|
|
5
5
|
standardBorderRadius
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CZFFMEAS.js";
|
|
7
7
|
|
|
8
8
|
// src/components/SecretContainer.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderTypography
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LGXMGWLV.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TNDSUTUN.js";
|
|
7
7
|
|
|
8
8
|
// src/components/TextIconAligner.tsx
|
|
9
9
|
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
rootFontSizeRems,
|
|
6
6
|
standardLineHeightEms
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CZFFMEAS.js";
|
|
8
8
|
import {
|
|
9
9
|
useThemeBg
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VNQE6KEX.js";
|
|
11
11
|
import {
|
|
12
12
|
bp
|
|
13
13
|
} from "./chunk-JSGRNWSB.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-VI6WTKMV.js";
|
|
11
11
|
import {
|
|
12
12
|
rootFontSizePx
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CZFFMEAS.js";
|
|
14
14
|
import {
|
|
15
15
|
getFontColor
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VNQE6KEX.js";
|
|
17
17
|
|
|
18
18
|
// src/components/Icon/Icon.tsx
|
|
19
19
|
import styled from "@emotion/styled";
|
|
@@ -63,7 +63,7 @@ var IconContainer = styled.span`
|
|
|
63
63
|
${({ theme, fontColor }) => {
|
|
64
64
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
65
65
|
return `
|
|
66
|
-
|
|
66
|
+
svg, path {
|
|
67
67
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
68
68
|
|
|
69
69
|
/*
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StyledContentTable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3R5KJDSL.js";
|
|
4
4
|
import {
|
|
5
5
|
StyledCode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7COKMITX.js";
|
|
7
7
|
import {
|
|
8
8
|
displaySelector
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DIKOS5R6.js";
|
|
10
10
|
import {
|
|
11
11
|
StyledTitle
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AZOVE32P.js";
|
|
13
13
|
import {
|
|
14
14
|
StyledBody
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HVDX4OZJ.js";
|
|
16
16
|
import {
|
|
17
17
|
ALL_HEADLINE_SELECTORS,
|
|
18
18
|
headlineSelector
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OZQ5WPLN.js";
|
|
20
20
|
import {
|
|
21
21
|
select
|
|
22
22
|
} from "./chunk-YMNSXZ5D.js";
|
|
23
|
+
import {
|
|
24
|
+
Spacing
|
|
25
|
+
} from "./chunk-E5DUKMCU.js";
|
|
23
26
|
import {
|
|
24
27
|
overflowAutoWithoutScrollbars
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GQVNE3NU.js";
|
|
26
29
|
import {
|
|
27
30
|
standardBorderRadius
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CZFFMEAS.js";
|
|
29
32
|
import {
|
|
30
33
|
getTypographyString
|
|
31
34
|
} from "./chunk-ENBUKLVT.js";
|
|
@@ -55,52 +58,52 @@ var StyledArticle = styled.article`
|
|
|
55
58
|
|
|
56
59
|
${headlineSelector("h1")} {
|
|
57
60
|
margin: 0;
|
|
58
|
-
padding-bottom: ${
|
|
61
|
+
padding-bottom: ${Spacing.px.xs};
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
${headlineSelector("h2")} {
|
|
62
|
-
padding-top: ${"
|
|
63
|
-
padding-bottom: ${
|
|
65
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
66
|
+
padding-bottom: ${Spacing.px.xs};
|
|
64
67
|
margin: 0;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
${headlineSelector("h3")} {
|
|
68
|
-
padding-top: ${"
|
|
69
|
-
padding-bottom: ${
|
|
71
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
72
|
+
padding-bottom: ${Spacing.px.xs};
|
|
70
73
|
margin: 0;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
${headlineSelector("h4")} {
|
|
74
|
-
padding-top: ${"
|
|
75
|
-
padding-bottom: ${
|
|
77
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
78
|
+
padding-bottom: ${Spacing.px.xs};
|
|
76
79
|
margin: 0;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
${headlineSelector("h5")} {
|
|
80
|
-
padding-top: ${"
|
|
81
|
-
padding-bottom: ${
|
|
83
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
84
|
+
padding-bottom: ${Spacing.px.xs};
|
|
82
85
|
margin: 0;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
${headlineSelector("h6")} {
|
|
86
|
-
padding-top: ${"
|
|
87
|
-
padding-bottom: ${
|
|
89
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
90
|
+
padding-bottom: ${Spacing.px.xs};
|
|
88
91
|
margin: 0;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
${select(StyledBody)} {
|
|
92
|
-
margin-top: ${
|
|
93
|
-
margin-bottom: ${
|
|
95
|
+
margin-top: ${Spacing.px.xs};
|
|
96
|
+
margin-bottom: ${Spacing.px.xs};
|
|
94
97
|
}
|
|
95
98
|
|
|
96
99
|
${select(StyledContentTable)} {
|
|
97
|
-
margin: ${"
|
|
100
|
+
margin: ${Spacing.px["2xl"]} 0;
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
img,
|
|
101
104
|
video {
|
|
102
|
-
margin-top: ${
|
|
103
|
-
margin-bottom: ${
|
|
105
|
+
margin-top: ${Spacing.px.md};
|
|
106
|
+
margin-bottom: ${Spacing.px.md};
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
strong {
|
|
@@ -116,9 +119,9 @@ var StyledArticle = styled.article`
|
|
|
116
119
|
|
|
117
120
|
ul,
|
|
118
121
|
ol {
|
|
119
|
-
padding-left: ${
|
|
120
|
-
margin-top: ${
|
|
121
|
-
margin-bottom: ${
|
|
122
|
+
padding-left: ${Spacing.px.lg};
|
|
123
|
+
margin-top: ${Spacing.px.xs};
|
|
124
|
+
margin-bottom: ${Spacing.px.xs};
|
|
122
125
|
*:not(a) {
|
|
123
126
|
color: ${({ theme }) => theme.text};
|
|
124
127
|
}
|
|
@@ -127,23 +130,23 @@ var StyledArticle = styled.article`
|
|
|
127
130
|
li {
|
|
128
131
|
${({ theme }) => getTypographyString(theme, "Body", "Medium")}
|
|
129
132
|
:not(:last-child) {
|
|
130
|
-
margin-bottom: ${"
|
|
133
|
+
margin-bottom: ${Spacing.px["3xs"]};
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
|
|
134
137
|
code:not([class|="language"]) {
|
|
135
138
|
${({ theme }) => getTypographyString(theme, "Code", "Medium")}
|
|
136
139
|
background: ${colors.grayBlue94};
|
|
137
|
-
padding: ${"
|
|
138
|
-
margin: ${"
|
|
140
|
+
padding: ${Spacing.px["4xs"]} ${Spacing.px["2xs"]};
|
|
141
|
+
margin: ${Spacing.px["4xs"]};
|
|
139
142
|
border-radius: 4px;
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
pre[class|="language"] {
|
|
143
146
|
${standardBorderRadius(8)}
|
|
144
147
|
width: 100%;
|
|
145
|
-
padding: ${
|
|
146
|
-
margin: ${
|
|
148
|
+
padding: ${Spacing.px.md} ${Spacing.px.lg};
|
|
149
|
+
margin: ${Spacing.px.md} 0;
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
// Must match specificity of prismjs to get proper line height!
|
|
@@ -155,7 +158,7 @@ var StyledArticle = styled.article`
|
|
|
155
158
|
}
|
|
156
159
|
|
|
157
160
|
blockquote {
|
|
158
|
-
margin: ${
|
|
161
|
+
margin: ${Spacing.px.xs} 0;
|
|
159
162
|
}
|
|
160
163
|
`;
|
|
161
164
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toNonTypographicReactNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4X67A2CS.js";
|
|
4
4
|
import {
|
|
5
5
|
applyTypography
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
7
7
|
|
|
8
8
|
// src/components/typography/LabelModerate.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|