@lightsparkdev/ui 1.0.3 → 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 +6 -0
- package/dist/{chunk-X4TGLNCH.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-7N2PFDYE.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-K7FYXGOI.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-SNFRMD6Z.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-LH7GLNMY.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-XDP7GCYE.js → chunk-4X67A2CS.js} +1 -1
- package/dist/{chunk-QQSV7XJX.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-BENSR2YW.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-XB4KQFK2.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-BDZ46Z2I.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-2AGBCGOW.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-Y7RQUJUS.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-XM2HQVUK.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-6CNJ5ZCC.js → chunk-7RMHMFS2.js} +3 -3
- package/dist/{chunk-35PJW7RT.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-BHP5YL2N.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-KX5QZXCD.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-YRNEIRHM.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-LOL5TJ3H.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-2XUHQWCJ.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-PG2W2HVB.js → chunk-CZFFMEAS.js} +1 -1
- package/dist/{chunk-MRGHRTKA.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-5TTLUOJ5.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-J3YVJWRG.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-UH5F35II.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-7WDAN3OC.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-WGKUDRZ7.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-GWHKALYQ.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-LTCJ6LNO.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-JNNJVBHF.js → chunk-JH53NBOD.js} +13 -9
- package/dist/{chunk-BSH6WRUZ.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-LGKXPUSI.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-E4DUADXU.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-VXKNN4SF.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-435FPPZK.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-MWDDIXIP.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-SLKPLSJU.js → chunk-MNMVZI7D.js} +10 -10
- package/dist/{chunk-WTMJTGW4.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-4C2TISN7.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-CRTTTIAD.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-7FHOKVKJ.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-ILEZ6AWT.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-DXA3WUSX.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-7YY6BH5O.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-7IHNYMFQ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-I3FI3FNP.js → chunk-TNDSUTUN.js} +2 -2
- package/dist/{chunk-PQKVR2BR.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-4BFBANKF.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-B6S7Y4K7.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-IBZBPQMZ.js → chunk-VNQE6KEX.js} +13 -4
- package/dist/{chunk-HGOGF6I7.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-54EOEIEN.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-4JHXRPRB.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-YIHC25WB.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-C4KZC45Y.js → chunk-XS4MH3QA.js} +54 -71
- package/dist/{chunk-OKXC33OU.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-GSKTHUQJ.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-N2NPIZCV.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-LIQSJ5R7.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-RPNTFEXE.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7781 -7417
- 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 +50 -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 +36 -24
- 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 +39 -27
- 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 +13 -4
- 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 +13 -4
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +13 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +13 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +78 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +13 -4
- 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 +13 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +13 -4
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +13 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +118 -43
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +13 -4
- 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 +13 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +13 -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 +7347 -7340
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +53 -29
- 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 +13 -4
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +13 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +202 -127
- package/dist/components/Modal.d.cts +9 -9
- package/dist/components/Modal.d.ts +9 -9
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +205 -97
- 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 +45 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +13 -4
- 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 +13 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +13 -4
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7406 -7335
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +13 -4
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +41 -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 +35 -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 +13 -4
- 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 +61 -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 +105 -98
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +13 -4
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +13 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- 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.js +2 -2
- package/dist/components/documentation/index.cjs +13 -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 +8341 -8176
- 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 +100 -29
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +100 -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 +29 -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 +13 -4
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +13 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- 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-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 +13 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +54 -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-SEZEDINC.js +0 -35
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextInput,
|
|
3
3
|
TextInputHalfRow
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ZCXGHQQF.js";
|
|
5
|
+
import "../chunk-4BERRPJN.js";
|
|
6
|
+
import "../chunk-7RMHMFS2.js";
|
|
7
|
+
import "../chunk-OUHQXQOJ.js";
|
|
8
|
+
import "../chunk-LFD2KVAB.js";
|
|
9
|
+
import "../chunk-ZS7G6WIG.js";
|
|
10
|
+
import "../chunk-JAPRGAB7.js";
|
|
11
11
|
import "../chunk-55OQPFLF.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-TNDSUTUN.js";
|
|
13
13
|
import "../chunk-EDN2QDCB.js";
|
|
14
14
|
import "../chunk-FT62PIPN.js";
|
|
15
15
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -124,8 +124,8 @@ import "../chunk-VI6WTKMV.js";
|
|
|
124
124
|
import "../chunk-QW2INB5A.js";
|
|
125
125
|
import "../chunk-JLD7MGLC.js";
|
|
126
126
|
import "../chunk-DW6LFUI2.js";
|
|
127
|
-
import "../chunk-
|
|
128
|
-
import "../chunk-
|
|
127
|
+
import "../chunk-CZFFMEAS.js";
|
|
128
|
+
import "../chunk-VNQE6KEX.js";
|
|
129
129
|
import "../chunk-ENBUKLVT.js";
|
|
130
130
|
import "../chunk-JSGRNWSB.js";
|
|
131
131
|
import "../chunk-FO7I4E45.js";
|
|
@@ -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 });
|
|
@@ -71,8 +83,8 @@ __export(Toasts_exports, {
|
|
|
71
83
|
});
|
|
72
84
|
module.exports = __toCommonJS(Toasts_exports);
|
|
73
85
|
var import_styled14 = __toESM(require("@emotion/styled"), 1);
|
|
74
|
-
var
|
|
75
|
-
var
|
|
86
|
+
var import_lodash_es5 = require("lodash-es");
|
|
87
|
+
var import_react24 = require("react");
|
|
76
88
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
77
89
|
|
|
78
90
|
// src/styles/colors.tsx
|
|
@@ -3586,8 +3598,7 @@ var baseThemeColors = {
|
|
|
3586
3598
|
success: colors.success,
|
|
3587
3599
|
text: colors.black,
|
|
3588
3600
|
vlcNeutral: colors.gray95,
|
|
3589
|
-
warning: colors.warning
|
|
3590
|
-
inputBackground: colors.white
|
|
3601
|
+
warning: colors.warning
|
|
3591
3602
|
};
|
|
3592
3603
|
var themeOrColorKeyValues = [
|
|
3593
3604
|
...Object.keys(baseThemeColors),
|
|
@@ -3599,6 +3610,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3599
3610
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3600
3611
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3601
3612
|
buttons: defaultButtonsTheme,
|
|
3613
|
+
badge: {
|
|
3614
|
+
bg: "c05Neutral"
|
|
3615
|
+
},
|
|
3616
|
+
inputBackground: colors.white,
|
|
3602
3617
|
loading: "LoadingSpinner"
|
|
3603
3618
|
});
|
|
3604
3619
|
var lightBaseTheme = baseTheme;
|
|
@@ -3636,7 +3651,10 @@ var darkBaseTheme = {
|
|
|
3636
3651
|
warning: colors.warning,
|
|
3637
3652
|
buttons: defaultButtonsTheme,
|
|
3638
3653
|
loading: "LoadingSpinner",
|
|
3639
|
-
inputBackground: colors.black
|
|
3654
|
+
inputBackground: colors.black,
|
|
3655
|
+
badge: {
|
|
3656
|
+
bg: "c15Neutral"
|
|
3657
|
+
}
|
|
3640
3658
|
};
|
|
3641
3659
|
var lightTheme = extend(lightBaseTheme, {
|
|
3642
3660
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3752,7 +3770,10 @@ var bridgeBaseSettings = {
|
|
|
3752
3770
|
defaultBorderWidth: 1
|
|
3753
3771
|
}
|
|
3754
3772
|
}
|
|
3755
|
-
})
|
|
3773
|
+
}),
|
|
3774
|
+
badge: {
|
|
3775
|
+
bg: "grayBlue94"
|
|
3776
|
+
}
|
|
3756
3777
|
};
|
|
3757
3778
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3758
3779
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3978,7 +3999,11 @@ var z = {
|
|
|
3978
3999
|
};
|
|
3979
4000
|
|
|
3980
4001
|
// src/utils/toReactNodes.tsx
|
|
3981
|
-
var
|
|
4002
|
+
var import_lodash_es4 = require("lodash-es");
|
|
4003
|
+
var import_react23 = require("react");
|
|
4004
|
+
|
|
4005
|
+
// src/components/typography/renderTypography.tsx
|
|
4006
|
+
var import_react22 = __toESM(require("react"), 1);
|
|
3982
4007
|
|
|
3983
4008
|
// src/components/typography/Body.tsx
|
|
3984
4009
|
var import_styled3 = __toESM(require("@emotion/styled"), 1);
|
|
@@ -8328,7 +8353,6 @@ var StyledTitle = import_styled12.default.span`
|
|
|
8328
8353
|
`;
|
|
8329
8354
|
|
|
8330
8355
|
// src/components/typography/renderTypography.tsx
|
|
8331
|
-
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8332
8356
|
var typographyMap = {
|
|
8333
8357
|
Display,
|
|
8334
8358
|
Headline,
|
|
@@ -8340,34 +8364,34 @@ var typographyMap = {
|
|
|
8340
8364
|
"Label Strong": LabelStrong,
|
|
8341
8365
|
Overline,
|
|
8342
8366
|
Code: Code2,
|
|
8343
|
-
"Code Strong":
|
|
8367
|
+
"Code Strong": Code2
|
|
8344
8368
|
};
|
|
8345
8369
|
var renderTypography = (type, props) => {
|
|
8346
8370
|
const TypographyComponent = typographyMap[type];
|
|
8347
|
-
|
|
8371
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8372
|
+
return import_react22.default.createElement(TypographyComponent, rest, children);
|
|
8348
8373
|
};
|
|
8349
8374
|
|
|
8350
8375
|
// src/utils/toReactNodes.tsx
|
|
8351
|
-
var
|
|
8376
|
+
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8352
8377
|
function toReactNodes(toReactNodesArg) {
|
|
8353
8378
|
const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
|
|
8354
8379
|
const reactNodes = toReactNodesArray.map((node, i) => {
|
|
8355
8380
|
let content;
|
|
8356
8381
|
if (!node) {
|
|
8357
8382
|
return null;
|
|
8358
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
8359
|
-
|
|
8383
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
8384
|
+
const props = node.typography.props || {};
|
|
8385
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react23.Fragment, { children: renderTypography(
|
|
8360
8386
|
node.typography.type,
|
|
8361
|
-
Object.assign(
|
|
8362
|
-
content: node
|
|
8363
|
-
})
|
|
8387
|
+
Object.assign(props, { content: node })
|
|
8364
8388
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
8365
8389
|
} else {
|
|
8366
8390
|
content = toNonTypographicReactNodes(node);
|
|
8367
8391
|
}
|
|
8368
8392
|
return content || null;
|
|
8369
8393
|
});
|
|
8370
|
-
return /* @__PURE__ */ (0,
|
|
8394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react23.Fragment, { children: reactNodes });
|
|
8371
8395
|
}
|
|
8372
8396
|
|
|
8373
8397
|
// src/components/UnstyledButton.tsx
|
|
@@ -8387,7 +8411,7 @@ var UnstyledButton = import_styled13.default.button`
|
|
|
8387
8411
|
`;
|
|
8388
8412
|
|
|
8389
8413
|
// src/components/Toasts.tsx
|
|
8390
|
-
var
|
|
8414
|
+
var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
|
|
8391
8415
|
var firstDur = 0.3;
|
|
8392
8416
|
function Toasts({
|
|
8393
8417
|
queue,
|
|
@@ -8398,14 +8422,14 @@ function Toasts({
|
|
|
8398
8422
|
removeExpiredAndNotVisible = true,
|
|
8399
8423
|
dedupeConsecutive = true
|
|
8400
8424
|
}) {
|
|
8401
|
-
const queuedToastIds = (0,
|
|
8402
|
-
const prevToastQueue = (0,
|
|
8403
|
-
const [toastQueue, setToastQueue] = (0,
|
|
8404
|
-
const autoHideTimeoutRef = (0,
|
|
8405
|
-
const hidingTimeoutRefs = (0,
|
|
8406
|
-
const nodeRef = (0,
|
|
8407
|
-
const [nodeReady, setNodeReady] = (0,
|
|
8408
|
-
const hideToast = (0,
|
|
8425
|
+
const queuedToastIds = (0, import_react24.useRef)(/* @__PURE__ */ new Set());
|
|
8426
|
+
const prevToastQueue = (0, import_react24.useRef)([]);
|
|
8427
|
+
const [toastQueue, setToastQueue] = (0, import_react24.useState)([]);
|
|
8428
|
+
const autoHideTimeoutRef = (0, import_react24.useRef)(null);
|
|
8429
|
+
const hidingTimeoutRefs = (0, import_react24.useRef)({});
|
|
8430
|
+
const nodeRef = (0, import_react24.useRef)(null);
|
|
8431
|
+
const [nodeReady, setNodeReady] = (0, import_react24.useState)(false);
|
|
8432
|
+
const hideToast = (0, import_react24.useCallback)(
|
|
8409
8433
|
(id) => {
|
|
8410
8434
|
setToastQueue((currentToastQueue) => {
|
|
8411
8435
|
const hideToastIndex = currentToastQueue.findIndex((t) => t.id === id);
|
|
@@ -8439,7 +8463,7 @@ function Toasts({
|
|
|
8439
8463
|
},
|
|
8440
8464
|
[onHide, setToastQueue]
|
|
8441
8465
|
);
|
|
8442
|
-
(0,
|
|
8466
|
+
(0, import_react24.useEffect)(() => {
|
|
8443
8467
|
const newToastQueueArgs = queue.reduce((acc, toast) => {
|
|
8444
8468
|
if (toast.expires < Date.now()) {
|
|
8445
8469
|
onHide(toast.id);
|
|
@@ -8454,7 +8478,7 @@ function Toasts({
|
|
|
8454
8478
|
const newToasts = newToastQueueArgs.reduce((acc, toast) => {
|
|
8455
8479
|
if (dedupeConsecutive && acc.length) {
|
|
8456
8480
|
const lastToast = acc[acc.length - 1];
|
|
8457
|
-
if ((0,
|
|
8481
|
+
if ((0, import_lodash_es5.isEqual)(toast.text, lastToast.text)) {
|
|
8458
8482
|
return acc;
|
|
8459
8483
|
}
|
|
8460
8484
|
}
|
|
@@ -8469,14 +8493,14 @@ function Toasts({
|
|
|
8469
8493
|
}, []);
|
|
8470
8494
|
setToastQueue((currentToastQueue) => {
|
|
8471
8495
|
const currentToast2 = currentToastQueue[currentToastQueue.length - 1];
|
|
8472
|
-
if (dedupeConsecutive && currentToast2 && (0,
|
|
8496
|
+
if (dedupeConsecutive && currentToast2 && (0, import_lodash_es5.isEqual)(newToasts[0].text, currentToast2.text)) {
|
|
8473
8497
|
return currentToastQueue;
|
|
8474
8498
|
}
|
|
8475
8499
|
return [...currentToastQueue, ...newToasts];
|
|
8476
8500
|
});
|
|
8477
8501
|
}
|
|
8478
8502
|
}, [queue, hideToast, onHide, dedupeConsecutive]);
|
|
8479
|
-
(0,
|
|
8503
|
+
(0, import_react24.useEffect)(() => {
|
|
8480
8504
|
if (prevToastQueue.current.length !== toastQueue.length) {
|
|
8481
8505
|
const currentToast2 = toastQueue[toastQueue.length - 1];
|
|
8482
8506
|
if (currentToast2 && !currentToast2.isHiding) {
|
|
@@ -8493,7 +8517,7 @@ function Toasts({
|
|
|
8493
8517
|
prevToastQueue.current = toastQueue;
|
|
8494
8518
|
}
|
|
8495
8519
|
}, [toastQueue, hideToast, onHide]);
|
|
8496
|
-
(0,
|
|
8520
|
+
(0, import_react24.useEffect)(() => {
|
|
8497
8521
|
if (!nodeRef.current) {
|
|
8498
8522
|
nodeRef.current = document.createElement("div");
|
|
8499
8523
|
document.body.appendChild(nodeRef.current);
|
|
@@ -8507,7 +8531,7 @@ function Toasts({
|
|
|
8507
8531
|
};
|
|
8508
8532
|
}, []);
|
|
8509
8533
|
const currentToastIndex = toastQueue.length - 1;
|
|
8510
|
-
(0,
|
|
8534
|
+
(0, import_react24.useEffect)(() => {
|
|
8511
8535
|
if (removeExpiredAndNotVisible) {
|
|
8512
8536
|
setToastQueue((currentToastQueue) => {
|
|
8513
8537
|
const newToastQueue = currentToastQueue.filter((toast, i) => {
|
|
@@ -8526,9 +8550,9 @@ function Toasts({
|
|
|
8526
8550
|
const fromCurrent = i === currentToastIndex ? 0 : currentToastIndex - i;
|
|
8527
8551
|
const movingToCurrent = currentToast.isHiding && i === currentToastIndex - 1;
|
|
8528
8552
|
const hidingFromCurrent = currentToast.isHiding ? fromCurrent - 1 : fromCurrent;
|
|
8529
|
-
const textNode = /* @__PURE__ */ (0,
|
|
8530
|
-
return /* @__PURE__ */ (0,
|
|
8531
|
-
/* @__PURE__ */ (0,
|
|
8553
|
+
const textNode = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", { children: toast.text ? toReactNodes(toast.text) : null });
|
|
8554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_react24.Fragment, { children: import_react_dom.default.createPortal(
|
|
8555
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
|
|
8532
8556
|
StyledToast,
|
|
8533
8557
|
{
|
|
8534
8558
|
isActive: toast.isActive,
|
|
@@ -8548,7 +8572,7 @@ function Toasts({
|
|
|
8548
8572
|
movingToCurrent,
|
|
8549
8573
|
children: [
|
|
8550
8574
|
textNode,
|
|
8551
|
-
/* @__PURE__ */ (0,
|
|
8575
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
8552
8576
|
UnstyledButton,
|
|
8553
8577
|
{
|
|
8554
8578
|
css: extend2(flexCenter, {
|
|
@@ -8560,7 +8584,7 @@ function Toasts({
|
|
|
8560
8584
|
outlineColor: `${colors.white} !important`
|
|
8561
8585
|
}),
|
|
8562
8586
|
onClick: () => hideToast(toast.id),
|
|
8563
|
-
children: /* @__PURE__ */ (0,
|
|
8587
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { name: "Close", width: 9 })
|
|
8564
8588
|
}
|
|
8565
8589
|
)
|
|
8566
8590
|
]
|
|
@@ -6,7 +6,7 @@ import './typography/renderTypography.cjs';
|
|
|
6
6
|
import './typography/Code.cjs';
|
|
7
7
|
import '@emotion/styled';
|
|
8
8
|
import 'react';
|
|
9
|
-
import '../
|
|
9
|
+
import '../themes-37e92940.js';
|
|
10
10
|
import '@emotion/css';
|
|
11
11
|
import '../styles/colors.cjs';
|
|
12
12
|
import '../utils/toNonTypographicReactNodes.cjs';
|
|
@@ -6,7 +6,7 @@ import './typography/renderTypography.js';
|
|
|
6
6
|
import './typography/Code.js';
|
|
7
7
|
import '@emotion/styled';
|
|
8
8
|
import 'react';
|
|
9
|
-
import '../
|
|
9
|
+
import '../themes-832e46b2.js';
|
|
10
10
|
import '@emotion/css';
|
|
11
11
|
import '../styles/colors.js';
|
|
12
12
|
import '../utils/toNonTypographicReactNodes.js';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Toasts
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-CRTTTIAD.js";
|
|
3
|
+
} from "../chunk-PDQVYUEW.js";
|
|
4
|
+
import "../chunk-ZO35RX7V.js";
|
|
5
|
+
import "../chunk-LGXMGWLV.js";
|
|
6
|
+
import "../chunk-V523QTZQ.js";
|
|
7
|
+
import "../chunk-YRZ3VNBI.js";
|
|
8
|
+
import "../chunk-HPZVUEDJ.js";
|
|
9
|
+
import "../chunk-7COKMITX.js";
|
|
10
|
+
import "../chunk-DIKOS5R6.js";
|
|
11
|
+
import "../chunk-AZOVE32P.js";
|
|
12
|
+
import "../chunk-HVDX4OZJ.js";
|
|
13
|
+
import "../chunk-OMY3WTAU.js";
|
|
14
|
+
import "../chunk-OZQ5WPLN.js";
|
|
16
15
|
import "../chunk-YMNSXZ5D.js";
|
|
17
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-7BSME2ZU.js";
|
|
17
|
+
import "../chunk-4X67A2CS.js";
|
|
18
18
|
import "../chunk-OPV246QW.js";
|
|
19
19
|
import "../chunk-AAFUVYVP.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-OUHQXQOJ.js";
|
|
21
|
+
import "../chunk-JAPRGAB7.js";
|
|
22
22
|
import "../chunk-55OQPFLF.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-GQVNE3NU.js";
|
|
24
|
+
import "../chunk-TNDSUTUN.js";
|
|
25
25
|
import "../chunk-EDN2QDCB.js";
|
|
26
26
|
import "../chunk-FT62PIPN.js";
|
|
27
27
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -136,8 +136,8 @@ import "../chunk-VI6WTKMV.js";
|
|
|
136
136
|
import "../chunk-QW2INB5A.js";
|
|
137
137
|
import "../chunk-JLD7MGLC.js";
|
|
138
138
|
import "../chunk-DW6LFUI2.js";
|
|
139
|
-
import "../chunk-
|
|
140
|
-
import "../chunk-
|
|
139
|
+
import "../chunk-CZFFMEAS.js";
|
|
140
|
+
import "../chunk-VNQE6KEX.js";
|
|
141
141
|
import "../chunk-ENBUKLVT.js";
|
|
142
142
|
import "../chunk-JSGRNWSB.js";
|
|
143
143
|
import "../chunk-FO7I4E45.js";
|
|
@@ -53,8 +53,97 @@ __export(Toggle_exports, {
|
|
|
53
53
|
module.exports = __toCommonJS(Toggle_exports);
|
|
54
54
|
var import_styled3 = __toESM(require("@emotion/styled"), 1);
|
|
55
55
|
|
|
56
|
-
// src/
|
|
57
|
-
var
|
|
56
|
+
// src/styles/colors.tsx
|
|
57
|
+
var neutral = {
|
|
58
|
+
black: "#000000",
|
|
59
|
+
gray5: "#0D0D0D",
|
|
60
|
+
gray10: "#1A1A1A",
|
|
61
|
+
gray15: "#262626",
|
|
62
|
+
gray20: "#333333",
|
|
63
|
+
gray25: "#404040",
|
|
64
|
+
gray30: "#4D4D4D",
|
|
65
|
+
gray40: "#666666",
|
|
66
|
+
gray50: "#808080",
|
|
67
|
+
gray57: "#8B8E98",
|
|
68
|
+
gray60: "#999999",
|
|
69
|
+
gray70: "#B3B3B3",
|
|
70
|
+
gray80: "#CCCCCC",
|
|
71
|
+
gray85: "#D9D9D9",
|
|
72
|
+
gray90: "#E6E6E6",
|
|
73
|
+
gray91: "#171717",
|
|
74
|
+
gray95: "#F2F2F2",
|
|
75
|
+
gray98: "#F9F9F9",
|
|
76
|
+
white: "#FFFFFF"
|
|
77
|
+
};
|
|
78
|
+
var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
|
|
79
|
+
var primary = "#FFF14E";
|
|
80
|
+
var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
81
|
+
// green
|
|
82
|
+
success: "#17C27C",
|
|
83
|
+
green33: "#179257",
|
|
84
|
+
// blue
|
|
85
|
+
blue43: "#145BC6",
|
|
86
|
+
blue22: "#0E2E60",
|
|
87
|
+
blue39: "#0068C9",
|
|
88
|
+
blue37: "#21529c",
|
|
89
|
+
blue58: "#28BFFF",
|
|
90
|
+
// less than 50% saturated blue
|
|
91
|
+
grayBlue9: "#16171A",
|
|
92
|
+
grayBlue32: "#4F5156",
|
|
93
|
+
grayBlue43: "#686A72",
|
|
94
|
+
grayBlue45: "#676F80",
|
|
95
|
+
grayBlue67: "#9BA7B9",
|
|
96
|
+
grayBlue80: "#C0C9D6",
|
|
97
|
+
grayBlue88: "#DEDFE4",
|
|
98
|
+
grayBlue94: "#EBEEF2",
|
|
99
|
+
grayBlue96: "#F2F5F7",
|
|
100
|
+
// purple
|
|
101
|
+
purple43: "#820AD1",
|
|
102
|
+
purple55: "#8B38DE",
|
|
103
|
+
// red
|
|
104
|
+
red42a10: "#D800271A",
|
|
105
|
+
// yellow
|
|
106
|
+
primary,
|
|
107
|
+
warning: primary,
|
|
108
|
+
// orange
|
|
109
|
+
danger: "#FD2C0F",
|
|
110
|
+
// neutral
|
|
111
|
+
secondary: neutral.black
|
|
112
|
+
});
|
|
113
|
+
var colors = baseColors;
|
|
114
|
+
function hcNeutralFromBg(bgHex, defaultHex = colors.black, altHex = colors.white) {
|
|
115
|
+
const bgRGB = hexToRGB(bgHex);
|
|
116
|
+
const hcRGB = hexToRGB(defaultHex);
|
|
117
|
+
if (!bgRGB || !hcRGB)
|
|
118
|
+
return defaultHex;
|
|
119
|
+
const c = contrast(bgRGB, hcRGB);
|
|
120
|
+
if (c < 4.5) {
|
|
121
|
+
return altHex;
|
|
122
|
+
}
|
|
123
|
+
return defaultHex;
|
|
124
|
+
}
|
|
125
|
+
function luminance(r, g, b) {
|
|
126
|
+
const a = [r, g, b].map(function(v) {
|
|
127
|
+
v /= 255;
|
|
128
|
+
return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
|
|
129
|
+
});
|
|
130
|
+
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
|
|
131
|
+
}
|
|
132
|
+
function contrast(rgb1, rgb2) {
|
|
133
|
+
const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
|
|
134
|
+
const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
|
|
135
|
+
const brightest = Math.max(lum1, lum2);
|
|
136
|
+
const darkest = Math.min(lum1, lum2);
|
|
137
|
+
return (brightest + 0.05) / (darkest + 0.05);
|
|
138
|
+
}
|
|
139
|
+
function hexToRGB(hex) {
|
|
140
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
141
|
+
return result ? [
|
|
142
|
+
parseInt(result[1], 16),
|
|
143
|
+
parseInt(result[2], 16),
|
|
144
|
+
parseInt(result[3], 16)
|
|
145
|
+
] : [0, 0, 0];
|
|
146
|
+
}
|
|
58
147
|
|
|
59
148
|
// src/styles/common.tsx
|
|
60
149
|
var import_react4 = require("@emotion/react");
|
|
@@ -156,98 +245,6 @@ function inRange(currentBp, assertBp) {
|
|
|
156
245
|
return false;
|
|
157
246
|
}
|
|
158
247
|
|
|
159
|
-
// src/styles/colors.tsx
|
|
160
|
-
var neutral = {
|
|
161
|
-
black: "#000000",
|
|
162
|
-
gray5: "#0D0D0D",
|
|
163
|
-
gray10: "#1A1A1A",
|
|
164
|
-
gray15: "#262626",
|
|
165
|
-
gray20: "#333333",
|
|
166
|
-
gray25: "#404040",
|
|
167
|
-
gray30: "#4D4D4D",
|
|
168
|
-
gray40: "#666666",
|
|
169
|
-
gray50: "#808080",
|
|
170
|
-
gray57: "#8B8E98",
|
|
171
|
-
gray60: "#999999",
|
|
172
|
-
gray70: "#B3B3B3",
|
|
173
|
-
gray80: "#CCCCCC",
|
|
174
|
-
gray85: "#D9D9D9",
|
|
175
|
-
gray90: "#E6E6E6",
|
|
176
|
-
gray91: "#171717",
|
|
177
|
-
gray95: "#F2F2F2",
|
|
178
|
-
gray98: "#F9F9F9",
|
|
179
|
-
white: "#FFFFFF"
|
|
180
|
-
};
|
|
181
|
-
var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
|
|
182
|
-
var primary = "#FFF14E";
|
|
183
|
-
var baseColors = __spreadProps(__spreadValues({}, neutral), {
|
|
184
|
-
// green
|
|
185
|
-
success: "#17C27C",
|
|
186
|
-
green33: "#179257",
|
|
187
|
-
// blue
|
|
188
|
-
blue43: "#145BC6",
|
|
189
|
-
blue22: "#0E2E60",
|
|
190
|
-
blue39: "#0068C9",
|
|
191
|
-
blue37: "#21529c",
|
|
192
|
-
blue58: "#28BFFF",
|
|
193
|
-
// less than 50% saturated blue
|
|
194
|
-
grayBlue9: "#16171A",
|
|
195
|
-
grayBlue32: "#4F5156",
|
|
196
|
-
grayBlue43: "#686A72",
|
|
197
|
-
grayBlue45: "#676F80",
|
|
198
|
-
grayBlue67: "#9BA7B9",
|
|
199
|
-
grayBlue80: "#C0C9D6",
|
|
200
|
-
grayBlue88: "#DEDFE4",
|
|
201
|
-
grayBlue94: "#EBEEF2",
|
|
202
|
-
grayBlue96: "#F2F5F7",
|
|
203
|
-
// purple
|
|
204
|
-
purple43: "#820AD1",
|
|
205
|
-
purple55: "#8B38DE",
|
|
206
|
-
// red
|
|
207
|
-
red42a10: "#D800271A",
|
|
208
|
-
// yellow
|
|
209
|
-
primary,
|
|
210
|
-
warning: primary,
|
|
211
|
-
// orange
|
|
212
|
-
danger: "#FD2C0F",
|
|
213
|
-
// neutral
|
|
214
|
-
secondary: neutral.black
|
|
215
|
-
});
|
|
216
|
-
var colors = baseColors;
|
|
217
|
-
function hcNeutralFromBg(bgHex, defaultHex = colors.black, altHex = colors.white) {
|
|
218
|
-
const bgRGB = hexToRGB(bgHex);
|
|
219
|
-
const hcRGB = hexToRGB(defaultHex);
|
|
220
|
-
if (!bgRGB || !hcRGB)
|
|
221
|
-
return defaultHex;
|
|
222
|
-
const c = contrast(bgRGB, hcRGB);
|
|
223
|
-
if (c < 4.5) {
|
|
224
|
-
return altHex;
|
|
225
|
-
}
|
|
226
|
-
return defaultHex;
|
|
227
|
-
}
|
|
228
|
-
function luminance(r, g, b) {
|
|
229
|
-
const a = [r, g, b].map(function(v) {
|
|
230
|
-
v /= 255;
|
|
231
|
-
return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
|
|
232
|
-
});
|
|
233
|
-
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
|
|
234
|
-
}
|
|
235
|
-
function contrast(rgb1, rgb2) {
|
|
236
|
-
const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
|
|
237
|
-
const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
|
|
238
|
-
const brightest = Math.max(lum1, lum2);
|
|
239
|
-
const darkest = Math.min(lum1, lum2);
|
|
240
|
-
return (brightest + 0.05) / (darkest + 0.05);
|
|
241
|
-
}
|
|
242
|
-
function hexToRGB(hex) {
|
|
243
|
-
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
244
|
-
return result ? [
|
|
245
|
-
parseInt(result[1], 16),
|
|
246
|
-
parseInt(result[2], 16),
|
|
247
|
-
parseInt(result[3], 16)
|
|
248
|
-
] : [0, 0, 0];
|
|
249
|
-
}
|
|
250
|
-
|
|
251
248
|
// src/styles/themes.tsx
|
|
252
249
|
var import_react3 = require("@emotion/react");
|
|
253
250
|
var import_deepmerge = __toESM(require("deepmerge"), 1);
|
|
@@ -3512,8 +3509,7 @@ var baseThemeColors = {
|
|
|
3512
3509
|
success: colors.success,
|
|
3513
3510
|
text: colors.black,
|
|
3514
3511
|
vlcNeutral: colors.gray95,
|
|
3515
|
-
warning: colors.warning
|
|
3516
|
-
inputBackground: colors.white
|
|
3512
|
+
warning: colors.warning
|
|
3517
3513
|
};
|
|
3518
3514
|
var themeOrColorKeyValues = [
|
|
3519
3515
|
...Object.keys(baseThemeColors),
|
|
@@ -3525,6 +3521,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3525
3521
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3526
3522
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3527
3523
|
buttons: defaultButtonsTheme,
|
|
3524
|
+
badge: {
|
|
3525
|
+
bg: "c05Neutral"
|
|
3526
|
+
},
|
|
3527
|
+
inputBackground: colors.white,
|
|
3528
3528
|
loading: "LoadingSpinner"
|
|
3529
3529
|
});
|
|
3530
3530
|
var lightBaseTheme = baseTheme;
|
|
@@ -3562,7 +3562,10 @@ var darkBaseTheme = {
|
|
|
3562
3562
|
warning: colors.warning,
|
|
3563
3563
|
buttons: defaultButtonsTheme,
|
|
3564
3564
|
loading: "LoadingSpinner",
|
|
3565
|
-
inputBackground: colors.black
|
|
3565
|
+
inputBackground: colors.black,
|
|
3566
|
+
badge: {
|
|
3567
|
+
bg: "c15Neutral"
|
|
3568
|
+
}
|
|
3566
3569
|
};
|
|
3567
3570
|
var lightTheme = extend(lightBaseTheme, {
|
|
3568
3571
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3678,7 +3681,10 @@ var bridgeBaseSettings = {
|
|
|
3678
3681
|
defaultBorderWidth: 1
|
|
3679
3682
|
}
|
|
3680
3683
|
}
|
|
3681
|
-
})
|
|
3684
|
+
}),
|
|
3685
|
+
badge: {
|
|
3686
|
+
bg: "grayBlue94"
|
|
3687
|
+
}
|
|
3682
3688
|
};
|
|
3683
3689
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3684
3690
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3795,6 +3801,7 @@ var darkGradientBg = import_react4.css`
|
|
|
3795
3801
|
`;
|
|
3796
3802
|
|
|
3797
3803
|
// src/components/UnstyledButton.tsx
|
|
3804
|
+
var import_styled2 = __toESM(require("@emotion/styled"), 1);
|
|
3798
3805
|
var UnstyledButton = import_styled2.default.button`
|
|
3799
3806
|
${standardFocusOutline}
|
|
3800
3807
|
font-family: ${({ theme }) => theme.typography.fontFamilies.main};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Toggle,
|
|
3
3
|
ToggleContainer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-4BERRPJN.js";
|
|
5
|
+
import "../chunk-JAPRGAB7.js";
|
|
6
|
+
import "../chunk-CZFFMEAS.js";
|
|
7
|
+
import "../chunk-VNQE6KEX.js";
|
|
8
8
|
import "../chunk-ENBUKLVT.js";
|
|
9
9
|
import "../chunk-JSGRNWSB.js";
|
|
10
10
|
import "../chunk-FO7I4E45.js";
|
|
@@ -3512,8 +3512,7 @@ var baseThemeColors = {
|
|
|
3512
3512
|
success: colors.success,
|
|
3513
3513
|
text: colors.black,
|
|
3514
3514
|
vlcNeutral: colors.gray95,
|
|
3515
|
-
warning: colors.warning
|
|
3516
|
-
inputBackground: colors.white
|
|
3515
|
+
warning: colors.warning
|
|
3517
3516
|
};
|
|
3518
3517
|
var themeOrColorKeyValues = [
|
|
3519
3518
|
...Object.keys(baseThemeColors),
|
|
@@ -3525,6 +3524,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3525
3524
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3526
3525
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3527
3526
|
buttons: defaultButtonsTheme,
|
|
3527
|
+
badge: {
|
|
3528
|
+
bg: "c05Neutral"
|
|
3529
|
+
},
|
|
3530
|
+
inputBackground: colors.white,
|
|
3528
3531
|
loading: "LoadingSpinner"
|
|
3529
3532
|
});
|
|
3530
3533
|
var lightBaseTheme = baseTheme;
|
|
@@ -3562,7 +3565,10 @@ var darkBaseTheme = {
|
|
|
3562
3565
|
warning: colors.warning,
|
|
3563
3566
|
buttons: defaultButtonsTheme,
|
|
3564
3567
|
loading: "LoadingSpinner",
|
|
3565
|
-
inputBackground: colors.black
|
|
3568
|
+
inputBackground: colors.black,
|
|
3569
|
+
badge: {
|
|
3570
|
+
bg: "c15Neutral"
|
|
3571
|
+
}
|
|
3566
3572
|
};
|
|
3567
3573
|
var lightTheme = extend(lightBaseTheme, {
|
|
3568
3574
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3678,7 +3684,10 @@ var bridgeBaseSettings = {
|
|
|
3678
3684
|
defaultBorderWidth: 1
|
|
3679
3685
|
}
|
|
3680
3686
|
}
|
|
3681
|
-
})
|
|
3687
|
+
}),
|
|
3688
|
+
badge: {
|
|
3689
|
+
bg: "grayBlue94"
|
|
3690
|
+
}
|
|
3682
3691
|
};
|
|
3683
3692
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3684
3693
|
type: "bridgeLight" /* BridgeLight */,
|