@clarify-labs/renderer 0.11.21 → 0.11.23
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-DwxpyL0U.cjs → ClarifyShell-BCM0tKfd.cjs} +96 -151
- package/output/ClarifyShell-BCM0tKfd.cjs.map +1 -0
- package/output/{ClarifyShell-BdkOnYRO.js → ClarifyShell-CMVVhs5d.js} +96 -151
- package/output/ClarifyShell-CMVVhs5d.js.map +1 -0
- package/output/{MermaidViewer-CPEutQ9L.cjs → MermaidViewer-BeDNlsUO.cjs} +5 -5
- package/output/MermaidViewer-BeDNlsUO.cjs.map +1 -0
- package/output/{MermaidViewer-DtswU1MF.js → MermaidViewer-DHxjl1zP.js} +5 -5
- package/output/MermaidViewer-DHxjl1zP.js.map +1 -0
- package/output/{OpenApiOperation-B68CqUJW.js → OpenApiOperation-BVm4VnFl.js} +128 -108
- package/output/OpenApiOperation-BVm4VnFl.js.map +1 -0
- package/output/{OpenApiOperation-Cv4N92VL.cjs → OpenApiOperation-CyR9Y-2y.cjs} +128 -108
- package/output/OpenApiOperation-CyR9Y-2y.cjs.map +1 -0
- package/output/{PageActions-BszP_J4e.js → PageActions-B98vbZRP.js} +56 -42
- package/output/PageActions-B98vbZRP.js.map +1 -0
- package/output/{PageActions-CwJLUFUH.cjs → PageActions-IpmtuInV.cjs} +61 -41
- package/output/PageActions-IpmtuInV.cjs.map +1 -0
- package/output/{SearchDialog-BKl8YlX5.js → SearchDialog-B4MS3QuJ.js} +9 -9
- package/output/{SearchDialog-BKl8YlX5.js.map → SearchDialog-B4MS3QuJ.js.map} +1 -1
- package/output/{SearchDialog-LCYjnaI0.cjs → SearchDialog-wjtpnKYS.cjs} +9 -9
- package/output/{SearchDialog-LCYjnaI0.cjs.map → SearchDialog-wjtpnKYS.cjs.map} +1 -1
- package/output/app/SectionProvider.d.ts +1 -0
- package/output/client.cjs +3 -3
- package/output/client.js +3 -3
- package/output/core/types.d.ts +1 -0
- package/output/{i18n-Zmmhz7FF.js → i18n-Bt-OaKRP.js} +3 -1
- package/output/i18n-Bt-OaKRP.js.map +1 -0
- package/output/{i18n-BMNCgF9o.cjs → i18n-tOmAUK0W.cjs} +3 -1
- package/output/i18n-tOmAUK0W.cjs.map +1 -0
- package/output/index.cjs +11 -11
- package/output/index.cjs.map +1 -1
- package/output/index.js +11 -11
- package/output/index.js.map +1 -1
- package/output/openapi/components/DeprecatedBadge.d.ts +5 -0
- package/output/preview.cjs +25 -25
- package/output/preview.cjs.map +1 -1
- package/output/preview.js +25 -25
- package/output/preview.js.map +1 -1
- package/output/{render-DHVpckNI.cjs → render-CobBuz3I.cjs} +2 -2
- package/output/{render-DHVpckNI.cjs.map → render-CobBuz3I.cjs.map} +1 -1
- package/output/{render-CRQXzd-y.js → render-D0qt6K1G.js} +2 -2
- package/output/{render-CRQXzd-y.js.map → render-D0qt6K1G.js.map} +1 -1
- package/output/renderer.css +3305 -3643
- package/output/server.cjs +2 -2
- package/output/server.js +2 -2
- package/package.json +1 -1
- package/output/ClarifyShell-BdkOnYRO.js.map +0 -1
- package/output/ClarifyShell-DwxpyL0U.cjs.map +0 -1
- package/output/MermaidViewer-CPEutQ9L.cjs.map +0 -1
- package/output/MermaidViewer-DtswU1MF.js.map +0 -1
- package/output/OpenApiOperation-B68CqUJW.js.map +0 -1
- package/output/OpenApiOperation-Cv4N92VL.cjs.map +0 -1
- package/output/PageActions-BszP_J4e.js.map +0 -1
- package/output/PageActions-CwJLUFUH.cjs.map +0 -1
- package/output/i18n-BMNCgF9o.cjs.map +0 -1
- package/output/i18n-Zmmhz7FF.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
2
|
-
const require_i18n = require("./i18n-
|
|
2
|
+
const require_i18n = require("./i18n-tOmAUK0W.cjs");
|
|
3
3
|
let react = require("react");
|
|
4
4
|
let react_router_dom = require("react-router-dom");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -315,26 +315,26 @@ function ContentActions(arg0) {
|
|
|
315
315
|
onClick: primaryAction.run,
|
|
316
316
|
disabled: primaryPhase === "copying",
|
|
317
317
|
"aria-live": "polite",
|
|
318
|
-
className: "clarify-content-actions-primary clarify-ui-control inline-flex h-9 min-w-0 items-center gap-2 rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) px-3 shadow-
|
|
318
|
+
className: "clarify-content-actions-primary clarify-ui-control inline-flex h-9 min-w-0 items-center gap-2 rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) px-3 shadow-(--clarify-ui-shadow-raised) shadow-zinc-900/5 transition",
|
|
319
319
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(PrimaryIcon, { className: `h-4 w-4 shrink-0 ${primaryPhase === "copying" ? "animate-spin" : ""}` }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
320
320
|
className: "truncate",
|
|
321
321
|
children: primaryPhase === "idle" ? primaryAction.label : feedbackLabel
|
|
322
322
|
})]
|
|
323
323
|
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuButton, {
|
|
324
|
-
className: "clarify-content-actions-trigger clarify-ui-control inline-flex size-9 items-center justify-center rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-
|
|
324
|
+
className: "clarify-content-actions-trigger clarify-ui-control inline-flex size-9 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-(--clarify-ui-shadow-raised) shadow-zinc-900/5 transition",
|
|
325
325
|
"aria-label": t("contentActions.copyOptions"),
|
|
326
326
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, { className: "h-3.5 w-3.5" })
|
|
327
327
|
})]
|
|
328
328
|
}),
|
|
329
329
|
feedbackAction && copyPhase !== "idle" && copied !== primaryAction?.key ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
330
330
|
role: "status",
|
|
331
|
-
className: "absolute top-full right-0 mt-2 inline-flex items-center gap-1.5 whitespace-nowrap rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) px-2.5 py-1.5 text-xs shadow-
|
|
332
|
-
children: [copyPhase === "copying" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LoaderCircle, { className: "h-3.5 w-3.5 animate-spin" }) : copyPhase === "copied" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-3.5 w-3.5 text-(--clarify-
|
|
331
|
+
className: "absolute top-full right-0 mt-2 inline-flex items-center gap-1.5 whitespace-nowrap rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) px-2.5 py-1.5 text-xs shadow-(--clarify-ui-shadow-popover) shadow-zinc-900/10",
|
|
332
|
+
children: [copyPhase === "copying" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LoaderCircle, { className: "h-3.5 w-3.5 animate-spin" }) : copyPhase === "copied" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-3.5 w-3.5 text-(--clarify-tone-success-icon)" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.X, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: feedbackLabel })]
|
|
333
333
|
}) : null,
|
|
334
334
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_headlessui_react.MenuItems, {
|
|
335
335
|
modal: false,
|
|
336
336
|
anchor: "bottom end",
|
|
337
|
-
className: "clarify-content-actions-list clarify-ui-menu z-30 mt-2 w-(--clarify-ui-action-menu-width) origin-top-right rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-1.5 shadow-
|
|
337
|
+
className: "clarify-content-actions-list clarify-ui-menu z-30 mt-2 w-(--clarify-ui-action-menu-width) origin-top-right rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-1.5 shadow-(--clarify-ui-shadow-popover) shadow-zinc-900/5 transition [--anchor-gap:--spacing(2)] focus:outline-none data-closed:scale-95 data-closed:opacity-0",
|
|
338
338
|
children: [
|
|
339
339
|
actions.slice(0, 1).map((action) => {
|
|
340
340
|
const Icon = action.icon;
|
|
@@ -358,7 +358,7 @@ function ContentActions(arg0) {
|
|
|
358
358
|
children: action.description
|
|
359
359
|
})]
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-
|
|
361
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-tone-success-icon) transition ${isCopied ? "opacity-100" : "opacity-0"}` })
|
|
362
362
|
]
|
|
363
363
|
}) }, action.key);
|
|
364
364
|
}),
|
|
@@ -382,7 +382,7 @@ function ContentActions(arg0) {
|
|
|
382
382
|
children: viewDescription
|
|
383
383
|
})]
|
|
384
384
|
}),
|
|
385
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-3.5 w-3.5 shrink-0 text-(--clarify-
|
|
385
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-3.5 w-3.5 shrink-0 text-(--clarify-tone-success-icon) opacity-0" })
|
|
386
386
|
]
|
|
387
387
|
}) }) : null,
|
|
388
388
|
actions.slice(1).map((action) => {
|
|
@@ -407,7 +407,7 @@ function ContentActions(arg0) {
|
|
|
407
407
|
children: action.description
|
|
408
408
|
})]
|
|
409
409
|
}),
|
|
410
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-
|
|
410
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-tone-success-icon) transition ${isCopied ? "opacity-100" : "opacity-0"}` })
|
|
411
411
|
]
|
|
412
412
|
}) }, action.key);
|
|
413
413
|
}),
|
|
@@ -430,7 +430,7 @@ function ContentActions(arg0) {
|
|
|
430
430
|
children: llmsAction.description
|
|
431
431
|
})]
|
|
432
432
|
}),
|
|
433
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-
|
|
433
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-tone-success-icon) transition ${copied === llmsAction.key ? "opacity-100" : "opacity-0"}` })
|
|
434
434
|
]
|
|
435
435
|
}) }, llmsAction.key) : null,
|
|
436
436
|
mcpEnabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItem, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
@@ -452,7 +452,7 @@ function ContentActions(arg0) {
|
|
|
452
452
|
children: mcpAction.description
|
|
453
453
|
})]
|
|
454
454
|
}),
|
|
455
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-
|
|
455
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: `h-3.5 w-3.5 shrink-0 text-(--clarify-tone-success-icon) transition ${copied === mcpAction.key ? "opacity-100" : "opacity-0"}` })
|
|
456
456
|
]
|
|
457
457
|
}) }, mcpAction.key) : null
|
|
458
458
|
]
|
|
@@ -549,7 +549,7 @@ function ThemeToggle() {
|
|
|
549
549
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItems, {
|
|
550
550
|
transition: true,
|
|
551
551
|
modal: false,
|
|
552
|
-
className: "clarify-theme-toggle-menu clarify-ui-menu absolute right-0 z-50 mt-2 w-(--clarify-ui-menu-width) rounded-(--clarify-theme-tokens-radius-xl)
|
|
552
|
+
className: "clarify-theme-toggle-menu clarify-ui-menu absolute right-0 z-50 mt-2 w-(--clarify-ui-menu-width) rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-ui-border) bg-(--clarify-ui-surface-elevated) p-1 shadow-(--clarify-ui-shadow-popover) transition data-closed:scale-95 data-closed:opacity-0 data-enter:duration-100 data-enter:ease-out data-leave:duration-75 data-leave:ease-in",
|
|
553
553
|
children: themeOptions.map((option) => {
|
|
554
554
|
const Icon = option.icon;
|
|
555
555
|
const selected = option.value === theme;
|
|
@@ -742,6 +742,16 @@ function useSectionStore(selector) {
|
|
|
742
742
|
return (0, zustand.useStore)(store, selector);
|
|
743
743
|
}
|
|
744
744
|
//#endregion
|
|
745
|
+
//#region source/openapi/components/DeprecatedBadge.tsx
|
|
746
|
+
function DeprecatedBadge(props) {
|
|
747
|
+
const { className } = props;
|
|
748
|
+
const t = require_i18n.useBuiltInText();
|
|
749
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
750
|
+
className: (0, clsx.default)("inline-flex shrink-0 items-center rounded-(--clarify-theme-tokens-radius-sm) border border-(--clarify-tone-warning-border) bg-(--clarify-tone-warning-background) px-1.5 py-0.5 align-middle text-xs font-medium leading-4 whitespace-nowrap text-(--clarify-tone-warning-text)", className),
|
|
751
|
+
children: t("openapi.deprecated")
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
//#endregion
|
|
745
755
|
//#region source/shell/Navigation.tsx
|
|
746
756
|
function normalizePath(path) {
|
|
747
757
|
return path === "" ? "/" : path;
|
|
@@ -757,15 +767,15 @@ function containsActivePath(node, pathname, currentLocale) {
|
|
|
757
767
|
return isSameRoutePath(node.path, pathname, currentLocale) || node.children?.some((child) => containsActivePath(child, pathname, currentLocale)) || false;
|
|
758
768
|
}
|
|
759
769
|
var sectionBadgeColorStyles = {
|
|
760
|
-
GET: "text-
|
|
761
|
-
POST: "text-
|
|
762
|
-
PUT: "text-
|
|
763
|
-
PATCH: "text-
|
|
764
|
-
DELETE: "text-
|
|
765
|
-
OPTIONS: "text-
|
|
766
|
-
HEAD: "text-
|
|
767
|
-
TRACE: "text-
|
|
768
|
-
WEBHOOK: "text-
|
|
770
|
+
GET: "text-(--clarify-http-method-get-text)",
|
|
771
|
+
POST: "text-(--clarify-http-method-post-text)",
|
|
772
|
+
PUT: "text-(--clarify-http-method-put-text)",
|
|
773
|
+
PATCH: "text-(--clarify-http-method-patch-text)",
|
|
774
|
+
DELETE: "text-(--clarify-http-method-delete-text)",
|
|
775
|
+
OPTIONS: "text-(--clarify-http-method-options-text)",
|
|
776
|
+
HEAD: "text-(--clarify-http-method-head-text)",
|
|
777
|
+
TRACE: "text-(--clarify-http-method-trace-text)",
|
|
778
|
+
WEBHOOK: "text-(--clarify-http-method-webhook-text)"
|
|
769
779
|
};
|
|
770
780
|
function SectionBadge(arg0) {
|
|
771
781
|
const { children } = arg0;
|
|
@@ -872,10 +882,14 @@ function NavigationPage(arg0) {
|
|
|
872
882
|
children: Array.from({ length: Math.max(1, (section.level ?? 2) - 1) }, (_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRight, { className: "invisible h-3.5 w-3.5" }, index))
|
|
873
883
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
874
884
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
875
|
-
children: [
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
885
|
+
children: [
|
|
886
|
+
section.badge ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SectionBadge, { children: section.badge }) : null,
|
|
887
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
888
|
+
className: "min-w-0 flex-1 truncate whitespace-nowrap",
|
|
889
|
+
children: section.title
|
|
890
|
+
}),
|
|
891
|
+
section.deprecated ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DeprecatedBadge, {}) : null
|
|
892
|
+
]
|
|
879
893
|
})]
|
|
880
894
|
}) }, section.id))
|
|
881
895
|
}) : null
|
|
@@ -1030,19 +1044,19 @@ function MobileTabsSelect(arg0) {
|
|
|
1030
1044
|
as: "div",
|
|
1031
1045
|
className: "clarify-mobile-tabs-select mb-6",
|
|
1032
1046
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_headlessui_react.MenuButton, {
|
|
1033
|
-
className: "clarify-mobile-tabs-select-trigger clarify-ui-control group flex h-10 w-full items-center justify-between gap-2 rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-
|
|
1047
|
+
className: "clarify-mobile-tabs-select-trigger clarify-ui-control group flex h-10 w-full items-center justify-between gap-2 rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-ui-border) bg-(--clarify-ui-surface) px-4 text-left font-semibold shadow-(--clarify-ui-shadow-raised) transition",
|
|
1034
1048
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
1035
1049
|
className: "flex min-w-0 items-center gap-2",
|
|
1036
1050
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationIcon, {
|
|
1037
1051
|
name: activeTab.icon,
|
|
1038
|
-
className: "h-4 w-4 shrink-0 text-(--clarify-
|
|
1052
|
+
className: "h-4 w-4 shrink-0 text-(--clarify-brand-navigation-icon)"
|
|
1039
1053
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1040
1054
|
className: "truncate",
|
|
1041
1055
|
children: activeTab.title
|
|
1042
1056
|
})]
|
|
1043
1057
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, { className: "h-4 w-4 shrink-0 text-(--clarify-theme-tokens-colors-muted) transition-transform group-aria-expanded:rotate-180" })]
|
|
1044
1058
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItems, {
|
|
1045
|
-
className: "clarify-mobile-tabs-select-list clarify-ui-menu mt-2 flex flex-col gap-1 rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-
|
|
1059
|
+
className: "clarify-mobile-tabs-select-list clarify-ui-menu mt-2 flex flex-col gap-1 rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-ui-border) bg-(--clarify-ui-surface-elevated) p-1 shadow-(--clarify-ui-shadow-popover) focus:outline-none",
|
|
1046
1060
|
children: tabs.map((tab) => {
|
|
1047
1061
|
const active = isActiveTab$1(tab, pathname, currentLocale);
|
|
1048
1062
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItem, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_router_dom.Link, {
|
|
@@ -1083,7 +1097,7 @@ function MobileNavigationDialog(arg0) {
|
|
|
1083
1097
|
className: "data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in"
|
|
1084
1098
|
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TransitionChild, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
1085
1099
|
layoutScroll: true,
|
|
1086
|
-
className: "clarify-mobile-navigation-panel fixed top-14 bottom-0 left-0 w-full max-w-sm overflow-y-auto bg-(--clarify-theme-tokens-colors-background) px-4 pt-6 pb-4
|
|
1100
|
+
className: "clarify-mobile-navigation-panel fixed top-14 bottom-0 left-0 w-full max-w-sm overflow-y-auto bg-(--clarify-theme-tokens-colors-background) px-4 pt-6 pb-4 ring-1 ring-(--clarify-ui-border) duration-500 ease-in-out data-closed:-translate-x-full sm:px-6 sm:pb-10",
|
|
1087
1101
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileTabsSelect, {
|
|
1088
1102
|
tabs,
|
|
1089
1103
|
currentLocale
|
|
@@ -1116,7 +1130,7 @@ function MobileNavigation(arg0) {
|
|
|
1116
1130
|
className: "clarify-mobile-navigation-button clarify-ui-icon-button relative flex size-9 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) transition",
|
|
1117
1131
|
"aria-label": t("navigation.toggle"),
|
|
1118
1132
|
onClick: toggle,
|
|
1119
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "absolute size-11 pointer-fine:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleIcon, { className: "h-4 w-4 stroke-(--clarify-
|
|
1133
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "absolute size-11 pointer-fine:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleIcon, { className: "h-4 w-4 stroke-(--clarify-ui-text-strong)" })]
|
|
1120
1134
|
}), !isInsideMobileNavigation ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
1121
1135
|
fallback: null,
|
|
1122
1136
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileNavigationDialog, {
|
|
@@ -1151,7 +1165,7 @@ function useSearchProps() {
|
|
|
1151
1165
|
}
|
|
1152
1166
|
//#endregion
|
|
1153
1167
|
//#region source/shell/Search.tsx
|
|
1154
|
-
var SearchDialog = (0, react.lazy)(() => Promise.resolve().then(() => require("./SearchDialog-
|
|
1168
|
+
var SearchDialog = (0, react.lazy)(() => Promise.resolve().then(() => require("./SearchDialog-wjtpnKYS.cjs")));
|
|
1155
1169
|
function getModifierKey() {
|
|
1156
1170
|
if (typeof navigator === "undefined") return "Ctrl ";
|
|
1157
1171
|
return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl ";
|
|
@@ -1168,11 +1182,11 @@ function Search(arg0) {
|
|
|
1168
1182
|
className: compact ? "clarify-search hidden lg:block" : "clarify-search hidden w-80 max-w-(--clarify-search-max-width) lg:block",
|
|
1169
1183
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
1170
1184
|
type: "button",
|
|
1171
|
-
className: compact ? "clarify-search-button clarify-ui-control hidden size-9 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) transition lg:flex" : "clarify-search-button hidden h-9 w-full items-center gap-2 rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-
|
|
1185
|
+
className: compact ? "clarify-search-button clarify-ui-control hidden size-9 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) transition lg:flex" : "clarify-search-button hidden h-9 w-full items-center gap-2 rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-ui-surface) pr-3 pl-2.5 font-medium ring-1 ring-(--clarify-ui-border) transition hover:bg-(--clarify-ui-hover-background) lg:flex",
|
|
1172
1186
|
"aria-label": compact ? t("search.placeholder") : void 0,
|
|
1173
1187
|
...buttonProps,
|
|
1174
1188
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Search, { className: "h-5 w-5 stroke-current" }), !compact ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t("search.button"), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("kbd", {
|
|
1175
|
-
className: "clarify-search-shortcut ml-auto rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-
|
|
1189
|
+
className: "clarify-search-shortcut ml-auto rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-ui-subtle-background) px-1.5 py-0.5 ring-1 ring-(--clarify-ui-border)",
|
|
1176
1190
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("kbd", {
|
|
1177
1191
|
className: "font-sans",
|
|
1178
1192
|
children: modifierKey
|
|
@@ -1209,7 +1223,7 @@ function MobileSearch(arg0) {
|
|
|
1209
1223
|
className: "clarify-mobile-search-button clarify-ui-control relative flex size-9 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) transition lg:hidden",
|
|
1210
1224
|
"aria-label": t("search.placeholder"),
|
|
1211
1225
|
...buttonProps,
|
|
1212
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "absolute size-11 pointer-fine:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Search, { className: "h-5 w-5 stroke-(--clarify-
|
|
1226
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "absolute size-11 pointer-fine:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Search, { className: "h-5 w-5 stroke-(--clarify-ui-text-strong)" })]
|
|
1213
1227
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
1214
1228
|
fallback: null,
|
|
1215
1229
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchDialog, {
|
|
@@ -1287,7 +1301,7 @@ function LanguageSwitcher(arg0) {
|
|
|
1287
1301
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItems, {
|
|
1288
1302
|
transition: true,
|
|
1289
1303
|
modal: false,
|
|
1290
|
-
className: "clarify-language-switcher-menu clarify-ui-menu absolute right-0 z-50 mt-2 w-(--clarify-ui-menu-width) rounded-(--clarify-theme-tokens-radius-xl)
|
|
1304
|
+
className: "clarify-language-switcher-menu clarify-ui-menu absolute right-0 z-50 mt-2 w-(--clarify-ui-menu-width) rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-ui-border) bg-(--clarify-ui-surface-elevated) p-1 shadow-(--clarify-ui-shadow-popover) transition data-closed:scale-95 data-closed:opacity-0 data-enter:duration-100 data-enter:ease-out data-leave:duration-75 data-leave:ease-in",
|
|
1291
1305
|
children: locales.locales.flatMap((locale) => {
|
|
1292
1306
|
const localizedPath = localizedRoutePath(config, locale.code, currentRoute);
|
|
1293
1307
|
if (!localizedPath) return [];
|
|
@@ -1456,7 +1470,7 @@ function NavbarMenus(arg0) {
|
|
|
1456
1470
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItems, {
|
|
1457
1471
|
anchor: "bottom start",
|
|
1458
1472
|
transition: true,
|
|
1459
|
-
className: "clarify-ui-menu z-50 mt-2 min-w-48 rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-
|
|
1473
|
+
className: "clarify-ui-menu z-50 mt-2 min-w-48 rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-ui-border) bg-(--clarify-ui-surface-elevated) p-1 shadow-(--clarify-ui-shadow-popover) transition [--anchor-gap:--spacing(2)] focus:outline-none data-closed:scale-95 data-closed:opacity-0",
|
|
1460
1474
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavbarMenuItems, {
|
|
1461
1475
|
items: menu.items,
|
|
1462
1476
|
config,
|
|
@@ -1482,7 +1496,7 @@ function MobileNavbarMenu(arg0) {
|
|
|
1482
1496
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.MenuItems, {
|
|
1483
1497
|
transition: true,
|
|
1484
1498
|
anchor: "bottom end",
|
|
1485
|
-
className: "clarify-mobile-navbar-menu-list clarify-ui-menu z-50 mt-2 w-(--clarify-ui-menu-width) rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-
|
|
1499
|
+
className: "clarify-mobile-navbar-menu-list clarify-ui-menu z-50 mt-2 w-(--clarify-ui-menu-width) rounded-(--clarify-theme-tokens-radius-xl) border border-(--clarify-ui-border) bg-(--clarify-ui-surface-elevated) p-1 shadow-(--clarify-ui-shadow-popover) transition [--anchor-gap:--spacing(2)] focus:outline-none data-closed:scale-95 data-closed:opacity-0",
|
|
1486
1500
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavbarMenuItems, {
|
|
1487
1501
|
items: menus,
|
|
1488
1502
|
config,
|
|
@@ -1544,7 +1558,7 @@ function ProductTabs(arg0) {
|
|
|
1544
1558
|
if (!tabs?.length) return null;
|
|
1545
1559
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1546
1560
|
"data-clarify-header-tabs": true,
|
|
1547
|
-
className: "clarify-product-tabs hidden h-14 border-t border-(--clarify-
|
|
1561
|
+
className: "clarify-product-tabs hidden h-14 border-t border-(--clarify-ui-border) lg:block",
|
|
1548
1562
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1549
1563
|
className: "clarify-product-tabs-frame relative mx-auto h-full w-full max-w-(--clarify-theme-layout-max-width)",
|
|
1550
1564
|
"data-at-start": scrollState.start || void 0,
|
|
@@ -1675,7 +1689,7 @@ var Header = (0, react.forwardRef)(function Header(arg0, ref) {
|
|
|
1675
1689
|
currentLocale
|
|
1676
1690
|
}) : null,
|
|
1677
1691
|
renderTopLinks(),
|
|
1678
|
-
hasNavbarMenus ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "mx-2 hidden h-5 w-px bg-(--clarify-
|
|
1692
|
+
hasNavbarMenus ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "mx-2 hidden h-5 w-px bg-(--clarify-ui-border-strong) md:block" }) : null,
|
|
1679
1693
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileSearch, {
|
|
1680
1694
|
routes,
|
|
1681
1695
|
navigation
|
|
@@ -1743,7 +1757,7 @@ var Header = (0, react.forwardRef)(function Header(arg0, ref) {
|
|
|
1743
1757
|
...props,
|
|
1744
1758
|
ref,
|
|
1745
1759
|
"data-pagefind-ignore": true,
|
|
1746
|
-
className: (0, clsx.default)(className, "clarify-header fixed inset-x-0 top-0 z-50 border-b border-(--clarify-
|
|
1760
|
+
className: (0, clsx.default)(className, "clarify-header fixed inset-x-0 top-0 z-50 border-b border-(--clarify-ui-border) bg-(--clarify-theme-tokens-colors-background)/(--bg-opacity-light) backdrop-blur-xs transition dark:bg-(--clarify-theme-tokens-colors-background)/(--bg-opacity-dark) dark:backdrop-blur-sm", isInsideMobileNavigation && "bg-(--clarify-theme-tokens-colors-background)"),
|
|
1747
1761
|
style: {
|
|
1748
1762
|
"--bg-opacity-light": bgOpacityLight,
|
|
1749
1763
|
"--bg-opacity-dark": bgOpacityDark
|
|
@@ -1820,6 +1834,12 @@ function PageMetadata(props) {
|
|
|
1820
1834
|
});
|
|
1821
1835
|
}
|
|
1822
1836
|
//#endregion
|
|
1837
|
+
Object.defineProperty(exports, "DeprecatedBadge", {
|
|
1838
|
+
enumerable: true,
|
|
1839
|
+
get: function() {
|
|
1840
|
+
return DeprecatedBadge;
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1823
1843
|
Object.defineProperty(exports, "Header", {
|
|
1824
1844
|
enumerable: true,
|
|
1825
1845
|
get: function() {
|
|
@@ -1989,4 +2009,4 @@ Object.defineProperty(exports, "useTheme", {
|
|
|
1989
2009
|
}
|
|
1990
2010
|
});
|
|
1991
2011
|
|
|
1992
|
-
//# sourceMappingURL=PageActions-
|
|
2012
|
+
//# sourceMappingURL=PageActions-IpmtuInV.cjs.map
|