@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,12 +1,12 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { RenderTypographyArgs } from '../components/typography/renderTypography.cjs';
|
|
3
3
|
import { TypographyTypeKey } from '../styles/tokens/typography.cjs';
|
|
4
|
-
import { ToNonTypographicReactNodesArgs,
|
|
4
|
+
import { ToNonTypographicReactNodesArgs, TextNode, IconNode, LinkNode, ExternalLinkNode, NextLinkNode } from './toNonTypographicReactNodes.cjs';
|
|
5
5
|
import '../components/typography/Code.cjs';
|
|
6
6
|
import '@emotion/styled';
|
|
7
7
|
import 'react';
|
|
8
8
|
import '@emotion/react';
|
|
9
|
-
import '../
|
|
9
|
+
import '../themes-37e92940.js';
|
|
10
10
|
import '@emotion/css';
|
|
11
11
|
import '../styles/colors.cjs';
|
|
12
12
|
import '../components/typography/Overline.cjs';
|
|
@@ -129,14 +129,17 @@ import '../icons/WalletSDKIcon.cjs';
|
|
|
129
129
|
import '../icons/WarningSign.cjs';
|
|
130
130
|
import '../types/index.cjs';
|
|
131
131
|
|
|
132
|
+
type RenderTypographyArgsOptionalProps<T extends TypographyTypeKey> = Omit<RenderTypographyArgs<T>, "props"> & {
|
|
133
|
+
props?: RenderTypographyArgs<T>["props"];
|
|
134
|
+
};
|
|
132
135
|
type TypographicReactNodes<T extends TypographyTypeKey> = (LinkNode & {
|
|
133
|
-
typography?:
|
|
136
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
134
137
|
}) | (ExternalLinkNode & {
|
|
135
|
-
typography?:
|
|
138
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
136
139
|
}) | (TextNode & {
|
|
137
|
-
typography?:
|
|
140
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
138
141
|
}) | (NextLinkNode & {
|
|
139
|
-
typography?:
|
|
142
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
140
143
|
});
|
|
141
144
|
type ToReactNodesArg<T extends TypographyTypeKey> = string | TypographicReactNodes<T> | IconNode | null | undefined;
|
|
142
145
|
type ToReactNodesArgs<T extends TypographyTypeKey = TypographyTypeKey> = ToReactNodesArg<T> | ToReactNodesArg<T>[];
|
|
@@ -144,12 +147,13 @@ declare function toReactNodes<T extends TypographyTypeKey>(toReactNodesArg: ToRe
|
|
|
144
147
|
declare const setReactNodesTypographyMapTypes: readonly ["link", "externalLink", "text", "nextLink"];
|
|
145
148
|
type SetReactNodesTypographyMapType = (typeof setReactNodesTypographyMapTypes)[number];
|
|
146
149
|
type SetReactNodesTypographyMap<T extends TypographyTypeKey> = {
|
|
147
|
-
[nodeType in SetReactNodesTypographyMapType]?:
|
|
150
|
+
[nodeType in SetReactNodesTypographyMapType]?: RenderTypographyArgsOptionalProps<T>;
|
|
148
151
|
};
|
|
149
|
-
declare function setReactNodesTypography<T extends TypographyTypeKey>(nodesArg: ToReactNodesArgs<
|
|
152
|
+
declare function setReactNodesTypography<T extends TypographyTypeKey>(nodesArg: ToReactNodesArgs<T> | ToNonTypographicReactNodesArgs, nodesTypographyMap: SetReactNodesTypographyMap<T>, replaceExistingTypography?: boolean): (string | TextNode | IconNode | null | undefined)[];
|
|
150
153
|
declare function toReactNodesWithTypographyMap<T extends TypographyTypeKey>(
|
|
151
154
|
/** The initial typography is unimportant since we'll
|
|
152
155
|
* replace it, so it doesn't need to be generic */
|
|
153
156
|
nodesArg: ToReactNodesArgs<TypographyTypeKey>, nodesTypographyMap: SetReactNodesTypographyMap<T>): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
157
|
+
declare function setDefaultReactNodesTypography<T extends TypographyTypeKey>(nodesArg: ToReactNodesArgs<T> | ToNonTypographicReactNodesArgs, nodesTypographyMap: SetReactNodesTypographyMap<T>): (string | TextNode | IconNode | null | undefined)[];
|
|
154
158
|
|
|
155
|
-
export { ToReactNodesArgs, setReactNodesTypography, toReactNodes, toReactNodesWithTypographyMap };
|
|
159
|
+
export { ToReactNodesArgs, setDefaultReactNodesTypography, setReactNodesTypography, toReactNodes, toReactNodesWithTypographyMap };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { RenderTypographyArgs } from '../components/typography/renderTypography.js';
|
|
3
3
|
import { TypographyTypeKey } from '../styles/tokens/typography.js';
|
|
4
|
-
import { ToNonTypographicReactNodesArgs,
|
|
4
|
+
import { ToNonTypographicReactNodesArgs, TextNode, IconNode, LinkNode, ExternalLinkNode, NextLinkNode } from './toNonTypographicReactNodes.js';
|
|
5
5
|
import '../components/typography/Code.js';
|
|
6
6
|
import '@emotion/styled';
|
|
7
7
|
import 'react';
|
|
8
8
|
import '@emotion/react';
|
|
9
|
-
import '../
|
|
9
|
+
import '../themes-832e46b2.js';
|
|
10
10
|
import '@emotion/css';
|
|
11
11
|
import '../styles/colors.js';
|
|
12
12
|
import '../components/typography/Overline.js';
|
|
@@ -129,14 +129,17 @@ import '../icons/WalletSDKIcon.js';
|
|
|
129
129
|
import '../icons/WarningSign.js';
|
|
130
130
|
import '../types/index.js';
|
|
131
131
|
|
|
132
|
+
type RenderTypographyArgsOptionalProps<T extends TypographyTypeKey> = Omit<RenderTypographyArgs<T>, "props"> & {
|
|
133
|
+
props?: RenderTypographyArgs<T>["props"];
|
|
134
|
+
};
|
|
132
135
|
type TypographicReactNodes<T extends TypographyTypeKey> = (LinkNode & {
|
|
133
|
-
typography?:
|
|
136
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
134
137
|
}) | (ExternalLinkNode & {
|
|
135
|
-
typography?:
|
|
138
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
136
139
|
}) | (TextNode & {
|
|
137
|
-
typography?:
|
|
140
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
138
141
|
}) | (NextLinkNode & {
|
|
139
|
-
typography?:
|
|
142
|
+
typography?: RenderTypographyArgsOptionalProps<T>;
|
|
140
143
|
});
|
|
141
144
|
type ToReactNodesArg<T extends TypographyTypeKey> = string | TypographicReactNodes<T> | IconNode | null | undefined;
|
|
142
145
|
type ToReactNodesArgs<T extends TypographyTypeKey = TypographyTypeKey> = ToReactNodesArg<T> | ToReactNodesArg<T>[];
|
|
@@ -144,12 +147,13 @@ declare function toReactNodes<T extends TypographyTypeKey>(toReactNodesArg: ToRe
|
|
|
144
147
|
declare const setReactNodesTypographyMapTypes: readonly ["link", "externalLink", "text", "nextLink"];
|
|
145
148
|
type SetReactNodesTypographyMapType = (typeof setReactNodesTypographyMapTypes)[number];
|
|
146
149
|
type SetReactNodesTypographyMap<T extends TypographyTypeKey> = {
|
|
147
|
-
[nodeType in SetReactNodesTypographyMapType]?:
|
|
150
|
+
[nodeType in SetReactNodesTypographyMapType]?: RenderTypographyArgsOptionalProps<T>;
|
|
148
151
|
};
|
|
149
|
-
declare function setReactNodesTypography<T extends TypographyTypeKey>(nodesArg: ToReactNodesArgs<
|
|
152
|
+
declare function setReactNodesTypography<T extends TypographyTypeKey>(nodesArg: ToReactNodesArgs<T> | ToNonTypographicReactNodesArgs, nodesTypographyMap: SetReactNodesTypographyMap<T>, replaceExistingTypography?: boolean): (string | TextNode | IconNode | null | undefined)[];
|
|
150
153
|
declare function toReactNodesWithTypographyMap<T extends TypographyTypeKey>(
|
|
151
154
|
/** The initial typography is unimportant since we'll
|
|
152
155
|
* replace it, so it doesn't need to be generic */
|
|
153
156
|
nodesArg: ToReactNodesArgs<TypographyTypeKey>, nodesTypographyMap: SetReactNodesTypographyMap<T>): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
157
|
+
declare function setDefaultReactNodesTypography<T extends TypographyTypeKey>(nodesArg: ToReactNodesArgs<T> | ToNonTypographicReactNodesArgs, nodesTypographyMap: SetReactNodesTypographyMap<T>): (string | TextNode | IconNode | null | undefined)[];
|
|
154
158
|
|
|
155
|
-
export { ToReactNodesArgs, setReactNodesTypography, toReactNodes, toReactNodesWithTypographyMap };
|
|
159
|
+
export { ToReactNodesArgs, setDefaultReactNodesTypography, setReactNodesTypography, toReactNodes, toReactNodesWithTypographyMap };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
+
setDefaultReactNodesTypography,
|
|
2
3
|
setReactNodesTypography,
|
|
3
4
|
toReactNodes,
|
|
4
5
|
toReactNodesWithTypographyMap
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-CRTTTIAD.js";
|
|
6
|
+
} from "../chunk-AKGW3FMJ.js";
|
|
7
|
+
import "../chunk-RQLRNKOP.js";
|
|
8
|
+
import "../chunk-GGWFUEDW.js";
|
|
9
|
+
import "../chunk-XLKL3DNK.js";
|
|
10
|
+
import "../chunk-HLZNFEDV.js";
|
|
11
|
+
import "../chunk-ZR2TARGX.js";
|
|
12
|
+
import "../chunk-IXAXRBFS.js";
|
|
13
|
+
import "../chunk-4EV5IUUJ.js";
|
|
14
|
+
import "../chunk-PBLWYVQF.js";
|
|
15
|
+
import "../chunk-QON4D7N2.js";
|
|
16
|
+
import "../chunk-BNHCCR3C.js";
|
|
17
17
|
import "../chunk-YMNSXZ5D.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-IH5SIRJL.js";
|
|
19
|
+
import "../chunk-HNK2KIC7.js";
|
|
19
20
|
import "../chunk-OPV246QW.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-SCIQSZSW.js";
|
|
22
|
+
import "../chunk-OPUCWQMK.js";
|
|
23
|
+
import "../chunk-LAGOF7IU.js";
|
|
23
24
|
import "../chunk-EDN2QDCB.js";
|
|
24
25
|
import "../chunk-FT62PIPN.js";
|
|
25
26
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -134,14 +135,15 @@ import "../chunk-VI6WTKMV.js";
|
|
|
134
135
|
import "../chunk-QW2INB5A.js";
|
|
135
136
|
import "../chunk-JLD7MGLC.js";
|
|
136
137
|
import "../chunk-DW6LFUI2.js";
|
|
137
|
-
import "../chunk-
|
|
138
|
-
import "../chunk-
|
|
138
|
+
import "../chunk-YG5BANJH.js";
|
|
139
|
+
import "../chunk-UAUAYQ3C.js";
|
|
139
140
|
import "../chunk-ENBUKLVT.js";
|
|
140
141
|
import "../chunk-JSGRNWSB.js";
|
|
141
142
|
import "../chunk-FO7I4E45.js";
|
|
142
|
-
import "../chunk-
|
|
143
|
+
import "../chunk-KPAVY3UH.js";
|
|
143
144
|
import "../chunk-LOPKRCGI.js";
|
|
144
145
|
export {
|
|
146
|
+
setDefaultReactNodesTypography,
|
|
145
147
|
setReactNodesTypography,
|
|
146
148
|
toReactNodes,
|
|
147
149
|
toReactNodesWithTypographyMap
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@emotion/css": "^11.11.0",
|
|
59
59
|
"@emotion/react": "^11.11.0",
|
|
60
60
|
"@emotion/styled": "^11.11.0",
|
|
61
|
-
"@lightsparkdev/core": "1.
|
|
61
|
+
"@lightsparkdev/core": "1.2.0",
|
|
62
62
|
"@rollup/plugin-url": "^8.0.2",
|
|
63
63
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
64
64
|
"@svgr/core": "^8.1.0",
|
package/dist/chunk-3XSQV5U4.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// src/styles/tokens/spacing.tsx
|
|
2
|
-
var Spacing = /* @__PURE__ */ ((Spacing2) => {
|
|
3
|
-
Spacing2["4xs"] = "2px";
|
|
4
|
-
Spacing2["3xs"] = "4px";
|
|
5
|
-
Spacing2["2xs"] = "6px";
|
|
6
|
-
Spacing2["xs"] = "8px";
|
|
7
|
-
Spacing2["sm"] = "12px";
|
|
8
|
-
Spacing2["md"] = "16px";
|
|
9
|
-
Spacing2["lg"] = "24px";
|
|
10
|
-
Spacing2["xl"] = "32px";
|
|
11
|
-
Spacing2["2xl"] = "40px";
|
|
12
|
-
Spacing2["3xl"] = "48px";
|
|
13
|
-
Spacing2["4xl"] = "56px";
|
|
14
|
-
Spacing2["5xl"] = "64px";
|
|
15
|
-
Spacing2["6xl"] = "72px";
|
|
16
|
-
Spacing2["7xl"] = "80px";
|
|
17
|
-
Spacing2["8xl"] = "96px";
|
|
18
|
-
Spacing2["9xl"] = "112px";
|
|
19
|
-
Spacing2["10xl"] = "128px";
|
|
20
|
-
Spacing2["11xl"] = "160px";
|
|
21
|
-
return Spacing2;
|
|
22
|
-
})(Spacing || {});
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
Spacing
|
|
26
|
-
};
|
package/dist/chunk-B2VYAIYR.js
DELETED
|
File without changes
|
package/dist/chunk-SEZEDINC.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LabelModerate
|
|
3
|
-
} from "./chunk-B6S7Y4K7.js";
|
|
4
|
-
import {
|
|
5
|
-
standardBorderRadius
|
|
6
|
-
} from "./chunk-PG2W2HVB.js";
|
|
7
|
-
import {
|
|
8
|
-
getColor,
|
|
9
|
-
isLight
|
|
10
|
-
} from "./chunk-IBZBPQMZ.js";
|
|
11
|
-
|
|
12
|
-
// src/components/Badge.tsx
|
|
13
|
-
import styled from "@emotion/styled";
|
|
14
|
-
import { jsx } from "@emotion/react/jsx-runtime";
|
|
15
|
-
function Badge({ text, color, ml = 0, mr = 0 }) {
|
|
16
|
-
return text ? /* @__PURE__ */ jsx(StyledBadge, { color, ml, children: /* @__PURE__ */ jsx(LabelModerate, { size: "Small", color, children: text }) }) : null;
|
|
17
|
-
}
|
|
18
|
-
var badgeVPadding = 2;
|
|
19
|
-
var StyledBadge = styled.span`
|
|
20
|
-
${standardBorderRadius(4)}
|
|
21
|
-
${({ ml }) => ml === 0 ? "" : `margin-left: ${ml}px;`}
|
|
22
|
-
padding: ${badgeVPadding}px 6px;
|
|
23
|
-
background-color: ${({ theme, color }) => {
|
|
24
|
-
if (color === "danger") {
|
|
25
|
-
return getColor(theme, "red42a10");
|
|
26
|
-
} else {
|
|
27
|
-
return isLight(theme) ? theme.c05Neutral : theme.c15Neutral;
|
|
28
|
-
}
|
|
29
|
-
}};
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
Badge,
|
|
34
|
-
badgeVPadding
|
|
35
|
-
};
|