@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
|
-
import { a as useConfig, l as useLocale, o as useConfigOptional, t as useBuiltInText } from "./i18n-
|
|
2
|
-
import { c as
|
|
1
|
+
import { a as useConfig, l as useLocale, o as useConfigOptional, t as useBuiltInText } from "./i18n-Bt-OaKRP.js";
|
|
2
|
+
import { c as useSectionStore, d as resolveLucideIconName, g as localizeHref, h as isExternalHref, l as remToPx, m as useTheme, o as DeprecatedBadge, t as PageActions, u as lucideIconRegistry, y as copyTextToClipboard } from "./PageActions-B98vbZRP.js";
|
|
3
3
|
import { t as markdownRemarkPlugins } from "./remark-C9iRQM0R.js";
|
|
4
4
|
import { Children, Suspense, cloneElement, createContext, createElement, forwardRef, isValidElement, lazy, useContext, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { Link } from "react-router-dom";
|
|
@@ -72,15 +72,15 @@ function LocalizedLink(arg0) {
|
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region source/components/Button.tsx
|
|
74
74
|
var buttonVariantStyles = {
|
|
75
|
-
primary: "bg-(--clarify-theme-tokens-colors-foreground) px-4 text-(--clarify-theme-tokens-colors-background) shadow-
|
|
76
|
-
secondary: "bg-(--clarify-
|
|
77
|
-
filled: "bg-(--clarify-theme-tokens-colors-primary) px-4 text-
|
|
78
|
-
outline: "px-4 text-(--clarify-ui-text-soft) ring-1 ring-inset ring-(--clarify-
|
|
79
|
-
text: "text-(--clarify-
|
|
75
|
+
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)",
|
|
76
|
+
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)",
|
|
77
|
+
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",
|
|
78
|
+
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)",
|
|
79
|
+
text: "text-(--clarify-ui-accent-text) hover:opacity-80"
|
|
80
80
|
};
|
|
81
81
|
function Button(arg0) {
|
|
82
82
|
const { variant = "primary", className, children, arrow, ...props } = arg0;
|
|
83
|
-
const classes = clsx("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);
|
|
83
|
+
const classes = clsx("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);
|
|
84
84
|
const arrowIcon = /* @__PURE__ */ jsx(ArrowRight, {
|
|
85
85
|
"aria-hidden": "true",
|
|
86
86
|
className: clsx("h-4 w-4 shrink-0", variant === "text" && "relative top-px", arrow === "left" && "-ml-0.5 rotate-180", arrow === "right" && "-mr-0.5")
|
|
@@ -108,48 +108,67 @@ function Button(arg0) {
|
|
|
108
108
|
//#region source/components/Callout.tsx
|
|
109
109
|
var calloutStyles = {
|
|
110
110
|
info: {
|
|
111
|
-
|
|
112
|
-
iconContainer: "bg-sky-100 ring-sky-500/15 dark:bg-sky-400/10 dark:ring-sky-400/20",
|
|
113
|
-
icon: "text-sky-600 dark:text-sky-400",
|
|
114
|
-
title: "text-sky-900 dark:text-sky-100",
|
|
111
|
+
tone: "info",
|
|
115
112
|
Icon: Info
|
|
116
113
|
},
|
|
117
114
|
note: {
|
|
118
|
-
|
|
119
|
-
iconContainer: "bg-zinc-200/70 ring-zinc-500/15 dark:bg-white/10 dark:ring-white/10",
|
|
120
|
-
icon: "text-zinc-500 dark:text-zinc-400",
|
|
121
|
-
title: "text-zinc-900 dark:text-white",
|
|
115
|
+
tone: "neutral",
|
|
122
116
|
Icon: Info
|
|
123
117
|
},
|
|
124
118
|
tip: {
|
|
125
|
-
|
|
126
|
-
iconContainer: "bg-emerald-100 ring-emerald-500/15 dark:bg-emerald-400/10 dark:ring-emerald-400/20",
|
|
127
|
-
icon: "text-emerald-600 dark:text-emerald-400",
|
|
128
|
-
title: "text-emerald-900 dark:text-emerald-100",
|
|
119
|
+
tone: "success",
|
|
129
120
|
Icon: Lightbulb
|
|
130
121
|
},
|
|
131
122
|
warning: {
|
|
132
|
-
|
|
133
|
-
iconContainer: "bg-amber-100 ring-amber-500/15 dark:bg-amber-400/10 dark:ring-amber-400/20",
|
|
134
|
-
icon: "text-amber-600 dark:text-amber-400",
|
|
135
|
-
title: "text-amber-900 dark:text-amber-100",
|
|
123
|
+
tone: "warning",
|
|
136
124
|
Icon: AlertTriangle
|
|
137
125
|
},
|
|
138
126
|
danger: {
|
|
139
|
-
|
|
140
|
-
iconContainer: "bg-rose-100 ring-rose-500/15 dark:bg-rose-400/10 dark:ring-rose-400/20",
|
|
141
|
-
icon: "text-rose-600 dark:text-rose-400",
|
|
142
|
-
title: "text-rose-900 dark:text-rose-100",
|
|
127
|
+
tone: "danger",
|
|
143
128
|
Icon: XCircle
|
|
144
129
|
},
|
|
145
130
|
success: {
|
|
146
|
-
|
|
147
|
-
iconContainer: "bg-emerald-100 ring-emerald-500/15 dark:bg-emerald-400/10 dark:ring-emerald-400/20",
|
|
148
|
-
icon: "text-emerald-600 dark:text-emerald-400",
|
|
149
|
-
title: "text-emerald-900 dark:text-emerald-100",
|
|
131
|
+
tone: "success",
|
|
150
132
|
Icon: CheckCircle2
|
|
151
133
|
}
|
|
152
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* Tone classes are written out (instead of interpolated) so Tailwind can see
|
|
137
|
+
* them at build time. Colours come from --clarify-tone-* so every callout
|
|
138
|
+
* follows the active theme preset.
|
|
139
|
+
*/
|
|
140
|
+
var calloutToneStyles = {
|
|
141
|
+
neutral: {
|
|
142
|
+
container: "border-(--clarify-tone-neutral-border) bg-(--clarify-tone-neutral-background)",
|
|
143
|
+
iconContainer: "bg-(--clarify-tone-neutral-icon-background) ring-(--clarify-tone-neutral-border)",
|
|
144
|
+
icon: "text-(--clarify-tone-neutral-icon)",
|
|
145
|
+
title: "text-(--clarify-tone-neutral-text)"
|
|
146
|
+
},
|
|
147
|
+
info: {
|
|
148
|
+
container: "border-(--clarify-tone-info-border) bg-(--clarify-tone-info-background)",
|
|
149
|
+
iconContainer: "bg-(--clarify-tone-info-icon-background) ring-(--clarify-tone-info-border)",
|
|
150
|
+
icon: "text-(--clarify-tone-info-icon)",
|
|
151
|
+
title: "text-(--clarify-tone-info-text)"
|
|
152
|
+
},
|
|
153
|
+
success: {
|
|
154
|
+
container: "border-(--clarify-tone-success-border) bg-(--clarify-tone-success-background)",
|
|
155
|
+
iconContainer: "bg-(--clarify-tone-success-icon-background) ring-(--clarify-tone-success-border)",
|
|
156
|
+
icon: "text-(--clarify-tone-success-icon)",
|
|
157
|
+
title: "text-(--clarify-tone-success-text)"
|
|
158
|
+
},
|
|
159
|
+
warning: {
|
|
160
|
+
container: "border-(--clarify-tone-warning-border) bg-(--clarify-tone-warning-background)",
|
|
161
|
+
iconContainer: "bg-(--clarify-tone-warning-icon-background) ring-(--clarify-tone-warning-border)",
|
|
162
|
+
icon: "text-(--clarify-tone-warning-icon)",
|
|
163
|
+
title: "text-(--clarify-tone-warning-text)"
|
|
164
|
+
},
|
|
165
|
+
danger: {
|
|
166
|
+
container: "border-(--clarify-tone-danger-border) bg-(--clarify-tone-danger-background)",
|
|
167
|
+
iconContainer: "bg-(--clarify-tone-danger-icon-background) ring-(--clarify-tone-danger-border)",
|
|
168
|
+
icon: "text-(--clarify-tone-danger-icon)",
|
|
169
|
+
title: "text-(--clarify-tone-danger-text)"
|
|
170
|
+
}
|
|
171
|
+
};
|
|
153
172
|
var defaultTitleKeys = {
|
|
154
173
|
info: "callout.info",
|
|
155
174
|
note: "callout.note",
|
|
@@ -162,21 +181,22 @@ function Callout(arg0) {
|
|
|
162
181
|
const { children, type = "info", title, icon = true, className, ...props } = arg0;
|
|
163
182
|
const t = useBuiltInText();
|
|
164
183
|
const style = calloutStyles[type];
|
|
184
|
+
const toneStyle = calloutToneStyles[style.tone];
|
|
165
185
|
const Icon = style.Icon;
|
|
166
186
|
const resolvedTitle = title === void 0 ? t(defaultTitleKeys[type]) : title;
|
|
167
187
|
return /* @__PURE__ */ jsxs("div", {
|
|
168
|
-
className: clsx("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)",
|
|
188
|
+
className: clsx("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),
|
|
169
189
|
...props,
|
|
170
190
|
children: [icon ? /* @__PURE__ */ jsx("span", {
|
|
171
|
-
className: clsx("flex size-7 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) ring-1 ring-inset",
|
|
191
|
+
className: clsx("flex size-7 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) ring-1 ring-inset", toneStyle.iconContainer),
|
|
172
192
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
173
|
-
className: clsx("size-4",
|
|
193
|
+
className: clsx("size-4", toneStyle.icon),
|
|
174
194
|
"aria-hidden": "true"
|
|
175
195
|
})
|
|
176
196
|
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
177
197
|
className: "min-w-0 flex-1 *:first:mt-0 *:last:mb-0",
|
|
178
198
|
children: [resolvedTitle ? /* @__PURE__ */ jsx("p", {
|
|
179
|
-
className: clsx("mb-1.5 font-semibold",
|
|
199
|
+
className: clsx("mb-1.5 font-semibold", toneStyle.title),
|
|
180
200
|
children: resolvedTitle
|
|
181
201
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
182
202
|
className: "*:first:mt-0 *:last:mb-0",
|
|
@@ -195,7 +215,7 @@ function CardIcon(arg0) {
|
|
|
195
215
|
const Icon = lucideIconRegistry[iconName];
|
|
196
216
|
if (!Icon) return null;
|
|
197
217
|
return /* @__PURE__ */ jsx("span", {
|
|
198
|
-
className: "flex size-8 flex-none items-center justify-center rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-
|
|
218
|
+
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)",
|
|
199
219
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
200
220
|
className: "size-4",
|
|
201
221
|
"aria-hidden": "true"
|
|
@@ -227,7 +247,7 @@ function Card(arg0) {
|
|
|
227
247
|
className: "m-0 text-sm/6 font-semibold text-(--clarify-theme-tokens-colors-foreground)",
|
|
228
248
|
children: title
|
|
229
249
|
}), href ? /* @__PURE__ */ jsx(ArrowUpRight, {
|
|
230
|
-
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-
|
|
250
|
+
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)",
|
|
231
251
|
"aria-hidden": "true"
|
|
232
252
|
}) : null]
|
|
233
253
|
}), children ? /* @__PURE__ */ jsx("div", {
|
|
@@ -239,7 +259,7 @@ function Card(arg0) {
|
|
|
239
259
|
className: "absolute inset-0 rounded-(--clarify-theme-tokens-radius-xl)",
|
|
240
260
|
"aria-hidden": "true"
|
|
241
261
|
}) : null] });
|
|
242
|
-
const classes = clsx("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-
|
|
262
|
+
const classes = clsx("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);
|
|
243
263
|
if (!href) return /* @__PURE__ */ jsx("div", {
|
|
244
264
|
className: classes,
|
|
245
265
|
children: content
|
|
@@ -253,7 +273,7 @@ function Card(arg0) {
|
|
|
253
273
|
}
|
|
254
274
|
//#endregion
|
|
255
275
|
//#region source/components/Mermaid.tsx
|
|
256
|
-
var MermaidViewer = lazy(() => import("./MermaidViewer-
|
|
276
|
+
var MermaidViewer = lazy(() => import("./MermaidViewer-DHxjl1zP.js"));
|
|
257
277
|
var mermaidModulePromise;
|
|
258
278
|
async function loadMermaid() {
|
|
259
279
|
mermaidModulePromise = mermaidModulePromise ?? import("mermaid").then((module) => module.default);
|
|
@@ -305,10 +325,10 @@ function Mermaid(arg0) {
|
|
|
305
325
|
resolvedTheme
|
|
306
326
|
]);
|
|
307
327
|
if (error) return /* @__PURE__ */ jsxs("div", {
|
|
308
|
-
className: clsx("clarify-mermaid clarify-mermaid-error my-6 overflow-x-auto rounded-
|
|
328
|
+
className: clsx("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),
|
|
309
329
|
children: [
|
|
310
330
|
/* @__PURE__ */ jsx("p", {
|
|
311
|
-
className: "text-sm font-semibold text-(--clarify-
|
|
331
|
+
className: "text-sm font-semibold text-(--clarify-tone-danger-text)",
|
|
312
332
|
children: t("mermaid.renderError")
|
|
313
333
|
}),
|
|
314
334
|
/* @__PURE__ */ jsx("pre", {
|
|
@@ -322,7 +342,7 @@ function Mermaid(arg0) {
|
|
|
322
342
|
]
|
|
323
343
|
});
|
|
324
344
|
if (!svg) return /* @__PURE__ */ jsx("div", {
|
|
325
|
-
className: clsx("clarify-mermaid clarify-mermaid-loading not-prose my-6 overflow-x-auto rounded-
|
|
345
|
+
className: clsx("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),
|
|
326
346
|
children: /* @__PURE__ */ jsx("pre", {
|
|
327
347
|
className: "text-xs text-(--clarify-ui-text-soft)",
|
|
328
348
|
children: chart.trim()
|
|
@@ -342,7 +362,7 @@ function Mermaid(arg0) {
|
|
|
342
362
|
function MermaidStaticSvg(arg0) {
|
|
343
363
|
const { svg, className } = arg0;
|
|
344
364
|
return /* @__PURE__ */ jsx("div", {
|
|
345
|
-
className: clsx("clarify-mermaid not-prose my-6 overflow-x-auto rounded-
|
|
365
|
+
className: clsx("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),
|
|
346
366
|
children: /* @__PURE__ */ jsx("div", {
|
|
347
367
|
className: "flex w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full",
|
|
348
368
|
dangerouslySetInnerHTML: { __html: svg }
|
|
@@ -413,13 +433,13 @@ function CopyButton$1(arg0) {
|
|
|
413
433
|
if (!code) return null;
|
|
414
434
|
return /* @__PURE__ */ jsx("button", {
|
|
415
435
|
type: "button",
|
|
416
|
-
className: clsx("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-
|
|
436
|
+
className: clsx("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)"),
|
|
417
437
|
onClick: () => {
|
|
418
438
|
copyTextToClipboard(code).then((ok) => {
|
|
419
439
|
if (ok) setCopyCount((count) => count + 1);
|
|
420
440
|
});
|
|
421
441
|
},
|
|
422
|
-
children: copied ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 stroke-(--clarify-
|
|
442
|
+
children: copied ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 stroke-(--clarify-code-success)" }), t("actions.copied")] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Clipboard, { className: "h-3.5 w-3.5 stroke-(--clarify-code-muted) transition-colors group-hover/button:stroke-(--clarify-code-text)" }), t("actions.copy")] })
|
|
423
443
|
});
|
|
424
444
|
}
|
|
425
445
|
function CodePanelHeader(arg0) {
|
|
@@ -429,7 +449,7 @@ function CodePanelHeader(arg0) {
|
|
|
429
449
|
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",
|
|
430
450
|
children: [
|
|
431
451
|
tag ? /* @__PURE__ */ jsx("span", {
|
|
432
|
-
className: "clarify-code-panel-tag font-semibold text-(--clarify-
|
|
452
|
+
className: "clarify-code-panel-tag font-semibold text-(--clarify-code-accent-text)",
|
|
433
453
|
children: tag
|
|
434
454
|
}) : null,
|
|
435
455
|
tag && label ? /* @__PURE__ */ jsx("span", { className: "h-0.5 w-0.5 rounded-full bg-(--clarify-code-faint)" }) : null,
|
|
@@ -560,7 +580,7 @@ function CodeGroup(arg0) {
|
|
|
560
580
|
const t = useBuiltInText();
|
|
561
581
|
const tabGroupProps = useTabGroupProps(Children.map(children, (child) => getCodePanelTitle(child, t("actions.code"))) ?? []);
|
|
562
582
|
const hasTabs = Children.count(children) > 1;
|
|
563
|
-
const containerClassName = "clarify-code-group my-6 overflow-hidden rounded-
|
|
583
|
+
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)";
|
|
564
584
|
const header = /* @__PURE__ */ jsx(CodeGroupHeader, {
|
|
565
585
|
title,
|
|
566
586
|
selectedIndex: tabGroupProps.selectedIndex,
|
|
@@ -626,7 +646,7 @@ function Collapse(arg0) {
|
|
|
626
646
|
setMaxHeight(open ? `${contentRef.current.scrollHeight}px` : "0px");
|
|
627
647
|
}, [open, children]);
|
|
628
648
|
return /* @__PURE__ */ jsxs("div", {
|
|
629
|
-
className: clsx("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-
|
|
649
|
+
className: clsx("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),
|
|
630
650
|
...props,
|
|
631
651
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
632
652
|
type: "button",
|
|
@@ -701,8 +721,8 @@ var FeedbackThanks = forwardRef(function FeedbackThanks(arg0, ref) {
|
|
|
701
721
|
ref,
|
|
702
722
|
className: clsx(className, "clarify-feedback-thanks absolute inset-0 flex justify-center md:justify-start"),
|
|
703
723
|
children: /* @__PURE__ */ jsxs("div", {
|
|
704
|
-
className: "flex items-center gap-3 rounded-full bg-(--clarify-
|
|
705
|
-
children: [/* @__PURE__ */ jsx(CircleCheck, { className: "h-5 w-5 flex-none stroke-(--clarify-
|
|
724
|
+
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",
|
|
725
|
+
children: [/* @__PURE__ */ jsx(CircleCheck, { className: "h-5 w-5 flex-none stroke-(--clarify-tone-success-icon)" }), t("feedback.thanks")]
|
|
706
726
|
})
|
|
707
727
|
});
|
|
708
728
|
});
|
|
@@ -753,7 +773,7 @@ function FileTreeItem(arg0) {
|
|
|
753
773
|
className: "flex min-h-6 items-center gap-2 whitespace-nowrap",
|
|
754
774
|
children: [
|
|
755
775
|
isFolder ? /* @__PURE__ */ jsx(FolderIcon, {
|
|
756
|
-
className: "size-4 flex-none text-(--clarify-ui-
|
|
776
|
+
className: "size-4 flex-none text-(--clarify-ui-text-soft)",
|
|
757
777
|
"aria-hidden": "true"
|
|
758
778
|
}) : /* @__PURE__ */ jsx(File, {
|
|
759
779
|
className: "size-4 flex-none text-(--clarify-ui-text-faint)",
|
|
@@ -779,28 +799,28 @@ function FileTreeItem(arg0) {
|
|
|
779
799
|
//#region source/components/Tag.tsx
|
|
780
800
|
var tagVariantStyles = {
|
|
781
801
|
small: "",
|
|
782
|
-
medium: "rounded-
|
|
802
|
+
medium: "rounded-(--clarify-theme-tokens-radius-md) px-1.5 ring-1 ring-inset"
|
|
783
803
|
};
|
|
784
804
|
var tagColorStyles = {
|
|
785
805
|
emerald: {
|
|
786
|
-
small: "text-
|
|
787
|
-
medium: "bg-
|
|
806
|
+
small: "text-(--clarify-tone-success-icon)",
|
|
807
|
+
medium: "bg-(--clarify-tone-success-background) text-(--clarify-tone-success-text) ring-(--clarify-tone-success-border)"
|
|
788
808
|
},
|
|
789
809
|
sky: {
|
|
790
|
-
small: "text-
|
|
791
|
-
medium: "bg-
|
|
810
|
+
small: "text-(--clarify-tone-info-icon)",
|
|
811
|
+
medium: "bg-(--clarify-tone-info-background) text-(--clarify-tone-info-text) ring-(--clarify-tone-info-border)"
|
|
792
812
|
},
|
|
793
813
|
amber: {
|
|
794
|
-
small: "text-
|
|
795
|
-
medium: "bg-
|
|
814
|
+
small: "text-(--clarify-tone-warning-icon)",
|
|
815
|
+
medium: "bg-(--clarify-tone-warning-background) text-(--clarify-tone-warning-text) ring-(--clarify-tone-warning-border)"
|
|
796
816
|
},
|
|
797
817
|
rose: {
|
|
798
|
-
small: "text-
|
|
799
|
-
medium: "bg-
|
|
818
|
+
small: "text-(--clarify-tone-danger-icon)",
|
|
819
|
+
medium: "bg-(--clarify-tone-danger-background) text-(--clarify-tone-danger-text) ring-(--clarify-tone-danger-border)"
|
|
800
820
|
},
|
|
801
821
|
zinc: {
|
|
802
822
|
small: "text-(--clarify-theme-tokens-colors-muted)",
|
|
803
|
-
medium: "bg-(--clarify-
|
|
823
|
+
medium: "bg-(--clarify-tone-neutral-background) text-(--clarify-theme-tokens-colors-muted) ring-(--clarify-tone-neutral-border)"
|
|
804
824
|
}
|
|
805
825
|
};
|
|
806
826
|
var tagValueColorMap = {
|
|
@@ -828,9 +848,9 @@ function Eyebrow(arg0) {
|
|
|
828
848
|
className: "flex items-center gap-x-3",
|
|
829
849
|
children: [
|
|
830
850
|
tag ? /* @__PURE__ */ jsx(Tag, { children: tag }) : null,
|
|
831
|
-
tag && label ? /* @__PURE__ */ jsx("span", { className: "h-0.5 w-0.5 rounded-full bg-
|
|
851
|
+
tag && label ? /* @__PURE__ */ jsx("span", { className: "h-0.5 w-0.5 rounded-full bg-(--clarify-ui-border-strong)" }) : null,
|
|
832
852
|
label ? /* @__PURE__ */ jsx("span", {
|
|
833
|
-
className: "text-xs text-
|
|
853
|
+
className: "text-xs text-(--clarify-ui-text-faint)",
|
|
834
854
|
children: label
|
|
835
855
|
}) : null
|
|
836
856
|
]
|
|
@@ -843,7 +863,7 @@ function Anchor(arg0) {
|
|
|
843
863
|
className: "clarify-anchor group text-inherit no-underline hover:text-inherit",
|
|
844
864
|
children: [inView ? /* @__PURE__ */ jsx("div", {
|
|
845
865
|
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)]",
|
|
846
|
-
children: /* @__PURE__ */ jsx(LinkIcon, { className: "h-5 w-5 text-(--clarify-
|
|
866
|
+
children: /* @__PURE__ */ jsx(LinkIcon, { className: "h-5 w-5 text-(--clarify-ui-text-soft) opacity-0 transition group-hover:opacity-100" })
|
|
847
867
|
}) : null, children]
|
|
848
868
|
});
|
|
849
869
|
}
|
|
@@ -896,7 +916,7 @@ function Logo(props) {
|
|
|
896
916
|
className: "fill-(--clarify-theme-tokens-colors-primary)",
|
|
897
917
|
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"
|
|
898
918
|
}), /* @__PURE__ */ jsx("path", {
|
|
899
|
-
className: "fill-(--clarify-theme-tokens-colors-foreground)
|
|
919
|
+
className: "fill-(--clarify-theme-tokens-colors-foreground)",
|
|
900
920
|
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"
|
|
901
921
|
})]
|
|
902
922
|
});
|
|
@@ -961,12 +981,12 @@ function HeroPattern() {
|
|
|
961
981
|
[7, 3],
|
|
962
982
|
[10, 6]
|
|
963
983
|
],
|
|
964
|
-
className: "clarify-hero-pattern-grid absolute inset-x-0 w-full -skew-y-18 fill-
|
|
984
|
+
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"
|
|
965
985
|
})
|
|
966
986
|
}), /* @__PURE__ */ jsx("svg", {
|
|
967
987
|
viewBox: "0 0 1113 440",
|
|
968
988
|
"aria-hidden": "true",
|
|
969
|
-
className: "absolute top-0 left-1/2 -ml-76 w-278.25 fill-
|
|
989
|
+
className: "absolute top-0 left-1/2 -ml-76 w-278.25 fill-(--clarify-theme-tokens-colors-background) blur-xl dark:hidden",
|
|
970
990
|
children: /* @__PURE__ */ jsx("path", { d: "M.016 439.5s-9.5-300 434-300S882.516 20 882.516 20V0h230.004v439.5H.016Z" })
|
|
971
991
|
})]
|
|
972
992
|
})
|
|
@@ -998,7 +1018,7 @@ function Step(arg0) {
|
|
|
998
1018
|
...props,
|
|
999
1019
|
children: [
|
|
1000
1020
|
/* @__PURE__ */ jsx("span", {
|
|
1001
|
-
className: "absolute top-0 -left-3.5 flex size-7 items-center justify-center rounded-full bg-(--clarify-
|
|
1021
|
+
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)]",
|
|
1002
1022
|
"aria-hidden": "true"
|
|
1003
1023
|
}),
|
|
1004
1024
|
title ? /* @__PURE__ */ jsx("h3", {
|
|
@@ -1106,7 +1126,7 @@ function Tooltip(arg0) {
|
|
|
1106
1126
|
ref: triggerRef,
|
|
1107
1127
|
"aria-describedby": contentId,
|
|
1108
1128
|
"aria-expanded": open,
|
|
1109
|
-
className: clsx("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),
|
|
1129
|
+
className: clsx("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),
|
|
1110
1130
|
onFocus: () => setOpen(true),
|
|
1111
1131
|
onBlur: () => setOpen(false),
|
|
1112
1132
|
onClick: () => setOpen(true),
|
|
@@ -1120,7 +1140,7 @@ function Tooltip(arg0) {
|
|
|
1120
1140
|
role: "tooltip",
|
|
1121
1141
|
popover: "manual",
|
|
1122
1142
|
style: position,
|
|
1123
|
-
className: clsx("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-
|
|
1143
|
+
className: clsx("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"),
|
|
1124
1144
|
children: content
|
|
1125
1145
|
})]
|
|
1126
1146
|
});
|
|
@@ -1148,13 +1168,13 @@ function WebFrame(arg0) {
|
|
|
1148
1168
|
children
|
|
1149
1169
|
});
|
|
1150
1170
|
if (!showWindow) return /* @__PURE__ */ jsx("div", {
|
|
1151
|
-
className: clsx("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-
|
|
1171
|
+
className: clsx("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),
|
|
1152
1172
|
children: frame
|
|
1153
1173
|
});
|
|
1154
1174
|
return /* @__PURE__ */ jsxs("div", {
|
|
1155
|
-
className: clsx("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-
|
|
1175
|
+
className: clsx("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),
|
|
1156
1176
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
1157
|
-
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-
|
|
1177
|
+
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",
|
|
1158
1178
|
children: [
|
|
1159
1179
|
/* @__PURE__ */ jsxs("div", {
|
|
1160
1180
|
className: "flex items-center gap-1.5",
|
|
@@ -1196,7 +1216,7 @@ function Image(arg0) {
|
|
|
1196
1216
|
"aria-label": `Enlarge image: ${alt}`,
|
|
1197
1217
|
onClick: () => setOpen(true),
|
|
1198
1218
|
children: [image, /* @__PURE__ */ jsx("span", {
|
|
1199
|
-
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-
|
|
1219
|
+
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",
|
|
1200
1220
|
children: /* @__PURE__ */ jsx(Maximize2, {
|
|
1201
1221
|
className: "size-4",
|
|
1202
1222
|
"aria-hidden": "true"
|
|
@@ -1212,17 +1232,17 @@ function Image(arg0) {
|
|
|
1212
1232
|
open,
|
|
1213
1233
|
onClose: setOpen,
|
|
1214
1234
|
className: "relative z-50",
|
|
1215
|
-
children: [/* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 bg-
|
|
1235
|
+
children: [/* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 bg-(--clarify-ui-overlay-background) backdrop-blur-sm" }), /* @__PURE__ */ jsx("div", {
|
|
1216
1236
|
className: "fixed inset-0 flex items-center justify-center p-4 sm:p-8",
|
|
1217
1237
|
children: /* @__PURE__ */ jsxs(DialogPanel, {
|
|
1218
|
-
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-
|
|
1238
|
+
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)",
|
|
1219
1239
|
children: [/* @__PURE__ */ jsx("img", {
|
|
1220
1240
|
src,
|
|
1221
1241
|
alt,
|
|
1222
1242
|
className: "max-h-[calc(100dvh-5rem)] max-w-[calc(100vw-5rem)] object-contain"
|
|
1223
1243
|
}), /* @__PURE__ */ jsx("button", {
|
|
1224
1244
|
type: "button",
|
|
1225
|
-
className: "absolute top-4 right-4 grid size-9 place-items-center rounded-md border border-
|
|
1245
|
+
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)",
|
|
1226
1246
|
"aria-label": "Close image preview",
|
|
1227
1247
|
onClick: () => setOpen(false),
|
|
1228
1248
|
children: /* @__PURE__ */ jsx(X, {
|
|
@@ -1278,7 +1298,7 @@ function Release(arg0) {
|
|
|
1278
1298
|
children: [/* @__PURE__ */ jsxs("header", {
|
|
1279
1299
|
className: "self-start sm:sticky sm:top-24",
|
|
1280
1300
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
1281
|
-
className: "m-0! inline-flex rounded-(--clarify-theme-tokens-radius-md) bg-(--clarify-ui-
|
|
1301
|
+
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",
|
|
1282
1302
|
children: version
|
|
1283
1303
|
}), date ? /* @__PURE__ */ jsxs("time", {
|
|
1284
1304
|
dateTime: date,
|
|
@@ -1363,8 +1383,8 @@ function h3(props) {
|
|
|
1363
1383
|
function Note(arg0) {
|
|
1364
1384
|
const { children } = arg0;
|
|
1365
1385
|
return /* @__PURE__ */ jsxs("div", {
|
|
1366
|
-
className: "clarify-note my-6 flex gap-3 rounded-r-(--clarify-theme-tokens-radius-lg) border-l-2 border-(--clarify-
|
|
1367
|
-
children: [/* @__PURE__ */ jsx(Info, { className: "mt-1 size-4 flex-none stroke-(--clarify-ui-
|
|
1386
|
+
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)]",
|
|
1387
|
+
children: [/* @__PURE__ */ jsx(Info, { className: "mt-1 size-4 flex-none stroke-(--clarify-ui-text-soft)" }), /* @__PURE__ */ jsx("div", {
|
|
1368
1388
|
className: "*:first:mt-0 *:last:mb-0",
|
|
1369
1389
|
children
|
|
1370
1390
|
})]
|
|
@@ -2380,7 +2400,7 @@ function SelectControl(arg0) {
|
|
|
2380
2400
|
})]
|
|
2381
2401
|
}), /* @__PURE__ */ jsx(ListboxOptions, {
|
|
2382
2402
|
anchor: "bottom end",
|
|
2383
|
-
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-
|
|
2403
|
+
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",
|
|
2384
2404
|
children: normalizedOptions.map((option) => /* @__PURE__ */ jsxs(ListboxOption, {
|
|
2385
2405
|
value: option.value,
|
|
2386
2406
|
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)",
|
|
@@ -2410,7 +2430,7 @@ function CopyCodeButton(arg0) {
|
|
|
2410
2430
|
},
|
|
2411
2431
|
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)",
|
|
2412
2432
|
children: [copied ? /* @__PURE__ */ jsx(CheckIcon, {
|
|
2413
|
-
className: "h-3.5 w-3.5 text-(--clarify-
|
|
2433
|
+
className: "h-3.5 w-3.5 text-(--clarify-code-success)",
|
|
2414
2434
|
"aria-hidden": "true"
|
|
2415
2435
|
}) : /* @__PURE__ */ jsx(ClipboardIcon, {
|
|
2416
2436
|
className: "h-3.5 w-3.5 text-(--clarify-code-faint)",
|
|
@@ -2548,7 +2568,7 @@ function ApiExampleCodeGroup(arg0) {
|
|
|
2548
2568
|
value: tag,
|
|
2549
2569
|
options: tagOptions,
|
|
2550
2570
|
onChange: onSelectTag,
|
|
2551
|
-
className: "clarify-openai-example-status font-semibold text-
|
|
2571
|
+
className: "clarify-openai-example-status font-semibold text-(--clarify-code-success)"
|
|
2552
2572
|
}) : null,
|
|
2553
2573
|
tag && label ? /* @__PURE__ */ jsx("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-(--clarify-code-faint)" }) : null,
|
|
2554
2574
|
label ? /* @__PURE__ */ jsx(ExampleMetaValue, {
|
|
@@ -2560,7 +2580,7 @@ function ApiExampleCodeGroup(arg0) {
|
|
|
2560
2580
|
}) : null
|
|
2561
2581
|
] });
|
|
2562
2582
|
return /* @__PURE__ */ jsx("div", {
|
|
2563
|
-
className: "clarify-openai-example my-6 overflow-hidden rounded-
|
|
2583
|
+
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)",
|
|
2564
2584
|
children: /* @__PURE__ */ jsxs("div", {
|
|
2565
2585
|
className: "not-prose",
|
|
2566
2586
|
children: [
|
|
@@ -2881,7 +2901,7 @@ function OpenApiAuthDocumentation(props) {
|
|
|
2881
2901
|
className: "font-mono text-sm/6 font-semibold text-(--clarify-theme-tokens-colors-foreground)",
|
|
2882
2902
|
children: schemeOption.name
|
|
2883
2903
|
}), /* @__PURE__ */ jsx("span", {
|
|
2884
|
-
className: "rounded bg-(--clarify-ui-subtle-background) px-1.5 py-0.5 text-2xs font-semibold text-(--clarify-ui-text-soft)",
|
|
2904
|
+
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)",
|
|
2885
2905
|
children: authSchemeType(schemeOption, t("openapi.authApiKey"))
|
|
2886
2906
|
})]
|
|
2887
2907
|
}),
|
|
@@ -3432,7 +3452,7 @@ function SchemaSearchButton(arg0) {
|
|
|
3432
3452
|
"aria-label": label,
|
|
3433
3453
|
"aria-pressed": open,
|
|
3434
3454
|
onClick,
|
|
3435
|
-
className: clsx("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-
|
|
3455
|
+
className: clsx("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)"),
|
|
3436
3456
|
children: /* @__PURE__ */ jsx(SearchIcon, {
|
|
3437
3457
|
className: "size-4",
|
|
3438
3458
|
"aria-hidden": "true"
|
|
@@ -3601,7 +3621,7 @@ function EndpointResponse(arg0) {
|
|
|
3601
3621
|
//#endregion
|
|
3602
3622
|
//#region source/openapi/components/InlineListbox.tsx
|
|
3603
3623
|
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)";
|
|
3604
|
-
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-
|
|
3624
|
+
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";
|
|
3605
3625
|
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)";
|
|
3606
3626
|
function OptionContent(arg0) {
|
|
3607
3627
|
const { option } = arg0;
|
|
@@ -4192,8 +4212,8 @@ function RequestField(arg0) {
|
|
|
4192
4212
|
children: description
|
|
4193
4213
|
}),
|
|
4194
4214
|
side: "bottom",
|
|
4195
|
-
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-
|
|
4196
|
-
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",
|
|
4215
|
+
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)",
|
|
4216
|
+
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",
|
|
4197
4217
|
children: [/* @__PURE__ */ jsx(InfoIcon, {
|
|
4198
4218
|
className: "size-4",
|
|
4199
4219
|
"aria-hidden": "true"
|
|
@@ -4749,7 +4769,7 @@ function SendRequestButton(arg0) {
|
|
|
4749
4769
|
"aria-label": label,
|
|
4750
4770
|
title: label,
|
|
4751
4771
|
onClick,
|
|
4752
|
-
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-
|
|
4772
|
+
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",
|
|
4753
4773
|
children: [busy ? /* @__PURE__ */ jsx(LoaderCircleIcon, {
|
|
4754
4774
|
className: "size-4 animate-spin",
|
|
4755
4775
|
"aria-hidden": "true"
|
|
@@ -5390,7 +5410,7 @@ function OpenApiRequestDialog(arg0) {
|
|
|
5390
5410
|
children: [/* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 bg-(--clarify-ui-overlay-background) backdrop-blur-sm" }), /* @__PURE__ */ jsx("div", {
|
|
5391
5411
|
className: "fixed inset-0 grid place-items-center overflow-y-auto p-3 sm:p-6",
|
|
5392
5412
|
children: /* @__PURE__ */ jsxs(DialogPanel, {
|
|
5393
|
-
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-
|
|
5413
|
+
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))]",
|
|
5394
5414
|
children: [/* @__PURE__ */ jsx(DialogTitle, {
|
|
5395
5415
|
className: "sr-only",
|
|
5396
5416
|
children: t("openapi.tryRequest")
|
|
@@ -5421,7 +5441,7 @@ function EndpointPath(arg0) {
|
|
|
5421
5441
|
"aria-label": copied ? t("actions.copied") : t("actions.copy"),
|
|
5422
5442
|
title: copied ? t("actions.copied") : t("actions.copy"),
|
|
5423
5443
|
onClick: onCopy,
|
|
5424
|
-
className: clsx("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-
|
|
5444
|
+
className: clsx("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)"),
|
|
5425
5445
|
children: copied ? /* @__PURE__ */ jsx(CheckIcon, {
|
|
5426
5446
|
className: "h-3.5 w-3.5",
|
|
5427
5447
|
"aria-hidden": "true"
|
|
@@ -5460,7 +5480,7 @@ function ServerUrlValue(arg0) {
|
|
|
5460
5480
|
const protocolLabel = getServerProtocolLabel(server, variables);
|
|
5461
5481
|
if (!interactive) return /* @__PURE__ */ jsxs("span", {
|
|
5462
5482
|
"aria-label": "Server",
|
|
5463
|
-
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-
|
|
5483
|
+
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",
|
|
5464
5484
|
children: [/* @__PURE__ */ jsx("span", {
|
|
5465
5485
|
className: "sm:hidden",
|
|
5466
5486
|
children: /* @__PURE__ */ jsx(ServerIcon, {
|
|
@@ -5470,7 +5490,7 @@ function ServerUrlValue(arg0) {
|
|
|
5470
5490
|
}), /* @__PURE__ */ jsxs("span", {
|
|
5471
5491
|
className: "hidden min-w-0 items-center gap-1.5 overflow-hidden sm:flex",
|
|
5472
5492
|
children: [protocolLabel ? /* @__PURE__ */ jsx("span", {
|
|
5473
|
-
className: "shrink-0 rounded bg-
|
|
5493
|
+
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)",
|
|
5474
5494
|
children: protocolLabel
|
|
5475
5495
|
}) : null, /* @__PURE__ */ jsx("span", {
|
|
5476
5496
|
className: "truncate font-semibold text-xs",
|
|
@@ -5488,7 +5508,7 @@ function ServerUrlValue(arg0) {
|
|
|
5488
5508
|
})),
|
|
5489
5509
|
onChange: onSelect,
|
|
5490
5510
|
className: "w-8 shrink-0 sm:w-fit sm:min-w-16 sm:max-w-(--clarify-server-url-max-width)",
|
|
5491
|
-
buttonClassName: "group flex h-8 w-full min-w-0 cursor-pointer items-center justify-center rounded-
|
|
5511
|
+
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",
|
|
5492
5512
|
buttonContent: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
5493
5513
|
className: "sm:hidden",
|
|
5494
5514
|
children: /* @__PURE__ */ jsx(ServerIcon, {
|
|
@@ -5499,7 +5519,7 @@ function ServerUrlValue(arg0) {
|
|
|
5499
5519
|
className: "hidden min-w-0 items-center gap-1 overflow-hidden sm:flex",
|
|
5500
5520
|
children: [
|
|
5501
5521
|
protocolLabel ? /* @__PURE__ */ jsx("span", {
|
|
5502
|
-
className: "shrink-0 rounded bg-
|
|
5522
|
+
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)",
|
|
5503
5523
|
children: protocolLabel
|
|
5504
5524
|
}) : null,
|
|
5505
5525
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -5507,7 +5527,7 @@ function ServerUrlValue(arg0) {
|
|
|
5507
5527
|
children: url
|
|
5508
5528
|
}),
|
|
5509
5529
|
/* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
5510
|
-
className: "h-3.5 w-3.5 shrink-0 text-
|
|
5530
|
+
className: "h-3.5 w-3.5 shrink-0 text-(--clarify-ui-text-faint) transition-transform group-data-open:rotate-180",
|
|
5511
5531
|
"aria-hidden": "true"
|
|
5512
5532
|
})
|
|
5513
5533
|
]
|
|
@@ -5518,7 +5538,7 @@ function ServerUrlValue(arg0) {
|
|
|
5518
5538
|
"aria-expanded": open,
|
|
5519
5539
|
"aria-label": "Server",
|
|
5520
5540
|
onClick: onToggle,
|
|
5521
|
-
className: clsx("flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-
|
|
5541
|
+
className: clsx("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),
|
|
5522
5542
|
children: [/* @__PURE__ */ jsx("span", {
|
|
5523
5543
|
className: "sm:hidden",
|
|
5524
5544
|
children: /* @__PURE__ */ jsx(ServerIcon, {
|
|
@@ -5529,7 +5549,7 @@ function ServerUrlValue(arg0) {
|
|
|
5529
5549
|
className: "hidden min-w-0 items-center gap-1 overflow-hidden sm:flex",
|
|
5530
5550
|
children: [
|
|
5531
5551
|
protocolLabel ? /* @__PURE__ */ jsx("span", {
|
|
5532
|
-
className: "shrink-0 rounded bg-
|
|
5552
|
+
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)",
|
|
5533
5553
|
children: protocolLabel
|
|
5534
5554
|
}) : null,
|
|
5535
5555
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -5537,7 +5557,7 @@ function ServerUrlValue(arg0) {
|
|
|
5537
5557
|
children: url
|
|
5538
5558
|
}),
|
|
5539
5559
|
/* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
5540
|
-
className: clsx("h-3.5 w-3.5 shrink-0 text-
|
|
5560
|
+
className: clsx("h-3.5 w-3.5 shrink-0 text-(--clarify-ui-text-faint) transition-transform", open && "rotate-180"),
|
|
5541
5561
|
"aria-hidden": "true"
|
|
5542
5562
|
})
|
|
5543
5563
|
]
|
|
@@ -5555,14 +5575,14 @@ function ServerVariableControl(arg0) {
|
|
|
5555
5575
|
})),
|
|
5556
5576
|
onChange,
|
|
5557
5577
|
compact,
|
|
5558
|
-
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-
|
|
5578
|
+
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)"
|
|
5559
5579
|
});
|
|
5560
5580
|
return /* @__PURE__ */ jsx("input", {
|
|
5561
5581
|
"aria-label": name,
|
|
5562
5582
|
value,
|
|
5563
5583
|
placeholder: variable?.default ?? name,
|
|
5564
5584
|
onChange: (event) => onChange(event.target.value),
|
|
5565
|
-
className: clsx("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-
|
|
5585
|
+
className: clsx("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")
|
|
5566
5586
|
});
|
|
5567
5587
|
}
|
|
5568
5588
|
function ServerPanel(arg0) {
|
|
@@ -5586,7 +5606,7 @@ function ServerPanel(arg0) {
|
|
|
5586
5606
|
description: server.description
|
|
5587
5607
|
})),
|
|
5588
5608
|
onChange: onSelectServer,
|
|
5589
|
-
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-
|
|
5609
|
+
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)"
|
|
5590
5610
|
})]
|
|
5591
5611
|
}) : null, variableEntries.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
5592
5612
|
className: "grid gap-3 sm:grid-cols-(--clarify-openapi-variable-grid)",
|
|
@@ -5622,7 +5642,7 @@ function EndpointIdentity(arg0) {
|
|
|
5622
5642
|
if (await copyTextToClipboard(fullUrl)) setCopiedUrl(true);
|
|
5623
5643
|
}
|
|
5624
5644
|
return /* @__PURE__ */ jsxs("div", {
|
|
5625
|
-
className: "clarify-openai-endpoint-identity not-prose flex w-full flex-col overflow-hidden rounded-
|
|
5645
|
+
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)",
|
|
5626
5646
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
5627
5647
|
className: "flex min-w-0 items-center gap-1.5 overflow-hidden px-2.5 py-2",
|
|
5628
5648
|
children: [
|
|
@@ -5675,9 +5695,9 @@ function OpenApiOperation(arg0) {
|
|
|
5675
5695
|
className: "clarify-openai-endpoint scroll-mt-24 pb-16 first:pt-0 last:pb-0",
|
|
5676
5696
|
"aria-labelledby": id,
|
|
5677
5697
|
children: [
|
|
5678
|
-
/* @__PURE__ */
|
|
5698
|
+
/* @__PURE__ */ jsxs(Heading, {
|
|
5679
5699
|
id,
|
|
5680
|
-
children: summary
|
|
5700
|
+
children: [summary, operation.deprecated === true ? /* @__PURE__ */ jsx(DeprecatedBadge, { className: "ml-2" }) : null]
|
|
5681
5701
|
}),
|
|
5682
5702
|
/* @__PURE__ */ jsx(EndpointIdentity, {
|
|
5683
5703
|
method,
|
|
@@ -5737,4 +5757,4 @@ function OpenApiOperation(arg0) {
|
|
|
5737
5757
|
//#endregion
|
|
5738
5758
|
export { Heading as A, Callout as B, Tabs as C, GridPattern as D, Prose as E, CodeGroup as F, LocalizedLink as H, Pre as I, Mermaid as L, Feedback as M, Collapse as N, HeroPattern as O, Code as P, Card as R, TabItem as S, Steps as T, Button as V, Markdown as _, ResponseExamplesPanel as a, primitives_exports as b, getAuthOptions as c, EndpointMethodBadge as d, getOpenApiOperationEntryById as f, getRequestBody$1 as g, getMediaTypeEntries as h, RequestExamplesPanel as i, Tag as j, Logo as k, getServerKey as l, listOpenApiOperations as m, OpenApiOperation as n, authPlaceholder as o, getOpenApiOperationSectionId as p, OpenApiRequestWorkbench as r, defaultServerVariables as s, EndpointIdentity as t, getServers as u, Release as v, Step as w, WebFrame as x, ReleaseItem as y, CardGroup as z };
|
|
5739
5759
|
|
|
5740
|
-
//# sourceMappingURL=OpenApiOperation-
|
|
5760
|
+
//# sourceMappingURL=OpenApiOperation-BVm4VnFl.js.map
|