@lightsparkdev/ui 1.0.3 → 1.0.5
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 +14 -0
- package/dist/{chunk-54EOEIEN.js → chunk-3DXU76SI.js} +2 -2
- package/dist/{chunk-PQKVR2BR.js → chunk-42D2SXB2.js} +1 -1
- package/dist/{chunk-BSH6WRUZ.js → chunk-45BHB7K7.js} +3 -3
- package/dist/{chunk-35PJW7RT.js → chunk-4EV5IUUJ.js} +2 -2
- package/dist/{chunk-XM2HQVUK.js → chunk-4IHNUHE3.js} +5 -5
- package/dist/{chunk-X4TGLNCH.js → chunk-5JJUXAVA.js} +3 -3
- package/dist/{chunk-ILEZ6AWT.js → chunk-7EAO66LB.js} +5 -5
- package/dist/{chunk-LIQSJ5R7.js → chunk-AKGW3FMJ.js} +21 -13
- package/dist/{chunk-7N2PFDYE.js → chunk-AVV74PTP.js} +2 -2
- package/dist/{chunk-SNFRMD6Z.js → chunk-AXNQ7BDD.js} +4 -4
- package/dist/{chunk-CRTTTIAD.js → chunk-BNHCCR3C.js} +2 -2
- package/dist/{chunk-UH5F35II.js → chunk-BRJKMY6Z.js} +3 -3
- package/dist/{chunk-7WDAN3OC.js → chunk-D4DFISYR.js} +1 -1
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/{chunk-YRNEIRHM.js → chunk-E6ZY35LN.js} +5 -5
- package/dist/{chunk-J3YVJWRG.js → chunk-EHH4M2LZ.js} +5 -5
- package/dist/{chunk-XB4KQFK2.js → chunk-EKU5IWJW.js} +2 -2
- package/dist/chunk-ERNTWEIJ.js +74 -0
- package/dist/{chunk-7IHNYMFQ.js → chunk-FE477HOE.js} +2 -2
- package/dist/{chunk-B6S7Y4K7.js → chunk-GGWFUEDW.js} +2 -2
- package/dist/{chunk-7YY6BH5O.js → chunk-GMEJR5XX.js} +2 -2
- package/dist/{chunk-LOL5TJ3H.js → chunk-GMOJB7PP.js} +16 -16
- package/dist/{chunk-RPNTFEXE.js → chunk-H3UUVMZ3.js} +1 -1
- package/dist/{chunk-WGKUDRZ7.js → chunk-HLZNFEDV.js} +2 -2
- package/dist/{chunk-XDP7GCYE.js → chunk-HNK2KIC7.js} +2 -2
- package/dist/{chunk-BENSR2YW.js → chunk-I3WMJNCP.js} +1 -1
- package/dist/{chunk-BDZ46Z2I.js → chunk-IH5SIRJL.js} +2 -2
- package/dist/{chunk-YIHC25WB.js → chunk-IIRG6R42.js} +3 -3
- package/dist/{chunk-C4KZC45Y.js → chunk-ILCC45G7.js} +54 -71
- package/dist/{chunk-MRGHRTKA.js → chunk-IXAXRBFS.js} +2 -2
- package/dist/{chunk-QQSV7XJX.js → chunk-JZKGVGBU.js} +1 -1
- package/dist/{chunk-XUWFUTR4.js → chunk-KPAVY3UH.js} +3 -1
- package/dist/{chunk-I3FI3FNP.js → chunk-LAGOF7IU.js} +2 -2
- package/dist/{chunk-MWDDIXIP.js → chunk-LH5VFS3E.js} +1 -1
- package/dist/{chunk-2XUHQWCJ.js → chunk-LKJ7QTWL.js} +4 -4
- package/dist/{chunk-N2NPIZCV.js → chunk-M7E2PMFK.js} +9 -9
- package/dist/{chunk-BHP5YL2N.js → chunk-N67Y7GWR.js} +1 -1
- package/dist/{chunk-4BFBANKF.js → chunk-NBIK5O3N.js} +37 -34
- package/dist/{chunk-SLKPLSJU.js → chunk-NK7WH3TK.js} +11 -11
- package/dist/{chunk-KX5QZXCD.js → chunk-NONMMIMQ.js} +1 -1
- package/dist/{chunk-Y7RQUJUS.js → chunk-NWPPTOKK.js} +5 -5
- package/dist/{chunk-4C2TISN7.js → chunk-OPUCWQMK.js} +1 -1
- package/dist/{chunk-GWHKALYQ.js → chunk-PBLWYVQF.js} +2 -2
- package/dist/{chunk-E4DUADXU.js → chunk-PYAKYQWS.js} +1 -1
- package/dist/{chunk-DXA3WUSX.js → chunk-PZTZ4436.js} +2 -2
- package/dist/{chunk-6CNJ5ZCC.js → chunk-Q76C6FJ5.js} +3 -3
- package/dist/{chunk-JNNJVBHF.js → chunk-QBRCVOJ4.js} +14 -10
- package/dist/{chunk-HGOGF6I7.js → chunk-QEZ7L6YF.js} +1 -1
- package/dist/{chunk-435FPPZK.js → chunk-QFVQ6QPA.js} +2 -2
- package/dist/{chunk-WTMJTGW4.js → chunk-QON4D7N2.js} +2 -2
- package/dist/chunk-QTPYP3IK.js +27 -0
- package/dist/{chunk-LH7GLNMY.js → chunk-QZMD3YHI.js} +1 -1
- package/dist/{chunk-VXKNN4SF.js → chunk-RQLRNKOP.js} +17 -16
- package/dist/{chunk-7FHOKVKJ.js → chunk-RRXB5FQC.js} +7 -7
- package/dist/{chunk-AAFUVYVP.js → chunk-SCIQSZSW.js} +1 -1
- package/dist/{chunk-5TTLUOJ5.js → chunk-SIYZ5PZT.js} +1 -1
- package/dist/{chunk-K7FYXGOI.js → chunk-TMIBU4ME.js} +1 -1
- package/dist/{chunk-LTCJ6LNO.js → chunk-TN5UPDZG.js} +1 -1
- package/dist/{chunk-IBZBPQMZ.js → chunk-UAUAYQ3C.js} +14 -5
- package/dist/{chunk-LGKXPUSI.js → chunk-VF5KSAZG.js} +3 -3
- package/dist/{chunk-GSKTHUQJ.js → chunk-XLKL3DNK.js} +2 -2
- package/dist/{chunk-OKXC33OU.js → chunk-XQIQOMNE.js} +5 -2
- package/dist/{chunk-PG2W2HVB.js → chunk-YG5BANJH.js} +2 -2
- package/dist/{chunk-4JHXRPRB.js → chunk-YXAKRSFW.js} +9 -6
- package/dist/{chunk-2AGBCGOW.js → chunk-ZR2TARGX.js} +2 -2
- package/dist/components/Badge.cjs +7784 -7418
- package/dist/components/Badge.d.cts +146 -7
- package/dist/components/Badge.d.ts +146 -7
- package/dist/components/Badge.js +22 -25
- package/dist/components/Banner/Banner.cjs +53 -27
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +20 -20
- package/dist/components/Button.cjs +39 -25
- package/dist/components/Button.d.cts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +22 -22
- package/dist/components/ButtonRow.cjs +42 -28
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +24 -24
- package/dist/components/CardPage.cjs +16 -5
- package/dist/components/CardPage.js +26 -26
- package/dist/components/Checkbox.cjs +6 -4
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/CodeBlock.cjs +16 -5
- package/dist/components/CodeBlock.js +9 -9
- package/dist/components/CodeInput/CodeInput.cjs +16 -5
- package/dist/components/CodeInput/CodeInput.js +7 -7
- package/dist/components/CodeInput/SingleCodeInput.cjs +16 -5
- package/dist/components/CodeInput/SingleCodeInput.js +6 -6
- package/dist/components/Collapsible.cjs +81 -8
- package/dist/components/Collapsible.js +7 -7
- package/dist/components/CommaNumberInput.cjs +16 -5
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +12 -12
- package/dist/components/ContentTable.cjs +16 -5
- package/dist/components/ContentTable.js +5 -5
- package/dist/components/CopyToClipboardButton.cjs +16 -5
- package/dist/components/CopyToClipboardButton.js +7 -7
- package/dist/components/CurrencyAmount.cjs +16 -5
- package/dist/components/CurrencyAmount.js +5 -5
- package/dist/components/Drawer.cjs +121 -44
- package/dist/components/Drawer.js +24 -24
- package/dist/components/Dropdown.cjs +16 -5
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +7 -7
- package/dist/components/FileInput.cjs +16 -5
- package/dist/components/FileInput.js +11 -11
- package/dist/components/GradientCardHeader.cjs +3 -1
- package/dist/components/GradientCardHeader.js +6 -6
- package/dist/components/Icon/Icon.cjs +16 -5
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +4 -4
- package/dist/components/IconWithCircleBackground.cjs +7349 -7340
- package/dist/components/IconWithCircleBackground.js +5 -74
- package/dist/components/InfoIconTooltip.cjs +56 -30
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +21 -21
- package/dist/components/LightsparkProvider.cjs +16 -5
- package/dist/components/LightsparkProvider.js +5 -5
- package/dist/components/Loading.cjs +16 -5
- package/dist/components/Loading.js +5 -5
- package/dist/components/Modal.cjs +205 -128
- package/dist/components/Modal.d.cts +9 -9
- package/dist/components/Modal.d.ts +9 -9
- package/dist/components/Modal.js +29 -70
- package/dist/components/PageSection/PageSection.cjs +208 -98
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +29 -33
- package/dist/components/PageSection/PageSectionNav.cjs +48 -22
- package/dist/components/PageSection/PageSectionNav.js +22 -22
- package/dist/components/PhoneInput.cjs +16 -5
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +12 -12
- package/dist/components/Pill.cjs +16 -5
- package/dist/components/Pill.js +8 -8
- package/dist/components/ProgressBar.cjs +16 -5
- package/dist/components/ProgressBar.js +4 -4
- package/dist/components/Radio.cjs +7412 -7339
- package/dist/components/Radio.js +10 -24
- package/dist/components/SecretContainer.cjs +16 -5
- package/dist/components/SecretContainer.js +8 -8
- package/dist/components/StatusIndicator.cjs +3 -1
- package/dist/components/StatusIndicator.js +5 -5
- package/dist/components/TextButton.cjs +44 -18
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +21 -21
- package/dist/components/TextIconAligner.cjs +38 -12
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +19 -19
- package/dist/components/TextInput.cjs +16 -5
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +11 -11
- package/dist/components/Toasts.cjs +64 -38
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +22 -22
- package/dist/components/Toggle.cjs +107 -98
- package/dist/components/Toggle.js +5 -5
- package/dist/components/Tooltip.cjs +16 -5
- package/dist/components/Tooltip.js +4 -4
- package/dist/components/UnstyledButton.cjs +3 -1
- package/dist/components/UnstyledButton.js +4 -4
- package/dist/components/documentation/AnchorLinkHeader.cjs +16 -5
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +10 -10
- package/dist/components/documentation/DocsBodyParagraph.cjs +16 -5
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +8 -8
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -5
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +8 -8
- package/dist/components/documentation/DocsHeadline.cjs +16 -5
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +9 -9
- package/dist/components/documentation/Video.cjs +3 -1
- package/dist/components/documentation/Video.js +3 -3
- package/dist/components/documentation/index.cjs +16 -5
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +10 -10
- package/dist/components/index.cjs +8343 -8176
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +71 -72
- package/dist/components/typography/Article.cjs +103 -30
- package/dist/components/typography/Article.js +16 -16
- package/dist/components/typography/Body.cjs +16 -5
- package/dist/components/typography/Body.d.cts +2 -2
- package/dist/components/typography/Body.d.ts +2 -2
- package/dist/components/typography/Body.js +8 -8
- package/dist/components/typography/BodyStrong.cjs +16 -5
- package/dist/components/typography/BodyStrong.d.cts +2 -2
- package/dist/components/typography/BodyStrong.d.ts +2 -2
- package/dist/components/typography/BodyStrong.js +8 -8
- package/dist/components/typography/Code.cjs +16 -5
- package/dist/components/typography/Code.d.cts +2 -2
- package/dist/components/typography/Code.d.ts +2 -2
- package/dist/components/typography/Code.js +8 -8
- package/dist/components/typography/Display.cjs +16 -5
- package/dist/components/typography/Display.d.cts +2 -2
- package/dist/components/typography/Display.d.ts +2 -2
- package/dist/components/typography/Display.js +8 -8
- package/dist/components/typography/Headline.cjs +16 -5
- package/dist/components/typography/Headline.d.cts +2 -2
- package/dist/components/typography/Headline.d.ts +2 -2
- package/dist/components/typography/Headline.js +8 -8
- package/dist/components/typography/Label.cjs +16 -5
- package/dist/components/typography/Label.d.cts +2 -2
- package/dist/components/typography/Label.d.ts +2 -2
- package/dist/components/typography/Label.js +8 -8
- package/dist/components/typography/LabelModerate.cjs +16 -5
- package/dist/components/typography/LabelModerate.d.cts +2 -2
- package/dist/components/typography/LabelModerate.d.ts +2 -2
- package/dist/components/typography/LabelModerate.js +8 -8
- package/dist/components/typography/LabelStrong.cjs +16 -5
- package/dist/components/typography/LabelStrong.d.cts +2 -2
- package/dist/components/typography/LabelStrong.d.ts +2 -2
- package/dist/components/typography/LabelStrong.js +8 -8
- package/dist/components/typography/Overline.cjs +16 -5
- package/dist/components/typography/Overline.d.cts +2 -2
- package/dist/components/typography/Overline.d.ts +2 -2
- package/dist/components/typography/Overline.js +8 -8
- package/dist/components/typography/Title.cjs +16 -5
- package/dist/components/typography/Title.d.cts +3 -3
- package/dist/components/typography/Title.d.ts +3 -3
- package/dist/components/typography/Title.js +8 -8
- package/dist/components/typography/index.cjs +103 -30
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +24 -25
- package/dist/components/typography/renderTypography.cjs +32 -8
- package/dist/components/typography/renderTypography.d.cts +20 -20
- package/dist/components/typography/renderTypography.d.ts +20 -20
- package/dist/components/typography/renderTypography.js +18 -18
- package/dist/router.cjs +3 -1
- package/dist/router.js +2 -2
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/colors.cjs +3 -1
- package/dist/styles/colors.d.cts +3 -1
- package/dist/styles/colors.d.ts +3 -1
- package/dist/styles/colors.js +1 -1
- package/dist/styles/common.cjs +16 -5
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +3 -3
- package/dist/styles/fields.cjs +16 -5
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +5 -5
- package/dist/styles/global.cjs +16 -5
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +4 -4
- package/dist/styles/themes.cjs +16 -5
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +2 -2
- 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.cjs +3 -1
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +5 -5
- package/dist/styles/typography.cjs +16 -5
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +3 -3
- package/dist/styles/utils.cjs +3 -1
- package/dist/styles/utils.js +4 -4
- package/dist/{buttons-36cdd0fe.d.ts → themes-37e92940.d.ts} +91 -74
- package/dist/{buttons-35280bfe.d.ts → themes-832e46b2.d.ts} +91 -74
- package/dist/utils/toNonTypographicReactNodes.cjs +16 -5
- package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.js +6 -6
- package/dist/utils/toReactNodes.cjs +57 -22
- package/dist/utils/toReactNodes.d.cts +13 -9
- package/dist/utils/toReactNodes.d.ts +13 -9
- package/dist/utils/toReactNodes.js +21 -19
- package/package.json +2 -2
- package/dist/chunk-3XSQV5U4.js +0 -26
- package/dist/chunk-B2VYAIYR.js +0 -0
- package/dist/chunk-SEZEDINC.js +0 -35
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import * as _emotion_react from '@emotion/react';
|
|
2
2
|
import { Theme } from '@emotion/react';
|
|
3
|
-
import { FontFamilies, TypographyGroup
|
|
3
|
+
import { TokenSizeKey, FontFamilies, TypographyGroup } from './styles/tokens/typography.js';
|
|
4
4
|
import { CSSInterpolation } from '@emotion/css';
|
|
5
5
|
import { ColorKey } from './styles/colors.js';
|
|
6
6
|
|
|
7
|
+
type PaddingYKey = "short" | "regular";
|
|
8
|
+
type PaddingY = number | {
|
|
9
|
+
[key in PaddingYKey]: number;
|
|
10
|
+
};
|
|
11
|
+
declare const buttonBorderRadiuses: readonly [8, 32];
|
|
12
|
+
type ButtonBorderRadius = (typeof buttonBorderRadiuses)[number];
|
|
13
|
+
declare const allowedButtonTypographyTypes: readonly ["Body", "Body Strong", "Title", "Label", "Label Moderate", "Label Strong"];
|
|
14
|
+
type AllowedButtonTypographyTypes = (typeof allowedButtonTypographyTypes)[number];
|
|
15
|
+
type ButtonTypographyArgs = {
|
|
16
|
+
type?: AllowedButtonTypographyTypes;
|
|
17
|
+
color?: ThemeOrColorKey;
|
|
18
|
+
};
|
|
19
|
+
declare const buttonsThemeBase: {
|
|
20
|
+
defaultSize: TokenSizeKey;
|
|
21
|
+
defaultTypographyType: "Title" | "Body" | "Body Strong" | "Label" | "Label Moderate" | "Label Strong";
|
|
22
|
+
defaultColor: ThemeOrColorKey;
|
|
23
|
+
defaultBorderRadius: 8 | 32;
|
|
24
|
+
defaultBorderWidth: number;
|
|
25
|
+
defaultBackgroundColor: BackgroundColorKeyArg;
|
|
26
|
+
defaultBorderColor: BackgroundColorKeyArg;
|
|
27
|
+
defaultHoverBackgroundColor: BackgroundColorKeyArg;
|
|
28
|
+
defaultHoverBorderColor: BackgroundColorKeyArg;
|
|
29
|
+
defaultOutlineOffset: number;
|
|
30
|
+
defaultPaddingsY: {
|
|
31
|
+
ExtraSmall: number;
|
|
32
|
+
Small: PaddingY;
|
|
33
|
+
Schmedium: number;
|
|
34
|
+
Medium: number;
|
|
35
|
+
Mlarge: number;
|
|
36
|
+
Large: number;
|
|
37
|
+
};
|
|
38
|
+
kinds: {};
|
|
39
|
+
};
|
|
40
|
+
type ButtonsThemeKey = keyof typeof buttonsThemeBase;
|
|
41
|
+
type ButtonKindsProps = Record<string, Partial<typeof buttonsThemeBase>>;
|
|
42
|
+
declare const defaultButtonsTheme: {
|
|
43
|
+
kinds: ButtonKindsProps;
|
|
44
|
+
defaultSize: TokenSizeKey;
|
|
45
|
+
defaultTypographyType: "Title" | "Body" | "Body Strong" | "Label" | "Label Moderate" | "Label Strong";
|
|
46
|
+
defaultColor: ThemeOrColorKey;
|
|
47
|
+
defaultBorderRadius: 8 | 32;
|
|
48
|
+
defaultBorderWidth: number;
|
|
49
|
+
defaultBackgroundColor: BackgroundColorKeyArg;
|
|
50
|
+
defaultBorderColor: BackgroundColorKeyArg;
|
|
51
|
+
defaultHoverBackgroundColor: BackgroundColorKeyArg;
|
|
52
|
+
defaultHoverBorderColor: BackgroundColorKeyArg;
|
|
53
|
+
defaultOutlineOffset: number;
|
|
54
|
+
defaultPaddingsY: {
|
|
55
|
+
ExtraSmall: number;
|
|
56
|
+
Small: PaddingY;
|
|
57
|
+
Schmedium: number;
|
|
58
|
+
Medium: number;
|
|
59
|
+
Mlarge: number;
|
|
60
|
+
Large: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
7
64
|
declare enum Themes {
|
|
8
65
|
Light = "light",
|
|
9
66
|
Dark = "dark",
|
|
@@ -43,7 +100,6 @@ declare const baseThemeColors: {
|
|
|
43
100
|
text: string;
|
|
44
101
|
vlcNeutral: string;
|
|
45
102
|
warning: string;
|
|
46
|
-
inputBackground: string;
|
|
47
103
|
};
|
|
48
104
|
type ThemeColorKey = keyof typeof baseThemeColors;
|
|
49
105
|
declare const themeOrColorKeyValues: readonly string[];
|
|
@@ -1751,7 +1807,11 @@ declare const baseTheme: {
|
|
|
1751
1807
|
Large: number;
|
|
1752
1808
|
};
|
|
1753
1809
|
};
|
|
1754
|
-
|
|
1810
|
+
badge: {
|
|
1811
|
+
bg: ThemeOrColorKey;
|
|
1812
|
+
};
|
|
1813
|
+
inputBackground: string;
|
|
1814
|
+
loading: "Code" | "AI" | "AnchorLink" | "ApiConnection" | "AppIcon" | "ArrowCircle" | "ArrowCircleTier1" | "ArrowCircleTier2" | "ArrowCircleTier3" | "ArrowCornerDownRight" | "ArrowDown" | "ArrowUp" | "ArrowUpRightCircleFill" | "Bank" | "BitcoinB" | "BitcoinBOnRoundedSquare" | "CameraCapture" | "CaretRight" | "CentralArrowShareRight" | "Checkmark" | "CheckmarkCircleGreen" | "CheckmarkCircleTier1" | "CheckmarkCircleTier2" | "CheckmarkCircleTier3" | "Chevron" | "ChevronLeft" | "CircleCheck" | "CircleCheckOutline" | "CirclePlus" | "Clock" | "Close" | "Copy" | "CreditCard" | "DeleteIcon" | "Dollar" | "DollarManrope" | "DollarManropeSmall" | "DotGrid1x3Horizontal" | "Download" | "Envelope" | "ExclamationPoint" | "Explorer" | "Eye" | "EyeDropper" | "Figma" | "FlutterTwoTone" | "FramedLetterI" | "Gear" | "Github" | "GoTwoTone" | "GraphQLTwoTone" | "HeartOutline" | "Home" | "HorizontalArrows" | "Info" | "JavaScriptTwoTone" | "JavaTwoTone" | "KotlinTwoTone" | "LeftArrow" | "LightningOnRoundedSquare" | "LinkIcon" | "LoadingSpinner" | "Lock" | "Logo" | "LogoBolt" | "LogoOnCircle" | "MagicWand" | "Minus" | "Monitor" | "NodeAdd" | "NotEye" | "PaperPlane" | "Pencil" | "Person" | "PersonCircle" | "PiggyBank" | "Plus" | "PythonTwoTone" | "QRCodeIcon" | "QuestionCircle" | "QuestionCircleStrong" | "ReactTwoTone" | "Recycling" | "Remove" | "Restart" | "RightArrow" | "Roadmap" | "RustTwoTone" | "Satoshi" | "SatoshiRounded" | "Search" | "SecurityKey" | "Selector" | "SemiCircleOverlap" | "Share" | "ShieldCheck" | "Sidebar" | "Sort" | "StackedLines" | "SwiftTwoTone" | "TapSingle" | "Team" | "Terminal" | "Trash" | "TwoArrowsDown" | "TwoArrowsUp" | "Uma" | "UmaBridgeLoading" | "Upload" | "WalletSDKIcon" | "WarningSign";
|
|
1755
1815
|
bg: string;
|
|
1756
1816
|
smBg: string;
|
|
1757
1817
|
c05Neutral: string;
|
|
@@ -1780,7 +1840,6 @@ declare const baseTheme: {
|
|
|
1780
1840
|
text: string;
|
|
1781
1841
|
vlcNeutral: string;
|
|
1782
1842
|
warning: string;
|
|
1783
|
-
inputBackground: string;
|
|
1784
1843
|
};
|
|
1785
1844
|
type BaseTheme = typeof baseTheme;
|
|
1786
1845
|
type LightsparkSurfaces = {
|
|
@@ -3506,7 +3565,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
3506
3565
|
Large: number;
|
|
3507
3566
|
};
|
|
3508
3567
|
};
|
|
3509
|
-
|
|
3568
|
+
badge: {
|
|
3569
|
+
bg: ThemeOrColorKey;
|
|
3570
|
+
};
|
|
3571
|
+
inputBackground: string;
|
|
3572
|
+
loading: "Code" | "AI" | "AnchorLink" | "ApiConnection" | "AppIcon" | "ArrowCircle" | "ArrowCircleTier1" | "ArrowCircleTier2" | "ArrowCircleTier3" | "ArrowCornerDownRight" | "ArrowDown" | "ArrowUp" | "ArrowUpRightCircleFill" | "Bank" | "BitcoinB" | "BitcoinBOnRoundedSquare" | "CameraCapture" | "CaretRight" | "CentralArrowShareRight" | "Checkmark" | "CheckmarkCircleGreen" | "CheckmarkCircleTier1" | "CheckmarkCircleTier2" | "CheckmarkCircleTier3" | "Chevron" | "ChevronLeft" | "CircleCheck" | "CircleCheckOutline" | "CirclePlus" | "Clock" | "Close" | "Copy" | "CreditCard" | "DeleteIcon" | "Dollar" | "DollarManrope" | "DollarManropeSmall" | "DotGrid1x3Horizontal" | "Download" | "Envelope" | "ExclamationPoint" | "Explorer" | "Eye" | "EyeDropper" | "Figma" | "FlutterTwoTone" | "FramedLetterI" | "Gear" | "Github" | "GoTwoTone" | "GraphQLTwoTone" | "HeartOutline" | "Home" | "HorizontalArrows" | "Info" | "JavaScriptTwoTone" | "JavaTwoTone" | "KotlinTwoTone" | "LeftArrow" | "LightningOnRoundedSquare" | "LinkIcon" | "LoadingSpinner" | "Lock" | "Logo" | "LogoBolt" | "LogoOnCircle" | "MagicWand" | "Minus" | "Monitor" | "NodeAdd" | "NotEye" | "PaperPlane" | "Pencil" | "Person" | "PersonCircle" | "PiggyBank" | "Plus" | "PythonTwoTone" | "QRCodeIcon" | "QuestionCircle" | "QuestionCircleStrong" | "ReactTwoTone" | "Recycling" | "Remove" | "Restart" | "RightArrow" | "Roadmap" | "RustTwoTone" | "Satoshi" | "SatoshiRounded" | "Search" | "SecurityKey" | "Selector" | "SemiCircleOverlap" | "Share" | "ShieldCheck" | "Sidebar" | "Sort" | "StackedLines" | "SwiftTwoTone" | "TapSingle" | "Team" | "Terminal" | "Trash" | "TwoArrowsDown" | "TwoArrowsUp" | "Uma" | "UmaBridgeLoading" | "Upload" | "WalletSDKIcon" | "WarningSign";
|
|
3510
3573
|
bg: string;
|
|
3511
3574
|
smBg: string;
|
|
3512
3575
|
c05Neutral: string;
|
|
@@ -3535,7 +3598,6 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
3535
3598
|
text: string;
|
|
3536
3599
|
vlcNeutral: string;
|
|
3537
3600
|
warning: string;
|
|
3538
|
-
inputBackground: string;
|
|
3539
3601
|
header: {
|
|
3540
3602
|
type: Themes;
|
|
3541
3603
|
typography: {
|
|
@@ -5238,7 +5300,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
5238
5300
|
Large: number;
|
|
5239
5301
|
};
|
|
5240
5302
|
};
|
|
5241
|
-
|
|
5303
|
+
badge: {
|
|
5304
|
+
bg: ThemeOrColorKey;
|
|
5305
|
+
};
|
|
5306
|
+
inputBackground: string;
|
|
5307
|
+
loading: "Code" | "AI" | "AnchorLink" | "ApiConnection" | "AppIcon" | "ArrowCircle" | "ArrowCircleTier1" | "ArrowCircleTier2" | "ArrowCircleTier3" | "ArrowCornerDownRight" | "ArrowDown" | "ArrowUp" | "ArrowUpRightCircleFill" | "Bank" | "BitcoinB" | "BitcoinBOnRoundedSquare" | "CameraCapture" | "CaretRight" | "CentralArrowShareRight" | "Checkmark" | "CheckmarkCircleGreen" | "CheckmarkCircleTier1" | "CheckmarkCircleTier2" | "CheckmarkCircleTier3" | "Chevron" | "ChevronLeft" | "CircleCheck" | "CircleCheckOutline" | "CirclePlus" | "Clock" | "Close" | "Copy" | "CreditCard" | "DeleteIcon" | "Dollar" | "DollarManrope" | "DollarManropeSmall" | "DotGrid1x3Horizontal" | "Download" | "Envelope" | "ExclamationPoint" | "Explorer" | "Eye" | "EyeDropper" | "Figma" | "FlutterTwoTone" | "FramedLetterI" | "Gear" | "Github" | "GoTwoTone" | "GraphQLTwoTone" | "HeartOutline" | "Home" | "HorizontalArrows" | "Info" | "JavaScriptTwoTone" | "JavaTwoTone" | "KotlinTwoTone" | "LeftArrow" | "LightningOnRoundedSquare" | "LinkIcon" | "LoadingSpinner" | "Lock" | "Logo" | "LogoBolt" | "LogoOnCircle" | "MagicWand" | "Minus" | "Monitor" | "NodeAdd" | "NotEye" | "PaperPlane" | "Pencil" | "Person" | "PersonCircle" | "PiggyBank" | "Plus" | "PythonTwoTone" | "QRCodeIcon" | "QuestionCircle" | "QuestionCircleStrong" | "ReactTwoTone" | "Recycling" | "Remove" | "Restart" | "RightArrow" | "Roadmap" | "RustTwoTone" | "Satoshi" | "SatoshiRounded" | "Search" | "SecurityKey" | "Selector" | "SemiCircleOverlap" | "Share" | "ShieldCheck" | "Sidebar" | "Sort" | "StackedLines" | "SwiftTwoTone" | "TapSingle" | "Team" | "Terminal" | "Trash" | "TwoArrowsDown" | "TwoArrowsUp" | "Uma" | "UmaBridgeLoading" | "Upload" | "WalletSDKIcon" | "WarningSign";
|
|
5242
5308
|
bg: string;
|
|
5243
5309
|
smBg: string;
|
|
5244
5310
|
c05Neutral: string;
|
|
@@ -5267,7 +5333,6 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
5267
5333
|
text: string;
|
|
5268
5334
|
vlcNeutral: string;
|
|
5269
5335
|
warning: string;
|
|
5270
|
-
inputBackground: string;
|
|
5271
5336
|
};
|
|
5272
5337
|
nav: {
|
|
5273
5338
|
type: Themes;
|
|
@@ -6971,7 +7036,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
6971
7036
|
Large: number;
|
|
6972
7037
|
};
|
|
6973
7038
|
};
|
|
6974
|
-
|
|
7039
|
+
badge: {
|
|
7040
|
+
bg: ThemeOrColorKey;
|
|
7041
|
+
};
|
|
7042
|
+
inputBackground: string;
|
|
7043
|
+
loading: "Code" | "AI" | "AnchorLink" | "ApiConnection" | "AppIcon" | "ArrowCircle" | "ArrowCircleTier1" | "ArrowCircleTier2" | "ArrowCircleTier3" | "ArrowCornerDownRight" | "ArrowDown" | "ArrowUp" | "ArrowUpRightCircleFill" | "Bank" | "BitcoinB" | "BitcoinBOnRoundedSquare" | "CameraCapture" | "CaretRight" | "CentralArrowShareRight" | "Checkmark" | "CheckmarkCircleGreen" | "CheckmarkCircleTier1" | "CheckmarkCircleTier2" | "CheckmarkCircleTier3" | "Chevron" | "ChevronLeft" | "CircleCheck" | "CircleCheckOutline" | "CirclePlus" | "Clock" | "Close" | "Copy" | "CreditCard" | "DeleteIcon" | "Dollar" | "DollarManrope" | "DollarManropeSmall" | "DotGrid1x3Horizontal" | "Download" | "Envelope" | "ExclamationPoint" | "Explorer" | "Eye" | "EyeDropper" | "Figma" | "FlutterTwoTone" | "FramedLetterI" | "Gear" | "Github" | "GoTwoTone" | "GraphQLTwoTone" | "HeartOutline" | "Home" | "HorizontalArrows" | "Info" | "JavaScriptTwoTone" | "JavaTwoTone" | "KotlinTwoTone" | "LeftArrow" | "LightningOnRoundedSquare" | "LinkIcon" | "LoadingSpinner" | "Lock" | "Logo" | "LogoBolt" | "LogoOnCircle" | "MagicWand" | "Minus" | "Monitor" | "NodeAdd" | "NotEye" | "PaperPlane" | "Pencil" | "Person" | "PersonCircle" | "PiggyBank" | "Plus" | "PythonTwoTone" | "QRCodeIcon" | "QuestionCircle" | "QuestionCircleStrong" | "ReactTwoTone" | "Recycling" | "Remove" | "Restart" | "RightArrow" | "Roadmap" | "RustTwoTone" | "Satoshi" | "SatoshiRounded" | "Search" | "SecurityKey" | "Selector" | "SemiCircleOverlap" | "Share" | "ShieldCheck" | "Sidebar" | "Sort" | "StackedLines" | "SwiftTwoTone" | "TapSingle" | "Team" | "Terminal" | "Trash" | "TwoArrowsDown" | "TwoArrowsUp" | "Uma" | "UmaBridgeLoading" | "Upload" | "WalletSDKIcon" | "WarningSign";
|
|
6975
7044
|
bg: string;
|
|
6976
7045
|
smBg: string;
|
|
6977
7046
|
c05Neutral: string;
|
|
@@ -7000,7 +7069,6 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
7000
7069
|
text: string;
|
|
7001
7070
|
vlcNeutral: string;
|
|
7002
7071
|
warning: string;
|
|
7003
|
-
inputBackground: string;
|
|
7004
7072
|
};
|
|
7005
7073
|
content: {
|
|
7006
7074
|
type: Themes;
|
|
@@ -8704,7 +8772,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
8704
8772
|
Large: number;
|
|
8705
8773
|
};
|
|
8706
8774
|
};
|
|
8707
|
-
|
|
8775
|
+
badge: {
|
|
8776
|
+
bg: ThemeOrColorKey;
|
|
8777
|
+
};
|
|
8778
|
+
inputBackground: string;
|
|
8779
|
+
loading: "Code" | "AI" | "AnchorLink" | "ApiConnection" | "AppIcon" | "ArrowCircle" | "ArrowCircleTier1" | "ArrowCircleTier2" | "ArrowCircleTier3" | "ArrowCornerDownRight" | "ArrowDown" | "ArrowUp" | "ArrowUpRightCircleFill" | "Bank" | "BitcoinB" | "BitcoinBOnRoundedSquare" | "CameraCapture" | "CaretRight" | "CentralArrowShareRight" | "Checkmark" | "CheckmarkCircleGreen" | "CheckmarkCircleTier1" | "CheckmarkCircleTier2" | "CheckmarkCircleTier3" | "Chevron" | "ChevronLeft" | "CircleCheck" | "CircleCheckOutline" | "CirclePlus" | "Clock" | "Close" | "Copy" | "CreditCard" | "DeleteIcon" | "Dollar" | "DollarManrope" | "DollarManropeSmall" | "DotGrid1x3Horizontal" | "Download" | "Envelope" | "ExclamationPoint" | "Explorer" | "Eye" | "EyeDropper" | "Figma" | "FlutterTwoTone" | "FramedLetterI" | "Gear" | "Github" | "GoTwoTone" | "GraphQLTwoTone" | "HeartOutline" | "Home" | "HorizontalArrows" | "Info" | "JavaScriptTwoTone" | "JavaTwoTone" | "KotlinTwoTone" | "LeftArrow" | "LightningOnRoundedSquare" | "LinkIcon" | "LoadingSpinner" | "Lock" | "Logo" | "LogoBolt" | "LogoOnCircle" | "MagicWand" | "Minus" | "Monitor" | "NodeAdd" | "NotEye" | "PaperPlane" | "Pencil" | "Person" | "PersonCircle" | "PiggyBank" | "Plus" | "PythonTwoTone" | "QRCodeIcon" | "QuestionCircle" | "QuestionCircleStrong" | "ReactTwoTone" | "Recycling" | "Remove" | "Restart" | "RightArrow" | "Roadmap" | "RustTwoTone" | "Satoshi" | "SatoshiRounded" | "Search" | "SecurityKey" | "Selector" | "SemiCircleOverlap" | "Share" | "ShieldCheck" | "Sidebar" | "Sort" | "StackedLines" | "SwiftTwoTone" | "TapSingle" | "Team" | "Terminal" | "Trash" | "TwoArrowsDown" | "TwoArrowsUp" | "Uma" | "UmaBridgeLoading" | "Upload" | "WalletSDKIcon" | "WarningSign";
|
|
8708
8780
|
bg: string;
|
|
8709
8781
|
smBg: string;
|
|
8710
8782
|
c05Neutral: string;
|
|
@@ -8733,7 +8805,6 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
8733
8805
|
text: string;
|
|
8734
8806
|
vlcNeutral: string;
|
|
8735
8807
|
warning: string;
|
|
8736
|
-
inputBackground: string;
|
|
8737
8808
|
};
|
|
8738
8809
|
controls: {
|
|
8739
8810
|
type: Themes;
|
|
@@ -10437,7 +10508,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
10437
10508
|
Large: number;
|
|
10438
10509
|
};
|
|
10439
10510
|
};
|
|
10440
|
-
|
|
10511
|
+
badge: {
|
|
10512
|
+
bg: ThemeOrColorKey;
|
|
10513
|
+
};
|
|
10514
|
+
inputBackground: string;
|
|
10515
|
+
loading: "Code" | "AI" | "AnchorLink" | "ApiConnection" | "AppIcon" | "ArrowCircle" | "ArrowCircleTier1" | "ArrowCircleTier2" | "ArrowCircleTier3" | "ArrowCornerDownRight" | "ArrowDown" | "ArrowUp" | "ArrowUpRightCircleFill" | "Bank" | "BitcoinB" | "BitcoinBOnRoundedSquare" | "CameraCapture" | "CaretRight" | "CentralArrowShareRight" | "Checkmark" | "CheckmarkCircleGreen" | "CheckmarkCircleTier1" | "CheckmarkCircleTier2" | "CheckmarkCircleTier3" | "Chevron" | "ChevronLeft" | "CircleCheck" | "CircleCheckOutline" | "CirclePlus" | "Clock" | "Close" | "Copy" | "CreditCard" | "DeleteIcon" | "Dollar" | "DollarManrope" | "DollarManropeSmall" | "DotGrid1x3Horizontal" | "Download" | "Envelope" | "ExclamationPoint" | "Explorer" | "Eye" | "EyeDropper" | "Figma" | "FlutterTwoTone" | "FramedLetterI" | "Gear" | "Github" | "GoTwoTone" | "GraphQLTwoTone" | "HeartOutline" | "Home" | "HorizontalArrows" | "Info" | "JavaScriptTwoTone" | "JavaTwoTone" | "KotlinTwoTone" | "LeftArrow" | "LightningOnRoundedSquare" | "LinkIcon" | "LoadingSpinner" | "Lock" | "Logo" | "LogoBolt" | "LogoOnCircle" | "MagicWand" | "Minus" | "Monitor" | "NodeAdd" | "NotEye" | "PaperPlane" | "Pencil" | "Person" | "PersonCircle" | "PiggyBank" | "Plus" | "PythonTwoTone" | "QRCodeIcon" | "QuestionCircle" | "QuestionCircleStrong" | "ReactTwoTone" | "Recycling" | "Remove" | "Restart" | "RightArrow" | "Roadmap" | "RustTwoTone" | "Satoshi" | "SatoshiRounded" | "Search" | "SecurityKey" | "Selector" | "SemiCircleOverlap" | "Share" | "ShieldCheck" | "Sidebar" | "Sort" | "StackedLines" | "SwiftTwoTone" | "TapSingle" | "Team" | "Terminal" | "Trash" | "TwoArrowsDown" | "TwoArrowsUp" | "Uma" | "UmaBridgeLoading" | "Upload" | "WalletSDKIcon" | "WarningSign";
|
|
10441
10516
|
bg: string;
|
|
10442
10517
|
smBg: string;
|
|
10443
10518
|
c05Neutral: string;
|
|
@@ -10466,7 +10541,6 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
10466
10541
|
text: string;
|
|
10467
10542
|
vlcNeutral: string;
|
|
10468
10543
|
warning: string;
|
|
10469
|
-
inputBackground: string;
|
|
10470
10544
|
};
|
|
10471
10545
|
};
|
|
10472
10546
|
declare function isThemeColorKey(key: unknown): key is ThemeColorKey;
|
|
@@ -10486,71 +10560,14 @@ declare const themeOr: (lightValue: string, darkValue: string) => ({ theme }: {
|
|
|
10486
10560
|
}) => string;
|
|
10487
10561
|
declare function ifLight(style: CSSInterpolation): ({ theme }: {
|
|
10488
10562
|
theme: LightsparkTheme;
|
|
10489
|
-
}) => _emotion_react.SerializedStyles
|
|
10563
|
+
}) => "" | _emotion_react.SerializedStyles;
|
|
10490
10564
|
declare function ifDark(style: CSSInterpolation): ({ theme }: {
|
|
10491
10565
|
theme: LightsparkTheme;
|
|
10492
|
-
}) => _emotion_react.SerializedStyles
|
|
10566
|
+
}) => "" | _emotion_react.SerializedStyles;
|
|
10493
10567
|
declare function useThemeBg(): string;
|
|
10494
10568
|
type ThemeProp = {
|
|
10495
10569
|
theme: Theme;
|
|
10496
10570
|
};
|
|
10497
10571
|
type WithTheme<T extends Record<string, unknown>> = T & ThemeProp;
|
|
10498
10572
|
|
|
10499
|
-
|
|
10500
|
-
type PaddingY = number | {
|
|
10501
|
-
[key in PaddingYKey]: number;
|
|
10502
|
-
};
|
|
10503
|
-
declare const buttonBorderRadiuses: readonly [8, 32];
|
|
10504
|
-
type ButtonBorderRadius = (typeof buttonBorderRadiuses)[number];
|
|
10505
|
-
declare const allowedButtonTypographyTypes: readonly ["Body", "Body Strong", "Title", "Label", "Label Moderate", "Label Strong"];
|
|
10506
|
-
type AllowedButtonTypographyTypes = (typeof allowedButtonTypographyTypes)[number];
|
|
10507
|
-
type ButtonTypographyArgs = {
|
|
10508
|
-
type?: AllowedButtonTypographyTypes;
|
|
10509
|
-
color?: ThemeOrColorKey;
|
|
10510
|
-
};
|
|
10511
|
-
declare const buttonsThemeBase: {
|
|
10512
|
-
defaultSize: TokenSizeKey;
|
|
10513
|
-
defaultTypographyType: "Title" | "Body" | "Body Strong" | "Label" | "Label Moderate" | "Label Strong";
|
|
10514
|
-
defaultColor: ThemeOrColorKey;
|
|
10515
|
-
defaultBorderRadius: 8 | 32;
|
|
10516
|
-
defaultBorderWidth: number;
|
|
10517
|
-
defaultBackgroundColor: BackgroundColorKeyArg;
|
|
10518
|
-
defaultBorderColor: BackgroundColorKeyArg;
|
|
10519
|
-
defaultHoverBackgroundColor: BackgroundColorKeyArg;
|
|
10520
|
-
defaultHoverBorderColor: BackgroundColorKeyArg;
|
|
10521
|
-
defaultOutlineOffset: number;
|
|
10522
|
-
defaultPaddingsY: {
|
|
10523
|
-
ExtraSmall: number;
|
|
10524
|
-
Small: PaddingY;
|
|
10525
|
-
Schmedium: number;
|
|
10526
|
-
Medium: number;
|
|
10527
|
-
Mlarge: number;
|
|
10528
|
-
Large: number;
|
|
10529
|
-
};
|
|
10530
|
-
kinds: {};
|
|
10531
|
-
};
|
|
10532
|
-
type ButtonsThemeKey = keyof typeof buttonsThemeBase;
|
|
10533
|
-
type ButtonKindsProps = Record<string, Partial<typeof buttonsThemeBase>>;
|
|
10534
|
-
declare const defaultButtonsTheme: {
|
|
10535
|
-
kinds: ButtonKindsProps;
|
|
10536
|
-
defaultSize: TokenSizeKey;
|
|
10537
|
-
defaultTypographyType: "Title" | "Body" | "Body Strong" | "Label" | "Label Moderate" | "Label Strong";
|
|
10538
|
-
defaultColor: ThemeOrColorKey;
|
|
10539
|
-
defaultBorderRadius: 8 | 32;
|
|
10540
|
-
defaultBorderWidth: number;
|
|
10541
|
-
defaultBackgroundColor: BackgroundColorKeyArg;
|
|
10542
|
-
defaultBorderColor: BackgroundColorKeyArg;
|
|
10543
|
-
defaultHoverBackgroundColor: BackgroundColorKeyArg;
|
|
10544
|
-
defaultHoverBorderColor: BackgroundColorKeyArg;
|
|
10545
|
-
defaultOutlineOffset: number;
|
|
10546
|
-
defaultPaddingsY: {
|
|
10547
|
-
ExtraSmall: number;
|
|
10548
|
-
Small: PaddingY;
|
|
10549
|
-
Schmedium: number;
|
|
10550
|
-
Medium: number;
|
|
10551
|
-
Mlarge: number;
|
|
10552
|
-
Large: number;
|
|
10553
|
-
};
|
|
10554
|
-
};
|
|
10555
|
-
|
|
10556
|
-
export { AllowedButtonTypographyTypes as A, ButtonTypographyArgs as B, defaultButtonsTheme as C, FontColorKey as F, LightsparkTheme as L, PaddingYKey as P, SurfaceThemeColorKey as S, ThemeOrColorKey as T, WithTheme as W, ButtonBorderRadius as a, ThemeProp as b, Themes as c, themes as d, isThemeOrColorKey as e, getFontColor as f, getColor as g, BackgroundColorKey as h, isThemeColorKey as i, BackgroundColorKeyArg as j, isBackgroundColorKey as k, isBackgroundColorKeyTuple as l, getBackgroundColor as m, isDark as n, isLight as o, themeOr as p, ifLight as q, ifDark as r, setFonts as s, themeOrColorKeyValues as t, useThemeBg as u, PaddingY as v, buttonBorderRadiuses as w, allowedButtonTypographyTypes as x, buttonsThemeBase as y, ButtonsThemeKey as z };
|
|
10573
|
+
export { AllowedButtonTypographyTypes as A, ButtonTypographyArgs as B, useThemeBg as C, FontColorKey as F, LightsparkTheme as L, PaddingYKey as P, SurfaceThemeColorKey as S, ThemeOrColorKey as T, WithTheme as W, ButtonBorderRadius as a, ThemeProp as b, PaddingY as c, buttonBorderRadiuses as d, allowedButtonTypographyTypes as e, buttonsThemeBase as f, ButtonsThemeKey as g, defaultButtonsTheme as h, Themes as i, themes as j, isThemeColorKey as k, isThemeOrColorKey as l, getColor as m, getFontColor as n, BackgroundColorKey as o, BackgroundColorKeyArg as p, isBackgroundColorKey as q, isBackgroundColorKeyTuple as r, setFonts as s, themeOrColorKeyValues as t, getBackgroundColor as u, isDark as v, isLight as w, themeOr as x, ifLight as y, ifDark as z };
|
|
@@ -4028,7 +4028,6 @@ var neutral = {
|
|
|
4028
4028
|
gray30: "#4D4D4D",
|
|
4029
4029
|
gray40: "#666666",
|
|
4030
4030
|
gray50: "#808080",
|
|
4031
|
-
gray57: "#8B8E98",
|
|
4032
4031
|
gray60: "#999999",
|
|
4033
4032
|
gray70: "#B3B3B3",
|
|
4034
4033
|
gray80: "#CCCCCC",
|
|
@@ -4052,10 +4051,13 @@ var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
|
4052
4051
|
blue37: "#21529c",
|
|
4053
4052
|
blue58: "#28BFFF",
|
|
4054
4053
|
// less than 50% saturated blue
|
|
4054
|
+
grayBlue5: "#0c0d0f",
|
|
4055
4055
|
grayBlue9: "#16171A",
|
|
4056
|
+
grayBlue18: "#21283a",
|
|
4056
4057
|
grayBlue32: "#4F5156",
|
|
4057
4058
|
grayBlue43: "#686A72",
|
|
4058
4059
|
grayBlue45: "#676F80",
|
|
4060
|
+
grayBlue57: "#8B8E98",
|
|
4059
4061
|
grayBlue67: "#9BA7B9",
|
|
4060
4062
|
grayBlue80: "#C0C9D6",
|
|
4061
4063
|
grayBlue88: "#DEDFE4",
|
|
@@ -7376,8 +7378,7 @@ var baseThemeColors = {
|
|
|
7376
7378
|
success: colors.success,
|
|
7377
7379
|
text: colors.black,
|
|
7378
7380
|
vlcNeutral: colors.gray95,
|
|
7379
|
-
warning: colors.warning
|
|
7380
|
-
inputBackground: colors.white
|
|
7381
|
+
warning: colors.warning
|
|
7381
7382
|
};
|
|
7382
7383
|
var themeOrColorKeyValues = [
|
|
7383
7384
|
...Object.keys(baseThemeColors),
|
|
@@ -7389,6 +7390,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
7389
7390
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
7390
7391
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
7391
7392
|
buttons: defaultButtonsTheme,
|
|
7393
|
+
badge: {
|
|
7394
|
+
bg: "c05Neutral"
|
|
7395
|
+
},
|
|
7396
|
+
inputBackground: colors.white,
|
|
7392
7397
|
loading: "LoadingSpinner"
|
|
7393
7398
|
});
|
|
7394
7399
|
var lightBaseTheme = baseTheme;
|
|
@@ -7426,7 +7431,10 @@ var darkBaseTheme = {
|
|
|
7426
7431
|
warning: colors.warning,
|
|
7427
7432
|
buttons: defaultButtonsTheme,
|
|
7428
7433
|
loading: "LoadingSpinner",
|
|
7429
|
-
inputBackground: colors.black
|
|
7434
|
+
inputBackground: colors.black,
|
|
7435
|
+
badge: {
|
|
7436
|
+
bg: "c15Neutral"
|
|
7437
|
+
}
|
|
7430
7438
|
};
|
|
7431
7439
|
var lightTheme = extend(lightBaseTheme, {
|
|
7432
7440
|
header: extendBase(lightBaseTheme, {
|
|
@@ -7542,7 +7550,10 @@ var bridgeBaseSettings = {
|
|
|
7542
7550
|
defaultBorderWidth: 1
|
|
7543
7551
|
}
|
|
7544
7552
|
}
|
|
7545
|
-
})
|
|
7553
|
+
}),
|
|
7554
|
+
badge: {
|
|
7555
|
+
bg: "grayBlue94"
|
|
7556
|
+
}
|
|
7546
7557
|
};
|
|
7547
7558
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
7548
7559
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { IconName } from '../components/Icon/types.cjs';
|
|
3
|
-
import { F as FontColorKey } from '../
|
|
3
|
+
import { F as FontColorKey } from '../themes-37e92940.js';
|
|
4
4
|
import { NewRoutesType } from '../types/index.cjs';
|
|
5
5
|
import '../index-dcf19aa7.js';
|
|
6
6
|
import '../icons/AI.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { IconName } from '../components/Icon/types.js';
|
|
3
|
-
import { F as FontColorKey } from '../
|
|
3
|
+
import { F as FontColorKey } from '../themes-832e46b2.js';
|
|
4
4
|
import { NewRoutesType } from '../types/index.js';
|
|
5
5
|
import '../index-71766330.js';
|
|
6
6
|
import '../icons/AI.js';
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
isNextLinkNode,
|
|
6
6
|
isTextNode,
|
|
7
7
|
toNonTypographicReactNodes
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-HNK2KIC7.js";
|
|
9
9
|
import "../chunk-OPV246QW.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-SCIQSZSW.js";
|
|
11
|
+
import "../chunk-LAGOF7IU.js";
|
|
12
12
|
import "../chunk-EDN2QDCB.js";
|
|
13
13
|
import "../chunk-FT62PIPN.js";
|
|
14
14
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -123,12 +123,12 @@ import "../chunk-VI6WTKMV.js";
|
|
|
123
123
|
import "../chunk-QW2INB5A.js";
|
|
124
124
|
import "../chunk-JLD7MGLC.js";
|
|
125
125
|
import "../chunk-DW6LFUI2.js";
|
|
126
|
-
import "../chunk-
|
|
127
|
-
import "../chunk-
|
|
126
|
+
import "../chunk-YG5BANJH.js";
|
|
127
|
+
import "../chunk-UAUAYQ3C.js";
|
|
128
128
|
import "../chunk-ENBUKLVT.js";
|
|
129
129
|
import "../chunk-JSGRNWSB.js";
|
|
130
130
|
import "../chunk-FO7I4E45.js";
|
|
131
|
-
import "../chunk-
|
|
131
|
+
import "../chunk-KPAVY3UH.js";
|
|
132
132
|
import "../chunk-LOPKRCGI.js";
|
|
133
133
|
export {
|
|
134
134
|
isExternalLinkNode,
|
|
@@ -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 });
|
|
@@ -67,12 +79,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
67
79
|
// src/utils/toReactNodes.tsx
|
|
68
80
|
var toReactNodes_exports = {};
|
|
69
81
|
__export(toReactNodes_exports, {
|
|
82
|
+
setDefaultReactNodesTypography: () => setDefaultReactNodesTypography,
|
|
70
83
|
setReactNodesTypography: () => setReactNodesTypography,
|
|
71
84
|
toReactNodes: () => toReactNodes,
|
|
72
85
|
toReactNodesWithTypographyMap: () => toReactNodesWithTypographyMap
|
|
73
86
|
});
|
|
74
87
|
module.exports = __toCommonJS(toReactNodes_exports);
|
|
75
|
-
var
|
|
88
|
+
var import_lodash_es4 = require("lodash-es");
|
|
89
|
+
var import_react22 = require("react");
|
|
90
|
+
|
|
91
|
+
// src/components/typography/renderTypography.tsx
|
|
92
|
+
var import_react21 = __toESM(require("react"), 1);
|
|
76
93
|
|
|
77
94
|
// src/components/typography/Body.tsx
|
|
78
95
|
var import_styled3 = __toESM(require("@emotion/styled"), 1);
|
|
@@ -262,7 +279,6 @@ var neutral = {
|
|
|
262
279
|
gray30: "#4D4D4D",
|
|
263
280
|
gray40: "#666666",
|
|
264
281
|
gray50: "#808080",
|
|
265
|
-
gray57: "#8B8E98",
|
|
266
282
|
gray60: "#999999",
|
|
267
283
|
gray70: "#B3B3B3",
|
|
268
284
|
gray80: "#CCCCCC",
|
|
@@ -286,10 +302,13 @@ var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
|
286
302
|
blue37: "#21529c",
|
|
287
303
|
blue58: "#28BFFF",
|
|
288
304
|
// less than 50% saturated blue
|
|
305
|
+
grayBlue5: "#0c0d0f",
|
|
289
306
|
grayBlue9: "#16171A",
|
|
307
|
+
grayBlue18: "#21283a",
|
|
290
308
|
grayBlue32: "#4F5156",
|
|
291
309
|
grayBlue43: "#686A72",
|
|
292
310
|
grayBlue45: "#676F80",
|
|
311
|
+
grayBlue57: "#8B8E98",
|
|
293
312
|
grayBlue67: "#9BA7B9",
|
|
294
313
|
grayBlue80: "#C0C9D6",
|
|
295
314
|
grayBlue88: "#DEDFE4",
|
|
@@ -3584,8 +3603,7 @@ var baseThemeColors = {
|
|
|
3584
3603
|
success: colors.success,
|
|
3585
3604
|
text: colors.black,
|
|
3586
3605
|
vlcNeutral: colors.gray95,
|
|
3587
|
-
warning: colors.warning
|
|
3588
|
-
inputBackground: colors.white
|
|
3606
|
+
warning: colors.warning
|
|
3589
3607
|
};
|
|
3590
3608
|
var themeOrColorKeyValues = [
|
|
3591
3609
|
...Object.keys(baseThemeColors),
|
|
@@ -3597,6 +3615,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3597
3615
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3598
3616
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3599
3617
|
buttons: defaultButtonsTheme,
|
|
3618
|
+
badge: {
|
|
3619
|
+
bg: "c05Neutral"
|
|
3620
|
+
},
|
|
3621
|
+
inputBackground: colors.white,
|
|
3600
3622
|
loading: "LoadingSpinner"
|
|
3601
3623
|
});
|
|
3602
3624
|
var lightBaseTheme = baseTheme;
|
|
@@ -3634,7 +3656,10 @@ var darkBaseTheme = {
|
|
|
3634
3656
|
warning: colors.warning,
|
|
3635
3657
|
buttons: defaultButtonsTheme,
|
|
3636
3658
|
loading: "LoadingSpinner",
|
|
3637
|
-
inputBackground: colors.black
|
|
3659
|
+
inputBackground: colors.black,
|
|
3660
|
+
badge: {
|
|
3661
|
+
bg: "c15Neutral"
|
|
3662
|
+
}
|
|
3638
3663
|
};
|
|
3639
3664
|
var lightTheme = extend(lightBaseTheme, {
|
|
3640
3665
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3750,7 +3775,10 @@ var bridgeBaseSettings = {
|
|
|
3750
3775
|
defaultBorderWidth: 1
|
|
3751
3776
|
}
|
|
3752
3777
|
}
|
|
3753
|
-
})
|
|
3778
|
+
}),
|
|
3779
|
+
badge: {
|
|
3780
|
+
bg: "grayBlue94"
|
|
3781
|
+
}
|
|
3754
3782
|
};
|
|
3755
3783
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3756
3784
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -8210,7 +8238,6 @@ var StyledTitle = import_styled12.default.span`
|
|
|
8210
8238
|
`;
|
|
8211
8239
|
|
|
8212
8240
|
// src/components/typography/renderTypography.tsx
|
|
8213
|
-
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8214
8241
|
var typographyMap = {
|
|
8215
8242
|
Display,
|
|
8216
8243
|
Headline,
|
|
@@ -8222,36 +8249,36 @@ var typographyMap = {
|
|
|
8222
8249
|
"Label Strong": LabelStrong,
|
|
8223
8250
|
Overline,
|
|
8224
8251
|
Code: Code2,
|
|
8225
|
-
"Code Strong":
|
|
8252
|
+
"Code Strong": Code2
|
|
8226
8253
|
};
|
|
8227
8254
|
var renderTypography = (type, props) => {
|
|
8228
8255
|
const TypographyComponent = typographyMap[type];
|
|
8229
|
-
|
|
8256
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8257
|
+
return import_react21.default.createElement(TypographyComponent, rest, children);
|
|
8230
8258
|
};
|
|
8231
8259
|
|
|
8232
8260
|
// src/utils/toReactNodes.tsx
|
|
8233
|
-
var
|
|
8261
|
+
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8234
8262
|
function toReactNodes(toReactNodesArg) {
|
|
8235
8263
|
const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
|
|
8236
8264
|
const reactNodes = toReactNodesArray.map((node, i) => {
|
|
8237
8265
|
let content;
|
|
8238
8266
|
if (!node) {
|
|
8239
8267
|
return null;
|
|
8240
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
8241
|
-
|
|
8268
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
8269
|
+
const props = node.typography.props || {};
|
|
8270
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react22.Fragment, { children: renderTypography(
|
|
8242
8271
|
node.typography.type,
|
|
8243
|
-
Object.assign(
|
|
8244
|
-
content: node
|
|
8245
|
-
})
|
|
8272
|
+
Object.assign(props, { content: node })
|
|
8246
8273
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
8247
8274
|
} else {
|
|
8248
8275
|
content = toNonTypographicReactNodes(node);
|
|
8249
8276
|
}
|
|
8250
8277
|
return content || null;
|
|
8251
8278
|
});
|
|
8252
|
-
return /* @__PURE__ */ (0,
|
|
8279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react22.Fragment, { children: reactNodes });
|
|
8253
8280
|
}
|
|
8254
|
-
function setReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
8281
|
+
function setReactNodesTypography(nodesArg, nodesTypographyMap, replaceExistingTypography = true) {
|
|
8255
8282
|
const nodes = Array.isArray(nodesArg) ? nodesArg : [nodesArg];
|
|
8256
8283
|
const nodesWithTypography = nodes.map((node, i) => {
|
|
8257
8284
|
if (isIconNode(node)) {
|
|
@@ -8263,28 +8290,32 @@ function setReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
|
8263
8290
|
typography: nodesTypographyMap.text
|
|
8264
8291
|
};
|
|
8265
8292
|
}
|
|
8266
|
-
} else if (
|
|
8293
|
+
} else if (!node) {
|
|
8294
|
+
return node;
|
|
8295
|
+
}
|
|
8296
|
+
const useExistingTypography = !replaceExistingTypography && (0, import_lodash_es4.isObject)(node) && "typography" in node ? node.typography : void 0;
|
|
8297
|
+
if (isLinkNode(node)) {
|
|
8267
8298
|
if (nodesTypographyMap.link) {
|
|
8268
8299
|
return __spreadProps(__spreadValues({}, node), {
|
|
8269
|
-
typography: nodesTypographyMap.link
|
|
8300
|
+
typography: useExistingTypography || nodesTypographyMap.link
|
|
8270
8301
|
});
|
|
8271
8302
|
}
|
|
8272
8303
|
} else if (isExternalLinkNode(node)) {
|
|
8273
8304
|
if (nodesTypographyMap.externalLink) {
|
|
8274
8305
|
return __spreadProps(__spreadValues({}, node), {
|
|
8275
|
-
typography: nodesTypographyMap.externalLink
|
|
8306
|
+
typography: useExistingTypography || nodesTypographyMap.externalLink
|
|
8276
8307
|
});
|
|
8277
8308
|
}
|
|
8278
8309
|
} else if (isNextLinkNode(node)) {
|
|
8279
8310
|
if (nodesTypographyMap.nextLink) {
|
|
8280
8311
|
return __spreadProps(__spreadValues({}, node), {
|
|
8281
|
-
typography: nodesTypographyMap.nextLink
|
|
8312
|
+
typography: useExistingTypography || nodesTypographyMap.nextLink
|
|
8282
8313
|
});
|
|
8283
8314
|
}
|
|
8284
8315
|
} else if (isTextNode(node)) {
|
|
8285
8316
|
if (nodesTypographyMap.text) {
|
|
8286
8317
|
return __spreadProps(__spreadValues({}, node), {
|
|
8287
|
-
typography: nodesTypographyMap.text
|
|
8318
|
+
typography: useExistingTypography || nodesTypographyMap.text
|
|
8288
8319
|
});
|
|
8289
8320
|
}
|
|
8290
8321
|
}
|
|
@@ -8303,8 +8334,12 @@ function toReactNodesWithTypographyMap(nodesArg, nodesTypographyMap) {
|
|
|
8303
8334
|
const nodes = toReactNodes(nodesWithTypography);
|
|
8304
8335
|
return nodes;
|
|
8305
8336
|
}
|
|
8337
|
+
function setDefaultReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
8338
|
+
return setReactNodesTypography(nodesArg, nodesTypographyMap, false);
|
|
8339
|
+
}
|
|
8306
8340
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8307
8341
|
0 && (module.exports = {
|
|
8342
|
+
setDefaultReactNodesTypography,
|
|
8308
8343
|
setReactNodesTypography,
|
|
8309
8344
|
toReactNodes,
|
|
8310
8345
|
toReactNodesWithTypographyMap
|