@xyd-js/atlas 0.1.0-xyd.4 → 0.1.0-xyd.57

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 (87) hide show
  1. package/.storybook/index.css +1 -27
  2. package/.storybook/preview.ts +1 -2
  3. package/CHANGELOG.md +554 -0
  4. package/LICENSE +21 -0
  5. package/dist/Update-48mkPPHi-COLbZvRj.js +4 -0
  6. package/dist/Update-48mkPPHi-COLbZvRj.js.map +1 -0
  7. package/dist/Update-6IvrCbUn-COLbZvRj.js +4 -0
  8. package/dist/Update-6IvrCbUn-COLbZvRj.js.map +1 -0
  9. package/dist/Update-B31SkKLO-COLbZvRj.js +4 -0
  10. package/dist/Update-B31SkKLO-COLbZvRj.js.map +1 -0
  11. package/dist/Update-BDC6jF5Q-COLbZvRj.js +4 -0
  12. package/dist/Update-BDC6jF5Q-COLbZvRj.js.map +1 -0
  13. package/dist/Update-BdhhXj2D-COLbZvRj.js +4 -0
  14. package/dist/Update-BdhhXj2D-COLbZvRj.js.map +1 -0
  15. package/dist/Update-BzuP6PUF-COLbZvRj.js +4 -0
  16. package/dist/Update-BzuP6PUF-COLbZvRj.js.map +1 -0
  17. package/dist/Update-C-w0Og8S-COLbZvRj.js +4 -0
  18. package/dist/Update-C-w0Og8S-COLbZvRj.js.map +1 -0
  19. package/dist/Update-CRZyUhwE-COLbZvRj.js +4 -0
  20. package/dist/Update-CRZyUhwE-COLbZvRj.js.map +1 -0
  21. package/dist/Update-Cmw6WVrs-COLbZvRj.js +4 -0
  22. package/dist/Update-Cmw6WVrs-COLbZvRj.js.map +1 -0
  23. package/dist/Update-D5pUmk9V-COLbZvRj.js +4 -0
  24. package/dist/Update-D5pUmk9V-COLbZvRj.js.map +1 -0
  25. package/dist/Update-D7tzid9y-COLbZvRj.js +4 -0
  26. package/dist/Update-D7tzid9y-COLbZvRj.js.map +1 -0
  27. package/dist/Update-DDQewhuu-COLbZvRj.js +4 -0
  28. package/dist/Update-DDQewhuu-COLbZvRj.js.map +1 -0
  29. package/dist/Update-DPeHa_01-COLbZvRj.js +4 -0
  30. package/dist/Update-DPeHa_01-COLbZvRj.js.map +1 -0
  31. package/dist/Update-DUFcLP3--COLbZvRj.js +4 -0
  32. package/dist/Update-DUFcLP3--COLbZvRj.js.map +1 -0
  33. package/dist/Update-DbvzJGdB-COLbZvRj.js +4 -0
  34. package/dist/Update-DbvzJGdB-COLbZvRj.js.map +1 -0
  35. package/dist/Update-SFXhorqS-COLbZvRj.js +4 -0
  36. package/dist/Update-SFXhorqS-COLbZvRj.js.map +1 -0
  37. package/dist/Update-b8FT7xsG-COLbZvRj.js +4 -0
  38. package/dist/Update-b8FT7xsG-COLbZvRj.js.map +1 -0
  39. package/dist/index.css +43 -53
  40. package/dist/index.d.ts +30 -10
  41. package/dist/index.js +2 -1
  42. package/dist/index.js.map +1 -0
  43. package/dist/styles.css +89 -0
  44. package/dist/tokens.css +60 -0
  45. package/dist/xydPlugin.d.ts +5 -0
  46. package/dist/xydPlugin.js +2 -0
  47. package/dist/xydPlugin.js.map +1 -0
  48. package/index.ts +1 -2
  49. package/package.json +27 -21
  50. package/packages/xyd-plugin/SidebarItem.tsx +27 -0
  51. package/packages/xyd-plugin/index.ts +20 -0
  52. package/rollup.config.js +66 -21
  53. package/src/components/ApiRef/ApiRefItem/ApiRefItem.styles.tsx +95 -63
  54. package/src/components/ApiRef/ApiRefItem/ApiRefItem.tsx +512 -52
  55. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.styles.tsx +186 -138
  56. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.tsx +590 -59
  57. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.styles.tsx +19 -23
  58. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.tsx +39 -24
  59. package/src/components/Atlas/Atlas.styles.tsx +3 -5
  60. package/src/components/Atlas/Atlas.tsx +35 -17
  61. package/src/components/Atlas/AtlasContext.tsx +47 -0
  62. package/src/components/Atlas/AtlasDecorator.styles.ts +22 -0
  63. package/src/components/Atlas/AtlasDecorator.tsx +15 -0
  64. package/src/components/Atlas/AtlasLazy/AtlasLazy.styles.tsx +7 -8
  65. package/src/components/Atlas/AtlasLazy/AtlasLazy.tsx +5 -8
  66. package/src/components/Atlas/AtlasPrimary.tsx +21 -0
  67. package/src/components/Atlas/AtlasSecondary.tsx +148 -0
  68. package/src/components/Atlas/index.ts +6 -2
  69. package/src/components/Atlas/types.ts +11 -0
  70. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.styles.tsx +56 -65
  71. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.tsx +20 -29
  72. package/src/components/Code/index.ts +0 -4
  73. package/src/components/Icon/index.tsx +384 -0
  74. package/src/docs/AtlasExample/todo-app.uniform.json +1 -1
  75. package/src/styles/styles.css +89 -0
  76. package/src/styles/tokens.css +60 -0
  77. package/src/utils/mdx.ts +0 -29
  78. package/tsconfig.json +9 -2
  79. package/types.d.ts +22 -0
  80. package/src/components/Code/CodeCopy/CodeCopy.style.tsx +0 -21
  81. package/src/components/Code/CodeCopy/CodeCopy.tsx +0 -32
  82. package/src/components/Code/CodeCopy/index.ts +0 -7
  83. package/src/components/Code/CodeSample/CodeSample.styles.tsx +0 -134
  84. package/src/components/Code/CodeSample/CodeSample.tsx +0 -149
  85. package/src/components/Code/CodeSample/index.ts +0 -8
  86. package/src/components/Code/CodeSample/withLocalStored.tsx +0 -52
  87. package/src/components/Code/default-theme.ts +0 -266
