@lightsparkdev/ui 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{chunk-54EOEIEN.js → chunk-3DXU76SI.js} +2 -2
- package/dist/{chunk-PQKVR2BR.js → chunk-42D2SXB2.js} +1 -1
- package/dist/{chunk-BSH6WRUZ.js → chunk-45BHB7K7.js} +3 -3
- package/dist/{chunk-35PJW7RT.js → chunk-4EV5IUUJ.js} +2 -2
- package/dist/{chunk-XM2HQVUK.js → chunk-4IHNUHE3.js} +5 -5
- package/dist/{chunk-X4TGLNCH.js → chunk-5JJUXAVA.js} +3 -3
- package/dist/{chunk-ILEZ6AWT.js → chunk-7EAO66LB.js} +5 -5
- package/dist/{chunk-LIQSJ5R7.js → chunk-AKGW3FMJ.js} +21 -13
- package/dist/{chunk-7N2PFDYE.js → chunk-AVV74PTP.js} +2 -2
- package/dist/{chunk-SNFRMD6Z.js → chunk-AXNQ7BDD.js} +4 -4
- package/dist/{chunk-CRTTTIAD.js → chunk-BNHCCR3C.js} +2 -2
- package/dist/{chunk-UH5F35II.js → chunk-BRJKMY6Z.js} +3 -3
- package/dist/{chunk-7WDAN3OC.js → chunk-D4DFISYR.js} +1 -1
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/{chunk-YRNEIRHM.js → chunk-E6ZY35LN.js} +5 -5
- package/dist/{chunk-J3YVJWRG.js → chunk-EHH4M2LZ.js} +5 -5
- package/dist/{chunk-XB4KQFK2.js → chunk-EKU5IWJW.js} +2 -2
- package/dist/chunk-ERNTWEIJ.js +74 -0
- package/dist/{chunk-7IHNYMFQ.js → chunk-FE477HOE.js} +2 -2
- package/dist/{chunk-B6S7Y4K7.js → chunk-GGWFUEDW.js} +2 -2
- package/dist/{chunk-7YY6BH5O.js → chunk-GMEJR5XX.js} +2 -2
- package/dist/{chunk-LOL5TJ3H.js → chunk-GMOJB7PP.js} +16 -16
- package/dist/{chunk-RPNTFEXE.js → chunk-H3UUVMZ3.js} +1 -1
- package/dist/{chunk-WGKUDRZ7.js → chunk-HLZNFEDV.js} +2 -2
- package/dist/{chunk-XDP7GCYE.js → chunk-HNK2KIC7.js} +2 -2
- package/dist/{chunk-BENSR2YW.js → chunk-I3WMJNCP.js} +1 -1
- package/dist/{chunk-BDZ46Z2I.js → chunk-IH5SIRJL.js} +2 -2
- package/dist/{chunk-YIHC25WB.js → chunk-IIRG6R42.js} +3 -3
- package/dist/{chunk-C4KZC45Y.js → chunk-ILCC45G7.js} +54 -71
- package/dist/{chunk-MRGHRTKA.js → chunk-IXAXRBFS.js} +2 -2
- package/dist/{chunk-QQSV7XJX.js → chunk-JZKGVGBU.js} +1 -1
- package/dist/{chunk-XUWFUTR4.js → chunk-KPAVY3UH.js} +3 -1
- package/dist/{chunk-I3FI3FNP.js → chunk-LAGOF7IU.js} +2 -2
- package/dist/{chunk-MWDDIXIP.js → chunk-LH5VFS3E.js} +1 -1
- package/dist/{chunk-2XUHQWCJ.js → chunk-LKJ7QTWL.js} +4 -4
- package/dist/{chunk-N2NPIZCV.js → chunk-M7E2PMFK.js} +9 -9
- package/dist/{chunk-BHP5YL2N.js → chunk-N67Y7GWR.js} +1 -1
- package/dist/{chunk-4BFBANKF.js → chunk-NBIK5O3N.js} +37 -34
- package/dist/{chunk-SLKPLSJU.js → chunk-NK7WH3TK.js} +11 -11
- package/dist/{chunk-KX5QZXCD.js → chunk-NONMMIMQ.js} +1 -1
- package/dist/{chunk-Y7RQUJUS.js → chunk-NWPPTOKK.js} +5 -5
- package/dist/{chunk-4C2TISN7.js → chunk-OPUCWQMK.js} +1 -1
- package/dist/{chunk-GWHKALYQ.js → chunk-PBLWYVQF.js} +2 -2
- package/dist/{chunk-E4DUADXU.js → chunk-PYAKYQWS.js} +1 -1
- package/dist/{chunk-DXA3WUSX.js → chunk-PZTZ4436.js} +2 -2
- package/dist/{chunk-6CNJ5ZCC.js → chunk-Q76C6FJ5.js} +3 -3
- package/dist/{chunk-JNNJVBHF.js → chunk-QBRCVOJ4.js} +14 -10
- package/dist/{chunk-HGOGF6I7.js → chunk-QEZ7L6YF.js} +1 -1
- package/dist/{chunk-435FPPZK.js → chunk-QFVQ6QPA.js} +2 -2
- package/dist/{chunk-WTMJTGW4.js → chunk-QON4D7N2.js} +2 -2
- package/dist/chunk-QTPYP3IK.js +27 -0
- package/dist/{chunk-LH7GLNMY.js → chunk-QZMD3YHI.js} +1 -1
- package/dist/{chunk-VXKNN4SF.js → chunk-RQLRNKOP.js} +17 -16
- package/dist/{chunk-7FHOKVKJ.js → chunk-RRXB5FQC.js} +7 -7
- package/dist/{chunk-AAFUVYVP.js → chunk-SCIQSZSW.js} +1 -1
- package/dist/{chunk-5TTLUOJ5.js → chunk-SIYZ5PZT.js} +1 -1
- package/dist/{chunk-K7FYXGOI.js → chunk-TMIBU4ME.js} +1 -1
- package/dist/{chunk-LTCJ6LNO.js → chunk-TN5UPDZG.js} +1 -1
- package/dist/{chunk-IBZBPQMZ.js → chunk-UAUAYQ3C.js} +14 -5
- package/dist/{chunk-LGKXPUSI.js → chunk-VF5KSAZG.js} +3 -3
- package/dist/{chunk-GSKTHUQJ.js → chunk-XLKL3DNK.js} +2 -2
- package/dist/{chunk-OKXC33OU.js → chunk-XQIQOMNE.js} +5 -2
- package/dist/{chunk-PG2W2HVB.js → chunk-YG5BANJH.js} +2 -2
- package/dist/{chunk-4JHXRPRB.js → chunk-YXAKRSFW.js} +9 -6
- package/dist/{chunk-2AGBCGOW.js → chunk-ZR2TARGX.js} +2 -2
- package/dist/components/Badge.cjs +7784 -7418
- package/dist/components/Badge.d.cts +146 -7
- package/dist/components/Badge.d.ts +146 -7
- package/dist/components/Badge.js +22 -25
- package/dist/components/Banner/Banner.cjs +53 -27
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +20 -20
- package/dist/components/Button.cjs +39 -25
- package/dist/components/Button.d.cts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +22 -22
- package/dist/components/ButtonRow.cjs +42 -28
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +24 -24
- package/dist/components/CardPage.cjs +16 -5
- package/dist/components/CardPage.js +26 -26
- package/dist/components/Checkbox.cjs +6 -4
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/CodeBlock.cjs +16 -5
- package/dist/components/CodeBlock.js +9 -9
- package/dist/components/CodeInput/CodeInput.cjs +16 -5
- package/dist/components/CodeInput/CodeInput.js +7 -7
- package/dist/components/CodeInput/SingleCodeInput.cjs +16 -5
- package/dist/components/CodeInput/SingleCodeInput.js +6 -6
- package/dist/components/Collapsible.cjs +81 -8
- package/dist/components/Collapsible.js +7 -7
- package/dist/components/CommaNumberInput.cjs +16 -5
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +12 -12
- package/dist/components/ContentTable.cjs +16 -5
- package/dist/components/ContentTable.js +5 -5
- package/dist/components/CopyToClipboardButton.cjs +16 -5
- package/dist/components/CopyToClipboardButton.js +7 -7
- package/dist/components/CurrencyAmount.cjs +16 -5
- package/dist/components/CurrencyAmount.js +5 -5
- package/dist/components/Drawer.cjs +121 -44
- package/dist/components/Drawer.js +24 -24
- package/dist/components/Dropdown.cjs +16 -5
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +7 -7
- package/dist/components/FileInput.cjs +16 -5
- package/dist/components/FileInput.js +11 -11
- package/dist/components/GradientCardHeader.cjs +3 -1
- package/dist/components/GradientCardHeader.js +6 -6
- package/dist/components/Icon/Icon.cjs +16 -5
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +4 -4
- package/dist/components/IconWithCircleBackground.cjs +7349 -7340
- package/dist/components/IconWithCircleBackground.js +5 -74
- package/dist/components/InfoIconTooltip.cjs +56 -30
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +21 -21
- package/dist/components/LightsparkProvider.cjs +16 -5
- package/dist/components/LightsparkProvider.js +5 -5
- package/dist/components/Loading.cjs +16 -5
- package/dist/components/Loading.js +5 -5
- package/dist/components/Modal.cjs +205 -128
- package/dist/components/Modal.d.cts +9 -9
- package/dist/components/Modal.d.ts +9 -9
- package/dist/components/Modal.js +29 -70
- package/dist/components/PageSection/PageSection.cjs +208 -98
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +29 -33
- package/dist/components/PageSection/PageSectionNav.cjs +48 -22
- package/dist/components/PageSection/PageSectionNav.js +22 -22
- package/dist/components/PhoneInput.cjs +16 -5
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +12 -12
- package/dist/components/Pill.cjs +16 -5
- package/dist/components/Pill.js +8 -8
- package/dist/components/ProgressBar.cjs +16 -5
- package/dist/components/ProgressBar.js +4 -4
- package/dist/components/Radio.cjs +7412 -7339
- package/dist/components/Radio.js +10 -24
- package/dist/components/SecretContainer.cjs +16 -5
- package/dist/components/SecretContainer.js +8 -8
- package/dist/components/StatusIndicator.cjs +3 -1
- package/dist/components/StatusIndicator.js +5 -5
- package/dist/components/TextButton.cjs +44 -18
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +21 -21
- package/dist/components/TextIconAligner.cjs +38 -12
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +19 -19
- package/dist/components/TextInput.cjs +16 -5
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +11 -11
- package/dist/components/Toasts.cjs +64 -38
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +22 -22
- package/dist/components/Toggle.cjs +107 -98
- package/dist/components/Toggle.js +5 -5
- package/dist/components/Tooltip.cjs +16 -5
- package/dist/components/Tooltip.js +4 -4
- package/dist/components/UnstyledButton.cjs +3 -1
- package/dist/components/UnstyledButton.js +4 -4
- package/dist/components/documentation/AnchorLinkHeader.cjs +16 -5
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +10 -10
- package/dist/components/documentation/DocsBodyParagraph.cjs +16 -5
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +8 -8
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -5
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +8 -8
- package/dist/components/documentation/DocsHeadline.cjs +16 -5
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +9 -9
- package/dist/components/documentation/Video.cjs +3 -1
- package/dist/components/documentation/Video.js +3 -3
- package/dist/components/documentation/index.cjs +16 -5
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +10 -10
- package/dist/components/index.cjs +8343 -8176
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +71 -72
- package/dist/components/typography/Article.cjs +103 -30
- package/dist/components/typography/Article.js +16 -16
- package/dist/components/typography/Body.cjs +16 -5
- package/dist/components/typography/Body.d.cts +2 -2
- package/dist/components/typography/Body.d.ts +2 -2
- package/dist/components/typography/Body.js +8 -8
- package/dist/components/typography/BodyStrong.cjs +16 -5
- package/dist/components/typography/BodyStrong.d.cts +2 -2
- package/dist/components/typography/BodyStrong.d.ts +2 -2
- package/dist/components/typography/BodyStrong.js +8 -8
- package/dist/components/typography/Code.cjs +16 -5
- package/dist/components/typography/Code.d.cts +2 -2
- package/dist/components/typography/Code.d.ts +2 -2
- package/dist/components/typography/Code.js +8 -8
- package/dist/components/typography/Display.cjs +16 -5
- package/dist/components/typography/Display.d.cts +2 -2
- package/dist/components/typography/Display.d.ts +2 -2
- package/dist/components/typography/Display.js +8 -8
- package/dist/components/typography/Headline.cjs +16 -5
- package/dist/components/typography/Headline.d.cts +2 -2
- package/dist/components/typography/Headline.d.ts +2 -2
- package/dist/components/typography/Headline.js +8 -8
- package/dist/components/typography/Label.cjs +16 -5
- package/dist/components/typography/Label.d.cts +2 -2
- package/dist/components/typography/Label.d.ts +2 -2
- package/dist/components/typography/Label.js +8 -8
- package/dist/components/typography/LabelModerate.cjs +16 -5
- package/dist/components/typography/LabelModerate.d.cts +2 -2
- package/dist/components/typography/LabelModerate.d.ts +2 -2
- package/dist/components/typography/LabelModerate.js +8 -8
- package/dist/components/typography/LabelStrong.cjs +16 -5
- package/dist/components/typography/LabelStrong.d.cts +2 -2
- package/dist/components/typography/LabelStrong.d.ts +2 -2
- package/dist/components/typography/LabelStrong.js +8 -8
- package/dist/components/typography/Overline.cjs +16 -5
- package/dist/components/typography/Overline.d.cts +2 -2
- package/dist/components/typography/Overline.d.ts +2 -2
- package/dist/components/typography/Overline.js +8 -8
- package/dist/components/typography/Title.cjs +16 -5
- package/dist/components/typography/Title.d.cts +3 -3
- package/dist/components/typography/Title.d.ts +3 -3
- package/dist/components/typography/Title.js +8 -8
- package/dist/components/typography/index.cjs +103 -30
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +24 -25
- package/dist/components/typography/renderTypography.cjs +32 -8
- package/dist/components/typography/renderTypography.d.cts +20 -20
- package/dist/components/typography/renderTypography.d.ts +20 -20
- package/dist/components/typography/renderTypography.js +18 -18
- package/dist/router.cjs +3 -1
- package/dist/router.js +2 -2
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/colors.cjs +3 -1
- package/dist/styles/colors.d.cts +3 -1
- package/dist/styles/colors.d.ts +3 -1
- package/dist/styles/colors.js +1 -1
- package/dist/styles/common.cjs +16 -5
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +3 -3
- package/dist/styles/fields.cjs +16 -5
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +5 -5
- package/dist/styles/global.cjs +16 -5
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +4 -4
- package/dist/styles/themes.cjs +16 -5
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +2 -2
- package/dist/styles/tokens/spacing.cjs +60 -21
- package/dist/styles/tokens/spacing.d.cts +40 -20
- package/dist/styles/tokens/spacing.d.ts +40 -20
- package/dist/styles/tokens/spacing.js +1 -1
- package/dist/styles/type.cjs +3 -1
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +5 -5
- package/dist/styles/typography.cjs +16 -5
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +3 -3
- package/dist/styles/utils.cjs +3 -1
- package/dist/styles/utils.js +4 -4
- package/dist/{buttons-36cdd0fe.d.ts → themes-37e92940.d.ts} +91 -74
- package/dist/{buttons-35280bfe.d.ts → themes-832e46b2.d.ts} +91 -74
- package/dist/utils/toNonTypographicReactNodes.cjs +16 -5
- package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.js +6 -6
- package/dist/utils/toReactNodes.cjs +57 -22
- package/dist/utils/toReactNodes.d.cts +13 -9
- package/dist/utils/toReactNodes.d.ts +13 -9
- package/dist/utils/toReactNodes.js +21 -19
- package/package.json +2 -2
- package/dist/chunk-3XSQV5U4.js +0 -26
- package/dist/chunk-B2VYAIYR.js +0 -0
- package/dist/chunk-SEZEDINC.js +0 -35
|
@@ -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");
|
|
@@ -192,7 +204,6 @@ var neutral = {
|
|
|
192
204
|
gray30: "#4D4D4D",
|
|
193
205
|
gray40: "#666666",
|
|
194
206
|
gray50: "#808080",
|
|
195
|
-
gray57: "#8B8E98",
|
|
196
207
|
gray60: "#999999",
|
|
197
208
|
gray70: "#B3B3B3",
|
|
198
209
|
gray80: "#CCCCCC",
|
|
@@ -216,10 +227,13 @@ var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
|
216
227
|
blue37: "#21529c",
|
|
217
228
|
blue58: "#28BFFF",
|
|
218
229
|
// less than 50% saturated blue
|
|
230
|
+
grayBlue5: "#0c0d0f",
|
|
219
231
|
grayBlue9: "#16171A",
|
|
232
|
+
grayBlue18: "#21283a",
|
|
220
233
|
grayBlue32: "#4F5156",
|
|
221
234
|
grayBlue43: "#686A72",
|
|
222
235
|
grayBlue45: "#676F80",
|
|
236
|
+
grayBlue57: "#8B8E98",
|
|
223
237
|
grayBlue67: "#9BA7B9",
|
|
224
238
|
grayBlue80: "#C0C9D6",
|
|
225
239
|
grayBlue88: "#DEDFE4",
|
|
@@ -3596,8 +3610,7 @@ var baseThemeColors = {
|
|
|
3596
3610
|
success: colors.success,
|
|
3597
3611
|
text: colors.black,
|
|
3598
3612
|
vlcNeutral: colors.gray95,
|
|
3599
|
-
warning: colors.warning
|
|
3600
|
-
inputBackground: colors.white
|
|
3613
|
+
warning: colors.warning
|
|
3601
3614
|
};
|
|
3602
3615
|
var themeOrColorKeyValues = [
|
|
3603
3616
|
...Object.keys(baseThemeColors),
|
|
@@ -3609,6 +3622,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3609
3622
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3610
3623
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3611
3624
|
buttons: defaultButtonsTheme,
|
|
3625
|
+
badge: {
|
|
3626
|
+
bg: "c05Neutral"
|
|
3627
|
+
},
|
|
3628
|
+
inputBackground: colors.white,
|
|
3612
3629
|
loading: "LoadingSpinner"
|
|
3613
3630
|
});
|
|
3614
3631
|
var lightBaseTheme = baseTheme;
|
|
@@ -3646,7 +3663,10 @@ var darkBaseTheme = {
|
|
|
3646
3663
|
warning: colors.warning,
|
|
3647
3664
|
buttons: defaultButtonsTheme,
|
|
3648
3665
|
loading: "LoadingSpinner",
|
|
3649
|
-
inputBackground: colors.black
|
|
3666
|
+
inputBackground: colors.black,
|
|
3667
|
+
badge: {
|
|
3668
|
+
bg: "c15Neutral"
|
|
3669
|
+
}
|
|
3650
3670
|
};
|
|
3651
3671
|
var lightTheme = extend(lightBaseTheme, {
|
|
3652
3672
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3762,7 +3782,10 @@ var bridgeBaseSettings = {
|
|
|
3762
3782
|
defaultBorderWidth: 1
|
|
3763
3783
|
}
|
|
3764
3784
|
}
|
|
3765
|
-
})
|
|
3785
|
+
}),
|
|
3786
|
+
badge: {
|
|
3787
|
+
bg: "grayBlue94"
|
|
3788
|
+
}
|
|
3766
3789
|
};
|
|
3767
3790
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3768
3791
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -4233,7 +4256,11 @@ function select(component) {
|
|
|
4233
4256
|
}
|
|
4234
4257
|
|
|
4235
4258
|
// src/utils/toReactNodes.tsx
|
|
4236
|
-
var
|
|
4259
|
+
var import_lodash_es4 = require("lodash-es");
|
|
4260
|
+
var import_react26 = require("react");
|
|
4261
|
+
|
|
4262
|
+
// src/components/typography/renderTypography.tsx
|
|
4263
|
+
var import_react25 = __toESM(require("react"), 1);
|
|
4237
4264
|
|
|
4238
4265
|
// src/components/typography/Body.tsx
|
|
4239
4266
|
var import_styled5 = __toESM(require("@emotion/styled"), 1);
|
|
@@ -8591,7 +8618,6 @@ var StyledTitle = import_styled14.default.span`
|
|
|
8591
8618
|
`;
|
|
8592
8619
|
|
|
8593
8620
|
// src/components/typography/renderTypography.tsx
|
|
8594
|
-
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8595
8621
|
var typographyMap = {
|
|
8596
8622
|
Display,
|
|
8597
8623
|
Headline,
|
|
@@ -8603,60 +8629,144 @@ var typographyMap = {
|
|
|
8603
8629
|
"Label Strong": LabelStrong,
|
|
8604
8630
|
Overline,
|
|
8605
8631
|
Code: Code2,
|
|
8606
|
-
"Code Strong":
|
|
8632
|
+
"Code Strong": Code2
|
|
8607
8633
|
};
|
|
8608
8634
|
var renderTypography = (type, props) => {
|
|
8609
8635
|
const TypographyComponent = typographyMap[type];
|
|
8610
|
-
|
|
8636
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8637
|
+
return import_react25.default.createElement(TypographyComponent, rest, children);
|
|
8611
8638
|
};
|
|
8612
8639
|
|
|
8613
8640
|
// src/utils/toReactNodes.tsx
|
|
8614
|
-
var
|
|
8641
|
+
var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
|
|
8615
8642
|
function toReactNodes(toReactNodesArg) {
|
|
8616
8643
|
const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
|
|
8617
8644
|
const reactNodes = toReactNodesArray.map((node, i) => {
|
|
8618
8645
|
let content;
|
|
8619
8646
|
if (!node) {
|
|
8620
8647
|
return null;
|
|
8621
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
8622
|
-
|
|
8648
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
8649
|
+
const props = node.typography.props || {};
|
|
8650
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_react26.Fragment, { children: renderTypography(
|
|
8623
8651
|
node.typography.type,
|
|
8624
|
-
Object.assign(
|
|
8625
|
-
content: node
|
|
8626
|
-
})
|
|
8652
|
+
Object.assign(props, { content: node })
|
|
8627
8653
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
8628
8654
|
} else {
|
|
8629
8655
|
content = toNonTypographicReactNodes(node);
|
|
8630
8656
|
}
|
|
8631
8657
|
return content || null;
|
|
8632
8658
|
});
|
|
8633
|
-
return /* @__PURE__ */ (0,
|
|
8659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_react26.Fragment, { children: reactNodes });
|
|
8660
|
+
}
|
|
8661
|
+
function setReactNodesTypography(nodesArg, nodesTypographyMap, replaceExistingTypography = true) {
|
|
8662
|
+
const nodes = Array.isArray(nodesArg) ? nodesArg : [nodesArg];
|
|
8663
|
+
const nodesWithTypography = nodes.map((node, i) => {
|
|
8664
|
+
if (isIconNode(node)) {
|
|
8665
|
+
return node;
|
|
8666
|
+
} else if (typeof node === "string") {
|
|
8667
|
+
if (nodesTypographyMap.text) {
|
|
8668
|
+
return {
|
|
8669
|
+
text: node,
|
|
8670
|
+
typography: nodesTypographyMap.text
|
|
8671
|
+
};
|
|
8672
|
+
}
|
|
8673
|
+
} else if (!node) {
|
|
8674
|
+
return node;
|
|
8675
|
+
}
|
|
8676
|
+
const useExistingTypography = !replaceExistingTypography && (0, import_lodash_es4.isObject)(node) && "typography" in node ? node.typography : void 0;
|
|
8677
|
+
if (isLinkNode(node)) {
|
|
8678
|
+
if (nodesTypographyMap.link) {
|
|
8679
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8680
|
+
typography: useExistingTypography || nodesTypographyMap.link
|
|
8681
|
+
});
|
|
8682
|
+
}
|
|
8683
|
+
} else if (isExternalLinkNode(node)) {
|
|
8684
|
+
if (nodesTypographyMap.externalLink) {
|
|
8685
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8686
|
+
typography: useExistingTypography || nodesTypographyMap.externalLink
|
|
8687
|
+
});
|
|
8688
|
+
}
|
|
8689
|
+
} else if (isNextLinkNode(node)) {
|
|
8690
|
+
if (nodesTypographyMap.nextLink) {
|
|
8691
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8692
|
+
typography: useExistingTypography || nodesTypographyMap.nextLink
|
|
8693
|
+
});
|
|
8694
|
+
}
|
|
8695
|
+
} else if (isTextNode(node)) {
|
|
8696
|
+
if (nodesTypographyMap.text) {
|
|
8697
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
8698
|
+
typography: useExistingTypography || nodesTypographyMap.text
|
|
8699
|
+
});
|
|
8700
|
+
}
|
|
8701
|
+
}
|
|
8702
|
+
return node;
|
|
8703
|
+
});
|
|
8704
|
+
return nodesWithTypography;
|
|
8705
|
+
}
|
|
8706
|
+
function setDefaultReactNodesTypography(nodesArg, nodesTypographyMap) {
|
|
8707
|
+
return setReactNodesTypography(nodesArg, nodesTypographyMap, false);
|
|
8634
8708
|
}
|
|
8635
8709
|
|
|
8636
8710
|
// src/components/Badge.tsx
|
|
8637
8711
|
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
8638
|
-
var
|
|
8639
|
-
function Badge({
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8712
|
+
var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
|
|
8713
|
+
function Badge({
|
|
8714
|
+
content: contentProp,
|
|
8715
|
+
kind,
|
|
8716
|
+
icon,
|
|
8717
|
+
ml = 0,
|
|
8718
|
+
mr = 0,
|
|
8719
|
+
size: size2 = "sm",
|
|
8720
|
+
block = false,
|
|
8721
|
+
typography: typographyProp
|
|
8722
|
+
}) {
|
|
8723
|
+
const typography = {
|
|
8724
|
+
type: (typographyProp == null ? void 0 : typographyProp.type) || "Label Moderate",
|
|
8725
|
+
props: {
|
|
8726
|
+
size: (typographyProp == null ? void 0 : typographyProp.size) || "Small",
|
|
8727
|
+
color: (typographyProp == null ? void 0 : typographyProp.color) || (kind === "danger" ? "danger" : "text")
|
|
8728
|
+
}
|
|
8729
|
+
};
|
|
8730
|
+
const typographyMap2 = {
|
|
8731
|
+
link: typography,
|
|
8732
|
+
externalLink: typography,
|
|
8733
|
+
text: typography,
|
|
8734
|
+
nextLink: typography
|
|
8735
|
+
};
|
|
8736
|
+
let content = setDefaultReactNodesTypography(
|
|
8737
|
+
contentProp,
|
|
8738
|
+
typographyMap2
|
|
8739
|
+
);
|
|
8740
|
+
content = toReactNodes(content);
|
|
8741
|
+
return contentProp ? /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(StyledBadge, { kind, ml, size: size2, block, children: [
|
|
8742
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon, { name: icon.name, width: 20, color: icon.color }) : null,
|
|
8743
|
+
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)(BadgeContent, { children: content })
|
|
8744
|
+
] }) : null;
|
|
8745
|
+
}
|
|
8746
|
+
var badgeSmVPadding = 2;
|
|
8747
|
+
var badgeSmHPadding = 6;
|
|
8748
|
+
var StyledBadge = import_styled15.default.div`
|
|
8749
|
+
${({ size: size2 }) => standardBorderRadius(size2 === "sm" ? 4 : 12)}
|
|
8645
8750
|
${({ ml }) => ml === 0 ? "" : `margin-left: ${ml}px;`}
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8751
|
+
|
|
8752
|
+
display: ${({ block }) => block ? "flex" : "inline-flex"};
|
|
8753
|
+
gap: ${({ size: size2 }) => size2 === "sm" ? badgeSmHPadding : 12}px;
|
|
8754
|
+
align-items: center;
|
|
8755
|
+
padding: ${({ size: size2 }) => size2 === "sm" ? `${badgeSmVPadding}px ${badgeSmHPadding}px` : "12px 16px"};
|
|
8756
|
+
background-color: ${({ theme, kind }) => {
|
|
8757
|
+
if (kind === "danger") {
|
|
8649
8758
|
return getColor(theme, "red42a10");
|
|
8650
8759
|
} else {
|
|
8651
|
-
return
|
|
8760
|
+
return getColor(theme, theme.badge.bg);
|
|
8652
8761
|
}
|
|
8653
8762
|
}};
|
|
8654
8763
|
`;
|
|
8764
|
+
var BadgeContent = import_styled15.default.div``;
|
|
8655
8765
|
|
|
8656
8766
|
// src/components/Dropdown.tsx
|
|
8657
|
-
var
|
|
8767
|
+
var import_react27 = require("@emotion/react");
|
|
8658
8768
|
var import_styled17 = __toESM(require("@emotion/styled"), 1);
|
|
8659
|
-
var
|
|
8769
|
+
var import_react28 = require("react");
|
|
8660
8770
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
8661
8771
|
|
|
8662
8772
|
// src/styles/constants.ts
|
|
@@ -8679,7 +8789,7 @@ var UnstyledButton = import_styled16.default.button`
|
|
|
8679
8789
|
`;
|
|
8680
8790
|
|
|
8681
8791
|
// src/components/Dropdown.tsx
|
|
8682
|
-
var
|
|
8792
|
+
var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
|
|
8683
8793
|
function Dropdown({
|
|
8684
8794
|
button,
|
|
8685
8795
|
dropdownItems,
|
|
@@ -8696,22 +8806,22 @@ function Dropdown({
|
|
|
8696
8806
|
footer = null,
|
|
8697
8807
|
dropdownContent = null
|
|
8698
8808
|
}) {
|
|
8699
|
-
const theme = (0,
|
|
8700
|
-
const [isOpen, setIsOpen] = (0,
|
|
8701
|
-
const [dropdownButtonHeight, setDropdownButtonHeight] = (0,
|
|
8702
|
-
const [dropdownButtonWidth, setDropdownButtonWidth] = (0,
|
|
8703
|
-
const [dropdownCoords, setDropdownCoords] = (0,
|
|
8809
|
+
const theme = (0, import_react27.useTheme)();
|
|
8810
|
+
const [isOpen, setIsOpen] = (0, import_react28.useState)(false);
|
|
8811
|
+
const [dropdownButtonHeight, setDropdownButtonHeight] = (0, import_react28.useState)(0);
|
|
8812
|
+
const [dropdownButtonWidth, setDropdownButtonWidth] = (0, import_react28.useState)(0);
|
|
8813
|
+
const [dropdownCoords, setDropdownCoords] = (0, import_react28.useState)({
|
|
8704
8814
|
top: 0,
|
|
8705
8815
|
left: 0,
|
|
8706
8816
|
right: 0
|
|
8707
8817
|
});
|
|
8708
|
-
const dropdownRef = (0,
|
|
8709
|
-
const dropdownButtonRef = (0,
|
|
8710
|
-
const dropdownItemsRef = (0,
|
|
8711
|
-
const [dropdownItemsWidth, setDropdownItemsWidth] = (0,
|
|
8712
|
-
const nodeRef = (0,
|
|
8713
|
-
const [nodeReady, setNodeReady] = (0,
|
|
8714
|
-
(0,
|
|
8818
|
+
const dropdownRef = (0, import_react28.useRef)(null);
|
|
8819
|
+
const dropdownButtonRef = (0, import_react28.useRef)(null);
|
|
8820
|
+
const dropdownItemsRef = (0, import_react28.useRef)(null);
|
|
8821
|
+
const [dropdownItemsWidth, setDropdownItemsWidth] = (0, import_react28.useState)(0);
|
|
8822
|
+
const nodeRef = (0, import_react28.useRef)(null);
|
|
8823
|
+
const [nodeReady, setNodeReady] = (0, import_react28.useState)(false);
|
|
8824
|
+
(0, import_react28.useEffect)(() => {
|
|
8715
8825
|
if (!nodeRef.current) {
|
|
8716
8826
|
nodeRef.current = document.createElement("div");
|
|
8717
8827
|
document.body.appendChild(nodeRef.current);
|
|
@@ -8724,7 +8834,7 @@ function Dropdown({
|
|
|
8724
8834
|
}
|
|
8725
8835
|
};
|
|
8726
8836
|
}, []);
|
|
8727
|
-
const setOpen = (0,
|
|
8837
|
+
const setOpen = (0, import_react28.useCallback)(
|
|
8728
8838
|
(newValue) => {
|
|
8729
8839
|
setIsOpen(newValue);
|
|
8730
8840
|
if (newValue && onOpen) {
|
|
@@ -8750,13 +8860,13 @@ function Dropdown({
|
|
|
8750
8860
|
setOpen(false);
|
|
8751
8861
|
}
|
|
8752
8862
|
}
|
|
8753
|
-
const handleRef = (0,
|
|
8863
|
+
const handleRef = (0, import_react28.useCallback)((ref) => {
|
|
8754
8864
|
if (ref && !dropdownButtonRef.current) {
|
|
8755
8865
|
dropdownButtonRef.current = ref;
|
|
8756
8866
|
}
|
|
8757
8867
|
return ref;
|
|
8758
8868
|
}, []);
|
|
8759
|
-
(0,
|
|
8869
|
+
(0, import_react28.useEffect)(() => {
|
|
8760
8870
|
function handleClickOutside(event) {
|
|
8761
8871
|
const targetOutsideDropdownItems = dropdownItemsRef.current && !dropdownItemsRef.current.contains(event.target);
|
|
8762
8872
|
const targetOutsideDropdownButton = dropdownButtonRef.current && !dropdownButtonRef.current.contains(event.target);
|
|
@@ -8769,7 +8879,7 @@ function Dropdown({
|
|
|
8769
8879
|
window.document.removeEventListener("mousedown", handleClickOutside);
|
|
8770
8880
|
};
|
|
8771
8881
|
}, [isOpen, setOpen]);
|
|
8772
|
-
const reposition = (0,
|
|
8882
|
+
const reposition = (0, import_react28.useCallback)(() => {
|
|
8773
8883
|
if (dropdownButtonRef.current && dropdownItemsRef.current) {
|
|
8774
8884
|
const dropdownButtonRect = dropdownButtonRef.current.getBoundingClientRect();
|
|
8775
8885
|
setDropdownCoords({
|
|
@@ -8783,7 +8893,7 @@ function Dropdown({
|
|
|
8783
8893
|
setDropdownItemsWidth(dropdownItemsRect.width);
|
|
8784
8894
|
}
|
|
8785
8895
|
}, []);
|
|
8786
|
-
(0,
|
|
8896
|
+
(0, import_react28.useLayoutEffect)(() => {
|
|
8787
8897
|
function onWindowResize() {
|
|
8788
8898
|
setOpen(false);
|
|
8789
8899
|
reposition();
|
|
@@ -8821,7 +8931,7 @@ function Dropdown({
|
|
|
8821
8931
|
dropdownResizeObserver == null ? void 0 : dropdownResizeObserver.disconnect();
|
|
8822
8932
|
};
|
|
8823
8933
|
}, [setOpen, horizontalScrollRef, closeOnScroll, reposition]);
|
|
8824
|
-
const handleClickDropdownItems = (0,
|
|
8934
|
+
const handleClickDropdownItems = (0, import_react28.useCallback)(() => {
|
|
8825
8935
|
setOpen(false);
|
|
8826
8936
|
onClickDropdownItems && onClickDropdownItems();
|
|
8827
8937
|
}, [onClickDropdownItems, setOpen]);
|
|
@@ -8835,13 +8945,13 @@ function Dropdown({
|
|
|
8835
8945
|
}
|
|
8836
8946
|
const buttonContent = button.label || button.getContent && button.getContent({ isOpen, theme });
|
|
8837
8947
|
const containerCSS = getCSS && getCSS({ isOpen, theme });
|
|
8838
|
-
return /* @__PURE__ */ (0,
|
|
8948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8839
8949
|
"div",
|
|
8840
8950
|
{
|
|
8841
8951
|
css: __spreadValues({ position: "relative", display: "inline-flex" }, containerCSS),
|
|
8842
8952
|
ref: dropdownRef,
|
|
8843
8953
|
children: [
|
|
8844
|
-
/* @__PURE__ */ (0,
|
|
8954
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8845
8955
|
DropdownButton,
|
|
8846
8956
|
{
|
|
8847
8957
|
id: button.id,
|
|
@@ -8869,7 +8979,7 @@ function Dropdown({
|
|
|
8869
8979
|
}
|
|
8870
8980
|
),
|
|
8871
8981
|
nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
|
|
8872
|
-
/* @__PURE__ */ (0,
|
|
8982
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8873
8983
|
DropdownItems,
|
|
8874
8984
|
{
|
|
8875
8985
|
isOpen,
|
|
@@ -8880,7 +8990,7 @@ function Dropdown({
|
|
|
8880
8990
|
maxWidth: maxDropdownItemsWidth,
|
|
8881
8991
|
children: [
|
|
8882
8992
|
dropdownItems == null ? void 0 : dropdownItems.map((dropdownItem, i) => {
|
|
8883
|
-
return /* @__PURE__ */ (0,
|
|
8993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("li", { onBlur: handleBlur, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8884
8994
|
DropdownItem,
|
|
8885
8995
|
{
|
|
8886
8996
|
dropdownItem,
|
|
@@ -8889,7 +8999,7 @@ function Dropdown({
|
|
|
8889
8999
|
) }, dropdownItem.label);
|
|
8890
9000
|
}),
|
|
8891
9001
|
dropdownContent,
|
|
8892
|
-
footer && /* @__PURE__ */ (0,
|
|
9002
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(DropdownFooter, { children: footer })
|
|
8893
9003
|
]
|
|
8894
9004
|
}
|
|
8895
9005
|
),
|
|
@@ -8923,9 +9033,9 @@ function DropdownItem({
|
|
|
8923
9033
|
dropdownItem,
|
|
8924
9034
|
onClick
|
|
8925
9035
|
}) {
|
|
8926
|
-
const theme = (0,
|
|
9036
|
+
const theme = (0, import_react27.useTheme)();
|
|
8927
9037
|
const dropdownItemIcon = dropdownItem.getIcon && dropdownItem.getIcon({ dropdownItem, theme });
|
|
8928
|
-
const dropdownItemIconNode = dropdownItemIcon ? /* @__PURE__ */ (0,
|
|
9038
|
+
const dropdownItemIconNode = dropdownItemIcon ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8929
9039
|
Icon,
|
|
8930
9040
|
{
|
|
8931
9041
|
name: dropdownItemIcon.name,
|
|
@@ -8934,12 +9044,12 @@ function DropdownItem({
|
|
|
8934
9044
|
}
|
|
8935
9045
|
) : null;
|
|
8936
9046
|
const cssProp2 = dropdownItem.getCSS && dropdownItem.getCSS({ theme, dropdownItem });
|
|
8937
|
-
const onClickDropdownItem = (0,
|
|
9047
|
+
const onClickDropdownItem = (0, import_react28.useCallback)(() => {
|
|
8938
9048
|
dropdownItem.onClick && dropdownItem.onClick(dropdownItem);
|
|
8939
9049
|
onClick && onClick();
|
|
8940
9050
|
}, [dropdownItem, onClick]);
|
|
8941
9051
|
if (dropdownItem.to !== void 0 || dropdownItem.externalLink) {
|
|
8942
|
-
return /* @__PURE__ */ (0,
|
|
9052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8943
9053
|
DropdownItemLink,
|
|
8944
9054
|
{
|
|
8945
9055
|
selected: Boolean(dropdownItem.selected),
|
|
@@ -8956,7 +9066,7 @@ function DropdownItem({
|
|
|
8956
9066
|
}
|
|
8957
9067
|
);
|
|
8958
9068
|
}
|
|
8959
|
-
return /* @__PURE__ */ (0,
|
|
9069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8960
9070
|
DropdownItemDiv,
|
|
8961
9071
|
{
|
|
8962
9072
|
selected: false,
|
|
@@ -8993,13 +9103,13 @@ var dropdownItemStyle = ({ selected, theme }) => `
|
|
|
8993
9103
|
var cssProp = ({
|
|
8994
9104
|
theme,
|
|
8995
9105
|
selected
|
|
8996
|
-
}) =>
|
|
9106
|
+
}) => import_react27.css`
|
|
8997
9107
|
${dropdownItemStyle({ theme, selected: Boolean(selected) })}
|
|
8998
9108
|
${standardFocusOutline({ theme })}
|
|
8999
9109
|
`;
|
|
9000
9110
|
function DropdownItemLink(props) {
|
|
9001
|
-
const theme = (0,
|
|
9002
|
-
return /* @__PURE__ */ (0,
|
|
9111
|
+
const theme = (0, import_react27.useTheme)();
|
|
9112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
9003
9113
|
Link,
|
|
9004
9114
|
__spreadProps(__spreadValues({}, props), {
|
|
9005
9115
|
css: cssProp({ theme, selected: Boolean(props.selected) })
|
|
@@ -9012,9 +9122,9 @@ var DropdownItemDiv = import_styled17.default.div`
|
|
|
9012
9122
|
`;
|
|
9013
9123
|
|
|
9014
9124
|
// src/components/Loading.tsx
|
|
9015
|
-
var
|
|
9125
|
+
var import_react29 = require("@emotion/react");
|
|
9016
9126
|
var import_styled18 = __toESM(require("@emotion/styled"), 1);
|
|
9017
|
-
var
|
|
9127
|
+
var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
|
|
9018
9128
|
var defaultProps = {
|
|
9019
9129
|
size: 60,
|
|
9020
9130
|
center: true,
|
|
@@ -9025,8 +9135,8 @@ function Loading({
|
|
|
9025
9135
|
size: size2 = defaultProps.size,
|
|
9026
9136
|
ml = defaultProps.ml
|
|
9027
9137
|
}) {
|
|
9028
|
-
const theme = (0,
|
|
9029
|
-
return /* @__PURE__ */ (0,
|
|
9138
|
+
const theme = (0, import_react29.useTheme)();
|
|
9139
|
+
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 }) }) });
|
|
9030
9140
|
}
|
|
9031
9141
|
Loading.defaultProps = defaultProps;
|
|
9032
9142
|
var LoadingWrapper = import_styled18.default.div`
|
|
@@ -9064,11 +9174,11 @@ var Rotate = import_styled18.default.div`
|
|
|
9064
9174
|
`;
|
|
9065
9175
|
|
|
9066
9176
|
// src/components/TextButton.tsx
|
|
9067
|
-
var
|
|
9177
|
+
var import_react30 = require("@emotion/react");
|
|
9068
9178
|
var import_styled19 = __toESM(require("@emotion/styled"), 1);
|
|
9069
9179
|
|
|
9070
9180
|
// src/components/TextIconAligner.tsx
|
|
9071
|
-
var
|
|
9181
|
+
var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
|
|
9072
9182
|
function TextIconAligner({
|
|
9073
9183
|
content,
|
|
9074
9184
|
typography,
|
|
@@ -9081,7 +9191,7 @@ function TextIconAligner({
|
|
|
9081
9191
|
size: (typography == null ? void 0 : typography.size) || "Small",
|
|
9082
9192
|
color: (typography == null ? void 0 : typography.color) || "inherit"
|
|
9083
9193
|
});
|
|
9084
|
-
const leftIconNode = leftIcon ? /* @__PURE__ */ (0,
|
|
9194
|
+
const leftIconNode = leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9085
9195
|
Icon,
|
|
9086
9196
|
{
|
|
9087
9197
|
name: leftIcon.name,
|
|
@@ -9090,7 +9200,7 @@ function TextIconAligner({
|
|
|
9090
9200
|
color: leftIcon.color
|
|
9091
9201
|
}
|
|
9092
9202
|
) : null;
|
|
9093
|
-
const rightIconNode = rightIcon ? /* @__PURE__ */ (0,
|
|
9203
|
+
const rightIconNode = rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9094
9204
|
Icon,
|
|
9095
9205
|
{
|
|
9096
9206
|
name: rightIcon.name,
|
|
@@ -9099,7 +9209,7 @@ function TextIconAligner({
|
|
|
9099
9209
|
color: rightIcon.color
|
|
9100
9210
|
}
|
|
9101
9211
|
) : null;
|
|
9102
|
-
return /* @__PURE__ */ (0,
|
|
9212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
|
|
9103
9213
|
"span",
|
|
9104
9214
|
{
|
|
9105
9215
|
css: {
|
|
@@ -9118,7 +9228,7 @@ function TextIconAligner({
|
|
|
9118
9228
|
}
|
|
9119
9229
|
|
|
9120
9230
|
// src/components/TextButton.tsx
|
|
9121
|
-
var
|
|
9231
|
+
var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
|
|
9122
9232
|
function TextButton({
|
|
9123
9233
|
text: textProp,
|
|
9124
9234
|
to,
|
|
@@ -9144,7 +9254,7 @@ function TextButton({
|
|
|
9144
9254
|
};
|
|
9145
9255
|
}
|
|
9146
9256
|
const defaultIconColor = iconMatchTextColor ? void 0 : "mcNeutral";
|
|
9147
|
-
const content = /* @__PURE__ */ (0,
|
|
9257
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
9148
9258
|
TextIconAligner,
|
|
9149
9259
|
{
|
|
9150
9260
|
onClick,
|
|
@@ -9174,15 +9284,15 @@ function TextButton({
|
|
|
9174
9284
|
}
|
|
9175
9285
|
};
|
|
9176
9286
|
if (to) {
|
|
9177
|
-
return /* @__PURE__ */ (0,
|
|
9287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ButtonLink, __spreadProps(__spreadValues({}, commonProps), { to, params: toParams, children: content }));
|
|
9178
9288
|
}
|
|
9179
|
-
return href ? /* @__PURE__ */ (0,
|
|
9289
|
+
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 }));
|
|
9180
9290
|
}
|
|
9181
9291
|
var buttonStyle = ({
|
|
9182
9292
|
theme,
|
|
9183
9293
|
disabled,
|
|
9184
9294
|
padding
|
|
9185
|
-
}) =>
|
|
9295
|
+
}) => import_react30.css`
|
|
9186
9296
|
display: inline-flex;
|
|
9187
9297
|
opacity: ${disabled ? 0.2 : 1};
|
|
9188
9298
|
align-items: center;
|
|
@@ -9214,15 +9324,15 @@ var ButtonHrefLink = import_styled19.default.a`
|
|
|
9214
9324
|
var pageSectionScrollOffset = 20;
|
|
9215
9325
|
|
|
9216
9326
|
// src/components/PageSection/PageSection.tsx
|
|
9217
|
-
var
|
|
9327
|
+
var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
|
|
9218
9328
|
function PageSection({
|
|
9219
9329
|
children,
|
|
9220
9330
|
title,
|
|
9221
9331
|
sectionId,
|
|
9222
9332
|
headerOffset = 0
|
|
9223
9333
|
}) {
|
|
9224
|
-
return /* @__PURE__ */ (0,
|
|
9225
|
-
title ? /* @__PURE__ */ (0,
|
|
9334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(StyledPageSection, { scrollMarginTop: headerOffset + pageSectionScrollOffset, children: [
|
|
9335
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Heading, { type: "h3", id: sectionId, mt: 0, mb: 40, children: title }) : null,
|
|
9226
9336
|
children
|
|
9227
9337
|
] });
|
|
9228
9338
|
}
|
|
@@ -9250,9 +9360,9 @@ var PageSectionBoxActionColumn = ({
|
|
|
9250
9360
|
label,
|
|
9251
9361
|
value,
|
|
9252
9362
|
valueId
|
|
9253
|
-
}) => /* @__PURE__ */ (0,
|
|
9254
|
-
/* @__PURE__ */ (0,
|
|
9255
|
-
value ? /* @__PURE__ */ (0,
|
|
9363
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(StyledPageSectionBoxActionColumn, { children: [
|
|
9364
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxActionColumnLabel, { children: label }),
|
|
9365
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxActionColumnValue, { id: valueId, children: value }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxActionColumnNoValue, { children: "Unknown" })
|
|
9256
9366
|
] });
|
|
9257
9367
|
var StyledPageSectionBoxActionColumn = import_styled20.default.div``;
|
|
9258
9368
|
var PageSectionBoxActionColumnLabel = import_styled20.default.div`
|
|
@@ -9283,18 +9393,18 @@ function PageSectionBoxAction({
|
|
|
9283
9393
|
to,
|
|
9284
9394
|
toParams
|
|
9285
9395
|
}) {
|
|
9286
|
-
const theme = (0,
|
|
9287
|
-
return loading ? /* @__PURE__ */ (0,
|
|
9396
|
+
const theme = (0, import_react31.useTheme)();
|
|
9397
|
+
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)(
|
|
9288
9398
|
Dropdown,
|
|
9289
9399
|
{
|
|
9290
9400
|
button: {
|
|
9291
|
-
getContent: () => /* @__PURE__ */ (0,
|
|
9401
|
+
getContent: () => /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { name: "DotGrid1x3Horizontal", width: 16 })
|
|
9292
9402
|
},
|
|
9293
9403
|
dropdownItems
|
|
9294
9404
|
}
|
|
9295
|
-
) : isDelete ? /* @__PURE__ */ (0,
|
|
9405
|
+
) : isDelete ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(UnstyledButton, { css: { color: theme.mcNeutral }, onClick, children: "Delete" }) : label ? (
|
|
9296
9406
|
/* Extra div for proper default alignment inside flex contexts */
|
|
9297
|
-
/* @__PURE__ */ (0,
|
|
9407
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
|
|
9298
9408
|
TextButton,
|
|
9299
9409
|
{
|
|
9300
9410
|
leftIcon: icon,
|
|
@@ -9315,21 +9425,21 @@ var PageSectionBoxActionRow = ({
|
|
|
9315
9425
|
action,
|
|
9316
9426
|
smFlexColumn = true
|
|
9317
9427
|
}) => {
|
|
9318
|
-
return /* @__PURE__ */ (0,
|
|
9428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_react32.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
|
|
9319
9429
|
SPageSectionBoxActionRow,
|
|
9320
9430
|
{
|
|
9321
9431
|
separator: Boolean(separator),
|
|
9322
9432
|
smFlexColumn: Boolean(smFlexColumn),
|
|
9323
9433
|
children: [
|
|
9324
|
-
title ? /* @__PURE__ */ (0,
|
|
9325
|
-
/* @__PURE__ */ (0,
|
|
9434
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { children: [
|
|
9435
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(PageSectionBoxTitle, { children: [
|
|
9326
9436
|
title,
|
|
9327
|
-
titleBadge ? /* @__PURE__ */ (0,
|
|
9437
|
+
titleBadge ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Badge, { content: titleBadge, ml: 4 }) : null
|
|
9328
9438
|
] }),
|
|
9329
|
-
description ? /* @__PURE__ */ (0,
|
|
9439
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxDescription, { children: description }) : null
|
|
9330
9440
|
] }) : null,
|
|
9331
9441
|
children,
|
|
9332
|
-
/* @__PURE__ */ (0,
|
|
9442
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxAction, __spreadValues({}, action))
|
|
9333
9443
|
]
|
|
9334
9444
|
}
|
|
9335
9445
|
) });
|
|
@@ -9377,10 +9487,10 @@ function PageSectionBox({
|
|
|
9377
9487
|
description,
|
|
9378
9488
|
children
|
|
9379
9489
|
}) {
|
|
9380
|
-
return /* @__PURE__ */ (0,
|
|
9381
|
-
description && /* @__PURE__ */ (0,
|
|
9490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(StyledPageSectionBox, { children: [
|
|
9491
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(PageSectionBoxDescription, { children: toReactNodes(description) }),
|
|
9382
9492
|
children,
|
|
9383
|
-
(action == null ? void 0 : action.label) ? /* @__PURE__ */ (0,
|
|
9493
|
+
(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
|
|
9384
9494
|
] });
|
|
9385
9495
|
}
|
|
9386
9496
|
var StyledPageSectionBox = import_styled20.default.div`
|
|
@@ -9446,7 +9556,7 @@ var PageSectionBoxTitle = import_styled20.default.div`
|
|
|
9446
9556
|
align-items: center;
|
|
9447
9557
|
font-size: ${({ lg }) => lg ? 14 : 12}px;
|
|
9448
9558
|
font-weight: 600;
|
|
9449
|
-
line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) +
|
|
9559
|
+
line-height: ${({ lg }) => standardLineHeightEms * (lg ? 14 : 12) + badgeSmVPadding * 2}px;
|
|
9450
9560
|
`;
|
|
9451
9561
|
var PageSectionBoxDescription = import_styled20.default.div`
|
|
9452
9562
|
color: ${({ theme }) => theme.mcNeutral};
|