@lightsparkdev/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-SGSLTG65.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-F6EVBEMN.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-J7SV67XL.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-L6S22JUU.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-AI6DCUWK.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-6H7PZJ2A.js → chunk-4X67A2CS.js} +2 -1
- package/dist/{chunk-YRYVSAWS.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-EMXTALIX.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-35WJ3PKH.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-SKXCT2FQ.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-GNVEN6UE.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-LL5YLPNM.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-GGEAODIA.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-S6AOKANU.js → chunk-7RMHMFS2.js} +4 -4
- package/dist/{chunk-CMQELZES.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-5H32AOXL.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-2JYYREVX.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-UNULJ3P6.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-W3BAJ3HT.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-HZ63YB4Y.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-7NPHOJXD.js → chunk-CZFFMEAS.js} +5 -5
- package/dist/{chunk-HRZNVE2K.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-BMSSV6NX.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-TVLELY54.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-OA3BZAST.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-KFX7US6Y.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-UBYBILLK.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-TM3C4LEG.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-6JFJDBV2.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-467PLJO3.js → chunk-JH53NBOD.js} +59 -10
- package/dist/{chunk-2XRCGW74.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-NYQLPSG3.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-CZQER3QD.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-DCFB5MJ7.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-37RRWSDE.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-HA4AQO3T.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-EV6PGQPM.js → chunk-MNMVZI7D.js} +11 -11
- package/dist/{chunk-HP4VPMN7.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-VUXU77SU.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-PNSZAJL7.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-2H7TBKII.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-DNVKN2FG.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-CHK5DOMV.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-XP3BAAUO.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-VYTN6ASZ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-KBYU4ZQ3.js → chunk-TNDSUTUN.js} +3 -3
- package/dist/{chunk-SRHSJOES.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-55M7XHBZ.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-56QJRFP2.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-A4JZESAS.js → chunk-VNQE6KEX.js} +16 -3
- package/dist/{chunk-5XZJEYHG.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-XUVCOSIE.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-ZNZAY47J.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-D73OOC3E.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-WV5AB4ZB.js → chunk-XS4MH3QA.js} +102 -85
- package/dist/{chunk-TM2NGRD2.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-CZCPVHVB.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-JOQCJPOA.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-UVGBD7XM.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-27SFWLPS.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7845 -7476
- package/dist/components/Badge.d.cts +146 -7
- package/dist/components/Badge.d.ts +146 -7
- package/dist/components/Badge.js +20 -23
- package/dist/components/Banner/Banner.cjs +55 -26
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +18 -18
- package/dist/components/Button.cjs +46 -28
- package/dist/components/Button.d.cts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +20 -20
- package/dist/components/ButtonRow.cjs +49 -31
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +22 -22
- package/dist/components/CardPage.cjs +16 -3
- package/dist/components/CardPage.js +24 -24
- package/dist/components/Checkbox.cjs +3 -3
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/CodeBlock.cjs +21 -7
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +17 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +17 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +82 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +22 -8
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +11 -11
- package/dist/components/ContentTable.cjs +17 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +21 -7
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +17 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +293 -176
- package/dist/components/Drawer.d.cts +2 -0
- package/dist/components/Drawer.d.ts +2 -0
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +21 -7
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +5 -5
- package/dist/components/FileInput.cjs +17 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +17 -4
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/IconWithCircleBackground.cjs +7349 -7338
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +62 -32
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +19 -19
- package/dist/components/LightsparkProvider.cjs +16 -3
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +17 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +297 -147
- package/dist/components/Modal.d.cts +21 -15
- package/dist/components/Modal.d.ts +21 -15
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +214 -100
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +27 -31
- package/dist/components/PageSection/PageSectionNav.cjs +50 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +22 -8
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +11 -11
- package/dist/components/Pill.cjs +17 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +16 -3
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7410 -7334
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +21 -7
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +46 -17
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +19 -19
- package/dist/components/TextIconAligner.cjs +40 -11
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +17 -17
- package/dist/components/TextInput.cjs +22 -8
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +10 -10
- package/dist/components/Toasts.cjs +66 -37
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +20 -20
- package/dist/components/Toggle.cjs +108 -97
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +20 -6
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +17 -4
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +8 -8
- package/dist/components/documentation/DocsBodyParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +6 -6
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +6 -6
- package/dist/components/documentation/DocsHeadline.cjs +16 -3
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +7 -7
- package/dist/components/documentation/Video.cjs +16 -0
- package/dist/components/documentation/Video.d.cts +7 -1
- package/dist/components/documentation/Video.d.ts +7 -1
- package/dist/components/documentation/Video.js +18 -2
- package/dist/components/documentation/index.cjs +17 -4
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +8 -8
- package/dist/components/index.cjs +8474 -8234
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +69 -70
- package/dist/components/typography/Article.cjs +103 -28
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +18 -4
- package/dist/components/typography/Body.d.cts +2 -2
- package/dist/components/typography/Body.d.ts +2 -2
- package/dist/components/typography/Body.js +6 -6
- package/dist/components/typography/BodyStrong.cjs +18 -4
- package/dist/components/typography/BodyStrong.d.cts +2 -2
- package/dist/components/typography/BodyStrong.d.ts +2 -2
- package/dist/components/typography/BodyStrong.js +6 -6
- package/dist/components/typography/Code.cjs +18 -4
- package/dist/components/typography/Code.d.cts +2 -2
- package/dist/components/typography/Code.d.ts +2 -2
- package/dist/components/typography/Code.js +6 -6
- package/dist/components/typography/Display.cjs +18 -4
- package/dist/components/typography/Display.d.cts +2 -2
- package/dist/components/typography/Display.d.ts +2 -2
- package/dist/components/typography/Display.js +6 -6
- package/dist/components/typography/Headline.cjs +18 -4
- package/dist/components/typography/Headline.d.cts +2 -2
- package/dist/components/typography/Headline.d.ts +2 -2
- package/dist/components/typography/Headline.js +6 -6
- package/dist/components/typography/Label.cjs +18 -4
- package/dist/components/typography/Label.d.cts +2 -2
- package/dist/components/typography/Label.d.ts +2 -2
- package/dist/components/typography/Label.js +6 -6
- package/dist/components/typography/LabelModerate.cjs +18 -4
- package/dist/components/typography/LabelModerate.d.cts +2 -2
- package/dist/components/typography/LabelModerate.d.ts +2 -2
- package/dist/components/typography/LabelModerate.js +6 -6
- package/dist/components/typography/LabelStrong.cjs +18 -4
- package/dist/components/typography/LabelStrong.d.cts +2 -2
- package/dist/components/typography/LabelStrong.d.ts +2 -2
- package/dist/components/typography/LabelStrong.js +6 -6
- package/dist/components/typography/Overline.cjs +18 -4
- package/dist/components/typography/Overline.d.cts +2 -2
- package/dist/components/typography/Overline.d.ts +2 -2
- package/dist/components/typography/Overline.js +6 -6
- package/dist/components/typography/Title.cjs +18 -4
- package/dist/components/typography/Title.d.cts +3 -3
- package/dist/components/typography/Title.d.ts +3 -3
- package/dist/components/typography/Title.js +6 -6
- package/dist/components/typography/index.cjs +105 -29
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +22 -23
- package/dist/components/typography/renderTypography.cjs +34 -7
- package/dist/components/typography/renderTypography.d.cts +20 -20
- package/dist/components/typography/renderTypography.d.ts +20 -20
- package/dist/components/typography/renderTypography.js +16 -16
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/common.cjs +20 -6
- package/dist/styles/common.d.cts +3 -2
- package/dist/styles/common.d.ts +3 -2
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +17 -4
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +4 -4
- package/dist/styles/global.cjs +16 -3
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +3 -3
- package/dist/styles/themes.cjs +16 -3
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +1 -1
- package/dist/styles/tokens/spacing.cjs +60 -21
- package/dist/styles/tokens/spacing.d.cts +40 -20
- package/dist/styles/tokens/spacing.d.ts +40 -20
- package/dist/styles/tokens/spacing.js +1 -1
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +4 -4
- package/dist/styles/typography.cjs +16 -3
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +2 -2
- package/dist/styles/utils.js +3 -3
- package/dist/{buttons-b7f56076.d.ts → themes-37e92940.d.ts} +91 -67
- package/dist/{buttons-e4eb84a2.d.ts → themes-832e46b2.d.ts} +91 -67
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.cjs +18 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +2 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +2 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +59 -21
- package/dist/utils/toReactNodes.d.cts +13 -9
- package/dist/utils/toReactNodes.d.ts +13 -9
- package/dist/utils/toReactNodes.js +19 -17
- package/package.json +1 -1
- package/dist/chunk-3XSQV5U4.js +0 -26
- package/dist/chunk-B2VYAIYR.js +0 -0
- package/dist/chunk-RSAYBOK5.js +0 -35
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Banner
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-QCHEDM2I.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-PNSZAJL7.js";
|
|
6
|
+
import "../../chunk-ZO35RX7V.js";
|
|
7
|
+
import "../../chunk-LGXMGWLV.js";
|
|
8
|
+
import "../../chunk-V523QTZQ.js";
|
|
9
|
+
import "../../chunk-YRZ3VNBI.js";
|
|
10
|
+
import "../../chunk-HPZVUEDJ.js";
|
|
11
|
+
import "../../chunk-7COKMITX.js";
|
|
12
|
+
import "../../chunk-DIKOS5R6.js";
|
|
13
|
+
import "../../chunk-AZOVE32P.js";
|
|
14
|
+
import "../../chunk-HVDX4OZJ.js";
|
|
15
|
+
import "../../chunk-OMY3WTAU.js";
|
|
16
|
+
import "../../chunk-OZQ5WPLN.js";
|
|
18
17
|
import "../../chunk-YMNSXZ5D.js";
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-7BSME2ZU.js";
|
|
19
|
+
import "../../chunk-4X67A2CS.js";
|
|
20
20
|
import "../../chunk-OPV246QW.js";
|
|
21
21
|
import "../../chunk-AAFUVYVP.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-OUHQXQOJ.js";
|
|
23
23
|
import "../../chunk-55OQPFLF.js";
|
|
24
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-TNDSUTUN.js";
|
|
25
25
|
import "../../chunk-EDN2QDCB.js";
|
|
26
26
|
import "../../chunk-FT62PIPN.js";
|
|
27
27
|
import "../../chunk-5ZDDVLS6.js";
|
|
@@ -136,8 +136,8 @@ 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-CZFFMEAS.js";
|
|
140
|
+
import "../../chunk-VNQE6KEX.js";
|
|
141
141
|
import "../../chunk-ENBUKLVT.js";
|
|
142
142
|
import "../../chunk-JSGRNWSB.js";
|
|
143
143
|
import "../../chunk-FO7I4E45.js";
|
|
@@ -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");
|
|
@@ -3694,6 +3694,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3694
3694
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3695
3695
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3696
3696
|
buttons: defaultButtonsTheme,
|
|
3697
|
+
badge: {
|
|
3698
|
+
bg: "c05Neutral"
|
|
3699
|
+
},
|
|
3700
|
+
inputBackground: colors.white,
|
|
3697
3701
|
loading: "LoadingSpinner"
|
|
3698
3702
|
});
|
|
3699
3703
|
var lightBaseTheme = baseTheme;
|
|
@@ -3730,7 +3734,11 @@ var darkBaseTheme = {
|
|
|
3730
3734
|
vlcNeutral: colors.gray20,
|
|
3731
3735
|
warning: colors.warning,
|
|
3732
3736
|
buttons: defaultButtonsTheme,
|
|
3733
|
-
loading: "LoadingSpinner"
|
|
3737
|
+
loading: "LoadingSpinner",
|
|
3738
|
+
inputBackground: colors.black,
|
|
3739
|
+
badge: {
|
|
3740
|
+
bg: "c15Neutral"
|
|
3741
|
+
}
|
|
3734
3742
|
};
|
|
3735
3743
|
var lightTheme = extend(lightBaseTheme, {
|
|
3736
3744
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3769,6 +3777,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3769
3777
|
secondary: colors.grayBlue43,
|
|
3770
3778
|
text: colors.grayBlue9,
|
|
3771
3779
|
link: colors.blue39,
|
|
3780
|
+
inputBackground: colors.white,
|
|
3772
3781
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3773
3782
|
main: "Manrope",
|
|
3774
3783
|
code: "Monaco"
|
|
@@ -3845,7 +3854,10 @@ var bridgeBaseSettings = {
|
|
|
3845
3854
|
defaultBorderWidth: 1
|
|
3846
3855
|
}
|
|
3847
3856
|
}
|
|
3848
|
-
})
|
|
3857
|
+
}),
|
|
3858
|
+
badge: {
|
|
3859
|
+
bg: "grayBlue94"
|
|
3860
|
+
}
|
|
3849
3861
|
};
|
|
3850
3862
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3851
3863
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3853,7 +3865,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3853
3865
|
bg: colors.gray98,
|
|
3854
3866
|
smBg: colors.gray98,
|
|
3855
3867
|
text: colors.grayBlue9,
|
|
3856
|
-
secondary: colors.grayBlue43
|
|
3868
|
+
secondary: colors.grayBlue43,
|
|
3869
|
+
inputBackground: colors.white
|
|
3857
3870
|
}));
|
|
3858
3871
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3859
3872
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -4017,11 +4030,12 @@ var overlaySurfaceBorderColor = ({
|
|
|
4017
4030
|
`;
|
|
4018
4031
|
var overlaySurface = ({
|
|
4019
4032
|
theme,
|
|
4020
|
-
important = false
|
|
4033
|
+
important = false,
|
|
4034
|
+
border = true
|
|
4021
4035
|
}) => import_react5.css`
|
|
4022
|
-
background-color: ${themeOr(
|
|
4036
|
+
background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
|
|
4023
4037
|
${important ? "!important" : ""};
|
|
4024
|
-
border: 0.5px solid ${important ? "!important" : ""}
|
|
4038
|
+
${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
|
|
4025
4039
|
${overlaySurfaceBorderColor({ theme, important })};
|
|
4026
4040
|
${themeOr(
|
|
4027
4041
|
`box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
|
|
@@ -7930,7 +7944,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7930
7944
|
${({ theme, fontColor }) => {
|
|
7931
7945
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7932
7946
|
return `
|
|
7933
|
-
|
|
7947
|
+
svg, path {
|
|
7934
7948
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7935
7949
|
|
|
7936
7950
|
/*
|
|
@@ -8104,6 +8118,9 @@ var UnstyledButton = import_styled4.default.button`
|
|
|
8104
8118
|
font-weight: inherit;
|
|
8105
8119
|
`;
|
|
8106
8120
|
|
|
8121
|
+
// src/components/typography/renderTypography.tsx
|
|
8122
|
+
var import_react24 = __toESM(require("react"), 1);
|
|
8123
|
+
|
|
8107
8124
|
// src/components/typography/Body.tsx
|
|
8108
8125
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
8109
8126
|
|
|
@@ -8168,6 +8185,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
8168
8185
|
Link,
|
|
8169
8186
|
{
|
|
8170
8187
|
to: node.to,
|
|
8188
|
+
newTab: !!node.newTab,
|
|
8171
8189
|
children: node.text
|
|
8172
8190
|
},
|
|
8173
8191
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8444,7 +8462,6 @@ var StyledTitle = import_styled14.default.span`
|
|
|
8444
8462
|
`;
|
|
8445
8463
|
|
|
8446
8464
|
// src/components/typography/renderTypography.tsx
|
|
8447
|
-
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8448
8465
|
var typographyMap = {
|
|
8449
8466
|
Display,
|
|
8450
8467
|
Headline,
|
|
@@ -8456,15 +8473,16 @@ var typographyMap = {
|
|
|
8456
8473
|
"Label Strong": LabelStrong,
|
|
8457
8474
|
Overline,
|
|
8458
8475
|
Code: Code2,
|
|
8459
|
-
"Code Strong":
|
|
8476
|
+
"Code Strong": Code2
|
|
8460
8477
|
};
|
|
8461
8478
|
var renderTypography = (type, props) => {
|
|
8462
8479
|
const TypographyComponent = typographyMap[type];
|
|
8463
|
-
|
|
8480
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8481
|
+
return import_react24.default.createElement(TypographyComponent, rest, children);
|
|
8464
8482
|
};
|
|
8465
8483
|
|
|
8466
8484
|
// src/components/Button.tsx
|
|
8467
|
-
var
|
|
8485
|
+
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8468
8486
|
var buttonKinds = [
|
|
8469
8487
|
"secondary",
|
|
8470
8488
|
"primary",
|
|
@@ -8497,7 +8515,7 @@ function getPaddingX(size, kind, isRound) {
|
|
|
8497
8515
|
function getPadding({ paddingY, kind, size, iconSide, isRound }) {
|
|
8498
8516
|
const paddingX = getPaddingX(size, kind, isRound);
|
|
8499
8517
|
const paddingForIcon = 0;
|
|
8500
|
-
return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
8518
|
+
return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
8501
8519
|
}
|
|
8502
8520
|
function resolveBackgroundColorKey(theme, kind, defaultKey) {
|
|
8503
8521
|
var _a;
|
|
@@ -8579,7 +8597,7 @@ function resolveProps(props, theme) {
|
|
|
8579
8597
|
});
|
|
8580
8598
|
}
|
|
8581
8599
|
function Button(props) {
|
|
8582
|
-
const theme = (0,
|
|
8600
|
+
const theme = (0, import_react25.useTheme)();
|
|
8583
8601
|
const {
|
|
8584
8602
|
kind,
|
|
8585
8603
|
typography,
|
|
@@ -8611,34 +8629,34 @@ function Button(props) {
|
|
|
8611
8629
|
tooltipText,
|
|
8612
8630
|
borderRadius
|
|
8613
8631
|
} = resolveProps(props, theme);
|
|
8614
|
-
const tooltipId = (0,
|
|
8632
|
+
const tooltipId = (0, import_react26.useRef)((0, import_lodash_es4.uniqueId)());
|
|
8615
8633
|
const iconSize = size === "ExtraSmall" ? 12 : 16;
|
|
8616
8634
|
let currentIcon = null;
|
|
8617
8635
|
if (loading) {
|
|
8618
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8636
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8619
8637
|
ButtonIcon,
|
|
8620
8638
|
{
|
|
8621
8639
|
iconSide,
|
|
8622
8640
|
text,
|
|
8623
8641
|
typography,
|
|
8624
8642
|
kind,
|
|
8625
|
-
children: /* @__PURE__ */ (0,
|
|
8643
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Loading, { size: iconSize, center: false })
|
|
8626
8644
|
}
|
|
8627
8645
|
);
|
|
8628
8646
|
} else if (icon) {
|
|
8629
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8647
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8630
8648
|
ButtonIcon,
|
|
8631
8649
|
{
|
|
8632
8650
|
iconSide,
|
|
8633
8651
|
text,
|
|
8634
8652
|
typography,
|
|
8635
8653
|
kind,
|
|
8636
|
-
children: /* @__PURE__ */ (0,
|
|
8654
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
|
|
8637
8655
|
}
|
|
8638
8656
|
);
|
|
8639
8657
|
}
|
|
8640
|
-
const content = /* @__PURE__ */ (0,
|
|
8641
|
-
/* @__PURE__ */ (0,
|
|
8658
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_react26.Fragment, { children: [
|
|
8659
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8642
8660
|
"div",
|
|
8643
8661
|
__spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
|
|
8644
8662
|
css: {
|
|
@@ -8649,7 +8667,7 @@ function Button(props) {
|
|
|
8649
8667
|
},
|
|
8650
8668
|
children: [
|
|
8651
8669
|
iconSide === "left" && currentIcon,
|
|
8652
|
-
text && /* @__PURE__ */ (0,
|
|
8670
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8653
8671
|
"div",
|
|
8654
8672
|
{
|
|
8655
8673
|
css: {
|
|
@@ -8667,7 +8685,7 @@ function Button(props) {
|
|
|
8667
8685
|
]
|
|
8668
8686
|
})
|
|
8669
8687
|
),
|
|
8670
|
-
tooltipText ? /* @__PURE__ */ (0,
|
|
8688
|
+
tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
|
|
8671
8689
|
] });
|
|
8672
8690
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
8673
8691
|
const commonProps = {
|
|
@@ -8697,9 +8715,9 @@ function Button(props) {
|
|
|
8697
8715
|
zIndex
|
|
8698
8716
|
};
|
|
8699
8717
|
if (to) {
|
|
8700
|
-
return /* @__PURE__ */ (0,
|
|
8718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
|
|
8701
8719
|
}
|
|
8702
|
-
return href ? /* @__PURE__ */ (0,
|
|
8720
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8703
8721
|
ButtonHrefLink,
|
|
8704
8722
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
8705
8723
|
href,
|
|
@@ -8707,7 +8725,7 @@ function Button(props) {
|
|
|
8707
8725
|
target: "_blank",
|
|
8708
8726
|
children: content
|
|
8709
8727
|
})
|
|
8710
|
-
) : /* @__PURE__ */ (0,
|
|
8728
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
|
|
8711
8729
|
}
|
|
8712
8730
|
var buttonStyle = ({
|
|
8713
8731
|
paddingY,
|
|
@@ -8727,7 +8745,7 @@ var buttonStyle = ({
|
|
|
8727
8745
|
hoverBackgroundColor,
|
|
8728
8746
|
hoverBorderColor
|
|
8729
8747
|
}) => {
|
|
8730
|
-
return
|
|
8748
|
+
return import_react25.css`
|
|
8731
8749
|
display: inline-flex;
|
|
8732
8750
|
opacity: ${disabled && !isLoading ? 0.2 : 1};
|
|
8733
8751
|
${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-PNSZAJL7.js";
|
|
6
|
+
} from "../chunk-MNMVZI7D.js";
|
|
7
|
+
import "../chunk-DNGAINGL.js";
|
|
8
|
+
import "../chunk-LGXMGWLV.js";
|
|
9
|
+
import "../chunk-V523QTZQ.js";
|
|
10
|
+
import "../chunk-YRZ3VNBI.js";
|
|
11
|
+
import "../chunk-HPZVUEDJ.js";
|
|
12
|
+
import "../chunk-7COKMITX.js";
|
|
13
|
+
import "../chunk-DIKOS5R6.js";
|
|
14
|
+
import "../chunk-AZOVE32P.js";
|
|
15
|
+
import "../chunk-HVDX4OZJ.js";
|
|
16
|
+
import "../chunk-OMY3WTAU.js";
|
|
17
|
+
import "../chunk-OZQ5WPLN.js";
|
|
19
18
|
import "../chunk-YMNSXZ5D.js";
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-7BSME2ZU.js";
|
|
20
|
+
import "../chunk-4X67A2CS.js";
|
|
21
21
|
import "../chunk-OPV246QW.js";
|
|
22
22
|
import "../chunk-AAFUVYVP.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-OUHQXQOJ.js";
|
|
24
|
+
import "../chunk-ZS7G6WIG.js";
|
|
25
|
+
import "../chunk-JAPRGAB7.js";
|
|
26
26
|
import "../chunk-55OQPFLF.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-TNDSUTUN.js";
|
|
28
28
|
import "../chunk-EDN2QDCB.js";
|
|
29
29
|
import "../chunk-FT62PIPN.js";
|
|
30
30
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -139,8 +139,8 @@ 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-CZFFMEAS.js";
|
|
143
|
+
import "../chunk-VNQE6KEX.js";
|
|
144
144
|
import "../chunk-ENBUKLVT.js";
|
|
145
145
|
import "../chunk-JSGRNWSB.js";
|
|
146
146
|
import "../chunk-FO7I4E45.js";
|
|
@@ -3609,6 +3609,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3609
3609
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3610
3610
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3611
3611
|
buttons: defaultButtonsTheme,
|
|
3612
|
+
badge: {
|
|
3613
|
+
bg: "c05Neutral"
|
|
3614
|
+
},
|
|
3615
|
+
inputBackground: colors.white,
|
|
3612
3616
|
loading: "LoadingSpinner"
|
|
3613
3617
|
});
|
|
3614
3618
|
var lightBaseTheme = baseTheme;
|
|
@@ -3645,7 +3649,11 @@ var darkBaseTheme = {
|
|
|
3645
3649
|
vlcNeutral: colors.gray20,
|
|
3646
3650
|
warning: colors.warning,
|
|
3647
3651
|
buttons: defaultButtonsTheme,
|
|
3648
|
-
loading: "LoadingSpinner"
|
|
3652
|
+
loading: "LoadingSpinner",
|
|
3653
|
+
inputBackground: colors.black,
|
|
3654
|
+
badge: {
|
|
3655
|
+
bg: "c15Neutral"
|
|
3656
|
+
}
|
|
3649
3657
|
};
|
|
3650
3658
|
var lightTheme = extend(lightBaseTheme, {
|
|
3651
3659
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3684,6 +3692,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3684
3692
|
secondary: colors.grayBlue43,
|
|
3685
3693
|
text: colors.grayBlue9,
|
|
3686
3694
|
link: colors.blue39,
|
|
3695
|
+
inputBackground: colors.white,
|
|
3687
3696
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3688
3697
|
main: "Manrope",
|
|
3689
3698
|
code: "Monaco"
|
|
@@ -3760,7 +3769,10 @@ var bridgeBaseSettings = {
|
|
|
3760
3769
|
defaultBorderWidth: 1
|
|
3761
3770
|
}
|
|
3762
3771
|
}
|
|
3763
|
-
})
|
|
3772
|
+
}),
|
|
3773
|
+
badge: {
|
|
3774
|
+
bg: "grayBlue94"
|
|
3775
|
+
}
|
|
3764
3776
|
};
|
|
3765
3777
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3766
3778
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3768,7 +3780,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3768
3780
|
bg: colors.gray98,
|
|
3769
3781
|
smBg: colors.gray98,
|
|
3770
3782
|
text: colors.grayBlue9,
|
|
3771
|
-
secondary: colors.grayBlue43
|
|
3783
|
+
secondary: colors.grayBlue43,
|
|
3784
|
+
inputBackground: colors.white
|
|
3772
3785
|
}));
|
|
3773
3786
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3774
3787
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -3932,11 +3945,12 @@ var overlaySurfaceBorderColor = ({
|
|
|
3932
3945
|
`;
|
|
3933
3946
|
var overlaySurface = ({
|
|
3934
3947
|
theme,
|
|
3935
|
-
important = false
|
|
3948
|
+
important = false,
|
|
3949
|
+
border = true
|
|
3936
3950
|
}) => import_react4.css`
|
|
3937
|
-
background-color: ${themeOr(
|
|
3951
|
+
background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
|
|
3938
3952
|
${important ? "!important" : ""};
|
|
3939
|
-
border: 0.5px solid ${important ? "!important" : ""}
|
|
3953
|
+
${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
|
|
3940
3954
|
${overlaySurfaceBorderColor({ theme, important })};
|
|
3941
3955
|
${themeOr(
|
|
3942
3956
|
`box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
|
|
@@ -4006,10 +4020,10 @@ var overflowAutoWithoutScrollbars = import_react5.css`
|
|
|
4006
4020
|
`;
|
|
4007
4021
|
|
|
4008
4022
|
// src/components/Button.tsx
|
|
4009
|
-
var
|
|
4023
|
+
var import_react26 = require("@emotion/react");
|
|
4010
4024
|
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
4011
4025
|
var import_lodash_es4 = require("lodash-es");
|
|
4012
|
-
var
|
|
4026
|
+
var import_react27 = require("react");
|
|
4013
4027
|
|
|
4014
4028
|
// src/router.tsx
|
|
4015
4029
|
var import_lodash_es2 = require("lodash-es");
|
|
@@ -7993,7 +8007,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7993
8007
|
${({ theme, fontColor }) => {
|
|
7994
8008
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7995
8009
|
return `
|
|
7996
|
-
|
|
8010
|
+
svg, path {
|
|
7997
8011
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7998
8012
|
|
|
7999
8013
|
/*
|
|
@@ -8167,6 +8181,9 @@ var UnstyledButton = import_styled4.default.button`
|
|
|
8167
8181
|
font-weight: inherit;
|
|
8168
8182
|
`;
|
|
8169
8183
|
|
|
8184
|
+
// src/components/typography/renderTypography.tsx
|
|
8185
|
+
var import_react25 = __toESM(require("react"), 1);
|
|
8186
|
+
|
|
8170
8187
|
// src/components/typography/Body.tsx
|
|
8171
8188
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
8172
8189
|
|
|
@@ -8231,6 +8248,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
8231
8248
|
Link,
|
|
8232
8249
|
{
|
|
8233
8250
|
to: node.to,
|
|
8251
|
+
newTab: !!node.newTab,
|
|
8234
8252
|
children: node.text
|
|
8235
8253
|
},
|
|
8236
8254
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8507,7 +8525,6 @@ var StyledTitle = import_styled14.default.span`
|
|
|
8507
8525
|
`;
|
|
8508
8526
|
|
|
8509
8527
|
// src/components/typography/renderTypography.tsx
|
|
8510
|
-
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8511
8528
|
var typographyMap = {
|
|
8512
8529
|
Display,
|
|
8513
8530
|
Headline,
|
|
@@ -8519,15 +8536,16 @@ var typographyMap = {
|
|
|
8519
8536
|
"Label Strong": LabelStrong,
|
|
8520
8537
|
Overline,
|
|
8521
8538
|
Code: Code2,
|
|
8522
|
-
"Code Strong":
|
|
8539
|
+
"Code Strong": Code2
|
|
8523
8540
|
};
|
|
8524
8541
|
var renderTypography = (type, props) => {
|
|
8525
8542
|
const TypographyComponent = typographyMap[type];
|
|
8526
|
-
|
|
8543
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8544
|
+
return import_react25.default.createElement(TypographyComponent, rest, children);
|
|
8527
8545
|
};
|
|
8528
8546
|
|
|
8529
8547
|
// src/components/Button.tsx
|
|
8530
|
-
var
|
|
8548
|
+
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8531
8549
|
var roundPaddingsX = {
|
|
8532
8550
|
[TokenSize.ExtraSmall]: 10,
|
|
8533
8551
|
[TokenSize.Small]: 10,
|
|
@@ -8550,7 +8568,7 @@ function getPaddingX(size2, kind, isRound) {
|
|
|
8550
8568
|
function getPadding({ paddingY, kind, size: size2, iconSide, isRound }) {
|
|
8551
8569
|
const paddingX = getPaddingX(size2, kind, isRound);
|
|
8552
8570
|
const paddingForIcon = 0;
|
|
8553
|
-
return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
8571
|
+
return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
8554
8572
|
}
|
|
8555
8573
|
function resolveBackgroundColorKey(theme, kind, defaultKey) {
|
|
8556
8574
|
var _a;
|
|
@@ -8632,7 +8650,7 @@ function resolveProps(props, theme) {
|
|
|
8632
8650
|
});
|
|
8633
8651
|
}
|
|
8634
8652
|
function Button(props) {
|
|
8635
|
-
const theme = (0,
|
|
8653
|
+
const theme = (0, import_react26.useTheme)();
|
|
8636
8654
|
const {
|
|
8637
8655
|
kind,
|
|
8638
8656
|
typography,
|
|
@@ -8664,34 +8682,34 @@ function Button(props) {
|
|
|
8664
8682
|
tooltipText,
|
|
8665
8683
|
borderRadius
|
|
8666
8684
|
} = resolveProps(props, theme);
|
|
8667
|
-
const tooltipId = (0,
|
|
8685
|
+
const tooltipId = (0, import_react27.useRef)((0, import_lodash_es4.uniqueId)());
|
|
8668
8686
|
const iconSize = size2 === "ExtraSmall" ? 12 : 16;
|
|
8669
8687
|
let currentIcon = null;
|
|
8670
8688
|
if (loading) {
|
|
8671
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8689
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8672
8690
|
ButtonIcon,
|
|
8673
8691
|
{
|
|
8674
8692
|
iconSide,
|
|
8675
8693
|
text,
|
|
8676
8694
|
typography,
|
|
8677
8695
|
kind,
|
|
8678
|
-
children: /* @__PURE__ */ (0,
|
|
8696
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Loading, { size: iconSize, center: false })
|
|
8679
8697
|
}
|
|
8680
8698
|
);
|
|
8681
8699
|
} else if (icon) {
|
|
8682
|
-
currentIcon = /* @__PURE__ */ (0,
|
|
8700
|
+
currentIcon = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8683
8701
|
ButtonIcon,
|
|
8684
8702
|
{
|
|
8685
8703
|
iconSide,
|
|
8686
8704
|
text,
|
|
8687
8705
|
typography,
|
|
8688
8706
|
kind,
|
|
8689
|
-
children: /* @__PURE__ */ (0,
|
|
8707
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
|
|
8690
8708
|
}
|
|
8691
8709
|
);
|
|
8692
8710
|
}
|
|
8693
|
-
const content = /* @__PURE__ */ (0,
|
|
8694
|
-
/* @__PURE__ */ (0,
|
|
8711
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_react27.Fragment, { children: [
|
|
8712
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8695
8713
|
"div",
|
|
8696
8714
|
__spreadProps(__spreadValues({}, tooltipText ? { "data-tooltip-id": tooltipId.current } : {}), {
|
|
8697
8715
|
css: {
|
|
@@ -8702,7 +8720,7 @@ function Button(props) {
|
|
|
8702
8720
|
},
|
|
8703
8721
|
children: [
|
|
8704
8722
|
iconSide === "left" && currentIcon,
|
|
8705
|
-
text && /* @__PURE__ */ (0,
|
|
8723
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8706
8724
|
"div",
|
|
8707
8725
|
{
|
|
8708
8726
|
css: {
|
|
@@ -8720,7 +8738,7 @@ function Button(props) {
|
|
|
8720
8738
|
]
|
|
8721
8739
|
})
|
|
8722
8740
|
),
|
|
8723
|
-
tooltipText ? /* @__PURE__ */ (0,
|
|
8741
|
+
tooltipText ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { id: tooltipId.current, content: tooltipText }) : null
|
|
8724
8742
|
] });
|
|
8725
8743
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
8726
8744
|
const commonProps = {
|
|
@@ -8750,9 +8768,9 @@ function Button(props) {
|
|
|
8750
8768
|
zIndex
|
|
8751
8769
|
};
|
|
8752
8770
|
if (to) {
|
|
8753
|
-
return /* @__PURE__ */ (0,
|
|
8771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, hash, children: content }));
|
|
8754
8772
|
}
|
|
8755
|
-
return href ? /* @__PURE__ */ (0,
|
|
8773
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8756
8774
|
ButtonHrefLink,
|
|
8757
8775
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
8758
8776
|
href,
|
|
@@ -8760,7 +8778,7 @@ function Button(props) {
|
|
|
8760
8778
|
target: "_blank",
|
|
8761
8779
|
children: content
|
|
8762
8780
|
})
|
|
8763
|
-
) : /* @__PURE__ */ (0,
|
|
8781
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
|
|
8764
8782
|
}
|
|
8765
8783
|
var buttonStyle = ({
|
|
8766
8784
|
paddingY,
|
|
@@ -8780,7 +8798,7 @@ var buttonStyle = ({
|
|
|
8780
8798
|
hoverBackgroundColor,
|
|
8781
8799
|
hoverBorderColor
|
|
8782
8800
|
}) => {
|
|
8783
|
-
return
|
|
8801
|
+
return import_react26.css`
|
|
8784
8802
|
display: inline-flex;
|
|
8785
8803
|
opacity: ${disabled && !isLoading ? 0.2 : 1};
|
|
8786
8804
|
${disabled ? "pointer-events: none;" : ""}
|
|
@@ -8844,15 +8862,15 @@ var ButtonHrefLink = import_styled15.default.a`
|
|
|
8844
8862
|
`;
|
|
8845
8863
|
|
|
8846
8864
|
// src/components/ButtonRow.tsx
|
|
8847
|
-
var
|
|
8865
|
+
var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
|
|
8848
8866
|
function ButtonRow({
|
|
8849
8867
|
buttons,
|
|
8850
8868
|
className,
|
|
8851
8869
|
smSticky = true,
|
|
8852
8870
|
headerHeight = 0
|
|
8853
8871
|
}) {
|
|
8854
|
-
return /* @__PURE__ */ (0,
|
|
8855
|
-
(button, idx) => button === "divider" ? /* @__PURE__ */ (0,
|
|
8872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonRowContainer, { smSticky, headerHeight, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StyledButtonRow, { className, children: buttons.map(
|
|
8873
|
+
(button, idx) => button === "divider" ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ButtonRowDivider, {}, idx) : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Button, __spreadValues({}, button), idx)
|
|
8856
8874
|
) }) });
|
|
8857
8875
|
}
|
|
8858
8876
|
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';
|