@xyd-js/storybook 0.0.0-build

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 (63) hide show
  1. package/.storybook/main.ts +40 -0
  2. package/.storybook/manager-head.html +6 -0
  3. package/.storybook/manager.ts +18 -0
  4. package/.storybook/preview.ts +40 -0
  5. package/.storybook/styles.css +5 -0
  6. package/.storybook/theme.ts +34 -0
  7. package/CHANGELOG.md +16 -0
  8. package/LICENSE +21 -0
  9. package/README.md +50 -0
  10. package/eslint.config.js +28 -0
  11. package/package.json +61 -0
  12. package/public/logo.svg +10 -0
  13. package/src/__fixtures__/Icons.tsx +83 -0
  14. package/src/__fixtures__/atlas-index/package-index.mdx +194 -0
  15. package/src/__fixtures__/atlas-index/wip1.mdx +131 -0
  16. package/src/__fixtures__/atlas-index.mdx +53 -0
  17. package/src/__fixtures__/code-sample.mdx +15 -0
  18. package/src/__fixtures__/example-source-uniform.ts +41 -0
  19. package/src/__fixtures__/hello-world.mdx +116 -0
  20. package/src/components/DemoDocs.tsx +235 -0
  21. package/src/components/logo.tsx +37 -0
  22. package/src/decorators/DocsTemplate.tsx +101 -0
  23. package/src/docs/atlas/Atlas.stories.tsx +51 -0
  24. package/src/docs/atlas/todo-app.uniform.json +625 -0
  25. package/src/docs/atlas/uniform-to-references.ts +101 -0
  26. package/src/docs/components/coder/CodeSample.stories.tsx +29 -0
  27. package/src/docs/components/pages/PageBlogHome.stories.tsx +52 -0
  28. package/src/docs/components/pages/PageFirstSlide.stories.tsx +124 -0
  29. package/src/docs/components/pages/PageHome.stories.tsx +127 -0
  30. package/src/docs/components/system/Baseline.stories.tsx +126 -0
  31. package/src/docs/components/writer/Badge.stories.tsx +132 -0
  32. package/src/docs/components/writer/Banner.stories.tsx +394 -0
  33. package/src/docs/components/writer/Blockquote.stories.tsx +415 -0
  34. package/src/docs/components/writer/Breadcrumbs.stories.tsx +282 -0
  35. package/src/docs/components/writer/Button.stories.tsx +405 -0
  36. package/src/docs/components/writer/Callout.stories.tsx +183 -0
  37. package/src/docs/components/writer/Card.stories.tsx +457 -0
  38. package/src/docs/components/writer/ColorSchemeButton.stories.tsx +322 -0
  39. package/src/docs/components/writer/Details.stories.tsx +333 -0
  40. package/src/docs/components/writer/GuideCard.stories.tsx +384 -0
  41. package/src/docs/components/writer/Heading.stories.tsx +379 -0
  42. package/src/docs/components/writer/Hr.stories.tsx +325 -0
  43. package/src/docs/components/writer/IconSocial.stories.tsx +591 -0
  44. package/src/docs/components/writer/Image.stories.tsx +430 -0
  45. package/src/docs/components/writer/List.stories.tsx +479 -0
  46. package/src/docs/components/writer/NavLinks.stories.tsx +380 -0
  47. package/src/docs/components/writer/Pre.stories.tsx +23 -0
  48. package/src/docs/components/writer/Steps.stories.tsx +914 -0
  49. package/src/docs/components/writer/Table.stories.tsx +608 -0
  50. package/src/docs/components/writer/Tabs.stories.tsx +760 -0
  51. package/src/docs/components/writer/TocCard.stories.tsx +407 -0
  52. package/src/docs/components/writer/Update.stories.tsx +457 -0
  53. package/src/docs/components/writer/VideoGuide.stories.tsx +17 -0
  54. package/src/docs/templates/CodeSample.stories.tsx +15 -0
  55. package/src/docs/themes/TODO.md +1 -0
  56. package/src/docs/themes/logo.tsx +37 -0
  57. package/src/docs/themes/themes.stories.tsx +269 -0
  58. package/src/docs/ui/Nav.stories.tsx +58 -0
  59. package/src/docs/ui/Sidebar.stories.tsx +167 -0
  60. package/src/docs/ui/SubNav.stories.tsx +29 -0
  61. package/src/utils/mdx.ts +31 -0
  62. package/tsconfig.json +39 -0
  63. package/vite.config.ts +8 -0
