@oxide/design-system 1.7.6 → 1.7.7--canary.fdd8ab6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,126 +1,2145 @@
1
+ // components/src/asciidoc/index.tsx
2
+ import asciidoctor2 from "@asciidoctor/core";
3
+ import { Content as Content4 } from "@oxide/react-asciidoc";
4
+
1
5
  // components/src/asciidoc/Admonition.tsx
2
6
  import { Content, Title, parse } from "@oxide/react-asciidoc";
3
7
 
4
- // components/src/utils.ts
5
- import cn from "classnames";
6
- import { createElement } from "react";
7
- var titleCase = (text) => {
8
- return text.replace(
9
- /\w\S*/g,
10
- (text2) => text2.charAt(0).toUpperCase() + text2.substring(1).toLowerCase()
11
- );
8
+ // components/src/utils.ts
9
+ import cn from "classnames";
10
+ import { createElement } from "react";
11
+ var titleCase = (text) => {
12
+ return text.replace(
13
+ /\w\S*/g,
14
+ (text2) => text2.charAt(0).toUpperCase() + text2.substring(1).toLowerCase()
15
+ );
16
+ };
17
+ var make = (tag) => (
18
+ // only one argument here means string interpolations are not allowed
19
+ (strings) => {
20
+ const Comp = ({ className, children, ...rest }) => createElement(tag, { className: cn(strings[0], className), ...rest }, children);
21
+ Comp.displayName = `classed.${tag}`;
22
+ return Comp;
23
+ }
24
+ );
25
+ var classed = {
26
+ button: make("button"),
27
+ div: make("div"),
28
+ h1: make("h1"),
29
+ h2: make("h2"),
30
+ h3: make("h3"),
31
+ h4: make("h4"),
32
+ hr: make("hr"),
33
+ header: make("header"),
34
+ input: make("input"),
35
+ label: make("label"),
36
+ li: make("li"),
37
+ main: make("main"),
38
+ ol: make("ol"),
39
+ p: make("p"),
40
+ span: make("span"),
41
+ table: make("table"),
42
+ tbody: make("tbody"),
43
+ td: make("td"),
44
+ th: make("th"),
45
+ tr: make("tr")
46
+ };
47
+
48
+ // components/src/asciidoc/Admonition.tsx
49
+ import { jsx, jsxs } from "react/jsx-runtime";
50
+ var Admonition = ({ node }) => {
51
+ const attrs2 = node.attributes;
52
+ let icon;
53
+ if (attrs2.name === "caution") {
54
+ icon = /* @__PURE__ */ jsx(Error12, {});
55
+ } else if (attrs2.name === "warning") {
56
+ icon = /* @__PURE__ */ jsx(Warning12, {});
57
+ } else {
58
+ icon = /* @__PURE__ */ jsx(Error12, { className: "rotate-180" });
59
+ }
60
+ return /* @__PURE__ */ jsxs("div", { className: `admonitionblock ${attrs2.name}`, children: [
61
+ /* @__PURE__ */ jsx("div", { className: "admonition-icon", children: icon }),
62
+ /* @__PURE__ */ jsxs("div", { className: "admonition-content content", children: [
63
+ /* @__PURE__ */ jsx(Title, { text: node.title }),
64
+ /* @__PURE__ */ jsx("div", { children: titleCase(attrs2.name.toString()) }),
65
+ /* @__PURE__ */ jsxs("div", { children: [
66
+ /* @__PURE__ */ jsx(Title, { text: node.title }),
67
+ node.content && parse(node.content),
68
+ /* @__PURE__ */ jsx(Content, { blocks: node.blocks })
69
+ ] })
70
+ ] })
71
+ ] });
72
+ };
73
+ var Error12 = ({ className }) => /* @__PURE__ */ jsx(
74
+ "svg",
75
+ {
76
+ width: "12",
77
+ height: "12",
78
+ viewBox: "0 0 12 12",
79
+ xmlns: "http://www.w3.org/2000/svg",
80
+ className,
81
+ children: /* @__PURE__ */ jsx(
82
+ "path",
83
+ {
84
+ fillRule: "evenodd",
85
+ clipRule: "evenodd",
86
+ d: "M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.083-9c.368 0 .667.299.667.667v2.666A.667.667 0 0 1 6.083 7h-.166a.667.667 0 0 1-.667-.667V3.667c0-.368.299-.667.667-.667h.166Zm0 5c.368 0 .667.299.667.667v.166a.667.667 0 0 1-.667.667h-.166a.667.667 0 0 1-.667-.667v-.166c0-.368.299-.667.667-.667h.166Z",
87
+ fill: "currentColor"
88
+ }
89
+ )
90
+ }
91
+ );
92
+ var Warning12 = ({ className }) => /* @__PURE__ */ jsx(
93
+ "svg",
94
+ {
95
+ width: "12",
96
+ height: "12",
97
+ viewBox: "0 0 12 12",
98
+ xmlns: "http://www.w3.org/2000/svg",
99
+ className,
100
+ children: /* @__PURE__ */ jsx(
101
+ "path",
102
+ {
103
+ fillRule: "evenodd",
104
+ clipRule: "evenodd",
105
+ d: "M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.083-9c.368 0 .667.299.667.667v2.666A.667.667 0 0 1 6.083 7h-.166a.667.667 0 0 1-.667-.667V3.667c0-.368.299-.667.667-.667h.166Zm0 5c.368 0 .667.299.667.667v.166a.667.667 0 0 1-.667.667h-.166a.667.667 0 0 1-.667-.667v-.166c0-.368.299-.667.667-.667h.166Z",
106
+ fill: "currentColor"
107
+ }
108
+ )
109
+ }
110
+ );
111
+ var Admonition_default = Admonition;
112
+
113
+ // icons/react/Link16Icon.tsx
114
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
115
+ var Link16Icon = ({ title, titleId, ...props }) => /* @__PURE__ */ jsxs2(
116
+ "svg",
117
+ {
118
+ width: 16,
119
+ height: 16,
120
+ viewBox: "0 0 16 16",
121
+ xmlns: "http://www.w3.org/2000/svg",
122
+ role: "img",
123
+ "aria-labelledby": titleId,
124
+ ...props,
125
+ children: [
126
+ title ? /* @__PURE__ */ jsx2("title", { id: titleId, children: title }) : null,
127
+ /* @__PURE__ */ jsxs2("g", { fill: "currentColor", children: [
128
+ /* @__PURE__ */ jsx2("path", { d: "m6.586 12.243 1.59-1.591a.75.75 0 0 1 1.061 0l.354.353a.75.75 0 0 1 0 1.06L8 13.658A4 4 0 0 1 2.343 8l1.591-1.591a.75.75 0 0 1 1.06 0l.354.354a.75.75 0 0 1 0 1.06l-1.59 1.591a2 2 0 1 0 2.828 2.829ZM12.066 9.591a.75.75 0 0 1-1.06 0l-.354-.354a.75.75 0 0 1 0-1.06l1.59-1.591a2 2 0 1 0-2.828-2.829l-1.59 1.591a.75.75 0 0 1-1.061 0l-.354-.353a.75.75 0 0 1 0-1.06L8 2.342A4 4 0 0 1 13.657 8l-1.591 1.591Z" }),
129
+ /* @__PURE__ */ jsx2("path", { d: "M9.945 5.702a.75.75 0 0 0-1.061 0L5.702 8.884a.75.75 0 0 0 0 1.06l.353.354a.75.75 0 0 0 1.061 0l3.182-3.182a.75.75 0 0 0 0-1.06l-.353-.354Z" })
130
+ ] })
131
+ ]
132
+ }
133
+ );
134
+ var Link16Icon_default = Link16Icon;
135
+
136
+ // icons/react/Checkmark12Icon.tsx
137
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
138
+ var Checkmark12Icon = ({
139
+ title,
140
+ titleId,
141
+ ...props
142
+ }) => /* @__PURE__ */ jsxs3(
143
+ "svg",
144
+ {
145
+ width: 12,
146
+ height: 12,
147
+ viewBox: "0 0 12 12",
148
+ xmlns: "http://www.w3.org/2000/svg",
149
+ role: "img",
150
+ "aria-labelledby": titleId,
151
+ ...props,
152
+ children: [
153
+ title ? /* @__PURE__ */ jsx3("title", { id: titleId, children: title }) : null,
154
+ /* @__PURE__ */ jsx3(
155
+ "path",
156
+ {
157
+ fillRule: "evenodd",
158
+ clipRule: "evenodd",
159
+ d: "M10.492 2.651c.28.242.31.665.067.944L5.447 9.463a.667.667 0 0 1-.974.035L1.475 6.516a.667.667 0 0 1 0-.946l.237-.235a.667.667 0 0 1 .94 0l2.24 2.226L9.3 2.501a.667.667 0 0 1 .938-.068l.253.218Z",
160
+ fill: "currentColor"
161
+ }
162
+ )
163
+ ]
164
+ }
165
+ );
166
+ var Checkmark12Icon_default = Checkmark12Icon;
167
+
168
+ // icons/react/DirectionRightIcon.tsx
169
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
170
+ var DirectionRightIcon = ({
171
+ title,
172
+ titleId,
173
+ ...props
174
+ }) => /* @__PURE__ */ jsxs4(
175
+ "svg",
176
+ {
177
+ width: 12,
178
+ height: 12,
179
+ viewBox: "0 0 12 12",
180
+ xmlns: "http://www.w3.org/2000/svg",
181
+ role: "img",
182
+ "aria-labelledby": titleId,
183
+ ...props,
184
+ children: [
185
+ title ? /* @__PURE__ */ jsx4("title", { id: titleId, children: title }) : null,
186
+ /* @__PURE__ */ jsx4(
187
+ "path",
188
+ {
189
+ d: "M8.807 6.597a.667.667 0 0 0 0-1.194l-5.842-2.92A.667.667 0 0 0 2 3.079v5.842c0 .496.522.818.965.596l5.842-2.92Z",
190
+ fill: "currentColor"
191
+ }
192
+ )
193
+ ]
194
+ }
195
+ );
196
+ var DirectionRightIcon_default = DirectionRightIcon;
197
+
198
+ // icons/react/SelectArrows6Icon.tsx
199
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
200
+ var SelectArrows6Icon = ({
201
+ title,
202
+ titleId,
203
+ ...props
204
+ }) => /* @__PURE__ */ jsxs5(
205
+ "svg",
206
+ {
207
+ width: 6,
208
+ height: 14,
209
+ viewBox: "0 0 6 14",
210
+ xmlns: "http://www.w3.org/2000/svg",
211
+ role: "img",
212
+ "aria-labelledby": titleId,
213
+ ...props,
214
+ children: [
215
+ title ? /* @__PURE__ */ jsx5("title", { id: titleId, children: title }) : null,
216
+ /* @__PURE__ */ jsx5(
217
+ "path",
218
+ {
219
+ fillRule: "evenodd",
220
+ clipRule: "evenodd",
221
+ d: "M3.322.536a.375.375 0 0 0-.644 0L.341 4.432C.19 4.682.37 5 .662 5h4.676a.375.375 0 0 0 .321-.568L3.322.536Zm-.644 12.928a.375.375 0 0 0 .644 0l2.337-3.896A.375.375 0 0 0 5.338 9H.662a.375.375 0 0 0-.321.568l2.337 3.896Z",
222
+ fill: "currentColor"
223
+ }
224
+ )
225
+ ]
226
+ }
227
+ );
228
+ var SelectArrows6Icon_default = SelectArrows6Icon;
229
+
230
+ // components/src/asciidoc/Section.tsx
231
+ import { Content as Content2, parse as parse2 } from "@oxide/react-asciidoc";
232
+ import cn2 from "classnames";
233
+ import { createElement as createElement2 } from "react";
234
+ import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
235
+ var stripAnchors = (str) => str.replace(/<a[^>]*>(.*?)<\/a>/gi, "$1");
236
+ var Section = ({ node }) => {
237
+ const level = node.level;
238
+ let title = "";
239
+ let sectNum = node.num;
240
+ sectNum = sectNum === "." ? "" : sectNum;
241
+ title = /* @__PURE__ */ jsxs6(Fragment, { children: [
242
+ /* @__PURE__ */ jsx6("span", { className: "anchor", id: node.id || "", "aria-hidden": "true" }),
243
+ /* @__PURE__ */ jsxs6("a", { className: "link group", href: `#${node.id}`, children: [
244
+ parse2(stripAnchors(node.title)),
245
+ /* @__PURE__ */ jsx6(Link16Icon_default, { className: "ml-2 hidden text-accent-secondary group-hover:inline-block" })
246
+ ] })
247
+ ] });
248
+ if (level === 0) {
249
+ return /* @__PURE__ */ jsxs6(Fragment, { children: [
250
+ /* @__PURE__ */ jsx6("h1", { className: cn2("sect0", node.role), "data-sectnum": sectNum, children: title }),
251
+ /* @__PURE__ */ jsx6(Content2, { blocks: node.blocks })
252
+ ] });
253
+ } else {
254
+ return /* @__PURE__ */ jsxs6("div", { className: cn2(`sect${level}`, node.role), children: [
255
+ createElement2(`h${level + 1}`, { "data-sectnum": sectNum }, title),
256
+ /* @__PURE__ */ jsx6("div", { className: "sectionbody", children: /* @__PURE__ */ jsx6(Content2, { blocks: node.blocks }) })
257
+ ] });
258
+ }
259
+ };
260
+ var Section_default = Section;
261
+
262
+ // components/src/asciidoc/Table.tsx
263
+ import { Table as InnerTable } from "@oxide/react-asciidoc";
264
+ import { jsx as jsx7 } from "react/jsx-runtime";
265
+ var Table = ({ node }) => /* @__PURE__ */ jsx7("div", { className: "table-wrapper", children: /* @__PURE__ */ jsx7(InnerTable, { node }) });
266
+ var Table_default = Table;
267
+
268
+ // components/src/asciidoc/TableOfContents.tsx
269
+ import * as Accordion from "@radix-ui/react-accordion";
270
+ import { Link } from "@remix-run/react";
271
+ import cn3 from "classnames";
272
+ import { Fragment as Fragment2, useCallback, useEffect, useMemo, useRef, useState } from "react";
273
+ import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
274
+ function useIntersectionObserver(elements, callback, options) {
275
+ const [observer, setObserver] = useState(null);
276
+ useEffect(() => {
277
+ const observer2 = new IntersectionObserver(callback, options);
278
+ setObserver(observer2);
279
+ return () => {
280
+ observer2.disconnect();
281
+ };
282
+ }, [callback, options]);
283
+ useEffect(() => {
284
+ if (observer) {
285
+ for (const element of elements) {
286
+ observer.observe(element);
287
+ }
288
+ }
289
+ return () => {
290
+ if (observer) {
291
+ for (const element of elements) {
292
+ observer.unobserve(element);
293
+ }
294
+ }
295
+ };
296
+ }, [elements, observer]);
297
+ return observer;
298
+ }
299
+ var THRESHOLD = [...Array(2e3).keys()].map((n) => n / 2e3);
300
+ function isTopLevelSection(element) {
301
+ return element.classList.contains("sect1");
302
+ }
303
+ function findParentSection(element) {
304
+ const sect2Wrapper = element.closest(".sect2");
305
+ return sect2Wrapper ? sect2Wrapper : element.closest(".sect1");
306
+ }
307
+ function newSection(node, element, wrapper, parent) {
308
+ return {
309
+ node,
310
+ element,
311
+ wrapper,
312
+ parent,
313
+ children: []
314
+ };
315
+ }
316
+ function buildSectionTree(elements) {
317
+ const sections = [];
318
+ let parent = null;
319
+ for (let i = 0; i < elements.length; i++) {
320
+ const element = elements[i];
321
+ const parentWrapper = findParentSection(element);
322
+ if (parentWrapper) {
323
+ if (parentWrapper && isTopLevelSection(parentWrapper)) {
324
+ const section = newSection(i, element, parentWrapper, null);
325
+ sections.push(section);
326
+ parent = section;
327
+ } else {
328
+ if (parent === null) {
329
+ return [];
330
+ } else {
331
+ const section = newSection(i, element, parentWrapper, parent.node);
332
+ parent.children.push(i);
333
+ sections.push(section);
334
+ }
335
+ }
336
+ } else {
337
+ return [];
338
+ }
339
+ }
340
+ return sections;
341
+ }
342
+ function maxIndex(nums) {
343
+ return nums.reduce((maxIndex2, current, currentIndex) => {
344
+ const currentMax = maxIndex2 !== void 0 ? nums[maxIndex2] : 0;
345
+ return current > currentMax ? currentIndex : maxIndex2;
346
+ }, void 0);
347
+ }
348
+ function useActiveSectionTracking(initialSections, onSectionChange, debug = false) {
349
+ const [sectionWrappers, setSectionWrappers] = useState(
350
+ buildSectionTree(initialSections)
351
+ );
352
+ const sectionMeasurements = useRef([]);
353
+ const setSections = useCallback(
354
+ (sections) => {
355
+ setSectionWrappers(buildSectionTree(sections));
356
+ sectionMeasurements.current = [];
357
+ },
358
+ [setSectionWrappers]
359
+ );
360
+ const wrapperActivator = useCallback(
361
+ (entries) => {
362
+ for (const entry of entries) {
363
+ const index = sectionWrappers.findIndex((node) => node.wrapper === entry.target);
364
+ const covered = entry.intersectionRect.height / (entry.rootBounds?.height || 1);
365
+ sectionMeasurements.current[index] = covered;
366
+ }
367
+ const ownedSectionSizes = sectionWrappers.map((section) => {
368
+ const childSizes = section.children.map((c) => sectionMeasurements.current[c]).reduce((c, a) => c + a, 0);
369
+ return sectionMeasurements.current[section.node] - childSizes;
370
+ });
371
+ const activeSectionIndex = maxIndex(ownedSectionSizes);
372
+ if (activeSectionIndex !== void 0) {
373
+ onSectionChange(sectionWrappers[activeSectionIndex].element);
374
+ }
375
+ },
376
+ [sectionWrappers, onSectionChange]
377
+ );
378
+ const wrapperSettings = useMemo(
379
+ () => ({ threshold: THRESHOLD, rootMargin: `-15% 0px -70% 0px` }),
380
+ []
381
+ );
382
+ const bindableWrappers = useMemo(
383
+ () => sectionWrappers.map((s) => s.wrapper),
384
+ [sectionWrappers]
385
+ );
386
+ const sectionObserver = useIntersectionObserver(
387
+ bindableWrappers,
388
+ wrapperActivator,
389
+ wrapperSettings
390
+ );
391
+ let debugNode = null;
392
+ if (debug && sectionObserver?.root === null) {
393
+ const edges = sectionObserver.rootMargin.split(" ").map((margin) => {
394
+ if (margin.endsWith("%")) {
395
+ return parseInt(margin) * -1 + "%";
396
+ } else if (margin.endsWith("px")) {
397
+ return parseInt(margin) * -1 + "px";
398
+ } else {
399
+ return "0px";
400
+ }
401
+ });
402
+ debugNode = /* @__PURE__ */ jsx8(
403
+ "div",
404
+ {
405
+ style: {
406
+ position: "fixed",
407
+ top: edges[0],
408
+ right: edges[1],
409
+ bottom: edges[2],
410
+ left: edges[3],
411
+ background: "rgba(255, 92, 170, 0.2)",
412
+ border: "1px solid rgba(255, 92, 170)",
413
+ pointerEvents: "none",
414
+ zIndex: 500
415
+ }
416
+ }
417
+ );
418
+ }
419
+ return {
420
+ setSections,
421
+ debugNode
422
+ };
423
+ }
424
+ var DesktopOutline = ({
425
+ toc,
426
+ activeItem
427
+ }) => {
428
+ const renderToc = (sections) => {
429
+ return sections.map((item) => /* @__PURE__ */ jsxs7(Fragment2, { children: [
430
+ /* @__PURE__ */ jsx8(
431
+ "li",
432
+ {
433
+ "data-level": item.level,
434
+ className: cn3("mb-0 list-none text-sans-sm", item.level > 2 && "hidden"),
435
+ children: /* @__PURE__ */ jsx8(
436
+ Link,
437
+ {
438
+ to: `#${item.id}`,
439
+ className: cn3(
440
+ "block border-l py-[4px] pr-4",
441
+ activeItem === item.id ? "active text-accent-secondary border-accent-secondary hover:text-accent" : "text-tertiary border-secondary hover:text-secondary"
442
+ ),
443
+ style: {
444
+ paddingLeft: `${0.5 + item.level * 0.5}rem`
445
+ },
446
+ children: /* @__PURE__ */ jsx8("span", { dangerouslySetInnerHTML: { __html: item.title } })
447
+ }
448
+ )
449
+ }
450
+ ),
451
+ item.sections && renderToc(item.sections)
452
+ ] }, item.id));
453
+ };
454
+ if (toc && toc.length > 0) {
455
+ return /* @__PURE__ */ jsx8("ul", { className: "toc", children: renderToc(toc) });
456
+ }
457
+ return null;
458
+ };
459
+ var SmallScreenOutline = ({
460
+ toc,
461
+ activeItem,
462
+ title
463
+ }) => {
464
+ const renderToc = (sections) => {
465
+ return sections.map((item) => /* @__PURE__ */ jsxs7(Fragment2, { children: [
466
+ /* @__PURE__ */ jsx8(
467
+ "li",
468
+ {
469
+ "data-level": item.level,
470
+ className: cn3(
471
+ "AccordionContent hydrated list-none text-sans-sm",
472
+ item.level > 2 && "hidden"
473
+ ),
474
+ children: /* @__PURE__ */ jsx8(
475
+ Link,
476
+ {
477
+ to: `#${item.id}`,
478
+ className: cn3(
479
+ "block border-l py-[4px]",
480
+ activeItem === item.id ? "active text-accent-secondary border-accent-secondary hover:text-accent" : "text-tertiary border-secondary hover:text-secondary"
481
+ ),
482
+ style: {
483
+ paddingLeft: `${0.5 + item.level * 0.5}rem`
484
+ },
485
+ children: /* @__PURE__ */ jsx8("span", { dangerouslySetInnerHTML: { __html: item.title } })
486
+ }
487
+ )
488
+ }
489
+ ),
490
+ item.sections && renderToc(item.sections)
491
+ ] }, item.id));
492
+ };
493
+ if (toc && toc.length > 0) {
494
+ return /* @__PURE__ */ jsx8(
495
+ Accordion.Root,
496
+ {
497
+ type: "single",
498
+ className: "sticky top-[calc(var(--header-height)-1px)] z-10 -mt-px mb-10 block max-h-[calc(100vh-var(--header-height)+1px)] w-full overflow-y-scroll border-b border-t bg-default border-secondary 1200:hidden print:hidden",
499
+ collapsible: true,
500
+ children: /* @__PURE__ */ jsxs7(Accordion.Item, { value: `small-toc-${title}`, children: [
501
+ /* @__PURE__ */ jsx8(Accordion.Header, { children: /* @__PURE__ */ jsxs7(Accordion.Trigger, { className: "flex h-[--toc-header-height] w-full items-center justify-between px-4 text-sans-md text-default hover:bg-hover 400:px-6 600:px-8 [&>svg]:data-[state=open]:rotate-90", children: [
502
+ "Table of Contents",
503
+ " ",
504
+ /* @__PURE__ */ jsx8(DirectionRightIcon_default, { className: "transition-all text-tertiary" })
505
+ ] }) }),
506
+ /* @__PURE__ */ jsx8(Accordion.Content, { className: "AccordionContent hydrated w-full border-t px-4 border-secondary 400:px-6 600:px-8", children: /* @__PURE__ */ jsx8("div", { className: "py-4", children: renderToc(toc) }) })
507
+ ] })
508
+ }
509
+ );
510
+ }
511
+ return null;
512
+ };
513
+
514
+ // components/src/asciidoc/util.ts
515
+ import asciidoctor from "@asciidoctor/core";
516
+ import {
517
+ prepareDocument,
518
+ processDocument
519
+ } from "@oxide/react-asciidoc";
520
+ import {
521
+ bundledLanguages,
522
+ getHighlighter
523
+ } from "shiki";
524
+
525
+ // components/src/asciidoc/langs/oxql.tmLanguage.json
526
+ var oxql_tmLanguage_default = {
527
+ $schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
528
+ name: "oxql",
529
+ repository: {
530
+ keywords: {
531
+ patterns: [
532
+ {
533
+ name: "keyword.control.oxql",
534
+ match: "\\b(if|while|for|return)\\b"
535
+ }
536
+ ]
537
+ },
538
+ strings: {
539
+ name: "string.quoted.double.oxql",
540
+ begin: '"',
541
+ end: '"',
542
+ patterns: [
543
+ {
544
+ name: "constant.character.escape.oxql",
545
+ match: "\\\\."
546
+ }
547
+ ]
548
+ }
549
+ },
550
+ scopeName: "source.oxql",
551
+ patterns: [
552
+ {
553
+ name: "keyword.control.oxql",
554
+ match: "\\b(get|join|align|filter|group_by)\\b"
555
+ },
556
+ {
557
+ name: "string.quoted.double.oxql",
558
+ begin: '"',
559
+ end: '"',
560
+ patterns: [
561
+ {
562
+ name: "constant.character.escape.oxql",
563
+ match: "\\\\."
564
+ }
565
+ ]
566
+ },
567
+ {
568
+ name: "constant.numeric.oxql",
569
+ match: "\\b\\d+[smhdw]\\b"
570
+ },
571
+ {
572
+ name: "constant.numeric.datetime.oxql",
573
+ match: "@\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}"
574
+ },
575
+ {
576
+ name: "constant.numeric.function.oxql",
577
+ match: "@now\\(\\)"
578
+ },
579
+ {
580
+ name: "constant.numeric.oxql",
581
+ match: "\\b\\d+\\b"
582
+ },
583
+ {
584
+ name: "comment.block.oxql",
585
+ begin: "/\\*",
586
+ end: "\\*/"
587
+ },
588
+ {
589
+ name: "comment.line.double-slash.oxql",
590
+ match: "//.*$"
591
+ },
592
+ {
593
+ name: "keyword.operator.oxql",
594
+ match: "\\|"
595
+ }
596
+ ]
597
+ };
598
+
599
+ // components/src/asciidoc/oxide-dark.json
600
+ var oxide_dark_default = {
601
+ name: "Oxide Dark",
602
+ colors: {
603
+ "editor.background": "#080F11",
604
+ "editor.foreground": "#E7E7E8"
605
+ },
606
+ tokenColors: [
607
+ {
608
+ scope: [
609
+ "text",
610
+ "source",
611
+ "variable.other.readwrite",
612
+ "punctuation.definition.variable"
613
+ ],
614
+ settings: {
615
+ foreground: "#E7E7E8"
616
+ }
617
+ },
618
+ {
619
+ scope: "punctuation",
620
+ settings: {
621
+ foreground: "#A1A4A5",
622
+ fontStyle: ""
623
+ }
624
+ },
625
+ {
626
+ scope: ["comment", "punctuation.definition.comment"],
627
+ settings: {
628
+ foreground: "#A1A4A5"
629
+ }
630
+ },
631
+ {
632
+ scope: ["string", "punctuation.definition.string"],
633
+ settings: {
634
+ foreground: "#68D9A7"
635
+ }
636
+ },
637
+ {
638
+ scope: "constant.character.escape",
639
+ settings: {
640
+ foreground: "#EFB7C2"
641
+ }
642
+ },
643
+ {
644
+ scope: [
645
+ "constant.numeric",
646
+ "variable.other.constant",
647
+ "entity.name.constant",
648
+ "constant.language.boolean",
649
+ "constant.language.false",
650
+ "constant.language.true",
651
+ "keyword.other.unit.user-defined",
652
+ "keyword.other.unit.suffix.floating-point"
653
+ ],
654
+ settings: {
655
+ foreground: "#EDD5A6"
656
+ }
657
+ },
658
+ {
659
+ scope: [
660
+ "keyword",
661
+ "keyword.operator.word",
662
+ "keyword.operator.new",
663
+ "variable.language.super",
664
+ "support.type.primitive",
665
+ "storage.type",
666
+ "storage.modifier",
667
+ "punctuation.definition.keyword"
668
+ ],
669
+ settings: {
670
+ foreground: "#C6A5EA",
671
+ fontStyle: ""
672
+ }
673
+ },
674
+ {
675
+ scope: "entity.name.tag.documentation",
676
+ settings: {
677
+ foreground: "#C6A5EA"
678
+ }
679
+ },
680
+ {
681
+ scope: [
682
+ "keyword.operator",
683
+ "punctuation.accessor",
684
+ "punctuation.definition.generic",
685
+ "meta.function.closure punctuation.section.parameters",
686
+ "punctuation.definition.tag",
687
+ "punctuation.separator.key-value"
688
+ ],
689
+ settings: {
690
+ foreground: "#A7E0C8"
691
+ }
692
+ },
693
+ {
694
+ scope: [
695
+ "entity.name.function",
696
+ "meta.function-call.method",
697
+ "support.function",
698
+ "support.function.misc",
699
+ "variable.function"
700
+ ],
701
+ settings: {
702
+ foreground: "#9DAFFA"
703
+ }
704
+ },
705
+ {
706
+ scope: [
707
+ "entity.name.class",
708
+ "entity.other.inherited-class",
709
+ "support.class",
710
+ "meta.function-call.constructor",
711
+ "entity.name.struct"
712
+ ],
713
+ settings: {
714
+ foreground: "#EDD5A6"
715
+ }
716
+ },
717
+ {
718
+ scope: "entity.name.enum",
719
+ settings: {
720
+ foreground: "#EDD5A6"
721
+ }
722
+ },
723
+ {
724
+ scope: ["meta.enum variable.other.readwrite", "variable.other.enummember"],
725
+ settings: {
726
+ foreground: "#A7E0C8"
727
+ }
728
+ },
729
+ {
730
+ scope: "meta.property.object",
731
+ settings: {
732
+ foreground: "#A7E0C8"
733
+ }
734
+ },
735
+ {
736
+ scope: ["meta.type", "meta.type-alias", "support.type", "entity.name.type"],
737
+ settings: {
738
+ foreground: "#EDD5A6"
739
+ }
740
+ },
741
+ {
742
+ scope: [
743
+ "meta.annotation variable.function",
744
+ "meta.annotation variable.annotation.function",
745
+ "meta.annotation punctuation.definition.annotation",
746
+ "meta.decorator",
747
+ "punctuation.decorator"
748
+ ],
749
+ settings: {
750
+ foreground: "#EDD5A6"
751
+ }
752
+ },
753
+ {
754
+ scope: ["variable.parameter", "meta.function.parameters"],
755
+ settings: {
756
+ foreground: "#F39EAE"
757
+ }
758
+ },
759
+ {
760
+ scope: ["constant.language", "support.function.builtin"],
761
+ settings: {
762
+ foreground: "#F7869B"
763
+ }
764
+ },
765
+ {
766
+ scope: "entity.other.attribute-name.documentation",
767
+ settings: {
768
+ foreground: "#F7869B"
769
+ }
770
+ },
771
+ {
772
+ scope: ["keyword.control.directive", "punctuation.definition.directive"],
773
+ settings: {
774
+ foreground: "#EDD5A6"
775
+ }
776
+ },
777
+ {
778
+ scope: "punctuation.definition.typeparameters",
779
+ settings: {
780
+ foreground: "#9DAFFA"
781
+ }
782
+ },
783
+ {
784
+ scope: "entity.name.namespace",
785
+ settings: {
786
+ foreground: "#EDD5A6"
787
+ }
788
+ },
789
+ {
790
+ scope: "support.type.property-name.css",
791
+ settings: {
792
+ foreground: "#9DAFFA",
793
+ fontStyle: ""
794
+ }
795
+ },
796
+ {
797
+ scope: [
798
+ "variable.language.this",
799
+ "variable.language.this punctuation.definition.variable"
800
+ ],
801
+ settings: {
802
+ foreground: "#F7869B"
803
+ }
804
+ },
805
+ {
806
+ scope: "variable.object.property",
807
+ settings: {
808
+ foreground: "#E7E7E8"
809
+ }
810
+ },
811
+ {
812
+ scope: ["string.template variable", "string variable"],
813
+ settings: {
814
+ foreground: "#E7E7E8"
815
+ }
816
+ },
817
+ {
818
+ scope: "keyword.operator.new",
819
+ settings: {
820
+ fontStyle: "bold"
821
+ }
822
+ },
823
+ {
824
+ scope: "storage.modifier.specifier.extern.cpp",
825
+ settings: {
826
+ foreground: "#C6A5EA"
827
+ }
828
+ },
829
+ {
830
+ scope: [
831
+ "entity.name.scope-resolution.template.call.cpp",
832
+ "entity.name.scope-resolution.parameter.cpp",
833
+ "entity.name.scope-resolution.cpp",
834
+ "entity.name.scope-resolution.function.definition.cpp"
835
+ ],
836
+ settings: {
837
+ foreground: "#EDD5A6"
838
+ }
839
+ },
840
+ {
841
+ scope: "storage.type.class.doxygen",
842
+ settings: {
843
+ fontStyle: ""
844
+ }
845
+ },
846
+ {
847
+ scope: ["storage.modifier.reference.cpp"],
848
+ settings: {
849
+ foreground: "#A7E0C8"
850
+ }
851
+ },
852
+ {
853
+ scope: "meta.interpolation.cs",
854
+ settings: {
855
+ foreground: "#E7E7E8"
856
+ }
857
+ },
858
+ {
859
+ scope: "comment.block.documentation.cs",
860
+ settings: {
861
+ foreground: "#E7E7E8"
862
+ }
863
+ },
864
+ {
865
+ scope: [
866
+ "source.css entity.other.attribute-name.class.css",
867
+ "entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css"
868
+ ],
869
+ settings: {
870
+ foreground: "#EDD5A6"
871
+ }
872
+ },
873
+ {
874
+ scope: "punctuation.separator.operator.css",
875
+ settings: {
876
+ foreground: "#A7E0C8"
877
+ }
878
+ },
879
+ {
880
+ scope: "source.css entity.other.attribute-name.pseudo-class",
881
+ settings: {
882
+ foreground: "#A7E0C8"
883
+ }
884
+ },
885
+ {
886
+ scope: "source.css constant.other.unicode-range",
887
+ settings: {
888
+ foreground: "#EDD5A6"
889
+ }
890
+ },
891
+ {
892
+ scope: "source.css variable.parameter.url",
893
+ settings: {
894
+ foreground: "#88DCB7",
895
+ fontStyle: ""
896
+ }
897
+ },
898
+ {
899
+ scope: ["support.type.vendored.property-name"],
900
+ settings: {
901
+ foreground: "#9DAFFA"
902
+ }
903
+ },
904
+ {
905
+ scope: [
906
+ "source.css meta.property-value variable",
907
+ "source.css meta.property-value variable.other.less",
908
+ "source.css meta.property-value variable.other.less punctuation.definition.variable.less",
909
+ "meta.definition.variable.scss"
910
+ ],
911
+ settings: {
912
+ foreground: "#F39EAE"
913
+ }
914
+ },
915
+ {
916
+ scope: [
917
+ "source.css meta.property-list variable",
918
+ "meta.property-list variable.other.less",
919
+ "meta.property-list variable.other.less punctuation.definition.variable.less"
920
+ ],
921
+ settings: {
922
+ foreground: "#9DAFFA"
923
+ }
924
+ },
925
+ {
926
+ scope: "keyword.other.unit.percentage.css",
927
+ settings: {
928
+ foreground: "#EDD5A6"
929
+ }
930
+ },
931
+ {
932
+ scope: "source.css meta.attribute-selector",
933
+ settings: {
934
+ foreground: "#88DCB7"
935
+ }
936
+ },
937
+ {
938
+ scope: [
939
+ "keyword.other.definition.ini",
940
+ "punctuation.support.type.property-name.json",
941
+ "support.type.property-name.json",
942
+ "punctuation.support.type.property-name.toml",
943
+ "support.type.property-name.toml",
944
+ "entity.name.tag.yaml",
945
+ "punctuation.support.type.property-name.yaml",
946
+ "support.type.property-name.yaml"
947
+ ],
948
+ settings: {
949
+ foreground: "#9DAFFA",
950
+ fontStyle: ""
951
+ }
952
+ },
953
+ {
954
+ scope: ["constant.language.json", "constant.language.yaml"],
955
+ settings: {
956
+ foreground: "#EDD5A6"
957
+ }
958
+ },
959
+ {
960
+ scope: ["entity.name.type.anchor.yaml", "variable.other.alias.yaml"],
961
+ settings: {
962
+ foreground: "#EDD5A6",
963
+ fontStyle: ""
964
+ }
965
+ },
966
+ {
967
+ scope: ["support.type.property-name.table", "entity.name.section.group-title.ini"],
968
+ settings: {
969
+ foreground: "#EDD5A6"
970
+ }
971
+ },
972
+ {
973
+ scope: "constant.other.time.datetime.offset.toml",
974
+ settings: {
975
+ foreground: "#EFB7C2"
976
+ }
977
+ },
978
+ {
979
+ scope: ["punctuation.definition.anchor.yaml", "punctuation.definition.alias.yaml"],
980
+ settings: {
981
+ foreground: "#EFB7C2"
982
+ }
983
+ },
984
+ {
985
+ scope: "entity.other.document.begin.yaml",
986
+ settings: {
987
+ foreground: "#EFB7C2"
988
+ }
989
+ },
990
+ {
991
+ scope: "markup.changed.diff",
992
+ settings: {
993
+ foreground: "#EDD5A6"
994
+ }
995
+ },
996
+ {
997
+ scope: [
998
+ "meta.diff.header.from-file",
999
+ "meta.diff.header.to-file",
1000
+ "punctuation.definition.from-file.diff",
1001
+ "punctuation.definition.to-file.diff"
1002
+ ],
1003
+ settings: {
1004
+ foreground: "#9DAFFA"
1005
+ }
1006
+ },
1007
+ {
1008
+ scope: "markup.inserted.diff",
1009
+ settings: {
1010
+ foreground: "#88DCB7"
1011
+ }
1012
+ },
1013
+ {
1014
+ scope: "markup.deleted.diff",
1015
+ settings: {
1016
+ foreground: "#F7869B"
1017
+ }
1018
+ },
1019
+ {
1020
+ scope: ["variable.other.env"],
1021
+ settings: {
1022
+ foreground: "#9DAFFA"
1023
+ }
1024
+ },
1025
+ {
1026
+ scope: ["string.quoted variable.other.env"],
1027
+ settings: {
1028
+ foreground: "#E7E7E8"
1029
+ }
1030
+ },
1031
+ {
1032
+ scope: "support.function.builtin.gdscript",
1033
+ settings: {
1034
+ foreground: "#9DAFFA"
1035
+ }
1036
+ },
1037
+ {
1038
+ scope: "constant.language.gdscript",
1039
+ settings: {
1040
+ foreground: "#EDD5A6"
1041
+ }
1042
+ },
1043
+ {
1044
+ scope: "comment meta.annotation.go",
1045
+ settings: {
1046
+ foreground: "#F39EAE"
1047
+ }
1048
+ },
1049
+ {
1050
+ scope: "comment meta.annotation.parameters.go",
1051
+ settings: {
1052
+ foreground: "#EDD5A6"
1053
+ }
1054
+ },
1055
+ {
1056
+ scope: "constant.language.go",
1057
+ settings: {
1058
+ foreground: "#EDD5A6"
1059
+ }
1060
+ },
1061
+ {
1062
+ scope: "variable.graphql",
1063
+ settings: {
1064
+ foreground: "#E7E7E8"
1065
+ }
1066
+ },
1067
+ {
1068
+ scope: "string.unquoted.alias.graphql",
1069
+ settings: {
1070
+ foreground: "#F2CDCD"
1071
+ }
1072
+ },
1073
+ {
1074
+ scope: "constant.character.enum.graphql",
1075
+ settings: {
1076
+ foreground: "#A7E0C8"
1077
+ }
1078
+ },
1079
+ {
1080
+ scope: "meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql",
1081
+ settings: {
1082
+ foreground: "#F2CDCD"
1083
+ }
1084
+ },
1085
+ {
1086
+ scope: [
1087
+ "keyword.other.doctype",
1088
+ "meta.tag.sgml.doctype punctuation.definition.tag",
1089
+ "meta.tag.metadata.doctype entity.name.tag",
1090
+ "meta.tag.metadata.doctype punctuation.definition.tag"
1091
+ ],
1092
+ settings: {
1093
+ foreground: "#C6A5EA"
1094
+ }
1095
+ },
1096
+ {
1097
+ scope: ["entity.name.tag"],
1098
+ settings: {
1099
+ foreground: "#9DAFFA",
1100
+ fontStyle: ""
1101
+ }
1102
+ },
1103
+ {
1104
+ scope: [
1105
+ "text.html constant.character.entity",
1106
+ "text.html constant.character.entity punctuation",
1107
+ "constant.character.entity.xml",
1108
+ "constant.character.entity.xml punctuation",
1109
+ "constant.character.entity.js.jsx",
1110
+ "constant.charactger.entity.js.jsx punctuation",
1111
+ "constant.character.entity.tsx",
1112
+ "constant.character.entity.tsx punctuation"
1113
+ ],
1114
+ settings: {
1115
+ foreground: "#F7869B"
1116
+ }
1117
+ },
1118
+ {
1119
+ scope: ["entity.other.attribute-name"],
1120
+ settings: {
1121
+ foreground: "#EDD5A6"
1122
+ }
1123
+ },
1124
+ {
1125
+ scope: [
1126
+ "support.class.component",
1127
+ "support.class.component.jsx",
1128
+ "support.class.component.tsx",
1129
+ "support.class.component.vue"
1130
+ ],
1131
+ settings: {
1132
+ foreground: "#EFB7C2",
1133
+ fontStyle: ""
1134
+ }
1135
+ },
1136
+ {
1137
+ scope: ["punctuation.definition.annotation", "storage.type.annotation"],
1138
+ settings: {
1139
+ foreground: "#EDD5A6"
1140
+ }
1141
+ },
1142
+ {
1143
+ scope: "constant.other.enum.java",
1144
+ settings: {
1145
+ foreground: "#A7E0C8"
1146
+ }
1147
+ },
1148
+ {
1149
+ scope: "storage.modifier.import.java",
1150
+ settings: {
1151
+ foreground: "#E7E7E8"
1152
+ }
1153
+ },
1154
+ {
1155
+ scope: "comment.block.javadoc.java keyword.other.documentation.javadoc.java",
1156
+ settings: {
1157
+ fontStyle: ""
1158
+ }
1159
+ },
1160
+ {
1161
+ scope: "meta.export variable.other.readwrite.js",
1162
+ settings: {
1163
+ foreground: "#F39EAE"
1164
+ }
1165
+ },
1166
+ {
1167
+ scope: [
1168
+ "variable.other.constant.js",
1169
+ "variable.other.constant.ts",
1170
+ "variable.other.property.js",
1171
+ "variable.other.property.ts"
1172
+ ],
1173
+ settings: {
1174
+ foreground: "#E7E7E8"
1175
+ }
1176
+ },
1177
+ {
1178
+ scope: ["variable.other.jsdoc", "comment.block.documentation variable.other"],
1179
+ settings: {
1180
+ foreground: "#F39EAE",
1181
+ fontStyle: ""
1182
+ }
1183
+ },
1184
+ {
1185
+ scope: "storage.type.class.jsdoc",
1186
+ settings: {
1187
+ fontStyle: ""
1188
+ }
1189
+ },
1190
+ {
1191
+ scope: "support.type.object.console.js",
1192
+ settings: {
1193
+ foreground: "#E7E7E8"
1194
+ }
1195
+ },
1196
+ {
1197
+ scope: ["support.constant.node", "support.type.object.module.js"],
1198
+ settings: {
1199
+ foreground: "#C6A5EA"
1200
+ }
1201
+ },
1202
+ {
1203
+ scope: "storage.modifier.implements",
1204
+ settings: {
1205
+ foreground: "#C6A5EA"
1206
+ }
1207
+ },
1208
+ {
1209
+ scope: [
1210
+ "constant.language.null.js",
1211
+ "constant.language.null.ts",
1212
+ "constant.language.undefined.js",
1213
+ "constant.language.undefined.ts",
1214
+ "support.type.builtin.ts"
1215
+ ],
1216
+ settings: {
1217
+ foreground: "#C6A5EA"
1218
+ }
1219
+ },
1220
+ {
1221
+ scope: "variable.parameter.generic",
1222
+ settings: {
1223
+ foreground: "#EDD5A6"
1224
+ }
1225
+ },
1226
+ {
1227
+ scope: ["keyword.declaration.function.arrow.js", "storage.type.function.arrow.ts"],
1228
+ settings: {
1229
+ foreground: "#A7E0C8"
1230
+ }
1231
+ },
1232
+ {
1233
+ scope: "punctuation.decorator.ts",
1234
+ settings: {
1235
+ foreground: "#9DAFFA"
1236
+ }
1237
+ },
1238
+ {
1239
+ scope: [
1240
+ "keyword.operator.expression.in.js",
1241
+ "keyword.operator.expression.in.ts",
1242
+ "keyword.operator.expression.infer.ts",
1243
+ "keyword.operator.expression.instanceof.js",
1244
+ "keyword.operator.expression.instanceof.ts",
1245
+ "keyword.operator.expression.is",
1246
+ "keyword.operator.expression.keyof.ts",
1247
+ "keyword.operator.expression.of.js",
1248
+ "keyword.operator.expression.of.ts",
1249
+ "keyword.operator.expression.typeof.ts"
1250
+ ],
1251
+ settings: {
1252
+ foreground: "#C6A5EA"
1253
+ }
1254
+ },
1255
+ {
1256
+ scope: "support.function.macro.julia",
1257
+ settings: {
1258
+ foreground: "#A7E0C8"
1259
+ }
1260
+ },
1261
+ {
1262
+ scope: "constant.language.julia",
1263
+ settings: {
1264
+ foreground: "#EDD5A6"
1265
+ }
1266
+ },
1267
+ {
1268
+ scope: "constant.other.symbol.julia",
1269
+ settings: {
1270
+ foreground: "#F39EAE"
1271
+ }
1272
+ },
1273
+ {
1274
+ scope: "text.tex keyword.control.preamble",
1275
+ settings: {
1276
+ foreground: "#A7E0C8"
1277
+ }
1278
+ },
1279
+ {
1280
+ scope: "text.tex support.function.be",
1281
+ settings: {
1282
+ foreground: "#9DAFFA"
1283
+ }
1284
+ },
1285
+ {
1286
+ scope: "constant.other.general.math.tex",
1287
+ settings: {
1288
+ foreground: "#F2CDCD"
1289
+ }
1290
+ },
1291
+ {
1292
+ scope: "comment.line.double-dash.documentation.lua storage.type.annotation.lua",
1293
+ settings: {
1294
+ foreground: "#C6A5EA",
1295
+ fontStyle: ""
1296
+ }
1297
+ },
1298
+ {
1299
+ scope: [
1300
+ "comment.line.double-dash.documentation.lua entity.name.variable.lua",
1301
+ "comment.line.double-dash.documentation.lua variable.lua"
1302
+ ],
1303
+ settings: {
1304
+ foreground: "#E7E7E8"
1305
+ }
1306
+ },
1307
+ {
1308
+ scope: [
1309
+ "heading.1.markdown punctuation.definition.heading.markdown",
1310
+ "heading.1.markdown",
1311
+ "heading.1.quarto punctuation.definition.heading.quarto",
1312
+ "heading.1.quarto",
1313
+ "markup.heading.atx.1.mdx",
1314
+ "markup.heading.atx.1.mdx punctuation.definition.heading.mdx",
1315
+ "markup.heading.setext.1.markdown",
1316
+ "markup.heading.heading-0.asciidoc"
1317
+ ],
1318
+ settings: {
1319
+ foreground: "#F7869B"
1320
+ }
1321
+ },
1322
+ {
1323
+ scope: [
1324
+ "heading.2.markdown punctuation.definition.heading.markdown",
1325
+ "heading.2.markdown",
1326
+ "heading.2.quarto punctuation.definition.heading.quarto",
1327
+ "heading.2.quarto",
1328
+ "markup.heading.atx.2.mdx",
1329
+ "markup.heading.atx.2.mdx punctuation.definition.heading.mdx",
1330
+ "markup.heading.setext.2.markdown",
1331
+ "markup.heading.heading-1.asciidoc"
1332
+ ],
1333
+ settings: {
1334
+ foreground: "#EDD5A6"
1335
+ }
1336
+ },
1337
+ {
1338
+ scope: [
1339
+ "heading.3.markdown punctuation.definition.heading.markdown",
1340
+ "heading.3.markdown",
1341
+ "heading.3.quarto punctuation.definition.heading.quarto",
1342
+ "heading.3.quarto",
1343
+ "markup.heading.atx.3.mdx",
1344
+ "markup.heading.atx.3.mdx punctuation.definition.heading.mdx",
1345
+ "markup.heading.heading-2.asciidoc"
1346
+ ],
1347
+ settings: {
1348
+ foreground: "#EDD5A6"
1349
+ }
1350
+ },
1351
+ {
1352
+ scope: [
1353
+ "heading.4.markdown punctuation.definition.heading.markdown",
1354
+ "heading.4.markdown",
1355
+ "heading.4.quarto punctuation.definition.heading.quarto",
1356
+ "heading.4.quarto",
1357
+ "markup.heading.atx.4.mdx",
1358
+ "markup.heading.atx.4.mdx punctuation.definition.heading.mdx",
1359
+ "markup.heading.heading-3.asciidoc"
1360
+ ],
1361
+ settings: {
1362
+ foreground: "#88DCB7"
1363
+ }
1364
+ },
1365
+ {
1366
+ scope: [
1367
+ "heading.5.markdown punctuation.definition.heading.markdown",
1368
+ "heading.5.markdown",
1369
+ "heading.5.quarto punctuation.definition.heading.quarto",
1370
+ "heading.5.quarto",
1371
+ "markup.heading.atx.5.mdx",
1372
+ "markup.heading.atx.5.mdx punctuation.definition.heading.mdx",
1373
+ "markup.heading.heading-4.asciidoc"
1374
+ ],
1375
+ settings: {
1376
+ foreground: "#9DAFFA"
1377
+ }
1378
+ },
1379
+ {
1380
+ scope: [
1381
+ "heading.6.markdown punctuation.definition.heading.markdown",
1382
+ "heading.6.markdown",
1383
+ "heading.6.quarto punctuation.definition.heading.quarto",
1384
+ "heading.6.quarto",
1385
+ "markup.heading.atx.6.mdx",
1386
+ "markup.heading.atx.6.mdx punctuation.definition.heading.mdx",
1387
+ "markup.heading.heading-5.asciidoc"
1388
+ ],
1389
+ settings: {
1390
+ foreground: "#C6A5EA"
1391
+ }
1392
+ },
1393
+ {
1394
+ scope: "markup.bold",
1395
+ settings: {
1396
+ foreground: "#F7869B",
1397
+ fontStyle: "bold"
1398
+ }
1399
+ },
1400
+ {
1401
+ scope: "markup.italic",
1402
+ settings: {
1403
+ foreground: "#F7869B"
1404
+ }
1405
+ },
1406
+ {
1407
+ scope: "markup.strikethrough",
1408
+ settings: {
1409
+ foreground: "#A6ADC8",
1410
+ fontStyle: "strikethrough"
1411
+ }
1412
+ },
1413
+ {
1414
+ scope: ["punctuation.definition.link", "markup.underline.link"],
1415
+ settings: {
1416
+ foreground: "#9DAFFA"
1417
+ }
1418
+ },
1419
+ {
1420
+ scope: [
1421
+ "text.html.markdown punctuation.definition.link.title",
1422
+ "text.html.quarto punctuation.definition.link.title",
1423
+ "string.other.link.title.markdown",
1424
+ "string.other.link.title.quarto",
1425
+ "markup.link",
1426
+ "punctuation.definition.constant.markdown",
1427
+ "punctuation.definition.constant.quarto",
1428
+ "constant.other.reference.link.markdown",
1429
+ "constant.other.reference.link.quarto",
1430
+ "markup.substitution.attribute-reference"
1431
+ ],
1432
+ settings: {
1433
+ foreground: "#B4BEFE"
1434
+ }
1435
+ },
1436
+ {
1437
+ scope: [
1438
+ "punctuation.definition.raw.markdown",
1439
+ "punctuation.definition.raw.quarto",
1440
+ "markup.inline.raw.string.markdown",
1441
+ "markup.inline.raw.string.quarto",
1442
+ "markup.raw.block.markdown",
1443
+ "markup.raw.block.quarto"
1444
+ ],
1445
+ settings: {
1446
+ foreground: "#88DCB7"
1447
+ }
1448
+ },
1449
+ {
1450
+ scope: "fenced_code.block.language",
1451
+ settings: {
1452
+ foreground: "#9DAFFA"
1453
+ }
1454
+ },
1455
+ {
1456
+ scope: [
1457
+ "markup.fenced_code.block punctuation.definition",
1458
+ "markup.raw support.asciidoc"
1459
+ ],
1460
+ settings: {
1461
+ foreground: "#A1A4A5"
1462
+ }
1463
+ },
1464
+ {
1465
+ scope: ["markup.quote", "punctuation.definition.quote.begin"],
1466
+ settings: {
1467
+ foreground: "#EFB7C2"
1468
+ }
1469
+ },
1470
+ {
1471
+ scope: "meta.separator.markdown",
1472
+ settings: {
1473
+ foreground: "#A7E0C8"
1474
+ }
1475
+ },
1476
+ {
1477
+ scope: [
1478
+ "punctuation.definition.list.begin.markdown",
1479
+ "punctuation.definition.list.begin.quarto",
1480
+ "markup.list.bullet"
1481
+ ],
1482
+ settings: {
1483
+ foreground: "#A7E0C8"
1484
+ }
1485
+ },
1486
+ {
1487
+ scope: "markup.heading.quarto",
1488
+ settings: {
1489
+ fontStyle: "bold"
1490
+ }
1491
+ },
1492
+ {
1493
+ scope: [
1494
+ "entity.other.attribute-name.multipart.nix",
1495
+ "entity.other.attribute-name.single.nix"
1496
+ ],
1497
+ settings: {
1498
+ foreground: "#9DAFFA"
1499
+ }
1500
+ },
1501
+ {
1502
+ scope: "variable.parameter.name.nix",
1503
+ settings: {
1504
+ foreground: "#E7E7E8",
1505
+ fontStyle: ""
1506
+ }
1507
+ },
1508
+ {
1509
+ scope: "meta.embedded variable.parameter.name.nix",
1510
+ settings: {
1511
+ foreground: "#B4BEFE",
1512
+ fontStyle: ""
1513
+ }
1514
+ },
1515
+ {
1516
+ scope: "string.unquoted.path.nix",
1517
+ settings: {
1518
+ foreground: "#EFB7C2",
1519
+ fontStyle: ""
1520
+ }
1521
+ },
1522
+ {
1523
+ scope: ["support.attribute.builtin", "meta.attribute.php"],
1524
+ settings: {
1525
+ foreground: "#EDD5A6"
1526
+ }
1527
+ },
1528
+ {
1529
+ scope: "meta.function.parameters.php punctuation.definition.variable.php",
1530
+ settings: {
1531
+ foreground: "#F39EAE"
1532
+ }
1533
+ },
1534
+ {
1535
+ scope: "constant.language.php",
1536
+ settings: {
1537
+ foreground: "#C6A5EA"
1538
+ }
1539
+ },
1540
+ {
1541
+ scope: "text.html.php support.function",
1542
+ settings: {
1543
+ foreground: "#9DAFFA"
1544
+ }
1545
+ },
1546
+ {
1547
+ scope: "keyword.other.phpdoc.php",
1548
+ settings: {
1549
+ fontStyle: ""
1550
+ }
1551
+ },
1552
+ {
1553
+ scope: ["support.variable.magic.python", "meta.function-call.arguments.python"],
1554
+ settings: {
1555
+ foreground: "#E7E7E8"
1556
+ }
1557
+ },
1558
+ {
1559
+ scope: ["support.function.magic.python"],
1560
+ settings: {
1561
+ foreground: "#9DAFFA"
1562
+ }
1563
+ },
1564
+ {
1565
+ scope: [
1566
+ "variable.parameter.function.language.special.self.python",
1567
+ "variable.language.special.self.python"
1568
+ ],
1569
+ settings: {
1570
+ foreground: "#F7869B"
1571
+ }
1572
+ },
1573
+ {
1574
+ scope: ["keyword.control.flow.python", "keyword.operator.logical.python"],
1575
+ settings: {
1576
+ foreground: "#C6A5EA"
1577
+ }
1578
+ },
1579
+ {
1580
+ scope: "storage.type.function.python",
1581
+ settings: {
1582
+ foreground: "#C6A5EA"
1583
+ }
1584
+ },
1585
+ {
1586
+ scope: [
1587
+ "support.token.decorator.python",
1588
+ "meta.function.decorator.identifier.python"
1589
+ ],
1590
+ settings: {
1591
+ foreground: "#9DAFFA"
1592
+ }
1593
+ },
1594
+ {
1595
+ scope: ["meta.function-call.python"],
1596
+ settings: {
1597
+ foreground: "#9DAFFA"
1598
+ }
1599
+ },
1600
+ {
1601
+ scope: [
1602
+ "entity.name.function.decorator.python",
1603
+ "punctuation.definition.decorator.python"
1604
+ ],
1605
+ settings: {
1606
+ foreground: "#EDD5A6"
1607
+ }
1608
+ },
1609
+ {
1610
+ scope: "constant.character.format.placeholder.other.python",
1611
+ settings: {
1612
+ foreground: "#EFB7C2"
1613
+ }
1614
+ },
1615
+ {
1616
+ scope: ["support.type.exception.python", "support.function.builtin.python"],
1617
+ settings: {
1618
+ foreground: "#EDD5A6"
1619
+ }
1620
+ },
1621
+ {
1622
+ scope: ["support.type.python"],
1623
+ settings: {
1624
+ foreground: "#EDD5A6"
1625
+ }
1626
+ },
1627
+ {
1628
+ scope: "constant.language.python",
1629
+ settings: {
1630
+ foreground: "#C6A5EA"
1631
+ }
1632
+ },
1633
+ {
1634
+ scope: ["meta.indexed-name.python", "meta.item-access.python"],
1635
+ settings: {
1636
+ foreground: "#F39EAE"
1637
+ }
1638
+ },
1639
+ {
1640
+ scope: "storage.type.string.python",
1641
+ settings: {
1642
+ foreground: "#88DCB7"
1643
+ }
1644
+ },
1645
+ {
1646
+ scope: "meta.function.parameters.python",
1647
+ settings: {
1648
+ fontStyle: ""
1649
+ }
1650
+ },
1651
+ {
1652
+ scope: [
1653
+ "string.regexp punctuation.definition.string.begin",
1654
+ "string.regexp punctuation.definition.string.end"
1655
+ ],
1656
+ settings: {
1657
+ foreground: "#EFB7C2"
1658
+ }
1659
+ },
1660
+ {
1661
+ scope: "keyword.control.anchor.regexp",
1662
+ settings: {
1663
+ foreground: "#C6A5EA"
1664
+ }
1665
+ },
1666
+ {
1667
+ scope: "string.regexp.ts",
1668
+ settings: {
1669
+ foreground: "#E7E7E8"
1670
+ }
1671
+ },
1672
+ {
1673
+ scope: [
1674
+ "punctuation.definition.group.regexp",
1675
+ "keyword.other.back-reference.regexp"
1676
+ ],
1677
+ settings: {
1678
+ foreground: "#88DCB7"
1679
+ }
1680
+ },
1681
+ {
1682
+ scope: "punctuation.definition.character-class.regexp",
1683
+ settings: {
1684
+ foreground: "#EDD5A6"
1685
+ }
1686
+ },
1687
+ {
1688
+ scope: "constant.other.character-class.regexp",
1689
+ settings: {
1690
+ foreground: "#EFB7C2"
1691
+ }
1692
+ },
1693
+ {
1694
+ scope: "constant.other.character-class.range.regexp",
1695
+ settings: {
1696
+ foreground: "#F5E0DC"
1697
+ }
1698
+ },
1699
+ {
1700
+ scope: "keyword.operator.quantifier.regexp",
1701
+ settings: {
1702
+ foreground: "#A7E0C8"
1703
+ }
1704
+ },
1705
+ {
1706
+ scope: "constant.character.numeric.regexp",
1707
+ settings: {
1708
+ foreground: "#EDD5A6"
1709
+ }
1710
+ },
1711
+ {
1712
+ scope: [
1713
+ "punctuation.definition.group.no-capture.regexp",
1714
+ "meta.assertion.look-ahead.regexp",
1715
+ "meta.assertion.negative-look-ahead.regexp"
1716
+ ],
1717
+ settings: {
1718
+ foreground: "#9DAFFA"
1719
+ }
1720
+ },
1721
+ {
1722
+ scope: [
1723
+ "meta.annotation.rust",
1724
+ "meta.annotation.rust punctuation",
1725
+ "meta.attribute.rust",
1726
+ "punctuation.definition.attribute.rust"
1727
+ ],
1728
+ settings: {
1729
+ foreground: "#EDD5A6"
1730
+ }
1731
+ },
1732
+ {
1733
+ scope: [
1734
+ "meta.attribute.rust string.quoted.double.rust",
1735
+ "meta.attribute.rust string.quoted.single.char.rust"
1736
+ ],
1737
+ settings: {
1738
+ fontStyle: ""
1739
+ }
1740
+ },
1741
+ {
1742
+ scope: [
1743
+ "entity.name.function.macro.rules.rust",
1744
+ "storage.type.module.rust",
1745
+ "storage.modifier.rust",
1746
+ "storage.type.struct.rust",
1747
+ "storage.type.enum.rust",
1748
+ "storage.type.trait.rust",
1749
+ "storage.type.union.rust",
1750
+ "storage.type.impl.rust",
1751
+ "storage.type.rust",
1752
+ "storage.type.function.rust",
1753
+ "storage.type.type.rust"
1754
+ ],
1755
+ settings: {
1756
+ foreground: "#C6A5EA",
1757
+ fontStyle: ""
1758
+ }
1759
+ },
1760
+ {
1761
+ scope: "entity.name.type.numeric.rust",
1762
+ settings: {
1763
+ foreground: "#C6A5EA",
1764
+ fontStyle: ""
1765
+ }
1766
+ },
1767
+ {
1768
+ scope: "meta.generic.rust",
1769
+ settings: {
1770
+ foreground: "#EDD5A6"
1771
+ }
1772
+ },
1773
+ {
1774
+ scope: "entity.name.impl.rust",
1775
+ settings: {
1776
+ foreground: "#EDD5A6"
1777
+ }
1778
+ },
1779
+ {
1780
+ scope: "entity.name.module.rust",
1781
+ settings: {
1782
+ foreground: "#EDD5A6"
1783
+ }
1784
+ },
1785
+ {
1786
+ scope: "entity.name.trait.rust",
1787
+ settings: {
1788
+ foreground: "#EDD5A6"
1789
+ }
1790
+ },
1791
+ {
1792
+ scope: "storage.type.source.rust",
1793
+ settings: {
1794
+ foreground: "#EDD5A6"
1795
+ }
1796
+ },
1797
+ {
1798
+ scope: "entity.name.union.rust",
1799
+ settings: {
1800
+ foreground: "#EDD5A6"
1801
+ }
1802
+ },
1803
+ {
1804
+ scope: "meta.enum.rust storage.type.source.rust",
1805
+ settings: {
1806
+ foreground: "#A7E0C8"
1807
+ }
1808
+ },
1809
+ {
1810
+ scope: [
1811
+ "support.macro.rust",
1812
+ "meta.macro.rust support.function.rust",
1813
+ "entity.name.function.macro.rust"
1814
+ ],
1815
+ settings: {
1816
+ foreground: "#9DAFFA"
1817
+ }
1818
+ },
1819
+ {
1820
+ scope: ["storage.modifier.lifetime.rust", "entity.name.type.lifetime"],
1821
+ settings: {
1822
+ foreground: "#9DAFFA"
1823
+ }
1824
+ },
1825
+ {
1826
+ scope: "string.quoted.double.rust constant.other.placeholder.rust",
1827
+ settings: {
1828
+ foreground: "#EFB7C2"
1829
+ }
1830
+ },
1831
+ {
1832
+ scope: "meta.function.return-type.rust meta.generic.rust storage.type.rust",
1833
+ settings: {
1834
+ foreground: "#E7E7E8"
1835
+ }
1836
+ },
1837
+ {
1838
+ scope: "meta.function.call.rust",
1839
+ settings: {
1840
+ foreground: "#9DAFFA"
1841
+ }
1842
+ },
1843
+ {
1844
+ scope: "punctuation.brackets.angle.rust",
1845
+ settings: {
1846
+ foreground: "#9DAFFA"
1847
+ }
1848
+ },
1849
+ {
1850
+ scope: "constant.other.caps.rust",
1851
+ settings: {
1852
+ foreground: "#EDD5A6"
1853
+ }
1854
+ },
1855
+ {
1856
+ scope: ["meta.function.definition.rust variable.other.rust"],
1857
+ settings: {
1858
+ foreground: "#F39EAE"
1859
+ }
1860
+ },
1861
+ {
1862
+ scope: "meta.function.call.rust variable.other.rust",
1863
+ settings: {
1864
+ foreground: "#E7E7E8"
1865
+ }
1866
+ },
1867
+ {
1868
+ scope: "variable.language.self.rust",
1869
+ settings: {
1870
+ foreground: "#F7869B"
1871
+ }
1872
+ },
1873
+ {
1874
+ scope: [
1875
+ "variable.other.metavariable.name.rust",
1876
+ "meta.macro.metavariable.rust keyword.operator.macro.dollar.rust"
1877
+ ],
1878
+ settings: {
1879
+ foreground: "#EFB7C2"
1880
+ }
1881
+ },
1882
+ {
1883
+ scope: [
1884
+ "comment.line.shebang",
1885
+ "comment.line.shebang punctuation.definition.comment",
1886
+ "comment.line.shebang",
1887
+ "punctuation.definition.comment.shebang.shell",
1888
+ "meta.shebang.shell"
1889
+ ],
1890
+ settings: {
1891
+ foreground: "#EFB7C2"
1892
+ }
1893
+ },
1894
+ {
1895
+ scope: "comment.line.shebang constant.language",
1896
+ settings: {
1897
+ foreground: "#A7E0C8"
1898
+ }
1899
+ },
1900
+ {
1901
+ scope: [
1902
+ "meta.function-call.arguments.shell punctuation.definition.variable.shell",
1903
+ "meta.function-call.arguments.shell punctuation.section.interpolation",
1904
+ "meta.function-call.arguments.shell punctuation.definition.variable.shell",
1905
+ "meta.function-call.arguments.shell punctuation.section.interpolation"
1906
+ ],
1907
+ settings: {
1908
+ foreground: "#F7869B"
1909
+ }
1910
+ },
1911
+ {
1912
+ scope: "meta.string meta.interpolation.parameter.shell variable.other.readwrite",
1913
+ settings: {
1914
+ foreground: "#EDD5A6"
1915
+ }
1916
+ },
1917
+ {
1918
+ scope: [
1919
+ "source.shell punctuation.section.interpolation",
1920
+ "punctuation.definition.evaluation.backticks.shell"
1921
+ ],
1922
+ settings: {
1923
+ foreground: "#A7E0C8"
1924
+ }
1925
+ },
1926
+ {
1927
+ scope: "entity.name.tag.heredoc.shell",
1928
+ settings: {
1929
+ foreground: "#C6A5EA"
1930
+ }
1931
+ },
1932
+ {
1933
+ scope: "string.quoted.double.shell variable.other.normal.shell",
1934
+ settings: {
1935
+ foreground: "#E7E7E8"
1936
+ }
1937
+ },
1938
+ {
1939
+ scope: "token.info-token",
1940
+ settings: {
1941
+ foreground: "#8BA1FF"
1942
+ }
1943
+ },
1944
+ {
1945
+ scope: "token.warn-token",
1946
+ settings: {
1947
+ foreground: "#F5B944"
1948
+ }
1949
+ },
1950
+ {
1951
+ scope: "token.error-token",
1952
+ settings: {
1953
+ foreground: "#FB6E88"
1954
+ }
1955
+ },
1956
+ {
1957
+ scope: "token.debug-token",
1958
+ settings: {
1959
+ foreground: "#BE95EB"
1960
+ }
1961
+ }
1962
+ ]
1963
+ };
1964
+
1965
+ // components/src/asciidoc/util.ts
1966
+ var highlighter = null;
1967
+ var customLanguages = ["oxql"];
1968
+ var supportedLanguages = [...Object.keys(bundledLanguages), ...customLanguages];
1969
+ async function getOrCreateHighlighter() {
1970
+ if (!highlighter) {
1971
+ const langs = [];
1972
+ langs.push({
1973
+ ...oxql_tmLanguage_default
1974
+ });
1975
+ highlighter = await getHighlighter({
1976
+ themes: [oxide_dark_default],
1977
+ langs
1978
+ });
1979
+ }
1980
+ return highlighter;
1981
+ }
1982
+ var highlight = async (block) => {
1983
+ if (block.type === "listing") {
1984
+ const literalBlock = block;
1985
+ if (!literalBlock.content) {
1986
+ return block;
1987
+ }
1988
+ const calloutRegex = /<i class="conum" data-value="\d+"><\/i>/g;
1989
+ const callouts = [];
1990
+ const placeholderContent = literalBlock.content.replace(calloutRegex, (match) => {
1991
+ callouts.push(match);
1992
+ return `__CALLOUT_PLACEHOLDER_${callouts.length - 1}__`;
1993
+ });
1994
+ if (!literalBlock.language) {
1995
+ return {
1996
+ ...block,
1997
+ content: placeholderContent.replace(
1998
+ /__CALLOUT_PLACEHOLDER_(\d+)__/g,
1999
+ (_, index) => callouts[parseInt(index)]
2000
+ )
2001
+ };
2002
+ }
2003
+ let lang = literalBlock.language;
2004
+ const h = await getOrCreateHighlighter();
2005
+ const loadedLanguages = h.getLoadedLanguages();
2006
+ if (!supportedLanguages.includes(lang)) {
2007
+ lang = "text";
2008
+ }
2009
+ if (!loadedLanguages.includes(lang)) {
2010
+ await h.loadLanguage(lang);
2011
+ }
2012
+ const highlightedContent = h.codeToHtml(placeholderContent, {
2013
+ lang,
2014
+ theme: oxide_dark_default,
2015
+ structure: "inline"
2016
+ });
2017
+ const restoredContent = highlightedContent.replace(
2018
+ /__CALLOUT_PLACEHOLDER_(\d+)__/g,
2019
+ (_, index) => callouts[parseInt(index)]
2020
+ );
2021
+ return {
2022
+ ...block,
2023
+ content: restoredContent
2024
+ };
2025
+ }
2026
+ return block;
12
2027
  };
13
- var make = (tag) => (
14
- // only one argument here means string interpolations are not allowed
15
- (strings) => {
16
- const Comp = ({ className, children, ...rest }) => createElement(tag, { className: cn(strings[0], className), ...rest }, children);
17
- Comp.displayName = `classed.${tag}`;
18
- return Comp;
2028
+ var attrs = {
2029
+ sectlinks: "true",
2030
+ stem: "latexmath",
2031
+ stylesheet: false
2032
+ };
2033
+ var loadAsciidoctor = ({
2034
+ extensions = []
2035
+ }) => {
2036
+ const ad2 = asciidoctor();
2037
+ class InlineConverter2 {
2038
+ baseConverter;
2039
+ constructor() {
2040
+ this.baseConverter = new ad2.Html5Converter();
2041
+ }
2042
+ convert(node, transform) {
2043
+ switch (node.getNodeName()) {
2044
+ case "inline_callout":
2045
+ return convertInlineCallout(node);
2046
+ default:
2047
+ break;
2048
+ }
2049
+ return this.baseConverter.convert(node, transform);
2050
+ }
19
2051
  }
20
- );
21
- var classed = {
22
- button: make("button"),
23
- div: make("div"),
24
- h1: make("h1"),
25
- h2: make("h2"),
26
- h3: make("h3"),
27
- h4: make("h4"),
28
- hr: make("hr"),
29
- header: make("header"),
30
- input: make("input"),
31
- label: make("label"),
32
- li: make("li"),
33
- main: make("main"),
34
- ol: make("ol"),
35
- p: make("p"),
36
- span: make("span"),
37
- table: make("table"),
38
- tbody: make("tbody"),
39
- td: make("td"),
40
- th: make("th"),
41
- tr: make("tr")
2052
+ extensions.forEach((extension) => ad2.Extensions.register(extension));
2053
+ ad2.ConverterFactory.register(new InlineConverter2(), ["html5"]);
2054
+ return ad2;
2055
+ };
2056
+ function convertInlineCallout(node) {
2057
+ return `<i class="conum" data-value="${node.getText()}"></i>`;
2058
+ }
2059
+ var handleDocument = async (document) => {
2060
+ const doc = prepareDocument(document);
2061
+ return await processDocument(doc, highlight);
42
2062
  };
43
2063
 
44
- // components/src/asciidoc/Admonition.tsx
45
- import { jsx, jsxs } from "react/jsx-runtime";
46
- var Admonition = ({ node }) => {
47
- const attrs = node.attributes;
48
- let icon;
49
- if (attrs.name === "caution") {
50
- icon = /* @__PURE__ */ jsx(Error12, {});
51
- } else if (attrs.name === "warning") {
52
- icon = /* @__PURE__ */ jsx(Warning12, {});
2064
+ // components/src/asciidoc/index.tsx
2065
+ import { jsx as jsx9 } from "react/jsx-runtime";
2066
+ var MinimalDocument = ({ document }) => /* @__PURE__ */ jsx9("div", { id: "content", className: "asciidoc-body w-full", children: /* @__PURE__ */ jsx9(Content4, { blocks: document.blocks }) });
2067
+ var AsciiDocBlocks = {
2068
+ Admonition: Admonition_default,
2069
+ Table: Table_default,
2070
+ Section: Section_default,
2071
+ MinimalDocument
2072
+ };
2073
+ var renderWithBreaks = (text) => {
2074
+ return text.split(/(<[^>]*>)/g).map((segment) => {
2075
+ if (segment.startsWith("<") && segment.endsWith(">")) {
2076
+ return segment;
2077
+ }
2078
+ return segment.replace(/(?:^|(?<=\S))\/(?=\S)/g, "/<wbr/>");
2079
+ }).join("");
2080
+ };
2081
+ var QUOTE_TAGS = {
2082
+ "monospaced": ["<code>", "</code>", true],
2083
+ "emphasis": ["<em>", "</em>", true],
2084
+ "strong": ["<strong>", "</strong>", true],
2085
+ "double": ["&#8220;", "&#8221;"],
2086
+ "single": ["&#8216;", "&#8217;"],
2087
+ "mark": ["<mark>", "</mark>", true],
2088
+ "superscript": ["<sup>", "</sup>", true],
2089
+ "subscript": ["<sub>", "</sub>", true],
2090
+ "unquoted": ["<span>", "</span>", true],
2091
+ "asciimath": ["\\$", "\\$"],
2092
+ "latexmath": ["\\(", "\\)"]
2093
+ };
2094
+ var chop = (str) => str.substring(0, str.length - 1);
2095
+ var convertInlineQuoted = (node) => {
2096
+ const type = node.getType();
2097
+ const quoteTag = QUOTE_TAGS[type];
2098
+ const [open, close, tag] = quoteTag || ["", ""];
2099
+ let text = node.getText();
2100
+ if (type === "monospaced") {
2101
+ text = renderWithBreaks(text);
2102
+ }
2103
+ const id = node.getId();
2104
+ const role = node.getRole();
2105
+ const idAttr = id ? `id="${id}"` : "";
2106
+ const classAttr = role ? `class="${role}"` : "";
2107
+ const attrs2 = `${idAttr} ${classAttr}`;
2108
+ if (id || role) {
2109
+ if (tag) {
2110
+ return `${chop(open)} ${attrs2}>${text}${close}`;
2111
+ } else {
2112
+ return `<span ${attrs2}>${open}${text}${close}</span>`;
2113
+ }
53
2114
  } else {
54
- icon = /* @__PURE__ */ jsx(Error12, { className: "rotate-180" });
2115
+ return `${open}${text}${close}`;
55
2116
  }
56
- return /* @__PURE__ */ jsxs("div", { className: `admonitionblock ${attrs.name}`, children: [
57
- /* @__PURE__ */ jsx("div", { className: "admonition-icon", children: icon }),
58
- /* @__PURE__ */ jsxs("div", { className: "admonition-content content", children: [
59
- /* @__PURE__ */ jsx(Title, { text: node.title }),
60
- /* @__PURE__ */ jsx("div", { children: titleCase(attrs.name.toString()) }),
61
- /* @__PURE__ */ jsxs("div", { children: [
62
- /* @__PURE__ */ jsx(Title, { text: node.title }),
63
- node.content && parse(node.content),
64
- /* @__PURE__ */ jsx(Content, { blocks: node.blocks })
65
- ] })
66
- ] })
67
- ] });
68
2117
  };
69
- var Error12 = ({ className }) => /* @__PURE__ */ jsx(
70
- "svg",
71
- {
72
- width: "12",
73
- height: "12",
74
- viewBox: "0 0 12 12",
75
- xmlns: "http://www.w3.org/2000/svg",
76
- className,
77
- children: /* @__PURE__ */ jsx(
78
- "path",
79
- {
80
- fillRule: "evenodd",
81
- clipRule: "evenodd",
82
- d: "M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.083-9c.368 0 .667.299.667.667v2.666A.667.667 0 0 1 6.083 7h-.166a.667.667 0 0 1-.667-.667V3.667c0-.368.299-.667.667-.667h.166Zm0 5c.368 0 .667.299.667.667v.166a.667.667 0 0 1-.667.667h-.166a.667.667 0 0 1-.667-.667v-.166c0-.368.299-.667.667-.667h.166Z",
83
- fill: "currentColor"
84
- }
85
- )
2118
+ function convertInlineCallout2(node) {
2119
+ return `<i class="conum" data-value="${node.getText()}"></i>`;
2120
+ }
2121
+ var ad = asciidoctor2();
2122
+ var InlineConverter = class {
2123
+ baseConverter;
2124
+ constructor() {
2125
+ this.baseConverter = new ad.Html5Converter();
86
2126
  }
87
- );
88
- var Warning12 = ({ className }) => /* @__PURE__ */ jsx(
89
- "svg",
90
- {
91
- width: "12",
92
- height: "12",
93
- viewBox: "0 0 12 12",
94
- xmlns: "http://www.w3.org/2000/svg",
95
- className,
96
- children: /* @__PURE__ */ jsx(
97
- "path",
98
- {
99
- fillRule: "evenodd",
100
- clipRule: "evenodd",
101
- d: "M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.083-9c.368 0 .667.299.667.667v2.666A.667.667 0 0 1 6.083 7h-.166a.667.667 0 0 1-.667-.667V3.667c0-.368.299-.667.667-.667h.166Zm0 5c.368 0 .667.299.667.667v.166a.667.667 0 0 1-.667.667h-.166a.667.667 0 0 1-.667-.667v-.166c0-.368.299-.667.667-.667h.166Z",
102
- fill: "currentColor"
103
- }
104
- )
2127
+ convert(node, transform) {
2128
+ switch (node.getNodeName()) {
2129
+ case "inline_quoted":
2130
+ return convertInlineQuoted(node);
2131
+ case "inline_callout":
2132
+ return convertInlineCallout2(node);
2133
+ default:
2134
+ break;
2135
+ }
2136
+ return this.baseConverter.convert(node, transform);
105
2137
  }
106
- );
107
- var Admonition_default = Admonition;
108
-
109
- // components/src/asciidoc/Table.tsx
110
- import { Table as InnerTable } from "@oxide/react-asciidoc";
111
- import { jsx as jsx2 } from "react/jsx-runtime";
112
- var Table = ({ node }) => /* @__PURE__ */ jsx2("div", { className: "table-wrapper", children: /* @__PURE__ */ jsx2(InnerTable, { node }) });
113
- var Table_default = Table;
114
-
115
- // components/src/asciidoc/index.ts
116
- var AsciiDocBlocks = {
117
- Admonition: Admonition_default,
118
- Table: Table_default
119
2138
  };
120
2139
 
121
2140
  // components/src/ui/badge/Badge.tsx
122
- import cn2 from "classnames";
123
- import { jsx as jsx3 } from "react/jsx-runtime";
2141
+ import cn4 from "classnames";
2142
+ import { jsx as jsx10 } from "react/jsx-runtime";
124
2143
  var badgeColors = {
125
2144
  default: {
126
2145
  default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
@@ -145,25 +2164,25 @@ var Badge = ({
145
2164
  color = "default",
146
2165
  variant = "default"
147
2166
  }) => {
148
- return /* @__PURE__ */ jsx3(
2167
+ return /* @__PURE__ */ jsx10(
149
2168
  "span",
150
2169
  {
151
- className: cn2(
2170
+ className: cn4(
152
2171
  "ox-badge",
153
2172
  `variant-${variant}`,
154
2173
  "inline-flex h-4 items-center whitespace-nowrap rounded-sm px-[3px] py-[1px] uppercase text-mono-sm",
155
2174
  badgeColors[variant][color],
156
2175
  className
157
2176
  ),
158
- children: /* @__PURE__ */ jsx3("span", { children })
2177
+ children: /* @__PURE__ */ jsx10("span", { children })
159
2178
  }
160
2179
  );
161
2180
  };
162
2181
 
163
2182
  // components/src/ui/button/Button.tsx
164
- import cn3 from "classnames";
2183
+ import cn5 from "classnames";
165
2184
  import { forwardRef } from "react";
166
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
2185
+ import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
167
2186
  var buttonSizes = ["sm", "icon", "base"];
168
2187
  var variants = ["primary", "secondary", "ghost", "danger"];
169
2188
  var sizeStyle = {
@@ -176,7 +2195,7 @@ var buttonStyle = ({
176
2195
  size: size2 = "base",
177
2196
  variant = "primary"
178
2197
  } = {}) => {
179
- return cn3(
2198
+ return cn5(
180
2199
  "ox-button inline-flex items-center justify-center rounded align-top elevation-1 disabled:cursor-not-allowed",
181
2200
  `btn-${variant}`,
182
2201
  sizeStyle[size2],
@@ -203,10 +2222,10 @@ var Button = forwardRef(
203
2222
  ...rest
204
2223
  }, ref) => {
205
2224
  const isDisabled = disabled || loading;
206
- return /* @__PURE__ */ jsxs2(
2225
+ return /* @__PURE__ */ jsxs8(
207
2226
  "button",
208
2227
  {
209
- className: cn3(buttonStyle({ size: size2, variant }), className, {
2228
+ className: cn5(buttonStyle({ size: size2, variant }), className, {
210
2229
  "visually-disabled": isDisabled
211
2230
  }),
212
2231
  ref,
@@ -216,8 +2235,8 @@ var Button = forwardRef(
216
2235
  "aria-disabled": isDisabled,
217
2236
  ...rest,
218
2237
  children: [
219
- loading && /* @__PURE__ */ jsx4(Spinner, { className: "absolute", variant }),
220
- /* @__PURE__ */ jsx4("span", { className: cn3("flex items-center", innerClassName, { invisible: loading }), children })
2238
+ loading && /* @__PURE__ */ jsx11(Spinner, { className: "absolute", variant }),
2239
+ /* @__PURE__ */ jsx11("span", { className: cn5("flex items-center", innerClassName, { invisible: loading }), children })
221
2240
  ]
222
2241
  }
223
2242
  );
@@ -225,9 +2244,9 @@ var Button = forwardRef(
225
2244
  );
226
2245
 
227
2246
  // components/src/ui/spinner/Spinner.tsx
228
- import cn4 from "classnames";
229
- import { useEffect, useRef, useState } from "react";
230
- import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
2247
+ import cn6 from "classnames";
2248
+ import { useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
2249
+ import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
231
2250
  var spinnerSizes = ["base", "lg"];
232
2251
  var spinnerVariants = ["primary", "secondary", "ghost", "danger"];
233
2252
  var Spinner = ({
@@ -239,7 +2258,7 @@ var Spinner = ({
239
2258
  const center = size2 === "lg" ? 18 : 6;
240
2259
  const radius = size2 === "lg" ? 16 : 5;
241
2260
  const strokeWidth = size2 === "lg" ? 3 : 2;
242
- return /* @__PURE__ */ jsxs3(
2261
+ return /* @__PURE__ */ jsxs9(
243
2262
  "svg",
244
2263
  {
245
2264
  width: frameSize,
@@ -248,9 +2267,9 @@ var Spinner = ({
248
2267
  fill: "none",
249
2268
  xmlns: "http://www.w3.org/2000/svg",
250
2269
  "aria-labelledby": "Spinner",
251
- className: cn4("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
2270
+ className: cn6("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
252
2271
  children: [
253
- /* @__PURE__ */ jsx5(
2272
+ /* @__PURE__ */ jsx12(
254
2273
  "circle",
255
2274
  {
256
2275
  fill: "none",
@@ -263,7 +2282,7 @@ var Spinner = ({
263
2282
  strokeOpacity: 0.2
264
2283
  }
265
2284
  ),
266
- /* @__PURE__ */ jsx5(
2285
+ /* @__PURE__ */ jsx12(
267
2286
  "circle",
268
2287
  {
269
2288
  className: "path",
@@ -281,10 +2300,10 @@ var Spinner = ({
281
2300
  );
282
2301
  };
283
2302
  var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
284
- const [isVisible, setIsVisible] = useState(isLoading);
285
- const hideTimeout = useRef(null);
286
- const loadingStartTime = useRef(0);
287
- useEffect(() => {
2303
+ const [isVisible, setIsVisible] = useState2(isLoading);
2304
+ const hideTimeout = useRef2(null);
2305
+ const loadingStartTime = useRef2(0);
2306
+ useEffect2(() => {
288
2307
  if (isLoading) {
289
2308
  setIsVisible(true);
290
2309
  loadingStartTime.current = Date.now();
@@ -304,88 +2323,24 @@ var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
304
2323
  clearTimeout(hideTimeout.current);
305
2324
  };
306
2325
  }, [isLoading, minTime]);
307
- return isVisible ? /* @__PURE__ */ jsx5(Spinner, {}) : /* @__PURE__ */ jsx5(Fragment, { children });
2326
+ return isVisible ? /* @__PURE__ */ jsx12(Spinner, {}) : /* @__PURE__ */ jsx12(Fragment3, { children });
308
2327
  };
309
2328
 
310
2329
  // components/src/ui/tabs/Tabs.tsx
311
- import { Content as Content2, List, Root, Trigger } from "@radix-ui/react-tabs";
312
- import cn5 from "classnames";
313
- import { jsx as jsx6 } from "react/jsx-runtime";
2330
+ import { Content as Content5, List, Root as Root2, Trigger as Trigger2 } from "@radix-ui/react-tabs";
2331
+ import cn7 from "classnames";
2332
+ import { jsx as jsx13 } from "react/jsx-runtime";
314
2333
  var Tabs = {
315
- Root: ({ className, ...props }) => /* @__PURE__ */ jsx6(Root, { ...props, className: cn5("ox-tabs", className) }),
316
- Trigger: ({ children, className, ...props }) => /* @__PURE__ */ jsx6(Trigger, { ...props, className: cn5("ox-tab", className), children: /* @__PURE__ */ jsx6("div", { children }) }),
317
- List: ({ className, ...props }) => /* @__PURE__ */ jsx6(List, { ...props, className: cn5("ox-tabs-list", className) }),
318
- Content: ({ className, ...props }) => /* @__PURE__ */ jsx6(Content2, { ...props, className: cn5("ox-tabs-panel", className) })
2334
+ Root: ({ className, ...props }) => /* @__PURE__ */ jsx13(Root2, { ...props, className: cn7("ox-tabs", className) }),
2335
+ Trigger: ({ children, className, ...props }) => /* @__PURE__ */ jsx13(Trigger2, { ...props, className: cn7("ox-tab", className), children: /* @__PURE__ */ jsx13("div", { children }) }),
2336
+ List: ({ className, ...props }) => /* @__PURE__ */ jsx13(List, { ...props, className: cn7("ox-tabs-list", className) }),
2337
+ Content: ({ className, ...props }) => /* @__PURE__ */ jsx13(Content5, { ...props, className: cn7("ox-tabs-panel", className) })
319
2338
  };
320
2339
 
321
- // icons/react/Checkmark12Icon.tsx
322
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
323
- var Checkmark12Icon = ({
324
- title,
325
- titleId,
326
- ...props
327
- }) => /* @__PURE__ */ jsxs4(
328
- "svg",
329
- {
330
- width: 12,
331
- height: 12,
332
- viewBox: "0 0 12 12",
333
- xmlns: "http://www.w3.org/2000/svg",
334
- role: "img",
335
- "aria-labelledby": titleId,
336
- ...props,
337
- children: [
338
- title ? /* @__PURE__ */ jsx7("title", { id: titleId, children: title }) : null,
339
- /* @__PURE__ */ jsx7(
340
- "path",
341
- {
342
- fillRule: "evenodd",
343
- clipRule: "evenodd",
344
- d: "M10.492 2.651c.28.242.31.665.067.944L5.447 9.463a.667.667 0 0 1-.974.035L1.475 6.516a.667.667 0 0 1 0-.946l.237-.235a.667.667 0 0 1 .94 0l2.24 2.226L9.3 2.501a.667.667 0 0 1 .938-.068l.253.218Z",
345
- fill: "currentColor"
346
- }
347
- )
348
- ]
349
- }
350
- );
351
- var Checkmark12Icon_default = Checkmark12Icon;
352
-
353
- // icons/react/SelectArrows6Icon.tsx
354
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
355
- var SelectArrows6Icon = ({
356
- title,
357
- titleId,
358
- ...props
359
- }) => /* @__PURE__ */ jsxs5(
360
- "svg",
361
- {
362
- width: 6,
363
- height: 14,
364
- viewBox: "0 0 6 14",
365
- xmlns: "http://www.w3.org/2000/svg",
366
- role: "img",
367
- "aria-labelledby": titleId,
368
- ...props,
369
- children: [
370
- title ? /* @__PURE__ */ jsx8("title", { id: titleId, children: title }) : null,
371
- /* @__PURE__ */ jsx8(
372
- "path",
373
- {
374
- fillRule: "evenodd",
375
- clipRule: "evenodd",
376
- d: "M3.322.536a.375.375 0 0 0-.644 0L.341 4.432C.19 4.682.37 5 .662 5h4.676a.375.375 0 0 0 .321-.568L3.322.536Zm-.644 12.928a.375.375 0 0 0 .644 0l2.337-3.896A.375.375 0 0 0 5.338 9H.662a.375.375 0 0 0-.321.568l2.337 3.896Z",
377
- fill: "currentColor"
378
- }
379
- )
380
- ]
381
- }
382
- );
383
- var SelectArrows6Icon_default = SelectArrows6Icon;
384
-
385
2340
  // components/src/ui/checkbox/Checkbox.tsx
386
- import cn6 from "classnames";
387
- import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
388
- var Check = () => /* @__PURE__ */ jsx9(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" });
2341
+ import cn8 from "classnames";
2342
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
2343
+ var Check = () => /* @__PURE__ */ jsx14(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" });
389
2344
  var Indeterminate = classed.div`absolute w-2 h-0.5 left-1 top-[7px] bg-accent pointer-events-none`;
390
2345
  var inputStyle = `
391
2346
  appearance-none border border-default bg-default h-4 w-4 rounded-sm absolute left-0 outline-none
@@ -399,28 +2354,28 @@ var Checkbox = ({
399
2354
  children,
400
2355
  className,
401
2356
  ...inputProps
402
- }) => /* @__PURE__ */ jsxs6("label", { className: "inline-flex items-center", children: [
403
- /* @__PURE__ */ jsxs6("span", { className: "relative h-4 w-4", children: [
404
- /* @__PURE__ */ jsx9(
2357
+ }) => /* @__PURE__ */ jsxs10("label", { className: "inline-flex items-center", children: [
2358
+ /* @__PURE__ */ jsxs10("span", { className: "relative h-4 w-4", children: [
2359
+ /* @__PURE__ */ jsx14(
405
2360
  "input",
406
2361
  {
407
- className: cn6(inputStyle, className),
2362
+ className: cn8(inputStyle, className),
408
2363
  type: "checkbox",
409
2364
  ref: (el) => el && (el.indeterminate = !!indeterminate),
410
2365
  ...inputProps
411
2366
  }
412
2367
  ),
413
- inputProps.checked && !indeterminate && /* @__PURE__ */ jsx9(Check, {}),
414
- indeterminate && /* @__PURE__ */ jsx9(Indeterminate, {})
2368
+ inputProps.checked && !indeterminate && /* @__PURE__ */ jsx14(Check, {}),
2369
+ indeterminate && /* @__PURE__ */ jsx14(Indeterminate, {})
415
2370
  ] }),
416
- children && /* @__PURE__ */ jsx9("span", { className: "ml-2.5 text-sans-md text-secondary", children })
2371
+ children && /* @__PURE__ */ jsx14("span", { className: "ml-2.5 text-sans-md text-secondary", children })
417
2372
  ] });
418
2373
 
419
2374
  // components/src/ui/listbox/Listbox.tsx
420
2375
  import { FloatingPortal, flip, offset, size, useFloating } from "@floating-ui/react";
421
2376
  import { Listbox as Select } from "@headlessui/react";
422
- import cn7 from "classnames";
423
- import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
2377
+ import cn9 from "classnames";
2378
+ import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
424
2379
  var Listbox = ({
425
2380
  name,
426
2381
  selected,
@@ -449,19 +2404,19 @@ var Listbox = ({
449
2404
  const selectedItem = selected && items.find((i) => i.value === selected);
450
2405
  const noItems = !isLoading && items.length === 0;
451
2406
  const isDisabled = disabled || noItems;
452
- return /* @__PURE__ */ jsx10("div", { className: cn7("relative", className), children: /* @__PURE__ */ jsx10(
2407
+ return /* @__PURE__ */ jsx15("div", { className: cn9("relative", className), children: /* @__PURE__ */ jsx15(
453
2408
  Select,
454
2409
  {
455
2410
  value: selected,
456
2411
  onChange: (val) => val !== null && onChange(val),
457
2412
  disabled: isDisabled || isLoading,
458
- children: ({ open }) => /* @__PURE__ */ jsxs7(Fragment2, { children: [
459
- /* @__PURE__ */ jsxs7(
2413
+ children: ({ open }) => /* @__PURE__ */ jsxs11(Fragment4, { children: [
2414
+ /* @__PURE__ */ jsxs11(
460
2415
  Select.Button,
461
2416
  {
462
2417
  name,
463
2418
  ref: refs.setReference,
464
- className: cn7(
2419
+ className: cn9(
465
2420
  `flex h-10 w-full items-center justify-between
466
2421
  rounded border text-sans-md`,
467
2422
  hasError ? "focus-error border-error-secondary hover:border-error" : "border-default hover:border-hover",
@@ -472,37 +2427,37 @@ var Listbox = ({
472
2427
  ),
473
2428
  ...props,
474
2429
  children: [
475
- /* @__PURE__ */ jsx10("div", { className: "w-full px-3 text-left", children: selectedItem ? (
2430
+ /* @__PURE__ */ jsx15("div", { className: "w-full px-3 text-left", children: selectedItem ? (
476
2431
  // labelString is one line, which is what we need when label is a ReactNode
477
2432
  selectedItem.labelString || selectedItem.label
478
- ) : /* @__PURE__ */ jsx10("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }),
479
- !isDisabled && /* @__PURE__ */ jsx10(SpinnerLoader, { isLoading }),
480
- /* @__PURE__ */ jsx10(
2433
+ ) : /* @__PURE__ */ jsx15("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }),
2434
+ !isDisabled && /* @__PURE__ */ jsx15(SpinnerLoader, { isLoading }),
2435
+ /* @__PURE__ */ jsx15(
481
2436
  "div",
482
2437
  {
483
2438
  className: "ml-3 flex h-[calc(100%-12px)] items-center border-l px-3 border-secondary",
484
2439
  "aria-hidden": true,
485
- children: /* @__PURE__ */ jsx10(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" })
2440
+ children: /* @__PURE__ */ jsx15(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" })
486
2441
  }
487
2442
  )
488
2443
  ]
489
2444
  }
490
2445
  ),
491
- /* @__PURE__ */ jsx10(FloatingPortal, { children: /* @__PURE__ */ jsx10(
2446
+ /* @__PURE__ */ jsx15(FloatingPortal, { children: /* @__PURE__ */ jsx15(
492
2447
  Select.Options,
493
2448
  {
494
2449
  ref: refs.setFloating,
495
2450
  style: floatingStyles,
496
2451
  className: "ox-menu pointer-events-auto z-50 overflow-y-auto !outline-none",
497
- children: items.map((item) => /* @__PURE__ */ jsx10(
2452
+ children: items.map((item) => /* @__PURE__ */ jsx15(
498
2453
  Select.Option,
499
2454
  {
500
2455
  value: item.value,
501
2456
  className: "relative border-b border-secondary last:border-0",
502
- children: ({ active, selected: selected2 }) => /* @__PURE__ */ jsx10(
2457
+ children: ({ active, selected: selected2 }) => /* @__PURE__ */ jsx15(
503
2458
  "div",
504
2459
  {
505
- className: cn7(
2460
+ className: cn9(
506
2461
  "ox-menu-item text-secondary",
507
2462
  selected2 && "is-selected",
508
2463
  active && "is-highlighted"
@@ -524,15 +2479,25 @@ export {
524
2479
  Badge,
525
2480
  Button,
526
2481
  Checkbox,
2482
+ DesktopOutline,
2483
+ InlineConverter,
527
2484
  Listbox,
2485
+ SmallScreenOutline,
528
2486
  Spinner,
529
2487
  SpinnerLoader,
530
2488
  Tabs,
2489
+ attrs,
531
2490
  badgeColors,
532
2491
  buttonSizes,
533
2492
  buttonStyle,
2493
+ handleDocument,
2494
+ highlight,
2495
+ loadAsciidoctor,
2496
+ renderWithBreaks,
534
2497
  spinnerSizes,
535
2498
  spinnerVariants,
2499
+ useActiveSectionTracking,
2500
+ useIntersectionObserver,
536
2501
  variants
537
2502
  };
538
2503
  //# sourceMappingURL=index.js.map