@lightsparkdev/ui 1.0.2 → 1.0.3
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/{buttons-e4eb84a2.d.ts → buttons-35280bfe.d.ts} +7 -0
- package/dist/{buttons-b7f56076.d.ts → buttons-36cdd0fe.d.ts} +7 -0
- package/dist/{chunk-GNVEN6UE.js → chunk-2AGBCGOW.js} +2 -2
- package/dist/{chunk-HZ63YB4Y.js → chunk-2XUHQWCJ.js} +3 -3
- package/dist/{chunk-CMQELZES.js → chunk-35PJW7RT.js} +2 -2
- package/dist/{chunk-37RRWSDE.js → chunk-435FPPZK.js} +2 -2
- package/dist/{chunk-55M7XHBZ.js → chunk-4BFBANKF.js} +8 -8
- package/dist/{chunk-VUXU77SU.js → chunk-4C2TISN7.js} +1 -1
- package/dist/{chunk-ZNZAY47J.js → chunk-4JHXRPRB.js} +3 -3
- package/dist/{chunk-XUVCOSIE.js → chunk-54EOEIEN.js} +2 -2
- package/dist/{chunk-BMSSV6NX.js → chunk-5TTLUOJ5.js} +1 -1
- package/dist/{chunk-S6AOKANU.js → chunk-6CNJ5ZCC.js} +4 -4
- package/dist/{chunk-2H7TBKII.js → chunk-7FHOKVKJ.js} +6 -6
- package/dist/{chunk-VYTN6ASZ.js → chunk-7IHNYMFQ.js} +2 -2
- package/dist/{chunk-F6EVBEMN.js → chunk-7N2PFDYE.js} +2 -2
- package/dist/{chunk-KFX7US6Y.js → chunk-7WDAN3OC.js} +1 -1
- package/dist/{chunk-XP3BAAUO.js → chunk-7YY6BH5O.js} +2 -2
- package/dist/{chunk-56QJRFP2.js → chunk-B6S7Y4K7.js} +2 -2
- package/dist/{chunk-SKXCT2FQ.js → chunk-BDZ46Z2I.js} +2 -2
- package/dist/{chunk-EMXTALIX.js → chunk-BENSR2YW.js} +1 -1
- package/dist/{chunk-5H32AOXL.js → chunk-BHP5YL2N.js} +1 -1
- package/dist/{chunk-2XRCGW74.js → chunk-BSH6WRUZ.js} +3 -3
- package/dist/{chunk-WV5AB4ZB.js → chunk-C4KZC45Y.js} +67 -33
- package/dist/{chunk-PNSZAJL7.js → chunk-CRTTTIAD.js} +2 -2
- package/dist/{chunk-CHK5DOMV.js → chunk-DXA3WUSX.js} +2 -2
- package/dist/{chunk-CZQER3QD.js → chunk-E4DUADXU.js} +1 -1
- package/dist/{chunk-CZCPVHVB.js → chunk-GSKTHUQJ.js} +2 -2
- package/dist/{chunk-TM3C4LEG.js → chunk-GWHKALYQ.js} +2 -2
- package/dist/{chunk-5XZJEYHG.js → chunk-HGOGF6I7.js} +1 -1
- package/dist/{chunk-KBYU4ZQ3.js → chunk-I3FI3FNP.js} +3 -3
- package/dist/{chunk-A4JZESAS.js → chunk-IBZBPQMZ.js} +7 -3
- package/dist/{chunk-DNVKN2FG.js → chunk-ILEZ6AWT.js} +3 -3
- package/dist/{chunk-TVLELY54.js → chunk-J3YVJWRG.js} +4 -4
- package/dist/{chunk-467PLJO3.js → chunk-JNNJVBHF.js} +51 -6
- package/dist/{chunk-J7SV67XL.js → chunk-K7FYXGOI.js} +1 -1
- package/dist/{chunk-2JYYREVX.js → chunk-KX5QZXCD.js} +1 -1
- package/dist/{chunk-NYQLPSG3.js → chunk-LGKXPUSI.js} +2 -2
- package/dist/{chunk-AI6DCUWK.js → chunk-LH7GLNMY.js} +1 -1
- package/dist/{chunk-UVGBD7XM.js → chunk-LIQSJ5R7.js} +2 -2
- package/dist/{chunk-W3BAJ3HT.js → chunk-LOL5TJ3H.js} +10 -10
- package/dist/{chunk-6JFJDBV2.js → chunk-LTCJ6LNO.js} +1 -1
- package/dist/{chunk-HRZNVE2K.js → chunk-MRGHRTKA.js} +2 -2
- package/dist/{chunk-HA4AQO3T.js → chunk-MWDDIXIP.js} +1 -1
- package/dist/{chunk-JOQCJPOA.js → chunk-N2NPIZCV.js} +9 -9
- package/dist/{chunk-TM2NGRD2.js → chunk-OKXC33OU.js} +1 -1
- package/dist/{chunk-7NPHOJXD.js → chunk-PG2W2HVB.js} +5 -5
- package/dist/{chunk-SRHSJOES.js → chunk-PQKVR2BR.js} +1 -1
- package/dist/{chunk-YRYVSAWS.js → chunk-QQSV7XJX.js} +1 -1
- package/dist/{chunk-27SFWLPS.js → chunk-RPNTFEXE.js} +1 -1
- package/dist/{chunk-RSAYBOK5.js → chunk-SEZEDINC.js} +3 -3
- package/dist/{chunk-EV6PGQPM.js → chunk-SLKPLSJU.js} +9 -9
- package/dist/{chunk-L6S22JUU.js → chunk-SNFRMD6Z.js} +3 -3
- package/dist/{chunk-OA3BZAST.js → chunk-UH5F35II.js} +3 -3
- package/dist/{chunk-DCFB5MJ7.js → chunk-VXKNN4SF.js} +10 -10
- package/dist/{chunk-UBYBILLK.js → chunk-WGKUDRZ7.js} +2 -2
- package/dist/{chunk-HP4VPMN7.js → chunk-WTMJTGW4.js} +2 -2
- package/dist/{chunk-SGSLTG65.js → chunk-X4TGLNCH.js} +3 -3
- package/dist/{chunk-35WJ3PKH.js → chunk-XB4KQFK2.js} +2 -2
- package/dist/{chunk-6H7PZJ2A.js → chunk-XDP7GCYE.js} +2 -1
- package/dist/{chunk-GGEAODIA.js → chunk-XM2HQVUK.js} +4 -4
- package/dist/{chunk-LL5YLPNM.js → chunk-Y7RQUJUS.js} +5 -5
- package/dist/{chunk-D73OOC3E.js → chunk-YIHC25WB.js} +3 -3
- package/dist/{chunk-UNULJ3P6.js → chunk-YRNEIRHM.js} +4 -4
- package/dist/components/Badge.cjs +9 -4
- package/dist/components/Badge.js +19 -19
- package/dist/components/Banner/Banner.cjs +9 -4
- 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 +14 -8
- 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 +14 -8
- 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 +7 -3
- package/dist/components/CardPage.js +24 -24
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/CodeBlock.cjs +12 -7
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +8 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +8 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +8 -4
- package/dist/components/Collapsible.js +5 -5
- package/dist/components/CommaNumberInput.cjs +13 -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 +8 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +12 -7
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +8 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +185 -143
- package/dist/components/Drawer.d.cts +2 -0
- package/dist/components/Drawer.d.ts +2 -0
- package/dist/components/Drawer.js +21 -21
- package/dist/components/Dropdown.cjs +12 -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 +8 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +8 -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 +8 -4
- package/dist/components/IconWithCircleBackground.js +59 -59
- package/dist/components/InfoIconTooltip.cjs +13 -7
- 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 +7 -3
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +8 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +111 -36
- package/dist/components/Modal.d.cts +14 -8
- package/dist/components/Modal.d.ts +14 -8
- package/dist/components/Modal.js +59 -59
- package/dist/components/PageSection/PageSection.cjs +13 -7
- 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 -29
- package/dist/components/PageSection/PageSectionNav.cjs +9 -4
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +13 -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 +8 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +7 -3
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +9 -4
- package/dist/components/Radio.js +19 -19
- package/dist/components/SecretContainer.cjs +12 -7
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +9 -4
- 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 +9 -4
- 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 -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 +9 -4
- 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 +7 -3
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +11 -6
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +8 -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 +7 -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 +7 -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 +7 -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 +8 -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 +112 -37
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +59 -59
- package/dist/components/typography/Article.cjs +7 -3
- package/dist/components/typography/Article.js +13 -13
- package/dist/components/typography/Body.cjs +9 -4
- package/dist/components/typography/Body.d.cts +1 -1
- package/dist/components/typography/Body.d.ts +1 -1
- package/dist/components/typography/Body.js +6 -6
- package/dist/components/typography/BodyStrong.cjs +9 -4
- package/dist/components/typography/BodyStrong.d.cts +1 -1
- package/dist/components/typography/BodyStrong.d.ts +1 -1
- package/dist/components/typography/BodyStrong.js +6 -6
- package/dist/components/typography/Code.cjs +9 -4
- package/dist/components/typography/Code.d.cts +1 -1
- package/dist/components/typography/Code.d.ts +1 -1
- package/dist/components/typography/Code.js +6 -6
- package/dist/components/typography/Display.cjs +9 -4
- package/dist/components/typography/Display.d.cts +1 -1
- package/dist/components/typography/Display.d.ts +1 -1
- package/dist/components/typography/Display.js +6 -6
- package/dist/components/typography/Headline.cjs +9 -4
- package/dist/components/typography/Headline.d.cts +1 -1
- package/dist/components/typography/Headline.d.ts +1 -1
- package/dist/components/typography/Headline.js +6 -6
- package/dist/components/typography/Label.cjs +9 -4
- package/dist/components/typography/Label.d.cts +1 -1
- package/dist/components/typography/Label.d.ts +1 -1
- package/dist/components/typography/Label.js +6 -6
- package/dist/components/typography/LabelModerate.cjs +9 -4
- package/dist/components/typography/LabelModerate.d.cts +1 -1
- package/dist/components/typography/LabelModerate.d.ts +1 -1
- package/dist/components/typography/LabelModerate.js +6 -6
- package/dist/components/typography/LabelStrong.cjs +9 -4
- package/dist/components/typography/LabelStrong.d.cts +1 -1
- package/dist/components/typography/LabelStrong.d.ts +1 -1
- package/dist/components/typography/LabelStrong.js +6 -6
- package/dist/components/typography/Overline.cjs +9 -4
- package/dist/components/typography/Overline.d.cts +1 -1
- package/dist/components/typography/Overline.d.ts +1 -1
- package/dist/components/typography/Overline.js +6 -6
- package/dist/components/typography/Title.cjs +9 -4
- package/dist/components/typography/Title.d.cts +1 -1
- package/dist/components/typography/Title.d.ts +1 -1
- package/dist/components/typography/Title.js +6 -6
- package/dist/components/typography/index.cjs +9 -4
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +18 -18
- package/dist/components/typography/renderTypography.cjs +9 -4
- package/dist/components/typography/renderTypography.d.cts +1 -1
- package/dist/components/typography/renderTypography.d.ts +1 -1
- 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 +11 -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 +8 -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 +7 -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 +7 -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/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 +7 -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/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.cjs +9 -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 +9 -4
- package/dist/utils/toReactNodes.d.cts +1 -1
- package/dist/utils/toReactNodes.d.ts +1 -1
- package/dist/utils/toReactNodes.js +17 -17
- package/package.json +1 -1
|
@@ -181,128 +181,15 @@ function hexToRGB(hex) {
|
|
|
181
181
|
] : [0, 0, 0];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
// src/styles/z-index.tsx
|
|
185
|
-
var z = {
|
|
186
|
-
card: 1,
|
|
187
|
-
fieldError: 1,
|
|
188
|
-
textInput: 2,
|
|
189
|
-
select: 3,
|
|
190
|
-
selectFocused: 4,
|
|
191
|
-
walletActionPreviewTopGradient: 1,
|
|
192
|
-
headerContainer: 99,
|
|
193
|
-
smBanner: 99,
|
|
194
|
-
headerTop: 100,
|
|
195
|
-
navMenu: 100,
|
|
196
|
-
smNavMenu: 100,
|
|
197
|
-
navAction: 101,
|
|
198
|
-
smNavAction: 100,
|
|
199
|
-
// keep under navDropdown
|
|
200
|
-
notificationBanner: 170,
|
|
201
|
-
qrReaderVideo: 180,
|
|
202
|
-
qrReaderOverlay: 181,
|
|
203
|
-
modalOverlay: 190,
|
|
204
|
-
modalContainer: 191,
|
|
205
|
-
dropdown: 192,
|
|
206
|
-
tooltip: 193,
|
|
207
|
-
toast: 200
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
// src/components/Button.tsx
|
|
211
|
-
var import_react24 = require("@emotion/react");
|
|
212
|
-
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
213
|
-
var import_lodash_es4 = require("lodash-es");
|
|
214
|
-
var import_react25 = require("react");
|
|
215
|
-
|
|
216
|
-
// src/router.tsx
|
|
217
|
-
var import_lodash_es = require("lodash-es");
|
|
218
|
-
var import_react = require("react");
|
|
219
|
-
var import_react_router_dom = require("react-router-dom");
|
|
220
|
-
|
|
221
|
-
// src/utils/strings.tsx
|
|
222
|
-
function isString(str) {
|
|
223
|
-
return typeof str === "string";
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// src/router.tsx
|
|
227
|
-
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
228
|
-
function replaceParams(to, params) {
|
|
229
|
-
if (params) {
|
|
230
|
-
let toWithParams = to;
|
|
231
|
-
Object.entries((0, import_lodash_es.omit)(params, "query")).forEach(([key, value]) => {
|
|
232
|
-
if (typeof value !== "string") {
|
|
233
|
-
throw new Error(
|
|
234
|
-
`Only 'query' may be an object. Route params must be a string, but '${key}' is not.`
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
toWithParams = toWithParams.replace(`:${key}`, value);
|
|
238
|
-
});
|
|
239
|
-
if (params.query) {
|
|
240
|
-
let query = params.query;
|
|
241
|
-
if (typeof query !== "string") {
|
|
242
|
-
query = Object.entries(params.query).map(([key, value]) => `${key}${value ? `=${value}` : ""}`).join("&");
|
|
243
|
-
}
|
|
244
|
-
toWithParams = `${toWithParams}?${query}`;
|
|
245
|
-
}
|
|
246
|
-
to = toWithParams;
|
|
247
|
-
}
|
|
248
|
-
return to;
|
|
249
|
-
}
|
|
250
|
-
function Link({
|
|
251
|
-
to,
|
|
252
|
-
id,
|
|
253
|
-
externalLink,
|
|
254
|
-
params,
|
|
255
|
-
children,
|
|
256
|
-
css: css6,
|
|
257
|
-
onClick,
|
|
258
|
-
className,
|
|
259
|
-
hash = null,
|
|
260
|
-
blue = false,
|
|
261
|
-
newTab = false
|
|
262
|
-
}) {
|
|
263
|
-
if (!isString(to) && !externalLink && !onClick) {
|
|
264
|
-
throw new Error(
|
|
265
|
-
"Link must have either `to` or `externalLink` or `onClick` defined"
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
let toStr;
|
|
269
|
-
if (isString(to)) {
|
|
270
|
-
toStr = replaceParams(to, params);
|
|
271
|
-
toStr += hash ? `#${hash}` : "";
|
|
272
|
-
} else if (externalLink) {
|
|
273
|
-
const definedExternalLink = externalLink;
|
|
274
|
-
if (!definedExternalLink.startsWith("http")) {
|
|
275
|
-
throw new Error("Link's externalLink must start with http");
|
|
276
|
-
}
|
|
277
|
-
toStr = definedExternalLink;
|
|
278
|
-
} else {
|
|
279
|
-
toStr = "#";
|
|
280
|
-
}
|
|
281
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
282
|
-
import_react_router_dom.Link,
|
|
283
|
-
{
|
|
284
|
-
to: toStr,
|
|
285
|
-
id,
|
|
286
|
-
css: css6,
|
|
287
|
-
onClick,
|
|
288
|
-
className,
|
|
289
|
-
style: { color: blue ? colors.blue43 : "inherit" },
|
|
290
|
-
target: newTab ? "_blank" : void 0,
|
|
291
|
-
rel: newTab ? "noopener noreferrer" : void 0,
|
|
292
|
-
children
|
|
293
|
-
}
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
184
|
// src/styles/common.tsx
|
|
298
|
-
var
|
|
185
|
+
var import_react4 = require("@emotion/react");
|
|
299
186
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
300
187
|
|
|
301
188
|
// src/styles/breakpoints.tsx
|
|
302
|
-
var
|
|
303
|
-
var
|
|
304
|
-
var
|
|
305
|
-
var
|
|
189
|
+
var import_react = require("@emotion/react");
|
|
190
|
+
var import_lodash_es = require("lodash-es");
|
|
191
|
+
var import_react2 = require("react");
|
|
192
|
+
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
306
193
|
var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
|
|
307
194
|
Breakpoints2["sm"] = "sm";
|
|
308
195
|
Breakpoints2["md"] = "md";
|
|
@@ -395,7 +282,7 @@ function inRange(currentBp, assertBp) {
|
|
|
395
282
|
}
|
|
396
283
|
|
|
397
284
|
// src/styles/themes.tsx
|
|
398
|
-
var
|
|
285
|
+
var import_react3 = require("@emotion/react");
|
|
399
286
|
var import_deepmerge = __toESM(require("deepmerge"), 1);
|
|
400
287
|
|
|
401
288
|
// src/styles/buttons.tsx
|
|
@@ -3710,7 +3597,8 @@ var baseThemeColors = {
|
|
|
3710
3597
|
success: colors.success,
|
|
3711
3598
|
text: colors.black,
|
|
3712
3599
|
vlcNeutral: colors.gray95,
|
|
3713
|
-
warning: colors.warning
|
|
3600
|
+
warning: colors.warning,
|
|
3601
|
+
inputBackground: colors.white
|
|
3714
3602
|
};
|
|
3715
3603
|
var themeOrColorKeyValues = [
|
|
3716
3604
|
...Object.keys(baseThemeColors),
|
|
@@ -3758,7 +3646,8 @@ var darkBaseTheme = {
|
|
|
3758
3646
|
vlcNeutral: colors.gray20,
|
|
3759
3647
|
warning: colors.warning,
|
|
3760
3648
|
buttons: defaultButtonsTheme,
|
|
3761
|
-
loading: "LoadingSpinner"
|
|
3649
|
+
loading: "LoadingSpinner",
|
|
3650
|
+
inputBackground: colors.black
|
|
3762
3651
|
};
|
|
3763
3652
|
var lightTheme = extend(lightBaseTheme, {
|
|
3764
3653
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3797,6 +3686,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3797
3686
|
secondary: colors.grayBlue43,
|
|
3798
3687
|
text: colors.grayBlue9,
|
|
3799
3688
|
link: colors.blue39,
|
|
3689
|
+
inputBackground: colors.white,
|
|
3800
3690
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3801
3691
|
main: "Manrope",
|
|
3802
3692
|
code: "Monaco"
|
|
@@ -3881,7 +3771,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3881
3771
|
bg: colors.gray98,
|
|
3882
3772
|
smBg: colors.gray98,
|
|
3883
3773
|
text: colors.grayBlue9,
|
|
3884
|
-
secondary: colors.grayBlue43
|
|
3774
|
+
secondary: colors.grayBlue43,
|
|
3775
|
+
inputBackground: colors.white
|
|
3885
3776
|
}));
|
|
3886
3777
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3887
3778
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -3956,21 +3847,21 @@ var themeOr = (lightValue, darkValue) => ({ theme }) => {
|
|
|
3956
3847
|
var rootFontSizePx = 12;
|
|
3957
3848
|
var rootFontSizeRems = rootFontSizePx / 16;
|
|
3958
3849
|
function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
|
|
3959
|
-
const smCSS =
|
|
3850
|
+
const smCSS = import_react4.css`
|
|
3960
3851
|
${bp.sm(`
|
|
3961
3852
|
margin-left: auto;
|
|
3962
3853
|
margin-right: auto;
|
|
3963
3854
|
width: calc(100% - ${smPx * 2}px);
|
|
3964
3855
|
`)}
|
|
3965
3856
|
`;
|
|
3966
|
-
const minSmMaxLgCSS =
|
|
3857
|
+
const minSmMaxLgCSS = import_react4.css`
|
|
3967
3858
|
${bp.minSmMaxLg(`
|
|
3968
3859
|
margin-left: auto;
|
|
3969
3860
|
margin-right: auto;
|
|
3970
3861
|
width: calc(100% - ${minSmMaxLgPx * 2}px);
|
|
3971
3862
|
`)}
|
|
3972
3863
|
`;
|
|
3973
|
-
const lgCSS =
|
|
3864
|
+
const lgCSS = import_react4.css`
|
|
3974
3865
|
${bp.lg(`
|
|
3975
3866
|
margin-left: auto;
|
|
3976
3867
|
margin-right: auto;
|
|
@@ -3985,7 +3876,7 @@ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
|
|
|
3985
3876
|
smCSS,
|
|
3986
3877
|
minSmMaxLgCSS,
|
|
3987
3878
|
lgCSS,
|
|
3988
|
-
css:
|
|
3879
|
+
css: import_react4.css`
|
|
3989
3880
|
${lgCSS}
|
|
3990
3881
|
${smCSS}
|
|
3991
3882
|
${minSmMaxLgCSS}
|
|
@@ -3993,12 +3884,12 @@ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
|
|
|
3993
3884
|
};
|
|
3994
3885
|
}
|
|
3995
3886
|
var standardContentInset = buildStandardContentInset(16, 24, 32);
|
|
3996
|
-
var standardCardShadow =
|
|
3887
|
+
var standardCardShadow = import_react4.css`
|
|
3997
3888
|
box-shadow:
|
|
3998
3889
|
0px 4px 10px 0px rgba(0, 0, 0, 0.08),
|
|
3999
3890
|
0px 8px 24px 0px rgba(0, 0, 0, 0.04);
|
|
4000
3891
|
`;
|
|
4001
|
-
var standardCardShadowHard =
|
|
3892
|
+
var standardCardShadowHard = import_react4.css`
|
|
4002
3893
|
box-shadow:
|
|
4003
3894
|
0px 24px 24px -12px rgba(0, 0, 0, 0.06),
|
|
4004
3895
|
0px 12px 12px -6px rgba(0, 0, 0, 0.06),
|
|
@@ -4016,7 +3907,7 @@ var getFocusOutline = ({
|
|
|
4016
3907
|
onBgHex
|
|
4017
3908
|
}) => `${onBgHex ? theme.hcNeutralFromBg(onBgHex) : theme.hcNeutral} dashed 1px`;
|
|
4018
3909
|
var outlineOffset = "-2px";
|
|
4019
|
-
var standardFocusOutline = ({ theme }) =>
|
|
3910
|
+
var standardFocusOutline = ({ theme }) => import_react4.css`
|
|
4020
3911
|
&,
|
|
4021
3912
|
& a,
|
|
4022
3913
|
& button {
|
|
@@ -4026,30 +3917,31 @@ var standardFocusOutline = ({ theme }) => import_react5.css`
|
|
|
4026
3917
|
}
|
|
4027
3918
|
}
|
|
4028
3919
|
`;
|
|
4029
|
-
var subtext = ({ theme }) =>
|
|
3920
|
+
var subtext = ({ theme }) => import_react4.css`
|
|
4030
3921
|
color: ${theme.c6Neutral};
|
|
4031
3922
|
font-weight: 600;
|
|
4032
3923
|
`;
|
|
4033
3924
|
var Subtext = import_styled.default.div`
|
|
4034
3925
|
${subtext}
|
|
4035
3926
|
`;
|
|
4036
|
-
var darkGradientBg =
|
|
3927
|
+
var darkGradientBg = import_react4.css`
|
|
4037
3928
|
background: ${darkGradient};
|
|
4038
3929
|
`;
|
|
4039
3930
|
var overlaySurfaceBorderColor = ({
|
|
4040
3931
|
theme,
|
|
4041
3932
|
important = false
|
|
4042
|
-
}) =>
|
|
3933
|
+
}) => import_react4.css`
|
|
4043
3934
|
border-color: ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })}
|
|
4044
3935
|
${important ? "!important" : ""};
|
|
4045
3936
|
`;
|
|
4046
3937
|
var overlaySurface = ({
|
|
4047
3938
|
theme,
|
|
4048
|
-
important = false
|
|
4049
|
-
|
|
4050
|
-
|
|
3939
|
+
important = false,
|
|
3940
|
+
border = true
|
|
3941
|
+
}) => import_react4.css`
|
|
3942
|
+
background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
|
|
4051
3943
|
${important ? "!important" : ""};
|
|
4052
|
-
border: 0.5px solid ${important ? "!important" : ""}
|
|
3944
|
+
${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
|
|
4053
3945
|
${overlaySurfaceBorderColor({ theme, important })};
|
|
4054
3946
|
${themeOr(
|
|
4055
3947
|
`box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
|
|
@@ -4057,6 +3949,119 @@ var overlaySurface = ({
|
|
|
4057
3949
|
)({ theme })}
|
|
4058
3950
|
`;
|
|
4059
3951
|
|
|
3952
|
+
// src/styles/z-index.tsx
|
|
3953
|
+
var z = {
|
|
3954
|
+
card: 1,
|
|
3955
|
+
fieldError: 1,
|
|
3956
|
+
textInput: 2,
|
|
3957
|
+
select: 3,
|
|
3958
|
+
selectFocused: 4,
|
|
3959
|
+
walletActionPreviewTopGradient: 1,
|
|
3960
|
+
headerContainer: 99,
|
|
3961
|
+
smBanner: 99,
|
|
3962
|
+
headerTop: 100,
|
|
3963
|
+
navMenu: 100,
|
|
3964
|
+
smNavMenu: 100,
|
|
3965
|
+
navAction: 101,
|
|
3966
|
+
smNavAction: 100,
|
|
3967
|
+
// keep under navDropdown
|
|
3968
|
+
notificationBanner: 170,
|
|
3969
|
+
qrReaderVideo: 180,
|
|
3970
|
+
qrReaderOverlay: 181,
|
|
3971
|
+
modalOverlay: 190,
|
|
3972
|
+
modalContainer: 191,
|
|
3973
|
+
dropdown: 192,
|
|
3974
|
+
tooltip: 193,
|
|
3975
|
+
toast: 200
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
// src/components/Button.tsx
|
|
3979
|
+
var import_react24 = require("@emotion/react");
|
|
3980
|
+
var import_styled15 = __toESM(require("@emotion/styled"), 1);
|
|
3981
|
+
var import_lodash_es4 = require("lodash-es");
|
|
3982
|
+
var import_react25 = require("react");
|
|
3983
|
+
|
|
3984
|
+
// src/router.tsx
|
|
3985
|
+
var import_lodash_es2 = require("lodash-es");
|
|
3986
|
+
var import_react5 = require("react");
|
|
3987
|
+
var import_react_router_dom = require("react-router-dom");
|
|
3988
|
+
|
|
3989
|
+
// src/utils/strings.tsx
|
|
3990
|
+
function isString(str) {
|
|
3991
|
+
return typeof str === "string";
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
// src/router.tsx
|
|
3995
|
+
var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
|
|
3996
|
+
function replaceParams(to, params) {
|
|
3997
|
+
if (params) {
|
|
3998
|
+
let toWithParams = to;
|
|
3999
|
+
Object.entries((0, import_lodash_es2.omit)(params, "query")).forEach(([key, value]) => {
|
|
4000
|
+
if (typeof value !== "string") {
|
|
4001
|
+
throw new Error(
|
|
4002
|
+
`Only 'query' may be an object. Route params must be a string, but '${key}' is not.`
|
|
4003
|
+
);
|
|
4004
|
+
}
|
|
4005
|
+
toWithParams = toWithParams.replace(`:${key}`, value);
|
|
4006
|
+
});
|
|
4007
|
+
if (params.query) {
|
|
4008
|
+
let query = params.query;
|
|
4009
|
+
if (typeof query !== "string") {
|
|
4010
|
+
query = Object.entries(params.query).map(([key, value]) => `${key}${value ? `=${value}` : ""}`).join("&");
|
|
4011
|
+
}
|
|
4012
|
+
toWithParams = `${toWithParams}?${query}`;
|
|
4013
|
+
}
|
|
4014
|
+
to = toWithParams;
|
|
4015
|
+
}
|
|
4016
|
+
return to;
|
|
4017
|
+
}
|
|
4018
|
+
function Link({
|
|
4019
|
+
to,
|
|
4020
|
+
id,
|
|
4021
|
+
externalLink,
|
|
4022
|
+
params,
|
|
4023
|
+
children,
|
|
4024
|
+
css: css6,
|
|
4025
|
+
onClick,
|
|
4026
|
+
className,
|
|
4027
|
+
hash = null,
|
|
4028
|
+
blue = false,
|
|
4029
|
+
newTab = false
|
|
4030
|
+
}) {
|
|
4031
|
+
if (!isString(to) && !externalLink && !onClick) {
|
|
4032
|
+
throw new Error(
|
|
4033
|
+
"Link must have either `to` or `externalLink` or `onClick` defined"
|
|
4034
|
+
);
|
|
4035
|
+
}
|
|
4036
|
+
let toStr;
|
|
4037
|
+
if (isString(to)) {
|
|
4038
|
+
toStr = replaceParams(to, params);
|
|
4039
|
+
toStr += hash ? `#${hash}` : "";
|
|
4040
|
+
} else if (externalLink) {
|
|
4041
|
+
const definedExternalLink = externalLink;
|
|
4042
|
+
if (!definedExternalLink.startsWith("http")) {
|
|
4043
|
+
throw new Error("Link's externalLink must start with http");
|
|
4044
|
+
}
|
|
4045
|
+
toStr = definedExternalLink;
|
|
4046
|
+
} else {
|
|
4047
|
+
toStr = "#";
|
|
4048
|
+
}
|
|
4049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
4050
|
+
import_react_router_dom.Link,
|
|
4051
|
+
{
|
|
4052
|
+
to: toStr,
|
|
4053
|
+
id,
|
|
4054
|
+
css: css6,
|
|
4055
|
+
onClick,
|
|
4056
|
+
className,
|
|
4057
|
+
style: { color: blue ? colors.blue43 : "inherit" },
|
|
4058
|
+
target: newTab ? "_blank" : void 0,
|
|
4059
|
+
rel: newTab ? "noopener noreferrer" : void 0,
|
|
4060
|
+
children
|
|
4061
|
+
}
|
|
4062
|
+
);
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4060
4065
|
// src/styles/typography.tsx
|
|
4061
4066
|
var applyTypography = (theme, typographyType, size, color = "inherit", applyToAll = true) => {
|
|
4062
4067
|
const selector = applyToAll ? "&, & *" : "&";
|
|
@@ -7958,7 +7963,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7958
7963
|
${({ theme, fontColor }) => {
|
|
7959
7964
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7960
7965
|
return `
|
|
7961
|
-
|
|
7966
|
+
svg, path {
|
|
7962
7967
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7963
7968
|
|
|
7964
7969
|
/*
|
|
@@ -8168,6 +8173,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
8168
8173
|
Link,
|
|
8169
8174
|
{
|
|
8170
8175
|
to: node.to,
|
|
8176
|
+
newTab: !!node.newTab,
|
|
8171
8177
|
children: node.text
|
|
8172
8178
|
},
|
|
8173
8179
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8487,7 +8493,7 @@ function getPaddingX(size, kind, isRound) {
|
|
|
8487
8493
|
function getPadding({ paddingY, kind, size, iconSide, isRound }) {
|
|
8488
8494
|
const paddingX = getPaddingX(size, kind, isRound);
|
|
8489
8495
|
const paddingForIcon = 0;
|
|
8490
|
-
return `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
8496
|
+
return kind === "ghost" ? 0 : `${paddingY}px ${paddingX + (iconSide === "right" ? paddingForIcon : 0)}px ${paddingY}px ${paddingX + (iconSide === "left" ? paddingForIcon : 0)}px`;
|
|
8491
8497
|
}
|
|
8492
8498
|
function resolveBackgroundColorKey(theme, kind, defaultKey) {
|
|
8493
8499
|
var _a;
|
|
@@ -8790,6 +8796,9 @@ var Drawer = (props) => {
|
|
|
8790
8796
|
const [grabbing, setGrabbing] = (0, import_react26.useState)(false);
|
|
8791
8797
|
const drawerContainerRef = (0, import_react26.useRef)(null);
|
|
8792
8798
|
const handleClose = () => {
|
|
8799
|
+
if (props.nonDismissable) {
|
|
8800
|
+
return;
|
|
8801
|
+
}
|
|
8793
8802
|
setIsOpen(false);
|
|
8794
8803
|
setTimeout(() => {
|
|
8795
8804
|
props.onClose && props.onClose();
|
|
@@ -8799,6 +8808,9 @@ var Drawer = (props) => {
|
|
|
8799
8808
|
};
|
|
8800
8809
|
const handleTouchMove = (event) => {
|
|
8801
8810
|
var _a, _b;
|
|
8811
|
+
if (props.nonDismissable) {
|
|
8812
|
+
return;
|
|
8813
|
+
}
|
|
8802
8814
|
if (lastY === null) {
|
|
8803
8815
|
setLastY(event.touches[0].clientY);
|
|
8804
8816
|
} else {
|
|
@@ -8815,9 +8827,15 @@ var Drawer = (props) => {
|
|
|
8815
8827
|
}
|
|
8816
8828
|
};
|
|
8817
8829
|
const handleTouchStart = () => {
|
|
8830
|
+
if (props.nonDismissable) {
|
|
8831
|
+
return;
|
|
8832
|
+
}
|
|
8818
8833
|
setGrabbing(true);
|
|
8819
8834
|
};
|
|
8820
8835
|
const handleTouchEnd = () => {
|
|
8836
|
+
if (props.nonDismissable) {
|
|
8837
|
+
return;
|
|
8838
|
+
}
|
|
8821
8839
|
setGrabbing(false);
|
|
8822
8840
|
if (fractionVisible < 0.8) {
|
|
8823
8841
|
handleClose();
|
|
@@ -8845,16 +8863,17 @@ var Drawer = (props) => {
|
|
|
8845
8863
|
grabbing,
|
|
8846
8864
|
ref: drawerContainerRef,
|
|
8847
8865
|
children: [
|
|
8848
|
-
props.grabber && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(GrabberBar, {}) }),
|
|
8849
|
-
props.
|
|
8866
|
+
props.grabber && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Grabber, { onClick: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(GrabberBar, {}) }),
|
|
8867
|
+
props.handleBack && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(BackButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8850
8868
|
Button,
|
|
8851
8869
|
{
|
|
8852
|
-
onClick:
|
|
8853
|
-
icon: "
|
|
8870
|
+
onClick: props.handleBack,
|
|
8871
|
+
icon: "ChevronLeft",
|
|
8854
8872
|
kind: "ghost",
|
|
8855
|
-
size: "
|
|
8873
|
+
size: "Small"
|
|
8856
8874
|
}
|
|
8857
8875
|
) }),
|
|
8876
|
+
props.closeButton && !props.nonDismissable && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(CloseButtonContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(CloseButton, { onClick: handleClose, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { name: "Close", width: 12 }) }) }),
|
|
8858
8877
|
props.children
|
|
8859
8878
|
]
|
|
8860
8879
|
}
|
|
@@ -8887,6 +8906,7 @@ var Background = import_styled16.default.div`
|
|
|
8887
8906
|
`;
|
|
8888
8907
|
var DrawerContainer = import_styled16.default.div`
|
|
8889
8908
|
position: fixed;
|
|
8909
|
+
max-height: 100dvh;
|
|
8890
8910
|
width: 100%;
|
|
8891
8911
|
background-color: ${({ theme }) => theme.bg};
|
|
8892
8912
|
right: 0;
|
|
@@ -8897,6 +8917,7 @@ var DrawerContainer = import_styled16.default.div`
|
|
|
8897
8917
|
display: flex;
|
|
8898
8918
|
flex-direction: column;
|
|
8899
8919
|
padding: ${"72px" /* 6xl */} ${"32px" /* xl */} ${"40px" /* 2xl */} ${"32px" /* xl */};
|
|
8920
|
+
overflow-y: scroll;
|
|
8900
8921
|
|
|
8901
8922
|
// Only smooth transition when not grabbing, otherwise dragging will feel very laggy
|
|
8902
8923
|
${(props) => props.grabbing && props.isOpen ? "" : "transition: transform 0.3s ease-in-out;"};
|
|
@@ -8943,11 +8964,32 @@ var CloseButtonContainer = import_styled16.default.div`
|
|
|
8943
8964
|
border-radius: 50%;
|
|
8944
8965
|
background-color: ${colors.grayBlue94};
|
|
8945
8966
|
padding: ${"8px" /* xs */};
|
|
8967
|
+
height: 30px;
|
|
8968
|
+
width: 30px;
|
|
8969
|
+
display: flex;
|
|
8970
|
+
align-items: center;
|
|
8946
8971
|
|
|
8947
8972
|
* > * {
|
|
8948
8973
|
line-height: 14px;
|
|
8949
8974
|
}
|
|
8950
8975
|
`;
|
|
8976
|
+
var CloseButton = (0, import_styled16.default)(UnstyledButton)`
|
|
8977
|
+
${standardFocusOutline}
|
|
8978
|
+
width: 24px;
|
|
8979
|
+
height: 24px;
|
|
8980
|
+
justify-self: flex-end;
|
|
8981
|
+
`;
|
|
8982
|
+
var BackButtonContainer = import_styled16.default.div`
|
|
8983
|
+
position: absolute;
|
|
8984
|
+
top: 20px;
|
|
8985
|
+
left: 20px;
|
|
8986
|
+
border-radius: 50%;
|
|
8987
|
+
padding: ${"8px" /* xs */};
|
|
8988
|
+
height: 30px;
|
|
8989
|
+
width: 30px;
|
|
8990
|
+
display: flex;
|
|
8991
|
+
align-items: center;
|
|
8992
|
+
`;
|
|
8951
8993
|
var GrabberBar = import_styled16.default.div`
|
|
8952
8994
|
width: 36px;
|
|
8953
8995
|
height: 5px;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Drawer
|
|
4
|
-
} from "../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-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-JNNJVBHF.js";
|
|
5
|
+
import "../chunk-SLKPLSJU.js";
|
|
6
|
+
import "../chunk-VXKNN4SF.js";
|
|
7
|
+
import "../chunk-5TTLUOJ5.js";
|
|
8
|
+
import "../chunk-BDZ46Z2I.js";
|
|
9
|
+
import "../chunk-B6S7Y4K7.js";
|
|
10
|
+
import "../chunk-GSKTHUQJ.js";
|
|
11
|
+
import "../chunk-WGKUDRZ7.js";
|
|
12
|
+
import "../chunk-2AGBCGOW.js";
|
|
13
|
+
import "../chunk-MRGHRTKA.js";
|
|
14
|
+
import "../chunk-35PJW7RT.js";
|
|
15
|
+
import "../chunk-GWHKALYQ.js";
|
|
16
|
+
import "../chunk-WTMJTGW4.js";
|
|
17
|
+
import "../chunk-CRTTTIAD.js";
|
|
18
18
|
import "../chunk-YMNSXZ5D.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-XDP7GCYE.js";
|
|
20
20
|
import "../chunk-OPV246QW.js";
|
|
21
21
|
import "../chunk-AAFUVYVP.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-4C2TISN7.js";
|
|
23
|
+
import "../chunk-RPNTFEXE.js";
|
|
24
|
+
import "../chunk-LTCJ6LNO.js";
|
|
25
25
|
import "../chunk-55OQPFLF.js";
|
|
26
26
|
import "../chunk-3XSQV5U4.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-I3FI3FNP.js";
|
|
28
28
|
import "../chunk-EDN2QDCB.js";
|
|
29
29
|
import "../chunk-FT62PIPN.js";
|
|
30
30
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -139,8 +139,8 @@ import "../chunk-VI6WTKMV.js";
|
|
|
139
139
|
import "../chunk-QW2INB5A.js";
|
|
140
140
|
import "../chunk-JLD7MGLC.js";
|
|
141
141
|
import "../chunk-DW6LFUI2.js";
|
|
142
|
-
import "../chunk-
|
|
143
|
-
import "../chunk-
|
|
142
|
+
import "../chunk-PG2W2HVB.js";
|
|
143
|
+
import "../chunk-IBZBPQMZ.js";
|
|
144
144
|
import "../chunk-ENBUKLVT.js";
|
|
145
145
|
import "../chunk-JSGRNWSB.js";
|
|
146
146
|
import "../chunk-FO7I4E45.js";
|
|
@@ -3595,7 +3595,8 @@ var baseThemeColors = {
|
|
|
3595
3595
|
success: colors.success,
|
|
3596
3596
|
text: colors.black,
|
|
3597
3597
|
vlcNeutral: colors.gray95,
|
|
3598
|
-
warning: colors.warning
|
|
3598
|
+
warning: colors.warning,
|
|
3599
|
+
inputBackground: colors.white
|
|
3599
3600
|
};
|
|
3600
3601
|
var themeOrColorKeyValues = [
|
|
3601
3602
|
...Object.keys(baseThemeColors),
|
|
@@ -3643,7 +3644,8 @@ var darkBaseTheme = {
|
|
|
3643
3644
|
vlcNeutral: colors.gray20,
|
|
3644
3645
|
warning: colors.warning,
|
|
3645
3646
|
buttons: defaultButtonsTheme,
|
|
3646
|
-
loading: "LoadingSpinner"
|
|
3647
|
+
loading: "LoadingSpinner",
|
|
3648
|
+
inputBackground: colors.black
|
|
3647
3649
|
};
|
|
3648
3650
|
var lightTheme = extend(lightBaseTheme, {
|
|
3649
3651
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3682,6 +3684,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3682
3684
|
secondary: colors.grayBlue43,
|
|
3683
3685
|
text: colors.grayBlue9,
|
|
3684
3686
|
link: colors.blue39,
|
|
3687
|
+
inputBackground: colors.white,
|
|
3685
3688
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3686
3689
|
main: "Manrope",
|
|
3687
3690
|
code: "Monaco"
|
|
@@ -3766,7 +3769,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3766
3769
|
bg: colors.gray98,
|
|
3767
3770
|
smBg: colors.gray98,
|
|
3768
3771
|
text: colors.grayBlue9,
|
|
3769
|
-
secondary: colors.grayBlue43
|
|
3772
|
+
secondary: colors.grayBlue43,
|
|
3773
|
+
inputBackground: colors.white
|
|
3770
3774
|
}));
|
|
3771
3775
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3772
3776
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -3908,11 +3912,12 @@ var overlaySurfaceBorderColor = ({
|
|
|
3908
3912
|
`;
|
|
3909
3913
|
var overlaySurface = ({
|
|
3910
3914
|
theme,
|
|
3911
|
-
important = false
|
|
3915
|
+
important = false,
|
|
3916
|
+
border = true
|
|
3912
3917
|
}) => import_react5.css`
|
|
3913
|
-
background-color: ${themeOr(
|
|
3918
|
+
background-color: ${themeOr(theme.bg, theme.c1Neutral)({ theme })}
|
|
3914
3919
|
${important ? "!important" : ""};
|
|
3915
|
-
border: 0.5px solid ${important ? "!important" : ""}
|
|
3920
|
+
${border ? `border: 0.5px solid ${important ? "!important" : ""};` : ""}
|
|
3916
3921
|
${overlaySurfaceBorderColor({ theme, important })};
|
|
3917
3922
|
${themeOr(
|
|
3918
3923
|
`box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
|
|
@@ -7834,7 +7839,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7834
7839
|
${({ theme, fontColor }) => {
|
|
7835
7840
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7836
7841
|
return `
|
|
7837
|
-
|
|
7842
|
+
svg, path {
|
|
7838
7843
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7839
7844
|
|
|
7840
7845
|
/*
|
|
@@ -3,7 +3,7 @@ import { CSSInterpolation } from '@emotion/css';
|
|
|
3
3
|
import { CSSObject } from '@emotion/styled';
|
|
4
4
|
import { ReactNode, RefObject } from 'react';
|
|
5
5
|
import { ExternalLink, RouteParams, RouteHash } from '../router.cjs';
|
|
6
|
-
import { W as WithTheme } from '../buttons-
|
|
6
|
+
import { W as WithTheme } from '../buttons-36cdd0fe.js';
|
|
7
7
|
import { IconName } from './Icon/types.cjs';
|
|
8
8
|
import '@emotion/react';
|
|
9
9
|
import 'react-router-dom';
|
|
@@ -3,7 +3,7 @@ import { CSSInterpolation } from '@emotion/css';
|
|
|
3
3
|
import { CSSObject } from '@emotion/styled';
|
|
4
4
|
import { ReactNode, RefObject } from 'react';
|
|
5
5
|
import { ExternalLink, RouteParams, RouteHash } from '../router.js';
|
|
6
|
-
import { W as WithTheme } from '../buttons-
|
|
6
|
+
import { W as WithTheme } from '../buttons-35280bfe.js';
|
|
7
7
|
import { IconName } from './Icon/types.js';
|
|
8
8
|
import '@emotion/react';
|
|
9
9
|
import 'react-router-dom';
|