@lightsparkdev/ui 1.0.3 → 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 +6 -0
- package/dist/{chunk-X4TGLNCH.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-7N2PFDYE.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-K7FYXGOI.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-SNFRMD6Z.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-LH7GLNMY.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-XDP7GCYE.js → chunk-4X67A2CS.js} +1 -1
- package/dist/{chunk-QQSV7XJX.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-BENSR2YW.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-XB4KQFK2.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-BDZ46Z2I.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-2AGBCGOW.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-Y7RQUJUS.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-XM2HQVUK.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-6CNJ5ZCC.js → chunk-7RMHMFS2.js} +3 -3
- package/dist/{chunk-35PJW7RT.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-BHP5YL2N.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-KX5QZXCD.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-YRNEIRHM.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-LOL5TJ3H.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-2XUHQWCJ.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-PG2W2HVB.js → chunk-CZFFMEAS.js} +1 -1
- package/dist/{chunk-MRGHRTKA.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-5TTLUOJ5.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-J3YVJWRG.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-UH5F35II.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-7WDAN3OC.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-WGKUDRZ7.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-GWHKALYQ.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-LTCJ6LNO.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-JNNJVBHF.js → chunk-JH53NBOD.js} +13 -9
- package/dist/{chunk-BSH6WRUZ.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-LGKXPUSI.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-E4DUADXU.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-VXKNN4SF.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-435FPPZK.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-MWDDIXIP.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-SLKPLSJU.js → chunk-MNMVZI7D.js} +10 -10
- package/dist/{chunk-WTMJTGW4.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-4C2TISN7.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-CRTTTIAD.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-7FHOKVKJ.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-ILEZ6AWT.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-DXA3WUSX.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-7YY6BH5O.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-7IHNYMFQ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-I3FI3FNP.js → chunk-TNDSUTUN.js} +2 -2
- package/dist/{chunk-PQKVR2BR.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-4BFBANKF.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-B6S7Y4K7.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-IBZBPQMZ.js → chunk-VNQE6KEX.js} +13 -4
- package/dist/{chunk-HGOGF6I7.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-54EOEIEN.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-4JHXRPRB.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-YIHC25WB.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-C4KZC45Y.js → chunk-XS4MH3QA.js} +54 -71
- package/dist/{chunk-OKXC33OU.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-GSKTHUQJ.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-N2NPIZCV.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-LIQSJ5R7.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-RPNTFEXE.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7781 -7417
- 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 +50 -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 +36 -24
- 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 +39 -27
- 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 +13 -4
- 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 +13 -4
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +13 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +13 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +78 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +13 -4
- 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 +13 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +13 -4
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +13 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +118 -43
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +13 -4
- 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 +13 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +13 -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 +7347 -7340
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +53 -29
- 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 +13 -4
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +13 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +202 -127
- package/dist/components/Modal.d.cts +9 -9
- package/dist/components/Modal.d.ts +9 -9
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +205 -97
- 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 +45 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +13 -4
- 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 +13 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +13 -4
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7406 -7335
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +13 -4
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +41 -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 +35 -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 +13 -4
- 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 +61 -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 +105 -98
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +13 -4
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +13 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- 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.js +2 -2
- package/dist/components/documentation/index.cjs +13 -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 +8341 -8176
- 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 +100 -29
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +100 -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 +29 -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 +13 -4
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +13 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- 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-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 +13 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +54 -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-SEZEDINC.js +0 -35
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Spacing
|
|
3
|
+
} from "./chunk-E5DUKMCU.js";
|
|
1
4
|
import {
|
|
2
5
|
overflowAutoWithoutScrollbars
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQVNE3NU.js";
|
|
4
7
|
import {
|
|
5
8
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TNDSUTUN.js";
|
|
7
10
|
import {
|
|
8
11
|
standardBorderRadius
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CZFFMEAS.js";
|
|
10
13
|
|
|
11
14
|
// src/components/Collapsible.tsx
|
|
12
15
|
import styled from "@emotion/styled";
|
|
@@ -118,9 +121,9 @@ var CollapsingContainer = styled.div`
|
|
|
118
121
|
}
|
|
119
122
|
`;
|
|
120
123
|
var InnerPadding = styled.div`
|
|
121
|
-
padding: ${"
|
|
122
|
-
${(props) => props.contentIndent ?
|
|
123
|
-
gap: ${"
|
|
124
|
+
padding: ${Spacing.px["3xs"]} 0 ${Spacing.px["3xs"]}
|
|
125
|
+
${(props) => props.contentIndent ? Spacing.px.md : "0"};
|
|
126
|
+
gap: ${Spacing.px["4xs"]};
|
|
124
127
|
display: flex;
|
|
125
128
|
flex-direction: column;
|
|
126
129
|
`;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MNMVZI7D.js";
|
|
4
4
|
import {
|
|
5
5
|
overflowAutoWithoutScrollbars
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQVNE3NU.js";
|
|
7
7
|
import {
|
|
8
8
|
standardContentInset
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CZFFMEAS.js";
|
|
10
10
|
import {
|
|
11
11
|
bp
|
|
12
12
|
} from "./chunk-JSGRNWSB.js";
|
|
@@ -3,51 +3,51 @@ import {
|
|
|
3
3
|
} from "./chunk-NBCCPGA4.js";
|
|
4
4
|
import {
|
|
5
5
|
ProgressBar
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VXH6GWGE.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
toReactNodes
|
|
12
|
-
} from "./chunk-LIQSJ5R7.js";
|
|
8
|
+
IconWithCircleBackground
|
|
9
|
+
} from "./chunk-EIFK352Q.js";
|
|
13
10
|
import {
|
|
14
11
|
Drawer
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JH53NBOD.js";
|
|
13
|
+
import {
|
|
14
|
+
toReactNodes
|
|
15
|
+
} from "./chunk-ZO35RX7V.js";
|
|
16
16
|
import {
|
|
17
17
|
Button,
|
|
18
18
|
ButtonSelector
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MNMVZI7D.js";
|
|
20
20
|
import {
|
|
21
21
|
Body
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HVDX4OZJ.js";
|
|
23
23
|
import {
|
|
24
24
|
Headline,
|
|
25
25
|
headlineSelector
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OZQ5WPLN.js";
|
|
27
27
|
import {
|
|
28
28
|
select
|
|
29
29
|
} from "./chunk-YMNSXZ5D.js";
|
|
30
30
|
import {
|
|
31
31
|
UnstyledButton
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JAPRGAB7.js";
|
|
33
33
|
import {
|
|
34
34
|
z
|
|
35
35
|
} from "./chunk-55OQPFLF.js";
|
|
36
|
+
import {
|
|
37
|
+
Spacing
|
|
38
|
+
} from "./chunk-E5DUKMCU.js";
|
|
36
39
|
import {
|
|
37
40
|
overflowAutoWithoutScrollbars
|
|
38
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GQVNE3NU.js";
|
|
39
42
|
import {
|
|
40
43
|
Icon
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TNDSUTUN.js";
|
|
42
45
|
import {
|
|
43
46
|
overlaySurface,
|
|
44
47
|
standardBorderRadius,
|
|
45
48
|
standardContentInset,
|
|
46
49
|
standardFocusOutline
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import {
|
|
49
|
-
getColor
|
|
50
|
-
} from "./chunk-IBZBPQMZ.js";
|
|
50
|
+
} from "./chunk-CZFFMEAS.js";
|
|
51
51
|
import {
|
|
52
52
|
TokenSize
|
|
53
53
|
} from "./chunk-ENBUKLVT.js";
|
|
@@ -61,26 +61,10 @@ import {
|
|
|
61
61
|
} from "./chunk-LOPKRCGI.js";
|
|
62
62
|
|
|
63
63
|
// src/components/Modal.tsx
|
|
64
|
-
import
|
|
64
|
+
import styled from "@emotion/styled";
|
|
65
65
|
import React, { Fragment, useEffect, useLayoutEffect, useRef } from "react";
|
|
66
66
|
import ReactDOM from "react-dom";
|
|
67
|
-
|
|
68
|
-
// src/components/IconWithCircleBackground.tsx
|
|
69
|
-
import styled from "@emotion/styled";
|
|
70
|
-
import { jsx } from "@emotion/react/jsx-runtime";
|
|
71
|
-
function IconWithCircleBackground({
|
|
72
|
-
iconName = "WarningSign"
|
|
73
|
-
}) {
|
|
74
|
-
return /* @__PURE__ */ jsx(Flex, { center: true, children: /* @__PURE__ */ jsx(StyledIconWithCircleBackground, { children: /* @__PURE__ */ jsx(Icon, { name: iconName, width: 40, color: "grayBlue9" }) }) });
|
|
75
|
-
}
|
|
76
|
-
var StyledIconWithCircleBackground = styled.div`
|
|
77
|
-
background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
|
|
78
|
-
border-radius: 50%;
|
|
79
|
-
padding: 20px;
|
|
80
|
-
`;
|
|
81
|
-
|
|
82
|
-
// src/components/Modal.tsx
|
|
83
|
-
import { Fragment as Fragment2, jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
67
|
+
import { Fragment as Fragment2, jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
84
68
|
function isSubmitLinkWithHref(submitLink) {
|
|
85
69
|
return Boolean(submitLink && "href" in submitLink);
|
|
86
70
|
}
|
|
@@ -213,9 +197,9 @@ function Modal({
|
|
|
213
197
|
const buttonContent = /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
214
198
|
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((_a, i) => {
|
|
215
199
|
var _b = _a, { placement, text } = _b, rest = __objRest(_b, ["placement", "text"]);
|
|
216
|
-
return /* @__PURE__ */
|
|
200
|
+
return /* @__PURE__ */ jsx(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
|
|
217
201
|
}),
|
|
218
|
-
!isSm && !cancelHidden && /* @__PURE__ */
|
|
202
|
+
!isSm && !cancelHidden && /* @__PURE__ */ jsx(
|
|
219
203
|
Button,
|
|
220
204
|
{
|
|
221
205
|
disabled: cancelDisabled,
|
|
@@ -223,7 +207,7 @@ function Modal({
|
|
|
223
207
|
text: cancelText
|
|
224
208
|
}
|
|
225
209
|
),
|
|
226
|
-
(onSubmit || submitLink) && /* @__PURE__ */
|
|
210
|
+
(onSubmit || submitLink) && /* @__PURE__ */ jsx(
|
|
227
211
|
Button,
|
|
228
212
|
{
|
|
229
213
|
kind: "primary",
|
|
@@ -237,16 +221,16 @@ function Modal({
|
|
|
237
221
|
onClick: submitLink ? onSubmit : void 0
|
|
238
222
|
}
|
|
239
223
|
),
|
|
240
|
-
isSm && !cancelHidden && /* @__PURE__ */
|
|
224
|
+
isSm && !cancelHidden && /* @__PURE__ */ jsx(Button, { onClick: onClose, text: cancelText }),
|
|
241
225
|
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((_c, i) => {
|
|
242
226
|
var _d = _c, { placement, text } = _d, rest = __objRest(_d, ["placement", "text"]);
|
|
243
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ jsx(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
|
|
244
228
|
})
|
|
245
229
|
] });
|
|
246
230
|
let titleContent = null;
|
|
247
231
|
if (title) {
|
|
248
232
|
if (typeof title === "string") {
|
|
249
|
-
titleContent = /* @__PURE__ */
|
|
233
|
+
titleContent = /* @__PURE__ */ jsx(Headline, { heading: "h4", size: TokenSize.Small, children: title });
|
|
250
234
|
} else {
|
|
251
235
|
titleContent = toReactNodes(title);
|
|
252
236
|
}
|
|
@@ -254,17 +238,17 @@ function Modal({
|
|
|
254
238
|
let descriptionContent = null;
|
|
255
239
|
if (description) {
|
|
256
240
|
if (typeof description === "string") {
|
|
257
|
-
descriptionContent = /* @__PURE__ */
|
|
241
|
+
descriptionContent = /* @__PURE__ */ jsx(Description, { children: /* @__PURE__ */ jsx(Body, { size: "ExtraSmall", content: description }) });
|
|
258
242
|
} else {
|
|
259
|
-
descriptionContent = /* @__PURE__ */
|
|
243
|
+
descriptionContent = /* @__PURE__ */ jsx(Description, { children: toReactNodes(description) });
|
|
260
244
|
}
|
|
261
245
|
}
|
|
262
246
|
let topContentNode = null;
|
|
263
247
|
if (topContent) {
|
|
264
|
-
topContentNode = /* @__PURE__ */
|
|
248
|
+
topContentNode = /* @__PURE__ */ jsx("div", { css: { marginBottom: Spacing.px.xl }, children: /* @__PURE__ */ jsx(IconWithCircleBackground, __spreadValues({}, topContent)) });
|
|
265
249
|
}
|
|
266
250
|
const modalContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
267
|
-
progressBar ? /* @__PURE__ */
|
|
251
|
+
progressBar ? /* @__PURE__ */ jsx("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ jsx(
|
|
268
252
|
ProgressBar,
|
|
269
253
|
{
|
|
270
254
|
progressPercentage: progressBar.progressPercentage,
|
|
@@ -275,11 +259,11 @@ function Modal({
|
|
|
275
259
|
titleContent,
|
|
276
260
|
descriptionContent,
|
|
277
261
|
children,
|
|
278
|
-
onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */
|
|
262
|
+
onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ jsx(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ jsx(ModalButtonColumn, { children: buttonContent }) : null
|
|
279
263
|
] });
|
|
280
264
|
let content;
|
|
281
265
|
if (smKind === "drawer" && isSm) {
|
|
282
|
-
content = /* @__PURE__ */
|
|
266
|
+
content = /* @__PURE__ */ jsx(
|
|
283
267
|
Drawer,
|
|
284
268
|
{
|
|
285
269
|
onClose: () => onClickCloseButton(),
|
|
@@ -291,8 +275,8 @@ function Modal({
|
|
|
291
275
|
);
|
|
292
276
|
} else {
|
|
293
277
|
content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
294
|
-
!(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */
|
|
295
|
-
/* @__PURE__ */
|
|
278
|
+
!(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */ jsx(ModalOverlay, { ref: overlayRef }) : null,
|
|
279
|
+
/* @__PURE__ */ jsx(
|
|
296
280
|
ModalContainer,
|
|
297
281
|
{
|
|
298
282
|
"aria-modal": true,
|
|
@@ -302,29 +286,29 @@ function Modal({
|
|
|
302
286
|
ref: modalContainerRef,
|
|
303
287
|
top: top || (smKind === "default" ? standardContentInset.smPx : 0),
|
|
304
288
|
children: /* @__PURE__ */ jsxs(ModalContent, { width, ghost, smKind, children: [
|
|
305
|
-
!firstFocusRef && /* @__PURE__ */
|
|
289
|
+
!firstFocusRef && /* @__PURE__ */ jsx(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
|
|
306
290
|
!ghost && /* @__PURE__ */ jsxs(ModalNavigation, { children: [
|
|
307
|
-
handleBack && /* @__PURE__ */
|
|
308
|
-
!nonDismissable && /* @__PURE__ */
|
|
291
|
+
handleBack && /* @__PURE__ */ jsx(BackButton, { onClick: handleBack, children: /* @__PURE__ */ jsx(Icon, { name: "ChevronLeft", width: 16 }) }),
|
|
292
|
+
!nonDismissable && /* @__PURE__ */ jsx(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ jsx(Icon, { name: "Close", width: 9 }) })
|
|
309
293
|
] }),
|
|
310
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ jsx(ModalContentInner, { ghost, children: modalContent })
|
|
311
295
|
] })
|
|
312
296
|
}
|
|
313
297
|
)
|
|
314
298
|
] });
|
|
315
299
|
}
|
|
316
300
|
return visible && nodeReady && nodeRef.current ? ReactDOM.createPortal(
|
|
317
|
-
onSubmit ? /* @__PURE__ */
|
|
301
|
+
onSubmit ? /* @__PURE__ */ jsx("form", { onSubmit: onSubmitForm, children: content }) : content,
|
|
318
302
|
nodeRef.current
|
|
319
303
|
) : null;
|
|
320
304
|
}
|
|
321
|
-
var DefaultFocusTarget =
|
|
305
|
+
var DefaultFocusTarget = styled(UnstyledButton)`
|
|
322
306
|
position: absolute;
|
|
323
307
|
top: -30px;
|
|
324
308
|
width: 0;
|
|
325
309
|
height: 0;
|
|
326
310
|
`;
|
|
327
|
-
var ModalOverlay =
|
|
311
|
+
var ModalOverlay = styled.div`
|
|
328
312
|
position: fixed;
|
|
329
313
|
bottom: 0;
|
|
330
314
|
left: 0;
|
|
@@ -333,7 +317,7 @@ var ModalOverlay = styled2.div`
|
|
|
333
317
|
height: 100vh;
|
|
334
318
|
background: rgba(0, 0, 0, 0.5);
|
|
335
319
|
`;
|
|
336
|
-
var ModalContainer =
|
|
320
|
+
var ModalContainer = styled.div`
|
|
337
321
|
pointer-events: none;
|
|
338
322
|
position: fixed;
|
|
339
323
|
top: 0;
|
|
@@ -351,15 +335,15 @@ var ModalContainer = styled2.div`
|
|
|
351
335
|
${(props) => `top: ${props.top}px;`}
|
|
352
336
|
`;
|
|
353
337
|
var contentTopMarginPx = 24;
|
|
354
|
-
var Description =
|
|
338
|
+
var Description = styled.div`
|
|
355
339
|
color: ${({ theme }) => theme.mcNeutral};
|
|
356
|
-
margin-top: ${
|
|
340
|
+
margin-top: ${Spacing.px.sm};
|
|
357
341
|
& + * {
|
|
358
342
|
margin-top: ${contentTopMarginPx}px;
|
|
359
343
|
}
|
|
360
344
|
`;
|
|
361
|
-
var ModalButtonRow =
|
|
362
|
-
margin-top: ${
|
|
345
|
+
var ModalButtonRow = styled.div`
|
|
346
|
+
margin-top: ${Spacing.px.lg};
|
|
363
347
|
${bp.minSm(`display: flex;`)}
|
|
364
348
|
gap: 10px;
|
|
365
349
|
|
|
@@ -370,18 +354,18 @@ var ModalButtonRow = styled2.div`
|
|
|
370
354
|
`)}
|
|
371
355
|
}
|
|
372
356
|
`;
|
|
373
|
-
var ModalButtonColumn =
|
|
357
|
+
var ModalButtonColumn = styled.div`
|
|
374
358
|
display: flex;
|
|
375
359
|
flex-direction: column;
|
|
376
|
-
gap: ${
|
|
360
|
+
gap: ${Spacing.px.sm};
|
|
377
361
|
|
|
378
362
|
${ButtonSelector()} {
|
|
379
363
|
width: 100%;
|
|
380
364
|
}
|
|
381
365
|
|
|
382
|
-
margin-top: ${
|
|
366
|
+
margin-top: ${Spacing.px.lg};
|
|
383
367
|
`;
|
|
384
|
-
var ModalContent =
|
|
368
|
+
var ModalContent = styled.div`
|
|
385
369
|
pointer-events: auto;
|
|
386
370
|
transition: width 0.25s ease-in;
|
|
387
371
|
|
|
@@ -407,24 +391,24 @@ var ModalContent = styled2.div`
|
|
|
407
391
|
}
|
|
408
392
|
}
|
|
409
393
|
`;
|
|
410
|
-
var ModalNavigation =
|
|
394
|
+
var ModalNavigation = styled.div`
|
|
411
395
|
display: grid;
|
|
412
396
|
grid-auto-flow: column;
|
|
413
397
|
width: 100%;
|
|
414
398
|
`;
|
|
415
|
-
var BackButton =
|
|
399
|
+
var BackButton = styled(UnstyledButton)`
|
|
416
400
|
${standardFocusOutline}
|
|
417
401
|
width: 24px;
|
|
418
402
|
height: 24px;
|
|
419
403
|
justify-self: flex-start;
|
|
420
404
|
`;
|
|
421
|
-
var CloseButton =
|
|
405
|
+
var CloseButton = styled(UnstyledButton)`
|
|
422
406
|
${standardFocusOutline}
|
|
423
407
|
width: 24px;
|
|
424
408
|
height: 24px;
|
|
425
409
|
justify-self: flex-end;
|
|
426
410
|
`;
|
|
427
|
-
var ModalContentInner =
|
|
411
|
+
var ModalContentInner = styled.div`
|
|
428
412
|
${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
|
|
429
413
|
${(props) => props.ghost ? "" : `${bp.sm(`
|
|
430
414
|
padding-left: 10px;
|
|
@@ -433,6 +417,5 @@ var ModalContentInner = styled2.div`
|
|
|
433
417
|
`;
|
|
434
418
|
|
|
435
419
|
export {
|
|
436
|
-
Modal
|
|
437
|
-
IconWithCircleBackground
|
|
420
|
+
Modal
|
|
438
421
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7BSME2ZU.js";
|
|
4
|
+
import {
|
|
5
|
+
Spacing
|
|
6
|
+
} from "./chunk-E5DUKMCU.js";
|
|
4
7
|
|
|
5
8
|
// src/components/Radio.tsx
|
|
6
9
|
import styled from "@emotion/styled";
|
|
@@ -37,7 +40,7 @@ var RadioContainer = styled.div`
|
|
|
37
40
|
var RadioRow = styled.label`
|
|
38
41
|
display: flex;
|
|
39
42
|
align-items: center;
|
|
40
|
-
gap: ${
|
|
43
|
+
gap: ${Spacing.px.sm};
|
|
41
44
|
`;
|
|
42
45
|
var RadioInput = styled.input``;
|
|
43
46
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toNonTypographicReactNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4X67A2CS.js";
|
|
4
4
|
import {
|
|
5
5
|
applyTypography
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
7
7
|
|
|
8
8
|
// src/components/typography/LabelStrong.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToggleContainer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BERRPJN.js";
|
|
4
4
|
import {
|
|
5
5
|
InputSubtext,
|
|
6
6
|
defaultTextInputTypography,
|
|
7
7
|
inputSpacingPx,
|
|
8
8
|
textInputPlaceholderColor,
|
|
9
9
|
textInputStyle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7RMHMFS2.js";
|
|
11
11
|
import {
|
|
12
12
|
applyTypography
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
14
14
|
import {
|
|
15
15
|
CheckboxContainer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LFD2KVAB.js";
|
|
17
17
|
import {
|
|
18
18
|
Tooltip
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZS7G6WIG.js";
|
|
20
20
|
import {
|
|
21
21
|
UnstyledButton
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JAPRGAB7.js";
|
|
23
23
|
import {
|
|
24
24
|
z
|
|
25
25
|
} from "./chunk-55OQPFLF.js";
|
|
26
26
|
import {
|
|
27
27
|
Icon,
|
|
28
28
|
IconContainer
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TNDSUTUN.js";
|
|
30
30
|
import {
|
|
31
31
|
standardBorderRadius
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CZFFMEAS.js";
|
|
33
33
|
import {
|
|
34
34
|
getFontColor
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VNQE6KEX.js";
|
|
36
36
|
import {
|
|
37
37
|
__spreadValues
|
|
38
38
|
} from "./chunk-LOPKRCGI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderTypography
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LGXMGWLV.js";
|
|
4
4
|
import {
|
|
5
5
|
isExternalLinkNode,
|
|
6
6
|
isIconNode,
|
|
@@ -8,13 +8,14 @@ import {
|
|
|
8
8
|
isNextLinkNode,
|
|
9
9
|
isTextNode,
|
|
10
10
|
toNonTypographicReactNodes
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4X67A2CS.js";
|
|
12
12
|
import {
|
|
13
13
|
__spreadProps,
|
|
14
14
|
__spreadValues
|
|
15
15
|
} from "./chunk-LOPKRCGI.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/toReactNodes.tsx
|
|
18
|
+
import { isObject } from "lodash-es";
|
|
18
19
|
import { Fragment } from "react";
|
|
19
20
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
20
21
|
function toReactNodes(toReactNodesArg) {
|
|
@@ -23,12 +24,11 @@ function toReactNodes(toReactNodesArg) {
|
|
|
23
24
|
let content;
|
|
24
25
|
if (!node) {
|
|
25
26
|
return null;
|
|
26
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
27
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
28
|
+
const props = node.typography.props || {};
|
|
27
29
|
content = /* @__PURE__ */ jsx(Fragment, { children: renderTypography(
|
|
28
30
|
node.typography.type,
|
|
29
|
-
Object.assign(
|
|
30
|
-
content: node
|
|
31
|
-
})
|
|
31
|
+
Object.assign(props, { content: node })
|
|
32
32
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
33
33
|
} else {
|
|
34
34
|
content = toNonTypographicReactNodes(node);
|
|
@@ -37,7 +37,7 @@ function toReactNodes(toReactNodesArg) {
|
|
|
37
37
|
});
|
|
38
38
|
return /* @__PURE__ */ jsx(Fragment, { children: reactNodes });
|
|
39
39
|
}
|
|
40
|
-
function setReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
40
|
+
function setReactNodesTypography(nodesArg, nodesTypographyMap, replaceExistingTypography = true) {
|
|
41
41
|
const nodes = Array.isArray(nodesArg) ? nodesArg : [nodesArg];
|
|
42
42
|
const nodesWithTypography = nodes.map((node, i) => {
|
|
43
43
|
if (isIconNode(node)) {
|
|
@@ -49,28 +49,32 @@ function setReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
|
49
49
|
typography: nodesTypographyMap.text
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
} else if (
|
|
52
|
+
} else if (!node) {
|
|
53
|
+
return node;
|
|
54
|
+
}
|
|
55
|
+
const useExistingTypography = !replaceExistingTypography && isObject(node) && "typography" in node ? node.typography : void 0;
|
|
56
|
+
if (isLinkNode(node)) {
|
|
53
57
|
if (nodesTypographyMap.link) {
|
|
54
58
|
return __spreadProps(__spreadValues({}, node), {
|
|
55
|
-
typography: nodesTypographyMap.link
|
|
59
|
+
typography: useExistingTypography || nodesTypographyMap.link
|
|
56
60
|
});
|
|
57
61
|
}
|
|
58
62
|
} else if (isExternalLinkNode(node)) {
|
|
59
63
|
if (nodesTypographyMap.externalLink) {
|
|
60
64
|
return __spreadProps(__spreadValues({}, node), {
|
|
61
|
-
typography: nodesTypographyMap.externalLink
|
|
65
|
+
typography: useExistingTypography || nodesTypographyMap.externalLink
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
68
|
} else if (isNextLinkNode(node)) {
|
|
65
69
|
if (nodesTypographyMap.nextLink) {
|
|
66
70
|
return __spreadProps(__spreadValues({}, node), {
|
|
67
|
-
typography: nodesTypographyMap.nextLink
|
|
71
|
+
typography: useExistingTypography || nodesTypographyMap.nextLink
|
|
68
72
|
});
|
|
69
73
|
}
|
|
70
74
|
} else if (isTextNode(node)) {
|
|
71
75
|
if (nodesTypographyMap.text) {
|
|
72
76
|
return __spreadProps(__spreadValues({}, node), {
|
|
73
|
-
typography: nodesTypographyMap.text
|
|
77
|
+
typography: useExistingTypography || nodesTypographyMap.text
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
}
|
|
@@ -89,9 +93,13 @@ function toReactNodesWithTypographyMap(nodesArg, nodesTypographyMap) {
|
|
|
89
93
|
const nodes = toReactNodes(nodesWithTypography);
|
|
90
94
|
return nodes;
|
|
91
95
|
}
|
|
96
|
+
function setDefaultReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
97
|
+
return setReactNodesTypography(nodesArg, nodesTypographyMap, false);
|
|
98
|
+
}
|
|
92
99
|
|
|
93
100
|
export {
|
|
94
101
|
toReactNodes,
|
|
95
102
|
setReactNodesTypography,
|
|
96
|
-
toReactNodesWithTypographyMap
|
|
103
|
+
toReactNodesWithTypographyMap,
|
|
104
|
+
setDefaultReactNodesTypography
|
|
97
105
|
};
|