@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
|
@@ -22,6 +22,18 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
25
37
|
var __export = (target, all) => {
|
|
26
38
|
for (var name in all)
|
|
27
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -81,9 +93,9 @@ __export(PageSection_exports, {
|
|
|
81
93
|
StyledPageSectionBox: () => StyledPageSectionBox
|
|
82
94
|
});
|
|
83
95
|
module.exports = __toCommonJS(PageSection_exports);
|
|
84
|
-
var
|
|
96
|
+
var import_react31 = require("@emotion/react");
|
|
85
97
|
var import_styled20 = __toESM(require("@emotion/styled"), 1);
|
|
86
|
-
var
|
|
98
|
+
var import_react32 = require("react");
|
|
87
99
|
|
|
88
100
|
// src/styles/breakpoints.tsx
|
|
89
101
|
var import_react = require("@emotion/react");
|
|
@@ -3608,6 +3620,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3608
3620
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3609
3621
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3610
3622
|
buttons: defaultButtonsTheme,
|
|
3623
|
+
badge: {
|
|
3624
|
+
bg: "c05Neutral"
|
|
3625
|
+
},
|
|
3626
|
+
inputBackground: colors.white,
|
|
3611
3627
|
loading: "LoadingSpinner"
|
|
3612
3628
|
});
|
|
3613
3629
|
var lightBaseTheme = baseTheme;
|
|
@@ -3644,7 +3660,11 @@ var darkBaseTheme = {
|
|
|
3644
3660
|
vlcNeutral: colors.gray20,
|
|
3645
3661
|
warning: colors.warning,
|
|
3646
3662
|
buttons: defaultButtonsTheme,
|
|
3647
|
-
loading: "LoadingSpinner"
|
|
3663
|
+
loading: "LoadingSpinner",
|
|
3664
|
+
inputBackground: colors.black,
|
|
3665
|
+
badge: {
|
|
3666
|
+
bg: "c15Neutral"
|
|
3667
|
+
}
|
|
3648
3668
|
};
|
|
3649
3669
|
var lightTheme = extend(lightBaseTheme, {
|
|
3650
3670
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3683,6 +3703,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3683
3703
|
secondary: colors.grayBlue43,
|
|
3684
3704
|
text: colors.grayBlue9,
|
|
3685
3705
|
link: colors.blue39,
|
|
3706
|
+
inputBackground: colors.white,
|
|
3686
3707
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3687
3708
|
main: "Manrope",
|
|
3688
3709
|
code: "Monaco"
|
|
@@ -3759,7 +3780,10 @@ var bridgeBaseSettings = {
|
|
|
3759
3780
|
defaultBorderWidth: 1
|
|
3760
3781
|
}
|
|
3761
3782
|
}
|
|
3762
|
-
})
|
|
3783
|
+
}),
|
|
3784
|
+
badge: {
|
|
3785
|
+
bg: "grayBlue94"
|
|
3786
|
+
}
|
|
3763
3787
|
};
|
|
3764
3788
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3765
3789
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3767,7 +3791,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3767
3791
|
bg: colors.gray98,
|
|
3768
3792
|
smBg: colors.gray98,
|
|
3769
3793
|
text: colors.grayBlue9,
|
|
3770
|
-
secondary: colors.grayBlue43
|
|
3794
|
+
secondary: colors.grayBlue43,
|
|
3795
|
+
inputBackground: colors.white
|
|
3771
3796
|
}));
|
|
3772
3797
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3773
3798
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -3910,11 +3935,12 @@ var overlaySurfaceBorderColor = ({
|
|
|
3910
3935
|
`;
|
|
3911
3936
|
var overlaySurface = ({
|
|
3912
3937
|
theme,
|
|
3913
|
-
important = false
|
|
3938
|
+
important = false,
|
|
3939
|
+
border = true
|
|
3914
3940
|
}) => import_react4.css`
|
|
3915
|
-
background-color: ${themeOr(
|
|
3941
|
+
background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
|
|
3916
3942
|
${important ? "!important" : ""};
|
|
3917
|
-
border: 0.5px solid ${important ? "!important" : ""}
|
|
3943
|
+
${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
|
|
3918
3944
|
${overlaySurfaceBorderColor({ theme, important })};
|
|
3919
3945
|
${themeOr(
|
|
3920
3946
|
`box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
|
|
@@ -4228,7 +4254,11 @@ function select(component) {
|
|
|
4228
4254
|
}
|
|
4229
4255
|
|
|
4230
4256
|
// src/utils/toReactNodes.tsx
|
|
4231
|
-
var
|
|
4257
|
+
var import_lodash_es4 = require("lodash-es");
|
|
4258
|
+
var import_react26 = require("react");
|
|
4259
|
+
|
|
4260
|
+
// src/components/typography/renderTypography.tsx
|
|
4261
|
+
var import_react25 = __toESM(require("react"), 1);
|
|
4232
4262
|
|
|
4233
4263
|
// src/components/typography/Body.tsx
|
|
4234
4264
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
@@ -8154,7 +8184,7 @@ var IconContainer = import_styled4.default.span`
|
|
|
8154
8184
|
${({ theme, fontColor }) => {
|
|
8155
8185
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
8156
8186
|
return `
|
|
8157
|
-
|
|
8187
|
+
svg, path {
|
|
8158
8188
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
8159
8189
|
|
|
8160
8190
|
/*
|
|
@@ -8309,6 +8339,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
8309
8339
|
Link,
|
|
8310
8340
|
{
|
|
8311
8341
|
to: node.to,
|
|
8342
|
+
newTab: !!node.newTab,
|
|
8312
8343
|
children: node.text
|
|
8313
8344
|
},
|
|
8314
8345
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8585,7 +8616,6 @@ var StyledTitle = import_styled14.default.span`
|
|
|
8585
8616
|
`;
|
|
8586
8617
|
|
|
8587
8618
|
// src/components/typography/renderTypography.tsx
|
|
8588
|
-
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8589
8619
|
var typographyMap = {
|
|
8590
8620
|
Display,
|
|
8591
8621
|
Headline,
|
|
@@ -8597,60 +8627,144 @@ var typographyMap = {
|
|
|
8597
8627
|
"Label Strong": LabelStrong,
|
|
8598
8628
|
Overline,
|
|
8599
8629
|
Code: Code2,
|
|
8600
|
-
"Code Strong":
|
|
8630
|
+
"Code Strong": Code2
|
|
8601
8631
|
};
|
|
8602
8632
|
var renderTypography = (type, props) => {
|
|
8603
8633
|
const TypographyComponent = typographyMap[type];
|
|
8604
|
-
|
|
8634
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8635
|
+
return import_react25.default.createElement(TypographyComponent, rest, children);
|
|
8605
8636
|
};
|
|
8606
8637
|
|
|
8607
8638
|
// src/utils/toReactNodes.tsx
|
|
8608
|
-
var
|
|
8639
|
+
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8609
8640
|
function toReactNodes(toReactNodesArg) {
|
|
8610
8641
|
const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
|
|
8611
8642
|
const reactNodes = toReactNodesArray.map((node, i) => {
|
|
8612
8643
|
let content;
|
|
8613
8644
|
if (!node) {
|
|
8614
8645
|
return null;
|
|
8615
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
8616
|
-
|
|
8646
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
8647
|
+
const props = node.typography.props || {};
|
|
8648
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_react26.Fragment, { children: renderTypography(
|
|
8617
8649
|
node.typography.type,
|
|
8618
|
-
Object.assign(
|
|
8619
|
-
content: node
|
|
8620
|
-
})
|
|
8650
|
+
Object.assign(props, { content: node })
|
|
8621
8651
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
8622
8652
|
} else {
|
|
8623
8653
|
content = toNonTypographicReactNodes(node);
|
|
8624
8654
|
}
|
|
8625
8655
|
return content || null;
|
|
8626
8656
|
});
|
|
8627
|
-
return /* @__PURE__ */ (0,
|
|
8657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_react26.Fragment, { children: reactNodes });
|
|
8658
|
+
}
|
|
8659
|
+
function setReactNodesTypography(nodesArg, nodesTypographyMap, replaceExistingTypography = true) {
|
|
8660
|
+
const nodes = Array.isArray(nodesArg) ? nodesArg : [nodesArg];
|
|
8661
|
+
const nodesWithTypography = nodes.map((node, i) => {
|
|
8662
|
+
if (isIconNode(node)) {
|
|
8663
|
+
return node;
|
|
8664
|
+
} else if (typeof node === "string") {
|
|
8665
|
+
if (nodesTypographyMap.text) {
|
|
8666
|
+
return {
|
|
8667
|
+
text: node,
|
|
8668
|
+
typography: nodesTypographyMap.text
|
|
8669
|
+
};
|
|
8670
|
+
}
|
|
8671
|
+
} else if (!node) {
|
|
8672
|
+
return node;
|
|
8673
|
+
}
|
|
8674
|
+
const useExistingTypography = !replaceExistingTypography && (0, import_lodash_es4.isObject)(node) && "typography" in node ? node.typography : void 0;
|
|
8675
|
+
if (isLinkNode(node)) {
|
|
8676
|
+
if (nodesTypographyMap.link) {
|
|
8677
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8678
|
+
typography: useExistingTypography || nodesTypographyMap.link
|
|
8679
|
+
});
|
|
8680
|
+
}
|
|
8681
|
+
} else if (isExternalLinkNode(node)) {
|
|
8682
|
+
if (nodesTypographyMap.externalLink) {
|
|
8683
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8684
|
+
typography: useExistingTypography || nodesTypographyMap.externalLink
|
|
8685
|
+
});
|
|
8686
|
+
}
|
|
8687
|
+
} else if (isNextLinkNode(node)) {
|
|
8688
|
+
if (nodesTypographyMap.nextLink) {
|
|
8689
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8690
|
+
typography: useExistingTypography || nodesTypographyMap.nextLink
|
|
8691
|
+
});
|
|
8692
|
+
}
|
|
8693
|
+
} else if (isTextNode(node)) {
|
|
8694
|
+
if (nodesTypographyMap.text) {
|
|
8695
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8696
|
+
typography: useExistingTypography || nodesTypographyMap.text
|
|
8697
|
+
});
|
|
8698
|
+
}
|
|
8699
|
+
}
|
|
8700
|
+
return node;
|
|
8701
|
+
});
|
|
8702
|
+
return nodesWithTypography;
|
|
8703
|
+
}
|
|
8704
|
+
function setDefaultReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
8705
|
+
return setReactNodesTypography(nodesArg, nodesTypographyMap, false);
|
|
8628
8706
|
}
|
|
8629
8707
|
|
|
8630
8708
|
// src/components/Badge.tsx
|
|
8631
8709
|
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
8632
|
-
var
|
|
8633
|
-
function Badge({
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8710
|
+
var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
|
|
8711
|
+
function Badge({
|
|
8712
|
+
content: contentProp,
|
|
8713
|
+
kind,
|
|
8714
|
+
icon,
|
|
8715
|
+
ml = 0,
|
|
8716
|
+
mr = 0,
|
|
8717
|
+
size: size2 = "sm",
|
|
8718
|
+
block = false,
|
|
8719
|
+
typography: typographyProp
|
|
8720
|
+
}) {
|
|
8721
|
+
const typography = {
|
|
8722
|
+
type: (typographyProp == null ? void 0 : typographyProp.type) || "Label Moderate",
|
|
8723
|
+
props: {
|
|
8724
|
+
size: (typographyProp == null ? void 0 : typographyProp.size) || "Small",
|
|
8725
|
+
color: (typographyProp == null ? void 0 : typographyProp.color) || (kind === "danger" ? "danger" : "text")
|
|
8726
|
+
}
|
|
8727
|
+
};
|
|
8728
|
+
const typographyMap2 = {
|
|
8729
|
+
link: typography,
|
|
8730
|
+
externalLink: typography,
|
|
8731
|
+
text: typography,
|
|
8732
|
+
nextLink: typography
|
|
8733
|
+
};
|
|
8734
|
+
let content = setDefaultReactNodesTypography(
|
|
8735
|
+
contentProp,
|
|
8736
|
+
typographyMap2
|
|
8737
|
+
);
|
|
8738
|
+
content = toReactNodes(content);
|
|
8739
|
+
return contentProp ? /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(StyledBadge, { kind, ml, size: size2, block, children: [
|
|
8740
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon, { name: icon.name, width: 20, color: icon.color }) : null,
|
|
8741
|
+
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)(BadgeContent, { children: content })
|
|
8742
|
+
] }) : null;
|
|
8743
|
+
}
|
|
8744
|
+
var badgeSmVPadding = 2;
|
|
8745
|
+
var badgeSmHPadding = 6;
|
|
8746
|
+
var StyledBadge = import_styled15.default.div`
|
|
8747
|
+
${({ size: size2 }) => standardBorderRadius(size2 === "sm" ? 4 : 12)}
|
|
8639
8748
|
${({ ml }) => ml === 0 ? "" : `margin-left: ${ml}px;`}
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8749
|
+
|
|
8750
|
+
display: ${({ block }) => block ? "flex" : "inline-flex"};
|
|
8751
|
+
gap: ${({ size: size2 }) => size2 === "sm" ? badgeSmHPadding : 12}px;
|
|
8752
|
+
align-items: center;
|
|
8753
|
+
padding: ${({ size: size2 }) => size2 === "sm" ? `${badgeSmVPadding}px ${badgeSmHPadding}px` : "12px 16px"};
|
|
8754
|
+
background-color: ${({ theme, kind }) => {
|
|
8755
|
+
if (kind === "danger") {
|
|
8643
8756
|
return getColor(theme, "red42a10");
|
|
8644
8757
|
} else {
|
|
8645
|
-
return
|
|
8758
|
+
return getColor(theme, theme.badge.bg);
|
|
8646
8759
|
}
|
|
8647
8760
|
}};
|
|
8648
8761
|
`;
|
|
8762
|
+
var BadgeContent = import_styled15.default.div``;
|
|
8649
8763
|
|
|
8650
8764
|
// src/components/Dropdown.tsx
|
|
8651
|
-
var
|
|
8765
|
+
var import_react27 = require("@emotion/react");
|
|
8652
8766
|
var import_styled17 = __toESM(require("@emotion/styled"), 1);
|
|
8653
|
-
var
|
|
8767
|
+
var import_react28 = require("react");
|
|
8654
8768
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
8655
8769
|
|
|
8656
8770
|
// src/styles/constants.ts
|
|
@@ -8673,7 +8787,7 @@ var UnstyledButton = import_styled16.default.button`
|
|
|
8673
8787
|
`;
|
|
8674
8788
|
|
|
8675
8789
|
// src/components/Dropdown.tsx
|
|
8676
|
-
var
|
|
8790
|
+
var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
|
|
8677
8791
|
function Dropdown({
|
|
8678
8792
|
button,
|
|
8679
8793
|
dropdownItems,
|
|
@@ -8690,22 +8804,22 @@ function Dropdown({
|
|
|
8690
8804
|
footer = null,
|
|
8691
8805
|
dropdownContent = null
|
|
8692
8806
|
}) {
|
|
8693
|
-
const theme = (0,
|
|
8694
|
-
const [isOpen, setIsOpen] = (0,
|
|
8695
|
-
const [dropdownButtonHeight, setDropdownButtonHeight] = (0,
|
|
8696
|
-
const [dropdownButtonWidth, setDropdownButtonWidth] = (0,
|
|
8697
|
-
const [dropdownCoords, setDropdownCoords] = (0,
|
|
8807
|
+
const theme = (0, import_react27.useTheme)();
|
|
8808
|
+
const [isOpen, setIsOpen] = (0, import_react28.useState)(false);
|
|
8809
|
+
const [dropdownButtonHeight, setDropdownButtonHeight] = (0, import_react28.useState)(0);
|
|
8810
|
+
const [dropdownButtonWidth, setDropdownButtonWidth] = (0, import_react28.useState)(0);
|
|
8811
|
+
const [dropdownCoords, setDropdownCoords] = (0, import_react28.useState)({
|
|
8698
8812
|
top: 0,
|
|
8699
8813
|
left: 0,
|
|
8700
8814
|
right: 0
|
|
8701
8815
|
});
|
|
8702
|
-
const dropdownRef = (0,
|
|
8703
|
-
const dropdownButtonRef = (0,
|
|
8704
|
-
const dropdownItemsRef = (0,
|
|
8705
|
-
const [dropdownItemsWidth, setDropdownItemsWidth] = (0,
|
|
8706
|
-
const nodeRef = (0,
|
|
8707
|
-
const [nodeReady, setNodeReady] = (0,
|
|
8708
|
-
(0,
|
|
8816
|
+
const dropdownRef = (0, import_react28.useRef)(null);
|
|
8817
|
+
const dropdownButtonRef = (0, import_react28.useRef)(null);
|
|
8818
|
+
const dropdownItemsRef = (0, import_react28.useRef)(null);
|
|
8819
|
+
const [dropdownItemsWidth, setDropdownItemsWidth] = (0, import_react28.useState)(0);
|
|
8820
|
+
const nodeRef = (0, import_react28.useRef)(null);
|
|
8821
|
+
const [nodeReady, setNodeReady] = (0, import_react28.useState)(false);
|
|
8822
|
+
(0, import_react28.useEffect)(() => {
|
|
8709
8823
|
if (!nodeRef.current) {
|
|
8710
8824
|
nodeRef.current = document.createElement("div");
|
|
8711
8825
|
document.body.appendChild(nodeRef.current);
|
|
@@ -8718,7 +8832,7 @@ function Dropdown({
|
|
|
8718
8832
|
}
|
|
8719
8833
|
};
|
|
8720
8834
|
}, []);
|
|
8721
|
-
const setOpen = (0,
|
|
8835
|
+
const setOpen = (0, import_react28.useCallback)(
|
|
8722
8836
|
(newValue) => {
|
|
8723
8837
|
setIsOpen(newValue);
|
|
8724
8838
|
if (newValue && onOpen) {
|
|
@@ -8744,13 +8858,13 @@ function Dropdown({
|
|
|
8744
8858
|
setOpen(false);
|
|
8745
8859
|
}
|
|
8746
8860
|
}
|
|
8747
|
-
const handleRef = (0,
|
|
8861
|
+
const handleRef = (0, import_react28.useCallback)((ref) => {
|
|
8748
8862
|
if (ref && !dropdownButtonRef.current) {
|
|
8749
8863
|
dropdownButtonRef.current = ref;
|
|
8750
8864
|
}
|
|
8751
8865
|
return ref;
|
|
8752
8866
|
}, []);
|
|
8753
|
-
(0,
|
|
8867
|
+
(0, import_react28.useEffect)(() => {
|
|
8754
8868
|
function handleClickOutside(event) {
|
|
8755
8869
|
const targetOutsideDropdownItems = dropdownItemsRef.current && !dropdownItemsRef.current.contains(event.target);
|
|
8756
8870
|
const targetOutsideDropdownButton = dropdownButtonRef.current && !dropdownButtonRef.current.contains(event.target);
|
|
@@ -8763,7 +8877,7 @@ function Dropdown({
|
|
|
8763
8877
|
window.document.removeEventListener("mousedown", handleClickOutside);
|
|
8764
8878
|
};
|
|
8765
8879
|
}, [isOpen, setOpen]);
|
|
8766
|
-
const reposition = (0,
|
|
8880
|
+
const reposition = (0, import_react28.useCallback)(() => {
|
|
8767
8881
|
if (dropdownButtonRef.current && dropdownItemsRef.current) {
|
|
8768
8882
|
const dropdownButtonRect = dropdownButtonRef.current.getBoundingClientRect();
|
|
8769
8883
|
setDropdownCoords({
|
|
@@ -8777,7 +8891,7 @@ function Dropdown({
|
|
|
8777
8891
|
setDropdownItemsWidth(dropdownItemsRect.width);
|
|
8778
8892
|
}
|
|
8779
8893
|
}, []);
|
|
8780
|
-
(0,
|
|
8894
|
+
(0, import_react28.useLayoutEffect)(() => {
|
|
8781
8895
|
function onWindowResize() {
|
|
8782
8896
|
setOpen(false);
|
|
8783
8897
|
reposition();
|
|
@@ -8815,7 +8929,7 @@ function Dropdown({
|
|
|
8815
8929
|
dropdownResizeObserver == null ? void 0 : dropdownResizeObserver.disconnect();
|
|
8816
8930
|
};
|
|
8817
8931
|
}, [setOpen, horizontalScrollRef, closeOnScroll, reposition]);
|
|
8818
|
-
const handleClickDropdownItems = (0,
|
|
8932
|
+
const handleClickDropdownItems = (0, import_react28.useCallback)(() => {
|
|
8819
8933
|
setOpen(false);
|
|
8820
8934
|
onClickDropdownItems && onClickDropdownItems();
|
|
8821
8935
|
}, [onClickDropdownItems, setOpen]);
|
|
@@ -8829,13 +8943,13 @@ function Dropdown({
|
|
|
8829
8943
|
}
|
|
8830
8944
|
const buttonContent = button.label || button.getContent && button.getContent({ isOpen, theme });
|
|
8831
8945
|
const containerCSS = getCSS && getCSS({ isOpen, theme });
|
|
8832
|
-
return /* @__PURE__ */ (0,
|
|
8946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8833
8947
|
"div",
|
|
8834
8948
|
{
|
|
8835
8949
|
css: __spreadValues({ position: "relative", display: "inline-flex" }, containerCSS),
|
|
8836
8950
|
ref: dropdownRef,
|
|
8837
8951
|
children: [
|
|
8838
|
-
/* @__PURE__ */ (0,
|
|
8952
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8839
8953
|
DropdownButton,
|
|
8840
8954
|
{
|
|
8841
8955
|
id: button.id,
|
|
@@ -8863,7 +8977,7 @@ function Dropdown({
|
|
|
8863
8977
|
}
|
|
8864
8978
|
),
|
|
8865
8979
|
nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
|
|
8866
|
-
/* @__PURE__ */ (0,
|
|
8980
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8867
8981
|
DropdownItems,
|
|
8868
8982
|
{
|
|
8869
8983
|
isOpen,
|
|
@@ -8874,7 +8988,7 @@ function Dropdown({
|
|
|
8874
8988
|
maxWidth: maxDropdownItemsWidth,
|
|
8875
8989
|
children: [
|
|
8876
8990
|
dropdownItems == null ? void 0 : dropdownItems.map((dropdownItem, i) => {
|
|
8877
|
-
return /* @__PURE__ */ (0,
|
|
8991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("li", { onBlur: handleBlur, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8878
8992
|
DropdownItem,
|
|
8879
8993
|
{
|
|
8880
8994
|
dropdownItem,
|
|
@@ -8883,7 +8997,7 @@ function Dropdown({
|
|
|
8883
8997
|
) }, dropdownItem.label);
|
|
8884
8998
|
}),
|
|
8885
8999
|
dropdownContent,
|
|
8886
|
-
footer && /* @__PURE__ */ (0,
|
|
9000
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(DropdownFooter, { children: footer })
|
|
8887
9001
|
]
|
|
8888
9002
|
}
|
|
8889
9003
|
),
|
|
@@ -8917,9 +9031,9 @@ function DropdownItem({
|
|
|
8917
9031
|
dropdownItem,
|
|
8918
9032
|
onClick
|
|
8919
9033
|
}) {
|
|
8920
|
-
const theme = (0,
|
|
9034
|
+
const theme = (0, import_react27.useTheme)();
|
|
8921
9035
|
const dropdownItemIcon = dropdownItem.getIcon && dropdownItem.getIcon({ dropdownItem, theme });
|
|
8922
|
-
const dropdownItemIconNode = dropdownItemIcon ? /* @__PURE__ */ (0,
|
|
9036
|
+
const dropdownItemIconNode = dropdownItemIcon ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8923
9037
|
Icon,
|
|
8924
9038
|
{
|
|
8925
9039
|
name: dropdownItemIcon.name,
|
|
@@ -8928,12 +9042,12 @@ function DropdownItem({
|
|
|
8928
9042
|
}
|
|
8929
9043
|
) : null;
|
|
8930
9044
|
const cssProp2 = dropdownItem.getCSS && dropdownItem.getCSS({ theme, dropdownItem });
|
|
8931
|
-
const onClickDropdownItem = (0,
|
|
9045
|
+
const onClickDropdownItem = (0, import_react28.useCallback)(() => {
|
|
8932
9046
|
dropdownItem.onClick && dropdownItem.onClick(dropdownItem);
|
|
8933
9047
|
onClick && onClick();
|
|
8934
9048
|
}, [dropdownItem, onClick]);
|
|
8935
9049
|
if (dropdownItem.to !== void 0 || dropdownItem.externalLink) {
|
|
8936
|
-
return /* @__PURE__ */ (0,
|
|
9050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8937
9051
|
DropdownItemLink,
|
|
8938
9052
|
{
|
|
8939
9053
|
selected: Boolean(dropdownItem.selected),
|
|
@@ -8950,7 +9064,7 @@ function DropdownItem({
|
|
|
8950
9064
|
}
|
|
8951
9065
|
);
|
|
8952
9066
|
}
|
|
8953
|
-
return /* @__PURE__ */ (0,
|
|
9067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8954
9068
|
DropdownItemDiv,
|
|
8955
9069
|
{
|
|
8956
9070
|
selected: false,
|
|
@@ -8987,13 +9101,13 @@ var dropdownItemStyle = ({ selected, theme }) => `
|
|
|
8987
9101
|
var cssProp = ({
|
|
8988
9102
|
theme,
|
|
8989
9103
|
selected
|
|
8990
|
-
}) =>
|
|
9104
|
+
}) => import_react27.css`
|
|
8991
9105
|
${dropdownItemStyle({ theme, selected: Boolean(selected) })}
|
|
8992
9106
|
${standardFocusOutline({ theme })}
|
|
8993
9107
|
`;
|
|
8994
9108
|
function DropdownItemLink(props) {
|
|
8995
|
-
const theme = (0,
|
|
8996
|
-
return /* @__PURE__ */ (0,
|
|
9109
|
+
const theme = (0, import_react27.useTheme)();
|
|
9110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8997
9111
|
Link,
|
|
8998
9112
|
__spreadProps(__spreadValues({}, props), {
|
|
8999
9113
|
css: cssProp({ theme, selected: Boolean(props.selected) })
|
|
@@ -9006,9 +9120,9 @@ var DropdownItemDiv = import_styled17.default.div`
|
|
|
9006
9120
|
`;
|
|
9007
9121
|
|
|
9008
9122
|
// src/components/Loading.tsx
|
|
9009
|
-
var
|
|
9123
|
+
var import_react29 = require("@emotion/react");
|
|
9010
9124
|
var import_styled18 = __toESM(require("@emotion/styled"), 1);
|
|
9011
|
-
var
|
|
9125
|
+
var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
|
|
9012
9126
|
var defaultProps = {
|
|
9013
9127
|
size: 60,
|
|
9014
9128
|
center: true,
|
|
@@ -9019,8 +9133,8 @@ function Loading({
|
|
|
9019
9133
|
size: size2 = defaultProps.size,
|
|
9020
9134
|
ml = defaultProps.ml
|
|
9021
9135
|
}) {
|
|
9022
|
-
const theme = (0,
|
|
9023
|
-
return /* @__PURE__ */ (0,
|
|
9136
|
+
const theme = (0, import_react29.useTheme)();
|
|
9137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(LoadingWrapper, { center, ml, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Rotate, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Icon, { name: theme.loading, width: size2 }) }) });
|
|
9024
9138
|
}
|
|
9025
9139
|
Loading.defaultProps = defaultProps;
|
|
9026
9140
|
var LoadingWrapper = import_styled18.default.div`
|
|
@@ -9058,11 +9172,11 @@ var Rotate = import_styled18.default.div`
|
|
|
9058
9172
|
`;
|
|
9059
9173
|
|
|
9060
9174
|
// src/components/TextButton.tsx
|
|
9061
|
-
var
|
|
9175
|
+
var import_react30 = require("@emotion/react");
|
|
9062
9176
|
var import_styled19 = __toESM(require("@emotion/styled"), 1);
|
|
9063
9177
|
|
|
9064
9178
|
// src/components/TextIconAligner.tsx
|
|
9065
|
-
var
|
|
9179
|
+
var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
|
|
9066
9180
|
function TextIconAligner({
|
|
9067
9181
|
content,
|
|
9068
9182
|
typography,
|
|
@@ -9075,7 +9189,7 @@ function TextIconAligner({
|
|
|
9075
9189
|
size: (typography == null ? void 0 : typography.size) || "Small",
|
|
9076
9190
|
color: (typography == null ? void 0 : typography.color) || "inherit"
|
|
9077
9191
|
});
|
|
9078
|
-
const leftIconNode = leftIcon ? /* @__PURE__ */ (0,
|
|
9192
|
+
const leftIconNode = leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9079
9193
|
Icon,
|
|
9080
9194
|
{
|
|
9081
9195
|
name: leftIcon.name,
|
|
@@ -9084,7 +9198,7 @@ function TextIconAligner({
|
|
|
9084
9198
|
color: leftIcon.color
|
|
9085
9199
|
}
|
|
9086
9200
|
) : null;
|
|
9087
|
-
const rightIconNode = rightIcon ? /* @__PURE__ */ (0,
|
|
9201
|
+
const rightIconNode = rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9088
9202
|
Icon,
|
|
9089
9203
|
{
|
|
9090
9204
|
name: rightIcon.name,
|
|
@@ -9093,7 +9207,7 @@ function TextIconAligner({
|
|
|
9093
9207
|
color: rightIcon.color
|
|
9094
9208
|
}
|
|
9095
9209
|
) : null;
|
|
9096
|
-
return /* @__PURE__ */ (0,
|
|
9210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
|
|
9097
9211
|
"span",
|
|
9098
9212
|
{
|
|
9099
9213
|
css: {
|
|
@@ -9112,7 +9226,7 @@ function TextIconAligner({
|
|
|
9112
9226
|
}
|
|
9113
9227
|
|
|
9114
9228
|
// src/components/TextButton.tsx
|
|
9115
|
-
var
|
|
9229
|
+
var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
|
|
9116
9230
|
function TextButton({
|
|
9117
9231
|
text: textProp,
|
|
9118
9232
|
to,
|
|
@@ -9138,7 +9252,7 @@ function TextButton({
|
|
|
9138
9252
|
};
|
|
9139
9253
|
}
|
|
9140
9254
|
const defaultIconColor = iconMatchTextColor ? void 0 : "mcNeutral";
|
|
9141
|
-
const content = /* @__PURE__ */ (0,
|
|
9255
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
9142
9256
|
TextIconAligner,
|
|
9143
9257
|
{
|
|
9144
9258
|
onClick,
|
|
@@ -9168,15 +9282,15 @@ function TextButton({
|
|
|
9168
9282
|
}
|
|
9169
9283
|
};
|
|
9170
9284
|
if (to) {
|
|
9171
|
-
return /* @__PURE__ */ (0,
|
|
9285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, children: content }));
|
|
9172
9286
|
}
|
|
9173
|
-
return href ? /* @__PURE__ */ (0,
|
|
9287
|
+
return href ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ButtonHrefLink, __spreadProps(__spreadValues({}, commonProps), { href, target: "_blank", children: content })) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(StyledButton, __spreadProps(__spreadValues({}, commonProps), { children: content }));
|
|
9174
9288
|
}
|
|
9175
9289
|
var buttonStyle = ({
|
|
9176
9290
|
theme,
|
|
9177
9291
|
disabled,
|
|
9178
9292
|
padding
|
|
9179
|
-
}) =>
|
|
9293
|
+
}) => import_react30.css`
|
|
9180
9294
|
display: inline-flex;
|
|
9181
9295
|
opacity: ${disabled ? 0.2 : 1};
|
|
9182
9296
|
align-items: center;
|
|
@@ -9208,15 +9322,15 @@ var ButtonHrefLink = import_styled19.default.a`
|
|
|
9208
9322
|
var pageSectionScrollOffset = 20;
|
|
9209
9323
|
|
|
9210
9324
|
// src/components/PageSection/PageSection.tsx
|
|
9211
|
-
var
|
|
9325
|
+
var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
|
|
9212
9326
|
function PageSection({
|
|
9213
9327
|
children,
|
|
9214
9328
|
title,
|
|
9215
9329
|
sectionId,
|
|
9216
9330
|
headerOffset = 0
|
|
9217
9331
|
}) {
|
|
9218
|
-
return /* @__PURE__ */ (0,
|
|
9219
|
-
title ? /* @__PURE__ */ (0,
|
|
9332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(StyledPageSection, { scrollMarginTop: headerOffset + pageSectionScrollOffset, children: [
|
|
9333
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Heading, { type: "h3", id: sectionId, mt: 0, mb: 40, children: title }) : null,
|
|
9220
9334
|
children
|
|
9221
9335
|
] });
|
|
9222
9336
|
}
|
|
@@ -9244,9 +9358,9 @@ var PageSectionBoxActionColumn = ({
|
|
|
9244
9358
|
label,
|
|
9245
9359
|
value,
|
|
9246
9360
|
valueId
|
|
9247
|
-
}) => /* @__PURE__ */ (0,
|
|
9248
|
-
/* @__PURE__ */ (0,
|
|
9249
|
-
value ? /* @__PURE__ */ (0,
|
|
9361
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(StyledPageSectionBoxActionColumn, { children: [
|
|
9362
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxActionColumnLabel, { children: label }),
|
|
9363
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxActionColumnValue, { id: valueId, children: value }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxActionColumnNoValue, { children: "Unknown" })
|
|
9250
9364
|
] });
|
|
9251
9365
|
var StyledPageSectionBoxActionColumn = import_styled20.default.div``;
|
|
9252
9366
|
var PageSectionBoxActionColumnLabel = import_styled20.default.div`
|
|
@@ -9277,18 +9391,18 @@ function PageSectionBoxAction({
|
|
|
9277
9391
|
to,
|
|
9278
9392
|
toParams
|
|
9279
9393
|
}) {
|
|
9280
|
-
const theme = (0,
|
|
9281
|
-
return loading ? /* @__PURE__ */ (0,
|
|
9394
|
+
const theme = (0, import_react31.useTheme)();
|
|
9395
|
+
return loading ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Loading, { size: 12, center: false }) }) : icon ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(UnstyledButton, { onClick: icon.onClick, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: icon.name, width: 12, color: "mcNeutral" }) }) }) : dropdownItems ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
|
|
9282
9396
|
Dropdown,
|
|
9283
9397
|
{
|
|
9284
9398
|
button: {
|
|
9285
|
-
getContent: () => /* @__PURE__ */ (0,
|
|
9399
|
+
getContent: () => /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: "DotGrid1x3Horizontal", width: 16 })
|
|
9286
9400
|
},
|
|
9287
9401
|
dropdownItems
|
|
9288
9402
|
}
|
|
9289
|
-
) : isDelete ? /* @__PURE__ */ (0,
|
|
9403
|
+
) : isDelete ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(UnstyledButton, { css: { color: theme.mcNeutral }, onClick, children: "Delete" }) : label ? (
|
|
9290
9404
|
/* Extra div for proper default alignment inside flex contexts */
|
|
9291
|
-
/* @__PURE__ */ (0,
|
|
9405
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
|
|
9292
9406
|
TextButton,
|
|
9293
9407
|
{
|
|
9294
9408
|
leftIcon: icon,
|
|
@@ -9309,21 +9423,21 @@ var PageSectionBoxActionRow = ({
|
|
|
9309
9423
|
action,
|
|
9310
9424
|
smFlexColumn = true
|
|
9311
9425
|
}) => {
|
|
9312
|
-
return /* @__PURE__ */ (0,
|
|
9426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_react32.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
|
|
9313
9427
|
SPageSectionBoxActionRow,
|
|
9314
9428
|
{
|
|
9315
9429
|
separator: Boolean(separator),
|
|
9316
9430
|
smFlexColumn: Boolean(smFlexColumn),
|
|
9317
9431
|
children: [
|
|
9318
|
-
title ? /* @__PURE__ */ (0,
|
|
9319
|
-
/* @__PURE__ */ (0,
|
|
9432
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { children: [
|
|
9433
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(PageSectionBoxTitle, { children: [
|
|
9320
9434
|
title,
|
|
9321
|
-
titleBadge ? /* @__PURE__ */ (0,
|
|
9435
|
+
titleBadge ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Badge, { content: titleBadge, ml: 4 }) : null
|
|
9322
9436
|
] }),
|
|
9323
|
-
description ? /* @__PURE__ */ (0,
|
|
9437
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxDescription, { children: description }) : null
|
|
9324
9438
|
] }) : null,
|
|
9325
9439
|
children,
|
|
9326
|
-
/* @__PURE__ */ (0,
|
|
9440
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxAction, __spreadValues({}, action))
|
|
9327
9441
|
]
|
|
9328
9442
|
}
|
|
9329
9443
|
) });
|
|
@@ -9371,10 +9485,10 @@ function PageSectionBox({
|
|
|
9371
9485
|
description,
|
|
9372
9486
|
children
|
|
9373
9487
|
}) {
|
|
9374
|
-
return /* @__PURE__ */ (0,
|
|
9375
|
-
description && /* @__PURE__ */ (0,
|
|
9488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(StyledPageSectionBox, { children: [
|
|
9489
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxDescription, { children: toReactNodes(description) }),
|
|
9376
9490
|
children,
|
|
9377
|
-
(action == null ? void 0 : action.label) ? /* @__PURE__ */ (0,
|
|
9491
|
+
(action == null ? void 0 : action.label) ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { css: { marginTop: "12px" }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxAction, __spreadValues({}, action)) }) : null
|
|
9378
9492
|
] });
|
|
9379
9493
|
}
|
|
9380
9494
|
var StyledPageSectionBox = import_styled20.default.div`
|
|
@@ -9440,7 +9554,7 @@ var PageSectionBoxTitle = import_styled20.default.div`
|
|
|
9440
9554
|
align-items: center;
|
|
9441
9555
|
font-size: ${({ lg }) => lg ? 14 : 12}px;
|
|
9442
9556
|
font-weight: 600;
|
|
9443
|
-
line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) +
|
|
9557
|
+
line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) + badgeSmVPadding * 2}px;
|
|
9444
9558
|
`;
|
|
9445
9559
|
var PageSectionBoxDescription = import_styled20.default.div`
|
|
9446
9560
|
color: ${({ theme }) => theme.mcNeutral};
|