@@ -3,21 +3,12 @@ import {ChevronLeft, ChevronRight} from "lucide-react"
3
3
 
4
4
  import {Example} from "@xyd-js/uniform";
5
5
 
6
- import {MDXReference, mdxValue} from "@/utils/mdx";
7
-
8
- import {
9
- $sample,
10
- $arrow,
11
- $scroller,
12
- $button
13
- } from "./CodeSampleButtons.styles";
6
+ import * as cn from "./CodeSampleButtons.styles";
14
7
 
15
8
  export interface CodeExampleButtonsProps {
16
- examples: MDXReference<Example[]>
17
-
18
- activeExample: MDXReference<Example> | null
19
-
20
- onClick: (example: MDXReference<Example>) => void
9
+ examples: Example[]
10
+ activeExample: Example | null
11
+ onClick: (example: Example) => void
21
12
  }
22
13
 
23
14
  export function CodeExampleButtons({examples, activeExample, onClick}: CodeExampleButtonsProps) {
@@ -47,40 +38,40 @@ export function CodeExampleButtons({examples, activeExample, onClick}: CodeExamp
47
38
  }
48
39
 
49
40
  return (
50
- <div className={$sample.host}>
51
- <div className={$sample.container}>
41
+ <div className={cn.CodeSampleButtonsHost}>
42
+ <div className={cn.CodeSampleButtonsContainer}>
52
43
  {showLeftArrow && (
53
44
  <button
54
45
  onClick={() => scroll('left')}
55
- className={$arrow.host}
46
+ className={cn.CodeSampleButtonsArrowHost}
56
47
  >
57
- <ChevronLeft className={$arrow.icon}/>
48
+ <ChevronLeft className={cn.CodeSampleButtonsArrowIcon}/>
58
49
  </button>
59
50
  )}
60
51
  <div
61
52
  ref={scrollContainerRef}
62
53
  onScroll={handleScroll}
63
- className={$scroller.host}
54
+ className={cn.CodeSampleButtonsScrollerHost}
64
55
  >
65
- <div className={$scroller.container}>
66
- {examples.map((example) => (
67
- <$SampleButton
56
+ <div className={cn.CodeSampleButtonsScrollerContainer}>
57
+ {examples?.map((example) => (
58
+ <SampleButton
68
59
  key={example.codeblock.title}
69
60
  onClick={() => onClick(example)}
70
61
  example={example}
71
62
  activeExample={activeExample}
72
63
  >
73
- {mdxValue(example.codeblock.title || null)}
74
- </$SampleButton>
64
+ {(example.codeblock.title || null)}
65
+ </SampleButton>
75
66
  ))}
76
67
  </div>
77
68
  </div>
78
69
  {showRightArrow && (
79
70
  <button
80
71
  onClick={() => scroll('right')}
81
- className={$arrow.host}
72
+ className={cn.CodeSampleButtonsArrowHost}
82
73
  >
83
- <ChevronRight className={$arrow.icon}/>
74
+ <ChevronRight className={cn.CodeSampleButtonsArrowIcon}/>
84
75
  </button>
85
76
  )}
86
77
  </div>
@@ -88,18 +79,18 @@ export function CodeExampleButtons({examples, activeExample, onClick}: CodeExamp
88
79
  )
89
80
  }
90
81
 
91
- function $SampleButton({onClick, children, activeExample, example}: {
82
+ function SampleButton({onClick, children, activeExample, example}: {
92
83
  onClick: () => void,
93
84
  children: React.ReactNode,
94
- example: MDXReference<Example>,
95
- activeExample: MDXReference<Example> | null,
85
+ example: Example,
86
+ activeExample: Example | null,
96
87
  }) {
97
88
  const markExampleAsActive = (activeExample?.description && activeExample?.description === example?.description) ||
98
89
  (activeExample?.codeblock?.title && activeExample?.codeblock?.title === example.codeblock.title)
99
90
 
100
91
  return <button
101
92
  onClick={onClick}
102
- className={`${$button.host} ${markExampleAsActive && $button.$$active}`}
93
+ className={`${cn.CodeSampleButtonsButtonHost} ${markExampleAsActive && cn.CodeSampleButtonsButtonActive}`}
103
94
  >
104
95
  {children}
105
96
  </button>
@@ -1,6 +1,2 @@
1
- export * from "./CodeCopy";
2
-
3
- export * from "./CodeSample";
4
-
5
1
  export * from "./CodeSampleButtons";
6
2
 
@@ -0,0 +1,384 @@
1
+ export function IconSessionReplay() {
2
+ return <svg
3
+ width={24}
4
+ height={24}
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <path
10
+ d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
11
+ stroke="black"
12
+ strokeWidth={2}
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ />
16
+ <path
17
+ d="M10 8L16 12L10 16V8Z"
18
+ stroke="black"
19
+ strokeWidth={2}
20
+ strokeLinecap="round"
21
+ strokeLinejoin="round"
22
+ />
23
+ </svg>
24
+ }
25
+
26
+ export function IconMetrics() {
27
+ return <svg
28
+ width={24}
29
+ height={24}
30
+ viewBox="0 0 24 24"
31
+ fill="none"
32
+ xmlns="http://www.w3.org/2000/svg"
33
+ >
34
+ <path
35
+ d="M21 7L13.2273 14.9167L9.13636 10.75L3 17"
36
+ stroke="black"
37
+ strokeWidth={2}
38
+ strokeLinecap="round"
39
+ strokeLinejoin="round"
40
+ />
41
+ <path
42
+ d="M16 7H21V12"
43
+ stroke="black"
44
+ strokeWidth={2}
45
+ strokeLinecap="round"
46
+ strokeLinejoin="round"
47
+ />
48
+ </svg>
49
+ }
50
+
51
+ export function IconFunnels() {
52
+ return <svg
53
+ width={24}
54
+ height={24}
55
+ viewBox="0 0 24 24"
56
+ fill="none"
57
+ xmlns="http://www.w3.org/2000/svg"
58
+ >
59
+ <path
60
+ d="M12 20L12 10"
61
+ stroke="black"
62
+ strokeWidth={2}
63
+ strokeLinecap="round"
64
+ strokeLinejoin="round"
65
+ />
66
+ <path
67
+ d="M6 20L6 4"
68
+ stroke="black"
69
+ strokeWidth={2}
70
+ strokeLinecap="round"
71
+ strokeLinejoin="round"
72
+ />
73
+ <path
74
+ d="M18 20L18 16"
75
+ stroke="black"
76
+ strokeWidth={2}
77
+ strokeLinecap="round"
78
+ strokeLinejoin="round"
79
+ />
80
+ </svg>
81
+ }
82
+
83
+ export function IconCode() {
84
+ return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={24} height={24}>
85
+ <path
86
+ fillRule="evenodd"
87
+ d="M14.447 7.106a1 1 0 0 1 .447 1.341l-4 8a1 1 0 1 1-1.788-.894l4-8a1 1 0 0 1 1.341-.447ZM6.6 7.2a1 1 0 0 1 .2 1.4L4.25 12l2.55 3.4a1 1 0 0 1-1.6 1.2l-3-4a1 1 0 0 1 0-1.2l3-4a1 1 0 0 1 1.4-.2Zm10.8 0a1 1 0 0 1 1.4.2l3 4a1 1 0 0 1 0 1.2l-3 4a1 1 0 0 1-1.6-1.2l2.55-3.4-2.55-3.4a1 1 0 0 1 .2-1.4Z"
88
+ clipRule="evenodd"
89
+ />
90
+ </svg>
91
+ }
92
+
93
+ export function IconCustomEvent() {
94
+ return <svg
95
+ width={24}
96
+ height={24}
97
+ viewBox="0 0 16 16"
98
+ fill="none"
99
+ xmlns="http://www.w3.org/2000/svg"
100
+ >
101
+ <path
102
+ d="M3.66179 8.03142L6.54954 1.79004C6.63136 1.6132 6.80847 1.5 7.00333 1.5H10.7236C11.0872 1.5 11.3292 1.87581 11.1788 2.20685L9.18871 6.58625C9.03827 6.9173 9.28029 7.2931 9.64391 7.2931L11.589 7.2931C12.0146 7.2931 12.2456 7.79098 11.9708 8.11596L6.77738 14.2573C6.4593 14.6334 5.84636 14.3715 5.89839 13.8816L6.3857 9.2942C6.41708 8.99882 6.18554 8.74138 5.8885 8.74138H4.11558C3.75048 8.74138 3.50848 8.36278 3.66179 8.03142Z"
103
+ stroke="black"
104
+ strokeWidth={1.2}
105
+ strokeLinejoin="round"
106
+ />
107
+ </svg>
108
+ }
109
+
110
+ export function IconAlert() {
111
+ return <svg
112
+ width={24}
113
+ height={24}
114
+ viewBox="0 0 24 24"
115
+ fill="none"
116
+ xmlns="http://www.w3.org/2000/svg"
117
+ >
118
+ <path
119
+ d="M18 8C18 6.4087 17.3679 4.88258 16.2426 3.75736C15.1174 2.63214 13.5913 2 12 2C10.4087 2 8.88258 2.63214 7.75736 3.75736C6.63214 4.88258 6 6.4087 6 8C6 15 3 17 3 17H21C21 17 18 15 18 8Z"
120
+ stroke="black"
121
+ strokeWidth={2}
122
+ strokeLinecap="round"
123
+ strokeLinejoin="round"
124
+ />
125
+ <path
126
+ d="M13.73 21C13.5542 21.3031 13.3019 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21"
127
+ stroke="black"
128
+ strokeWidth={2}
129
+ strokeLinecap="round"
130
+ strokeLinejoin="round"
131
+ />
132
+ </svg>
133
+ }
134
+
135
+ export function IconBrowser() {
136
+ return <svg
137
+ xmlns="http://www.w3.org/2000/svg"
138
+ width={24}
139
+ height={24}
140
+ viewBox="0 0 24 24"
141
+ fill="none"
142
+ >
143
+ <path
144
+ d="M22 9H2M2 7.8L2 16.2C2 17.8802 2 18.7202 2.32698 19.362C2.6146 19.9265 3.07354 20.3854 3.63803 20.673C4.27976 21 5.11984 21 6.8 21H17.2C18.8802 21 19.7202 21 20.362 20.673C20.9265 20.3854 21.3854 19.9265 21.673 19.362C22 18.7202 22 17.8802 22 16.2V7.8C22 6.11984 22 5.27977 21.673 4.63803C21.3854 4.07354 20.9265 3.6146 20.362 3.32698C19.7202 3 18.8802 3 17.2 3L6.8 3C5.11984 3 4.27976 3 3.63803 3.32698C3.07354 3.6146 2.6146 4.07354 2.32698 4.63803C2 5.27976 2 6.11984 2 7.8Z"
145
+ stroke="#000000"
146
+ strokeWidth={2}
147
+ strokeLinecap="round"
148
+ strokeLinejoin="round"
149
+ />
150
+ </svg>
151
+ }
152
+
153
+ export function IconREST() {
154
+ return <svg
155
+ xmlns="http://www.w3.org/2000/svg"
156
+ width={24}
157
+ height={24}
158
+ viewBox="0 0 16 16"
159
+ fill="none"
160
+ >
161
+ <path
162
+ fill="#000000"
163
+ fillRule="evenodd"
164
+ d="M.5 2.75a2.25 2.25 0 114.28.97l1.345 1.344.284-.284a2.25 2.25 0 013.182 0l.284.284 1.344-1.344a2.25 2.25 0 111.06 1.06l-1.343 1.345.284.284a2.25 2.25 0 010 3.182l-.284.284 1.344 1.344a2.25 2.25 0 11-1.06 1.06l-1.345-1.343-.284.284a2.25 2.25 0 01-3.182 0l-.284-.284-1.344 1.344a2.25 2.25 0 11-1.06-1.06l1.343-1.345-.284-.284a2.25 2.25 0 010-3.182l.284-.284L3.72 4.781A2.25 2.25 0 01.5 2.75zM2.75 2a.75.75 0 100 1.5.75.75 0 000-1.5zm0 10.5a.75.75 0 100 1.5.75.75 0 000-1.5zm9.75.75a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM13.25 2a.75.75 0 100 1.5.75.75 0 000-1.5zM7.47 5.841a.75.75 0 011.06 0L10.16 7.47a.75.75 0 010 1.06L8.53 10.16a.75.75 0 01-1.06 0L5.84 8.53a.75.75 0 010-1.06L7.47 5.84z"
165
+ clipRule="evenodd"
166
+ />
167
+ </svg>
168
+ }
169
+
170
+ export function IconGraphQL() {
171
+ return <svg
172
+ xmlns="http://www.w3.org/2000/svg"
173
+ fill="#000"
174
+ width={24}
175
+ height={24}
176
+ viewBox="0 0 32 32"
177
+ >
178
+ <path
179
+ d="M18.734 3.667l6.578 3.802c1.089-1.146 2.901-1.193 4.047-0.104 0.193 0.188 0.365 0.401 0.5 0.635 0.786 1.37 0.313 3.12-1.063 3.906-0.229 0.13-0.479 0.234-0.745 0.297v7.599c1.531 0.365 2.474 1.896 2.109 3.427-0.063 0.271-0.172 0.531-0.307 0.771-0.792 1.365-2.536 1.833-3.906 1.042-0.26-0.146-0.5-0.344-0.698-0.568l-6.542 3.776c0.495 1.495-0.318 3.109-1.813 3.604-0.292 0.099-0.594 0.146-0.896 0.146-1.573 0-2.854-1.271-2.854-2.849 0-0.271 0.042-0.547 0.12-0.813l-6.583-3.797c-1.089 1.141-2.896 1.188-4.036 0.094-1.135-1.089-1.177-2.891-0.094-4.031 0.38-0.396 0.865-0.677 1.396-0.807v-7.599c-1.531-0.365-2.479-1.906-2.109-3.443 0.063-0.266 0.167-0.521 0.302-0.755 0.786-1.365 2.536-1.833 3.901-1.042 0.234 0.135 0.453 0.302 0.641 0.5l6.583-3.797c-0.448-1.51 0.417-3.099 1.922-3.542 0.26-0.083 0.536-0.12 0.813-0.12 1.573 0 2.854 1.271 2.854 2.844 0 0.281-0.042 0.557-0.12 0.823zM18.047 4.839c-0.026 0.026-0.047 0.052-0.078 0.078l8.615 14.917c0.036-0.010 0.078-0.021 0.109-0.031v-7.609c-1.526-0.375-2.453-1.922-2.073-3.448 0.005-0.031 0.016-0.068 0.021-0.099zM14.026 4.917l-0.078-0.078-6.594 3.802c0.438 1.51-0.438 3.089-1.948 3.526-0.036 0.010-0.068 0.016-0.104 0.026v7.609l0.115 0.031 8.615-14.917zM16.797 5.594c-0.521 0.146-1.073 0.146-1.589 0l-8.615 14.917c0.391 0.375 0.667 0.859 0.802 1.391h17.214c0.13-0.531 0.406-1.016 0.802-1.396zM18.109 27.229l6.552-3.786c-0.021-0.063-0.036-0.125-0.052-0.188h-17.219l-0.031 0.109 6.589 3.802c0.516-0.536 1.245-0.87 2.052-0.87 0.839 0 1.589 0.359 2.109 0.932z" />
180
+ </svg>
181
+ }
182
+
183
+ export function IconWebhooks() {
184
+ return <svg
185
+ xmlns="http://www.w3.org/2000/svg"
186
+ xmlnsXlink="http://www.w3.org/1999/xlink"
187
+ width={24}
188
+ height={24}
189
+ viewBox="-10 -5 1034 1034"
190
+ >
191
+ <path
192
+ fill="#000000"
193
+ d="M482 226h-1l-10 2q-33 4 -64.5 18.5t-55.5 38.5q-41 37 -57 91q-9 30 -8 63t12 63q17 45 52 78l13 12l-83 135q-26 -1 -45 7q-30 13 -45 40q-7 15 -9 31t2 32q8 30 33 48q15 10 33 14.5t36 2t34.5 -12.5t27.5 -25q12 -17 14.5 -39t-5.5 -41q-1 -5 -7 -14l-3 -6l118 -192 q6 -9 8 -14l-10 -3q-9 -2 -13 -4q-23 -10 -41.5 -27.5t-28.5 -39.5q-17 -36 -9 -75q4 -23 17 -43t31 -34q37 -27 82 -27q27 -1 52.5 9.5t44.5 30.5q17 16 26.5 38.5t10.5 45.5q0 17 -6 42l70 19l8 1q14 -43 7 -86q-4 -33 -19.5 -63.5t-39.5 -53.5q-42 -42 -103 -56 q-6 -2 -18 -4l-14 -2h-37zM500 350q-17 0 -34 7t-30.5 20.5t-19.5 31.5q-8 20 -4 44q3 18 14 34t28 25q24 15 56 13q3 4 5 8l112 191q3 6 6 9q27 -26 58.5 -35.5t65 -3.5t58.5 26q32 25 43.5 61.5t0.5 73.5q-8 28 -28.5 50t-48.5 33q-31 13 -66.5 8.5t-63.5 -24.5 q-4 -3 -13 -10l-5 -6q-4 3 -11 10l-47 46q23 23 52 38.5t61 21.5l22 4h39l28 -5q64 -13 110 -60q22 -22 36.5 -50.5t19.5 -59.5q5 -36 -2 -71.5t-25 -64.5t-44 -51t-57 -35q-34 -14 -70.5 -16t-71.5 7l-17 5l-81 -137q13 -19 16 -37q5 -32 -13 -60q-16 -25 -44 -35 q-17 -6 -35 -6zM218 614q-58 13 -100 53q-47 44 -61 105l-4 24v37l2 11q2 13 4 20q7 31 24.5 59t42.5 49q50 41 115 49q38 4 76 -4.5t70 -28.5q53 -34 78 -91q7 -17 14 -45q6 -1 18 0l125 2q14 0 20 1q11 20 25 31t31.5 16t35.5 4q28 -3 50 -20q27 -21 32 -54 q2 -17 -1.5 -33t-13.5 -30q-16 -22 -41 -32q-17 -7 -35.5 -6.5t-35.5 7.5q-28 12 -43 37l-3 6q-14 0 -42 -1l-113 -1q-15 -1 -43 -1l-50 -1l3 17q8 43 -13 81q-14 27 -40 45t-57 22q-35 6 -70 -7.5t-57 -42.5q-28 -35 -27 -79q1 -37 23 -69q13 -19 32 -32t41 -19l9 -3z"
194
+ />
195
+ </svg>
196
+ }
197
+
198
+ export function IconJSBrowser() {
199
+ return <svg
200
+ xmlns="http://www.w3.org/2000/svg"
201
+ viewBox="0 0 448 512"
202
+ width={24}
203
+ height={24}
204
+ >
205
+ <path
206
+ d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM243.8 381.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z" />
207
+ </svg>
208
+ }
209
+
210
+ export function IconJSNode() {
211
+ return <svg
212
+ width={24}
213
+ height={24}
214
+ xmlns="http://www.w3.org/2000/svg"
215
+ data-name="Layer 1"
216
+ viewBox="0 0 109 122.88"
217
+ >
218
+ <defs>
219
+ <style>{".cls-1{fill-rule:evenodd;}"}</style>
220
+ </defs>
221
+ <title>{"node-js-black"}</title>
222
+ <path
223
+ className="cls-1"
224
+ d="M68.43,87.08c-19.7,0-23.83-9-23.83-16.63a1.3,1.3,0,0,1,1.3-1.3h5.82A1.3,1.3,0,0,1,53,70.25c.88,5.93,3.49,8.92,15.41,8.92C77.9,79.17,81.93,77,81.93,72c0-2.9-1.15-5-15.89-6.49-12.33-1.22-20-3.93-20-13.8,0-9.08,7.66-14.49,20.5-14.49,14.42,0,21.56,5,22.46,15.76a1.31,1.31,0,0,1-.35,1,1.35,1.35,0,0,1-1,.42H81.9a1.29,1.29,0,0,1-1.26-1c-1.41-6.23-4.81-8.23-14.07-8.23C56.21,45.15,55,48.76,55,51.46c0,3.28,1.42,4.24,15.4,6.09S90.82,62,90.82,71.71,82.64,87.14,68.37,87.14l.06-.06Zm-13.91,35.8a9.45,9.45,0,0,1-4.72-1.26l-15-8.9c-2.25-1.26-1.15-1.7-.41-2a30.38,30.38,0,0,0,6.8-3.1,1.15,1.15,0,0,1,1.12.08l11.55,6.85a1.51,1.51,0,0,0,1.4,0l45-26a1.42,1.42,0,0,0,.69-1.22V35.43a1.44,1.44,0,0,0-.7-1.24l-45-26a1.38,1.38,0,0,0-1.39,0l-45,26a1.42,1.42,0,0,0-.71,1.23v52a1.39,1.39,0,0,0,.7,1.21l12.33,7.12C27.85,99.06,32,95.11,32,91.15V39.86a1.29,1.29,0,0,1,1.31-1.3H39a1.29,1.29,0,0,1,1.3,1.3V91.17c0,8.93-4.87,14-13.33,14-2.6,0-4.66,0-10.38-2.82L4.72,95.59A9.51,9.51,0,0,1,0,87.38v-52a9.47,9.47,0,0,1,4.72-8.21l45.07-26a9.89,9.89,0,0,1,9.47,0l45,26A9.49,9.49,0,0,1,109,35.43v52a9.54,9.54,0,0,1-4.72,8.21l-45,26a9.5,9.5,0,0,1-4.74,1.26v0Zm0,0Z"
225
+ />
226
+ </svg>
227
+ }
228
+
229
+ export function IconStorybook() {
230
+ return <svg
231
+ xmlns="http://www.w3.org/2000/svg"
232
+ fill="#000000"
233
+ width={24}
234
+ height={24}
235
+ viewBox="0 0 32 32"
236
+ >
237
+ <path
238
+ d="M21.786 0.318l-0.161 3.615c-0.005 0.203 0.229 0.328 0.391 0.203l1.411-1.068 1.198 0.932c0.156 0.104 0.365 0 0.375-0.188l-0.135-3.677 1.776-0.135c0.922-0.063 1.708 0.672 1.708 1.599v28.802c0 0.917-0.766 1.646-1.682 1.599l-21.469-0.958c-0.833-0.036-1.505-0.708-1.531-1.547l-1-26.401c-0.052-0.885 0.62-1.646 1.505-1.693l17.599-1.109zM17.693 12.401c0 0.625 4.214 0.318 4.786-0.109 0-4.266-2.292-6.521-6.479-6.521-4.198 0-6.531 2.297-6.531 5.724 0 5.932 8 6.036 8 9.276 0 0.938-0.427 1.469-1.401 1.469-1.281 0-1.802-0.651-1.734-2.88 0-0.479-4.865-0.641-5.026 0-0.359 5.375 2.974 6.932 6.797 6.932 3.724 0 6.63-1.984 6.63-5.573 0-6.359-8.135-6.188-8.135-9.333 0-1.292 0.964-1.464 1.505-1.464 0.604 0 1.667 0.094 1.589 2.49z" />
239
+ </svg>
240
+ }
241
+
242
+ export function IconReactRouter() {
243
+ return <svg
244
+ xmlns="http://www.w3.org/2000/svg"
245
+ width={24}
246
+ height={24}
247
+ viewBox="0 0 602 360"
248
+ fill="none"
249
+ >
250
+ <path
251
+ d="M480.96 180C480.96 196.572 474.239 211.572 463.357 222.42C452.475 233.28 437.445 240 420.84 240C404.235 240 389.205 246.708 378.335 257.568C367.453 268.428 360.72 283.428 360.72 300C360.72 316.572 353.999 331.572 343.117 342.42C332.235 353.28 317.205 360 300.6 360C283.995 360 268.965 353.28 258.095 342.42C247.213 331.572 240.48 316.572 240.48 300C240.48 283.428 247.213 268.428 258.095 257.568C268.965 246.708 283.995 240 300.6 240C317.205 240 332.235 233.28 343.117 222.42C353.999 211.572 360.72 196.572 360.72 180C360.72 146.856 333.81 120 300.6 120C283.995 120 268.965 113.28 258.095 102.42C247.213 91.572 240.48 76.572 240.48 60C240.48 43.428 247.213 28.428 258.095 17.568C268.965 6.708 283.995 0 300.6 0C333.81 0 360.72 26.856 360.72 60C360.72 76.572 367.453 91.572 378.335 102.42C389.205 113.28 404.235 120 420.84 120C454.05 120 480.96 146.856 480.96 180Z"
252
+ fill="#121212"
253
+ />
254
+ <path
255
+ d="M240.48 180C240.48 146.862 213.563 120 180.36 120C147.157 120 120.24 146.862 120.24 180C120.24 213.137 147.157 240 180.36 240C213.563 240 240.48 213.137 240.48 180Z"
256
+ fill="#121212"
257
+ />
258
+ <path
259
+ d="M120.24 300C120.24 266.863 93.3234 240 60.12 240C26.9166 240 0 266.863 0 300C0 333.138 26.9166 360 60.12 360C93.3234 360 120.24 333.138 120.24 300Z"
260
+ fill="#121212"
261
+ />
262
+ <path
263
+ d="M601.2 300C601.2 266.863 574.283 240 541.08 240C507.877 240 480.96 266.863 480.96 300C480.96 333.138 507.877 360 541.08 360C574.283 360 601.2 333.138 601.2 300Z"
264
+ fill="#121212"
265
+ />
266
+ </svg>
267
+ }
268
+
269
+ export function IconNextJS() {
270
+ return <svg
271
+ xmlns="http://www.w3.org/2000/svg"
272
+ width={24}
273
+ height={24}
274
+ viewBox="0 0 15 15"
275
+ fill="none"
276
+ >
277
+ <path
278
+ d="M4.5 4.5L4.90534 4.20725C4.77836 4.03144 4.55252 3.95753 4.34617 4.02425C4.13981 4.09098 4 4.28313 4 4.5H4.5ZM7.5 14C3.91015 14 1 11.0899 1 7.5H0C0 11.6421 3.35786 15 7.5 15V14ZM14 7.5C14 11.0899 11.0899 14 7.5 14V15C11.6421 15 15 11.6421 15 7.5H14ZM7.5 1C11.0899 1 14 3.91015 14 7.5H15C15 3.35786 11.6421 0 7.5 0V1ZM7.5 0C3.35786 0 0 3.35786 0 7.5H1C1 3.91015 3.91015 1 7.5 1V0ZM5 12V4.5H4V12H5ZM4.09466 4.79275L10.5947 13.7927L11.4053 13.2073L4.90534 4.20725L4.09466 4.79275ZM10 4V10H11V4H10Z"
279
+ fill="#000000"
280
+ />
281
+ </svg>
282
+ }
283
+
284
+ export function IconAppTemplate() {
285
+ return <svg
286
+ xmlns="http://www.w3.org/2000/svg"
287
+ viewBox="0 0 80 80"
288
+ fill="none"
289
+ >
290
+ <g clipPath="url(#clip0_202_147)">
291
+ <path d="M0 55.3333H80" stroke="black" strokeWidth={0.506667} />
292
+ <path d="M0 40H80" stroke="black" strokeWidth={0.506667} />
293
+ <path d="M0 24.6667H80" stroke="black" strokeWidth={0.506667} />
294
+ <path d="M55.3334 80V0" stroke="black" strokeWidth={0.506667} />
295
+ <path d="M40 80V0" stroke="black" strokeWidth={0.506667} />
296
+ <path d="M24.6666 80V0" stroke="black" strokeWidth={0.506667} />
297
+ <path d="M80 80L0 0" stroke="black" strokeWidth={0.506667} />
298
+ <path d="M0 80L80 0" stroke="black" strokeWidth={0.506667} />
299
+ <rect
300
+ x={5.33337}
301
+ y={5.33333}
302
+ width={69.3333}
303
+ height={69.3333}
304
+ stroke="black"
305
+ strokeWidth={0.506667}
306
+ />
307
+ <circle
308
+ cx={40}
309
+ cy={40}
310
+ r={15.3333}
311
+ stroke="black"
312
+ strokeWidth={0.506667}
313
+ />
314
+ <circle cx={40} cy={40} r={22} stroke="black" strokeWidth={0.506667} />
315
+ <circle
316
+ cx={40}
317
+ cy={40}
318
+ r={34.6667}
319
+ stroke="black"
320
+ strokeWidth={0.506667}
321
+ />
322
+ </g>
323
+ <rect
324
+ x={0.253333}
325
+ y={0.253333}
326
+ width={79.4933}
327
+ height={79.4933}
328
+ rx={17.08}
329
+ stroke="black"
330
+ strokeWidth={0.506667}
331
+ />
332
+ <defs>
333
+ <clipPath id="clip0_202_147">
334
+ <rect width={80} height={80} rx={17.3333} fill="white" />
335
+ </clipPath>
336
+ </defs>
337
+ </svg>
338
+ }
339
+
340
+ export function IconQuote() {
341
+ return <svg
342
+ xmlns="http://www.w3.org/2000/svg"
343
+ viewBox="0 0 24 24"
344
+ width="1em"
345
+ height="1em"
346
+ stroke="currentColor"
347
+ fill="currentColor"
348
+ >
349
+ <path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3z" />
350
+ </svg>
351
+ }
352
+
353
+ export function IconCopy() {
354
+ return <svg
355
+ xmlns="http://www.w3.org/2000/svg"
356
+ width="1em"
357
+ height="1em"
358
+ viewBox="0 0 24 24"
359
+ fill="none"
360
+ stroke="currentColor"
361
+ strokeWidth={2}
362
+ strokeLinecap="round"
363
+ strokeLinejoin="round"
364
+ >
365
+ <rect width={14} height={14} x={8} y={8} rx={2} ry={2} />
366
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
367
+ </svg>
368
+ }
369
+ export function IconCheck() {
370
+ return <svg
371
+ xmlns="http://www.w3.org/2000/svg"
372
+ width="1em"
373
+ height="1em"
374
+ viewBox="0 0 24 24"
375
+ fill="none"
376
+ stroke="currentColor"
377
+ strokeWidth={2}
378
+ strokeLinecap="round"
379
+ strokeLinejoin="round"
380
+ >
381
+ <path d="M18 6 7 17l-5-5" />
382
+ <path d="m22 10-7.5 7.5L13 16" />
383
+ </svg>
384
+ }
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "name": "id",
38
38
  "type": "ID!",
39
- "description": "The unique ID of the user",
39
+ "description": "The unique ID of the user, more details [here](#/example).",
40
40
  "properties": []
41
41
  },
42
42
  {
@@ -0,0 +1,89 @@
1
+ @layer overrides {
2
+ :root {
3
+ --oas-method-get-color: #15803d;
4
+ --oas-method-get-bg: rgba(74, 222, 128, .2);
5
+ --oas-method-get-color--active: var(--white);
6
+ --oas-method-get-bg--active: #2ab673;
7
+
8
+ --oas-method-post-color: #1D4ED8;
9
+ --oas-method-post-bg: rgba(96, 165, 250, .2);
10
+ --oas-method-post-color--active: var(--white);
11
+ --oas-method-post-bg--active: #3064e3;
12
+
13
+ --oas-method-put-color: #C28C30;
14
+ --oas-method-put-bg: rgba(250, 204, 21, .2);
15
+ --oas-method-put-color--active: var(--white);
16
+ --oas-method-put-bg--active: #C28C30;
17
+
18
+ --oas-method-delete-color: #B91C1C;
19
+ --oas-method-delete-bg: rgba(248, 114, 114, 0.2);
20
+ --oas-method-delete-color--active: var(--white);
21
+ --oas-method-delete-bg--active: #cb3a32;
22
+
23
+ --oas-method-patch-color: #c2410c;
24
+ --oas-method-patch-bg: rgba(251, 146, 60, .2);
25
+ --oas-method-patch-color--active: var(--white);
26
+ --oas-method-patch-bg--active: #DA622B;
27
+ }
28
+
29
+ /* HTTP Method Colors */
30
+ [atlas-oas-method="GET"] {
31
+ --method-color: var(--oas-method-get-color);
32
+ --method-bg: var(--oas-method-get-bg);
33
+
34
+ &[data-active="true"] {
35
+ --method-bg: var(--oas-method-get-bg--active);
36
+ --method-color: var(--oas-method-get-color--active);
37
+ }
38
+ }
39
+
40
+ [atlas-oas-method="POST"] {
41
+ --method-color: var(--oas-method-post-color);
42
+ --method-bg: var(--oas-method-post-bg);
43
+
44
+ &[data-active="true"] {
45
+ --method-bg: var(--oas-method-post-bg--active);
46
+ --method-color: var(--oas-method-post-color--active);
47
+ }
48
+ }
49
+
50
+ [atlas-oas-method="PUT"] {
51
+ --method-color: var(--oas-method-put-color);
52
+ --method-bg: var(--oas-method-put-bg);
53
+
54
+ &[data-active="true"] {
55
+ --method-bg: var(--oas-method-put-bg--active);
56
+ --method-color: var(--oas-method-put-color--active);
57
+ }
58
+ }
59
+
60
+ [atlas-oas-method="DELETE"] {
61
+ --method-color: var(--oas-method-delete-color);
62
+ --method-bg: var(--oas-method-delete-bg);
63
+
64
+ &[data-active="true"] {
65
+ --method-bg: var(--oas-method-delete-bg--active);
66
+ --method-color: var(--oas-method-delete-color--active);
67
+ }
68
+ }
69
+
70
+ [atlas-oas-method="PATCH"] {
71
+ --method-color: var(--oas-method-patch-color);
72
+ --method-bg: var(--oas-method-patch-bg);
73
+
74
+ &[data-active="true"] {
75
+ --method-bg: var(--oas-method-patch-bg--active);
76
+ --method-color: var(--oas-method-patch-color--active);
77
+ }
78
+ }
79
+
80
+ [atlas-oas-method] {
81
+ color: var(--method-color);
82
+ }
83
+
84
+ [atlas-oas-method] xyd-badge {
85
+ background-color: var(--method-bg);
86
+ color: var(--method-color);
87
+ font-weight: var(--xyd-font-weight-bold);
88
+ }
89
+ }
@@ -0,0 +1,60 @@
1
+ :root {
2
+ /* Ref tokens - Base values */
3
+ --XydAtlas-Ref-Palette-White: #FFFFFF;
4
+
5
+ --XydAtlas-Ref-Palette-Primary-60: #7051d4;
6
+ --XydAtlas-Ref-Palette-Primary-70: #6045b9;
7
+ --XydAtlas-Ref-Palette-Primary-80: #4f399e;
8
+
9
+ --XydAtlas-Ref-Palette-Neutral-10: #F8F9FA;
10
+ --XydAtlas-Ref-Palette-Neutral-20: #F1F3F5;
11
+ --XydAtlas-Ref-Palette-Neutral-30: #E9ECEF;
12
+ --XydAtlas-Ref-Palette-Neutral-40: #DEE2E6;
13
+ --XydAtlas-Ref-Palette-Neutral-70: #6C757D;
14
+ --XydAtlas-Ref-Palette-Neutral-80: #495057;
15
+ --XydAtlas-Ref-Palette-Neutral-100: #212529;
16
+
17
+ /* System tokens - Semantic values */
18
+ --XydAtlas-Sys-Color-Primary: var(--XydAtlas-Ref-Palette-Primary-60);
19
+ --XydAtlas-Sys-Color-Primary--hover: var(--XydAtlas-Ref-Palette-Primary-70);
20
+ --XydAtlas-Sys-Color-Primary--active: var(--XydAtlas-Ref-Palette-Primary-80);
21
+
22
+ --XydAtlas-Sys-Color-Surface: var(--XydAtlas-Ref-Palette-Neutral-10);
23
+ --XydAtlas-Sys-Color-Surface--hover: var(--XydAtlas-Ref-Palette-Neutral-20);
24
+ --XydAtlas-Sys-Color-Surface--active: var(--XydAtlas-Ref-Palette-Neutral-30);
25
+
26
+ --XydAtlas-Sys-Color-Text-Primary: var(--XydAtlas-Ref-Palette-Neutral-100);
27
+ --XydAtlas-Sys-Color-Text-Secondary: var(--XydAtlas-Ref-Palette-Neutral-80);
28
+ --XydAtlas-Sys-Color-Text-Tertiary: var(--XydAtlas-Ref-Palette-Neutral-70);
29
+
30
+ --XydAtlas-Sys-Color-Border: var(--XydAtlas-Ref-Palette-Neutral-30);
31
+ --XydAtlas-Sys-Color-Border--hover: var(--XydAtlas-Ref-Palette-Neutral-40);
32
+ --XydAtlas-Sys-Color-Border--active: var(--XydAtlas-Ref-Palette-Primary-60);
33
+
34
+ /* Component tokens - Specific component values */
35
+ /* ApiRef Properties */
36
+ --XydAtlas-Component-ApiRef-Properties__color-description: var(--XydAtlas-Sys-Color-Text-Secondary);
37
+ --XydAtlas-Component-ApiRef-Properties__color-propName: var(--XydAtlas-Sys-Color-Text-Primary);
38
+ --XydAtlas-Component-ApiRef-Properties__color-propType: var(--XydAtlas-Sys-Color-Text-Tertiary);
39
+ --XydAtlas-Component-ApiRef-Properties__color--active: var(--XydAtlas-Sys-Color-Primary);
40
+ --XydAtlas-Component-ApiRef-Properties__color-border: var(--XydAtlas-Sys-Color-Border);
41
+
42
+ /* ApiRef Item */
43
+ --XydAtlas-Component-ApiRef-Item__color-border: var(--XydAtlas-Sys-Color-Border);
44
+ --XydAtlas-Component-ApiRef-Item__color-navbar: var(--XydAtlas-Sys-Color-Text-Secondary);
45
+ --XydAtlas-Component-ApiRef-Item__background-navbar: var(--XydAtlas-Ref-Palette-Neutral-10);
46
+
47
+ /* Code Sample */
48
+ --XydAtlas-Component-Code-Sample__color-border: var(--XydAtlas-Sys-Color-Border);
49
+ --XydAtlas-Component-Code-Sample__color: var(--XydAtlas-Sys-Color-Text-Secondary);
50
+ --XydAtlas-Component-Code-Sample__color--active: var(--XydAtlas-Sys-Color-Primary);
51
+ --XydAtlas-Component-Code-Sample__color-background: var(--XydAtlas-Sys-Color-Surface--hover);
52
+ --XydAtlas-Component-Code-Sample__color-markBorder--active: var(--XydAtlas-Sys-Color-Primary);
53
+ --XydAtlas-Component-Code-Sample__color-markBackground--active: var(--XydAtlas-Sys-Color-Surface--hover);
54
+
55
+ /* Code Sample Buttons */
56
+ --XydAtlas-Component-Code-SampleButtons__color-containerBackground: var(--XydAtlas-Sys-Color-Surface);
57
+ --XydAtlas-Component-Code-SampleButtons__color-background--active: var(--XydAtlas-Ref-Palette-White);
58
+ --XydAtlas-Component-Code-SampleButtons__color: var(--XydAtlas-Ref-Palette-Neutral-40);
59
+ --XydAtlas-Component-Code-SampleButtons__color--active: var(--XydAtlas-Sys-Color-Text-Primary);
60
+ }