@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
|
@@ -3,7 +3,7 @@ import * as react from 'react';
|
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import * as _emotion_react from '@emotion/react';
|
|
5
5
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
6
|
-
import { F as FontColorKey } from '../../
|
|
6
|
+
import { F as FontColorKey } from '../../themes-832e46b2.js';
|
|
7
7
|
import { TokenSizeKey } from '../../styles/tokens/typography.js';
|
|
8
8
|
import { ToNonTypographicReactNodesArgs } from '../../utils/toNonTypographicReactNodes.js';
|
|
9
9
|
import '@emotion/css';
|
|
@@ -126,9 +126,9 @@ import '../../types/index.js';
|
|
|
126
126
|
type TitleProps = {
|
|
127
127
|
content?: ToNonTypographicReactNodesArgs | undefined | null;
|
|
128
128
|
children?: string | undefined | null;
|
|
129
|
-
size?: TokenSizeKey;
|
|
129
|
+
size?: TokenSizeKey | undefined;
|
|
130
130
|
color?: FontColorKey | undefined;
|
|
131
|
-
block?: boolean;
|
|
131
|
+
block?: boolean | undefined;
|
|
132
132
|
};
|
|
133
133
|
declare const Title: ({ content, color, size, children, block, }: TitleProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
134
134
|
type StyledTitleStrongProps = {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
StyledTitle,
|
|
4
4
|
Title
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-AZOVE32P.js";
|
|
6
|
+
import "../../chunk-4X67A2CS.js";
|
|
7
7
|
import "../../chunk-OPV246QW.js";
|
|
8
8
|
import "../../chunk-AAFUVYVP.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-OUHQXQOJ.js";
|
|
10
|
+
import "../../chunk-TNDSUTUN.js";
|
|
11
11
|
import "../../chunk-EDN2QDCB.js";
|
|
12
12
|
import "../../chunk-FT62PIPN.js";
|
|
13
13
|
import "../../chunk-5ZDDVLS6.js";
|
|
@@ -122,8 +122,8 @@ import "../../chunk-VI6WTKMV.js";
|
|
|
122
122
|
import "../../chunk-QW2INB5A.js";
|
|
123
123
|
import "../../chunk-JLD7MGLC.js";
|
|
124
124
|
import "../../chunk-DW6LFUI2.js";
|
|
125
|
-
import "../../chunk-
|
|
126
|
-
import "../../chunk-
|
|
125
|
+
import "../../chunk-CZFFMEAS.js";
|
|
126
|
+
import "../../chunk-VNQE6KEX.js";
|
|
127
127
|
import "../../chunk-ENBUKLVT.js";
|
|
128
128
|
import "../../chunk-JSGRNWSB.js";
|
|
129
129
|
import "../../chunk-FO7I4E45.js";
|
|
@@ -7459,6 +7459,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
7459
7459
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
7460
7460
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
7461
7461
|
buttons: defaultButtonsTheme,
|
|
7462
|
+
badge: {
|
|
7463
|
+
bg: "c05Neutral"
|
|
7464
|
+
},
|
|
7465
|
+
inputBackground: colors.white,
|
|
7462
7466
|
loading: "LoadingSpinner"
|
|
7463
7467
|
});
|
|
7464
7468
|
var lightBaseTheme = baseTheme;
|
|
@@ -7495,7 +7499,11 @@ var darkBaseTheme = {
|
|
|
7495
7499
|
vlcNeutral: colors.gray20,
|
|
7496
7500
|
warning: colors.warning,
|
|
7497
7501
|
buttons: defaultButtonsTheme,
|
|
7498
|
-
loading: "LoadingSpinner"
|
|
7502
|
+
loading: "LoadingSpinner",
|
|
7503
|
+
inputBackground: colors.black,
|
|
7504
|
+
badge: {
|
|
7505
|
+
bg: "c15Neutral"
|
|
7506
|
+
}
|
|
7499
7507
|
};
|
|
7500
7508
|
var lightTheme = extend(lightBaseTheme, {
|
|
7501
7509
|
header: extendBase(lightBaseTheme, {
|
|
@@ -7534,6 +7542,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
7534
7542
|
secondary: colors.grayBlue43,
|
|
7535
7543
|
text: colors.grayBlue9,
|
|
7536
7544
|
link: colors.blue39,
|
|
7545
|
+
inputBackground: colors.white,
|
|
7537
7546
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
7538
7547
|
main: "Manrope",
|
|
7539
7548
|
code: "Monaco"
|
|
@@ -7610,7 +7619,10 @@ var bridgeBaseSettings = {
|
|
|
7610
7619
|
defaultBorderWidth: 1
|
|
7611
7620
|
}
|
|
7612
7621
|
}
|
|
7613
|
-
})
|
|
7622
|
+
}),
|
|
7623
|
+
badge: {
|
|
7624
|
+
bg: "grayBlue94"
|
|
7625
|
+
}
|
|
7614
7626
|
};
|
|
7615
7627
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
7616
7628
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -7618,7 +7630,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
7618
7630
|
bg: colors.gray98,
|
|
7619
7631
|
smBg: colors.gray98,
|
|
7620
7632
|
text: colors.grayBlue9,
|
|
7621
|
-
secondary: colors.grayBlue43
|
|
7633
|
+
secondary: colors.grayBlue43,
|
|
7634
|
+
inputBackground: colors.white
|
|
7622
7635
|
}));
|
|
7623
7636
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
7624
7637
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -7780,7 +7793,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7780
7793
|
${({ theme, fontColor }) => {
|
|
7781
7794
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7782
7795
|
return `
|
|
7783
|
-
|
|
7796
|
+
svg, path {
|
|
7784
7797
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7785
7798
|
|
|
7786
7799
|
/*
|
|
@@ -7835,6 +7848,68 @@ var StyledContentTable = import_styled3.default.table`
|
|
|
7835
7848
|
}
|
|
7836
7849
|
`;
|
|
7837
7850
|
|
|
7851
|
+
// src/styles/tokens/spacing.tsx
|
|
7852
|
+
var n = {
|
|
7853
|
+
"4xs": 2,
|
|
7854
|
+
"3xs": 4,
|
|
7855
|
+
"2xs": 6,
|
|
7856
|
+
xs: 8,
|
|
7857
|
+
sm: 12,
|
|
7858
|
+
md: 16,
|
|
7859
|
+
lg: 24,
|
|
7860
|
+
xl: 32,
|
|
7861
|
+
"2xl": 40,
|
|
7862
|
+
"3xl": 48,
|
|
7863
|
+
"4xl": 56,
|
|
7864
|
+
"5xl": 64,
|
|
7865
|
+
"6xl": 72,
|
|
7866
|
+
"7xl": 80,
|
|
7867
|
+
"8xl": 96,
|
|
7868
|
+
"9xl": 112,
|
|
7869
|
+
"10xl": 128,
|
|
7870
|
+
"11xl": 160
|
|
7871
|
+
};
|
|
7872
|
+
var Spacing = {
|
|
7873
|
+
"4xs": n["4xs"],
|
|
7874
|
+
"3xs": n["3xs"],
|
|
7875
|
+
"2xs": n["2xs"],
|
|
7876
|
+
xs: n.xs,
|
|
7877
|
+
sm: n.sm,
|
|
7878
|
+
md: n.md,
|
|
7879
|
+
lg: n.lg,
|
|
7880
|
+
xl: n.xl,
|
|
7881
|
+
"2xl": n["2xl"],
|
|
7882
|
+
"3xl": n["3xl"],
|
|
7883
|
+
"4xl": n["4xl"],
|
|
7884
|
+
"5xl": n["5xl"],
|
|
7885
|
+
"6xl": n["6xl"],
|
|
7886
|
+
"7xl": n["7xl"],
|
|
7887
|
+
"8xl": n["8xl"],
|
|
7888
|
+
"9xl": n["9xl"],
|
|
7889
|
+
"10xl": n["10xl"],
|
|
7890
|
+
"11xl": n["11xl"],
|
|
7891
|
+
px: {
|
|
7892
|
+
"4xs": `${n["4xs"]}px`,
|
|
7893
|
+
"3xs": `${n["3xs"]}px`,
|
|
7894
|
+
"2xs": `${n["2xs"]}px`,
|
|
7895
|
+
xs: `${n.xs}px`,
|
|
7896
|
+
sm: `${n.sm}px`,
|
|
7897
|
+
md: `${n.md}px`,
|
|
7898
|
+
lg: `${n.lg}px`,
|
|
7899
|
+
xl: `${n.xl}px`,
|
|
7900
|
+
"2xl": `${n["2xl"]}px`,
|
|
7901
|
+
"3xl": `${n["3xl"]}px`,
|
|
7902
|
+
"4xl": `${n["4xl"]}px`,
|
|
7903
|
+
"5xl": `${n["5xl"]}px`,
|
|
7904
|
+
"6xl": `${n["6xl"]}px`,
|
|
7905
|
+
"7xl": `${n["7xl"]}px`,
|
|
7906
|
+
"8xl": `${n["8xl"]}px`,
|
|
7907
|
+
"9xl": `${n["9xl"]}px`,
|
|
7908
|
+
"10xl": `${n["10xl"]}px`,
|
|
7909
|
+
"11xl": `${n["11xl"]}px`
|
|
7910
|
+
}
|
|
7911
|
+
};
|
|
7912
|
+
|
|
7838
7913
|
// src/styles/utils.tsx
|
|
7839
7914
|
var import_react18 = require("@emotion/react");
|
|
7840
7915
|
function pxToRems(rems, asNum = false) {
|
|
@@ -8050,6 +8125,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
8050
8125
|
Link,
|
|
8051
8126
|
{
|
|
8052
8127
|
to: node.to,
|
|
8128
|
+
newTab: !!node.newTab,
|
|
8053
8129
|
children: node.text
|
|
8054
8130
|
},
|
|
8055
8131
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8247,52 +8323,52 @@ var StyledArticle = import_styled9.default.article`
|
|
|
8247
8323
|
|
|
8248
8324
|
${headlineSelector("h1")} {
|
|
8249
8325
|
margin: 0;
|
|
8250
|
-
padding-bottom: ${
|
|
8326
|
+
padding-bottom: ${Spacing.px.xs};
|
|
8251
8327
|
}
|
|
8252
8328
|
|
|
8253
8329
|
${headlineSelector("h2")} {
|
|
8254
|
-
padding-top: ${"
|
|
8255
|
-
padding-bottom: ${
|
|
8330
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
8331
|
+
padding-bottom: ${Spacing.px.xs};
|
|
8256
8332
|
margin: 0;
|
|
8257
8333
|
}
|
|
8258
8334
|
|
|
8259
8335
|
${headlineSelector("h3")} {
|
|
8260
|
-
padding-top: ${"
|
|
8261
|
-
padding-bottom: ${
|
|
8336
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
8337
|
+
padding-bottom: ${Spacing.px.xs};
|
|
8262
8338
|
margin: 0;
|
|
8263
8339
|
}
|
|
8264
8340
|
|
|
8265
8341
|
${headlineSelector("h4")} {
|
|
8266
|
-
padding-top: ${"
|
|
8267
|
-
padding-bottom: ${
|
|
8342
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
8343
|
+
padding-bottom: ${Spacing.px.xs};
|
|
8268
8344
|
margin: 0;
|
|
8269
8345
|
}
|
|
8270
8346
|
|
|
8271
8347
|
${headlineSelector("h5")} {
|
|
8272
|
-
padding-top: ${"
|
|
8273
|
-
padding-bottom: ${
|
|
8348
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
8349
|
+
padding-bottom: ${Spacing.px.xs};
|
|
8274
8350
|
margin: 0;
|
|
8275
8351
|
}
|
|
8276
8352
|
|
|
8277
8353
|
${headlineSelector("h6")} {
|
|
8278
|
-
padding-top: ${"
|
|
8279
|
-
padding-bottom: ${
|
|
8354
|
+
padding-top: ${Spacing.px["2xl"]};
|
|
8355
|
+
padding-bottom: ${Spacing.px.xs};
|
|
8280
8356
|
margin: 0;
|
|
8281
8357
|
}
|
|
8282
8358
|
|
|
8283
8359
|
${select(StyledBody)} {
|
|
8284
|
-
margin-top: ${
|
|
8285
|
-
margin-bottom: ${
|
|
8360
|
+
margin-top: ${Spacing.px.xs};
|
|
8361
|
+
margin-bottom: ${Spacing.px.xs};
|
|
8286
8362
|
}
|
|
8287
8363
|
|
|
8288
8364
|
${select(StyledContentTable)} {
|
|
8289
|
-
margin: ${"
|
|
8365
|
+
margin: ${Spacing.px["2xl"]} 0;
|
|
8290
8366
|
}
|
|
8291
8367
|
|
|
8292
8368
|
img,
|
|
8293
8369
|
video {
|
|
8294
|
-
margin-top: ${
|
|
8295
|
-
margin-bottom: ${
|
|
8370
|
+
margin-top: ${Spacing.px.md};
|
|
8371
|
+
margin-bottom: ${Spacing.px.md};
|
|
8296
8372
|
}
|
|
8297
8373
|
|
|
8298
8374
|
strong {
|
|
@@ -8308,9 +8384,9 @@ var StyledArticle = import_styled9.default.article`
|
|
|
8308
8384
|
|
|
8309
8385
|
ul,
|
|
8310
8386
|
ol {
|
|
8311
|
-
padding-left: ${
|
|
8312
|
-
margin-top: ${
|
|
8313
|
-
margin-bottom: ${
|
|
8387
|
+
padding-left: ${Spacing.px.lg};
|
|
8388
|
+
margin-top: ${Spacing.px.xs};
|
|
8389
|
+
margin-bottom: ${Spacing.px.xs};
|
|
8314
8390
|
*:not(a) {
|
|
8315
8391
|
color: ${({ theme }) => theme.text};
|
|
8316
8392
|
}
|
|
@@ -8319,23 +8395,23 @@ var StyledArticle = import_styled9.default.article`
|
|
|
8319
8395
|
li {
|
|
8320
8396
|
${({ theme }) => getTypographyString(theme, "Body", "Medium")}
|
|
8321
8397
|
:not(:last-child) {
|
|
8322
|
-
margin-bottom: ${"
|
|
8398
|
+
margin-bottom: ${Spacing.px["3xs"]};
|
|
8323
8399
|
}
|
|
8324
8400
|
}
|
|
8325
8401
|
|
|
8326
8402
|
code:not([class|="language"]) {
|
|
8327
8403
|
${({ theme }) => getTypographyString(theme, "Code", "Medium")}
|
|
8328
8404
|
background: ${colors.grayBlue94};
|
|
8329
|
-
padding: ${"
|
|
8330
|
-
margin: ${"
|
|
8405
|
+
padding: ${Spacing.px["4xs"]} ${Spacing.px["2xs"]};
|
|
8406
|
+
margin: ${Spacing.px["4xs"]};
|
|
8331
8407
|
border-radius: 4px;
|
|
8332
8408
|
}
|
|
8333
8409
|
|
|
8334
8410
|
pre[class|="language"] {
|
|
8335
8411
|
${standardBorderRadius(8)}
|
|
8336
8412
|
width: 100%;
|
|
8337
|
-
padding: ${
|
|
8338
|
-
margin: ${
|
|
8413
|
+
padding: ${Spacing.px.md} ${Spacing.px.lg};
|
|
8414
|
+
margin: ${Spacing.px.md} 0;
|
|
8339
8415
|
}
|
|
8340
8416
|
|
|
8341
8417
|
// Must match specificity of prismjs to get proper line height!
|
|
@@ -8347,7 +8423,7 @@ var StyledArticle = import_styled9.default.article`
|
|
|
8347
8423
|
}
|
|
8348
8424
|
|
|
8349
8425
|
blockquote {
|
|
8350
|
-
margin: ${
|
|
8426
|
+
margin: ${Spacing.px.xs} 0;
|
|
8351
8427
|
}
|
|
8352
8428
|
`;
|
|
8353
8429
|
|
|
@@ -14,7 +14,7 @@ import 'react';
|
|
|
14
14
|
import '@emotion/react';
|
|
15
15
|
import '@emotion/react/jsx-runtime';
|
|
16
16
|
import '../../styles/tokens/typography.cjs';
|
|
17
|
-
import '../../
|
|
17
|
+
import '../../themes-37e92940.js';
|
|
18
18
|
import '@emotion/css';
|
|
19
19
|
import '../../styles/colors.cjs';
|
|
20
20
|
import '../../utils/toNonTypographicReactNodes.cjs';
|
|
@@ -14,7 +14,7 @@ import 'react';
|
|
|
14
14
|
import '@emotion/react';
|
|
15
15
|
import '@emotion/react/jsx-runtime';
|
|
16
16
|
import '../../styles/tokens/typography.js';
|
|
17
|
-
import '../../
|
|
17
|
+
import '../../themes-832e46b2.js';
|
|
18
18
|
import '@emotion/css';
|
|
19
19
|
import '../../styles/colors.js';
|
|
20
20
|
import '../../utils/toNonTypographicReactNodes.js';
|
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-B2VYAIYR.js";
|
|
3
2
|
import {
|
|
4
3
|
Article
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import {
|
|
8
|
-
Label,
|
|
9
|
-
StyledLabel
|
|
10
|
-
} from "../../chunk-SKXCT2FQ.js";
|
|
4
|
+
} from "../../chunk-UNFCVZ32.js";
|
|
5
|
+
import "../../chunk-3R5KJDSL.js";
|
|
11
6
|
import {
|
|
12
7
|
LabelModerate,
|
|
13
8
|
StyledLabelModerate
|
|
14
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-V523QTZQ.js";
|
|
15
10
|
import {
|
|
16
11
|
LabelStrong
|
|
17
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-YRZ3VNBI.js";
|
|
18
13
|
import {
|
|
19
14
|
Overline,
|
|
20
15
|
StyledOverline
|
|
21
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-HPZVUEDJ.js";
|
|
22
17
|
import {
|
|
23
18
|
Code,
|
|
24
19
|
StyledCode
|
|
25
|
-
} from "../../chunk-
|
|
20
|
+
} from "../../chunk-7COKMITX.js";
|
|
26
21
|
import {
|
|
27
22
|
Display,
|
|
28
23
|
displayElements,
|
|
29
24
|
displaySelector
|
|
30
|
-
} from "../../chunk-
|
|
25
|
+
} from "../../chunk-DIKOS5R6.js";
|
|
31
26
|
import {
|
|
32
27
|
StyledTitle,
|
|
33
28
|
Title
|
|
34
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-AZOVE32P.js";
|
|
35
30
|
import {
|
|
36
31
|
Body,
|
|
37
32
|
StyledBody
|
|
38
|
-
} from "../../chunk-
|
|
33
|
+
} from "../../chunk-HVDX4OZJ.js";
|
|
39
34
|
import {
|
|
40
35
|
BodyStrong
|
|
41
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-OMY3WTAU.js";
|
|
42
37
|
import {
|
|
43
38
|
Headline,
|
|
44
39
|
headlineElements,
|
|
45
40
|
headlineSelector
|
|
46
|
-
} from "../../chunk-
|
|
41
|
+
} from "../../chunk-OZQ5WPLN.js";
|
|
47
42
|
import "../../chunk-YMNSXZ5D.js";
|
|
48
|
-
import
|
|
43
|
+
import {
|
|
44
|
+
Label,
|
|
45
|
+
StyledLabel
|
|
46
|
+
} from "../../chunk-7BSME2ZU.js";
|
|
47
|
+
import "../../chunk-4X67A2CS.js";
|
|
49
48
|
import "../../chunk-OPV246QW.js";
|
|
50
49
|
import "../../chunk-AAFUVYVP.js";
|
|
51
|
-
import "../../chunk-
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../chunk-
|
|
54
|
-
import "../../chunk-
|
|
50
|
+
import "../../chunk-OUHQXQOJ.js";
|
|
51
|
+
import "../../chunk-E5DUKMCU.js";
|
|
52
|
+
import "../../chunk-GQVNE3NU.js";
|
|
53
|
+
import "../../chunk-TNDSUTUN.js";
|
|
55
54
|
import "../../chunk-EDN2QDCB.js";
|
|
56
55
|
import "../../chunk-FT62PIPN.js";
|
|
57
56
|
import "../../chunk-5ZDDVLS6.js";
|
|
@@ -166,8 +165,8 @@ import "../../chunk-VI6WTKMV.js";
|
|
|
166
165
|
import "../../chunk-QW2INB5A.js";
|
|
167
166
|
import "../../chunk-JLD7MGLC.js";
|
|
168
167
|
import "../../chunk-DW6LFUI2.js";
|
|
169
|
-
import "../../chunk-
|
|
170
|
-
import "../../chunk-
|
|
168
|
+
import "../../chunk-CZFFMEAS.js";
|
|
169
|
+
import "../../chunk-VNQE6KEX.js";
|
|
171
170
|
import "../../chunk-ENBUKLVT.js";
|
|
172
171
|
import "../../chunk-JSGRNWSB.js";
|
|
173
172
|
import "../../chunk-FO7I4E45.js";
|
|
@@ -22,6 +22,18 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
25
37
|
var __export = (target, all) => {
|
|
26
38
|
for (var name in all)
|
|
27
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -71,6 +83,7 @@ __export(renderTypography_exports, {
|
|
|
71
83
|
typographyMap: () => typographyMap
|
|
72
84
|
});
|
|
73
85
|
module.exports = __toCommonJS(renderTypography_exports);
|
|
86
|
+
var import_react21 = __toESM(require("react"), 1);
|
|
74
87
|
|
|
75
88
|
// src/components/typography/Body.tsx
|
|
76
89
|
var import_styled3 = __toESM(require("@emotion/styled"), 1);
|
|
@@ -3594,6 +3607,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3594
3607
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3595
3608
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3596
3609
|
buttons: defaultButtonsTheme,
|
|
3610
|
+
badge: {
|
|
3611
|
+
bg: "c05Neutral"
|
|
3612
|
+
},
|
|
3613
|
+
inputBackground: colors.white,
|
|
3597
3614
|
loading: "LoadingSpinner"
|
|
3598
3615
|
});
|
|
3599
3616
|
var lightBaseTheme = baseTheme;
|
|
@@ -3630,7 +3647,11 @@ var darkBaseTheme = {
|
|
|
3630
3647
|
vlcNeutral: colors.gray20,
|
|
3631
3648
|
warning: colors.warning,
|
|
3632
3649
|
buttons: defaultButtonsTheme,
|
|
3633
|
-
loading: "LoadingSpinner"
|
|
3650
|
+
loading: "LoadingSpinner",
|
|
3651
|
+
inputBackground: colors.black,
|
|
3652
|
+
badge: {
|
|
3653
|
+
bg: "c15Neutral"
|
|
3654
|
+
}
|
|
3634
3655
|
};
|
|
3635
3656
|
var lightTheme = extend(lightBaseTheme, {
|
|
3636
3657
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3669,6 +3690,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3669
3690
|
secondary: colors.grayBlue43,
|
|
3670
3691
|
text: colors.grayBlue9,
|
|
3671
3692
|
link: colors.blue39,
|
|
3693
|
+
inputBackground: colors.white,
|
|
3672
3694
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3673
3695
|
main: "Manrope",
|
|
3674
3696
|
code: "Monaco"
|
|
@@ -3745,7 +3767,10 @@ var bridgeBaseSettings = {
|
|
|
3745
3767
|
defaultBorderWidth: 1
|
|
3746
3768
|
}
|
|
3747
3769
|
}
|
|
3748
|
-
})
|
|
3770
|
+
}),
|
|
3771
|
+
badge: {
|
|
3772
|
+
bg: "grayBlue94"
|
|
3773
|
+
}
|
|
3749
3774
|
};
|
|
3750
3775
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3751
3776
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3753,7 +3778,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3753
3778
|
bg: colors.gray98,
|
|
3754
3779
|
smBg: colors.gray98,
|
|
3755
3780
|
text: colors.grayBlue9,
|
|
3756
|
-
secondary: colors.grayBlue43
|
|
3781
|
+
secondary: colors.grayBlue43,
|
|
3782
|
+
inputBackground: colors.white
|
|
3757
3783
|
}));
|
|
3758
3784
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3759
3785
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -7765,7 +7791,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7765
7791
|
${({ theme, fontColor }) => {
|
|
7766
7792
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7767
7793
|
return `
|
|
7768
|
-
|
|
7794
|
+
svg, path {
|
|
7769
7795
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7770
7796
|
|
|
7771
7797
|
/*
|
|
@@ -7920,6 +7946,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
7920
7946
|
Link,
|
|
7921
7947
|
{
|
|
7922
7948
|
to: node.to,
|
|
7949
|
+
newTab: !!node.newTab,
|
|
7923
7950
|
children: node.text
|
|
7924
7951
|
},
|
|
7925
7952
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8203,7 +8230,6 @@ var StyledTitle = import_styled12.default.span`
|
|
|
8203
8230
|
`;
|
|
8204
8231
|
|
|
8205
8232
|
// src/components/typography/renderTypography.tsx
|
|
8206
|
-
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8207
8233
|
var typographyMap = {
|
|
8208
8234
|
Display,
|
|
8209
8235
|
Headline,
|
|
@@ -8215,11 +8241,12 @@ var typographyMap = {
|
|
|
8215
8241
|
"Label Strong": LabelStrong,
|
|
8216
8242
|
Overline,
|
|
8217
8243
|
Code: Code2,
|
|
8218
|
-
"Code Strong":
|
|
8244
|
+
"Code Strong": Code2
|
|
8219
8245
|
};
|
|
8220
8246
|
var renderTypography = (type, props) => {
|
|
8221
8247
|
const TypographyComponent = typographyMap[type];
|
|
8222
|
-
|
|
8248
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8249
|
+
return import_react21.default.createElement(TypographyComponent, rest, children);
|
|
8223
8250
|
};
|
|
8224
8251
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8225
8252
|
0 && (module.exports = {
|
|
@@ -3,12 +3,12 @@ import { OverlineProps } from './Overline.cjs';
|
|
|
3
3
|
import { LabelStrongProps } from './LabelStrong.cjs';
|
|
4
4
|
import { LabelModerateProps } from './LabelModerate.cjs';
|
|
5
5
|
import { TitleProps } from './Title.cjs';
|
|
6
|
-
import { F as FontColorKey } from '../../
|
|
6
|
+
import { F as FontColorKey } from '../../themes-37e92940.js';
|
|
7
7
|
import { TokenSizeKey, TypographyTypeKey } from '../../styles/tokens/typography.cjs';
|
|
8
8
|
import { ToNonTypographicReactNodesArgs } from '../../utils/toNonTypographicReactNodes.cjs';
|
|
9
9
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
10
10
|
import { DisplayProps } from './Display.cjs';
|
|
11
|
-
import { ComponentProps } from 'react';
|
|
11
|
+
import react__default, { ComponentProps } from 'react';
|
|
12
12
|
import '@emotion/styled';
|
|
13
13
|
import '@emotion/react';
|
|
14
14
|
import '@emotion/css';
|
|
@@ -133,82 +133,82 @@ declare const typographyMap: {
|
|
|
133
133
|
readonly Headline: ({ content, color, size, children, heading, id, display, }: {
|
|
134
134
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
135
135
|
children?: string | null | undefined;
|
|
136
|
-
size?: TokenSizeKey;
|
|
136
|
+
size?: TokenSizeKey | undefined;
|
|
137
137
|
color?: FontColorKey | undefined;
|
|
138
138
|
heading?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
139
139
|
id?: string | undefined;
|
|
140
|
-
display?: "
|
|
140
|
+
display?: "block" | "flex" | "inline-flex";
|
|
141
141
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
142
142
|
readonly Title: ({ content, color, size, children, block, }: TitleProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
143
143
|
readonly Body: ({ content, color, size, children, block, tag, }: {
|
|
144
144
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
145
145
|
children?: string | null | undefined;
|
|
146
|
-
size?: TokenSizeKey;
|
|
146
|
+
size?: TokenSizeKey | undefined;
|
|
147
147
|
color?: FontColorKey | undefined;
|
|
148
148
|
block?: boolean | undefined;
|
|
149
|
-
tag?: ("
|
|
149
|
+
tag?: ("span" | "p" | "pre" | "div") | undefined;
|
|
150
150
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
151
151
|
readonly "Body Strong": ({ content, children, color, size, block, }: {
|
|
152
152
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
153
153
|
children?: string | null | undefined;
|
|
154
|
-
size?: TokenSizeKey;
|
|
154
|
+
size?: TokenSizeKey | undefined;
|
|
155
155
|
color?: FontColorKey | undefined;
|
|
156
156
|
block?: boolean | undefined;
|
|
157
157
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
158
158
|
readonly Label: ({ content, color, size, children, }: {
|
|
159
159
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
160
160
|
children?: string | null | undefined;
|
|
161
|
-
size?: TokenSizeKey;
|
|
161
|
+
size?: TokenSizeKey | undefined;
|
|
162
162
|
color?: FontColorKey | undefined;
|
|
163
163
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
164
164
|
readonly "Label Moderate": ({ content, color, size, children, }: LabelModerateProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
165
165
|
readonly "Label Strong": ({ content, color, size, children, block, }: LabelStrongProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
166
166
|
readonly Overline: ({ content, color, size, children, }: OverlineProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
167
167
|
readonly Code: ({ content, color, size, children, }: CodeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
168
|
-
readonly "Code Strong": () => _emotion_react_jsx_runtime.JSX.Element;
|
|
168
|
+
readonly "Code Strong": ({ content, color, size, children, }: CodeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
169
169
|
};
|
|
170
|
-
type RenderTypographyArgs<T extends TypographyTypeKey
|
|
170
|
+
type RenderTypographyArgs<T extends TypographyTypeKey> = {
|
|
171
171
|
type: T;
|
|
172
|
-
props
|
|
172
|
+
props: ComponentProps<(typeof typographyMap)[T]>;
|
|
173
173
|
};
|
|
174
|
-
declare const renderTypography: <T extends TypographyTypeKey>(type: T, props: ComponentProps<{
|
|
174
|
+
declare const renderTypography: <T extends TypographyTypeKey>(type: T, props: react__default.ComponentProps<{
|
|
175
175
|
readonly Display: ({ content, children, color, size, element, }: DisplayProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
176
176
|
readonly Headline: ({ content, color, size, children, heading, id, display, }: {
|
|
177
177
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
178
178
|
children?: string | null | undefined;
|
|
179
|
-
size?: TokenSizeKey;
|
|
179
|
+
size?: TokenSizeKey | undefined;
|
|
180
180
|
color?: FontColorKey | undefined;
|
|
181
181
|
heading?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
182
182
|
id?: string | undefined;
|
|
183
|
-
display?: "
|
|
183
|
+
display?: "block" | "flex" | "inline-flex";
|
|
184
184
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
185
185
|
readonly Title: ({ content, color, size, children, block, }: TitleProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
186
186
|
readonly Body: ({ content, color, size, children, block, tag, }: {
|
|
187
187
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
188
188
|
children?: string | null | undefined;
|
|
189
|
-
size?: TokenSizeKey;
|
|
189
|
+
size?: TokenSizeKey | undefined;
|
|
190
190
|
color?: FontColorKey | undefined;
|
|
191
191
|
block?: boolean | undefined;
|
|
192
|
-
tag?: ("
|
|
192
|
+
tag?: ("span" | "p" | "pre" | "div") | undefined;
|
|
193
193
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
194
194
|
readonly "Body Strong": ({ content, children, color, size, block, }: {
|
|
195
195
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
196
196
|
children?: string | null | undefined;
|
|
197
|
-
size?: TokenSizeKey;
|
|
197
|
+
size?: TokenSizeKey | undefined;
|
|
198
198
|
color?: FontColorKey | undefined;
|
|
199
199
|
block?: boolean | undefined;
|
|
200
200
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
201
201
|
readonly Label: ({ content, color, size, children, }: {
|
|
202
202
|
content?: ToNonTypographicReactNodesArgs | null | undefined;
|
|
203
203
|
children?: string | null | undefined;
|
|
204
|
-
size?: TokenSizeKey;
|
|
204
|
+
size?: TokenSizeKey | undefined;
|
|
205
205
|
color?: FontColorKey | undefined;
|
|
206
206
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
207
207
|
readonly "Label Moderate": ({ content, color, size, children, }: LabelModerateProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
208
208
|
readonly "Label Strong": ({ content, color, size, children, block, }: LabelStrongProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
209
209
|
readonly Overline: ({ content, color, size, children, }: OverlineProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
210
210
|
readonly Code: ({ content, color, size, children, }: CodeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
211
|
-
readonly "Code Strong": () => _emotion_react_jsx_runtime.JSX.Element;
|
|
212
|
-
}[T]>) =>
|
|
211
|
+
readonly "Code Strong": ({ content, color, size, children, }: CodeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
212
|
+
}[T]>) => react__default.FunctionComponentElement<DisplayProps>;
|
|
213
213
|
|
|
214
214
|
export { RenderTypographyArgs, renderTypography, typographyMap };
|