@@ -0,0 +1,625 @@
1
+ [
2
+ {
3
+ "title": "users",
4
+ "canonical": "users",
5
+ "description": "Get a list of all users",
6
+ "category": "graphql",
7
+ "type": "graphql_query",
8
+ "examples": {
9
+ "groups": [
10
+ {
11
+ "description": "Example request",
12
+ "examples": [
13
+ {
14
+ "codeblock": {
15
+ "tabs": [
16
+ {
17
+ "title": "graphql",
18
+ "language": "graphql",
19
+ "code": "query users {\n users {\n id\n name\n email\n todos {\n id\n title\n description\n completed\n dueDate\n }\n }\n}"
20
+ }
21
+ ]
22
+ }
23
+ }
24
+ ]
25
+ }
26
+ ]
27
+ },
28
+ "definitions": [
29
+ {
30
+ "title": "Arguments",
31
+ "properties": []
32
+ },
33
+ {
34
+ "title": "Returns",
35
+ "properties": [
36
+ {
37
+ "name": "id",
38
+ "type": "ID!",
39
+ "description": "The unique **ID** of the user [here](#/example)",
40
+ "properties": []
41
+ },
42
+ {
43
+ "name": "name",
44
+ "type": "String!",
45
+ "description": "The name of the user",
46
+ "properties": []
47
+ },
48
+ {
49
+ "name": "email",
50
+ "type": "String!",
51
+ "description": "The email of the user",
52
+ "properties": []
53
+ },
54
+ {
55
+ "name": "todos",
56
+ "type": "[Todo!]!",
57
+ "description": "The list of todos created by the user",
58
+ "properties": [
59
+ {
60
+ "name": "id",
61
+ "type": "ID!",
62
+ "description": "The unique ID of the todo",
63
+ "properties": []
64
+ },
65
+ {
66
+ "name": "title",
67
+ "type": "String!",
68
+ "description": "The title of the todo",
69
+ "properties": []
70
+ },
71
+ {
72
+ "name": "description",
73
+ "type": "String",
74
+ "description": "The description of the todo"
75
+ },
76
+ {
77
+ "name": "completed",
78
+ "type": "Boolean!",
79
+ "description": "The status of the todo (completed or not)",
80
+ "properties": []
81
+ },
82
+ {
83
+ "name": "dueDate",
84
+ "type": "Date",
85
+ "description": "The due date of the todo"
86
+ }
87
+ ]
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "title": "user",
95
+ "canonical": "user",
96
+ "description": "Get a user by ID",
97
+ "category": "graphql",
98
+ "type": "graphql_query",
99
+ "examples": {
100
+ "groups": [
101
+ {
102
+ "description": "Example request",
103
+ "examples": [
104
+ {
105
+ "codeblock": {
106
+ "tabs": [
107
+ {
108
+ "title": "graphql",
109
+ "language": "graphql",
110
+ "code": "query user {\n user {\n id\n name\n email\n todos {\n id\n title\n description\n completed\n dueDate\n }\n }\n}"
111
+ }
112
+ ]
113
+ }
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ },
119
+ "definitions": [
120
+ {
121
+ "title": "Arguments",
122
+ "properties": [
123
+ {
124
+ "name": "id",
125
+ "type": "ID!",
126
+ "description": "",
127
+ "properties": []
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "title": "Returns",
133
+ "properties": [
134
+ {
135
+ "name": "id",
136
+ "type": "ID!",
137
+ "description": "The unique ID of the user",
138
+ "properties": []
139
+ },
140
+ {
141
+ "name": "name",
142
+ "type": "String!",
143
+ "description": "The name of the user",
144
+ "properties": []
145
+ },
146
+ {
147
+ "name": "email",
148
+ "type": "String!",
149
+ "description": "The email of the user",
150
+ "properties": []
151
+ },
152
+ {
153
+ "name": "todos",
154
+ "type": "[Todo!]!",
155
+ "description": "The list of todos created by the user",
156
+ "properties": [
157
+ {
158
+ "name": "id",
159
+ "type": "ID!",
160
+ "description": "The unique ID of the todo",
161
+ "properties": []
162
+ },
163
+ {
164
+ "name": "title",
165
+ "type": "String!",
166
+ "description": "The title of the todo",
167
+ "properties": []
168
+ },
169
+ {
170
+ "name": "description",
171
+ "type": "String",
172
+ "description": "The description of the todo"
173
+ },
174
+ {
175
+ "name": "completed",
176
+ "type": "Boolean!",
177
+ "description": "The status of the todo (completed or not)",
178
+ "properties": []
179
+ },
180
+ {
181
+ "name": "dueDate",
182
+ "type": "Date",
183
+ "description": "The due date of the todo"
184
+ }
185
+ ]
186
+ }
187
+ ]
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "title": "todos",
193
+ "canonical": "todos",
194
+ "description": "Get a list of all todos",
195
+ "category": "graphql",
196
+ "type": "graphql_query",
197
+ "examples": {
198
+ "groups": [
199
+ {
200
+ "description": "Example request",
201
+ "examples": [
202
+ {
203
+ "codeblock": {
204
+ "tabs": [
205
+ {
206
+ "title": "graphql",
207
+ "language": "graphql",
208
+ "code": "query todos {\n todos {\n id\n title\n description\n completed\n dueDate\n }\n}"
209
+ }
210
+ ]
211
+ }
212
+ }
213
+ ]
214
+ }
215
+ ]
216
+ },
217
+ "definitions": [
218
+ {
219
+ "title": "Arguments",
220
+ "properties": []
221
+ },
222
+ {
223
+ "title": "Returns",
224
+ "properties": [
225
+ {
226
+ "name": "id",
227
+ "type": "ID!",
228
+ "description": "The unique ID of the todo",
229
+ "properties": []
230
+ },
231
+ {
232
+ "name": "title",
233
+ "type": "String!",
234
+ "description": "The title of the todo",
235
+ "properties": []
236
+ },
237
+ {
238
+ "name": "description",
239
+ "type": "String",
240
+ "description": "The description of the todo"
241
+ },
242
+ {
243
+ "name": "completed",
244
+ "type": "Boolean!",
245
+ "description": "The status of the todo (completed or not)",
246
+ "properties": []
247
+ },
248
+ {
249
+ "name": "dueDate",
250
+ "type": "Date",
251
+ "description": "The due date of the todo"
252
+ }
253
+ ]
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "title": "todo",
259
+ "canonical": "todo",
260
+ "description": "Get a todo by ID",
261
+ "category": "graphql",
262
+ "type": "graphql_query",
263
+ "examples": {
264
+ "groups": [
265
+ {
266
+ "description": "Example request",
267
+ "examples": [
268
+ {
269
+ "codeblock": {
270
+ "tabs": [
271
+ {
272
+ "title": "graphql",
273
+ "language": "graphql",
274
+ "code": "query todo {\n todo {\n id\n title\n description\n completed\n dueDate\n }\n}"
275
+ }
276
+ ]
277
+ }
278
+ }
279
+ ]
280
+ }
281
+ ]
282
+ },
283
+ "definitions": [
284
+ {
285
+ "title": "Arguments",
286
+ "properties": [
287
+ {
288
+ "name": "id",
289
+ "type": "ID!",
290
+ "description": "",
291
+ "properties": []
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "title": "Returns",
297
+ "properties": [
298
+ {
299
+ "name": "id",
300
+ "type": "ID!",
301
+ "description": "The unique ID of the todo",
302
+ "properties": []
303
+ },
304
+ {
305
+ "name": "title",
306
+ "type": "String!",
307
+ "description": "The title of the todo",
308
+ "properties": []
309
+ },
310
+ {
311
+ "name": "description",
312
+ "type": "String",
313
+ "description": "The description of the todo"
314
+ },
315
+ {
316
+ "name": "completed",
317
+ "type": "Boolean!",
318
+ "description": "The status of the todo (completed or not)",
319
+ "properties": []
320
+ },
321
+ {
322
+ "name": "dueDate",
323
+ "type": "Date",
324
+ "description": "The due date of the todo"
325
+ }
326
+ ]
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "title": "createUser",
332
+ "canonical": "createUser",
333
+ "description": "Create a new user",
334
+ "category": "graphql",
335
+ "type": "graphql_mutation",
336
+ "examples": {
337
+ "groups": [
338
+ {
339
+ "description": "Example request",
340
+ "examples": [
341
+ {
342
+ "codeblock": {
343
+ "tabs": [
344
+ {
345
+ "title": "graphql",
346
+ "language": "graphql",
347
+ "code": "mutation createUser ($name: String!, $email: String!) {\n createUser (name: $name, email: $email) {\n id\n name\n email\n todos {\n id\n title\n description\n completed\n dueDate\n }\n }\n}"
348
+ }
349
+ ]
350
+ }
351
+ }
352
+ ]
353
+ }
354
+ ]
355
+ },
356
+ "definitions": [
357
+ {
358
+ "title": "Arguments",
359
+ "properties": [
360
+ {
361
+ "name": "name",
362
+ "type": "String!",
363
+ "description": "",
364
+ "properties": []
365
+ },
366
+ {
367
+ "name": "email",
368
+ "type": "String!",
369
+ "description": "",
370
+ "properties": []
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "title": "Returns",
376
+ "properties": [
377
+ {
378
+ "name": "id",
379
+ "type": "ID!",
380
+ "description": "The unique ID of the user",
381
+ "properties": []
382
+ },
383
+ {
384
+ "name": "name",
385
+ "type": "String!",
386
+ "description": "The name of the user",
387
+ "properties": []
388
+ },
389
+ {
390
+ "name": "email",
391
+ "type": "String!",
392
+ "description": "The email of the user",
393
+ "properties": []
394
+ },
395
+ {
396
+ "name": "todos",
397
+ "type": "[Todo!]!",
398
+ "description": "The list of todos created by the user",
399
+ "properties": [
400
+ {
401
+ "name": "id",
402
+ "type": "ID!",
403
+ "description": "The unique ID of the todo",
404
+ "properties": []
405
+ },
406
+ {
407
+ "name": "title",
408
+ "type": "String!",
409
+ "description": "The title of the todo",
410
+ "properties": []
411
+ },
412
+ {
413
+ "name": "description",
414
+ "type": "String",
415
+ "description": "The description of the todo"
416
+ },
417
+ {
418
+ "name": "completed",
419
+ "type": "Boolean!",
420
+ "description": "The status of the todo (completed or not)",
421
+ "properties": []
422
+ },
423
+ {
424
+ "name": "dueDate",
425
+ "type": "Date",
426
+ "description": "The due date of the todo"
427
+ }
428
+ ]
429
+ }
430
+ ]
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "title": "createTodo",
436
+ "canonical": "createTodo",
437
+ "description": "Create a new todo",
438
+ "category": "graphql",
439
+ "type": "graphql_mutation",
440
+ "examples": {
441
+ "groups": [
442
+ {
443
+ "description": "Example request",
444
+ "examples": [
445
+ {
446
+ "codeblock": {
447
+ "tabs": [
448
+ {
449
+ "title": "graphql",
450
+ "language": "graphql",
451
+ "code": "mutation createTodo ($input: CreateTodoInput!) {\n createTodo (input: $input) {\n id\n title\n description\n completed\n dueDate\n }\n}"
452
+ }
453
+ ]
454
+ }
455
+ }
456
+ ]
457
+ }
458
+ ]
459
+ },
460
+ "definitions": [
461
+ {
462
+ "title": "Arguments",
463
+ "properties": [
464
+ {
465
+ "name": "input",
466
+ "type": "CreateTodoInput!",
467
+ "description": "",
468
+ "properties": []
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "title": "Returns",
474
+ "properties": [
475
+ {
476
+ "name": "id",
477
+ "type": "ID!",
478
+ "description": "The unique ID of the todo",
479
+ "properties": []
480
+ },
481
+ {
482
+ "name": "title",
483
+ "type": "String!",
484
+ "description": "The title of the todo",
485
+ "properties": []
486
+ },
487
+ {
488
+ "name": "description",
489
+ "type": "String",
490
+ "description": "The description of the todo"
491
+ },
492
+ {
493
+ "name": "completed",
494
+ "type": "Boolean!",
495
+ "description": "The status of the todo (completed or not)",
496
+ "properties": []
497
+ },
498
+ {
499
+ "name": "dueDate",
500
+ "type": "Date",
501
+ "description": "The due date of the todo"
502
+ }
503
+ ]
504
+ }
505
+ ]
506
+ },
507
+ {
508
+ "title": "updateTodo",
509
+ "canonical": "updateTodo",
510
+ "description": "Update an existing todo",
511
+ "category": "graphql",
512
+ "type": "graphql_mutation",
513
+ "examples": {
514
+ "groups": [
515
+ {
516
+ "description": "Example request",
517
+ "examples": [
518
+ {
519
+ "codeblock": {
520
+ "tabs": [
521
+ {
522
+ "title": "graphql",
523
+ "language": "graphql",
524
+ "code": "mutation updateTodo ($input: UpdateTodoInput!) {\n updateTodo (input: $input) {\n id\n title\n description\n completed\n dueDate\n }\n}"
525
+ }
526
+ ]
527
+ }
528
+ }
529
+ ]
530
+ }
531
+ ]
532
+ },
533
+ "definitions": [
534
+ {
535
+ "title": "Arguments",
536
+ "properties": [
537
+ {
538
+ "name": "input",
539
+ "type": "UpdateTodoInput!",
540
+ "description": "",
541
+ "properties": []
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "title": "Returns",
547
+ "properties": [
548
+ {
549
+ "name": "id",
550
+ "type": "ID!",
551
+ "description": "The unique ID of the todo",
552
+ "properties": []
553
+ },
554
+ {
555
+ "name": "title",
556
+ "type": "String!",
557
+ "description": "The title of the todo",
558
+ "properties": []
559
+ },
560
+ {
561
+ "name": "description",
562
+ "type": "String",
563
+ "description": "The description of the todo"
564
+ },
565
+ {
566
+ "name": "completed",
567
+ "type": "Boolean!",
568
+ "description": "The status of the todo (completed or not)",
569
+ "properties": []
570
+ },
571
+ {
572
+ "name": "dueDate",
573
+ "type": "Date",
574
+ "description": "The due date of the todo"
575
+ }
576
+ ]
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "title": "deleteTodo",
582
+ "canonical": "deleteTodo",
583
+ "description": "Delete a todo by ID",
584
+ "category": "graphql",
585
+ "type": "graphql_mutation",
586
+ "examples": {
587
+ "groups": [
588
+ {
589
+ "description": "Example request",
590
+ "examples": [
591
+ {
592
+ "codeblock": {
593
+ "tabs": [
594
+ {
595
+ "title": "graphql",
596
+ "language": "graphql",
597
+ "code": "mutation deleteTodo ($id: ID!) {\n deleteTodo (id: $id)\n}"
598
+ }
599
+ ]
600
+ }
601
+ }
602
+ ]
603
+ }
604
+ ]
605
+ },
606
+ "definitions": [
607
+ {
608
+ "title": "Arguments",
609
+ "properties": [
610
+ {
611
+ "name": "id",
612
+ "type": "ID!",
613
+ "description": "",
614
+ "properties": []
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "title": "Returns",
620
+ "properties": []
621
+ }
622
+ ]
623
+ }
624
+ ]
625
+