@graphiql/plugin-doc-explorer 0.4.3-alpha.1 → 1.0.0-beta.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.
Files changed (48) hide show
  1. package/dist/components/arguments-list.d.ts +12 -0
  2. package/dist/components/arguments-list.js +248 -0
  3. package/dist/components/arguments-list.js.map +1 -0
  4. package/dist/components/breadcrumb.d.ts +8 -0
  5. package/dist/components/breadcrumb.js +54 -0
  6. package/dist/components/breadcrumb.js.map +1 -0
  7. package/dist/components/doc-explorer.js +172 -123
  8. package/dist/components/doc-explorer.js.map +1 -1
  9. package/dist/components/field-card.d.ts +7 -0
  10. package/dist/components/field-card.js +102 -0
  11. package/dist/components/field-card.js.map +1 -0
  12. package/dist/components/field-documentation.js +76 -110
  13. package/dist/components/field-documentation.js.map +1 -1
  14. package/dist/components/fields-list.d.ts +8 -0
  15. package/dist/components/fields-list.js +235 -0
  16. package/dist/components/fields-list.js.map +1 -0
  17. package/dist/components/index.d.ts +6 -0
  18. package/dist/components/schema-documentation.js +168 -125
  19. package/dist/components/schema-documentation.js.map +1 -1
  20. package/dist/components/search-row.d.ts +2 -0
  21. package/dist/components/search-row.js +282 -0
  22. package/dist/components/search-row.js.map +1 -0
  23. package/dist/components/search.js +81 -50
  24. package/dist/components/search.js.map +1 -1
  25. package/dist/components/section.js +1 -1
  26. package/dist/components/section.js.map +1 -1
  27. package/dist/components/type-card.d.ts +7 -0
  28. package/dist/components/type-card.js +112 -0
  29. package/dist/components/type-card.js.map +1 -0
  30. package/dist/components/type-documentation.d.ts +6 -0
  31. package/dist/components/type-documentation.js +11 -9
  32. package/dist/components/type-documentation.js.map +1 -1
  33. package/dist/components/type-link.js +2 -1
  34. package/dist/components/type-link.js.map +1 -1
  35. package/dist/context.js +60 -40
  36. package/dist/context.js.map +1 -1
  37. package/dist/index.d.ts +0 -1
  38. package/dist/index.js +13 -3
  39. package/dist/index.js.map +1 -1
  40. package/dist/schema-reference.d.ts +2 -2
  41. package/dist/schema-reference.js +5 -4
  42. package/dist/schema-reference.js.map +1 -1
  43. package/dist/stories/doc-explorer.stories.d.ts +12 -0
  44. package/dist/style.css +691 -131
  45. package/package.json +12 -6
  46. package/dist/deprecated.d.ts +0 -11
  47. package/dist/deprecated.js +0 -24
  48. package/dist/deprecated.js.map +0 -1
