@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,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Banner
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-7EAO66LB.js";
|
|
4
4
|
import "../../chunk-ZSWFGISK.js";
|
|
5
5
|
import "../../chunk-E3FGOYEJ.js";
|
|
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-
|
|
17
|
-
import "../../chunk-CRTTTIAD.js";
|
|
6
|
+
import "../../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";
|
|
18
17
|
import "../../chunk-YMNSXZ5D.js";
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-IH5SIRJL.js";
|
|
19
|
+
import "../../chunk-HNK2KIC7.js";
|
|
20
20
|
import "../../chunk-OPV246QW.js";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-SCIQSZSW.js";
|
|
22
|
+
import "../../chunk-OPUCWQMK.js";
|
|
23
23
|
import "../../chunk-55OQPFLF.js";
|
|
24
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-LAGOF7IU.js";
|
|
25
25
|
import "../../chunk-EDN2QDCB.js";
|
|
26
26
|
import "../../chunk-FT62PIPN.js";
|
|
27
27
|
import "../../chunk-5ZDDVLS6.js";
|
|
@@ -136,12 +136,12 @@ import "../../chunk-VI6WTKMV.js";
|
|
|
136
136
|
import "../../chunk-QW2INB5A.js";
|
|
137
137
|
import "../../chunk-JLD7MGLC.js";
|
|
138
138
|
import "../../chunk-DW6LFUI2.js";
|
|
139
|
-
import "../../chunk-
|
|
140
|
-
import "../../chunk-
|
|
139
|
+
import "../../chunk-YG5BANJH.js";
|
|
140
|
+
import "../../chunk-UAUAYQ3C.js";
|
|
141
141
|
import "../../chunk-ENBUKLVT.js";
|
|
142
142
|
import "../../chunk-JSGRNWSB.js";
|
|
143
143
|
import "../../chunk-FO7I4E45.js";
|
|
144
|
-
import "../../chunk-
|
|
144
|
+
import "../../chunk-KPAVY3UH.js";
|
|
145
145
|
import "../../chunk-LOPKRCGI.js";
|
|
146
146
|
export {
|
|
147
147
|
Banner
|
|
@@ -85,10 +85,10 @@ __export(Button_exports, {
|
|
|
85
85
|
buttonKinds: () => buttonKinds
|
|
86
86
|
});
|
|
87
87
|
module.exports = __toCommonJS(Button_exports);
|
|
88
|
-
var
|
|
88
|
+
var import_react25 = require("@emotion/react");
|
|
89
89
|
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
90
90
|
var import_lodash_es4 = require("lodash-es");
|
|
91
|
-
var
|
|
91
|
+
var import_react26 = require("react");
|
|
92
92
|
|
|
93
93
|
// src/router.tsx
|
|
94
94
|
var import_lodash_es = require("lodash-es");
|
|
@@ -106,7 +106,6 @@ var neutral = {
|
|
|
106
106
|
gray30: "#4D4D4D",
|
|
107
107
|
gray40: "#666666",
|
|
108
108
|
gray50: "#808080",
|
|
109
|
-
gray57: "#8B8E98",
|
|
110
109
|
gray60: "#999999",
|
|
111
110
|
gray70: "#B3B3B3",
|
|
112
111
|
gray80: "#CCCCCC",
|
|
@@ -130,10 +129,13 @@ var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
|
130
129
|
blue37: "#21529c",
|
|
131
130
|
blue58: "#28BFFF",
|
|
132
131
|
// less than 50% saturated blue
|
|
132
|
+
grayBlue5: "#0c0d0f",
|
|
133
133
|
grayBlue9: "#16171A",
|
|
134
|
+
grayBlue18: "#21283a",
|
|
134
135
|
grayBlue32: "#4F5156",
|
|
135
136
|
grayBlue43: "#686A72",
|
|
136
137
|
grayBlue45: "#676F80",
|
|
138
|
+
grayBlue57: "#8B8E98",
|
|
137
139
|
grayBlue67: "#9BA7B9",
|
|
138
140
|
grayBlue80: "#C0C9D6",
|
|
139
141
|
grayBlue88: "#DEDFE4",
|
|
@@ -3682,8 +3684,7 @@ var baseThemeColors = {
|
|
|
3682
3684
|
success: colors.success,
|
|
3683
3685
|
text: colors.black,
|
|
3684
3686
|
vlcNeutral: colors.gray95,
|
|
3685
|
-
warning: colors.warning
|
|
3686
|
-
inputBackground: colors.white
|
|
3687
|
+
warning: colors.warning
|
|
3687
3688
|
};
|
|
3688
3689
|
var themeOrColorKeyValues = [
|
|
3689
3690
|
...Object.keys(baseThemeColors),
|
|
@@ -3695,6 +3696,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3695
3696
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3696
3697
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3697
3698
|
buttons: defaultButtonsTheme,
|
|
3699
|
+
badge: {
|
|
3700
|
+
bg: "c05Neutral"
|
|
3701
|
+
},
|
|
3702
|
+
inputBackground: colors.white,
|
|
3698
3703
|
loading: "LoadingSpinner"
|
|
3699
3704
|
});
|
|
3700
3705
|
var lightBaseTheme = baseTheme;
|
|
@@ -3732,7 +3737,10 @@ var darkBaseTheme = {
|
|
|
3732
3737
|
warning: colors.warning,
|
|
3733
3738
|
buttons: defaultButtonsTheme,
|
|
3734
3739
|
loading: "LoadingSpinner",
|
|
3735
|
-
inputBackground: colors.black
|
|
3740
|
+
inputBackground: colors.black,
|
|
3741
|
+
badge: {
|
|
3742
|
+
bg: "c15Neutral"
|
|
3743
|
+
}
|
|
3736
3744
|
};
|
|
3737
3745
|
var lightTheme = extend(lightBaseTheme, {
|
|
3738
3746
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3848,7 +3856,10 @@ var bridgeBaseSettings = {
|
|
|
3848
3856
|
defaultBorderWidth: 1
|
|
3849
3857
|
}
|
|
3850
3858
|
}
|
|
3851
|
-
})
|
|
3859
|
+
}),
|
|
3860
|
+
badge: {
|
|
3861
|
+
bg: "grayBlue94"
|
|
3862
|
+
}
|
|
3852
3863
|
};
|
|
3853
3864
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3854
3865
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -8109,6 +8120,9 @@ var UnstyledButton = import_styled4.default.button`
|
|
|
8109
8120
|
font-weight: inherit;
|
|
8110
8121
|
`;
|
|
8111
8122
|
|
|
8123
|
+
// src/components/typography/renderTypography.tsx
|
|
8124
|
+
var import_react24 = __toESM(require("react"), 1);
|
|
8125
|
+
|
|
8112
8126
|
// src/components/typography/Body.tsx
|
|
8113
8127
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
8114
8128
|
|
|
@@ -8450,7 +8464,6 @@ var StyledTitle = import_styled14.default.span`
|
|
|
8450
8464
|
`;
|
|
8451
8465
|
|
|
8452
8466
|
// src/components/typography/renderTypography.tsx
|
|
8453
|
-
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8454
8467
|
var typographyMap = {
|
|
8455
8468
|
Display,
|
|
8456
8469
|
Headline,
|
|
@@ -8462,15 +8475,16 @@ var typographyMap = {
|
|
|
8462
8475
|
"Label Strong": LabelStrong,
|
|
8463
8476
|
Overline,
|
|
8464
8477
|
Code: Code2,
|
|
8465
|
-
"Code Strong":
|
|
8478
|
+
"Code Strong": Code2
|
|
8466
8479
|
};
|
|
8467
8480
|
var renderTypography = (type, props) => {
|
|
8468
8481
|
const TypographyComponent = typographyMap[type];
|
|
8469
|
-
|
|
8482
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8483
|
+
return import_react24.default.createElement(TypographyComponent, rest, children);
|
|
8470
8484
|
};
|
|
8471
8485
|
|
|
8472
8486
|
// src/components/Button.tsx
|
|
8473
|
-
var
|
|
8487
|
+
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8474
8488
|
var buttonKinds = [
|
|
8475
8489
|
"secondary",
|
|
8476
8490
|
"primary",
|
|
@@ -8585,7 +8599,7 @@ function resolveProps(props, theme) {
|
|
|
8585
8599
|
});
|
|
8586
8600
|
}
|
|
8587
8601
|
function Button(props) {
|
|
8588
|
-
const theme = (0,
|
|
8602
|
+
const theme = (0, import_react25.useTheme)();
|
|
8589
8603
|
const {
|
|
8590
8604
|
kind,
|
|
8591
8605
|
typography,
|
|
@@ -8617,34 +8631,34 @@ function Button(props) {
|
|
|
8617
8631
|
tooltipText,
|
|
8618
8632
|
borderRadius
|
|
8619
8633
|
} = resolveProps(props, theme);
|
|
8620
|
-
const tooltipId = (0,
|
|
8634
|
+
const tooltipId = (0, import_react26.useRef)((0, import_lodash_es4.uniqueId)());
|
|
8621
8635
|
const iconSize = size === "ExtraSmall" ? 12 : 16;
|
|
8622
8636
|
let currentIcon = null;
|
|
8623
8637
|
if (loading) {
|
|
8624
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8638
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8625
8639
|
ButtonIcon,
|
|
8626
8640
|
{
|
|
8627
8641
|
iconSide,
|
|
8628
8642
|
text,
|
|
8629
8643
|
typography,
|
|
8630
8644
|
kind,
|
|
8631
|
-
children: /* @__PURE__ */ (0,
|
|
8645
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Loading, { size: iconSize, center: false })
|
|
8632
8646
|
}
|
|
8633
8647
|
);
|
|
8634
8648
|
} else if (icon) {
|
|
8635
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8649
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8636
8650
|
ButtonIcon,
|
|
8637
8651
|
{
|
|
8638
8652
|
iconSide,
|
|
8639
8653
|
text,
|
|
8640
8654
|
typography,
|
|
8641
8655
|
kind,
|
|
8642
|
-
children: /* @__PURE__ */ (0,
|
|
8656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
|
|
8643
8657
|
}
|
|
8644
8658
|
);
|
|
8645
8659
|
}
|
|
8646
|
-
const content = /* @__PURE__ */ (0,
|
|
8647
|
-
/* @__PURE__ */ (0,
|
|
8660
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_react26.Fragment, { children: [
|
|
8661
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8648
8662
|
"div",
|
|
8649
8663
|
__spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
|
|
8650
8664
|
css: {
|
|
@@ -8655,7 +8669,7 @@ function Button(props) {
|
|
|
8655
8669
|
},
|
|
8656
8670
|
children: [
|
|
8657
8671
|
iconSide === "left" && currentIcon,
|
|
8658
|
-
text && /* @__PURE__ */ (0,
|
|
8672
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8659
8673
|
"div",
|
|
8660
8674
|
{
|
|
8661
8675
|
css: {
|
|
@@ -8673,7 +8687,7 @@ function Button(props) {
|
|
|
8673
8687
|
]
|
|
8674
8688
|
})
|
|
8675
8689
|
),
|
|
8676
|
-
tooltipText ? /* @__PURE__ */ (0,
|
|
8690
|
+
tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
|
|
8677
8691
|
] });
|
|
8678
8692
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
8679
8693
|
const commonProps = {
|
|
@@ -8703,9 +8717,9 @@ function Button(props) {
|
|
|
8703
8717
|
zIndex
|
|
8704
8718
|
};
|
|
8705
8719
|
if (to) {
|
|
8706
|
-
return /* @__PURE__ */ (0,
|
|
8720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
|
|
8707
8721
|
}
|
|
8708
|
-
return href ? /* @__PURE__ */ (0,
|
|
8722
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8709
8723
|
ButtonHrefLink,
|
|
8710
8724
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
8711
8725
|
href,
|
|
@@ -8713,7 +8727,7 @@ function Button(props) {
|
|
|
8713
8727
|
target: "_blank",
|
|
8714
8728
|
children: content
|
|
8715
8729
|
})
|
|
8716
|
-
) : /* @__PURE__ */ (0,
|
|
8730
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
|
|
8717
8731
|
}
|
|
8718
8732
|
var buttonStyle = ({
|
|
8719
8733
|
paddingY,
|
|
@@ -8733,7 +8747,7 @@ var buttonStyle = ({
|
|
|
8733
8747
|
hoverBackgroundColor,
|
|
8734
8748
|
hoverBorderColor
|
|
8735
8749
|
}) => {
|
|
8736
|
-
return
|
|
8750
|
+
return import_react25.css`
|
|
8737
8751
|
display: inline-flex;
|
|
8738
8752
|
opacity: ${disabled && !isLoading ? 0.2 : 1};
|
|
8739
8753
|
${disabled ? "pointer-events: none;" : ""}
|
|
@@ -3,7 +3,7 @@ import * as react from 'react';
|
|
|
3
3
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
4
4
|
import { Theme } from '@emotion/react';
|
|
5
5
|
import { RouteParams } from '../router.cjs';
|
|
6
|
-
import { B as ButtonTypographyArgs, P as PaddingYKey, a as ButtonBorderRadius, A as AllowedButtonTypographyTypes, T as ThemeOrColorKey } from '../
|
|
6
|
+
import { B as ButtonTypographyArgs, P as PaddingYKey, a as ButtonBorderRadius, A as AllowedButtonTypographyTypes, T as ThemeOrColorKey } from '../themes-37e92940.js';
|
|
7
7
|
import { TokenSizeKey } from '../styles/tokens/typography.cjs';
|
|
8
8
|
import { IconName } from './Icon/types.cjs';
|
|
9
9
|
import 'react-router-dom';
|
|
@@ -3,7 +3,7 @@ import * as react from 'react';
|
|
|
3
3
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
4
4
|
import { Theme } from '@emotion/react';
|
|
5
5
|
import { RouteParams } from '../router.js';
|
|
6
|
-
import { B as ButtonTypographyArgs, P as PaddingYKey, a as ButtonBorderRadius, A as AllowedButtonTypographyTypes, T as ThemeOrColorKey } from '../
|
|
6
|
+
import { B as ButtonTypographyArgs, P as PaddingYKey, a as ButtonBorderRadius, A as AllowedButtonTypographyTypes, T as ThemeOrColorKey } from '../themes-832e46b2.js';
|
|
7
7
|
import { TokenSizeKey } from '../styles/tokens/typography.js';
|
|
8
8
|
import { IconName } from './Icon/types.js';
|
|
9
9
|
import 'react-router-dom';
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
ButtonSelector,
|
|
4
4
|
StyledButton,
|
|
5
5
|
buttonKinds
|
|
6
|
-
} from "../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-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-CRTTTIAD.js";
|
|
6
|
+
} from "../chunk-NK7WH3TK.js";
|
|
7
|
+
import "../chunk-SIYZ5PZT.js";
|
|
8
|
+
import "../chunk-RQLRNKOP.js";
|
|
9
|
+
import "../chunk-GGWFUEDW.js";
|
|
10
|
+
import "../chunk-XLKL3DNK.js";
|
|
11
|
+
import "../chunk-HLZNFEDV.js";
|
|
12
|
+
import "../chunk-ZR2TARGX.js";
|
|
13
|
+
import "../chunk-IXAXRBFS.js";
|
|
14
|
+
import "../chunk-4EV5IUUJ.js";
|
|
15
|
+
import "../chunk-PBLWYVQF.js";
|
|
16
|
+
import "../chunk-QON4D7N2.js";
|
|
17
|
+
import "../chunk-BNHCCR3C.js";
|
|
19
18
|
import "../chunk-YMNSXZ5D.js";
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-IH5SIRJL.js";
|
|
20
|
+
import "../chunk-HNK2KIC7.js";
|
|
21
21
|
import "../chunk-OPV246QW.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-SCIQSZSW.js";
|
|
23
|
+
import "../chunk-OPUCWQMK.js";
|
|
24
|
+
import "../chunk-H3UUVMZ3.js";
|
|
25
|
+
import "../chunk-TN5UPDZG.js";
|
|
26
26
|
import "../chunk-55OQPFLF.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-LAGOF7IU.js";
|
|
28
28
|
import "../chunk-EDN2QDCB.js";
|
|
29
29
|
import "../chunk-FT62PIPN.js";
|
|
30
30
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -139,12 +139,12 @@ import "../chunk-VI6WTKMV.js";
|
|
|
139
139
|
import "../chunk-QW2INB5A.js";
|
|
140
140
|
import "../chunk-JLD7MGLC.js";
|
|
141
141
|
import "../chunk-DW6LFUI2.js";
|
|
142
|
-
import "../chunk-
|
|
143
|
-
import "../chunk-
|
|
142
|
+
import "../chunk-YG5BANJH.js";
|
|
143
|
+
import "../chunk-UAUAYQ3C.js";
|
|
144
144
|
import "../chunk-ENBUKLVT.js";
|
|
145
145
|
import "../chunk-JSGRNWSB.js";
|
|
146
146
|
import "../chunk-FO7I4E45.js";
|
|
147
|
-
import "../chunk-
|
|
147
|
+
import "../chunk-KPAVY3UH.js";
|
|
148
148
|
import "../chunk-LOPKRCGI.js";
|
|
149
149
|
export {
|
|
150
150
|
Button,
|
|
@@ -197,7 +197,6 @@ var neutral = {
|
|
|
197
197
|
gray30: "#4D4D4D",
|
|
198
198
|
gray40: "#666666",
|
|
199
199
|
gray50: "#808080",
|
|
200
|
-
gray57: "#8B8E98",
|
|
201
200
|
gray60: "#999999",
|
|
202
201
|
gray70: "#B3B3B3",
|
|
203
202
|
gray80: "#CCCCCC",
|
|
@@ -221,10 +220,13 @@ var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
|
221
220
|
blue37: "#21529c",
|
|
222
221
|
blue58: "#28BFFF",
|
|
223
222
|
// less than 50% saturated blue
|
|
223
|
+
grayBlue5: "#0c0d0f",
|
|
224
224
|
grayBlue9: "#16171A",
|
|
225
|
+
grayBlue18: "#21283a",
|
|
225
226
|
grayBlue32: "#4F5156",
|
|
226
227
|
grayBlue43: "#686A72",
|
|
227
228
|
grayBlue45: "#676F80",
|
|
229
|
+
grayBlue57: "#8B8E98",
|
|
228
230
|
grayBlue67: "#9BA7B9",
|
|
229
231
|
grayBlue80: "#C0C9D6",
|
|
230
232
|
grayBlue88: "#DEDFE4",
|
|
@@ -3597,8 +3599,7 @@ var baseThemeColors = {
|
|
|
3597
3599
|
success: colors.success,
|
|
3598
3600
|
text: colors.black,
|
|
3599
3601
|
vlcNeutral: colors.gray95,
|
|
3600
|
-
warning: colors.warning
|
|
3601
|
-
inputBackground: colors.white
|
|
3602
|
+
warning: colors.warning
|
|
3602
3603
|
};
|
|
3603
3604
|
var themeOrColorKeyValues = [
|
|
3604
3605
|
...Object.keys(baseThemeColors),
|
|
@@ -3610,6 +3611,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3610
3611
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3611
3612
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3612
3613
|
buttons: defaultButtonsTheme,
|
|
3614
|
+
badge: {
|
|
3615
|
+
bg: "c05Neutral"
|
|
3616
|
+
},
|
|
3617
|
+
inputBackground: colors.white,
|
|
3613
3618
|
loading: "LoadingSpinner"
|
|
3614
3619
|
});
|
|
3615
3620
|
var lightBaseTheme = baseTheme;
|
|
@@ -3647,7 +3652,10 @@ var darkBaseTheme = {
|
|
|
3647
3652
|
warning: colors.warning,
|
|
3648
3653
|
buttons: defaultButtonsTheme,
|
|
3649
3654
|
loading: "LoadingSpinner",
|
|
3650
|
-
inputBackground: colors.black
|
|
3655
|
+
inputBackground: colors.black,
|
|
3656
|
+
badge: {
|
|
3657
|
+
bg: "c15Neutral"
|
|
3658
|
+
}
|
|
3651
3659
|
};
|
|
3652
3660
|
var lightTheme = extend(lightBaseTheme, {
|
|
3653
3661
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3763,7 +3771,10 @@ var bridgeBaseSettings = {
|
|
|
3763
3771
|
defaultBorderWidth: 1
|
|
3764
3772
|
}
|
|
3765
3773
|
}
|
|
3766
|
-
})
|
|
3774
|
+
}),
|
|
3775
|
+
badge: {
|
|
3776
|
+
bg: "grayBlue94"
|
|
3777
|
+
}
|
|
3767
3778
|
};
|
|
3768
3779
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3769
3780
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -4011,10 +4022,10 @@ var overflowAutoWithoutScrollbars = import_react5.css`
|
|
|
4011
4022
|
`;
|
|
4012
4023
|
|
|
4013
4024
|
// src/components/Button.tsx
|
|
4014
|
-
var
|
|
4025
|
+
var import_react26 = require("@emotion/react");
|
|
4015
4026
|
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
4016
4027
|
var import_lodash_es4 = require("lodash-es");
|
|
4017
|
-
var
|
|
4028
|
+
var import_react27 = require("react");
|
|
4018
4029
|
|
|
4019
4030
|
// src/router.tsx
|
|
4020
4031
|
var import_lodash_es2 = require("lodash-es");
|
|
@@ -8172,6 +8183,9 @@ var UnstyledButton = import_styled4.default.button`
|
|
|
8172
8183
|
font-weight: inherit;
|
|
8173
8184
|
`;
|
|
8174
8185
|
|
|
8186
|
+
// src/components/typography/renderTypography.tsx
|
|
8187
|
+
var import_react25 = __toESM(require("react"), 1);
|
|
8188
|
+
|
|
8175
8189
|
// src/components/typography/Body.tsx
|
|
8176
8190
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
8177
8191
|
|
|
@@ -8513,7 +8527,6 @@ var StyledTitle = import_styled14.default.span`
|
|
|
8513
8527
|
`;
|
|
8514
8528
|
|
|
8515
8529
|
// src/components/typography/renderTypography.tsx
|
|
8516
|
-
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8517
8530
|
var typographyMap = {
|
|
8518
8531
|
Display,
|
|
8519
8532
|
Headline,
|
|
@@ -8525,15 +8538,16 @@ var typographyMap = {
|
|
|
8525
8538
|
"Label Strong": LabelStrong,
|
|
8526
8539
|
Overline,
|
|
8527
8540
|
Code: Code2,
|
|
8528
|
-
"Code Strong":
|
|
8541
|
+
"Code Strong": Code2
|
|
8529
8542
|
};
|
|
8530
8543
|
var renderTypography = (type, props) => {
|
|
8531
8544
|
const TypographyComponent = typographyMap[type];
|
|
8532
|
-
|
|
8545
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8546
|
+
return import_react25.default.createElement(TypographyComponent, rest, children);
|
|
8533
8547
|
};
|
|
8534
8548
|
|
|
8535
8549
|
// src/components/Button.tsx
|
|
8536
|
-
var
|
|
8550
|
+
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8537
8551
|
var roundPaddingsX = {
|
|
8538
8552
|
[TokenSize.ExtraSmall]: 10,
|
|
8539
8553
|
[TokenSize.Small]: 10,
|
|
@@ -8638,7 +8652,7 @@ function resolveProps(props, theme) {
|
|
|
8638
8652
|
});
|
|
8639
8653
|
}
|
|
8640
8654
|
function Button(props) {
|
|
8641
|
-
const theme = (0,
|
|
8655
|
+
const theme = (0, import_react26.useTheme)();
|
|
8642
8656
|
const {
|
|
8643
8657
|
kind,
|
|
8644
8658
|
typography,
|
|
@@ -8670,34 +8684,34 @@ function Button(props) {
|
|
|
8670
8684
|
tooltipText,
|
|
8671
8685
|
borderRadius
|
|
8672
8686
|
} = resolveProps(props, theme);
|
|
8673
|
-
const tooltipId = (0,
|
|
8687
|
+
const tooltipId = (0, import_react27.useRef)((0, import_lodash_es4.uniqueId)());
|
|
8674
8688
|
const iconSize = size2 === "ExtraSmall" ? 12 : 16;
|
|
8675
8689
|
let currentIcon = null;
|
|
8676
8690
|
if (loading) {
|
|
8677
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8691
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8678
8692
|
ButtonIcon,
|
|
8679
8693
|
{
|
|
8680
8694
|
iconSide,
|
|
8681
8695
|
text,
|
|
8682
8696
|
typography,
|
|
8683
8697
|
kind,
|
|
8684
|
-
children: /* @__PURE__ */ (0,
|
|
8698
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Loading, { size: iconSize, center: false })
|
|
8685
8699
|
}
|
|
8686
8700
|
);
|
|
8687
8701
|
} else if (icon) {
|
|
8688
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8702
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8689
8703
|
ButtonIcon,
|
|
8690
8704
|
{
|
|
8691
8705
|
iconSide,
|
|
8692
8706
|
text,
|
|
8693
8707
|
typography,
|
|
8694
8708
|
kind,
|
|
8695
|
-
children: /* @__PURE__ */ (0,
|
|
8709
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
|
|
8696
8710
|
}
|
|
8697
8711
|
);
|
|
8698
8712
|
}
|
|
8699
|
-
const content = /* @__PURE__ */ (0,
|
|
8700
|
-
/* @__PURE__ */ (0,
|
|
8713
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_react27.Fragment, { children: [
|
|
8714
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8701
8715
|
"div",
|
|
8702
8716
|
__spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
|
|
8703
8717
|
css: {
|
|
@@ -8708,7 +8722,7 @@ function Button(props) {
|
|
|
8708
8722
|
},
|
|
8709
8723
|
children: [
|
|
8710
8724
|
iconSide === "left" && currentIcon,
|
|
8711
|
-
text && /* @__PURE__ */ (0,
|
|
8725
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8712
8726
|
"div",
|
|
8713
8727
|
{
|
|
8714
8728
|
css: {
|
|
@@ -8726,7 +8740,7 @@ function Button(props) {
|
|
|
8726
8740
|
]
|
|
8727
8741
|
})
|
|
8728
8742
|
),
|
|
8729
|
-
tooltipText ? /* @__PURE__ */ (0,
|
|
8743
|
+
tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
|
|
8730
8744
|
] });
|
|
8731
8745
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
8732
8746
|
const commonProps = {
|
|
@@ -8756,9 +8770,9 @@ function Button(props) {
|
|
|
8756
8770
|
zIndex
|
|
8757
8771
|
};
|
|
8758
8772
|
if (to) {
|
|
8759
|
-
return /* @__PURE__ */ (0,
|
|
8773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
|
|
8760
8774
|
}
|
|
8761
|
-
return href ? /* @__PURE__ */ (0,
|
|
8775
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8762
8776
|
ButtonHrefLink,
|
|
8763
8777
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
8764
8778
|
href,
|
|
@@ -8766,7 +8780,7 @@ function Button(props) {
|
|
|
8766
8780
|
target: "_blank",
|
|
8767
8781
|
children: content
|
|
8768
8782
|
})
|
|
8769
|
-
) : /* @__PURE__ */ (0,
|
|
8783
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
|
|
8770
8784
|
}
|
|
8771
8785
|
var buttonStyle = ({
|
|
8772
8786
|
paddingY,
|
|
@@ -8786,7 +8800,7 @@ var buttonStyle = ({
|
|
|
8786
8800
|
hoverBackgroundColor,
|
|
8787
8801
|
hoverBorderColor
|
|
8788
8802
|
}) => {
|
|
8789
|
-
return
|
|
8803
|
+
return import_react26.css`
|
|
8790
8804
|
display: inline-flex;
|
|
8791
8805
|
opacity: ${disabled && !isLoading ? 0.2 : 1};
|
|
8792
8806
|
${disabled ? "pointer-events: none;" : ""}
|
|
@@ -8850,15 +8864,15 @@ var ButtonHrefLink = import_styled15.default.a`
|
|
|
8850
8864
|
`;
|
|
8851
8865
|
|
|
8852
8866
|
// src/components/ButtonRow.tsx
|
|
8853
|
-
var
|
|
8867
|
+
var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
|
|
8854
8868
|
function ButtonRow({
|
|
8855
8869
|
buttons,
|
|
8856
8870
|
className,
|
|
8857
8871
|
smSticky = true,
|
|
8858
8872
|
headerHeight = 0
|
|
8859
8873
|
}) {
|
|
8860
|
-
return /* @__PURE__ */ (0,
|
|
8861
|
-
(button, idx) => button === "divider" ? /* @__PURE__ */ (0,
|
|
8874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonRowContainer, { smSticky, headerHeight, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StyledButtonRow, { className, children: buttons.map(
|
|
8875
|
+
(button, idx) => button === "divider" ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonRowDivider, {}, idx) : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Button, __spreadValues({}, button), idx)
|
|
8862
8876
|
) }) });
|
|
8863
8877
|
}
|
|
8864
8878
|
var ButtonRowContainer = import_styled16.default.div`
|
|
@@ -5,7 +5,7 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
import { ButtonProps } from './Button.cjs';
|
|
6
6
|
import '../router.cjs';
|
|
7
7
|
import 'react-router-dom';
|
|
8
|
-
import '../
|
|
8
|
+
import '../themes-37e92940.js';
|
|
9
9
|
import '../styles/tokens/typography.cjs';
|
|
10
10
|
import '@emotion/css';
|
|
11
11
|
import '../styles/colors.cjs';
|
|
@@ -5,7 +5,7 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
import { ButtonProps } from './Button.js';
|
|
6
6
|
import '../router.js';
|
|
7
7
|
import 'react-router-dom';
|
|
8
|
-
import '../
|
|
8
|
+
import '../themes-832e46b2.js';
|
|
9
9
|
import '../styles/tokens/typography.js';
|
|
10
10
|
import '@emotion/css';
|
|
11
11
|
import '../styles/colors.js';
|