@clarify-labs/renderer 0.11.20 → 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 +2 -2
- 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,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
2
|
-
const require_i18n = require("./i18n-
|
|
3
|
-
const require_PageActions = require("./PageActions-
|
|
2
|
+
const require_i18n = require("./i18n-tOmAUK0W.cjs");
|
|
3
|
+
const require_PageActions = require("./PageActions-IpmtuInV.cjs");
|
|
4
4
|
const require_remark = require("./remark-DTLbG8PK.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let react_router_dom = require("react-router-dom");
|
|
@@ -64,15 +64,15 @@ function LocalizedLink(arg0) {
|
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region source/components/Button.tsx
|
|
66
66
|
var buttonVariantStyles = {
|
|
67
|
-
primary: "bg-(--clarify-theme-tokens-colors-foreground) px-4 text-(--clarify-theme-tokens-colors-background) shadow-
|
|
68
|
-
secondary: "bg-(--clarify-
|
|
69
|
-
filled: "bg-(--clarify-theme-tokens-colors-primary) px-4 text-
|
|
70
|
-
outline: "px-4 text-(--clarify-ui-text-soft) ring-1 ring-inset ring-(--clarify-
|
|
71
|
-
text: "text-(--clarify-
|
|
67
|
+
primary: "bg-(--clarify-theme-tokens-colors-foreground) px-4 text-(--clarify-theme-tokens-colors-background) shadow-(--clarify-ui-shadow-raised) transition hover:-translate-y-px hover:shadow-(--clarify-ui-shadow-lifted) active:translate-y-0 active:shadow-(--clarify-ui-shadow-raised) dark:bg-(--clarify-theme-tokens-colors-primary) dark:text-(--clarify-ui-on-accent)",
|
|
68
|
+
secondary: "bg-(--clarify-ui-subtle-background) px-4 text-(--clarify-ui-text-soft) ring-1 ring-inset ring-(--clarify-ui-border) hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground)",
|
|
69
|
+
filled: "bg-(--clarify-theme-tokens-colors-primary) px-4 text-(--clarify-ui-on-accent) shadow-(--clarify-ui-shadow-raised) transition hover:-translate-y-px hover:shadow-(--clarify-ui-shadow-lifted) active:translate-y-0",
|
|
70
|
+
outline: "px-4 text-(--clarify-ui-text-soft) ring-1 ring-inset ring-(--clarify-ui-border) hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground)",
|
|
71
|
+
text: "text-(--clarify-ui-accent-text) hover:opacity-80"
|
|
72
72
|
};
|
|
73
73
|
function Button(arg0) {
|
|
74
74
|
const { variant = "primary", className, children, arrow, ...props } = arg0;
|
|
75
|
-
const classes = (0, clsx.default)("clarify-button not-prose inline-flex w-fit max-w-full items-center justify-center gap-1.5 overflow-hidden align-middle text-sm font-semibold whitespace-nowrap no-underline transition duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary) focus-visible:ring-offset-2 focus-visible:ring-offset-(--clarify-theme-tokens-colors-background)", variant === "text" ? "h-auto rounded-sm" : "h-9 rounded-(--clarify-theme-tokens-radius-lg)", buttonVariantStyles[variant], className);
|
|
75
|
+
const classes = (0, clsx.default)("clarify-button not-prose inline-flex w-fit max-w-full items-center justify-center gap-1.5 overflow-hidden align-middle text-sm font-semibold whitespace-nowrap no-underline transition duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary) focus-visible:ring-offset-2 focus-visible:ring-offset-(--clarify-theme-tokens-colors-background)", variant === "text" ? "h-auto rounded-(--clarify-theme-tokens-radius-sm)" : "h-9 rounded-(--clarify-theme-tokens-radius-lg)", buttonVariantStyles[variant], className);
|
|
76
76
|
const arrowIcon = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ArrowRight, {
|
|
77
77
|
"aria-hidden": "true",
|
|
78
78
|
className: (0, clsx.default)("h-4 w-4 shrink-0", variant === "text" && "relative top-px", arrow === "left" && "-ml-0.5 rotate-180", arrow === "right" && "-mr-0.5")
|
|
@@ -100,48 +100,67 @@ function Button(arg0) {
|
|
|
100
100
|
//#region source/components/Callout.tsx
|
|
101
101
|
var calloutStyles = {
|
|
102
102
|
info: {
|
|
103
|
-
|
|
104
|
-
iconContainer: "bg-sky-100 ring-sky-500/15 dark:bg-sky-400/10 dark:ring-sky-400/20",
|
|
105
|
-
icon: "text-sky-600 dark:text-sky-400",
|
|
106
|
-
title: "text-sky-900 dark:text-sky-100",
|
|
103
|
+
tone: "info",
|
|
107
104
|
Icon: lucide_react.Info
|
|
108
105
|
},
|
|
109
106
|
note: {
|
|
110
|
-
|
|
111
|
-
iconContainer: "bg-zinc-200/70 ring-zinc-500/15 dark:bg-white/10 dark:ring-white/10",
|
|
112
|
-
icon: "text-zinc-500 dark:text-zinc-400",
|
|
113
|
-
title: "text-zinc-900 dark:text-white",
|
|
107
|
+
tone: "neutral",
|
|
114
108
|
Icon: lucide_react.Info
|
|
115
109
|
},
|
|
116
110
|
tip: {
|
|
117
|
-
|
|
118
|
-
iconContainer: "bg-emerald-100 ring-emerald-500/15 dark:bg-emerald-400/10 dark:ring-emerald-400/20",
|
|
119
|
-
icon: "text-emerald-600 dark:text-emerald-400",
|
|
120
|
-
title: "text-emerald-900 dark:text-emerald-100",
|
|
111
|
+
tone: "success",
|
|
121
112
|
Icon: lucide_react.Lightbulb
|
|
122
113
|
},
|
|
123
114
|
warning: {
|
|
124
|
-
|
|
125
|
-
iconContainer: "bg-amber-100 ring-amber-500/15 dark:bg-amber-400/10 dark:ring-amber-400/20",
|
|
126
|
-
icon: "text-amber-600 dark:text-amber-400",
|
|
127
|
-
title: "text-amber-900 dark:text-amber-100",
|
|
115
|
+
tone: "warning",
|
|
128
116
|
Icon: lucide_react.AlertTriangle
|
|
129
117
|
},
|
|
130
118
|
danger: {
|
|
131
|
-
|
|
132
|
-
iconContainer: "bg-rose-100 ring-rose-500/15 dark:bg-rose-400/10 dark:ring-rose-400/20",
|
|
133
|
-
icon: "text-rose-600 dark:text-rose-400",
|
|
134
|
-
title: "text-rose-900 dark:text-rose-100",
|
|
119
|
+
tone: "danger",
|
|
135
120
|
Icon: lucide_react.XCircle
|
|
136
121
|
},
|
|
137
122
|
success: {
|
|
138
|
-
|
|
139
|
-
iconContainer: "bg-emerald-100 ring-emerald-500/15 dark:bg-emerald-400/10 dark:ring-emerald-400/20",
|
|
140
|
-
icon: "text-emerald-600 dark:text-emerald-400",
|
|
141
|
-
title: "text-emerald-900 dark:text-emerald-100",
|
|
123
|
+
tone: "success",
|
|
142
124
|
Icon: lucide_react.CheckCircle2
|
|
143
125
|
}
|
|
144
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* Tone classes are written out (instead of interpolated) so Tailwind can see
|
|
129
|
+
* them at build time. Colours come from --clarify-tone-* so every callout
|
|
130
|
+
* follows the active theme preset.
|
|
131
|
+
*/
|
|
132
|
+
var calloutToneStyles = {
|
|
133
|
+
neutral: {
|
|
134
|
+
container: "border-(--clarify-tone-neutral-border) bg-(--clarify-tone-neutral-background)",
|
|
135
|
+
iconContainer: "bg-(--clarify-tone-neutral-icon-background) ring-(--clarify-tone-neutral-border)",
|
|
136
|
+
icon: "text-(--clarify-tone-neutral-icon)",
|
|
137
|
+
title: "text-(--clarify-tone-neutral-text)"
|
|
138
|
+
},
|
|
139
|
+
info: {
|
|
140
|
+
container: "border-(--clarify-tone-info-border) bg-(--clarify-tone-info-background)",
|
|
141
|
+
iconContainer: "bg-(--clarify-tone-info-icon-background) ring-(--clarify-tone-info-border)",
|
|
142
|
+
icon: "text-(--clarify-tone-info-icon)",
|
|
143
|
+
title: "text-(--clarify-tone-info-text)"
|
|
144
|
+
},
|
|
145
|
+
success: {
|
|
146
|
+
container: "border-(--clarify-tone-success-border) bg-(--clarify-tone-success-background)",
|
|
147
|
+
iconContainer: "bg-(--clarify-tone-success-icon-background) ring-(--clarify-tone-success-border)",
|
|
148
|
+
icon: "text-(--clarify-tone-success-icon)",
|
|
149
|
+
title: "text-(--clarify-tone-success-text)"
|
|
150
|
+
},
|
|
151
|
+
warning: {
|
|
152
|
+
container: "border-(--clarify-tone-warning-border) bg-(--clarify-tone-warning-background)",
|
|
153
|
+
iconContainer: "bg-(--clarify-tone-warning-icon-background) ring-(--clarify-tone-warning-border)",
|
|
154
|
+
icon: "text-(--clarify-tone-warning-icon)",
|
|
155
|
+
title: "text-(--clarify-tone-warning-text)"
|
|
156
|
+
},
|
|
157
|
+
danger: {
|
|
158
|
+
container: "border-(--clarify-tone-danger-border) bg-(--clarify-tone-danger-background)",
|
|
159
|
+
iconContainer: "bg-(--clarify-tone-danger-icon-background) ring-(--clarify-tone-danger-border)",
|
|
160
|
+
icon: "text-(--clarify-tone-danger-icon)",
|
|
161
|
+
title: "text-(--clarify-tone-danger-text)"
|
|
162
|
+
}
|
|
163
|
+
};
|
|
145
164
|
var defaultTitleKeys = {
|
|
146
165
|
info: "callout.info",
|
|
147
166
|
note: "callout.note",
|
|
@@ -154,21 +173,22 @@ function Callout(arg0) {
|
|
|
154
173
|
const { children, type = "info", title, icon = true, className, ...props } = arg0;
|
|
155
174
|
const t = require_i18n.useBuiltInText();
|
|
156
175
|
const style = calloutStyles[type];
|
|
176
|
+
const toneStyle = calloutToneStyles[style.tone];
|
|
157
177
|
const Icon = style.Icon;
|
|
158
178
|
const resolvedTitle = title === void 0 ? t(defaultTitleKeys[type]) : title;
|
|
159
179
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
160
|
-
className: (0, clsx.default)("clarify-callout my-6 flex gap-3.5 rounded-(--clarify-theme-tokens-radius-lg) border p-4 text-sm/6 text-(--clarify-ui-text-soft)",
|
|
180
|
+
className: (0, clsx.default)("clarify-callout my-6 flex gap-3.5 rounded-(--clarify-theme-tokens-radius-lg) border p-4 text-sm/6 text-(--clarify-ui-text-soft)", toneStyle.container, className),
|
|
161
181
|
...props,
|
|
162
182
|
children: [icon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
163
|
-
className: (0, clsx.default)("flex size-7 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) ring-1 ring-inset",
|
|
183
|
+
className: (0, clsx.default)("flex size-7 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) ring-1 ring-inset", toneStyle.iconContainer),
|
|
164
184
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
165
|
-
className: (0, clsx.default)("size-4",
|
|
185
|
+
className: (0, clsx.default)("size-4", toneStyle.icon),
|
|
166
186
|
"aria-hidden": "true"
|
|
167
187
|
})
|
|
168
188
|
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
169
189
|
className: "min-w-0 flex-1 *:first:mt-0 *:last:mb-0",
|
|
170
190
|
children: [resolvedTitle ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
171
|
-
className: (0, clsx.default)("mb-1.5 font-semibold",
|
|
191
|
+
className: (0, clsx.default)("mb-1.5 font-semibold", toneStyle.title),
|
|
172
192
|
children: resolvedTitle
|
|
173
193
|
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
174
194
|
className: "*:first:mt-0 *:last:mb-0",
|
|
@@ -187,7 +207,7 @@ function CardIcon(arg0) {
|
|
|
187
207
|
const Icon = require_PageActions.lucideIconRegistry[iconName];
|
|
188
208
|
if (!Icon) return null;
|
|
189
209
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
190
|
-
className: "flex size-8 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-
|
|
210
|
+
className: "flex size-8 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-subtle-background) text-(--clarify-ui-text-soft) ring-1 ring-inset ring-(--clarify-ui-border) transition-colors group-hover:bg-(--clarify-ui-active-background) group-hover:text-(--clarify-ui-text-strong)",
|
|
191
211
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
192
212
|
className: "size-4",
|
|
193
213
|
"aria-hidden": "true"
|
|
@@ -219,7 +239,7 @@ function Card(arg0) {
|
|
|
219
239
|
className: "m-0 text-sm/6 font-semibold text-(--clarify-theme-tokens-colors-foreground)",
|
|
220
240
|
children: title
|
|
221
241
|
}), href ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ArrowUpRight, {
|
|
222
|
-
className: "mt-1 size-3.5 shrink-0 text-(--clarify-ui-text-faint) transition group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-hover:text-(--clarify-ui-
|
|
242
|
+
className: "mt-1 size-3.5 shrink-0 text-(--clarify-ui-text-faint) transition group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-hover:text-(--clarify-ui-text-strong)",
|
|
223
243
|
"aria-hidden": "true"
|
|
224
244
|
}) : null]
|
|
225
245
|
}), children ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -231,7 +251,7 @@ function Card(arg0) {
|
|
|
231
251
|
className: "absolute inset-0 rounded-(--clarify-theme-tokens-radius-xl)",
|
|
232
252
|
"aria-hidden": "true"
|
|
233
253
|
}) : null] });
|
|
234
|
-
const classes = (0, clsx.default)("group relative block rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-4 transition duration-200", href && "hover:-translate-y-0.5 hover:border-(--clarify-ui-
|
|
254
|
+
const classes = (0, clsx.default)("group relative block rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-4 transition duration-200", href && "hover:-translate-y-0.5 hover:border-(--clarify-ui-border-strong) hover:shadow-(--clarify-ui-shadow-lifted) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary) focus-visible:ring-offset-2", className);
|
|
235
255
|
if (!href) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
236
256
|
className: classes,
|
|
237
257
|
children: content
|
|
@@ -245,7 +265,7 @@ function Card(arg0) {
|
|
|
245
265
|
}
|
|
246
266
|
//#endregion
|
|
247
267
|
//#region source/components/Mermaid.tsx
|
|
248
|
-
var MermaidViewer = (0, react.lazy)(() => Promise.resolve().then(() => require("./MermaidViewer-
|
|
268
|
+
var MermaidViewer = (0, react.lazy)(() => Promise.resolve().then(() => require("./MermaidViewer-BeDNlsUO.cjs")));
|
|
249
269
|
var mermaidModulePromise;
|
|
250
270
|
async function loadMermaid() {
|
|
251
271
|
mermaidModulePromise = mermaidModulePromise ?? import("mermaid").then((module) => module.default);
|
|
@@ -297,10 +317,10 @@ function Mermaid(arg0) {
|
|
|
297
317
|
resolvedTheme
|
|
298
318
|
]);
|
|
299
319
|
if (error) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
300
|
-
className: (0, clsx.default)("clarify-mermaid clarify-mermaid-error my-6 overflow-x-auto rounded-
|
|
320
|
+
className: (0, clsx.default)("clarify-mermaid clarify-mermaid-error my-6 overflow-x-auto rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-tone-danger-border) bg-(--clarify-tone-danger-background) p-4", className),
|
|
301
321
|
children: [
|
|
302
322
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
303
|
-
className: "text-sm font-semibold text-(--clarify-
|
|
323
|
+
className: "text-sm font-semibold text-(--clarify-tone-danger-text)",
|
|
304
324
|
children: t("mermaid.renderError")
|
|
305
325
|
}),
|
|
306
326
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
@@ -314,7 +334,7 @@ function Mermaid(arg0) {
|
|
|
314
334
|
]
|
|
315
335
|
});
|
|
316
336
|
if (!svg) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
317
|
-
className: (0, clsx.default)("clarify-mermaid clarify-mermaid-loading not-prose my-6 overflow-x-auto rounded-
|
|
337
|
+
className: (0, clsx.default)("clarify-mermaid clarify-mermaid-loading not-prose my-6 overflow-x-auto rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-4", className),
|
|
318
338
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
319
339
|
className: "text-xs text-(--clarify-ui-text-soft)",
|
|
320
340
|
children: chart.trim()
|
|
@@ -334,7 +354,7 @@ function Mermaid(arg0) {
|
|
|
334
354
|
function MermaidStaticSvg(arg0) {
|
|
335
355
|
const { svg, className } = arg0;
|
|
336
356
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
337
|
-
className: (0, clsx.default)("clarify-mermaid not-prose my-6 overflow-x-auto rounded-
|
|
357
|
+
className: (0, clsx.default)("clarify-mermaid not-prose my-6 overflow-x-auto rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-4", className),
|
|
338
358
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
339
359
|
className: "flex w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full",
|
|
340
360
|
dangerouslySetInnerHTML: { __html: svg }
|
|
@@ -405,13 +425,13 @@ function CopyButton$1(arg0) {
|
|
|
405
425
|
if (!code) return null;
|
|
406
426
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
407
427
|
type: "button",
|
|
408
|
-
className: (0, clsx.default)("clarify-code-copy group/button absolute top-3.5 right-4 inline-flex items-center gap-1 overflow-hidden rounded-full border border-(--clarify-code-border) py-1 pr-3 pl-2 text-2xs font-medium whitespace-nowrap opacity-100 shadow-
|
|
428
|
+
className: (0, clsx.default)("clarify-code-copy group/button absolute top-3.5 right-4 inline-flex items-center gap-1 overflow-hidden rounded-full border border-(--clarify-code-border) py-1 pr-3 pl-2 text-2xs font-medium whitespace-nowrap opacity-100 shadow-(--clarify-ui-shadow-raised) backdrop-blur-sm transition sm:opacity-0 sm:group-hover:opacity-100 focus:opacity-100", copied ? "clarify-code-copy-copied text-(--clarify-code-text)" : "bg-(--clarify-code-control-background) text-(--clarify-code-text) hover:bg-(--clarify-code-control-background-hover)"),
|
|
409
429
|
onClick: () => {
|
|
410
430
|
require_PageActions.copyTextToClipboard(code).then((ok) => {
|
|
411
431
|
if (ok) setCopyCount((count) => count + 1);
|
|
412
432
|
});
|
|
413
433
|
},
|
|
414
|
-
children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-3.5 w-3.5 stroke-(--clarify-
|
|
434
|
+
children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-3.5 w-3.5 stroke-(--clarify-code-success)" }), t("actions.copied")] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Clipboard, { className: "h-3.5 w-3.5 stroke-(--clarify-code-muted) transition-colors group-hover/button:stroke-(--clarify-code-text)" }), t("actions.copy")] })
|
|
415
435
|
});
|
|
416
436
|
}
|
|
417
437
|
function CodePanelHeader(arg0) {
|
|
@@ -421,7 +441,7 @@ function CodePanelHeader(arg0) {
|
|
|
421
441
|
className: "clarify-code-panel-header flex h-9 items-center gap-2 border-y border-(--clarify-code-border) border-t-transparent bg-(--clarify-code-background) px-4",
|
|
422
442
|
children: [
|
|
423
443
|
tag ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
424
|
-
className: "clarify-code-panel-tag font-semibold text-(--clarify-
|
|
444
|
+
className: "clarify-code-panel-tag font-semibold text-(--clarify-code-accent-text)",
|
|
425
445
|
children: tag
|
|
426
446
|
}) : null,
|
|
427
447
|
tag && label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "h-0.5 w-0.5 rounded-full bg-(--clarify-code-faint)" }) : null,
|
|
@@ -552,7 +572,7 @@ function CodeGroup(arg0) {
|
|
|
552
572
|
const t = require_i18n.useBuiltInText();
|
|
553
573
|
const tabGroupProps = useTabGroupProps(react.Children.map(children, (child) => getCodePanelTitle(child, t("actions.code"))) ?? []);
|
|
554
574
|
const hasTabs = react.Children.count(children) > 1;
|
|
555
|
-
const containerClassName = "clarify-code-group my-6 overflow-hidden rounded-
|
|
575
|
+
const containerClassName = "clarify-code-group my-6 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-code-background) shadow-(--clarify-ui-shadow-raised) ring-1 ring-(--clarify-code-border)";
|
|
556
576
|
const header = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodeGroupHeader, {
|
|
557
577
|
title,
|
|
558
578
|
selectedIndex: tabGroupProps.selectedIndex,
|
|
@@ -618,7 +638,7 @@ function Collapse(arg0) {
|
|
|
618
638
|
setMaxHeight(open ? `${contentRef.current.scrollHeight}px` : "0px");
|
|
619
639
|
}, [open, children]);
|
|
620
640
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
621
|
-
className: (0, clsx.default)("clarify-collapse my-6 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) transition-colors", open && "border-(--clarify-ui-
|
|
641
|
+
className: (0, clsx.default)("clarify-collapse my-6 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) transition-colors", open && "border-(--clarify-ui-border-strong)", className),
|
|
622
642
|
...props,
|
|
623
643
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
624
644
|
type: "button",
|
|
@@ -693,8 +713,8 @@ var FeedbackThanks = (0, react.forwardRef)(function FeedbackThanks(arg0, ref) {
|
|
|
693
713
|
ref,
|
|
694
714
|
className: (0, clsx.default)(className, "clarify-feedback-thanks absolute inset-0 flex justify-center md:justify-start"),
|
|
695
715
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
696
|
-
className: "flex items-center gap-3 rounded-full bg-(--clarify-
|
|
697
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CircleCheck, { className: "h-5 w-5 flex-none stroke-(--clarify-
|
|
716
|
+
className: "flex items-center gap-3 rounded-full bg-(--clarify-tone-success-background) py-1 pr-3 pl-1.5 text-sm text-(--clarify-tone-success-text) ring-1 ring-(--clarify-tone-success-border) ring-inset",
|
|
717
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CircleCheck, { className: "h-5 w-5 flex-none stroke-(--clarify-tone-success-icon)" }), t("feedback.thanks")]
|
|
698
718
|
})
|
|
699
719
|
});
|
|
700
720
|
});
|
|
@@ -745,7 +765,7 @@ function FileTreeItem(arg0) {
|
|
|
745
765
|
className: "flex min-h-6 items-center gap-2 whitespace-nowrap",
|
|
746
766
|
children: [
|
|
747
767
|
isFolder ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderIcon, {
|
|
748
|
-
className: "size-4 flex-none text-(--clarify-ui-
|
|
768
|
+
className: "size-4 flex-none text-(--clarify-ui-text-soft)",
|
|
749
769
|
"aria-hidden": "true"
|
|
750
770
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.File, {
|
|
751
771
|
className: "size-4 flex-none text-(--clarify-ui-text-faint)",
|
|
@@ -771,28 +791,28 @@ function FileTreeItem(arg0) {
|
|
|
771
791
|
//#region source/components/Tag.tsx
|
|
772
792
|
var tagVariantStyles = {
|
|
773
793
|
small: "",
|
|
774
|
-
medium: "rounded-
|
|
794
|
+
medium: "rounded-(--clarify-theme-tokens-radius-md) px-1.5 ring-1 ring-inset"
|
|
775
795
|
};
|
|
776
796
|
var tagColorStyles = {
|
|
777
797
|
emerald: {
|
|
778
|
-
small: "text-
|
|
779
|
-
medium: "bg-
|
|
798
|
+
small: "text-(--clarify-tone-success-icon)",
|
|
799
|
+
medium: "bg-(--clarify-tone-success-background) text-(--clarify-tone-success-text) ring-(--clarify-tone-success-border)"
|
|
780
800
|
},
|
|
781
801
|
sky: {
|
|
782
|
-
small: "text-
|
|
783
|
-
medium: "bg-
|
|
802
|
+
small: "text-(--clarify-tone-info-icon)",
|
|
803
|
+
medium: "bg-(--clarify-tone-info-background) text-(--clarify-tone-info-text) ring-(--clarify-tone-info-border)"
|
|
784
804
|
},
|
|
785
805
|
amber: {
|
|
786
|
-
small: "text-
|
|
787
|
-
medium: "bg-
|
|
806
|
+
small: "text-(--clarify-tone-warning-icon)",
|
|
807
|
+
medium: "bg-(--clarify-tone-warning-background) text-(--clarify-tone-warning-text) ring-(--clarify-tone-warning-border)"
|
|
788
808
|
},
|
|
789
809
|
rose: {
|
|
790
|
-
small: "text-
|
|
791
|
-
medium: "bg-
|
|
810
|
+
small: "text-(--clarify-tone-danger-icon)",
|
|
811
|
+
medium: "bg-(--clarify-tone-danger-background) text-(--clarify-tone-danger-text) ring-(--clarify-tone-danger-border)"
|
|
792
812
|
},
|
|
793
813
|
zinc: {
|
|
794
814
|
small: "text-(--clarify-theme-tokens-colors-muted)",
|
|
795
|
-
medium: "bg-(--clarify-
|
|
815
|
+
medium: "bg-(--clarify-tone-neutral-background) text-(--clarify-theme-tokens-colors-muted) ring-(--clarify-tone-neutral-border)"
|
|
796
816
|
}
|
|
797
817
|
};
|
|
798
818
|
var tagValueColorMap = {
|
|
@@ -820,9 +840,9 @@ function Eyebrow(arg0) {
|
|
|
820
840
|
className: "flex items-center gap-x-3",
|
|
821
841
|
children: [
|
|
822
842
|
tag ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, { children: tag }) : null,
|
|
823
|
-
tag && label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "h-0.5 w-0.5 rounded-full bg-
|
|
843
|
+
tag && label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "h-0.5 w-0.5 rounded-full bg-(--clarify-ui-border-strong)" }) : null,
|
|
824
844
|
label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
825
|
-
className: "text-xs text-
|
|
845
|
+
className: "text-xs text-(--clarify-ui-text-faint)",
|
|
826
846
|
children: label
|
|
827
847
|
}) : null
|
|
828
848
|
]
|
|
@@ -835,7 +855,7 @@ function Anchor(arg0) {
|
|
|
835
855
|
className: "clarify-anchor group text-inherit no-underline hover:text-inherit",
|
|
836
856
|
children: [inView ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
837
857
|
className: "absolute mt-1 -ml-(--width) hidden w-(--width) opacity-0 transition [--width:var(--clarify-heading-anchor-width)] group-hover:opacity-100 group-focus:opacity-100 md:block lg:z-50 2xl:[--width:var(--clarify-heading-anchor-width-wide)]",
|
|
838
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LinkIcon, { className: "h-5 w-5 text-(--clarify-
|
|
858
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LinkIcon, { className: "h-5 w-5 text-(--clarify-ui-text-soft) opacity-0 transition group-hover:opacity-100" })
|
|
839
859
|
}) : null, children]
|
|
840
860
|
});
|
|
841
861
|
}
|
|
@@ -888,7 +908,7 @@ function Logo(props) {
|
|
|
888
908
|
className: "fill-(--clarify-theme-tokens-colors-primary)",
|
|
889
909
|
d: "M16 8a5 5 0 0 0-5-5H5a5 5 0 0 0-5 5v13.927a1 1 0 0 0 1.623.782l3.684-2.93a4 4 0 0 1 2.49-.87H11a5 5 0 0 0 5-5V8Z"
|
|
890
910
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
891
|
-
className: "fill-(--clarify-theme-tokens-colors-foreground)
|
|
911
|
+
className: "fill-(--clarify-theme-tokens-colors-foreground)",
|
|
892
912
|
d: "M26.538 18h2.654v-3.999h2.576c2.672 0 4.456-1.723 4.456-4.333V9.65c0-2.61-1.784-4.333-4.456-4.333h-5.23V18Zm4.58-10.582c1.52 0 2.416.8 2.416 2.241v.018c0 1.441-.896 2.25-2.417 2.25h-1.925V7.418h1.925ZM38.051 18h2.566v-5.414c0-1.371.923-2.206 2.382-2.206.396 0 .791.061 1.178.15V8.287a3.843 3.843 0 0 0-.958-.123c-1.257 0-2.136.615-2.443 1.661h-.159V8.323h-2.566V18Zm11.55.202c2.979 0 4.772-1.88 4.772-5.036v-.018c0-3.128-1.82-5.036-4.773-5.036-2.953 0-4.772 1.916-4.772 5.036v.018c0 3.146 1.793 5.036 4.772 5.036Zm0-2.013c-1.372 0-2.145-1.116-2.145-3.023v-.018c0-1.89.782-3.023 2.144-3.023 1.354 0 2.145 1.134 2.145 3.023v.018c0 1.907-.782 3.023-2.145 3.023Zm10.52 1.846c.492 0 .967-.053 1.283-.114v-1.907a6.057 6.057 0 0 1-.755.044c-.87 0-1.24-.387-1.24-1.257v-4.544h1.995V8.323H59.41V6.012h-2.592v2.311h-1.495v1.934h1.495v5.133c0 1.88.949 2.645 3.304 2.645Zm7.287.167c2.98 0 4.772-1.88 4.772-5.036v-.018c0-3.128-1.82-5.036-4.772-5.036-2.954 0-4.773 1.916-4.773 5.036v.018c0 3.146 1.793 5.036 4.773 5.036Zm0-2.013c-1.372 0-2.145-1.116-2.145-3.023v-.018c0-1.89.782-3.023 2.145-3.023 1.353 0 2.144 1.134 2.144 3.023v.018c0 1.907-.782 3.023-2.144 3.023Zm10.767 2.013c2.522 0 4.034-1.353 4.297-3.463l.01-.053h-2.374l-.017.036c-.229.966-.853 1.467-1.908 1.467-1.37 0-2.135-1.08-2.135-3.04v-.018c0-1.934.755-3.006 2.135-3.006 1.099 0 1.74.615 1.908 1.556l.008.017h2.391v-.026c-.228-2.162-1.749-3.56-4.315-3.56-3.033 0-4.738 1.837-4.738 5.019v.017c0 3.217 1.714 5.054 4.738 5.054Zm10.257 0c2.98 0 4.772-1.88 4.772-5.036v-.018c0-3.128-1.82-5.036-4.772-5.036-2.953 0-4.773 1.916-4.773 5.036v.018c0 3.146 1.793 5.036 4.773 5.036Zm0-2.013c-1.371 0-2.145-1.116-2.145-3.023v-.018c0-1.89.782-3.023 2.145-3.023 1.353 0 2.144 1.134 2.144 3.023v.018c0 1.907-.782 3.023-2.144 3.023ZM95.025 18h2.566V4.623h-2.566V18Z"
|
|
893
913
|
})]
|
|
894
914
|
});
|
|
@@ -953,12 +973,12 @@ function HeroPattern() {
|
|
|
953
973
|
[7, 3],
|
|
954
974
|
[10, 6]
|
|
955
975
|
],
|
|
956
|
-
className: "clarify-hero-pattern-grid absolute inset-x-0 w-full -skew-y-18 fill-
|
|
976
|
+
className: "clarify-hero-pattern-grid absolute inset-x-0 w-full -skew-y-18 fill-(--clarify-hero-pattern-fill) stroke-(--clarify-hero-pattern-stroke) mix-blend-overlay"
|
|
957
977
|
})
|
|
958
978
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
959
979
|
viewBox: "0 0 1113 440",
|
|
960
980
|
"aria-hidden": "true",
|
|
961
|
-
className: "absolute top-0 left-1/2 -ml-76 w-278.25 fill-
|
|
981
|
+
className: "absolute top-0 left-1/2 -ml-76 w-278.25 fill-(--clarify-theme-tokens-colors-background) blur-xl dark:hidden",
|
|
962
982
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M.016 439.5s-9.5-300 434-300S882.516 20 882.516 20V0h230.004v439.5H.016Z" })
|
|
963
983
|
})]
|
|
964
984
|
})
|
|
@@ -990,7 +1010,7 @@ function Step(arg0) {
|
|
|
990
1010
|
...props,
|
|
991
1011
|
children: [
|
|
992
1012
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
993
|
-
className: "absolute top-0 -left-3.5 flex size-7 items-center justify-center rounded-full bg-(--clarify-
|
|
1013
|
+
className: "absolute top-0 -left-3.5 flex size-7 items-center justify-center rounded-full bg-(--clarify-ui-text-strong) text-xs font-semibold text-(--clarify-theme-tokens-colors-background) shadow-[0_0_0_4px_var(--clarify-theme-tokens-colors-background)] before:content-[counter(list-item)]",
|
|
994
1014
|
"aria-hidden": "true"
|
|
995
1015
|
}),
|
|
996
1016
|
title ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
@@ -1098,7 +1118,7 @@ function Tooltip(arg0) {
|
|
|
1098
1118
|
ref: triggerRef,
|
|
1099
1119
|
"aria-describedby": contentId,
|
|
1100
1120
|
"aria-expanded": open,
|
|
1101
|
-
className: (0, clsx.default)("cursor-help appearance-none rounded-sm border-0 border-b border-dotted border-current bg-transparent p-0 font-inherit text-inherit focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", triggerClassName),
|
|
1121
|
+
className: (0, clsx.default)("cursor-help appearance-none rounded-(--clarify-theme-tokens-radius-sm) border-0 border-b border-dotted border-current bg-transparent p-0 font-inherit text-inherit focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", triggerClassName),
|
|
1102
1122
|
onFocus: () => setOpen(true),
|
|
1103
1123
|
onBlur: () => setOpen(false),
|
|
1104
1124
|
onClick: () => setOpen(true),
|
|
@@ -1112,7 +1132,7 @@ function Tooltip(arg0) {
|
|
|
1112
1132
|
role: "tooltip",
|
|
1113
1133
|
popover: "manual",
|
|
1114
1134
|
style: position,
|
|
1115
|
-
className: (0, clsx.default)("pointer-events-none fixed right-auto bottom-auto z-60 m-0 w-max max-w-64 -translate-x-1/2 rounded-md border-0 bg-(--clarify-theme-tokens-colors-foreground) px-2.5 py-1.5 text-center text-xs/5 font-normal text-(--clarify-theme-tokens-colors-background) shadow-
|
|
1135
|
+
className: (0, clsx.default)("pointer-events-none fixed right-auto bottom-auto z-60 m-0 w-max max-w-64 -translate-x-1/2 rounded-(--clarify-theme-tokens-radius-md) border-0 bg-(--clarify-theme-tokens-colors-foreground) px-2.5 py-1.5 text-center text-xs/5 font-normal text-(--clarify-theme-tokens-colors-background) shadow-(--clarify-ui-shadow-popover) transition duration-150", side === "top" && "-translate-y-full", open && position ? "visible opacity-100" : "invisible opacity-0"),
|
|
1116
1136
|
children: content
|
|
1117
1137
|
})]
|
|
1118
1138
|
});
|
|
@@ -1140,13 +1160,13 @@ function WebFrame(arg0) {
|
|
|
1140
1160
|
children
|
|
1141
1161
|
});
|
|
1142
1162
|
if (!showWindow) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1143
|
-
className: (0, clsx.default)("clarify-web-frame not-prose my-10 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-
|
|
1163
|
+
className: (0, clsx.default)("clarify-web-frame not-prose my-10 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-(--clarify-ui-shadow-popover) shadow-zinc-900/5 dark:shadow-none", className),
|
|
1144
1164
|
children: frame
|
|
1145
1165
|
});
|
|
1146
1166
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1147
|
-
className: (0, clsx.default)("clarify-web-frame not-prose my-10 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-
|
|
1167
|
+
className: (0, clsx.default)("clarify-web-frame not-prose my-10 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-(--clarify-ui-shadow-popover) shadow-zinc-900/5 dark:shadow-none", className),
|
|
1148
1168
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1149
|
-
className: "grid h-10 grid-cols-[1fr_minmax(0,2fr)_1fr] items-center gap-3 border-b border-(--clarify-theme-tokens-colors-border) bg-(--clarify-
|
|
1169
|
+
className: "grid h-10 grid-cols-[1fr_minmax(0,2fr)_1fr] items-center gap-3 border-b border-(--clarify-theme-tokens-colors-border) bg-(--clarify-ui-subtle-background) px-3",
|
|
1150
1170
|
children: [
|
|
1151
1171
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1152
1172
|
className: "flex items-center gap-1.5",
|
|
@@ -1188,7 +1208,7 @@ function Image(arg0) {
|
|
|
1188
1208
|
"aria-label": `Enlarge image: ${alt}`,
|
|
1189
1209
|
onClick: () => setOpen(true),
|
|
1190
1210
|
children: [image, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1191
|
-
className: "absolute right-3 bottom-3 grid size-8 place-items-center rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-background)/90 text-(--clarify-ui-text-soft) opacity-0 shadow-
|
|
1211
|
+
className: "absolute right-3 bottom-3 grid size-8 place-items-center rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-background)/90 text-(--clarify-ui-text-soft) opacity-0 shadow-(--clarify-ui-shadow-raised) transition group-hover:opacity-100 group-focus-within:opacity-100",
|
|
1192
1212
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Maximize2, {
|
|
1193
1213
|
className: "size-4",
|
|
1194
1214
|
"aria-hidden": "true"
|
|
@@ -1204,17 +1224,17 @@ function Image(arg0) {
|
|
|
1204
1224
|
open,
|
|
1205
1225
|
onClose: setOpen,
|
|
1206
1226
|
className: "relative z-50",
|
|
1207
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.DialogBackdrop, { className: "fixed inset-0 bg-
|
|
1227
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.DialogBackdrop, { className: "fixed inset-0 bg-(--clarify-ui-overlay-background) backdrop-blur-sm" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1208
1228
|
className: "fixed inset-0 flex items-center justify-center p-4 sm:p-8",
|
|
1209
1229
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_headlessui_react.DialogPanel, {
|
|
1210
|
-
className: "relative max-h-full max-w-full overflow-auto rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-theme-tokens-colors-background) p-2 shadow-
|
|
1230
|
+
className: "relative max-h-full max-w-full overflow-auto rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-theme-tokens-colors-background) p-2 shadow-(--clarify-ui-shadow-popover)",
|
|
1211
1231
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
1212
1232
|
src,
|
|
1213
1233
|
alt,
|
|
1214
1234
|
className: "max-h-[calc(100dvh-5rem)] max-w-[calc(100vw-5rem)] object-contain"
|
|
1215
1235
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1216
1236
|
type: "button",
|
|
1217
|
-
className: "absolute top-4 right-4 grid size-9 place-items-center rounded-md border border-
|
|
1237
|
+
className: "absolute top-4 right-4 grid size-9 place-items-center rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-ui-border-strong) bg-(--clarify-ui-surface-elevated) text-(--clarify-ui-text-strong) transition hover:bg-(--clarify-ui-hover-background) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-ui-focus-ring)",
|
|
1218
1238
|
"aria-label": "Close image preview",
|
|
1219
1239
|
onClick: () => setOpen(false),
|
|
1220
1240
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.X, {
|
|
@@ -1270,7 +1290,7 @@ function Release(arg0) {
|
|
|
1270
1290
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
1271
1291
|
className: "self-start sm:sticky sm:top-24",
|
|
1272
1292
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
1273
|
-
className: "m-0! inline-flex rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-
|
|
1293
|
+
className: "m-0! inline-flex rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-subtle-background) px-2.5 py-1 text-sm font-semibold text-(--clarify-ui-text-strong) ring-1 ring-(--clarify-ui-border) ring-inset",
|
|
1274
1294
|
children: version
|
|
1275
1295
|
}), date ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("time", {
|
|
1276
1296
|
dateTime: date,
|
|
@@ -1355,8 +1375,8 @@ function h3(props) {
|
|
|
1355
1375
|
function Note(arg0) {
|
|
1356
1376
|
const { children } = arg0;
|
|
1357
1377
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1358
|
-
className: "clarify-note my-6 flex gap-3 rounded-r-(--clarify-theme-tokens-radius-lg) border-l-2 border-(--clarify-
|
|
1359
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Info, { className: "mt-1 size-4 flex-none stroke-(--clarify-ui-
|
|
1378
|
+
className: "clarify-note my-6 flex gap-3 rounded-r-(--clarify-theme-tokens-radius-lg) border-l-2 border-(--clarify-ui-border-strong) bg-(--clarify-ui-subtle-background) px-4 py-3 text-sm/6 text-(--clarify-ui-text-soft) [--tw-prose-links-hover:var(--clarify-ui-accent-text)] [--tw-prose-links:var(--clarify-theme-tokens-colors-foreground)]",
|
|
1379
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Info, { className: "mt-1 size-4 flex-none stroke-(--clarify-ui-text-soft)" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1360
1380
|
className: "*:first:mt-0 *:last:mb-0",
|
|
1361
1381
|
children
|
|
1362
1382
|
})]
|
|
@@ -2372,7 +2392,7 @@ function SelectControl(arg0) {
|
|
|
2372
2392
|
})]
|
|
2373
2393
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.ListboxOptions, {
|
|
2374
2394
|
anchor: "bottom end",
|
|
2375
|
-
className: "clarify-openai-select-options z-30 mt-1 max-h-64 w-max min-w-(--button-width) max-w-(--clarify-popover-max-width) overflow-auto rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-code-surface) p-1 text-xs shadow-
|
|
2395
|
+
className: "clarify-openai-select-options z-30 mt-1 max-h-64 w-max min-w-(--button-width) max-w-(--clarify-popover-max-width) overflow-auto rounded-(--clarify-theme-tokens-radius-lg) bg-(--clarify-code-surface) p-1 text-xs shadow-(--clarify-ui-shadow-popover) shadow-black/20 ring-1 ring-(--clarify-code-border) [--anchor-gap:--spacing(1)] focus:outline-none",
|
|
2376
2396
|
children: normalizedOptions.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_headlessui_react.ListboxOption, {
|
|
2377
2397
|
value: option.value,
|
|
2378
2398
|
className: "clarify-openai-select-option group flex min-h-9 cursor-default items-center justify-between gap-3 rounded-(--clarify-theme-tokens-radius-md) px-2.5 py-2 text-xs whitespace-nowrap text-(--clarify-code-control-text) select-none data-focus:bg-(--clarify-code-control-background-hover) data-focus:text-(--clarify-code-text) data-selected:bg-(--clarify-code-accent-background) data-selected:text-(--clarify-code-accent-text)",
|
|
@@ -2402,7 +2422,7 @@ function CopyCodeButton(arg0) {
|
|
|
2402
2422
|
},
|
|
2403
2423
|
className: "ml-auto flex shrink-0 items-center gap-1.5 rounded-full bg-(--clarify-code-control-background) px-2.5 py-1.5 text-2xs font-medium whitespace-nowrap text-(--clarify-code-muted) transition hover:bg-(--clarify-code-control-background-hover) hover:text-(--clarify-code-text) focus:bg-(--clarify-code-control-background-hover) focus:text-(--clarify-code-text)",
|
|
2404
2424
|
children: [copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CheckIcon, {
|
|
2405
|
-
className: "h-3.5 w-3.5 text-(--clarify-
|
|
2425
|
+
className: "h-3.5 w-3.5 text-(--clarify-code-success)",
|
|
2406
2426
|
"aria-hidden": "true"
|
|
2407
2427
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ClipboardIcon, {
|
|
2408
2428
|
className: "h-3.5 w-3.5 text-(--clarify-code-faint)",
|
|
@@ -2540,7 +2560,7 @@ function ApiExampleCodeGroup(arg0) {
|
|
|
2540
2560
|
value: tag,
|
|
2541
2561
|
options: tagOptions,
|
|
2542
2562
|
onChange: onSelectTag,
|
|
2543
|
-
className: "clarify-openai-example-status font-semibold text-
|
|
2563
|
+
className: "clarify-openai-example-status font-semibold text-(--clarify-code-success)"
|
|
2544
2564
|
}) : null,
|
|
2545
2565
|
tag && label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-(--clarify-code-faint)" }) : null,
|
|
2546
2566
|
label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExampleMetaValue, {
|
|
@@ -2552,7 +2572,7 @@ function ApiExampleCodeGroup(arg0) {
|
|
|
2552
2572
|
}) : null
|
|
2553
2573
|
] });
|
|
2554
2574
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2555
|
-
className: "clarify-openai-example my-6 overflow-hidden rounded-
|
|
2575
|
+
className: "clarify-openai-example my-6 overflow-hidden rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-code-border) bg-(--clarify-code-background) shadow-(--clarify-ui-shadow-raised)",
|
|
2556
2576
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2557
2577
|
className: "not-prose",
|
|
2558
2578
|
children: [
|
|
@@ -2873,7 +2893,7 @@ function OpenApiAuthDocumentation(props) {
|
|
|
2873
2893
|
className: "font-mono text-sm/6 font-semibold text-(--clarify-theme-tokens-colors-foreground)",
|
|
2874
2894
|
children: schemeOption.name
|
|
2875
2895
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2876
|
-
className: "rounded bg-(--clarify-ui-subtle-background) px-1.5 py-0.5 text-2xs font-semibold text-(--clarify-ui-text-soft)",
|
|
2896
|
+
className: "rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-ui-subtle-background) px-1.5 py-0.5 text-2xs font-semibold text-(--clarify-ui-text-soft)",
|
|
2877
2897
|
children: authSchemeType(schemeOption, t("openapi.authApiKey"))
|
|
2878
2898
|
})]
|
|
2879
2899
|
}),
|
|
@@ -3424,7 +3444,7 @@ function SchemaSearchButton(arg0) {
|
|
|
3424
3444
|
"aria-label": label,
|
|
3425
3445
|
"aria-pressed": open,
|
|
3426
3446
|
onClick,
|
|
3427
|
-
className: (0, clsx.default)("flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-(--clarify-theme-tokens-radius-md) transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", open ? "bg-(--clarify-ui-
|
|
3447
|
+
className: (0, clsx.default)("flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-(--clarify-theme-tokens-radius-md) transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", open ? "bg-(--clarify-ui-active-background) text-(--clarify-ui-text-strong)" : "text-(--clarify-ui-text-faint) hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground)"),
|
|
3428
3448
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.SearchIcon, {
|
|
3429
3449
|
className: "size-4",
|
|
3430
3450
|
"aria-hidden": "true"
|
|
@@ -3593,7 +3613,7 @@ function EndpointResponse(arg0) {
|
|
|
3593
3613
|
//#endregion
|
|
3594
3614
|
//#region source/openapi/components/InlineListbox.tsx
|
|
3595
3615
|
var defaultButtonClassName = "inline-flex min-w-0 items-center justify-between gap-1 border-0 bg-transparent font-medium text-(--clarify-ui-text-strong) outline-hidden transition hover:bg-(--clarify-ui-hover-background) focus:ring-2 focus:ring-inset focus:ring-(--clarify-theme-tokens-colors-primary) data-disabled:cursor-not-allowed data-open:bg-(--clarify-ui-active-background)";
|
|
3596
|
-
var optionsClassName = "z-30 mt-1 max-h-64 w-max min-w-(--button-width) max-w-(--clarify-popover-max-width) overflow-auto rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-1 text-xs shadow-
|
|
3616
|
+
var optionsClassName = "z-30 mt-1 max-h-64 w-max min-w-(--button-width) max-w-(--clarify-popover-max-width) overflow-auto rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) p-1 text-xs shadow-(--clarify-ui-shadow-popover) shadow-black/10 [--anchor-gap:--spacing(1)] focus:outline-none";
|
|
3597
3617
|
var optionClassName = "group flex min-h-9 cursor-default items-center justify-between gap-3 rounded-(--clarify-theme-tokens-radius-md) px-2.5 py-2 text-xs text-(--clarify-ui-text) select-none data-focus:bg-(--clarify-ui-hover-background) data-focus:text-(--clarify-ui-text-strong) data-selected:bg-(--clarify-ui-active-background) data-selected:text-(--clarify-ui-accent-text)";
|
|
3598
3618
|
function OptionContent(arg0) {
|
|
3599
3619
|
const { option } = arg0;
|
|
@@ -4184,8 +4204,8 @@ function RequestField(arg0) {
|
|
|
4184
4204
|
children: description
|
|
4185
4205
|
}),
|
|
4186
4206
|
side: "bottom",
|
|
4187
|
-
className: "mr-1 shrink-0 *:[[role=tooltip]]:w-80 *:[[role=tooltip]]:max-w-[min(20rem,calc(100vw-2rem))] *:[[role=tooltip]]:border *:[[role=tooltip]]:border-(--clarify-theme-tokens-colors-border) *:[[role=tooltip]]:bg-(--clarify-theme-tokens-colors-surface) *:[[role=tooltip]]:p-3 *:[[role=tooltip]]:text-(--clarify-ui-text) *:[[role=tooltip]]:shadow-
|
|
4188
|
-
triggerClassName: "clarify-field-description-trigger clarify-ui-control inline-flex size-7 items-center justify-center rounded-md !border-b-0 text-(--clarify-ui-text-faint) transition-colors",
|
|
4207
|
+
className: "mr-1 shrink-0 *:[[role=tooltip]]:w-80 *:[[role=tooltip]]:max-w-[min(20rem,calc(100vw-2rem))] *:[[role=tooltip]]:border *:[[role=tooltip]]:border-(--clarify-theme-tokens-colors-border) *:[[role=tooltip]]:bg-(--clarify-theme-tokens-colors-surface) *:[[role=tooltip]]:p-3 *:[[role=tooltip]]:text-(--clarify-ui-text) *:[[role=tooltip]]:shadow-(--clarify-ui-shadow-popover)",
|
|
4208
|
+
triggerClassName: "clarify-field-description-trigger clarify-ui-control inline-flex size-7 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) !border-b-0 text-(--clarify-ui-text-faint) transition-colors",
|
|
4189
4209
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.InfoIcon, {
|
|
4190
4210
|
className: "size-4",
|
|
4191
4211
|
"aria-hidden": "true"
|
|
@@ -4741,7 +4761,7 @@ function SendRequestButton(arg0) {
|
|
|
4741
4761
|
"aria-label": label,
|
|
4742
4762
|
title: label,
|
|
4743
4763
|
onClick,
|
|
4744
|
-
className: Boolean(text) ? "flex h-8 shrink-0 items-center gap-1.5 rounded bg-(--clarify-theme-tokens-colors-foreground) px-3 text-xs font-semibold text-(--clarify-theme-tokens-colors-background) transition hover:opacity-85 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-foreground) focus-visible:ring-offset-2 disabled:cursor-wait disabled:opacity-60" : "grid size-7 shrink-0 place-items-center rounded bg-(--clarify-ui-
|
|
4764
|
+
className: Boolean(text) ? "flex h-8 shrink-0 items-center gap-1.5 rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-theme-tokens-colors-foreground) px-3 text-xs font-semibold text-(--clarify-theme-tokens-colors-background) transition hover:opacity-85 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-foreground) focus-visible:ring-offset-2 disabled:cursor-wait disabled:opacity-60" : "grid size-7 shrink-0 place-items-center rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-ui-subtle-background) text-(--clarify-ui-text-strong) ring-1 ring-inset ring-(--clarify-ui-border) transition-colors hover:bg-(--clarify-theme-tokens-colors-foreground) hover:text-(--clarify-theme-tokens-colors-background) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-foreground) focus-visible:ring-offset-2 disabled:cursor-wait disabled:opacity-60",
|
|
4745
4765
|
children: [busy ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LoaderCircleIcon, {
|
|
4746
4766
|
className: "size-4 animate-spin",
|
|
4747
4767
|
"aria-hidden": "true"
|
|
@@ -5382,7 +5402,7 @@ function OpenApiRequestDialog(arg0) {
|
|
|
5382
5402
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.DialogBackdrop, { className: "fixed inset-0 bg-(--clarify-ui-overlay-background) backdrop-blur-sm" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5383
5403
|
className: "fixed inset-0 grid place-items-center overflow-y-auto p-3 sm:p-6",
|
|
5384
5404
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_headlessui_react.DialogPanel, {
|
|
5385
|
-
className: "relative flex h-[min(46rem,calc(100dvh-1.5rem))] w-full max-w-7xl flex-col overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-background) shadow-
|
|
5405
|
+
className: "relative flex h-[min(46rem,calc(100dvh-1.5rem))] w-full max-w-7xl flex-col overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-background) shadow-(--clarify-ui-shadow-popover) sm:h-[min(46rem,calc(100dvh-3rem))]",
|
|
5386
5406
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.DialogTitle, {
|
|
5387
5407
|
className: "sr-only",
|
|
5388
5408
|
children: t("openapi.tryRequest")
|
|
@@ -5413,7 +5433,7 @@ function EndpointPath(arg0) {
|
|
|
5413
5433
|
"aria-label": copied ? t("actions.copied") : t("actions.copy"),
|
|
5414
5434
|
title: copied ? t("actions.copied") : t("actions.copy"),
|
|
5415
5435
|
onClick: onCopy,
|
|
5416
|
-
className: (0, clsx.default)("flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) text-(--clarify-ui-text-soft) transition hover:border-(--clarify-ui-
|
|
5436
|
+
className: (0, clsx.default)("flex h-7 w-7 shrink-0 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) text-(--clarify-ui-text-soft) transition hover:border-(--clarify-ui-border-strong) hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-ui-focus-ring)", copied && "border-(--clarify-tone-success-border) bg-(--clarify-tone-success-background) text-(--clarify-tone-success-text)"),
|
|
5417
5437
|
children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CheckIcon, {
|
|
5418
5438
|
className: "h-3.5 w-3.5",
|
|
5419
5439
|
"aria-hidden": "true"
|
|
@@ -5452,7 +5472,7 @@ function ServerUrlValue(arg0) {
|
|
|
5452
5472
|
const protocolLabel = getServerProtocolLabel(server, variables);
|
|
5453
5473
|
if (!interactive) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
5454
5474
|
"aria-label": "Server",
|
|
5455
|
-
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-
|
|
5475
|
+
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-subtle-background) text-(--clarify-ui-text) sm:w-auto sm:min-w-16 sm:max-w-(--clarify-server-url-max-width) sm:px-1.5",
|
|
5456
5476
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5457
5477
|
className: "sm:hidden",
|
|
5458
5478
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ServerIcon, {
|
|
@@ -5462,7 +5482,7 @@ function ServerUrlValue(arg0) {
|
|
|
5462
5482
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
5463
5483
|
className: "hidden min-w-0 items-center gap-1.5 overflow-hidden sm:flex",
|
|
5464
5484
|
children: [protocolLabel ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5465
|
-
className: "shrink-0 rounded bg-
|
|
5485
|
+
className: "shrink-0 rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-tone-info-background) px-1.5 py-0.5 text-2xs font-black text-(--clarify-tone-info-text)",
|
|
5466
5486
|
children: protocolLabel
|
|
5467
5487
|
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5468
5488
|
className: "truncate font-semibold text-xs",
|
|
@@ -5480,7 +5500,7 @@ function ServerUrlValue(arg0) {
|
|
|
5480
5500
|
})),
|
|
5481
5501
|
onChange: onSelect,
|
|
5482
5502
|
className: "w-8 shrink-0 sm:w-fit sm:min-w-16 sm:max-w-(--clarify-server-url-max-width)",
|
|
5483
|
-
buttonClassName: "group flex h-8 w-full min-w-0 cursor-pointer items-center justify-center rounded-
|
|
5503
|
+
buttonClassName: "group flex h-8 w-full min-w-0 cursor-pointer items-center justify-center rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-subtle-background) px-0 text-(--clarify-ui-text) transition-colors hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary) data-open:bg-(--clarify-ui-active-background) data-open:text-(--clarify-theme-tokens-colors-foreground) sm:px-1.5",
|
|
5484
5504
|
buttonContent: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5485
5505
|
className: "sm:hidden",
|
|
5486
5506
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ServerIcon, {
|
|
@@ -5491,7 +5511,7 @@ function ServerUrlValue(arg0) {
|
|
|
5491
5511
|
className: "hidden min-w-0 items-center gap-1 overflow-hidden sm:flex",
|
|
5492
5512
|
children: [
|
|
5493
5513
|
protocolLabel ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5494
|
-
className: "shrink-0 rounded bg-
|
|
5514
|
+
className: "shrink-0 rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-tone-info-background) px-1.5 py-0.5 text-2xs font-black text-(--clarify-tone-info-text)",
|
|
5495
5515
|
children: protocolLabel
|
|
5496
5516
|
}) : null,
|
|
5497
5517
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -5499,7 +5519,7 @@ function ServerUrlValue(arg0) {
|
|
|
5499
5519
|
children: url
|
|
5500
5520
|
}),
|
|
5501
5521
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDownIcon, {
|
|
5502
|
-
className: "h-3.5 w-3.5 shrink-0 text-
|
|
5522
|
+
className: "h-3.5 w-3.5 shrink-0 text-(--clarify-ui-text-faint) transition-transform group-data-open:rotate-180",
|
|
5503
5523
|
"aria-hidden": "true"
|
|
5504
5524
|
})
|
|
5505
5525
|
]
|
|
@@ -5510,7 +5530,7 @@ function ServerUrlValue(arg0) {
|
|
|
5510
5530
|
"aria-expanded": open,
|
|
5511
5531
|
"aria-label": "Server",
|
|
5512
5532
|
onClick: onToggle,
|
|
5513
|
-
className: (0, clsx.default)("flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-
|
|
5533
|
+
className: (0, clsx.default)("flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-subtle-background) text-(--clarify-ui-text) transition-colors hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary) sm:w-auto sm:min-w-16 sm:max-w-(--clarify-server-url-max-width) sm:px-1.5", open ? "bg-(--clarify-ui-active-background) text-(--clarify-theme-tokens-colors-foreground)" : null),
|
|
5514
5534
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5515
5535
|
className: "sm:hidden",
|
|
5516
5536
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ServerIcon, {
|
|
@@ -5521,7 +5541,7 @@ function ServerUrlValue(arg0) {
|
|
|
5521
5541
|
className: "hidden min-w-0 items-center gap-1 overflow-hidden sm:flex",
|
|
5522
5542
|
children: [
|
|
5523
5543
|
protocolLabel ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5524
|
-
className: "shrink-0 rounded bg-
|
|
5544
|
+
className: "shrink-0 rounded-(--clarify-theme-tokens-radius-sm) bg-(--clarify-tone-info-background) px-1.5 py-0.5 text-2xs font-black text-(--clarify-tone-info-text)",
|
|
5525
5545
|
children: protocolLabel
|
|
5526
5546
|
}) : null,
|
|
5527
5547
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -5529,7 +5549,7 @@ function ServerUrlValue(arg0) {
|
|
|
5529
5549
|
children: url
|
|
5530
5550
|
}),
|
|
5531
5551
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDownIcon, {
|
|
5532
|
-
className: (0, clsx.default)("h-3.5 w-3.5 shrink-0 text-
|
|
5552
|
+
className: (0, clsx.default)("h-3.5 w-3.5 shrink-0 text-(--clarify-ui-text-faint) transition-transform", open && "rotate-180"),
|
|
5533
5553
|
"aria-hidden": "true"
|
|
5534
5554
|
})
|
|
5535
5555
|
]
|
|
@@ -5547,14 +5567,14 @@ function ServerVariableControl(arg0) {
|
|
|
5547
5567
|
})),
|
|
5548
5568
|
onChange,
|
|
5549
5569
|
compact,
|
|
5550
|
-
buttonClassName: "inline-flex min-h-8 w-full min-w-0 items-center justify-between gap-1 rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) px-2.5 py-1.5 text-xs font-semibold text-(--clarify-theme-tokens-colors-foreground) shadow-
|
|
5570
|
+
buttonClassName: "inline-flex min-h-8 w-full min-w-0 items-center justify-between gap-1 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 font-semibold text-(--clarify-theme-tokens-colors-foreground) shadow-(--clarify-ui-shadow-raised) outline-hidden transition hover:border-(--clarify-ui-text-faint) hover:bg-(--clarify-ui-hover-background) focus:ring-2 focus:ring-inset focus:ring-(--clarify-theme-tokens-colors-primary) data-open:bg-(--clarify-ui-active-background)"
|
|
5551
5571
|
});
|
|
5552
5572
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
5553
5573
|
"aria-label": name,
|
|
5554
5574
|
value,
|
|
5555
5575
|
placeholder: variable?.default ?? name,
|
|
5556
5576
|
onChange: (event) => onChange(event.target.value),
|
|
5557
|
-
className: (0, clsx.default)("pointer-events-auto rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) text-xs font-semibold text-(--clarify-theme-tokens-colors-foreground) shadow-
|
|
5577
|
+
className: (0, clsx.default)("pointer-events-auto rounded-(--clarify-theme-tokens-radius-md) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) text-xs font-semibold text-(--clarify-theme-tokens-colors-foreground) shadow-(--clarify-ui-shadow-raised) outline-hidden transition placeholder:text-(--clarify-ui-text-faint) hover:border-(--clarify-ui-text-faint) hover:bg-(--clarify-ui-hover-background) focus:border-(--clarify-theme-tokens-colors-primary) focus:bg-(--clarify-theme-tokens-colors-surface)", compact ? "mx-0.5 w-24 px-1.5 py-0.5" : "w-full px-2.5 py-1.5")
|
|
5558
5578
|
});
|
|
5559
5579
|
}
|
|
5560
5580
|
function ServerPanel(arg0) {
|
|
@@ -5578,7 +5598,7 @@ function ServerPanel(arg0) {
|
|
|
5578
5598
|
description: server.description
|
|
5579
5599
|
})),
|
|
5580
5600
|
onChange: onSelectServer,
|
|
5581
|
-
buttonClassName: "inline-flex min-h-8 w-full min-w-0 items-center justify-between gap-1 rounded-md border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) px-2.5 py-1.5 text-xs font-semibold text-(--clarify-theme-tokens-colors-foreground) shadow-
|
|
5601
|
+
buttonClassName: "inline-flex min-h-8 w-full min-w-0 items-center justify-between gap-1 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 font-semibold text-(--clarify-theme-tokens-colors-foreground) shadow-(--clarify-ui-shadow-raised) outline-hidden transition hover:border-(--clarify-ui-text-faint) hover:bg-(--clarify-ui-hover-background) focus:ring-2 focus:ring-inset focus:ring-(--clarify-theme-tokens-colors-primary) data-open:bg-(--clarify-ui-active-background)"
|
|
5582
5602
|
})]
|
|
5583
5603
|
}) : null, variableEntries.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5584
5604
|
className: "grid gap-3 sm:grid-cols-(--clarify-openapi-variable-grid)",
|
|
@@ -5614,7 +5634,7 @@ function EndpointIdentity(arg0) {
|
|
|
5614
5634
|
if (await require_PageActions.copyTextToClipboard(fullUrl)) setCopiedUrl(true);
|
|
5615
5635
|
}
|
|
5616
5636
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5617
|
-
className: "clarify-openai-endpoint-identity not-prose flex w-full flex-col overflow-hidden rounded-
|
|
5637
|
+
className: "clarify-openai-endpoint-identity not-prose flex w-full flex-col overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) shadow-(--clarify-ui-shadow-raised)",
|
|
5618
5638
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5619
5639
|
className: "flex min-w-0 items-center gap-1.5 overflow-hidden px-2.5 py-2",
|
|
5620
5640
|
children: [
|
|
@@ -5667,9 +5687,9 @@ function OpenApiOperation(arg0) {
|
|
|
5667
5687
|
className: "clarify-openai-endpoint scroll-mt-24 pb-16 first:pt-0 last:pb-0",
|
|
5668
5688
|
"aria-labelledby": id,
|
|
5669
5689
|
children: [
|
|
5670
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
5690
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Heading, {
|
|
5671
5691
|
id,
|
|
5672
|
-
children: summary
|
|
5692
|
+
children: [summary, operation.deprecated === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageActions.DeprecatedBadge, { className: "ml-2" }) : null]
|
|
5673
5693
|
}),
|
|
5674
5694
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(EndpointIdentity, {
|
|
5675
5695
|
method,
|
|
@@ -5980,4 +6000,4 @@ Object.defineProperty(exports, "primitives_exports", {
|
|
|
5980
6000
|
}
|
|
5981
6001
|
});
|
|
5982
6002
|
|
|
5983
|
-
//# sourceMappingURL=OpenApiOperation-
|
|
6003
|
+
//# sourceMappingURL=OpenApiOperation-CyR9Y-2y.cjs.map
|