@lightsparkdev/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-SGSLTG65.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-F6EVBEMN.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-J7SV67XL.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-L6S22JUU.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-AI6DCUWK.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-6H7PZJ2A.js → chunk-4X67A2CS.js} +2 -1
- package/dist/{chunk-YRYVSAWS.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-EMXTALIX.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-35WJ3PKH.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-SKXCT2FQ.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-GNVEN6UE.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-LL5YLPNM.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-GGEAODIA.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-S6AOKANU.js → chunk-7RMHMFS2.js} +4 -4
- package/dist/{chunk-CMQELZES.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-5H32AOXL.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-2JYYREVX.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-UNULJ3P6.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-W3BAJ3HT.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-HZ63YB4Y.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-7NPHOJXD.js → chunk-CZFFMEAS.js} +5 -5
- package/dist/{chunk-HRZNVE2K.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-BMSSV6NX.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-TVLELY54.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-OA3BZAST.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-KFX7US6Y.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-UBYBILLK.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-TM3C4LEG.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-6JFJDBV2.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-467PLJO3.js → chunk-JH53NBOD.js} +59 -10
- package/dist/{chunk-2XRCGW74.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-NYQLPSG3.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-CZQER3QD.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-DCFB5MJ7.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-37RRWSDE.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-HA4AQO3T.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-EV6PGQPM.js → chunk-MNMVZI7D.js} +11 -11
- package/dist/{chunk-HP4VPMN7.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-VUXU77SU.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-PNSZAJL7.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-2H7TBKII.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-DNVKN2FG.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-CHK5DOMV.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-XP3BAAUO.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-VYTN6ASZ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-KBYU4ZQ3.js → chunk-TNDSUTUN.js} +3 -3
- package/dist/{chunk-SRHSJOES.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-55M7XHBZ.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-56QJRFP2.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-A4JZESAS.js → chunk-VNQE6KEX.js} +16 -3
- package/dist/{chunk-5XZJEYHG.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-XUVCOSIE.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-ZNZAY47J.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-D73OOC3E.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-WV5AB4ZB.js → chunk-XS4MH3QA.js} +102 -85
- package/dist/{chunk-TM2NGRD2.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-CZCPVHVB.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-JOQCJPOA.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-UVGBD7XM.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-27SFWLPS.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7845 -7476
- package/dist/components/Badge.d.cts +146 -7
- package/dist/components/Badge.d.ts +146 -7
- package/dist/components/Badge.js +20 -23
- package/dist/components/Banner/Banner.cjs +55 -26
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +18 -18
- package/dist/components/Button.cjs +46 -28
- package/dist/components/Button.d.cts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +20 -20
- package/dist/components/ButtonRow.cjs +49 -31
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +22 -22
- package/dist/components/CardPage.cjs +16 -3
- package/dist/components/CardPage.js +24 -24
- package/dist/components/Checkbox.cjs +3 -3
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/CodeBlock.cjs +21 -7
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +17 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +17 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +82 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +22 -8
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +11 -11
- package/dist/components/ContentTable.cjs +17 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +21 -7
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +17 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +293 -176
- package/dist/components/Drawer.d.cts +2 -0
- package/dist/components/Drawer.d.ts +2 -0
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +21 -7
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +5 -5
- package/dist/components/FileInput.cjs +17 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +17 -4
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/IconWithCircleBackground.cjs +7349 -7338
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +62 -32
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +19 -19
- package/dist/components/LightsparkProvider.cjs +16 -3
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +17 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +297 -147
- package/dist/components/Modal.d.cts +21 -15
- package/dist/components/Modal.d.ts +21 -15
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +214 -100
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +27 -31
- package/dist/components/PageSection/PageSectionNav.cjs +50 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +22 -8
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +11 -11
- package/dist/components/Pill.cjs +17 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +16 -3
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7410 -7334
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +21 -7
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +46 -17
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +19 -19
- package/dist/components/TextIconAligner.cjs +40 -11
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +17 -17
- package/dist/components/TextInput.cjs +22 -8
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +10 -10
- package/dist/components/Toasts.cjs +66 -37
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +20 -20
- package/dist/components/Toggle.cjs +108 -97
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +20 -6
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +17 -4
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +8 -8
- package/dist/components/documentation/DocsBodyParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +6 -6
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +6 -6
- package/dist/components/documentation/DocsHeadline.cjs +16 -3
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +7 -7
- package/dist/components/documentation/Video.cjs +16 -0
- package/dist/components/documentation/Video.d.cts +7 -1
- package/dist/components/documentation/Video.d.ts +7 -1
- package/dist/components/documentation/Video.js +18 -2
- package/dist/components/documentation/index.cjs +17 -4
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +8 -8
- package/dist/components/index.cjs +8474 -8234
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +69 -70
- package/dist/components/typography/Article.cjs +103 -28
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +18 -4
- package/dist/components/typography/Body.d.cts +2 -2
- package/dist/components/typography/Body.d.ts +2 -2
- package/dist/components/typography/Body.js +6 -6
- package/dist/components/typography/BodyStrong.cjs +18 -4
- package/dist/components/typography/BodyStrong.d.cts +2 -2
- package/dist/components/typography/BodyStrong.d.ts +2 -2
- package/dist/components/typography/BodyStrong.js +6 -6
- package/dist/components/typography/Code.cjs +18 -4
- package/dist/components/typography/Code.d.cts +2 -2
- package/dist/components/typography/Code.d.ts +2 -2
- package/dist/components/typography/Code.js +6 -6
- package/dist/components/typography/Display.cjs +18 -4
- package/dist/components/typography/Display.d.cts +2 -2
- package/dist/components/typography/Display.d.ts +2 -2
- package/dist/components/typography/Display.js +6 -6
- package/dist/components/typography/Headline.cjs +18 -4
- package/dist/components/typography/Headline.d.cts +2 -2
- package/dist/components/typography/Headline.d.ts +2 -2
- package/dist/components/typography/Headline.js +6 -6
- package/dist/components/typography/Label.cjs +18 -4
- package/dist/components/typography/Label.d.cts +2 -2
- package/dist/components/typography/Label.d.ts +2 -2
- package/dist/components/typography/Label.js +6 -6
- package/dist/components/typography/LabelModerate.cjs +18 -4
- package/dist/components/typography/LabelModerate.d.cts +2 -2
- package/dist/components/typography/LabelModerate.d.ts +2 -2
- package/dist/components/typography/LabelModerate.js +6 -6
- package/dist/components/typography/LabelStrong.cjs +18 -4
- package/dist/components/typography/LabelStrong.d.cts +2 -2
- package/dist/components/typography/LabelStrong.d.ts +2 -2
- package/dist/components/typography/LabelStrong.js +6 -6
- package/dist/components/typography/Overline.cjs +18 -4
- package/dist/components/typography/Overline.d.cts +2 -2
- package/dist/components/typography/Overline.d.ts +2 -2
- package/dist/components/typography/Overline.js +6 -6
- package/dist/components/typography/Title.cjs +18 -4
- package/dist/components/typography/Title.d.cts +3 -3
- package/dist/components/typography/Title.d.ts +3 -3
- package/dist/components/typography/Title.js +6 -6
- package/dist/components/typography/index.cjs +105 -29
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +22 -23
- package/dist/components/typography/renderTypography.cjs +34 -7
- package/dist/components/typography/renderTypography.d.cts +20 -20
- package/dist/components/typography/renderTypography.d.ts +20 -20
- package/dist/components/typography/renderTypography.js +16 -16
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/common.cjs +20 -6
- package/dist/styles/common.d.cts +3 -2
- package/dist/styles/common.d.ts +3 -2
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +17 -4
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +4 -4
- package/dist/styles/global.cjs +16 -3
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +3 -3
- package/dist/styles/themes.cjs +16 -3
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +1 -1
- package/dist/styles/tokens/spacing.cjs +60 -21
- package/dist/styles/tokens/spacing.d.cts +40 -20
- package/dist/styles/tokens/spacing.d.ts +40 -20
- package/dist/styles/tokens/spacing.js +1 -1
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +4 -4
- package/dist/styles/typography.cjs +16 -3
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +2 -2
- package/dist/styles/utils.js +3 -3
- package/dist/{buttons-b7f56076.d.ts → themes-37e92940.d.ts} +91 -67
- package/dist/{buttons-e4eb84a2.d.ts → themes-832e46b2.d.ts} +91 -67
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.cjs +18 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +2 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +2 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +59 -21
- package/dist/utils/toReactNodes.d.cts +13 -9
- package/dist/utils/toReactNodes.d.ts +13 -9
- package/dist/utils/toReactNodes.js +19 -17
- package/package.json +1 -1
- package/dist/chunk-3XSQV5U4.js +0 -26
- package/dist/chunk-B2VYAIYR.js +0 -0
- package/dist/chunk-RSAYBOK5.js +0 -35
|
@@ -1,9 +1,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",
|
|
@@ -1750,7 +1807,11 @@ declare const baseTheme: {
|
|
|
1750
1807
|
Large: number;
|
|
1751
1808
|
};
|
|
1752
1809
|
};
|
|
1753
|
-
|
|
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";
|
|
1754
1815
|
bg: string;
|
|
1755
1816
|
smBg: string;
|
|
1756
1817
|
c05Neutral: string;
|
|
@@ -3504,7 +3565,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
3504
3565
|
Large: number;
|
|
3505
3566
|
};
|
|
3506
3567
|
};
|
|
3507
|
-
|
|
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";
|
|
3508
3573
|
bg: string;
|
|
3509
3574
|
smBg: string;
|
|
3510
3575
|
c05Neutral: string;
|
|
@@ -5235,7 +5300,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
5235
5300
|
Large: number;
|
|
5236
5301
|
};
|
|
5237
5302
|
};
|
|
5238
|
-
|
|
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";
|
|
5239
5308
|
bg: string;
|
|
5240
5309
|
smBg: string;
|
|
5241
5310
|
c05Neutral: string;
|
|
@@ -6967,7 +7036,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
6967
7036
|
Large: number;
|
|
6968
7037
|
};
|
|
6969
7038
|
};
|
|
6970
|
-
|
|
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";
|
|
6971
7044
|
bg: string;
|
|
6972
7045
|
smBg: string;
|
|
6973
7046
|
c05Neutral: string;
|
|
@@ -8699,7 +8772,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
8699
8772
|
Large: number;
|
|
8700
8773
|
};
|
|
8701
8774
|
};
|
|
8702
|
-
|
|
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";
|
|
8703
8780
|
bg: string;
|
|
8704
8781
|
smBg: string;
|
|
8705
8782
|
c05Neutral: string;
|
|
@@ -10431,7 +10508,11 @@ declare function setFonts(theme: Theme, fontFamilies: FontFamilies): {
|
|
|
10431
10508
|
Large: number;
|
|
10432
10509
|
};
|
|
10433
10510
|
};
|
|
10434
|
-
|
|
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";
|
|
10435
10516
|
bg: string;
|
|
10436
10517
|
smBg: string;
|
|
10437
10518
|
c05Neutral: string;
|
|
@@ -10479,71 +10560,14 @@ declare const themeOr: (lightValue: string, darkValue: string) => ({ theme }: {
|
|
|
10479
10560
|
}) => string;
|
|
10480
10561
|
declare function ifLight(style: CSSInterpolation): ({ theme }: {
|
|
10481
10562
|
theme: LightsparkTheme;
|
|
10482
|
-
}) => _emotion_react.SerializedStyles
|
|
10563
|
+
}) => "" | _emotion_react.SerializedStyles;
|
|
10483
10564
|
declare function ifDark(style: CSSInterpolation): ({ theme }: {
|
|
10484
10565
|
theme: LightsparkTheme;
|
|
10485
|
-
}) => _emotion_react.SerializedStyles
|
|
10566
|
+
}) => "" | _emotion_react.SerializedStyles;
|
|
10486
10567
|
declare function useThemeBg(): string;
|
|
10487
10568
|
type ThemeProp = {
|
|
10488
10569
|
theme: Theme;
|
|
10489
10570
|
};
|
|
10490
10571
|
type WithTheme<T extends Record<string, unknown>> = T & ThemeProp;
|
|
10491
10572
|
|
|
10492
|
-
|
|
10493
|
-
type PaddingY = number | {
|
|
10494
|
-
[key in PaddingYKey]: number;
|
|
10495
|
-
};
|
|
10496
|
-
declare const buttonBorderRadiuses: readonly [8, 32];
|
|
10497
|
-
type ButtonBorderRadius = (typeof buttonBorderRadiuses)[number];
|
|
10498
|
-
declare const allowedButtonTypographyTypes: readonly ["Body", "Body Strong", "Title", "Label", "Label Moderate", "Label Strong"];
|
|
10499
|
-
type AllowedButtonTypographyTypes = (typeof allowedButtonTypographyTypes)[number];
|
|
10500
|
-
type ButtonTypographyArgs = {
|
|
10501
|
-
type?: AllowedButtonTypographyTypes;
|
|
10502
|
-
color?: ThemeOrColorKey;
|
|
10503
|
-
};
|
|
10504
|
-
declare const buttonsThemeBase: {
|
|
10505
|
-
defaultSize: TokenSizeKey;
|
|
10506
|
-
defaultTypographyType: "Title" | "Body" | "Body Strong" | "Label" | "Label Moderate" | "Label Strong";
|
|
10507
|
-
defaultColor: ThemeOrColorKey;
|
|
10508
|
-
defaultBorderRadius: 8 | 32;
|
|
10509
|
-
defaultBorderWidth: number;
|
|
10510
|
-
defaultBackgroundColor: BackgroundColorKeyArg;
|
|
10511
|
-
defaultBorderColor: BackgroundColorKeyArg;
|
|
10512
|
-
defaultHoverBackgroundColor: BackgroundColorKeyArg;
|
|
10513
|
-
defaultHoverBorderColor: BackgroundColorKeyArg;
|
|
10514
|
-
defaultOutlineOffset: number;
|
|
10515
|
-
defaultPaddingsY: {
|
|
10516
|
-
ExtraSmall: number;
|
|
10517
|
-
Small: PaddingY;
|
|
10518
|
-
Schmedium: number;
|
|
10519
|
-
Medium: number;
|
|
10520
|
-
Mlarge: number;
|
|
10521
|
-
Large: number;
|
|
10522
|
-
};
|
|
10523
|
-
kinds: {};
|
|
10524
|
-
};
|
|
10525
|
-
type ButtonsThemeKey = keyof typeof buttonsThemeBase;
|
|
10526
|
-
type ButtonKindsProps = Record<string, Partial<typeof buttonsThemeBase>>;
|
|
10527
|
-
declare const defaultButtonsTheme: {
|
|
10528
|
-
kinds: ButtonKindsProps;
|
|
10529
|
-
defaultSize: TokenSizeKey;
|
|
10530
|
-
defaultTypographyType: "Title" | "Body" | "Body Strong" | "Label" | "Label Moderate" | "Label Strong";
|
|
10531
|
-
defaultColor: ThemeOrColorKey;
|
|
10532
|
-
defaultBorderRadius: 8 | 32;
|
|
10533
|
-
defaultBorderWidth: number;
|
|
10534
|
-
defaultBackgroundColor: BackgroundColorKeyArg;
|
|
10535
|
-
defaultBorderColor: BackgroundColorKeyArg;
|
|
10536
|
-
defaultHoverBackgroundColor: BackgroundColorKeyArg;
|
|
10537
|
-
defaultHoverBorderColor: BackgroundColorKeyArg;
|
|
10538
|
-
defaultOutlineOffset: number;
|
|
10539
|
-
defaultPaddingsY: {
|
|
10540
|
-
ExtraSmall: number;
|
|
10541
|
-
Small: PaddingY;
|
|
10542
|
-
Schmedium: number;
|
|
10543
|
-
Medium: number;
|
|
10544
|
-
Mlarge: number;
|
|
10545
|
-
Large: number;
|
|
10546
|
-
};
|
|
10547
|
-
};
|
|
10548
|
-
|
|
10549
|
-
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 };
|
package/dist/types/index.d.cts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -7388,6 +7388,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
7388
7388
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
7389
7389
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
7390
7390
|
buttons: defaultButtonsTheme,
|
|
7391
|
+
badge: {
|
|
7392
|
+
bg: "c05Neutral"
|
|
7393
|
+
},
|
|
7394
|
+
inputBackground: colors.white,
|
|
7391
7395
|
loading: "LoadingSpinner"
|
|
7392
7396
|
});
|
|
7393
7397
|
var lightBaseTheme = baseTheme;
|
|
@@ -7424,7 +7428,11 @@ var darkBaseTheme = {
|
|
|
7424
7428
|
vlcNeutral: colors.gray20,
|
|
7425
7429
|
warning: colors.warning,
|
|
7426
7430
|
buttons: defaultButtonsTheme,
|
|
7427
|
-
loading: "LoadingSpinner"
|
|
7431
|
+
loading: "LoadingSpinner",
|
|
7432
|
+
inputBackground: colors.black,
|
|
7433
|
+
badge: {
|
|
7434
|
+
bg: "c15Neutral"
|
|
7435
|
+
}
|
|
7428
7436
|
};
|
|
7429
7437
|
var lightTheme = extend(lightBaseTheme, {
|
|
7430
7438
|
header: extendBase(lightBaseTheme, {
|
|
@@ -7463,6 +7471,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
7463
7471
|
secondary: colors.grayBlue43,
|
|
7464
7472
|
text: colors.grayBlue9,
|
|
7465
7473
|
link: colors.blue39,
|
|
7474
|
+
inputBackground: colors.white,
|
|
7466
7475
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
7467
7476
|
main: "Manrope",
|
|
7468
7477
|
code: "Monaco"
|
|
@@ -7539,7 +7548,10 @@ var bridgeBaseSettings = {
|
|
|
7539
7548
|
defaultBorderWidth: 1
|
|
7540
7549
|
}
|
|
7541
7550
|
}
|
|
7542
|
-
})
|
|
7551
|
+
}),
|
|
7552
|
+
badge: {
|
|
7553
|
+
bg: "grayBlue94"
|
|
7554
|
+
}
|
|
7543
7555
|
};
|
|
7544
7556
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
7545
7557
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -7547,7 +7559,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
7547
7559
|
bg: colors.gray98,
|
|
7548
7560
|
smBg: colors.gray98,
|
|
7549
7561
|
text: colors.grayBlue9,
|
|
7550
|
-
secondary: colors.grayBlue43
|
|
7562
|
+
secondary: colors.grayBlue43,
|
|
7563
|
+
inputBackground: colors.white
|
|
7551
7564
|
}));
|
|
7552
7565
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
7553
7566
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -7703,7 +7716,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7703
7716
|
${({ theme, fontColor }) => {
|
|
7704
7717
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7705
7718
|
return `
|
|
7706
|
-
|
|
7719
|
+
svg, path {
|
|
7707
7720
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7708
7721
|
|
|
7709
7722
|
/*
|
|
@@ -7858,6 +7871,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
7858
7871
|
Link,
|
|
7859
7872
|
{
|
|
7860
7873
|
to: node.to,
|
|
7874
|
+
newTab: !!node.newTab,
|
|
7861
7875
|
children: node.text
|
|
7862
7876
|
},
|
|
7863
7877
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -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';
|
|
@@ -122,6 +122,7 @@ import '../styles/colors.cjs';
|
|
|
122
122
|
type LinkNode = {
|
|
123
123
|
text: string;
|
|
124
124
|
to: NewRoutesType | undefined;
|
|
125
|
+
newTab?: boolean;
|
|
125
126
|
};
|
|
126
127
|
type ExternalLinkNode = {
|
|
127
128
|
text: string;
|
|
@@ -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';
|
|
@@ -122,6 +122,7 @@ import '../styles/colors.js';
|
|
|
122
122
|
type LinkNode = {
|
|
123
123
|
text: string;
|
|
124
124
|
to: NewRoutesType | undefined;
|
|
125
|
+
newTab?: boolean;
|
|
125
126
|
};
|
|
126
127
|
type ExternalLinkNode = {
|
|
127
128
|
text: string;
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
isNextLinkNode,
|
|
6
6
|
isTextNode,
|
|
7
7
|
toNonTypographicReactNodes
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-4X67A2CS.js";
|
|
9
9
|
import "../chunk-OPV246QW.js";
|
|
10
10
|
import "../chunk-AAFUVYVP.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-TNDSUTUN.js";
|
|
12
12
|
import "../chunk-EDN2QDCB.js";
|
|
13
13
|
import "../chunk-FT62PIPN.js";
|
|
14
14
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -123,8 +123,8 @@ 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-CZFFMEAS.js";
|
|
127
|
+
import "../chunk-VNQE6KEX.js";
|
|
128
128
|
import "../chunk-ENBUKLVT.js";
|
|
129
129
|
import "../chunk-JSGRNWSB.js";
|
|
130
130
|
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 });
|
|
@@ -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);
|
|
@@ -3596,6 +3613,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3596
3613
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3597
3614
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3598
3615
|
buttons: defaultButtonsTheme,
|
|
3616
|
+
badge: {
|
|
3617
|
+
bg: "c05Neutral"
|
|
3618
|
+
},
|
|
3619
|
+
inputBackground: colors.white,
|
|
3599
3620
|
loading: "LoadingSpinner"
|
|
3600
3621
|
});
|
|
3601
3622
|
var lightBaseTheme = baseTheme;
|
|
@@ -3632,7 +3653,11 @@ var darkBaseTheme = {
|
|
|
3632
3653
|
vlcNeutral: colors.gray20,
|
|
3633
3654
|
warning: colors.warning,
|
|
3634
3655
|
buttons: defaultButtonsTheme,
|
|
3635
|
-
loading: "LoadingSpinner"
|
|
3656
|
+
loading: "LoadingSpinner",
|
|
3657
|
+
inputBackground: colors.black,
|
|
3658
|
+
badge: {
|
|
3659
|
+
bg: "c15Neutral"
|
|
3660
|
+
}
|
|
3636
3661
|
};
|
|
3637
3662
|
var lightTheme = extend(lightBaseTheme, {
|
|
3638
3663
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3671,6 +3696,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3671
3696
|
secondary: colors.grayBlue43,
|
|
3672
3697
|
text: colors.grayBlue9,
|
|
3673
3698
|
link: colors.blue39,
|
|
3699
|
+
inputBackground: colors.white,
|
|
3674
3700
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3675
3701
|
main: "Manrope",
|
|
3676
3702
|
code: "Monaco"
|
|
@@ -3747,7 +3773,10 @@ var bridgeBaseSettings = {
|
|
|
3747
3773
|
defaultBorderWidth: 1
|
|
3748
3774
|
}
|
|
3749
3775
|
}
|
|
3750
|
-
})
|
|
3776
|
+
}),
|
|
3777
|
+
badge: {
|
|
3778
|
+
bg: "grayBlue94"
|
|
3779
|
+
}
|
|
3751
3780
|
};
|
|
3752
3781
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3753
3782
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3755,7 +3784,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3755
3784
|
bg: colors.gray98,
|
|
3756
3785
|
smBg: colors.gray98,
|
|
3757
3786
|
text: colors.grayBlue9,
|
|
3758
|
-
secondary: colors.grayBlue43
|
|
3787
|
+
secondary: colors.grayBlue43,
|
|
3788
|
+
inputBackground: colors.white
|
|
3759
3789
|
}));
|
|
3760
3790
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3761
3791
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -7767,7 +7797,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7767
7797
|
${({ theme, fontColor }) => {
|
|
7768
7798
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7769
7799
|
return `
|
|
7770
|
-
|
|
7800
|
+
svg, path {
|
|
7771
7801
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7772
7802
|
|
|
7773
7803
|
/*
|
|
@@ -7922,6 +7952,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
7922
7952
|
Link,
|
|
7923
7953
|
{
|
|
7924
7954
|
to: node.to,
|
|
7955
|
+
newTab: !!node.newTab,
|
|
7925
7956
|
children: node.text
|
|
7926
7957
|
},
|
|
7927
7958
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8205,7 +8236,6 @@ var StyledTitle = import_styled12.default.span`
|
|
|
8205
8236
|
`;
|
|
8206
8237
|
|
|
8207
8238
|
// src/components/typography/renderTypography.tsx
|
|
8208
|
-
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8209
8239
|
var typographyMap = {
|
|
8210
8240
|
Display,
|
|
8211
8241
|
Headline,
|
|
@@ -8217,36 +8247,36 @@ var typographyMap = {
|
|
|
8217
8247
|
"Label Strong": LabelStrong,
|
|
8218
8248
|
Overline,
|
|
8219
8249
|
Code: Code2,
|
|
8220
|
-
"Code Strong":
|
|
8250
|
+
"Code Strong": Code2
|
|
8221
8251
|
};
|
|
8222
8252
|
var renderTypography = (type, props) => {
|
|
8223
8253
|
const TypographyComponent = typographyMap[type];
|
|
8224
|
-
|
|
8254
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8255
|
+
return import_react21.default.createElement(TypographyComponent, rest, children);
|
|
8225
8256
|
};
|
|
8226
8257
|
|
|
8227
8258
|
// src/utils/toReactNodes.tsx
|
|
8228
|
-
var
|
|
8259
|
+
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8229
8260
|
function toReactNodes(toReactNodesArg) {
|
|
8230
8261
|
const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
|
|
8231
8262
|
const reactNodes = toReactNodesArray.map((node, i) => {
|
|
8232
8263
|
let content;
|
|
8233
8264
|
if (!node) {
|
|
8234
8265
|
return null;
|
|
8235
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
8236
|
-
|
|
8266
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
8267
|
+
const props = node.typography.props || {};
|
|
8268
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react22.Fragment, { children: renderTypography(
|
|
8237
8269
|
node.typography.type,
|
|
8238
|
-
Object.assign(
|
|
8239
|
-
content: node
|
|
8240
|
-
})
|
|
8270
|
+
Object.assign(props, { content: node })
|
|
8241
8271
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
8242
8272
|
} else {
|
|
8243
8273
|
content = toNonTypographicReactNodes(node);
|
|
8244
8274
|
}
|
|
8245
8275
|
return content || null;
|
|
8246
8276
|
});
|
|
8247
|
-
return /* @__PURE__ */ (0,
|
|
8277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react22.Fragment, { children: reactNodes });
|
|
8248
8278
|
}
|
|
8249
|
-
function setReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
8279
|
+
function setReactNodesTypography(nodesArg, nodesTypographyMap, replaceExistingTypography = true) {
|
|
8250
8280
|
const nodes = Array.isArray(nodesArg) ? nodesArg : [nodesArg];
|
|
8251
8281
|
const nodesWithTypography = nodes.map((node, i) => {
|
|
8252
8282
|
if (isIconNode(node)) {
|
|
@@ -8258,28 +8288,32 @@ function setReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
|
8258
8288
|
typography: nodesTypographyMap.text
|
|
8259
8289
|
};
|
|
8260
8290
|
}
|
|
8261
|
-
} else if (
|
|
8291
|
+
} else if (!node) {
|
|
8292
|
+
return node;
|
|
8293
|
+
}
|
|
8294
|
+
const useExistingTypography = !replaceExistingTypography && (0, import_lodash_es4.isObject)(node) && "typography" in node ? node.typography : void 0;
|
|
8295
|
+
if (isLinkNode(node)) {
|
|
8262
8296
|
if (nodesTypographyMap.link) {
|
|
8263
8297
|
return __spreadProps(__spreadValues({}, node), {
|
|
8264
|
-
typography: nodesTypographyMap.link
|
|
8298
|
+
typography: useExistingTypography || nodesTypographyMap.link
|
|
8265
8299
|
});
|
|
8266
8300
|
}
|
|
8267
8301
|
} else if (isExternalLinkNode(node)) {
|
|
8268
8302
|
if (nodesTypographyMap.externalLink) {
|
|
8269
8303
|
return __spreadProps(__spreadValues({}, node), {
|
|
8270
|
-
typography: nodesTypographyMap.externalLink
|
|
8304
|
+
typography: useExistingTypography || nodesTypographyMap.externalLink
|
|
8271
8305
|
});
|
|
8272
8306
|
}
|
|
8273
8307
|
} else if (isNextLinkNode(node)) {
|
|
8274
8308
|
if (nodesTypographyMap.nextLink) {
|
|
8275
8309
|
return __spreadProps(__spreadValues({}, node), {
|
|
8276
|
-
typography: nodesTypographyMap.nextLink
|
|
8310
|
+
typography: useExistingTypography || nodesTypographyMap.nextLink
|
|
8277
8311
|
});
|
|
8278
8312
|
}
|
|
8279
8313
|
} else if (isTextNode(node)) {
|
|
8280
8314
|
if (nodesTypographyMap.text) {
|
|
8281
8315
|
return __spreadProps(__spreadValues({}, node), {
|
|
8282
|
-
typography: nodesTypographyMap.text
|
|
8316
|
+
typography: useExistingTypography || nodesTypographyMap.text
|
|
8283
8317
|
});
|
|
8284
8318
|
}
|
|
8285
8319
|
}
|
|
@@ -8298,8 +8332,12 @@ function toReactNodesWithTypographyMap(nodesArg, nodesTypographyMap) {
|
|
|
8298
8332
|
const nodes = toReactNodes(nodesWithTypography);
|
|
8299
8333
|
return nodes;
|
|
8300
8334
|
}
|
|
8335
|
+
function setDefaultReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
8336
|
+
return setReactNodesTypography(nodesArg, nodesTypographyMap, false);
|
|
8337
|
+
}
|
|
8301
8338
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8302
8339
|
0 && (module.exports = {
|
|
8340
|
+
setDefaultReactNodesTypography,
|
|
8303
8341
|
setReactNodesTypography,
|
|
8304
8342
|
toReactNodes,
|
|
8305
8343
|
toReactNodesWithTypographyMap
|