@xyd-js/atlas 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 (66) hide show
  1. package/.babelrc +6 -0
  2. package/.storybook/index.css +6 -0
  3. package/.storybook/main.ts +19 -0
  4. package/.storybook/preview.ts +17 -0
  5. package/.storybook/public/fonts/fustat-ext-500.woff2 +0 -0
  6. package/.storybook/public/fonts/fustat-ext-600.woff2 +0 -0
  7. package/.storybook/public/fonts/fustat-ext-700.woff2 +0 -0
  8. package/.storybook/public/fonts/fustat-regular.woff2 +0 -0
  9. package/CHANGELOG.md +13 -0
  10. package/LICENSE +21 -0
  11. package/README.md +3 -0
  12. package/declarations.d.ts +4 -0
  13. package/dist/VideoGuide-BLUkXIOB-Dk2lkn4r.js +4 -0
  14. package/dist/VideoGuide-BLUkXIOB-Dk2lkn4r.js.map +1 -0
  15. package/dist/index.css +48 -0
  16. package/dist/index.d.ts +38 -0
  17. package/dist/index.js +2 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/styles.css +104 -0
  20. package/dist/tokens.css +60 -0
  21. package/dist/xydPlugin.d.ts +5 -0
  22. package/dist/xydPlugin.js +2 -0
  23. package/dist/xydPlugin.js.map +1 -0
  24. package/index.ts +2 -0
  25. package/package.json +68 -0
  26. package/packages/xyd-plugin/SidebarItem.tsx +27 -0
  27. package/packages/xyd-plugin/index.ts +20 -0
  28. package/postcss.config.cjs +5 -0
  29. package/rollup.config.js +120 -0
  30. package/src/components/ApiRef/ApiRefItem/ApiRefItem.styles.tsx +110 -0
  31. package/src/components/ApiRef/ApiRefItem/ApiRefItem.tsx +557 -0
  32. package/src/components/ApiRef/ApiRefItem/index.ts +7 -0
  33. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.styles.tsx +202 -0
  34. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.tsx +665 -0
  35. package/src/components/ApiRef/ApiRefProperties/index.ts +7 -0
  36. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.styles.tsx +28 -0
  37. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.tsx +69 -0
  38. package/src/components/ApiRef/ApiRefSamples/index.ts +7 -0
  39. package/src/components/ApiRef/index.ts +5 -0
  40. package/src/components/Atlas/Atlas.styles.tsx +5 -0
  41. package/src/components/Atlas/Atlas.tsx +43 -0
  42. package/src/components/Atlas/AtlasContext.tsx +47 -0
  43. package/src/components/Atlas/AtlasDecorator.styles.ts +22 -0
  44. package/src/components/Atlas/AtlasDecorator.tsx +15 -0
  45. package/src/components/Atlas/AtlasLazy/AtlasLazy.styles.tsx +9 -0
  46. package/src/components/Atlas/AtlasLazy/AtlasLazy.tsx +42 -0
  47. package/src/components/Atlas/AtlasLazy/hooks.ts +29 -0
  48. package/src/components/Atlas/AtlasLazy/index.ts +7 -0
  49. package/src/components/Atlas/AtlasPrimary.tsx +21 -0
  50. package/src/components/Atlas/AtlasSecondary.tsx +148 -0
  51. package/src/components/Atlas/index.ts +7 -0
  52. package/src/components/Atlas/types.ts +11 -0
  53. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.styles.tsx +58 -0
  54. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.tsx +97 -0
  55. package/src/components/Code/CodeSampleButtons/index.ts +7 -0
  56. package/src/components/Code/index.ts +2 -0
  57. package/src/components/Icon/index.tsx +386 -0
  58. package/src/docs/AtlasExample/AtlasExample.stories.tsx +47 -0
  59. package/src/docs/AtlasExample/todo-app.uniform.json +625 -0
  60. package/src/docs/AtlasExample/uniform-to-references.ts +101 -0
  61. package/src/styles/styles.css +104 -0
  62. package/src/styles/tokens.css +60 -0
  63. package/src/utils/mdx.ts +2 -0
  64. package/tsconfig.json +51 -0
  65. package/types.d.ts +22 -0
  66. package/vite.config.ts +25 -0