package/dist/style.css CHANGED
@@ -1,8 +1,62 @@
1
- .graphiql-doc-explorer-default-value {
2
- color: hsl(var(--color-success));
1
+ .graphiql-doc-explorer-breadcrumb {
2
+ padding: var(--px-6) var(--px-16) 0;
3
+ font-family: var(--font-family-mono);
4
+ flex-wrap: wrap;
5
+ align-items: center;
6
+ gap: 0;
7
+ font-size: 11.5px;
8
+ line-height: 1.4;
9
+ display: flex;
10
+ }
11
+
12
+ .graphiql-doc-explorer-breadcrumb-segment {
13
+ align-items: center;
14
+ gap: var(--px-4);
15
+ display: flex;
16
+ }
17
+
18
+ .graphiql-doc-explorer-breadcrumb-sep {
19
+ color: oklch(var(--fg-dim));
20
+ margin: 0 var(--px-4);
21
+ font-family: var(--font-family);
22
+ font-size: 13px;
23
+ }
24
+
25
+ a.graphiql-doc-explorer-breadcrumb-root, span.graphiql-doc-explorer-breadcrumb-root {
26
+ color: oklch(var(--accent-blue));
27
+ text-decoration: none;
28
+ }
29
+
30
+ a.graphiql-doc-explorer-breadcrumb-root:hover {
31
+ text-decoration: underline;
32
+ }
33
+
34
+ a.graphiql-doc-explorer-breadcrumb-intermediate, span.graphiql-doc-explorer-breadcrumb-intermediate {
35
+ color: oklch(var(--accent-green-light));
36
+ text-decoration: none;
37
+ }
38
+
39
+ a.graphiql-doc-explorer-breadcrumb-intermediate:hover {
40
+ text-decoration: underline;
41
+ }
42
+
43
+ span.graphiql-doc-explorer-breadcrumb-current {
44
+ color: oklch(var(--fg-strong));
45
+ }
46
+ .graphiql-doc-explorer-deprecation {
47
+ background-color: oklch(var(--accent-orange) / .1);
48
+ border: 1px solid oklch(var(--accent-orange));
49
+ border-radius: var(--px-4);
50
+ color: oklch(var(--accent-orange));
51
+ padding: var(--px-8);
52
+ }
53
+
54
+ .graphiql-doc-explorer-deprecation-label {
55
+ font-size: var(--font-size-eyebrow);
56
+ font-weight: var(--font-weight-medium);
3
57
  }
4
58
  a.graphiql-doc-explorer-type-name {
5
- color: hsl(var(--color-warning));
59
+ color: oklch(var(--type-composite));
6
60
  text-decoration: none;
7
61
  }
8
62
 
@@ -11,136 +65,469 @@ a.graphiql-doc-explorer-type-name:hover {
11
65
  }
12
66
 
13
67
  a.graphiql-doc-explorer-type-name:focus {
14
- outline: hsl(var(--color-warning)) auto 1px;
68
+ outline: 1px auto;
15
69
  }
16
- .graphiql-doc-explorer-argument > * + * {
17
- margin-top: var(--px-12);
70
+
71
+ a.graphiql-doc-explorer-type-name[data-type-kind="scalar"] {
72
+ color: oklch(var(--type-scalar));
73
+ }
74
+
75
+ a.graphiql-doc-explorer-type-name[data-type-kind="enum"] {
76
+ color: oklch(var(--type-enum));
77
+ }
78
+
79
+ a.graphiql-doc-explorer-type-name[data-type-kind="input"] {
80
+ color: oklch(var(--type-input));
81
+ }
82
+ .graphiql-doc-explorer-arguments-list {
83
+ padding: var(--px-4) 0;
84
+ flex-direction: column;
85
+ display: flex;
86
+ }
87
+
88
+ .graphiql-doc-explorer-arguments-list-header {
89
+ align-items: center;
90
+ gap: var(--px-6);
91
+ padding: var(--px-6) var(--px-16) var(--px-4);
92
+ cursor: pointer;
93
+ color: oklch(var(--fg-subtle));
94
+ text-transform: uppercase;
95
+ letter-spacing: .08em;
96
+ text-align: left;
97
+ background: none;
98
+ border: none;
99
+ width: 100%;
100
+ font-size: 10px;
101
+ font-weight: 600;
102
+ display: flex;
103
+ }
104
+
105
+ .graphiql-doc-explorer-arguments-list-header svg {
106
+ flex-shrink: 0;
107
+ width: 9px;
108
+ height: 9px;
109
+ }
110
+
111
+ .graphiql-doc-explorer-arguments-list-header:hover {
112
+ color: oklch(var(--fg-muted));
113
+ }
114
+
115
+ .graphiql-doc-explorer-arguments-list-header:focus-visible {
116
+ outline: 2px solid oklch(var(--accent-blue));
117
+ outline-offset: -2px;
118
+ }
119
+
120
+ .graphiql-doc-explorer-arguments-list-count {
121
+ color: oklch(var(--fg-dim));
122
+ font-weight: 500;
123
+ }
124
+
125
+ .graphiql-doc-explorer-arguments-list-body {
126
+ flex-direction: column;
127
+ display: flex;
128
+ }
129
+
130
+ .graphiql-doc-explorer-argument {
131
+ gap: var(--px-4);
132
+ padding: 5px var(--px-16) 5px var(--px-24);
133
+ flex-direction: column;
134
+ display: flex;
135
+ }
136
+
137
+ .graphiql-doc-explorer-argument--deprecated {
138
+ opacity: .6;
139
+ }
140
+
141
+ .graphiql-doc-explorer-argument-sig {
142
+ align-items: baseline;
143
+ gap: var(--px-4);
144
+ font-family: var(--font-family-mono);
145
+ flex-wrap: wrap;
146
+ font-size: 12px;
147
+ display: flex;
18
148
  }
19
149
 
20
150
  .graphiql-doc-explorer-argument-name {
21
- color: hsl(var(--color-secondary));
151
+ color: oklch(var(--accent-green-light));
22
152
  }
23
153
 
24
- .graphiql-doc-explorer-argument-deprecation {
25
- background-color: hsla(var(--color-warning), var(--alpha-background-light));
26
- border: 1px solid hsl(var(--color-warning));
27
- border-radius: var(--border-radius-4);
28
- color: hsl(var(--color-warning));
29
- padding: var(--px-8);
154
+ .graphiql-doc-explorer-argument-colon {
155
+ color: oklch(var(--fg-disabled));
30
156
  }
31
157
 
32
- .graphiql-doc-explorer-argument-deprecation-label {
33
- font-size: var(--font-size-hint);
34
- font-weight: var(--font-weight-medium);
158
+ .graphiql-doc-explorer-argument-type {
159
+ color: oklch(var(--fg-default));
35
160
  }
36
- .graphiql-doc-explorer-deprecation {
37
- background-color: hsla(var(--color-warning), var(--alpha-background-light));
38
- border: 1px solid hsl(var(--color-warning));
39
- border-radius: var(--px-4);
40
- color: hsl(var(--color-warning));
41
- padding: var(--px-8);
161
+
162
+ .graphiql-doc-explorer-argument-default {
163
+ color: oklch(var(--fg-muted));
42
164
  }
43
165
 
44
- .graphiql-doc-explorer-deprecation-label {
45
- font-size: var(--font-size-hint);
46
- font-weight: var(--font-weight-medium);
166
+ .graphiql-doc-explorer-argument-desc {
167
+ color: oklch(var(--fg-subtle));
168
+ font-size: 11px;
169
+ line-height: 15px;
170
+ }
171
+
172
+ .graphiql-doc-explorer-arguments-list-show-deprecated {
173
+ margin: var(--px-8) var(--px-16);
174
+ }
175
+
176
+ .graphiql-doc-explorer-directives-list {
177
+ padding: var(--px-4) 0;
178
+ flex-direction: column;
179
+ display: flex;
180
+ }
181
+
182
+ .graphiql-doc-explorer-directives-list-header {
183
+ padding: var(--px-6) var(--px-16) var(--px-4);
184
+ color: oklch(var(--fg-subtle));
185
+ text-transform: uppercase;
186
+ letter-spacing: .08em;
187
+ font-size: 10px;
188
+ font-weight: 600;
189
+ }
190
+
191
+ .graphiql-doc-explorer-directives-list-count {
192
+ color: oklch(var(--fg-dim));
193
+ font-weight: 500;
194
+ }
195
+
196
+ .graphiql-doc-explorer-directives-list-body {
197
+ flex-direction: column;
198
+ display: flex;
199
+ }
200
+
201
+ .graphiql-doc-explorer-directive-row {
202
+ padding: 5px var(--px-16) 5px var(--px-24);
203
+ font-family: var(--font-family-mono);
204
+ font-size: 12px;
205
+ }
206
+
207
+ .graphiql-doc-explorer-directive-row .graphiql-doc-explorer-directive {
208
+ color: oklch(var(--accent-orange));
47
209
  }
48
210
  .graphiql-doc-explorer-directive {
49
- color: hsl(var(--color-secondary));
211
+ color: oklch(var(--accent-purple));
50
212
  }
51
- .graphiql-doc-explorer-section-title {
52
- font-size: var(--font-size-hint);
53
- font-weight: var(--font-weight-medium);
213
+ .graphiql-doc-explorer-field-card {
214
+ border-top: 1px solid oklch(var(--border-default));
215
+ }
216
+
217
+ .graphiql-doc-explorer-field-card-header {
218
+ align-items: baseline;
219
+ gap: var(--px-6);
220
+ margin-bottom: var(--px-4);
221
+ flex-wrap: wrap;
222
+ display: flex;
223
+ }
224
+
225
+ .graphiql-doc-explorer-field-card-name {
226
+ font-family: var(--font-family-mono);
227
+ font-size: var(--font-size-mono);
228
+ color: oklch(var(--accent-green-light));
229
+ font-weight: 600;
230
+ }
231
+
232
+ .graphiql-doc-explorer-field-card-colon {
233
+ font-family: var(--font-family-mono);
234
+ font-size: var(--font-size-mono);
235
+ color: oklch(var(--fg-muted));
236
+ }
237
+
238
+ .graphiql-doc-explorer-field-card-type {
239
+ font-family: var(--font-family-mono);
240
+ font-size: var(--font-size-mono);
241
+ color: oklch(var(--fg-default));
242
+ }
243
+
244
+ .graphiql-doc-explorer-field-card-description {
245
+ margin: 0 0 var(--px-6);
246
+ font-size: var(--font-size-mono);
247
+ color: oklch(var(--fg-muted));
248
+ line-height: 17px;
249
+ }
250
+ .graphiql-doc-explorer-fields-list {
251
+ padding: var(--px-4) 0;
252
+ flex-direction: column;
253
+ flex: 1;
254
+ display: flex;
255
+ overflow: auto;
256
+ }
257
+
258
+ .graphiql-doc-explorer-fields-list-header {
54
259
  align-items: center;
55
- line-height: 1;
260
+ gap: var(--px-6);
261
+ padding: var(--px-6) var(--px-16) var(--px-4);
262
+ cursor: pointer;
263
+ color: oklch(var(--fg-subtle));
264
+ font-size: var(--font-size-eyebrow);
265
+ text-transform: uppercase;
266
+ letter-spacing: .08em;
267
+ text-align: left;
268
+ background: none;
269
+ border: none;
270
+ width: 100%;
271
+ font-weight: 600;
56
272
  display: flex;
57
273
  }
58
274
 
59
- .graphiql-doc-explorer-section-title > svg {
60
- height: var(--px-16);
61
- margin-right: var(--px-8);
62
- width: var(--px-16);
275
+ .graphiql-doc-explorer-fields-list-header svg {
276
+ flex-shrink: 0;
277
+ width: 9px;
278
+ height: 9px;
63
279
  }
64
280
 
65
- .graphiql-doc-explorer-section-content {
66
- margin-left: var(--px-8);
67
- margin-top: var(--px-16);
281
+ .graphiql-doc-explorer-fields-list-header:hover {
282
+ color: oklch(var(--fg-muted));
68
283
  }
69
284
 
70
- .graphiql-doc-explorer-section-content > * + * {
71
- margin-top: var(--px-16);
285
+ .graphiql-doc-explorer-fields-list-header:focus-visible {
286
+ outline: 2px solid oklch(var(--accent-blue));
287
+ outline-offset: -2px;
288
+ }
289
+
290
+ .graphiql-doc-explorer-fields-list-count {
291
+ color: oklch(var(--fg-dim));
292
+ font-weight: 500;
293
+ }
294
+
295
+ .graphiql-doc-explorer-fields-list-body {
296
+ flex-direction: column;
297
+ display: flex;
298
+ }
299
+
300
+ .graphiql-doc-explorer-field-row {
301
+ gap: var(--px-4);
302
+ padding: 5px var(--px-12) 5px var(--px-24);
303
+ cursor: pointer;
304
+ text-align: left;
305
+ width: 100%;
306
+ transition: background var(--transition-fast);
307
+ background: none;
308
+ border: none;
309
+ border-left: 2px solid #0000;
310
+ flex-direction: column;
311
+ display: flex;
312
+ }
313
+
314
+ .graphiql-doc-explorer-field-row:hover {
315
+ background: oklch(var(--bg-subtle));
316
+ }
317
+
318
+ .graphiql-doc-explorer-field-row:focus-visible {
319
+ outline: 2px solid oklch(var(--accent-blue));
320
+ outline-offset: -2px;
321
+ }
322
+
323
+ .graphiql-doc-explorer-field-row--active {
324
+ background: oklch(var(--accent-blue) / .08);
325
+ border-left-color: oklch(var(--accent-blue));
326
+ margin-left: -2px;
327
+ }
328
+
329
+ .graphiql-doc-explorer-field-row--active:hover {
330
+ background: oklch(var(--accent-blue) / .12);
331
+ }
332
+
333
+ .graphiql-doc-explorer-field-row--deprecated {
334
+ opacity: .6;
335
+ }
336
+
337
+ .graphiql-doc-explorer-field-row-sig {
338
+ align-items: baseline;
339
+ gap: var(--px-6);
340
+ font-family: var(--font-family-mono);
341
+ font-size: var(--font-size-mono);
342
+ display: flex;
343
+ }
344
+
345
+ .graphiql-doc-explorer-field-row-name {
346
+ color: oklch(var(--accent-green-light));
347
+ }
348
+
349
+ .graphiql-doc-explorer-field-row-colon {
350
+ color: oklch(var(--fg-disabled));
351
+ }
352
+
353
+ .graphiql-doc-explorer-field-row-type {
354
+ color: oklch(var(--fg-default));
355
+ }
356
+
357
+ .graphiql-doc-explorer-field-row-desc {
358
+ font-size: var(--font-size-small);
359
+ color: oklch(var(--fg-subtle));
360
+ line-height: 15px;
361
+ }
362
+
363
+ .graphiql-doc-explorer-fields-list-show-deprecated {
364
+ margin: var(--px-8) var(--px-16);
365
+ }
366
+ .graphiql-doc-explorer-schema-overview {
367
+ padding: var(--px-8) 0;
368
+ flex-direction: column;
369
+ display: flex;
370
+ }
371
+
372
+ .graphiql-doc-explorer-schema-section-header {
373
+ padding: var(--px-6) var(--px-16) var(--px-4);
374
+ text-transform: uppercase;
375
+ letter-spacing: .08em;
376
+ color: oklch(var(--fg-subtle));
377
+ font-size: 10px;
378
+ font-weight: 600;
379
+ }
380
+
381
+ .graphiql-doc-explorer-schema-section-header--types {
382
+ margin-top: var(--px-12);
383
+ }
384
+
385
+ .graphiql-doc-explorer-schema-type-count {
386
+ color: oklch(var(--fg-dim));
387
+ font-weight: 500;
388
+ }
389
+
390
+ .graphiql-doc-explorer-schema-root-row {
391
+ align-items: center;
392
+ gap: var(--px-6);
393
+ padding: 5px var(--px-16);
394
+ cursor: pointer;
395
+ text-align: left;
396
+ width: 100%;
397
+ font-family: var(--font-family-mono);
398
+ transition: background var(--transition-fast);
399
+ background: none;
400
+ border: none;
401
+ font-size: 12px;
402
+ display: flex;
403
+ }
404
+
405
+ .graphiql-doc-explorer-schema-root-row:hover {
406
+ background: oklch(var(--bg-subtle));
72
407
  }
73
- .graphiql-doc-explorer-root-type {
74
- color: hsl(var(--color-info));
408
+
409
+ .graphiql-doc-explorer-schema-root-row:focus-visible {
410
+ outline: 2px solid oklch(var(--accent-blue));
411
+ outline-offset: -2px;
412
+ }
413
+
414
+ .graphiql-doc-explorer-schema-root-label {
415
+ color: oklch(var(--fg-default));
416
+ }
417
+
418
+ .graphiql-doc-explorer-schema-root-colon {
419
+ color: oklch(var(--fg-muted));
420
+ }
421
+
422
+ .graphiql-doc-explorer-schema-root-row .graphiql-doc-explorer-type-name {
423
+ color: oklch(var(--type-composite));
424
+ }
425
+
426
+ .graphiql-doc-explorer-schema-type-row {
427
+ align-items: center;
428
+ gap: var(--px-8);
429
+ padding: 4px var(--px-16);
430
+ cursor: pointer;
431
+ text-align: left;
432
+ width: 100%;
433
+ transition: background var(--transition-fast);
434
+ background: none;
435
+ border: none;
436
+ display: flex;
437
+ }
438
+
439
+ .graphiql-doc-explorer-schema-type-row:hover {
440
+ background: oklch(var(--bg-subtle));
441
+ }
442
+
443
+ .graphiql-doc-explorer-schema-type-row:focus-visible {
444
+ outline: 2px solid oklch(var(--accent-blue));
445
+ outline-offset: -2px;
446
+ }
447
+
448
+ .graphiql-doc-explorer-schema-type-name {
449
+ font-family: var(--font-family-mono);
450
+ color: oklch(var(--fg-default));
451
+ font-size: 12px;
75
452
  }
76
453
  .graphiql-doc-explorer-search {
77
- color: hsla(var(--color-neutral), var(--alpha-secondary));
454
+ color: oklch(var(--fg-muted));
78
455
  }
79
456
 
80
457
  .graphiql-doc-explorer-search:not([data-state="idle"]) {
81
- border: var(--popover-border);
82
- border-radius: var(--border-radius-4);
83
- box-shadow: var(--popover-box-shadow);
84
- color: hsl(var(--color-neutral));
458
+ color: oklch(var(--fg-default));
85
459
  }
86
460
 
87
461
  .graphiql-doc-explorer-search:not([data-state="idle"]) .graphiql-doc-explorer-search-input {
88
- background: hsl(var(--color-base));
462
+ background: oklch(var(--bg-canvas));
463
+ border: 1px solid oklch(var(--border-default));
464
+ box-shadow: var(--shadow-popover);
89
465
  }
90
466
 
91
467
  .graphiql-doc-explorer-search-input {
92
- background-color: hsla(var(--color-neutral), var(--alpha-background-light));
468
+ background-color: oklch(var(--fg-default) / .08);
93
469
  border-radius: var(--border-radius-4);
94
- padding: var(--px-8) var(--px-12);
95
470
  align-items: center;
471
+ gap: var(--px-8);
472
+ padding: var(--px-4) var(--px-8);
473
+ flex: 1;
96
474
  display: flex;
97
475
  }
98
476
 
477
+ .graphiql-doc-explorer-search-input:focus-within {
478
+ outline: 2px solid oklch(var(--accent-blue));
479
+ outline-offset: 2px;
480
+ }
481
+
99
482
  .graphiql-doc-explorer-search [role="combobox"] {
100
- margin-left: var(--px-4);
101
483
  background-color: #0000;
102
484
  border: none;
103
- width: 100%;
485
+ flex: 1;
486
+ min-width: 0;
104
487
  }
105
488
 
106
489
  .graphiql-doc-explorer-search [role="combobox"]:focus {
107
490
  outline: none;
108
491
  }
109
492
 
493
+ .graphiql-doc-explorer-search:focus-within .graphiql-keycap-hint {
494
+ display: none;
495
+ }
496
+
110
497
  .graphiql-doc-explorer-search [role="listbox"] {
111
- background-color: hsl(var(--color-base));
112
- border-bottom-left-radius: var(--border-radius-4);
113
- border-bottom-right-radius: var(--border-radius-4);
114
- border: none;
115
- border-top: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));
498
+ background-color: oklch(var(--bg-canvas));
499
+ border: 1px solid oklch(var(--border-default));
500
+ border-radius: var(--border-radius-4);
501
+ box-shadow: var(--shadow-popover);
116
502
  max-height: 400px;
117
503
  font-size: var(--font-size-body);
118
504
  padding: var(--px-4);
505
+ top: calc(100% + var(--px-4));
506
+ z-index: 5;
119
507
  margin: 0;
120
- position: relative;
508
+ position: absolute;
509
+ left: 0;
510
+ right: 0;
121
511
  overflow-y: auto;
122
512
  }
123
513
 
124
514
  .graphiql-doc-explorer-search [role="option"] {
125
515
  border-radius: var(--border-radius-4);
126
- color: hsla(var(--color-neutral), var(--alpha-secondary));
516
+ color: oklch(var(--fg-muted));
127
517
  padding: var(--px-8) var(--px-12);
128
518
  text-overflow: ellipsis;
129
519
  white-space: nowrap;
130
520
  cursor: pointer;
521
+ transition: background-color var(--transition-fast);
131
522
  overflow-x: hidden;
132
523
  }
133
524
 
134
525
  .graphiql-doc-explorer-search [role="option"][data-headlessui-state="active"] {
135
- background-color: hsla(var(--color-neutral), var(--alpha-background-light));
526
+ background-color: oklch(var(--bg-subtle));
136
527
  }
137
528
 
138
529
  .graphiql-doc-explorer-search [role="option"]:hover {
139
- background-color: hsla(var(--color-neutral), var(--alpha-background-medium));
140
- }
141
-
142
- .graphiql-doc-explorer-search [role="option"][data-headlessui-state="active"]:hover {
143
- background-color: hsla(var(--color-neutral), var(--alpha-background-heavy));
530
+ background-color: oklch(var(--bg-subtle));
144
531
  }
145
532
 
146
533
  .graphiql-doc-explorer-search [role="option"] + :is(.graphiql-doc-explorer-search [role="option"]) {
@@ -148,138 +535,311 @@ a.graphiql-doc-explorer-type-name:focus {
148
535
  }
149
536
 
150
537
  .graphiql-doc-explorer-search-type {
151
- color: hsl(var(--color-info));
538
+ color: oklch(var(--type-composite));
539
+ }
540
+
541
+ .graphiql-doc-explorer-search-type[data-type-kind="scalar"] {
542
+ color: oklch(var(--type-scalar));
543
+ }
544
+
545
+ .graphiql-doc-explorer-search-type[data-type-kind="enum"] {
546
+ color: oklch(var(--type-enum));
547
+ }
548
+
549
+ .graphiql-doc-explorer-search-type[data-type-kind="input"] {
550
+ color: oklch(var(--type-input));
152
551
  }
153
552
 
154
553
  .graphiql-doc-explorer-search-field {
155
- color: hsl(var(--color-warning));
554
+ color: oklch(var(--accent-green-light));
156
555
  }
157
556
 
158
557
  .graphiql-doc-explorer-search-argument {
159
- color: hsl(var(--color-secondary));
558
+ color: oklch(var(--accent-purple));
160
559
  }
161
560
 
162
561
  .graphiql-doc-explorer-search-divider {
163
- color: hsla(var(--color-neutral), var(--alpha-secondary));
164
- font-size: var(--font-size-hint);
562
+ color: oklch(var(--fg-muted));
563
+ font-size: var(--font-size-eyebrow);
165
564
  font-weight: var(--font-weight-medium);
166
565
  margin-top: var(--px-8);
167
566
  padding: var(--px-8) var(--px-12);
168
567
  }
169
568
 
170
569
  .graphiql-doc-explorer-search-empty {
171
- color: hsla(var(--color-neutral), var(--alpha-secondary));
570
+ color: oklch(var(--fg-muted));
172
571
  padding: var(--px-8) var(--px-12);
173
572
  }
174
- a.graphiql-doc-explorer-field-name {
175
- color: hsl(var(--color-info));
176
- text-decoration: none;
573
+ .graphiql-doc-explorer-search-row-wrapper {
574
+ padding: var(--px-8) var(--px-16);
575
+ position: relative;
177
576
  }
178
577
 
179
- a.graphiql-doc-explorer-field-name:hover {
180
- text-decoration: underline;
578
+ .graphiql-doc-explorer-search-row {
579
+ position: relative;
181
580
  }
182
581
 
183
- a.graphiql-doc-explorer-field-name:focus {
184
- outline: hsl(var(--color-info)) auto 1px;
582
+ .graphiql-doc-explorer-search-row-input {
583
+ align-items: center;
584
+ gap: var(--px-6);
585
+ background: oklch(var(--bg-subtle));
586
+ border: 1px solid oklch(var(--border-muted));
587
+ border-radius: var(--radius-sm);
588
+ padding: var(--px-4) var(--px-8);
589
+ cursor: text;
590
+ display: flex;
185
591
  }
186
- .graphiql-doc-explorer-item > :not(:first-child) {
187
- margin-top: var(--px-12);
592
+
593
+ .graphiql-doc-explorer-search-row-input svg {
594
+ width: 11px;
595
+ height: 11px;
596
+ color: oklch(var(--fg-disabled));
597
+ flex-shrink: 0;
188
598
  }
189
599
 
190
- .graphiql-doc-explorer-argument-multiple {
191
- margin-left: var(--px-8);
600
+ .graphiql-doc-explorer-search-row-input [role="combobox"] {
601
+ min-width: 0;
602
+ font-family: var(--font-family-mono);
603
+ color: oklch(var(--fg-default));
604
+ background: none;
605
+ border: none;
606
+ flex: 1;
607
+ font-size: 11.5px;
192
608
  }
193
609
 
194
- .graphiql-doc-explorer-enum-value {
195
- color: hsl(var(--color-info));
610
+ .graphiql-doc-explorer-search-row-input [role="combobox"]::placeholder {
611
+ color: oklch(var(--fg-disabled));
196
612
  }
197
- .graphiql-doc-explorer-header {
198
- justify-content: space-between;
199
- display: flex;
200
- position: relative;
613
+
614
+ .graphiql-doc-explorer-search-row-input [role="combobox"]:focus {
615
+ outline: none;
616
+ }
617
+
618
+ .graphiql-doc-explorer-search-row-listbox {
619
+ top: calc(100% + var(--px-4));
620
+ z-index: 5;
621
+ background: oklch(var(--bg-canvas));
622
+ border: 1px solid oklch(var(--border-default));
623
+ border-radius: var(--radius-sm);
624
+ box-shadow: var(--shadow-popover);
625
+ max-height: 400px;
626
+ padding: var(--px-4);
627
+ font-size: var(--font-size-body);
628
+ margin: 0;
629
+ position: absolute;
630
+ left: 0;
631
+ right: 0;
632
+ overflow-y: auto;
201
633
  }
202
634
 
203
- .graphiql-doc-explorer-header:focus-within .graphiql-doc-explorer-title {
204
- visibility: hidden;
635
+ .graphiql-doc-explorer-search-row-listbox [role="option"] {
636
+ border-radius: var(--radius-sm);
637
+ color: oklch(var(--fg-muted));
638
+ padding: var(--px-8) var(--px-12);
639
+ text-overflow: ellipsis;
640
+ white-space: nowrap;
641
+ cursor: pointer;
642
+ transition: background-color var(--transition-fast);
643
+ overflow-x: hidden;
205
644
  }
206
645
 
207
- .graphiql-doc-explorer-header:focus-within .graphiql-doc-explorer-back:not(:focus) {
208
- color: #0000;
646
+ .graphiql-doc-explorer-search-row-listbox [role="option"][data-headlessui-state="active"] {
647
+ background-color: oklch(var(--bg-subtle));
209
648
  }
210
649
 
211
- .graphiql-doc-explorer-header-content {
212
- flex-direction: column;
213
- min-width: 0;
650
+ .graphiql-doc-explorer-search-row-listbox [role="option"]:hover {
651
+ background-color: oklch(var(--bg-subtle));
652
+ }
653
+
654
+ .graphiql-doc-explorer-search-row-listbox [role="option"] + [role="option"] {
655
+ margin-top: var(--px-4);
656
+ }
657
+ .graphiql-doc-explorer-type-card {
658
+ border-top: 1px solid oklch(var(--border-default));
659
+ }
660
+
661
+ .graphiql-doc-explorer-type-card-header {
662
+ align-items: center;
663
+ gap: var(--px-6);
664
+ margin-bottom: var(--px-4);
214
665
  display: flex;
215
666
  }
216
667
 
217
- .graphiql-doc-explorer-search {
218
- position: absolute;
219
- top: 0;
220
- right: 0;
668
+ .graphiql-doc-explorer-type-badge {
669
+ background: oklch(var(--accent-blue) / .12);
670
+ color: oklch(var(--accent-blue));
671
+ font-family: var(--font-family-mono);
672
+ font-size: var(--font-size-eyebrow);
673
+ border-radius: var(--radius-sm);
674
+ text-transform: uppercase;
675
+ letter-spacing: .04em;
676
+ flex-shrink: 0;
677
+ padding: 1px 6px;
678
+ font-weight: 600;
221
679
  }
222
680
 
223
- .graphiql-doc-explorer-search:focus-within {
224
- left: 0;
681
+ .graphiql-doc-explorer-type-card-name {
682
+ font-family: var(--font-family-mono);
683
+ font-size: var(--font-size-mono);
684
+ color: oklch(var(--fg-strong));
685
+ text-overflow: ellipsis;
686
+ white-space: nowrap;
687
+ font-weight: 600;
688
+ overflow-x: hidden;
225
689
  }
226
690
 
227
- .graphiql-doc-explorer-search:not(:focus-within) [role="combobox"] {
228
- width: 6.5ch;
229
- height: 24px;
691
+ .graphiql-doc-explorer-type-card-description {
692
+ margin: 0 0 var(--px-6);
693
+ font-size: var(--font-size-mono);
694
+ color: oklch(var(--fg-muted));
695
+ line-height: 17px;
230
696
  }
231
697
 
232
- .graphiql-doc-explorer-search [role="combobox"]:focus {
233
- width: 100%;
698
+ .graphiql-doc-explorer-type-card-implements {
699
+ align-items: center;
700
+ gap: var(--px-6);
701
+ margin-top: var(--px-6);
702
+ font-size: var(--font-size-eyebrow);
703
+ color: oklch(var(--fg-subtle));
704
+ flex-wrap: wrap;
705
+ display: flex;
234
706
  }
235
707
 
236
- a.graphiql-doc-explorer-back {
237
- color: hsla(var(--color-neutral), var(--alpha-secondary));
708
+ .graphiql-doc-explorer-type-card-implements-keyword {
709
+ font-family: var(--font-family-mono);
710
+ }
711
+
712
+ .graphiql-doc-explorer-type-card-implements-item {
238
713
  align-items: center;
239
- text-decoration: none;
714
+ gap: var(--px-6);
240
715
  display: flex;
241
716
  }
242
717
 
243
- a.graphiql-doc-explorer-back:hover {
718
+ .graphiql-doc-explorer-type-card-implements-dot {
719
+ color: oklch(var(--fg-dim));
720
+ }
721
+
722
+ a.graphiql-doc-explorer-type-card-implements-link {
723
+ font-family: var(--font-family-mono);
724
+ color: oklch(var(--type-composite));
725
+ text-decoration: none;
726
+ }
727
+
728
+ a.graphiql-doc-explorer-type-card-implements-link:hover {
244
729
  text-decoration: underline;
245
730
  }
731
+ .graphiql-doc-explorer-default-value {
732
+ color: oklch(var(--accent-green));
733
+ }
734
+ .graphiql-doc-explorer-argument > * + * {
735
+ margin-top: var(--px-12);
736
+ }
246
737
 
247
- a.graphiql-doc-explorer-back:focus {
248
- outline: hsla(var(--color-neutral), var(--alpha-secondary)) auto 1px;
738
+ .graphiql-doc-explorer-argument-name {
739
+ color: oklch(var(--accent-purple));
249
740
  }
250
741
 
251
- a.graphiql-doc-explorer-back:focus + .graphiql-doc-explorer-title {
252
- visibility: unset;
742
+ .graphiql-doc-explorer-argument-deprecation {
743
+ background-color: oklch(var(--accent-orange) / .1);
744
+ border: 1px solid oklch(var(--accent-orange));
745
+ border-radius: var(--border-radius-4);
746
+ color: oklch(var(--accent-orange));
747
+ padding: var(--px-8);
253
748
  }
254
749
 
255
- a.graphiql-doc-explorer-back > svg {
256
- height: var(--px-8);
257
- margin-right: var(--px-8);
258
- width: var(--px-8);
750
+ .graphiql-doc-explorer-argument-deprecation-label {
751
+ font-size: var(--font-size-eyebrow);
752
+ font-weight: var(--font-weight-medium);
753
+ }
754
+ a.graphiql-doc-explorer-field-name {
755
+ color: oklch(var(--accent-green-light));
756
+ text-decoration: none;
259
757
  }
260
758
 
261
- .graphiql-doc-explorer-title {
759
+ a.graphiql-doc-explorer-field-name:hover {
760
+ text-decoration: underline;
761
+ }
762
+
763
+ a.graphiql-doc-explorer-field-name:focus {
764
+ outline: oklch(var(--accent-green-light)) auto 1px;
765
+ }
766
+ .graphiql-doc-explorer-section-title {
767
+ font-size: var(--font-size-eyebrow);
262
768
  font-weight: var(--font-weight-medium);
263
- font-size: var(--font-size-h2);
264
- text-overflow: ellipsis;
265
- white-space: nowrap;
266
- overflow-x: hidden;
769
+ align-items: center;
770
+ line-height: 1;
771
+ display: flex;
267
772
  }
268
773
 
269
- .graphiql-doc-explorer-title:not(:first-child) {
270
- font-size: var(--font-size-h3);
271
- margin-top: var(--px-8);
774
+ .graphiql-doc-explorer-section-title > svg {
775
+ height: var(--px-16);
776
+ margin-right: var(--px-8);
777
+ width: var(--px-16);
778
+ }
779
+
780
+ .graphiql-doc-explorer-section-content {
781
+ margin-left: var(--px-8);
782
+ margin-top: var(--px-16);
783
+ }
784
+
785
+ .graphiql-doc-explorer-section-content > * + * {
786
+ margin-top: var(--px-16);
787
+ }
788
+ .graphiql-doc-explorer-item > :not(:first-child) {
789
+ margin-top: var(--px-12);
790
+ }
791
+
792
+ .graphiql-doc-explorer-argument-multiple {
793
+ margin-left: var(--px-8);
794
+ }
795
+
796
+ .graphiql-doc-explorer-enum-value {
797
+ color: oklch(var(--accent-green-light));
798
+ }
799
+ .graphiql-panel-header-title {
800
+ text-transform: uppercase;
801
+ letter-spacing: .08em;
802
+ font-size: var(--font-size-eyebrow);
803
+ }
804
+
805
+ .graphiql-doc-explorer-content {
806
+ flex: 1;
807
+ overflow-y: auto;
272
808
  }
273
809
 
274
810
  .graphiql-doc-explorer-content > * {
275
- color: hsla(var(--color-neutral), var(--alpha-secondary));
276
- margin-top: var(--px-20);
811
+ color: oklch(var(--fg-muted));
812
+ padding: 0 var(--px-16) var(--px-16);
813
+ margin-top: var(--px-16);
814
+ }
815
+
816
+ .graphiql-doc-explorer-content .graphiql-doc-explorer-type-card, .graphiql-doc-explorer-content .graphiql-doc-explorer-field-card {
817
+ padding: var(--px-10) var(--px-16);
818
+ margin-top: 0;
819
+ }
820
+
821
+ .graphiql-doc-explorer-content .graphiql-doc-explorer-fields-list, .graphiql-doc-explorer-content .graphiql-doc-explorer-arguments-list {
822
+ margin-top: 0;
823
+ padding-top: 0;
824
+ padding-left: 0;
825
+ padding-right: 0;
826
+ }
827
+
828
+ .graphiql-doc-explorer-type-extra {
829
+ padding: 0 var(--px-16) var(--px-16);
830
+ margin-top: var(--px-16);
831
+ color: oklch(var(--fg-muted));
277
832
  }
278
833
 
279
834
  .graphiql-doc-explorer-error {
280
- background-color: hsla(var(--color-error), var(--alpha-background-heavy));
281
- border: 1px solid hsl(var(--color-error));
282
- border-radius: var(--border-radius-8);
283
- color: hsl(var(--color-error));
835
+ background-color: oklch(var(--accent-red) / .15);
836
+ border: 1px solid oklch(var(--accent-red));
837
+ border-radius: var(--radius-sm);
838
+ color: oklch(var(--accent-red));
284
839
  padding: var(--px-8) var(--px-12);
840
+ margin: var(--px-16);
841
+ }
842
+
843
+ a.graphiql-doc-explorer-back, .graphiql-doc-explorer-title {
844
+ display: none;
285
845
  }