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