@clarify-labs/renderer 0.10.3 → 0.11.0
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/output/{ClarifyShell-UsefuuLS.cjs → ClarifyShell-BAjq876Z.cjs} +85 -82
- package/output/ClarifyShell-BAjq876Z.cjs.map +1 -0
- package/output/{ClarifyShell-Cq5Af46F.js → ClarifyShell-GoSXvgMg.js} +85 -82
- package/output/ClarifyShell-GoSXvgMg.js.map +1 -0
- package/output/{MermaidViewer-Db7qsyVk.cjs → MermaidViewer-BZ8ghcFP.cjs} +2 -2
- package/output/{MermaidViewer-Db7qsyVk.cjs.map → MermaidViewer-BZ8ghcFP.cjs.map} +1 -1
- package/output/{MermaidViewer-Bc9H25yK.js → MermaidViewer-CkIxyqtf.js} +2 -2
- package/output/{MermaidViewer-Bc9H25yK.js.map → MermaidViewer-CkIxyqtf.js.map} +1 -1
- package/output/{OpenApiOperation-BZWeCbvy.js → OpenApiOperation-C2vJztWZ.js} +1536 -211
- package/output/OpenApiOperation-C2vJztWZ.js.map +1 -0
- package/output/{OpenApiOperation-DbZjxIuj.cjs → OpenApiOperation-D-5uE5v7.cjs} +1539 -208
- package/output/OpenApiOperation-D-5uE5v7.cjs.map +1 -0
- package/output/{PageActions-Dg1l9KB1.cjs → PageActions-DJRXlGhz.cjs} +16 -16
- package/output/PageActions-DJRXlGhz.cjs.map +1 -0
- package/output/{PageActions-BQeEmXbT.js → PageActions-bugd7GZh.js} +16 -16
- package/output/PageActions-bugd7GZh.js.map +1 -0
- package/output/{SearchDialog-DjKvqN7p.cjs → SearchDialog-8AdCRp6K.cjs} +3 -3
- package/output/{SearchDialog-DjKvqN7p.cjs.map → SearchDialog-8AdCRp6K.cjs.map} +1 -1
- package/output/{SearchDialog-B67VA0Ut.js → SearchDialog-CBJjDs_9.js} +3 -3
- package/output/{SearchDialog-B67VA0Ut.js.map → SearchDialog-CBJjDs_9.js.map} +1 -1
- package/output/app/PageFooter.d.ts +1 -1
- package/output/client.cjs +3 -3
- package/output/client.js +3 -3
- package/output/components/Tooltip.d.ts +1 -0
- package/output/core/i18n.d.ts +1 -1
- package/output/core/types.d.ts +37 -19
- package/output/{i18n-Bqth9d6Q.js → i18n-BPrC45nD.js} +98 -2
- package/output/i18n-BPrC45nD.js.map +1 -0
- package/output/{i18n-C-fReCj-.cjs → i18n-wXINKKV0.cjs} +98 -2
- package/output/i18n-wXINKKV0.cjs.map +1 -0
- package/output/index.cjs +26 -5
- package/output/index.cjs.map +1 -1
- package/output/index.d.ts +3 -3
- package/output/index.js +26 -6
- package/output/index.js.map +1 -1
- package/output/mdx/components.d.ts +2 -1
- package/output/openapi/components/EndpointMethodBadge.d.ts +6 -0
- package/output/openapi/components/EndpointSections.d.ts +2 -2
- package/output/openapi/components/ExamplePanels.d.ts +2 -2
- package/output/openapi/components/InlineListbox.d.ts +13 -0
- package/output/openapi/components/OpenApiAuthPanel.d.ts +12 -0
- package/output/openapi/components/OpenApiOperation.d.ts +1 -9
- package/output/openapi/components/OpenApiOperation.state.d.ts +4 -2
- package/output/openapi/components/OpenApiRequest.d.ts +18 -0
- package/output/openapi/components/OpenApiRequestFields.d.ts +25 -0
- package/output/openapi/components/OpenApiResponseViewer.d.ts +8 -0
- package/output/openapi/components/SendRequestButton.d.ts +9 -0
- package/output/openapi/components/helpers.d.ts +6 -1
- package/output/openapi/components/useOpenApiRequestState.d.ts +41 -0
- package/output/openapi/entry.d.ts +2 -0
- package/output/openapi/index.d.ts +2 -2
- package/output/openapi/lib/api-exchange-code.d.ts +8 -0
- package/output/openapi/lib/api-exchange.d.ts +30 -0
- package/output/openapi/lib/api-request.d.ts +24 -0
- package/output/openapi/lib/request-code.d.ts +2 -2
- package/output/openapi/lib/request-parameters.d.ts +5 -0
- package/output/openapi/store.d.ts +10 -0
- package/output/openapi/types.d.ts +4 -0
- package/output/preview.cjs +37 -27
- package/output/preview.cjs.map +1 -1
- package/output/preview.js +37 -27
- package/output/preview.js.map +1 -1
- package/output/{render-Dc9wxg_r.cjs → render-FICIzeXz.cjs} +2 -2
- package/output/{render-Dc9wxg_r.cjs.map → render-FICIzeXz.cjs.map} +1 -1
- package/output/{render-aS-w4fK4.js → render-XQiw_48i.js} +2 -2
- package/output/{render-aS-w4fK4.js.map → render-XQiw_48i.js.map} +1 -1
- package/output/renderer.css +547 -150
- package/output/server.cjs +2 -2
- package/output/server.js +2 -2
- package/output/theme/ThemeEditor.d.ts +8 -4
- package/output/theme/variables.d.ts +8 -4
- package/package.json +1 -1
- package/output/ClarifyShell-Cq5Af46F.js.map +0 -1
- package/output/ClarifyShell-UsefuuLS.cjs.map +0 -1
- package/output/OpenApiOperation-BZWeCbvy.js.map +0 -1
- package/output/OpenApiOperation-DbZjxIuj.cjs.map +0 -1
- package/output/PageActions-BQeEmXbT.js.map +0 -1
- package/output/PageActions-Dg1l9KB1.cjs.map +0 -1
- package/output/i18n-Bqth9d6Q.js.map +0 -1
- package/output/i18n-C-fReCj-.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useConfig, i as OpenApiSpecsContext, n as ConfigContext, o as useConfigOptional, r as LocaleContext, s as useLocale, t as useBuiltInText } from "./i18n-
|
|
2
|
-
import { C as isExternalHref, E as copyTextToClipboard, S as themeCookieName, a as SectionProvider, b as storeLocalePreference, d as normalizeRoutePath, f as resolveLocalizedText, g as getStoredLocalePreference, h as useTheme, i as Navigation, m as ThemeProvider, o as useSectionStore, r as Header, t as PageActionsProvider, u as isSameRoutePath, w as localizeHref } from "./PageActions-
|
|
1
|
+
import { a as useConfig, i as OpenApiSpecsContext, n as ConfigContext, o as useConfigOptional, r as LocaleContext, s as useLocale, t as useBuiltInText } from "./i18n-BPrC45nD.js";
|
|
2
|
+
import { C as isExternalHref, E as copyTextToClipboard, S as themeCookieName, a as SectionProvider, b as storeLocalePreference, d as normalizeRoutePath, f as resolveLocalizedText, g as getStoredLocalePreference, h as useTheme, i as Navigation, m as ThemeProvider, o as useSectionStore, r as Header, t as PageActionsProvider, u as isSameRoutePath, w as localizeHref } from "./PageActions-bugd7GZh.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Component, Suspense, createContext, lazy, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { Link, Route, Routes, useLocation, useNavigate } from "react-router-dom";
|
|
@@ -359,7 +359,7 @@ function PageBanner(props) {
|
|
|
359
359
|
const { currentLocale, onDismiss } = props;
|
|
360
360
|
const config = useConfig();
|
|
361
361
|
const banner = config.banner;
|
|
362
|
-
const content = banner ? resolveLocalizedText(banner.content, currentLocale, config.
|
|
362
|
+
const content = banner ? resolveLocalizedText(banner.content, currentLocale, config.locales?.default) : "";
|
|
363
363
|
const storageKey = useMemo(() => {
|
|
364
364
|
if (!banner || !content) return "";
|
|
365
365
|
return bannerStorageKey(config, content);
|
|
@@ -379,7 +379,7 @@ function PageBanner(props) {
|
|
|
379
379
|
if (!content) return null;
|
|
380
380
|
if (dismissed) return null;
|
|
381
381
|
const link = banner.link;
|
|
382
|
-
const linkLabel = link ? resolveLocalizedText(link.label, currentLocale, config.
|
|
382
|
+
const linkLabel = link ? resolveLocalizedText(link.label, currentLocale, config.locales?.default) : "";
|
|
383
383
|
return /* @__PURE__ */ jsxs("div", {
|
|
384
384
|
className: "clarify-banner relative flex h-12 items-center border-b border-(--clarify-ui-accent-border) bg-(--clarify-ui-accent-background) px-4 text-sm text-(--clarify-ui-text) dark:border-white/10",
|
|
385
385
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -412,17 +412,17 @@ function PageBanner(props) {
|
|
|
412
412
|
//#endregion
|
|
413
413
|
//#region source/app/PageFooter.tsx
|
|
414
414
|
function localeForPath(config, pathname) {
|
|
415
|
-
const
|
|
416
|
-
if (!
|
|
415
|
+
const locales = config.locales;
|
|
416
|
+
if (!locales) return void 0;
|
|
417
417
|
const firstSegment = pathname.split("/").filter(Boolean)[0];
|
|
418
|
-
return
|
|
418
|
+
return locales.locales.find((locale) => locale.code === firstSegment)?.code ?? locales.default;
|
|
419
419
|
}
|
|
420
420
|
function FooterLink(arg0) {
|
|
421
421
|
const { link, locale, config } = arg0;
|
|
422
422
|
const external = link.external ?? isExternalHref(link.href);
|
|
423
423
|
const href = external ? link.href : localizeHref(link.href, config, locale);
|
|
424
424
|
const className = "clarify-footer-link no-underline transition";
|
|
425
|
-
const label = resolveLocalizedText(link.label, locale, config.
|
|
425
|
+
const label = resolveLocalizedText(link.label, locale, config.locales?.default);
|
|
426
426
|
if (external) return /* @__PURE__ */ jsx("a", {
|
|
427
427
|
href,
|
|
428
428
|
target: "_blank",
|
|
@@ -452,25 +452,22 @@ function PageFooter() {
|
|
|
452
452
|
const footer = config.footer;
|
|
453
453
|
const links = footer?.links ?? [];
|
|
454
454
|
const socials = Object.entries(footer?.socials ?? {});
|
|
455
|
-
const copyright = footer?.copyright ? resolveLocalizedText(footer.copyright, locale, config.
|
|
456
|
-
if (!Boolean(copyright || links.length > 0 || socials.length > 0)) return
|
|
457
|
-
"aria-hidden": "true",
|
|
458
|
-
className: "clarify-page-footer mt-16 w-full border-t border-(--clarify-theme-tokens-colors-border) pt-8 lg:mt-24"
|
|
459
|
-
});
|
|
455
|
+
const copyright = footer?.copyright ? resolveLocalizedText(footer.copyright, locale, config.locales?.default) : void 0;
|
|
456
|
+
if (!Boolean(copyright || links.length > 0 || socials.length > 0)) return null;
|
|
460
457
|
return /* @__PURE__ */ jsx("footer", {
|
|
461
|
-
className: "clarify-page-footer
|
|
458
|
+
className: "clarify-page-footer w-full",
|
|
462
459
|
children: /* @__PURE__ */ jsxs("div", {
|
|
463
|
-
className: clsx("clarify-footer-content flex flex-col items-
|
|
460
|
+
className: clsx("clarify-footer-content flex flex-col items-start gap-2.5 text-left"),
|
|
464
461
|
children: [copyright ? /* @__PURE__ */ jsx("p", {
|
|
465
462
|
className: "clarify-footer-copyright m-0",
|
|
466
463
|
children: copyright
|
|
467
464
|
}) : null, links.length > 0 || socials.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
468
|
-
className: "clarify-footer-links flex flex-wrap justify-
|
|
465
|
+
className: "clarify-footer-links flex flex-wrap justify-start gap-x-4 gap-y-2",
|
|
469
466
|
children: [links.map((link) => /* @__PURE__ */ jsx(FooterLink, {
|
|
470
467
|
link,
|
|
471
468
|
locale,
|
|
472
469
|
config
|
|
473
|
-
}, `${link.href}-${resolveLocalizedText(link.label, locale, config.
|
|
470
|
+
}, `${link.href}-${resolveLocalizedText(link.label, locale, config.locales?.default)}`)), socials.map(([name, href]) => /* @__PURE__ */ jsx(SocialLink, {
|
|
474
471
|
name,
|
|
475
472
|
href
|
|
476
473
|
}, name))]
|
|
@@ -493,40 +490,42 @@ function PageNavigation(arg0) {
|
|
|
493
490
|
const previous = pageRoutes[currentIndex - 1];
|
|
494
491
|
const next = pageRoutes[currentIndex + 1];
|
|
495
492
|
if (!previous && !next) return null;
|
|
493
|
+
const hasBothDirections = Boolean(previous && next);
|
|
496
494
|
return /* @__PURE__ */ jsxs("nav", {
|
|
497
|
-
className: "clarify-page-navigation mt-
|
|
495
|
+
className: clsx("clarify-page-navigation mt-12 grid border-t border-(--clarify-theme-tokens-colors-border)", hasBothDirections && "@3xl:grid-cols-2"),
|
|
498
496
|
"aria-label": t("navigation.previousNext"),
|
|
499
|
-
children: [/* @__PURE__ */ jsx(PageNavigationLink, {
|
|
497
|
+
children: [previous ? /* @__PURE__ */ jsx(PageNavigationLink, {
|
|
500
498
|
direction: "previous",
|
|
501
|
-
route: previous
|
|
502
|
-
|
|
499
|
+
route: previous,
|
|
500
|
+
separated: hasBothDirections
|
|
501
|
+
}) : null, next ? /* @__PURE__ */ jsx(PageNavigationLink, {
|
|
503
502
|
direction: "next",
|
|
504
|
-
route: next
|
|
505
|
-
|
|
503
|
+
route: next,
|
|
504
|
+
separated: hasBothDirections
|
|
505
|
+
}) : null]
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
function PageNavigationLink(arg0) {
|
|
509
|
-
const { direction, route } = arg0;
|
|
509
|
+
const { direction, route, separated } = arg0;
|
|
510
510
|
const t = useBuiltInText();
|
|
511
|
-
if (!route) return /* @__PURE__ */ jsx("div", { className: "hidden @3xl:block" });
|
|
512
511
|
const isNext = direction === "next";
|
|
513
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
514
513
|
to: normalizeRoutePath(route.path),
|
|
515
|
-
className: clsx("group flex min-w-0
|
|
516
|
-
children:
|
|
517
|
-
|
|
518
|
-
/* @__PURE__ */ jsxs("span", {
|
|
519
|
-
className: "
|
|
520
|
-
children: [
|
|
521
|
-
className: "
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
514
|
+
className: clsx("group flex min-w-0 py-5 no-underline outline-none focus-visible:bg-(--clarify-ui-hover-background)", !isNext && "@3xl:pr-8", isNext && "@3xl:justify-end @3xl:pl-8 @3xl:text-right", isNext && separated && "border-t border-(--clarify-theme-tokens-colors-border) @3xl:border-t-0 @3xl:border-l"),
|
|
515
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
516
|
+
className: clsx("min-w-0", isNext && "ml-auto"),
|
|
517
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
518
|
+
className: clsx("clarify-page-navigation-label flex items-center gap-1.5 text-xs/5 font-medium text-(--clarify-theme-tokens-colors-muted)", isNext && "justify-end"),
|
|
519
|
+
children: [
|
|
520
|
+
!isNext ? /* @__PURE__ */ jsx(ChevronLeft, { className: "size-3.5 transition-transform group-hover:-translate-x-0.5" }) : null,
|
|
521
|
+
isNext ? t("navigation.next") : t("navigation.previous"),
|
|
522
|
+
isNext ? /* @__PURE__ */ jsx(ChevronRight, { className: "size-3.5 transition-transform group-hover:translate-x-0.5" }) : null
|
|
523
|
+
]
|
|
524
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
525
|
+
className: "clarify-page-navigation-title mt-1 block truncate text-base/6 font-semibold text-(--clarify-theme-tokens-colors-foreground) transition-colors group-hover:text-(--clarify-theme-tokens-colors-primary)",
|
|
526
|
+
children: route.title
|
|
527
|
+
})]
|
|
528
|
+
})
|
|
530
529
|
});
|
|
531
530
|
}
|
|
532
531
|
//#endregion
|
|
@@ -769,19 +768,19 @@ function scrollToHash(hash) {
|
|
|
769
768
|
});
|
|
770
769
|
}
|
|
771
770
|
function explicitLocaleForPath(config, pathname) {
|
|
772
|
-
const
|
|
773
|
-
if (!
|
|
771
|
+
const locales = config.locales;
|
|
772
|
+
if (!locales) return void 0;
|
|
774
773
|
const firstSegment = pathname.split("/").filter(Boolean)[0];
|
|
775
|
-
return
|
|
774
|
+
return locales.locales.find((locale) => locale.code === firstSegment)?.code;
|
|
776
775
|
}
|
|
777
776
|
function fallbackLocale(config) {
|
|
778
|
-
return config.
|
|
777
|
+
return config.locales?.default;
|
|
779
778
|
}
|
|
780
779
|
function storedLocaleForConfig(config) {
|
|
781
|
-
return getStoredLocalePreference(config.
|
|
780
|
+
return getStoredLocalePreference(config.locales?.locales.map((locale) => locale.code));
|
|
782
781
|
}
|
|
783
782
|
function isDefaultLocale(config, locale) {
|
|
784
|
-
return Boolean(locale && config.
|
|
783
|
+
return Boolean(locale && config.locales?.default === locale);
|
|
785
784
|
}
|
|
786
785
|
function hasPath(nodes, pathname, locale) {
|
|
787
786
|
return nodes.some((node) => isSameRoutePath(node.path, pathname, locale) || hasPath(node.children ?? [], pathname, locale));
|
|
@@ -831,7 +830,7 @@ function useRouteState(config, routes, navigation, pathname) {
|
|
|
831
830
|
explicitLocale,
|
|
832
831
|
storedLocale,
|
|
833
832
|
currentLocale,
|
|
834
|
-
currentLocaleConfig: config.
|
|
833
|
+
currentLocaleConfig: config.locales?.locales.find((locale) => locale.code === currentLocale),
|
|
835
834
|
notFoundRoute: currentRoute ? void 0 : notFoundRouteForPath(routes, pathname, currentLocale),
|
|
836
835
|
currentNavigation: navigationForLocale(navigation, currentLocale, pathname),
|
|
837
836
|
sections: sectionsForRoute(currentRoute)
|
|
@@ -855,7 +854,7 @@ function useStoredBannerDismissed(storageKey) {
|
|
|
855
854
|
}
|
|
856
855
|
function useBannerState(config, currentLocale) {
|
|
857
856
|
const banner = config.banner;
|
|
858
|
-
const bannerContent = banner ? resolveLocalizedText(banner.content, currentLocale, config.
|
|
857
|
+
const bannerContent = banner ? resolveLocalizedText(banner.content, currentLocale, config.locales?.default) : "";
|
|
859
858
|
const bannerStorageKey = banner && bannerContent ? `clarify:banner:dismissed:${config.title}:${bannerContent}` : void 0;
|
|
860
859
|
const storedBannerDismissed = useStoredBannerDismissed(banner?.dismissible ? bannerStorageKey : void 0);
|
|
861
860
|
const [dismissedBannerKey, setDismissedBannerKey] = useState();
|
|
@@ -1088,17 +1087,19 @@ function AppShell(arg0) {
|
|
|
1088
1087
|
});
|
|
1089
1088
|
}
|
|
1090
1089
|
function renderFooter() {
|
|
1091
|
-
return /* @__PURE__ */ jsxs(
|
|
1092
|
-
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1090
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1091
|
+
className: "clarify-page-footer-region mt-8 grid gap-5 border-t border-(--clarify-theme-tokens-colors-border) pt-6 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-end",
|
|
1092
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
1093
|
+
className: "clarify-page-footer-slot min-w-0",
|
|
1094
|
+
children: [/* @__PURE__ */ jsx(RuntimeSlot, { name: "page.footer.before" }), /* @__PURE__ */ jsx(RuntimeSlot, {
|
|
1095
|
+
name: "page.footer.replace",
|
|
1096
|
+
default: DefaultFooterComponent
|
|
1097
|
+
})]
|
|
1098
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
1099
|
+
className: "clarify-page-attribution flex justify-end sm:self-end",
|
|
1099
1100
|
children: /* @__PURE__ */ jsx(BuiltWithClarify, {})
|
|
1100
|
-
})
|
|
1101
|
-
|
|
1101
|
+
})]
|
|
1102
|
+
});
|
|
1102
1103
|
}
|
|
1103
1104
|
function renderContent() {
|
|
1104
1105
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -1841,8 +1842,7 @@ function createRandomTheme() {
|
|
|
1841
1842
|
colors: createRandomThemeColors(selection),
|
|
1842
1843
|
radius: { ...selection.radius }
|
|
1843
1844
|
},
|
|
1844
|
-
layout: { maxWidth: selection.maxWidth }
|
|
1845
|
-
editor: false
|
|
1845
|
+
layout: { maxWidth: selection.maxWidth }
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
1848
|
//#endregion
|
|
@@ -1853,42 +1853,47 @@ var themePresets = {
|
|
|
1853
1853
|
preset: "default",
|
|
1854
1854
|
tokens: {
|
|
1855
1855
|
colors: {
|
|
1856
|
-
primary:
|
|
1857
|
-
|
|
1856
|
+
primary: {
|
|
1857
|
+
light: "#047857",
|
|
1858
|
+
dark: "#34d399"
|
|
1859
|
+
},
|
|
1860
|
+
accent: {
|
|
1861
|
+
light: "#0f766e",
|
|
1862
|
+
dark: "#5eead4"
|
|
1863
|
+
},
|
|
1858
1864
|
background: {
|
|
1859
|
-
light: "#
|
|
1860
|
-
dark: "#
|
|
1865
|
+
light: "#f8fafc",
|
|
1866
|
+
dark: "#0a0a0b"
|
|
1861
1867
|
},
|
|
1862
1868
|
foreground: {
|
|
1863
|
-
light: "#
|
|
1864
|
-
dark: "#
|
|
1869
|
+
light: "#172033",
|
|
1870
|
+
dark: "#f4f4f5"
|
|
1865
1871
|
},
|
|
1866
1872
|
surface: {
|
|
1867
1873
|
light: "#ffffff",
|
|
1868
1874
|
dark: "#18181b"
|
|
1869
1875
|
},
|
|
1870
1876
|
muted: {
|
|
1871
|
-
light: "#
|
|
1877
|
+
light: "#667085",
|
|
1872
1878
|
dark: "#a1a1aa"
|
|
1873
1879
|
},
|
|
1874
1880
|
border: {
|
|
1875
|
-
light: "rgb(15 23 42 / 0.
|
|
1876
|
-
dark: "rgb(255 255 255 / 0.
|
|
1881
|
+
light: "rgb(15 23 42 / 0.11)",
|
|
1882
|
+
dark: "rgb(255 255 255 / 0.11)"
|
|
1877
1883
|
},
|
|
1878
1884
|
codeBackground: {
|
|
1879
|
-
light: "#
|
|
1880
|
-
dark: "#
|
|
1885
|
+
light: "#f1f5f3",
|
|
1886
|
+
dark: "#171719"
|
|
1881
1887
|
}
|
|
1882
1888
|
},
|
|
1883
1889
|
radius: {
|
|
1884
1890
|
sm: "6px",
|
|
1885
|
-
md: "
|
|
1886
|
-
lg: "
|
|
1887
|
-
xl: "
|
|
1891
|
+
md: "8px",
|
|
1892
|
+
lg: "12px",
|
|
1893
|
+
xl: "16px"
|
|
1888
1894
|
}
|
|
1889
1895
|
},
|
|
1890
|
-
layout: { maxWidth: "82rem" }
|
|
1891
|
-
editor: false
|
|
1896
|
+
layout: { maxWidth: "82rem" }
|
|
1892
1897
|
},
|
|
1893
1898
|
base: {
|
|
1894
1899
|
preset: "base",
|
|
@@ -1928,8 +1933,7 @@ var themePresets = {
|
|
|
1928
1933
|
xl: "16px"
|
|
1929
1934
|
}
|
|
1930
1935
|
},
|
|
1931
|
-
layout: { maxWidth: "80rem" }
|
|
1932
|
-
editor: false
|
|
1936
|
+
layout: { maxWidth: "80rem" }
|
|
1933
1937
|
}
|
|
1934
1938
|
};
|
|
1935
1939
|
function cloneThemeColorValue(value) {
|
|
@@ -1951,8 +1955,7 @@ function cloneTheme(theme) {
|
|
|
1951
1955
|
},
|
|
1952
1956
|
radius: { ...theme.tokens.radius }
|
|
1953
1957
|
},
|
|
1954
|
-
layout: { ...theme.layout }
|
|
1955
|
-
editor: theme.editor
|
|
1958
|
+
layout: { ...theme.layout }
|
|
1956
1959
|
};
|
|
1957
1960
|
}
|
|
1958
1961
|
function isModeColorValue(value) {
|
|
@@ -2459,4 +2462,4 @@ function ClarifyShell(props) {
|
|
|
2459
2462
|
//#endregion
|
|
2460
2463
|
export { themeBootstrapScript as a, AppShell as c, RenderErrorPanel as d, BuiltWithClarify as f, useSlot as g, SlotProvider as h, themeEditorPresets as i, PageFooter as l, RuntimeSlotsProvider as m, ThemeEditor as n, themePresets as o, RuntimeSlot as p, applyThemeVariables as r, themeStorageKey as s, ClarifyShell as t, PageBanner as u };
|
|
2461
2464
|
|
|
2462
|
-
//# sourceMappingURL=ClarifyShell-
|
|
2465
|
+
//# sourceMappingURL=ClarifyShell-GoSXvgMg.js.map
|