@lightsparkdev/ui 1.0.1 → 1.0.2
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 +7 -0
- package/dist/{buttons-a63671c2.d.ts → buttons-b7f56076.d.ts} +33 -15
- package/dist/{buttons-38b5823f.d.ts → buttons-e4eb84a2.d.ts} +33 -15
- package/dist/{chunk-3A6TEYT3.js → chunk-27SFWLPS.js} +1 -1
- package/dist/{chunk-I5PGTS2V.js → chunk-2H7TBKII.js} +9 -9
- package/dist/{chunk-BAQMHUBZ.js → chunk-2IXAUIKR.js} +2 -2
- package/dist/{chunk-NPY3QVGG.js → chunk-2JYYREVX.js} +1 -1
- package/dist/{chunk-NEH2HFAW.js → chunk-2XRCGW74.js} +3 -3
- package/dist/{chunk-QVKXSZ63.js → chunk-35WJ3PKH.js} +2 -2
- package/dist/{chunk-NHZO42IA.js → chunk-37RRWSDE.js} +2 -2
- package/dist/{chunk-HXKKG2VQ.js → chunk-467PLJO3.js} +2 -2
- package/dist/{chunk-ACYYMZQZ.js → chunk-55M7XHBZ.js} +13 -13
- package/dist/{chunk-NMJGBK5W.js → chunk-56QJRFP2.js} +2 -2
- package/dist/{chunk-BPZ7AV7W.js → chunk-5H32AOXL.js} +1 -1
- package/dist/{chunk-TW4DU3WY.js → chunk-5XZJEYHG.js} +1 -1
- package/dist/{chunk-QBJ57KNQ.js → chunk-6H7PZJ2A.js} +2 -2
- package/dist/{chunk-HGYVPOA7.js → chunk-6JFJDBV2.js} +1 -1
- package/dist/{chunk-52POF2W4.js → chunk-7NPHOJXD.js} +2 -2
- package/dist/{chunk-GKH3ZH4N.js → chunk-7Y2G2JDF.js} +2 -2
- package/dist/{chunk-ZFDYANKZ.js → chunk-A4JZESAS.js} +14 -12
- package/dist/{chunk-4QVTXKRX.js → chunk-AAFUVYVP.js} +1 -1
- package/dist/chunk-ABSTTY5Q.js +7 -0
- package/dist/{chunk-KOD6R7U5.js → chunk-AI6DCUWK.js} +1 -1
- package/dist/{chunk-54WKLEUU.js → chunk-BMSSV6NX.js} +1 -1
- package/dist/{chunk-TKERS7F6.js → chunk-CHK5DOMV.js} +2 -2
- package/dist/{chunk-HV6SRK57.js → chunk-CMQELZES.js} +2 -2
- package/dist/{chunk-FUC2Z5QZ.js → chunk-CZCPVHVB.js} +2 -2
- package/dist/{chunk-SW6GFFIG.js → chunk-CZQER3QD.js} +1 -1
- package/dist/{chunk-CY3LZRBR.js → chunk-D73OOC3E.js} +3 -3
- package/dist/{chunk-44UNWWP3.js → chunk-DCFB5MJ7.js} +13 -13
- package/dist/{chunk-VRZRCDI4.js → chunk-DNVKN2FG.js} +5 -5
- package/dist/{chunk-E6XGSPA6.js → chunk-EMXTALIX.js} +1 -1
- package/dist/{chunk-GHIYWOAC.js → chunk-EV6PGQPM.js} +26 -40
- package/dist/{chunk-4CYGTH2J.js → chunk-F6EVBEMN.js} +2 -2
- package/dist/{chunk-GKBQAEH5.js → chunk-FO7I4E45.js} +17 -2
- package/dist/{chunk-MD7VQ24I.js → chunk-FT62PIPN.js} +119 -119
- package/dist/{chunk-5GVDRJLI.js → chunk-GGEAODIA.js} +7 -7
- package/dist/{chunk-IOWK2GBE.js → chunk-GNVEN6UE.js} +2 -2
- package/dist/{chunk-7TOLLB23.js → chunk-HA4AQO3T.js} +1 -1
- package/dist/{chunk-MGXWKJDU.js → chunk-HP4VPMN7.js} +2 -2
- package/dist/{chunk-YQP6EWZY.js → chunk-HRZNVE2K.js} +2 -2
- package/dist/{chunk-YYPRW5VJ.js → chunk-HZ63YB4Y.js} +4 -4
- package/dist/chunk-IL6J7EBZ.js +17 -0
- package/dist/{chunk-ZKJS5M5E.js → chunk-J7SV67XL.js} +1 -1
- package/dist/{chunk-HE76YUIL.js → chunk-JOQCJPOA.js} +11 -11
- package/dist/{chunk-UAFWDZRG.js → chunk-KBYU4ZQ3.js} +3 -3
- package/dist/{chunk-JXXIU52B.js → chunk-KFX7US6Y.js} +1 -1
- package/dist/{chunk-AXFZE7WZ.js → chunk-L6S22JUU.js} +4 -4
- package/dist/{chunk-C7TNFU3D.js → chunk-LL5YLPNM.js} +5 -5
- package/dist/{chunk-TSHXYNRZ.js → chunk-NYQLPSG3.js} +3 -3
- package/dist/{chunk-SBFDPMTS.js → chunk-OA3BZAST.js} +3 -3
- package/dist/{chunk-4YN25H5H.js → chunk-PNSZAJL7.js} +2 -2
- package/dist/{chunk-CB2PBQ2G.js → chunk-RSAYBOK5.js} +3 -3
- package/dist/{chunk-FEJU2K4L.js → chunk-S6AOKANU.js} +3 -3
- package/dist/{chunk-PK4E5P4Q.js → chunk-SGSLTG65.js} +3 -3
- package/dist/{chunk-3TKO2L4T.js → chunk-SKXCT2FQ.js} +2 -2
- package/dist/{chunk-QSVZXM35.js → chunk-SRHSJOES.js} +1 -1
- package/dist/{chunk-MO5PIHUX.js → chunk-TM2NGRD2.js} +1 -1
- package/dist/{chunk-POTDIFIX.js → chunk-TM3C4LEG.js} +2 -2
- package/dist/{chunk-LWYMD7X4.js → chunk-TVLELY54.js} +5 -5
- package/dist/{chunk-AHIR5UAO.js → chunk-UBYBILLK.js} +2 -2
- package/dist/{chunk-3BMKXP5E.js → chunk-UNULJ3P6.js} +5 -5
- package/dist/{chunk-VENBTZHV.js → chunk-UVGBD7XM.js} +2 -2
- package/dist/{chunk-WIFHFWAN.js → chunk-VUXU77SU.js} +1 -1
- package/dist/{chunk-UKAPI3BN.js → chunk-VYTN6ASZ.js} +2 -2
- package/dist/{chunk-UA3XC7J6.js → chunk-W3BAJ3HT.js} +11 -11
- package/dist/{chunk-2I6UL3CQ.js → chunk-WV5AB4ZB.js} +73 -41
- package/dist/{chunk-CZH4OCQY.js → chunk-XP3BAAUO.js} +2 -2
- package/dist/{chunk-RVT4NV6Z.js → chunk-XUVCOSIE.js} +2 -2
- package/dist/{chunk-KYTOF4WO.js → chunk-XUWFUTR4.js} +1 -1
- package/dist/{chunk-RHHYOFN6.js → chunk-YRYVSAWS.js} +1 -1
- package/dist/{chunk-KBL7GU4S.js → chunk-ZNZAY47J.js} +3 -3
- package/dist/components/Badge.cjs +34 -17
- package/dist/components/Badge.js +80 -80
- package/dist/components/Banner/Banner.cjs +34 -17
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +79 -79
- package/dist/components/Button.cjs +51 -48
- package/dist/components/Button.d.cts +2 -5
- package/dist/components/Button.d.ts +2 -5
- package/dist/components/Button.js +81 -81
- package/dist/components/ButtonRow.cjs +51 -48
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +83 -83
- package/dist/components/CardPage.cjs +30 -13
- package/dist/components/CardPage.js +85 -85
- package/dist/components/Checkbox.js +5 -5
- package/dist/components/CodeBlock.cjs +34 -17
- package/dist/components/CodeBlock.js +68 -68
- package/dist/components/CodeInput/CodeInput.cjs +30 -13
- package/dist/components/CodeInput/CodeInput.js +8 -8
- package/dist/components/CodeInput/SingleCodeInput.cjs +30 -13
- package/dist/components/CodeInput/SingleCodeInput.js +7 -7
- package/dist/components/Collapsible.cjs +34 -17
- package/dist/components/Collapsible.js +65 -65
- package/dist/components/CommaNumberInput.cjs +34 -17
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +71 -71
- package/dist/components/ContentTable.cjs +34 -17
- package/dist/components/ContentTable.js +64 -64
- package/dist/components/CopyToClipboardButton.cjs +34 -17
- package/dist/components/CopyToClipboardButton.js +66 -66
- package/dist/components/CurrencyAmount.cjs +34 -17
- package/dist/components/CurrencyAmount.js +64 -64
- package/dist/components/Drawer.cjs +51 -48
- package/dist/components/Drawer.js +82 -82
- package/dist/components/Dropdown.cjs +34 -17
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +66 -66
- package/dist/components/FileInput.cjs +34 -17
- package/dist/components/FileInput.js +70 -70
- package/dist/components/Flex.cjs +51 -0
- package/dist/components/Flex.d.cts +11 -0
- package/dist/components/Flex.d.ts +11 -0
- package/dist/components/Flex.js +7 -0
- package/dist/components/GradientCardHeader.js +7 -7
- package/dist/components/Icon/Icon.cjs +34 -17
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +63 -63
- package/dist/components/IconWithCircleBackground.cjs +7733 -0
- package/dist/components/IconWithCircleBackground.d.cts +8 -0
- package/dist/components/IconWithCircleBackground.d.ts +8 -0
- package/dist/components/IconWithCircleBackground.js +198 -0
- package/dist/components/InfoIconTooltip.cjs +34 -17
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +80 -80
- package/dist/components/LightsparkProvider.cjs +30 -13
- package/dist/components/LightsparkProvider.js +6 -6
- package/dist/components/Loading.cjs +34 -17
- package/dist/components/Loading.js +64 -64
- package/dist/components/Modal.cjs +124 -85
- package/dist/components/Modal.d.cts +6 -3
- package/dist/components/Modal.d.ts +6 -3
- package/dist/components/Modal.js +129 -86
- package/dist/components/PageSection/PageSection.cjs +34 -17
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +90 -90
- package/dist/components/PageSection/PageSectionNav.cjs +34 -17
- package/dist/components/PageSection/PageSectionNav.js +81 -81
- package/dist/components/PhoneInput.cjs +34 -17
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +71 -71
- package/dist/components/Pill.cjs +34 -17
- package/dist/components/Pill.js +67 -67
- package/dist/components/ProgressBar.cjs +30 -13
- package/dist/components/ProgressBar.js +5 -5
- package/dist/components/Radio.cjs +34 -17
- package/dist/components/Radio.js +80 -80
- package/dist/components/SecretContainer.cjs +34 -17
- package/dist/components/SecretContainer.js +67 -67
- package/dist/components/StatusIndicator.js +6 -6
- package/dist/components/TextButton.cjs +34 -17
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +80 -80
- package/dist/components/TextIconAligner.cjs +34 -17
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +78 -78
- package/dist/components/TextInput.cjs +34 -17
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +70 -70
- package/dist/components/Toasts.cjs +34 -17
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +81 -81
- package/dist/components/Toggle.cjs +30 -13
- package/dist/components/Toggle.js +6 -6
- package/dist/components/Tooltip.cjs +30 -13
- package/dist/components/Tooltip.js +5 -5
- package/dist/components/UnstyledButton.js +5 -5
- package/dist/components/documentation/AnchorLinkHeader.cjs +34 -17
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +69 -69
- package/dist/components/documentation/DocsBodyParagraph.cjs +30 -13
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +67 -67
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +30 -13
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +67 -67
- package/dist/components/documentation/DocsHeadline.cjs +30 -13
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +68 -68
- package/dist/components/documentation/Video.js +4 -4
- package/dist/components/documentation/index.cjs +34 -17
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +69 -69
- package/dist/components/index.cjs +241 -200
- package/dist/components/index.d.cts +3 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +138 -132
- package/dist/components/typography/Article.cjs +30 -13
- package/dist/components/typography/Article.js +74 -74
- package/dist/components/typography/Body.cjs +34 -17
- package/dist/components/typography/Body.d.cts +1 -1
- package/dist/components/typography/Body.d.ts +1 -1
- package/dist/components/typography/Body.js +67 -67
- package/dist/components/typography/BodyStrong.cjs +34 -17
- package/dist/components/typography/BodyStrong.d.cts +1 -1
- package/dist/components/typography/BodyStrong.d.ts +1 -1
- package/dist/components/typography/BodyStrong.js +67 -67
- package/dist/components/typography/Code.cjs +34 -17
- package/dist/components/typography/Code.d.cts +1 -1
- package/dist/components/typography/Code.d.ts +1 -1
- package/dist/components/typography/Code.js +67 -67
- package/dist/components/typography/Display.cjs +34 -17
- package/dist/components/typography/Display.d.cts +1 -1
- package/dist/components/typography/Display.d.ts +1 -1
- package/dist/components/typography/Display.js +67 -67
- package/dist/components/typography/Headline.cjs +34 -17
- package/dist/components/typography/Headline.d.cts +1 -1
- package/dist/components/typography/Headline.d.ts +1 -1
- package/dist/components/typography/Headline.js +67 -67
- package/dist/components/typography/Label.cjs +34 -17
- package/dist/components/typography/Label.d.cts +1 -1
- package/dist/components/typography/Label.d.ts +1 -1
- package/dist/components/typography/Label.js +67 -67
- package/dist/components/typography/LabelModerate.cjs +34 -17
- package/dist/components/typography/LabelModerate.d.cts +1 -1
- package/dist/components/typography/LabelModerate.d.ts +1 -1
- package/dist/components/typography/LabelModerate.js +67 -67
- package/dist/components/typography/LabelStrong.cjs +34 -17
- package/dist/components/typography/LabelStrong.d.cts +1 -1
- package/dist/components/typography/LabelStrong.d.ts +1 -1
- package/dist/components/typography/LabelStrong.js +67 -67
- package/dist/components/typography/Overline.cjs +34 -17
- package/dist/components/typography/Overline.d.cts +1 -1
- package/dist/components/typography/Overline.d.ts +1 -1
- package/dist/components/typography/Overline.js +67 -67
- package/dist/components/typography/Title.cjs +34 -17
- package/dist/components/typography/Title.d.cts +1 -1
- package/dist/components/typography/Title.d.ts +1 -1
- package/dist/components/typography/Title.js +67 -67
- package/dist/components/typography/index.cjs +34 -17
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +86 -86
- package/dist/components/typography/renderTypography.cjs +34 -17
- package/dist/components/typography/renderTypography.d.cts +1 -1
- package/dist/components/typography/renderTypography.d.ts +1 -1
- package/dist/components/typography/renderTypography.js +77 -77
- package/dist/hooks/useDocumentTitle.cjs +56 -0
- package/dist/hooks/useDocumentTitle.d.cts +3 -0
- package/dist/hooks/useDocumentTitle.d.ts +3 -0
- package/dist/hooks/useDocumentTitle.js +20 -0
- package/dist/hooks/useIsomorphicLayoutEffect.cjs +41 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.cts +5 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +5 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/dist/icons/ArrowUpRightCircleFill.cjs +2 -2
- package/dist/icons/ArrowUpRightCircleFill.js +1 -1
- package/dist/icons/Figma.cjs +2 -2
- package/dist/icons/Figma.js +1 -1
- package/dist/icons/index.cjs +4 -4
- package/dist/icons/index.js +121 -121
- package/dist/router.js +2 -2
- package/dist/styles/buttons.cjs +17 -2
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/buttons.js +1 -1
- package/dist/styles/colors.cjs +1 -1
- package/dist/styles/colors.d.cts +1 -1
- package/dist/styles/colors.d.ts +1 -1
- package/dist/styles/colors.js +1 -1
- package/dist/styles/common.cjs +30 -13
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +4 -4
- package/dist/styles/fields.cjs +30 -13
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +6 -6
- package/dist/styles/global.cjs +30 -13
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +5 -5
- package/dist/styles/themes.cjs +30 -13
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +3 -3
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +6 -6
- package/dist/styles/typography.cjs +30 -13
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +4 -4
- package/dist/styles/utils.js +5 -5
- package/dist/utils/toNonTypographicReactNodes.cjs +34 -17
- package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.js +65 -65
- package/dist/utils/toReactNodes.cjs +34 -17
- package/dist/utils/toReactNodes.d.cts +1 -1
- package/dist/utils/toReactNodes.d.ts +1 -1
- package/dist/utils/toReactNodes.js +78 -78
- package/package.json +1 -1
|
@@ -104,9 +104,11 @@ __export(components_exports, {
|
|
|
104
104
|
Drawer: () => Drawer,
|
|
105
105
|
Dropdown: () => Dropdown,
|
|
106
106
|
FileInput: () => FileInput,
|
|
107
|
+
Flex: () => Flex,
|
|
107
108
|
GradientCardHeader: () => GradientCardHeader,
|
|
108
109
|
Icon: () => Icon,
|
|
109
110
|
IconContainer: () => IconContainer,
|
|
111
|
+
IconWithCircleBackground: () => IconWithCircleBackground,
|
|
110
112
|
InfoIconTooltip: () => InfoIconTooltip,
|
|
111
113
|
InlineCode: () => InlineCode,
|
|
112
114
|
LightboxImage: () => LightboxImage,
|
|
@@ -597,8 +599,8 @@ function ArrowUpRightCircleFill() {
|
|
|
597
599
|
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
598
600
|
"path",
|
|
599
601
|
{
|
|
600
|
-
|
|
601
|
-
|
|
602
|
+
fillRule: "evenodd",
|
|
603
|
+
clipRule: "evenodd",
|
|
602
604
|
d: "M20 1.25C30.3553 1.25 38.75 9.64468 38.75 20C38.75 30.3553 30.3553 38.75 20 38.75C9.64468 38.75 1.25 30.3553 1.25 20C1.25 9.64468 9.64468 1.25 20 1.25ZM15.4392 12.4122C14.8869 12.4122 14.4392 12.8599 14.4392 13.4122C14.4392 13.9644 14.8869 14.4122 15.4392 14.4122H24.1736L12.7051 25.8807C12.3146 26.2713 12.3146 26.9044 12.7051 27.2949C13.0956 27.6855 13.7288 27.6855 14.1193 27.2949L25.5879 15.8263V24.5608C25.5879 25.1131 26.0356 25.5608 26.5879 25.5608C27.1402 25.5608 27.5879 25.1131 27.5879 24.5608V13.4122C27.5879 12.8599 27.1402 12.4122 26.5879 12.4122H15.4392Z",
|
|
603
605
|
fill: "black"
|
|
604
606
|
}
|
|
@@ -1499,8 +1501,8 @@ function Figma() {
|
|
|
1499
1501
|
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1500
1502
|
"path",
|
|
1501
1503
|
{
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
+
fillRule: "evenodd",
|
|
1505
|
+
clipRule: "evenodd",
|
|
1504
1506
|
d: "M8.01074 9.04831C8.01074 5.43178 10.9425 2.5 14.5591 2.5L25.7952 2.5C29.4118 2.5 32.3435 5.43178 32.3435 9.04831C32.3435 11.3383 31.1681 13.3537 29.3876 14.5242C31.1681 15.6947 32.3435 17.7102 32.3435 20.0001C32.3435 23.6167 29.4118 26.5485 25.7952 26.5485H25.653C23.9575 26.5485 22.4126 25.9041 21.2496 24.847V30.8806C21.2496 34.5453 18.2412 37.5 14.5944 37.5C10.9868 37.5 8.01074 34.5772 8.01074 30.9517C8.01074 28.6617 9.18619 26.6463 10.9666 25.476C9.18618 24.3055 8.01074 22.2901 8.01074 20.0001C8.01074 17.7102 9.1862 15.6947 10.9667 14.5242C9.18621 13.3537 8.01074 11.3383 8.01074 9.04831ZM14.5591 13.4517C12.1272 13.4517 10.1557 11.4802 10.1557 9.04831C10.1557 6.61641 12.1272 4.64497 14.5591 4.64497L19.1047 4.64497V13.4517H14.5591ZM19.1047 15.5966H14.5591C12.1272 15.5966 10.1557 17.5682 10.1557 20.0001C10.1557 22.4321 12.1272 24.4035 14.5591 24.4035H19.1047V15.5966ZM19.1047 26.5485H14.5591C12.1271 26.5485 10.1557 28.5198 10.1557 30.9517C10.1557 33.3746 12.1535 35.355 14.5944 35.355C17.0746 35.355 19.1047 33.3428 19.1047 30.8806V26.5485ZM25.7952 15.5966L25.653 15.5968C23.2211 15.5968 21.2496 17.5682 21.2496 20.0001C21.2496 22.4321 23.2211 24.4035 25.653 24.4035H25.7952C28.2271 24.4035 30.1986 22.4321 30.1986 20.0001C30.1986 17.5682 28.227 15.5967 25.7952 15.5966C25.7953 15.5966 25.7952 15.5966 25.7952 15.5966ZM25.7952 14.5242V13.4517H21.2496V4.64497H25.7952C28.2271 4.64497 30.1986 6.61641 30.1986 9.04831C30.1986 11.4802 28.2271 13.4517 25.7952 13.4517",
|
|
1505
1507
|
fill: "black"
|
|
1506
1508
|
}
|
|
@@ -4172,7 +4174,7 @@ var colors = baseColors;
|
|
|
4172
4174
|
function isColorKey(key) {
|
|
4173
4175
|
return key in colors;
|
|
4174
4176
|
}
|
|
4175
|
-
function hcNeutralFromBg(bgHex, defaultHex, altHex) {
|
|
4177
|
+
function hcNeutralFromBg(bgHex, defaultHex = colors.black, altHex = colors.white) {
|
|
4176
4178
|
const bgRGB = hexToRGB(bgHex);
|
|
4177
4179
|
const hcRGB = hexToRGB(defaultHex);
|
|
4178
4180
|
if (!bgRGB || !hcRGB)
|
|
@@ -4213,7 +4215,8 @@ var import_deepmerge = __toESM(require("deepmerge"), 1);
|
|
|
4213
4215
|
// src/styles/buttons.tsx
|
|
4214
4216
|
var buttonsThemeBase = {
|
|
4215
4217
|
defaultSize: "Small",
|
|
4216
|
-
|
|
4218
|
+
defaultTypographyType: "Body Strong",
|
|
4219
|
+
defaultColor: "text",
|
|
4217
4220
|
defaultBorderRadius: 32,
|
|
4218
4221
|
defaultBorderWidth: 1,
|
|
4219
4222
|
defaultBackgroundColor: "bg",
|
|
@@ -4237,6 +4240,7 @@ var buttonsThemeBase = {
|
|
|
4237
4240
|
var defaultButtonsTheme = __spreadProps(__spreadValues({}, buttonsThemeBase), {
|
|
4238
4241
|
kinds: {
|
|
4239
4242
|
primary: {
|
|
4243
|
+
defaultColor: "bg",
|
|
4240
4244
|
defaultBorderWidth: 0,
|
|
4241
4245
|
defaultBackgroundColor: "c9Neutral",
|
|
4242
4246
|
defaultBorderColor: "c9Neutral",
|
|
@@ -4264,7 +4268,20 @@ var defaultButtonsTheme = __spreadProps(__spreadValues({}, buttonsThemeBase), {
|
|
|
4264
4268
|
defaultHoverBorderColor: ["gray90", "gray20"]
|
|
4265
4269
|
},
|
|
4266
4270
|
blue39: {
|
|
4267
|
-
defaultBorderColor: "blue39"
|
|
4271
|
+
defaultBorderColor: "blue39",
|
|
4272
|
+
defaultColor: "gray98"
|
|
4273
|
+
},
|
|
4274
|
+
blue43: {
|
|
4275
|
+
defaultColor: "white"
|
|
4276
|
+
},
|
|
4277
|
+
green33: {
|
|
4278
|
+
defaultColor: "white"
|
|
4279
|
+
},
|
|
4280
|
+
purple55: {
|
|
4281
|
+
defaultColor: "white"
|
|
4282
|
+
},
|
|
4283
|
+
danger: {
|
|
4284
|
+
defaultColor: "white"
|
|
4268
4285
|
}
|
|
4269
4286
|
}
|
|
4270
4287
|
});
|
|
@@ -7638,28 +7655,30 @@ var bridgeBaseSettings = {
|
|
|
7638
7655
|
code: "Monaco"
|
|
7639
7656
|
}),
|
|
7640
7657
|
buttons: (0, import_deepmerge.default)(buttonsThemeBase, {
|
|
7641
|
-
|
|
7658
|
+
defaultTypographyType: "Title",
|
|
7642
7659
|
defaultSize: "Medium",
|
|
7643
7660
|
defaultBorderRadius: 8,
|
|
7644
7661
|
defaultBorderWidth: 0,
|
|
7662
|
+
defaultPaddingsY: {
|
|
7663
|
+
ExtraSmall: 14,
|
|
7664
|
+
Small: 14,
|
|
7665
|
+
Schmedium: 14,
|
|
7666
|
+
Medium: 14,
|
|
7667
|
+
Mlarge: 14,
|
|
7668
|
+
Large: 14
|
|
7669
|
+
},
|
|
7645
7670
|
kinds: {
|
|
7646
7671
|
primary: {
|
|
7672
|
+
defaultColor: "bg",
|
|
7647
7673
|
defaultBackgroundColor: "blue39",
|
|
7648
7674
|
defaultHoverBackgroundColor: "blue37"
|
|
7649
7675
|
},
|
|
7650
7676
|
ghost: {
|
|
7677
|
+
defaultColor: "secondary",
|
|
7651
7678
|
defaultBackgroundColor: "transparent",
|
|
7652
7679
|
defaultBorderWidth: 0,
|
|
7653
7680
|
defaultHoverBackgroundColor: "transparent",
|
|
7654
|
-
defaultHoverBorderColor: "transparent"
|
|
7655
|
-
defaultPaddingsY: {
|
|
7656
|
-
ExtraSmall: 0,
|
|
7657
|
-
Small: 0,
|
|
7658
|
-
Schmedium: 0,
|
|
7659
|
-
Medium: 0,
|
|
7660
|
-
Mlarge: 0,
|
|
7661
|
-
Large: 0
|
|
7662
|
-
}
|
|
7681
|
+
defaultHoverBorderColor: "transparent"
|
|
7663
7682
|
},
|
|
7664
7683
|
secondary: {
|
|
7665
7684
|
defaultBackgroundColor: "transparent",
|
|
@@ -8966,22 +8985,6 @@ var UnstyledButton = import_styled16.default.button`
|
|
|
8966
8985
|
|
|
8967
8986
|
// src/components/Button.tsx
|
|
8968
8987
|
var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
|
|
8969
|
-
function getDefaultTextColor({ kind }) {
|
|
8970
|
-
switch (kind) {
|
|
8971
|
-
case "blue43":
|
|
8972
|
-
case "green33":
|
|
8973
|
-
case "purple55":
|
|
8974
|
-
case "danger":
|
|
8975
|
-
return "white";
|
|
8976
|
-
case "blue39":
|
|
8977
|
-
return "gray98";
|
|
8978
|
-
case "primary": {
|
|
8979
|
-
return "bg";
|
|
8980
|
-
}
|
|
8981
|
-
default:
|
|
8982
|
-
return "text";
|
|
8983
|
-
}
|
|
8984
|
-
}
|
|
8985
8988
|
var roundPaddingsX = {
|
|
8986
8989
|
[TokenSize.ExtraSmall]: 10,
|
|
8987
8990
|
[TokenSize.Small]: 10,
|
|
@@ -9034,12 +9037,14 @@ function resolveProps(props, theme) {
|
|
|
9034
9037
|
kind = "secondary",
|
|
9035
9038
|
size: sizeProp,
|
|
9036
9039
|
paddingY: paddingYType = "regular",
|
|
9037
|
-
borderRadius
|
|
9040
|
+
borderRadius,
|
|
9041
|
+
typography: typographyProp
|
|
9038
9042
|
} = _a, rest = __objRest(_a, [
|
|
9039
9043
|
"kind",
|
|
9040
9044
|
"size",
|
|
9041
9045
|
"paddingY",
|
|
9042
|
-
"borderRadius"
|
|
9046
|
+
"borderRadius",
|
|
9047
|
+
"typography"
|
|
9043
9048
|
]);
|
|
9044
9049
|
const size2 = resolveProp(sizeProp, kind, "defaultSize", theme);
|
|
9045
9050
|
const defaultPaddingsY = resolveProp(null, kind, "defaultPaddingsY", theme);
|
|
@@ -9065,9 +9070,15 @@ function resolveProps(props, theme) {
|
|
|
9065
9070
|
kind,
|
|
9066
9071
|
"defaultHoverBorderColor"
|
|
9067
9072
|
);
|
|
9073
|
+
const typography = {
|
|
9074
|
+
type: (typographyProp == null ? void 0 : typographyProp.type) || resolveProp(null, kind, "defaultTypographyType", theme),
|
|
9075
|
+
color: (typographyProp == null ? void 0 : typographyProp.color) || resolveProp(null, kind, "defaultColor", theme),
|
|
9076
|
+
size: size2
|
|
9077
|
+
};
|
|
9068
9078
|
return __spreadProps(__spreadValues({}, rest), {
|
|
9069
9079
|
kind,
|
|
9070
9080
|
size: size2,
|
|
9081
|
+
typography,
|
|
9071
9082
|
paddingY: typeof defaultPaddingY === "number" ? defaultPaddingY : defaultPaddingY[paddingYType],
|
|
9072
9083
|
borderRadius: resolveProp(borderRadius, kind, "defaultBorderRadius", theme),
|
|
9073
9084
|
backgroundColor: backgroundColor2,
|
|
@@ -9111,12 +9122,6 @@ function Button(props) {
|
|
|
9111
9122
|
borderRadius
|
|
9112
9123
|
} = resolveProps(props, theme);
|
|
9113
9124
|
const tooltipId = (0, import_react29.useRef)((0, import_lodash_es5.uniqueId)());
|
|
9114
|
-
const fontColor = (typography == null ? void 0 : typography.color) || getDefaultTextColor({ kind, theme });
|
|
9115
|
-
const buttonTypography = {
|
|
9116
|
-
type: (typography == null ? void 0 : typography.type) || theme.buttons.defaultTypography,
|
|
9117
|
-
size: size2,
|
|
9118
|
-
color: fontColor
|
|
9119
|
-
};
|
|
9120
9125
|
const iconSize = size2 === "ExtraSmall" ? 12 : 16;
|
|
9121
9126
|
let currentIcon = null;
|
|
9122
9127
|
if (loading) {
|
|
@@ -9125,7 +9130,7 @@ function Button(props) {
|
|
|
9125
9130
|
{
|
|
9126
9131
|
iconSide,
|
|
9127
9132
|
text,
|
|
9128
|
-
typography
|
|
9133
|
+
typography,
|
|
9129
9134
|
kind,
|
|
9130
9135
|
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Loading, { size: iconSize, center: false })
|
|
9131
9136
|
}
|
|
@@ -9136,9 +9141,9 @@ function Button(props) {
|
|
|
9136
9141
|
{
|
|
9137
9142
|
iconSide,
|
|
9138
9143
|
text,
|
|
9139
|
-
typography
|
|
9144
|
+
typography,
|
|
9140
9145
|
kind,
|
|
9141
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Icon, { name: icon, width: iconSize, color:
|
|
9146
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Icon, { name: icon, width: iconSize, color: typography.color })
|
|
9142
9147
|
}
|
|
9143
9148
|
);
|
|
9144
9149
|
}
|
|
@@ -9161,10 +9166,10 @@ function Button(props) {
|
|
|
9161
9166
|
textOverflow: "ellipsis",
|
|
9162
9167
|
overflow: "hidden"
|
|
9163
9168
|
},
|
|
9164
|
-
children: renderTypography(
|
|
9169
|
+
children: renderTypography(typography.type, {
|
|
9165
9170
|
content: text,
|
|
9166
|
-
color:
|
|
9167
|
-
size:
|
|
9171
|
+
color: typography.color,
|
|
9172
|
+
size: size2
|
|
9168
9173
|
})
|
|
9169
9174
|
}
|
|
9170
9175
|
),
|
|
@@ -9179,7 +9184,7 @@ function Button(props) {
|
|
|
9179
9184
|
id,
|
|
9180
9185
|
kind,
|
|
9181
9186
|
type,
|
|
9182
|
-
typography
|
|
9187
|
+
typography,
|
|
9183
9188
|
onClick,
|
|
9184
9189
|
fullWidth,
|
|
9185
9190
|
iconSide,
|
|
@@ -12112,39 +12117,53 @@ var StyledFileInput = import_styled34.default.div`
|
|
|
12112
12117
|
}
|
|
12113
12118
|
`;
|
|
12114
12119
|
|
|
12120
|
+
// src/components/Flex.tsx
|
|
12121
|
+
var import_styled35 = __toESM(require("@emotion/styled"), 1);
|
|
12122
|
+
var import_jsx_runtime154 = require("@emotion/react/jsx-runtime");
|
|
12123
|
+
function Flex({ center = false, children, as = "div" }) {
|
|
12124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(StyledFlex, { center, as, children });
|
|
12125
|
+
}
|
|
12126
|
+
var StyledFlex = import_styled35.default.div`
|
|
12127
|
+
display: flex;
|
|
12128
|
+
${({ center }) => center && `
|
|
12129
|
+
justify-content: center;
|
|
12130
|
+
align-items: center;
|
|
12131
|
+
`}
|
|
12132
|
+
`;
|
|
12133
|
+
|
|
12115
12134
|
// src/components/GradientCardHeader.tsx
|
|
12116
|
-
var
|
|
12135
|
+
var import_styled37 = __toESM(require("@emotion/styled"), 1);
|
|
12117
12136
|
|
|
12118
12137
|
// src/components/StatusIndicator.tsx
|
|
12119
|
-
var
|
|
12120
|
-
var
|
|
12138
|
+
var import_styled36 = __toESM(require("@emotion/styled"), 1);
|
|
12139
|
+
var import_jsx_runtime155 = require("@emotion/react/jsx-runtime");
|
|
12121
12140
|
function StatusIndicator({
|
|
12122
12141
|
color = "success",
|
|
12123
12142
|
text,
|
|
12124
12143
|
size: size2 = 12,
|
|
12125
12144
|
fontWeight = 700
|
|
12126
12145
|
}) {
|
|
12127
|
-
return /* @__PURE__ */ (0,
|
|
12146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(StyledStatusIndicator, { color, size: size2, fontWeight, children: text });
|
|
12128
12147
|
}
|
|
12129
|
-
var StyledStatusIndicator =
|
|
12148
|
+
var StyledStatusIndicator = import_styled36.default.div`
|
|
12130
12149
|
color: ${({ theme, color }) => theme[color]};
|
|
12131
12150
|
font-size: ${({ size: size2 }) => pxToRems(size2)};
|
|
12132
12151
|
font-weight: ${({ fontWeight }) => fontWeight};
|
|
12133
12152
|
`;
|
|
12134
12153
|
|
|
12135
12154
|
// src/components/GradientCardHeader.tsx
|
|
12136
|
-
var
|
|
12155
|
+
var import_jsx_runtime156 = require("@emotion/react/jsx-runtime");
|
|
12137
12156
|
function GradientCardHeader(props) {
|
|
12138
|
-
return /* @__PURE__ */ (0,
|
|
12139
|
-
/* @__PURE__ */ (0,
|
|
12140
|
-
/* @__PURE__ */ (0,
|
|
12141
|
-
props.status && /* @__PURE__ */ (0,
|
|
12142
|
-
/* @__PURE__ */ (0,
|
|
12157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(CardHeaderWrapper, { children: [
|
|
12158
|
+
/* @__PURE__ */ (0, import_jsx_runtime156.jsx)(Gradients, {}),
|
|
12159
|
+
/* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { children: [
|
|
12160
|
+
props.status && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(StatusIndicator, __spreadValues({}, props.status)),
|
|
12161
|
+
/* @__PURE__ */ (0, import_jsx_runtime156.jsx)(CardHeaderTitle, { children: props.title })
|
|
12143
12162
|
] }),
|
|
12144
12163
|
props.children
|
|
12145
12164
|
] });
|
|
12146
12165
|
}
|
|
12147
|
-
var CardHeaderWrapper =
|
|
12166
|
+
var CardHeaderWrapper = import_styled37.default.div`
|
|
12148
12167
|
position: relative;
|
|
12149
12168
|
display: flex;
|
|
12150
12169
|
flex-direction: column;
|
|
@@ -12154,7 +12173,7 @@ var CardHeaderWrapper = import_styled36.default.div`
|
|
|
12154
12173
|
color: white;
|
|
12155
12174
|
height: 264px;
|
|
12156
12175
|
`;
|
|
12157
|
-
var CardHeaderTitle =
|
|
12176
|
+
var CardHeaderTitle = import_styled37.default.h3`
|
|
12158
12177
|
font-size: 21px;
|
|
12159
12178
|
font-weight: 800;
|
|
12160
12179
|
color: white;
|
|
@@ -12163,12 +12182,12 @@ var CardHeaderTitle = import_styled36.default.h3`
|
|
|
12163
12182
|
position: relative;
|
|
12164
12183
|
`;
|
|
12165
12184
|
var Gradients = () => {
|
|
12166
|
-
return /* @__PURE__ */ (0,
|
|
12167
|
-
/* @__PURE__ */ (0,
|
|
12168
|
-
/* @__PURE__ */ (0,
|
|
12185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0 }, children: [
|
|
12186
|
+
/* @__PURE__ */ (0, import_jsx_runtime156.jsx)(BackgroundGradients, {}),
|
|
12187
|
+
/* @__PURE__ */ (0, import_jsx_runtime156.jsx)(AccentGradients, {})
|
|
12169
12188
|
] });
|
|
12170
12189
|
};
|
|
12171
|
-
var BackgroundGradients =
|
|
12190
|
+
var BackgroundGradients = import_styled37.default.div`
|
|
12172
12191
|
&:before,
|
|
12173
12192
|
&:after {
|
|
12174
12193
|
content: "";
|
|
@@ -12203,7 +12222,7 @@ var BackgroundGradients = import_styled36.default.div`
|
|
|
12203
12222
|
);
|
|
12204
12223
|
}
|
|
12205
12224
|
`;
|
|
12206
|
-
var AccentGradients =
|
|
12225
|
+
var AccentGradients = import_styled37.default.div`
|
|
12207
12226
|
position: absolute;
|
|
12208
12227
|
top: 0;
|
|
12209
12228
|
left: 0;
|
|
@@ -12243,32 +12262,46 @@ var AccentGradients = import_styled36.default.div`
|
|
|
12243
12262
|
}
|
|
12244
12263
|
`;
|
|
12245
12264
|
|
|
12265
|
+
// src/components/IconWithCircleBackground.tsx
|
|
12266
|
+
var import_styled38 = __toESM(require("@emotion/styled"), 1);
|
|
12267
|
+
var import_jsx_runtime157 = require("@emotion/react/jsx-runtime");
|
|
12268
|
+
function IconWithCircleBackground({
|
|
12269
|
+
iconName = "WarningSign"
|
|
12270
|
+
}) {
|
|
12271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Flex, { center: true, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(StyledIconWithCircleBackground, { children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Icon, { name: iconName, width: 40, color: "grayBlue9" }) }) });
|
|
12272
|
+
}
|
|
12273
|
+
var StyledIconWithCircleBackground = import_styled38.default.div`
|
|
12274
|
+
background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
|
|
12275
|
+
border-radius: 50%;
|
|
12276
|
+
padding: 20px;
|
|
12277
|
+
`;
|
|
12278
|
+
|
|
12246
12279
|
// src/components/InfoIconTooltip.tsx
|
|
12247
12280
|
var import_react46 = require("react");
|
|
12248
|
-
var
|
|
12281
|
+
var import_jsx_runtime158 = require("@emotion/react/jsx-runtime");
|
|
12249
12282
|
function InfoIconTooltip({
|
|
12250
12283
|
id,
|
|
12251
12284
|
content,
|
|
12252
12285
|
verticalAlign = "middle"
|
|
12253
12286
|
}) {
|
|
12254
12287
|
const contentNodes = toReactNodes(content);
|
|
12255
|
-
return /* @__PURE__ */ (0,
|
|
12256
|
-
/* @__PURE__ */ (0,
|
|
12288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_react46.Fragment, { children: [
|
|
12289
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
|
|
12257
12290
|
"div",
|
|
12258
12291
|
{
|
|
12259
12292
|
"data-tooltip-id": id,
|
|
12260
12293
|
style: { display: "inline-flex", alignItems: "center", verticalAlign },
|
|
12261
|
-
children: /* @__PURE__ */ (0,
|
|
12294
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Icon, { name: "Info", width: 12, ml: 4 })
|
|
12262
12295
|
}
|
|
12263
12296
|
),
|
|
12264
|
-
/* @__PURE__ */ (0,
|
|
12297
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Tooltip, { id, render: () => contentNodes, clickable: true })
|
|
12265
12298
|
] });
|
|
12266
12299
|
}
|
|
12267
12300
|
|
|
12268
12301
|
// src/components/LightboxImage.tsx
|
|
12269
|
-
var
|
|
12302
|
+
var import_styled39 = __toESM(require("@emotion/styled"), 1);
|
|
12270
12303
|
var import_react47 = require("react");
|
|
12271
|
-
var
|
|
12304
|
+
var import_jsx_runtime159 = require("@emotion/react/jsx-runtime");
|
|
12272
12305
|
var LightboxImage = ({ children }) => {
|
|
12273
12306
|
const [isOpen, setIsOpen] = (0, import_react47.useState)(false);
|
|
12274
12307
|
const [boundingRect, setBoundingRect] = (0, import_react47.useState)({
|
|
@@ -12296,9 +12329,9 @@ var LightboxImage = ({ children }) => {
|
|
|
12296
12329
|
(0, import_react47.useEffect)(() => {
|
|
12297
12330
|
handleSetBoundingRect(imageRef);
|
|
12298
12331
|
}, [imageRef]);
|
|
12299
|
-
return /* @__PURE__ */ (0,
|
|
12300
|
-
/* @__PURE__ */ (0,
|
|
12301
|
-
/* @__PURE__ */ (0,
|
|
12332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(import_jsx_runtime159.Fragment, { children: [
|
|
12333
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(DummyImage, { isOpen, boundingRect }),
|
|
12334
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
12302
12335
|
StyledImage,
|
|
12303
12336
|
{
|
|
12304
12337
|
isOpen,
|
|
@@ -12309,13 +12342,13 @@ var LightboxImage = ({ children }) => {
|
|
|
12309
12342
|
children
|
|
12310
12343
|
}
|
|
12311
12344
|
),
|
|
12312
|
-
/* @__PURE__ */ (0,
|
|
12345
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(Lightbox, { isOpen, onClick: handleMouseUp })
|
|
12313
12346
|
] });
|
|
12314
12347
|
};
|
|
12315
|
-
var DummyImage =
|
|
12348
|
+
var DummyImage = import_styled39.default.div`
|
|
12316
12349
|
${(props) => props.isOpen ? `height: ${props.boundingRect.height}px; width: ${props.boundingRect.width}px;` : ``}
|
|
12317
12350
|
`;
|
|
12318
|
-
var StyledImage =
|
|
12351
|
+
var StyledImage = import_styled39.default.div`
|
|
12319
12352
|
display: flex;
|
|
12320
12353
|
justify-content: start;
|
|
12321
12354
|
align-items: center;
|
|
@@ -12363,7 +12396,7 @@ var StyledImage = import_styled37.default.div`
|
|
|
12363
12396
|
}
|
|
12364
12397
|
}
|
|
12365
12398
|
`;
|
|
12366
|
-
var Lightbox =
|
|
12399
|
+
var Lightbox = import_styled39.default.div`
|
|
12367
12400
|
transition: opacity 0.2s ease-out;
|
|
12368
12401
|
position: fixed;
|
|
12369
12402
|
opacity: 0;
|
|
@@ -12393,7 +12426,7 @@ var import_react48 = require("@emotion/react");
|
|
|
12393
12426
|
var import_react49 = require("react");
|
|
12394
12427
|
var import_react_tooltip2 = require("react-tooltip/dist/react-tooltip.css");
|
|
12395
12428
|
var import_fonts = require("../static/fonts.css");
|
|
12396
|
-
var
|
|
12429
|
+
var import_jsx_runtime160 = require("@emotion/react/jsx-runtime");
|
|
12397
12430
|
var globalComponentStyles = ({ theme }) => import_react48.css`
|
|
12398
12431
|
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
|
|
12399
12432
|
|
|
@@ -12512,20 +12545,20 @@ function GlobalStyles() {
|
|
|
12512
12545
|
height: 100%;
|
|
12513
12546
|
}
|
|
12514
12547
|
`;
|
|
12515
|
-
return /* @__PURE__ */ (0,
|
|
12548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(import_react48.Global, { styles: globalStyles });
|
|
12516
12549
|
}
|
|
12517
12550
|
|
|
12518
12551
|
// src/components/LightsparkProvider.tsx
|
|
12519
|
-
var
|
|
12552
|
+
var import_jsx_runtime161 = require("@emotion/react/jsx-runtime");
|
|
12520
12553
|
function LightsparkProvider({ children }) {
|
|
12521
|
-
return /* @__PURE__ */ (0,
|
|
12522
|
-
/* @__PURE__ */ (0,
|
|
12554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)(import_react50.ThemeProvider, { theme: themes.light, children: [
|
|
12555
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)(GlobalStyles, {}),
|
|
12523
12556
|
children
|
|
12524
12557
|
] });
|
|
12525
12558
|
}
|
|
12526
12559
|
|
|
12527
12560
|
// src/components/Modal.tsx
|
|
12528
|
-
var
|
|
12561
|
+
var import_styled41 = __toESM(require("@emotion/styled"), 1);
|
|
12529
12562
|
var import_react53 = __toESM(require("react"), 1);
|
|
12530
12563
|
var import_react_dom3 = __toESM(require("react-dom"), 1);
|
|
12531
12564
|
|
|
@@ -12544,9 +12577,9 @@ function useLiveRef() {
|
|
|
12544
12577
|
}
|
|
12545
12578
|
|
|
12546
12579
|
// src/components/ProgressBar.tsx
|
|
12547
|
-
var
|
|
12580
|
+
var import_styled40 = __toESM(require("@emotion/styled"), 1);
|
|
12548
12581
|
var import_react52 = require("react");
|
|
12549
|
-
var
|
|
12582
|
+
var import_jsx_runtime162 = require("@emotion/react/jsx-runtime");
|
|
12550
12583
|
var defaultProps3 = {
|
|
12551
12584
|
isSm: false,
|
|
12552
12585
|
stepDuration: 0.5
|
|
@@ -12567,7 +12600,7 @@ function ProgressBar({
|
|
|
12567
12600
|
}, 0);
|
|
12568
12601
|
}
|
|
12569
12602
|
}, [progressPercentage]);
|
|
12570
|
-
return /* @__PURE__ */ (0,
|
|
12603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(ProgressBarContainer, { isSm, children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Bar, { isSm, percentage, stepDuration, children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
12571
12604
|
BarBg,
|
|
12572
12605
|
{
|
|
12573
12606
|
background,
|
|
@@ -12578,7 +12611,7 @@ function ProgressBar({
|
|
|
12578
12611
|
) }) });
|
|
12579
12612
|
}
|
|
12580
12613
|
ProgressBar.defaultProps = defaultProps3;
|
|
12581
|
-
var ProgressBarContainer =
|
|
12614
|
+
var ProgressBarContainer = import_styled40.default.div`
|
|
12582
12615
|
${standardBorderRadius(16)}
|
|
12583
12616
|
background-color: ${({ theme }) => themeOr(theme.c05Neutral, theme.c1Neutral)({ theme })};
|
|
12584
12617
|
box-sizing: border-box;
|
|
@@ -12588,7 +12621,7 @@ var ProgressBarContainer = import_styled38.default.div`
|
|
|
12588
12621
|
width: 100%;
|
|
12589
12622
|
position: relative;
|
|
12590
12623
|
`;
|
|
12591
|
-
var BarBg =
|
|
12624
|
+
var BarBg = import_styled40.default.div`
|
|
12592
12625
|
${standardBorderRadius(16)}
|
|
12593
12626
|
width: ${({ percentage }) => 100 / percentage * 100}%;
|
|
12594
12627
|
height: 100%;
|
|
@@ -12602,7 +12635,7 @@ var BarBg = import_styled38.default.div`
|
|
|
12602
12635
|
#3f2e7e 115.32%
|
|
12603
12636
|
)`};
|
|
12604
12637
|
`;
|
|
12605
|
-
var Bar =
|
|
12638
|
+
var Bar = import_styled40.default.div`
|
|
12606
12639
|
${standardBorderRadius(16)}
|
|
12607
12640
|
overflow: hidden;
|
|
12608
12641
|
box-sizing: border-box;
|
|
@@ -12614,12 +12647,13 @@ var Bar = import_styled38.default.div`
|
|
|
12614
12647
|
`;
|
|
12615
12648
|
|
|
12616
12649
|
// src/components/Modal.tsx
|
|
12617
|
-
var
|
|
12650
|
+
var import_jsx_runtime163 = require("@emotion/react/jsx-runtime");
|
|
12618
12651
|
function isSubmitLinkWithHref(submitLink) {
|
|
12619
12652
|
return Boolean(submitLink && "href" in submitLink);
|
|
12620
12653
|
}
|
|
12621
12654
|
function Modal({
|
|
12622
12655
|
visible,
|
|
12656
|
+
topContent,
|
|
12623
12657
|
title,
|
|
12624
12658
|
description,
|
|
12625
12659
|
children,
|
|
@@ -12741,9 +12775,9 @@ function Modal({
|
|
|
12741
12775
|
}
|
|
12742
12776
|
const linkIsHref = isSubmitLinkWithHref(submitLink);
|
|
12743
12777
|
const linkIsRoute = !linkIsHref && submitLink;
|
|
12744
|
-
const buttonContent = /* @__PURE__ */ (0,
|
|
12778
|
+
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(import_jsx_runtime163.Fragment, { children: [
|
|
12745
12779
|
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((action) => action.content),
|
|
12746
|
-
!isSm && !cancelHidden && /* @__PURE__ */ (0,
|
|
12780
|
+
!isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
|
|
12747
12781
|
Button,
|
|
12748
12782
|
{
|
|
12749
12783
|
disabled: cancelDisabled,
|
|
@@ -12751,7 +12785,7 @@ function Modal({
|
|
|
12751
12785
|
text: cancelText
|
|
12752
12786
|
}
|
|
12753
12787
|
),
|
|
12754
|
-
onSubmit && /* @__PURE__ */ (0,
|
|
12788
|
+
(onSubmit || submitLink) && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
|
|
12755
12789
|
Button,
|
|
12756
12790
|
{
|
|
12757
12791
|
kind: "primary",
|
|
@@ -12765,13 +12799,13 @@ function Modal({
|
|
|
12765
12799
|
onClick: submitLink ? onSubmit : void 0
|
|
12766
12800
|
}
|
|
12767
12801
|
),
|
|
12768
|
-
isSm && !cancelHidden && /* @__PURE__ */ (0,
|
|
12802
|
+
isSm && !cancelHidden && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Button, { onClick: onClose, text: cancelText }),
|
|
12769
12803
|
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((action) => action.content)
|
|
12770
12804
|
] });
|
|
12771
12805
|
let titleContent = null;
|
|
12772
12806
|
if (title) {
|
|
12773
12807
|
if (typeof title === "string") {
|
|
12774
|
-
titleContent = /* @__PURE__ */ (0,
|
|
12808
|
+
titleContent = /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Headline, { heading: "h4", size: TokenSize.Small, children: title });
|
|
12775
12809
|
} else {
|
|
12776
12810
|
titleContent = toReactNodes(title);
|
|
12777
12811
|
}
|
|
@@ -12779,31 +12813,36 @@ function Modal({
|
|
|
12779
12813
|
let descriptionContent = null;
|
|
12780
12814
|
if (description) {
|
|
12781
12815
|
if (typeof description === "string") {
|
|
12782
|
-
descriptionContent = /* @__PURE__ */ (0,
|
|
12816
|
+
descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Body, { size: "ExtraSmall", content: description }) });
|
|
12783
12817
|
} else {
|
|
12784
|
-
descriptionContent = /* @__PURE__ */ (0,
|
|
12818
|
+
descriptionContent = /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Description, { children: toReactNodes(description) });
|
|
12785
12819
|
}
|
|
12786
12820
|
}
|
|
12787
|
-
|
|
12788
|
-
|
|
12821
|
+
let topContentNode = null;
|
|
12822
|
+
if (topContent) {
|
|
12823
|
+
topContentNode = /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { css: { marginBottom: "32px" /* xl */ }, children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(IconWithCircleBackground, __spreadValues({}, topContent)) });
|
|
12824
|
+
}
|
|
12825
|
+
const modalContent = /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(import_react53.Fragment, { children: [
|
|
12826
|
+
progressBar ? /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
|
|
12789
12827
|
ProgressBar,
|
|
12790
12828
|
{
|
|
12791
12829
|
progressPercentage: progressBar.progressPercentage,
|
|
12792
12830
|
isSm: progressBar.isSm
|
|
12793
12831
|
}
|
|
12794
12832
|
) }) : null,
|
|
12833
|
+
topContentNode,
|
|
12795
12834
|
titleContent,
|
|
12796
12835
|
descriptionContent,
|
|
12797
12836
|
children,
|
|
12798
|
-
onSubmit || onCancel ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0,
|
|
12837
|
+
onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ModalButtonColumn, { children: buttonContent }) : null
|
|
12799
12838
|
] });
|
|
12800
12839
|
let content;
|
|
12801
12840
|
if (smDrawer && isSm) {
|
|
12802
|
-
content = /* @__PURE__ */ (0,
|
|
12841
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Drawer, { onClose: () => onClickCloseButton(), closeButton: true, children: modalContent });
|
|
12803
12842
|
} else {
|
|
12804
|
-
content = /* @__PURE__ */ (0,
|
|
12805
|
-
/* @__PURE__ */ (0,
|
|
12806
|
-
/* @__PURE__ */ (0,
|
|
12843
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(import_react53.Fragment, { children: [
|
|
12844
|
+
/* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ModalOverlay, { ref: overlayRef }),
|
|
12845
|
+
/* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
|
|
12807
12846
|
ModalContainer,
|
|
12808
12847
|
{
|
|
12809
12848
|
"aria-modal": true,
|
|
@@ -12811,27 +12850,27 @@ function Modal({
|
|
|
12811
12850
|
tabIndex: -1,
|
|
12812
12851
|
role: "dialog",
|
|
12813
12852
|
ref: modalContainerRef,
|
|
12814
|
-
children: /* @__PURE__ */ (0,
|
|
12815
|
-
!firstFocusRef && /* @__PURE__ */ (0,
|
|
12816
|
-
!(nonDismissable || ghost) && /* @__PURE__ */ (0,
|
|
12817
|
-
/* @__PURE__ */ (0,
|
|
12853
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(ModalContent, { width: width3, ghost, children: [
|
|
12854
|
+
!firstFocusRef && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
|
|
12855
|
+
!(nonDismissable || ghost) && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(CloseButtonContainer2, { children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Icon, { name: "Close", width: 9 }) }) }),
|
|
12856
|
+
/* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ModalContentInner, { ghost, children: modalContent })
|
|
12818
12857
|
] })
|
|
12819
12858
|
}
|
|
12820
12859
|
)
|
|
12821
12860
|
] });
|
|
12822
12861
|
}
|
|
12823
12862
|
return visible && nodeReady && nodeRef.current ? import_react_dom3.default.createPortal(
|
|
12824
|
-
onSubmit ? /* @__PURE__ */ (0,
|
|
12863
|
+
onSubmit ? /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("form", { onSubmit: onSubmitForm, children: content }) : content,
|
|
12825
12864
|
nodeRef.current
|
|
12826
12865
|
) : null;
|
|
12827
12866
|
}
|
|
12828
|
-
var DefaultFocusTarget = (0,
|
|
12867
|
+
var DefaultFocusTarget = (0, import_styled41.default)(UnstyledButton)`
|
|
12829
12868
|
position: absolute;
|
|
12830
12869
|
top: -30px;
|
|
12831
12870
|
width: 0;
|
|
12832
12871
|
height: 0;
|
|
12833
12872
|
`;
|
|
12834
|
-
var ModalOverlay =
|
|
12873
|
+
var ModalOverlay = import_styled41.default.div`
|
|
12835
12874
|
position: fixed;
|
|
12836
12875
|
bottom: 0;
|
|
12837
12876
|
left: 0;
|
|
@@ -12840,7 +12879,7 @@ var ModalOverlay = import_styled39.default.div`
|
|
|
12840
12879
|
height: 100vh;
|
|
12841
12880
|
background: rgba(0, 0, 0, 0.5);
|
|
12842
12881
|
`;
|
|
12843
|
-
var ModalContainer =
|
|
12882
|
+
var ModalContainer = import_styled41.default.div`
|
|
12844
12883
|
pointer-events: none;
|
|
12845
12884
|
position: fixed;
|
|
12846
12885
|
top: 0;
|
|
@@ -12858,14 +12897,14 @@ var ModalContainer = import_styled39.default.div`
|
|
|
12858
12897
|
padding-top: ${standardContentInset.smPx}px;
|
|
12859
12898
|
`;
|
|
12860
12899
|
var contentTopMarginPx = 24;
|
|
12861
|
-
var Description =
|
|
12900
|
+
var Description = import_styled41.default.div`
|
|
12862
12901
|
color: ${({ theme }) => theme.mcNeutral};
|
|
12863
12902
|
margin-top: ${"12px" /* sm */};
|
|
12864
12903
|
& + * {
|
|
12865
12904
|
margin-top: ${contentTopMarginPx}px;
|
|
12866
12905
|
}
|
|
12867
12906
|
`;
|
|
12868
|
-
var ModalButtonRow =
|
|
12907
|
+
var ModalButtonRow = import_styled41.default.div`
|
|
12869
12908
|
margin-top: ${"24px" /* lg */};
|
|
12870
12909
|
${bp.minSm(`display: flex;`)}
|
|
12871
12910
|
gap: 10px;
|
|
@@ -12877,7 +12916,7 @@ var ModalButtonRow = import_styled39.default.div`
|
|
|
12877
12916
|
`)}
|
|
12878
12917
|
}
|
|
12879
12918
|
`;
|
|
12880
|
-
var ModalButtonColumn =
|
|
12919
|
+
var ModalButtonColumn = import_styled41.default.div`
|
|
12881
12920
|
display: flex;
|
|
12882
12921
|
flex-direction: column;
|
|
12883
12922
|
gap: ${"12px" /* sm */};
|
|
@@ -12888,7 +12927,7 @@ var ModalButtonColumn = import_styled39.default.div`
|
|
|
12888
12927
|
|
|
12889
12928
|
margin-top: ${"24px" /* lg */};
|
|
12890
12929
|
`;
|
|
12891
|
-
var ModalContent =
|
|
12930
|
+
var ModalContent = import_styled41.default.div`
|
|
12892
12931
|
${overflowAutoWithoutScrollbars}
|
|
12893
12932
|
${standardContentInset.smCSS}
|
|
12894
12933
|
${(props) => props.ghost ? "" : standardBorderRadius(16)}
|
|
@@ -12908,18 +12947,18 @@ var ModalContent = import_styled39.default.div`
|
|
|
12908
12947
|
}
|
|
12909
12948
|
}
|
|
12910
12949
|
`;
|
|
12911
|
-
var CloseButtonContainer2 =
|
|
12950
|
+
var CloseButtonContainer2 = import_styled41.default.div`
|
|
12912
12951
|
display: flex;
|
|
12913
12952
|
flex-direction: row;
|
|
12914
12953
|
width: 100%;
|
|
12915
12954
|
justify-content: flex-end;
|
|
12916
12955
|
`;
|
|
12917
|
-
var CloseButton = (0,
|
|
12956
|
+
var CloseButton = (0, import_styled41.default)(UnstyledButton)`
|
|
12918
12957
|
${standardFocusOutline}
|
|
12919
12958
|
width: 24px;
|
|
12920
12959
|
height: 24px;
|
|
12921
12960
|
`;
|
|
12922
|
-
var ModalContentInner =
|
|
12961
|
+
var ModalContentInner = import_styled41.default.div`
|
|
12923
12962
|
${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
|
|
12924
12963
|
${(props) => props.ghost ? "" : `${bp.sm(`
|
|
12925
12964
|
padding-left: 10px;
|
|
@@ -12929,15 +12968,15 @@ var ModalContentInner = import_styled39.default.div`
|
|
|
12929
12968
|
|
|
12930
12969
|
// src/components/PageSection/PageSection.tsx
|
|
12931
12970
|
var import_react55 = require("@emotion/react");
|
|
12932
|
-
var
|
|
12971
|
+
var import_styled43 = __toESM(require("@emotion/styled"), 1);
|
|
12933
12972
|
var import_react56 = require("react");
|
|
12934
12973
|
|
|
12935
12974
|
// src/components/TextButton.tsx
|
|
12936
12975
|
var import_react54 = require("@emotion/react");
|
|
12937
|
-
var
|
|
12976
|
+
var import_styled42 = __toESM(require("@emotion/styled"), 1);
|
|
12938
12977
|
|
|
12939
12978
|
// src/components/TextIconAligner.tsx
|
|
12940
|
-
var
|
|
12979
|
+
var import_jsx_runtime164 = require("@emotion/react/jsx-runtime");
|
|
12941
12980
|
function TextIconAligner({
|
|
12942
12981
|
content,
|
|
12943
12982
|
typography,
|
|
@@ -12950,7 +12989,7 @@ function TextIconAligner({
|
|
|
12950
12989
|
size: (typography == null ? void 0 : typography.size) || "Small",
|
|
12951
12990
|
color: (typography == null ? void 0 : typography.color) || "inherit"
|
|
12952
12991
|
});
|
|
12953
|
-
const leftIconNode = leftIcon ? /* @__PURE__ */ (0,
|
|
12992
|
+
const leftIconNode = leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
|
|
12954
12993
|
Icon,
|
|
12955
12994
|
{
|
|
12956
12995
|
name: leftIcon.name,
|
|
@@ -12959,7 +12998,7 @@ function TextIconAligner({
|
|
|
12959
12998
|
color: leftIcon.color
|
|
12960
12999
|
}
|
|
12961
13000
|
) : null;
|
|
12962
|
-
const rightIconNode = rightIcon ? /* @__PURE__ */ (0,
|
|
13001
|
+
const rightIconNode = rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
|
|
12963
13002
|
Icon,
|
|
12964
13003
|
{
|
|
12965
13004
|
name: rightIcon.name,
|
|
@@ -12968,7 +13007,7 @@ function TextIconAligner({
|
|
|
12968
13007
|
color: rightIcon.color
|
|
12969
13008
|
}
|
|
12970
13009
|
) : null;
|
|
12971
|
-
return /* @__PURE__ */ (0,
|
|
13010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(
|
|
12972
13011
|
"span",
|
|
12973
13012
|
{
|
|
12974
13013
|
css: {
|
|
@@ -12987,7 +13026,7 @@ function TextIconAligner({
|
|
|
12987
13026
|
}
|
|
12988
13027
|
|
|
12989
13028
|
// src/components/TextButton.tsx
|
|
12990
|
-
var
|
|
13029
|
+
var import_jsx_runtime165 = require("@emotion/react/jsx-runtime");
|
|
12991
13030
|
function TextButton({
|
|
12992
13031
|
text: textProp,
|
|
12993
13032
|
to,
|
|
@@ -13013,7 +13052,7 @@ function TextButton({
|
|
|
13013
13052
|
};
|
|
13014
13053
|
}
|
|
13015
13054
|
const defaultIconColor = iconMatchTextColor ? void 0 : "mcNeutral";
|
|
13016
|
-
const content = /* @__PURE__ */ (0,
|
|
13055
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
13017
13056
|
TextIconAligner,
|
|
13018
13057
|
{
|
|
13019
13058
|
onClick,
|
|
@@ -13043,9 +13082,9 @@ function TextButton({
|
|
|
13043
13082
|
}
|
|
13044
13083
|
};
|
|
13045
13084
|
if (to) {
|
|
13046
|
-
return /* @__PURE__ */ (0,
|
|
13085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(ButtonLink2, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, children: content }));
|
|
13047
13086
|
}
|
|
13048
|
-
return href ? /* @__PURE__ */ (0,
|
|
13087
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(ButtonHrefLink2, __spreadProps(__spreadValues({}, commonProps), { href, target: "_blank", children: content })) : /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(StyledButton2, __spreadProps(__spreadValues({}, commonProps), { children: content }));
|
|
13049
13088
|
}
|
|
13050
13089
|
var buttonStyle2 = ({
|
|
13051
13090
|
theme,
|
|
@@ -13069,13 +13108,13 @@ var buttonStyle2 = ({
|
|
|
13069
13108
|
cursor: ${disabled ? "not-allowed" : "pointer"};
|
|
13070
13109
|
}
|
|
13071
13110
|
`;
|
|
13072
|
-
var StyledButton2 = (0,
|
|
13111
|
+
var StyledButton2 = (0, import_styled42.default)(UnstyledButton)`
|
|
13073
13112
|
${(props) => buttonStyle2(props)}
|
|
13074
13113
|
`;
|
|
13075
|
-
var ButtonLink2 = (0,
|
|
13114
|
+
var ButtonLink2 = (0, import_styled42.default)(Link)`
|
|
13076
13115
|
${(props) => buttonStyle2(props)}
|
|
13077
13116
|
`;
|
|
13078
|
-
var ButtonHrefLink2 =
|
|
13117
|
+
var ButtonHrefLink2 = import_styled42.default.a`
|
|
13079
13118
|
${(props) => buttonStyle2(props)}
|
|
13080
13119
|
`;
|
|
13081
13120
|
|
|
@@ -13083,19 +13122,19 @@ var ButtonHrefLink2 = import_styled40.default.a`
|
|
|
13083
13122
|
var pageSectionScrollOffset = 20;
|
|
13084
13123
|
|
|
13085
13124
|
// src/components/PageSection/PageSection.tsx
|
|
13086
|
-
var
|
|
13125
|
+
var import_jsx_runtime166 = require("@emotion/react/jsx-runtime");
|
|
13087
13126
|
function PageSection({
|
|
13088
13127
|
children,
|
|
13089
13128
|
title,
|
|
13090
13129
|
sectionId,
|
|
13091
13130
|
headerOffset = 0
|
|
13092
13131
|
}) {
|
|
13093
|
-
return /* @__PURE__ */ (0,
|
|
13094
|
-
title ? /* @__PURE__ */ (0,
|
|
13132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(StyledPageSection, { scrollMarginTop: headerOffset + pageSectionScrollOffset, children: [
|
|
13133
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Heading, { type: "h3", id: sectionId, mt: 0, mb: 40, children: title }) : null,
|
|
13095
13134
|
children
|
|
13096
13135
|
] });
|
|
13097
13136
|
}
|
|
13098
|
-
var StyledPageSection =
|
|
13137
|
+
var StyledPageSection = import_styled43.default.div`
|
|
13099
13138
|
&:first-of-type {
|
|
13100
13139
|
${bp.minSm(`
|
|
13101
13140
|
margin-top: 4px;
|
|
@@ -13119,24 +13158,24 @@ var PageSectionBoxActionColumn = ({
|
|
|
13119
13158
|
label,
|
|
13120
13159
|
value,
|
|
13121
13160
|
valueId
|
|
13122
|
-
}) => /* @__PURE__ */ (0,
|
|
13123
|
-
/* @__PURE__ */ (0,
|
|
13124
|
-
value ? /* @__PURE__ */ (0,
|
|
13161
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(StyledPageSectionBoxActionColumn, { children: [
|
|
13162
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxActionColumnLabel, { children: label }),
|
|
13163
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxActionColumnValue, { id: valueId, children: value }) : /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxActionColumnNoValue, { children: "Unknown" })
|
|
13125
13164
|
] });
|
|
13126
|
-
var StyledPageSectionBoxActionColumn =
|
|
13127
|
-
var PageSectionBoxActionColumnLabel =
|
|
13165
|
+
var StyledPageSectionBoxActionColumn = import_styled43.default.div``;
|
|
13166
|
+
var PageSectionBoxActionColumnLabel = import_styled43.default.div`
|
|
13128
13167
|
color: ${colors.gray40};
|
|
13129
13168
|
font-weight: 500;
|
|
13130
13169
|
margin: 0;
|
|
13131
13170
|
`;
|
|
13132
|
-
var PageSectionBoxActionColumnValue =
|
|
13171
|
+
var PageSectionBoxActionColumnValue = import_styled43.default.div`
|
|
13133
13172
|
font-weight: 700;
|
|
13134
13173
|
margin-bottom: 0;
|
|
13135
13174
|
margin-top: 6px;
|
|
13136
13175
|
overflow: hidden;
|
|
13137
13176
|
text-overflow: ellipsis;
|
|
13138
13177
|
`;
|
|
13139
|
-
var PageSectionBoxActionColumnNoValue = (0,
|
|
13178
|
+
var PageSectionBoxActionColumnNoValue = (0, import_styled43.default)(
|
|
13140
13179
|
PageSectionBoxActionColumnValue
|
|
13141
13180
|
)`
|
|
13142
13181
|
color: ${colors.gray80};
|
|
@@ -13153,17 +13192,17 @@ function PageSectionBoxAction({
|
|
|
13153
13192
|
toParams
|
|
13154
13193
|
}) {
|
|
13155
13194
|
const theme = (0, import_react55.useTheme)();
|
|
13156
|
-
return loading ? /* @__PURE__ */ (0,
|
|
13195
|
+
return loading ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Loading, { size: 12, center: false }) }) : icon ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(UnstyledButton, { onClick: icon.onClick, children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Icon, { name: icon.name, width: 12, color: "mcNeutral" }) }) }) : dropdownItems ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
13157
13196
|
Dropdown,
|
|
13158
13197
|
{
|
|
13159
13198
|
button: {
|
|
13160
|
-
getContent: () => /* @__PURE__ */ (0,
|
|
13199
|
+
getContent: () => /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Icon, { name: "DotGrid1x3Horizontal", width: 16 })
|
|
13161
13200
|
},
|
|
13162
13201
|
dropdownItems
|
|
13163
13202
|
}
|
|
13164
|
-
) : isDelete ? /* @__PURE__ */ (0,
|
|
13203
|
+
) : isDelete ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(UnstyledButton, { css: { color: theme.mcNeutral }, onClick, children: "Delete" }) : label ? (
|
|
13165
13204
|
/* Extra div for proper default alignment inside flex contexts */
|
|
13166
|
-
/* @__PURE__ */ (0,
|
|
13205
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
13167
13206
|
TextButton,
|
|
13168
13207
|
{
|
|
13169
13208
|
leftIcon: icon,
|
|
@@ -13184,26 +13223,26 @@ var PageSectionBoxActionRow = ({
|
|
|
13184
13223
|
action,
|
|
13185
13224
|
smFlexColumn = true
|
|
13186
13225
|
}) => {
|
|
13187
|
-
return /* @__PURE__ */ (0,
|
|
13226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react56.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
|
|
13188
13227
|
SPageSectionBoxActionRow,
|
|
13189
13228
|
{
|
|
13190
13229
|
separator: Boolean(separator),
|
|
13191
13230
|
smFlexColumn: Boolean(smFlexColumn),
|
|
13192
13231
|
children: [
|
|
13193
|
-
title ? /* @__PURE__ */ (0,
|
|
13194
|
-
/* @__PURE__ */ (0,
|
|
13232
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { children: [
|
|
13233
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(PageSectionBoxTitle, { children: [
|
|
13195
13234
|
title,
|
|
13196
|
-
titleBadge ? /* @__PURE__ */ (0,
|
|
13235
|
+
titleBadge ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Badge, { text: titleBadge, ml: 4 }) : null
|
|
13197
13236
|
] }),
|
|
13198
|
-
description ? /* @__PURE__ */ (0,
|
|
13237
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxDescription, { children: description }) : null
|
|
13199
13238
|
] }) : null,
|
|
13200
13239
|
children,
|
|
13201
|
-
/* @__PURE__ */ (0,
|
|
13240
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxAction, __spreadValues({}, action))
|
|
13202
13241
|
]
|
|
13203
13242
|
}
|
|
13204
13243
|
) });
|
|
13205
13244
|
};
|
|
13206
|
-
var SPageSectionBoxActionRow =
|
|
13245
|
+
var SPageSectionBoxActionRow = import_styled43.default.div`
|
|
13207
13246
|
display: flex;
|
|
13208
13247
|
gap: 12px;
|
|
13209
13248
|
align-items: top;
|
|
@@ -13233,8 +13272,8 @@ var SPageSectionBoxActionRow = import_styled41.default.div`
|
|
|
13233
13272
|
padding-top: 32px;
|
|
13234
13273
|
`}
|
|
13235
13274
|
`;
|
|
13236
|
-
var PageSectionBoxColumn =
|
|
13237
|
-
var PageSectionBoxRow =
|
|
13275
|
+
var PageSectionBoxColumn = import_styled43.default.div``;
|
|
13276
|
+
var PageSectionBoxRow = import_styled43.default.div`
|
|
13238
13277
|
display: grid;
|
|
13239
13278
|
grid-template-columns: repeat(
|
|
13240
13279
|
auto-fit,
|
|
@@ -13246,13 +13285,13 @@ function PageSectionBox({
|
|
|
13246
13285
|
description,
|
|
13247
13286
|
children
|
|
13248
13287
|
}) {
|
|
13249
|
-
return /* @__PURE__ */ (0,
|
|
13250
|
-
description && /* @__PURE__ */ (0,
|
|
13288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(StyledPageSectionBox, { children: [
|
|
13289
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxDescription, { children: toReactNodes(description) }),
|
|
13251
13290
|
children,
|
|
13252
|
-
(action == null ? void 0 : action.label) ? /* @__PURE__ */ (0,
|
|
13291
|
+
(action == null ? void 0 : action.label) ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { css: { marginTop: "12px" }, children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(PageSectionBoxAction, __spreadValues({}, action)) }) : null
|
|
13253
13292
|
] });
|
|
13254
13293
|
}
|
|
13255
|
-
var StyledPageSectionBox =
|
|
13294
|
+
var StyledPageSectionBox = import_styled43.default.div`
|
|
13256
13295
|
& + & {
|
|
13257
13296
|
margin-top: 32px;
|
|
13258
13297
|
}
|
|
@@ -13310,21 +13349,21 @@ var StyledPageSectionBox = import_styled41.default.div`
|
|
|
13310
13349
|
`)}
|
|
13311
13350
|
}
|
|
13312
13351
|
`;
|
|
13313
|
-
var PageSectionBoxTitle =
|
|
13352
|
+
var PageSectionBoxTitle = import_styled43.default.div`
|
|
13314
13353
|
display: flex;
|
|
13315
13354
|
align-items: center;
|
|
13316
13355
|
font-size: ${({ lg }) => lg ? 14 : 12}px;
|
|
13317
13356
|
font-weight: 600;
|
|
13318
13357
|
line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) + badgeVPadding * 2}px;
|
|
13319
13358
|
`;
|
|
13320
|
-
var PageSectionBoxDescription =
|
|
13359
|
+
var PageSectionBoxDescription = import_styled43.default.div`
|
|
13321
13360
|
color: ${({ theme }) => theme.mcNeutral};
|
|
13322
13361
|
${PageSectionBoxTitle} + & {
|
|
13323
13362
|
margin-top: 6px;
|
|
13324
13363
|
}
|
|
13325
13364
|
`;
|
|
13326
13365
|
var gapPx = 24;
|
|
13327
|
-
var PageSectionRow =
|
|
13366
|
+
var PageSectionRow = import_styled43.default.div`
|
|
13328
13367
|
display: flex;
|
|
13329
13368
|
flex-direction: column;
|
|
13330
13369
|
gap: ${gapPx}px;
|
|
@@ -13338,7 +13377,7 @@ var PageSectionRow = import_styled41.default.div`
|
|
|
13338
13377
|
margin-top: 0;
|
|
13339
13378
|
}
|
|
13340
13379
|
`;
|
|
13341
|
-
var PageSectionRowSubSection =
|
|
13380
|
+
var PageSectionRowSubSection = import_styled43.default.div`
|
|
13342
13381
|
box-sizing: border-box;
|
|
13343
13382
|
width: 100%;
|
|
13344
13383
|
|
|
@@ -13366,10 +13405,10 @@ var PageSectionRowSubSection = import_styled41.default.div`
|
|
|
13366
13405
|
`;
|
|
13367
13406
|
|
|
13368
13407
|
// src/components/PageSection/PageSectionNav.tsx
|
|
13369
|
-
var
|
|
13408
|
+
var import_styled44 = __toESM(require("@emotion/styled"), 1);
|
|
13370
13409
|
var import_core3 = require("@lightsparkdev/core");
|
|
13371
|
-
var
|
|
13372
|
-
var StyledPageSectionNav =
|
|
13410
|
+
var import_jsx_runtime167 = require("@emotion/react/jsx-runtime");
|
|
13411
|
+
var StyledPageSectionNav = import_styled44.default.div`
|
|
13373
13412
|
display: none;
|
|
13374
13413
|
flex-direction: column;
|
|
13375
13414
|
margin-right: 32px;
|
|
@@ -13384,13 +13423,13 @@ var StyledPageSectionNav = import_styled42.default.div`
|
|
|
13384
13423
|
width: 200px;
|
|
13385
13424
|
`)}
|
|
13386
13425
|
`;
|
|
13387
|
-
var PageSectionList =
|
|
13426
|
+
var PageSectionList = import_styled44.default.ul`
|
|
13388
13427
|
margin: 0;
|
|
13389
13428
|
padding: 0;
|
|
13390
13429
|
position: sticky;
|
|
13391
13430
|
top: ${({ top }) => top}px;
|
|
13392
13431
|
`;
|
|
13393
|
-
var StyledPageSectionNavItem =
|
|
13432
|
+
var StyledPageSectionNavItem = import_styled44.default.li`
|
|
13394
13433
|
align-items: center;
|
|
13395
13434
|
color: ${colors.gray40};
|
|
13396
13435
|
display: flex;
|
|
@@ -13408,7 +13447,7 @@ var StyledPageSectionNavItem = import_styled42.default.li`
|
|
|
13408
13447
|
}
|
|
13409
13448
|
}
|
|
13410
13449
|
`;
|
|
13411
|
-
var PageSectionListItem = ({ leftIcon, label, sectionId }) => /* @__PURE__ */ (0,
|
|
13450
|
+
var PageSectionListItem = ({ leftIcon, label, sectionId }) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(StyledPageSectionNavItem, { children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
13412
13451
|
TextButton,
|
|
13413
13452
|
{
|
|
13414
13453
|
text: label,
|
|
@@ -13427,8 +13466,8 @@ function PageSectionNav({
|
|
|
13427
13466
|
headerOffset = 0,
|
|
13428
13467
|
pageSectionNavItems
|
|
13429
13468
|
}) {
|
|
13430
|
-
return /* @__PURE__ */ (0,
|
|
13431
|
-
return /* @__PURE__ */ (0,
|
|
13469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(StyledPageSectionNav, { children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(PageSectionList, { top: headerOffset + pageSectionScrollOffset, children: pageSectionNavItems.filter(import_core3.notNullUndefined).map((item) => {
|
|
13470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
13432
13471
|
PageSectionListItem,
|
|
13433
13472
|
{
|
|
13434
13473
|
leftIcon: item.leftIcon,
|
|
@@ -13704,7 +13743,7 @@ var allCountryNames = Object.values(countryCodesToNames);
|
|
|
13704
13743
|
var countryNamesToCodes = (0, import_lodash_es7.invert)(countryCodesToNames);
|
|
13705
13744
|
|
|
13706
13745
|
// src/components/PhoneInput.tsx
|
|
13707
|
-
var
|
|
13746
|
+
var import_jsx_runtime168 = require("@emotion/react/jsx-runtime");
|
|
13708
13747
|
var countries = (0, import_libphonenumber_js.getCountries)();
|
|
13709
13748
|
var defaultOptions = countries.map((countryCode) => {
|
|
13710
13749
|
if (countryCodesToNames[countryCode] === void 0) {
|
|
@@ -13766,7 +13805,7 @@ function PhoneInput({
|
|
|
13766
13805
|
const formattedValue = formatter.input(value);
|
|
13767
13806
|
const isValidPhone = formatter.isValid();
|
|
13768
13807
|
const error = !isValidPhone && wasBlurred ? "Please enter a valid phone number." : void 0;
|
|
13769
|
-
return /* @__PURE__ */ (0,
|
|
13808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
13770
13809
|
TextInput,
|
|
13771
13810
|
{
|
|
13772
13811
|
select: {
|
|
@@ -13787,9 +13826,9 @@ function PhoneInput({
|
|
|
13787
13826
|
}
|
|
13788
13827
|
|
|
13789
13828
|
// src/components/Radio.tsx
|
|
13790
|
-
var
|
|
13829
|
+
var import_styled45 = __toESM(require("@emotion/styled"), 1);
|
|
13791
13830
|
var import_react58 = require("react");
|
|
13792
|
-
var
|
|
13831
|
+
var import_jsx_runtime169 = require("@emotion/react/jsx-runtime");
|
|
13793
13832
|
function Radio({
|
|
13794
13833
|
radioOptions,
|
|
13795
13834
|
onChange,
|
|
@@ -13800,8 +13839,8 @@ function Radio({
|
|
|
13800
13839
|
onChange(e.target.value);
|
|
13801
13840
|
setSelectedOption(e.target.value);
|
|
13802
13841
|
};
|
|
13803
|
-
return /* @__PURE__ */ (0,
|
|
13804
|
-
/* @__PURE__ */ (0,
|
|
13842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(RadioContainer, { children: radioOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(RadioRow, { htmlFor: option.label, children: [
|
|
13843
|
+
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
13805
13844
|
RadioInput,
|
|
13806
13845
|
{
|
|
13807
13846
|
id: option.label,
|
|
@@ -13811,26 +13850,26 @@ function Radio({
|
|
|
13811
13850
|
onChange: handleRadioClick
|
|
13812
13851
|
}
|
|
13813
13852
|
),
|
|
13814
|
-
/* @__PURE__ */ (0,
|
|
13853
|
+
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Label, { children: option.label })
|
|
13815
13854
|
] }, option.label)) });
|
|
13816
13855
|
}
|
|
13817
|
-
var RadioContainer =
|
|
13856
|
+
var RadioContainer = import_styled45.default.div`
|
|
13818
13857
|
label: flex;
|
|
13819
13858
|
flex-direction: column;
|
|
13820
13859
|
`;
|
|
13821
|
-
var RadioRow =
|
|
13860
|
+
var RadioRow = import_styled45.default.label`
|
|
13822
13861
|
display: flex;
|
|
13823
13862
|
align-items: center;
|
|
13824
13863
|
gap: ${"12px" /* sm */};
|
|
13825
13864
|
`;
|
|
13826
|
-
var RadioInput =
|
|
13865
|
+
var RadioInput = import_styled45.default.input``;
|
|
13827
13866
|
|
|
13828
13867
|
// src/components/SecretContainer.tsx
|
|
13829
|
-
var
|
|
13830
|
-
var
|
|
13868
|
+
var import_styled46 = __toESM(require("@emotion/styled"), 1);
|
|
13869
|
+
var import_jsx_runtime170 = require("@emotion/react/jsx-runtime");
|
|
13831
13870
|
function SecretContainer(props) {
|
|
13832
|
-
return props.secret ? /* @__PURE__ */ (0,
|
|
13833
|
-
/* @__PURE__ */ (0,
|
|
13871
|
+
return props.secret ? /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(StyledSecretContainer, { hasSecret: true, success: props.success, children: [
|
|
13872
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
13834
13873
|
"span",
|
|
13835
13874
|
{
|
|
13836
13875
|
style: {
|
|
@@ -13842,10 +13881,10 @@ function SecretContainer(props) {
|
|
|
13842
13881
|
children: props.secret
|
|
13843
13882
|
}
|
|
13844
13883
|
),
|
|
13845
|
-
/* @__PURE__ */ (0,
|
|
13846
|
-
] }) : /* @__PURE__ */ (0,
|
|
13884
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsx)(CopyToClipboardButton, { value: props.secret, isSm: true, ml: 4 })
|
|
13885
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(StyledSecretContainer, { hasSecret: false, children: "There are no tokens associated with this account" });
|
|
13847
13886
|
}
|
|
13848
|
-
var StyledSecretContainer =
|
|
13887
|
+
var StyledSecretContainer = import_styled46.default.div`
|
|
13849
13888
|
background-color: ${({ theme, hasSecret, success }) => hasSecret ? success ? theme.success : theme.c05Neutral : theme.bg};
|
|
13850
13889
|
${standardBorderRadius(8)}
|
|
13851
13890
|
padding: 18px 20px;
|
|
@@ -13857,11 +13896,11 @@ var StyledSecretContainer = import_styled44.default.div`
|
|
|
13857
13896
|
`;
|
|
13858
13897
|
|
|
13859
13898
|
// src/components/Toasts.tsx
|
|
13860
|
-
var
|
|
13899
|
+
var import_styled47 = __toESM(require("@emotion/styled"), 1);
|
|
13861
13900
|
var import_lodash_es8 = require("lodash-es");
|
|
13862
13901
|
var import_react59 = require("react");
|
|
13863
13902
|
var import_react_dom4 = __toESM(require("react-dom"), 1);
|
|
13864
|
-
var
|
|
13903
|
+
var import_jsx_runtime171 = require("@emotion/react/jsx-runtime");
|
|
13865
13904
|
var firstDur = 0.3;
|
|
13866
13905
|
function Toasts({
|
|
13867
13906
|
queue,
|
|
@@ -14000,9 +14039,9 @@ function Toasts({
|
|
|
14000
14039
|
const fromCurrent = i === currentToastIndex ? 0 : currentToastIndex - i;
|
|
14001
14040
|
const movingToCurrent = currentToast.isHiding && i === currentToastIndex - 1;
|
|
14002
14041
|
const hidingFromCurrent = currentToast.isHiding ? fromCurrent - 1 : fromCurrent;
|
|
14003
|
-
const textNode = /* @__PURE__ */ (0,
|
|
14004
|
-
return /* @__PURE__ */ (0,
|
|
14005
|
-
/* @__PURE__ */ (0,
|
|
14042
|
+
const textNode = /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { children: toast.text ? toReactNodes(toast.text) : null });
|
|
14043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react59.Fragment, { children: import_react_dom4.default.createPortal(
|
|
14044
|
+
/* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
|
|
14006
14045
|
StyledToast,
|
|
14007
14046
|
{
|
|
14008
14047
|
isActive: toast.isActive,
|
|
@@ -14022,7 +14061,7 @@ function Toasts({
|
|
|
14022
14061
|
movingToCurrent,
|
|
14023
14062
|
children: [
|
|
14024
14063
|
textNode,
|
|
14025
|
-
/* @__PURE__ */ (0,
|
|
14064
|
+
/* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
|
|
14026
14065
|
UnstyledButton,
|
|
14027
14066
|
{
|
|
14028
14067
|
css: extend2(flexCenter, {
|
|
@@ -14034,7 +14073,7 @@ function Toasts({
|
|
|
14034
14073
|
outlineColor: `${colors.white} !important`
|
|
14035
14074
|
}),
|
|
14036
14075
|
onClick: () => hideToast(toast.id),
|
|
14037
|
-
children: /* @__PURE__ */ (0,
|
|
14076
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icon, { name: "Close", width: 9 })
|
|
14038
14077
|
}
|
|
14039
14078
|
)
|
|
14040
14079
|
]
|
|
@@ -14048,7 +14087,7 @@ var width2 = 400;
|
|
|
14048
14087
|
var beginTopPx = -100;
|
|
14049
14088
|
var beginHeightPx = 50;
|
|
14050
14089
|
var minScale = 0.95;
|
|
14051
|
-
var StyledToast =
|
|
14090
|
+
var StyledToast = import_styled47.default.div`
|
|
14052
14091
|
position: fixed;
|
|
14053
14092
|
z-index: ${z.toast};
|
|
14054
14093
|
line-height: ${pxToRems(16)};
|
|
@@ -14214,9 +14253,11 @@ var StyledToast = import_styled45.default.div`
|
|
|
14214
14253
|
Drawer,
|
|
14215
14254
|
Dropdown,
|
|
14216
14255
|
FileInput,
|
|
14256
|
+
Flex,
|
|
14217
14257
|
GradientCardHeader,
|
|
14218
14258
|
Icon,
|
|
14219
14259
|
IconContainer,
|
|
14260
|
+
IconWithCircleBackground,
|
|
14220
14261
|
InfoIconTooltip,
|
|
14221
14262
|
InlineCode,
|
|
14222
14263
|
LightboxImage,
|