@@ -0,0 +1,386 @@
1
+ import * as React from "react"
2
+
3
+ export function IconSessionReplay() {
4
+ return <svg
5
+ width={24}
6
+ height={24}
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <path
12
+ 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"
13
+ stroke="black"
14
+ strokeWidth={2}
15
+ strokeLinecap="round"
16
+ strokeLinejoin="round"
17
+ />
18
+ <path
19
+ d="M10 8L16 12L10 16V8Z"
20
+ stroke="black"
21
+ strokeWidth={2}
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ />
25
+ </svg>
26
+ }
27
+
28
+ export function IconMetrics() {
29
+ return <svg
30
+ width={24}
31
+ height={24}
32
+ viewBox="0 0 24 24"
33
+ fill="none"
34
+ xmlns="http://www.w3.org/2000/svg"
35
+ >
36
+ <path
37
+ d="M21 7L13.2273 14.9167L9.13636 10.75L3 17"
38
+ stroke="black"
39
+ strokeWidth={2}
40
+ strokeLinecap="round"
41
+ strokeLinejoin="round"
42
+ />
43
+ <path
44
+ d="M16 7H21V12"
45
+ stroke="black"
46
+ strokeWidth={2}
47
+ strokeLinecap="round"
48
+ strokeLinejoin="round"
49
+ />
50
+ </svg>
51
+ }
52
+
53
+ export function IconFunnels() {
54
+ return <svg
55
+ width={24}
56
+ height={24}
57
+ viewBox="0 0 24 24"
58
+ fill="none"
59
+ xmlns="http://www.w3.org/2000/svg"
60
+ >
61
+ <path
62
+ d="M12 20L12 10"
63
+ stroke="black"
64
+ strokeWidth={2}
65
+ strokeLinecap="round"
66
+ strokeLinejoin="round"
67
+ />
68
+ <path
69
+ d="M6 20L6 4"
70
+ stroke="black"
71
+ strokeWidth={2}
72
+ strokeLinecap="round"
73
+ strokeLinejoin="round"
74
+ />
75
+ <path
76
+ d="M18 20L18 16"
77
+ stroke="black"
78
+ strokeWidth={2}
79
+ strokeLinecap="round"
80
+ strokeLinejoin="round"
81
+ />
82
+ </svg>
83
+ }
84
+
85
+ export function IconCode() {
86
+ return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={24} height={24}>
87
+ <path
88
+ fillRule="evenodd"
89
+ 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"
90
+ clipRule="evenodd"
91
+ />
92
+ </svg>
93
+ }
94
+
95
+ export function IconCustomEvent() {
96
+ return <svg
97
+ width={24}
98
+ height={24}
99
+ viewBox="0 0 16 16"
100
+ fill="none"
101
+ xmlns="http://www.w3.org/2000/svg"
102
+ >
103
+ <path
104
+ 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"
105
+ stroke="black"
106
+ strokeWidth={1.2}
107
+ strokeLinejoin="round"
108
+ />
109
+ </svg>
110
+ }
111
+
112
+ export function IconAlert() {
113
+ return <svg
114
+ width={24}
115
+ height={24}
116
+ viewBox="0 0 24 24"
117
+ fill="none"
118
+ xmlns="http://www.w3.org/2000/svg"
119
+ >
120
+ <path
121
+ 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"
122
+ stroke="black"
123
+ strokeWidth={2}
124
+ strokeLinecap="round"
125
+ strokeLinejoin="round"
126
+ />
127
+ <path
128
+ 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"
129
+ stroke="black"
130
+ strokeWidth={2}
131
+ strokeLinecap="round"
132
+ strokeLinejoin="round"
133
+ />
134
+ </svg>
135
+ }
136
+
137
+ export function IconBrowser() {
138
+ return <svg
139
+ xmlns="http://www.w3.org/2000/svg"
140
+ width={24}
141
+ height={24}
142
+ viewBox="0 0 24 24"
143
+ fill="none"
144
+ >
145
+ <path
146
+ 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"
147
+ stroke="#000000"
148
+ strokeWidth={2}
149
+ strokeLinecap="round"
150
+ strokeLinejoin="round"
151
+ />
152
+ </svg>
153
+ }
154
+
155
+ export function IconREST() {
156
+ return <svg
157
+ xmlns="http://www.w3.org/2000/svg"
158
+ width={24}
159
+ height={24}
160
+ viewBox="0 0 16 16"
161
+ fill="none"
162
+ >
163
+ <path
164
+ fill="#000000"
165
+ fillRule="evenodd"
166
+ 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"
167
+ clipRule="evenodd"
168
+ />
169
+ </svg>
170
+ }
171
+
172
+ export function IconGraphQL() {
173
+ return <svg
174
+ xmlns="http://www.w3.org/2000/svg"
175
+ fill="#000"
176
+ width={24}
177
+ height={24}
178
+ viewBox="0 0 32 32"
179
+ >
180
+ <path
181
+ 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" />
182
+ </svg>
183
+ }
184
+
185
+ export function IconWebhooks() {
186
+ return <svg
187
+ xmlns="http://www.w3.org/2000/svg"
188
+ xmlnsXlink="http://www.w3.org/1999/xlink"
189
+ width={24}
190
+ height={24}
191
+ viewBox="-10 -5 1034 1034"
192
+ >
193
+ <path
194
+ fill="#000000"
195
+ 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"
196
+ />
197
+ </svg>
198
+ }
199
+
200
+ export function IconJSBrowser() {
201
+ return <svg
202
+ xmlns="http://www.w3.org/2000/svg"
203
+ viewBox="0 0 448 512"
204
+ width={24}
205
+ height={24}
206
+ >
207
+ <path
208
+ 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" />
209
+ </svg>
210
+ }
211
+
212
+ export function IconJSNode() {
213
+ return <svg
214
+ width={24}
215
+ height={24}
216
+ xmlns="http://www.w3.org/2000/svg"
217
+ data-name="Layer 1"
218
+ viewBox="0 0 109 122.88"
219
+ >
220
+ <defs>
221
+ <style>{".cls-1{fill-rule:evenodd;}"}</style>
222
+ </defs>
223
+ <title>{"node-js-black"}</title>
224
+ <path
225
+ className="cls-1"
226
+ 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"
227
+ />
228
+ </svg>
229
+ }
230
+
231
+ export function IconStorybook() {
232
+ return <svg
233
+ xmlns="http://www.w3.org/2000/svg"
234
+ fill="#000000"
235
+ width={24}
236
+ height={24}
237
+ viewBox="0 0 32 32"
238
+ >
239
+ <path
240
+ 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" />
241
+ </svg>
242
+ }
243
+
244
+ export function IconReactRouter() {
245
+ return <svg
246
+ xmlns="http://www.w3.org/2000/svg"
247
+ width={24}
248
+ height={24}
249
+ viewBox="0 0 602 360"
250
+ fill="none"
251
+ >
252
+ <path
253
+ 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"
254
+ fill="#121212"
255
+ />
256
+ <path
257
+ 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"
258
+ fill="#121212"
259
+ />
260
+ <path
261
+ 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"
262
+ fill="#121212"
263
+ />
264
+ <path
265
+ 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"
266
+ fill="#121212"
267
+ />
268
+ </svg>
269
+ }
270
+
271
+ export function IconNextJS() {
272
+ return <svg
273
+ xmlns="http://www.w3.org/2000/svg"
274
+ width={24}
275
+ height={24}
276
+ viewBox="0 0 15 15"
277
+ fill="none"
278
+ >
279
+ <path
280
+ 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"
281
+ fill="#000000"
282
+ />
283
+ </svg>
284
+ }
285
+
286
+ export function IconAppTemplate() {
287
+ return <svg
288
+ xmlns="http://www.w3.org/2000/svg"
289
+ viewBox="0 0 80 80"
290
+ fill="none"
291
+ >
292
+ <g clipPath="url(#clip0_202_147)">
293
+ <path d="M0 55.3333H80" stroke="black" strokeWidth={0.506667} />
294
+ <path d="M0 40H80" stroke="black" strokeWidth={0.506667} />
295
+ <path d="M0 24.6667H80" stroke="black" strokeWidth={0.506667} />
296
+ <path d="M55.3334 80V0" stroke="black" strokeWidth={0.506667} />
297
+ <path d="M40 80V0" stroke="black" strokeWidth={0.506667} />
298
+ <path d="M24.6666 80V0" stroke="black" strokeWidth={0.506667} />
299
+ <path d="M80 80L0 0" stroke="black" strokeWidth={0.506667} />
300
+ <path d="M0 80L80 0" stroke="black" strokeWidth={0.506667} />
301
+ <rect
302
+ x={5.33337}
303
+ y={5.33333}
304
+ width={69.3333}
305
+ height={69.3333}
306
+ stroke="black"
307
+ strokeWidth={0.506667}
308
+ />
309
+ <circle
310
+ cx={40}
311
+ cy={40}
312
+ r={15.3333}
313
+ stroke="black"
314
+ strokeWidth={0.506667}
315
+ />
316
+ <circle cx={40} cy={40} r={22} stroke="black" strokeWidth={0.506667} />
317
+ <circle
318
+ cx={40}
319
+ cy={40}
320
+ r={34.6667}
321
+ stroke="black"
322
+ strokeWidth={0.506667}
323
+ />
324
+ </g>
325
+ <rect
326
+ x={0.253333}
327
+ y={0.253333}
328
+ width={79.4933}
329
+ height={79.4933}
330
+ rx={17.08}
331
+ stroke="black"
332
+ strokeWidth={0.506667}
333
+ />
334
+ <defs>
335
+ <clipPath id="clip0_202_147">
336
+ <rect width={80} height={80} rx={17.3333} fill="white" />
337
+ </clipPath>
338
+ </defs>
339
+ </svg>
340
+ }
341
+
342
+ export function IconQuote() {
343
+ return <svg
344
+ xmlns="http://www.w3.org/2000/svg"
345
+ viewBox="0 0 24 24"
346
+ width="1em"
347
+ height="1em"
348
+ stroke="currentColor"
349
+ fill="currentColor"
350
+ >
351
+ <path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3z" />
352
+ </svg>
353
+ }
354
+
355
+ export function IconCopy() {
356
+ return <svg
357
+ xmlns="http://www.w3.org/2000/svg"
358
+ width="1em"
359
+ height="1em"
360
+ viewBox="0 0 24 24"
361
+ fill="none"
362
+ stroke="currentColor"
363
+ strokeWidth={2}
364
+ strokeLinecap="round"
365
+ strokeLinejoin="round"
366
+ >
367
+ <rect width={14} height={14} x={8} y={8} rx={2} ry={2} />
368
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
369
+ </svg>
370
+ }
371
+ export function IconCheck() {
372
+ return <svg
373
+ xmlns="http://www.w3.org/2000/svg"
374
+ width="1em"
375
+ height="1em"
376
+ viewBox="0 0 24 24"
377
+ fill="none"
378
+ stroke="currentColor"
379
+ strokeWidth={2}
380
+ strokeLinecap="round"
381
+ strokeLinejoin="round"
382
+ >
383
+ <path d="M18 6 7 17l-5-5" />
384
+ <path d="m22 10-7.5 7.5L13 16" />
385
+ </svg>
386
+ }
@@ -0,0 +1,47 @@
1
+ import React, {useState, useEffect} from 'react';
2
+ import type {Meta} from '@storybook/react';
3
+
4
+ import {Reference} from '@xyd-js/uniform';
5
+
6
+ import {MDXReference} from "@/utils/mdx";
7
+ import {Atlas} from '@/components/Atlas';
8
+ import {uniformToReferences} from "./uniform-to-references";
9
+
10
+ const HelloWorld = () => {
11
+ return <h1>Hello, World!</h1>;
12
+ };
13
+
14
+ export default {
15
+ title: 'Atlas/Atlas',
16
+ component: HelloWorld,
17
+ } as Meta;
18
+
19
+ // const Template = (args) => <Atlas/>;
20
+
21
+ const Template = (args) => {
22
+ const [references, setReferences] = useState<MDXReference<Reference[]> | []>([])
23
+
24
+ async function load() {
25
+ const resp = await uniformToReferences()
26
+ if (resp && resp.length) {
27
+ setReferences(resp)
28
+ }
29
+ }
30
+
31
+ useEffect(() => {
32
+ load()
33
+ }, [])
34
+
35
+ return <div style={{
36
+ width: "1200px",
37
+ display: "flex",
38
+ alignItems: "center",
39
+ flexDirection: "column",
40
+ margin: "0 auto"
41
+ }}>
42
+ <Atlas references={references}/>
43
+ </div>
44
+ }
45
+
46
+ export const Default = Template.bind({});
47
+ Default.args = {};