@xyd-js/atlas 0.1.0-build.173

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 (68) 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 +1984 -0
  10. package/LICENSE +21 -0
  11. package/README.md +3 -0
  12. package/declarations.d.ts +4 -0
  13. package/dist/VideoGuide-C0K9fFar-Dk2lkn4r.js +4 -0
  14. package/dist/VideoGuide-C0K9fFar-Dk2lkn4r.js.map +1 -0
  15. package/dist/VideoGuide-CJYkuLst-Dk2lkn4r.js +4 -0
  16. package/dist/VideoGuide-CJYkuLst-Dk2lkn4r.js.map +1 -0
  17. package/dist/index.css +48 -0
  18. package/dist/index.d.ts +38 -0
  19. package/dist/index.js +2 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/styles.css +104 -0
  22. package/dist/tokens.css +60 -0
  23. package/dist/xydPlugin.d.ts +5 -0
  24. package/dist/xydPlugin.js +2 -0
  25. package/dist/xydPlugin.js.map +1 -0
  26. package/index.ts +2 -0
  27. package/package.json +68 -0
  28. package/packages/xyd-plugin/SidebarItem.tsx +27 -0
  29. package/packages/xyd-plugin/index.ts +20 -0
  30. package/postcss.config.cjs +5 -0
  31. package/rollup.config.js +120 -0
  32. package/src/components/ApiRef/ApiRefItem/ApiRefItem.styles.tsx +110 -0
  33. package/src/components/ApiRef/ApiRefItem/ApiRefItem.tsx +557 -0
  34. package/src/components/ApiRef/ApiRefItem/index.ts +7 -0
  35. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.styles.tsx +202 -0
  36. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.tsx +665 -0
  37. package/src/components/ApiRef/ApiRefProperties/index.ts +7 -0
  38. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.styles.tsx +28 -0
  39. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.tsx +69 -0
  40. package/src/components/ApiRef/ApiRefSamples/index.ts +7 -0
  41. package/src/components/ApiRef/index.ts +5 -0
  42. package/src/components/Atlas/Atlas.styles.tsx +5 -0
  43. package/src/components/Atlas/Atlas.tsx +43 -0
  44. package/src/components/Atlas/AtlasContext.tsx +47 -0
  45. package/src/components/Atlas/AtlasDecorator.styles.ts +22 -0
  46. package/src/components/Atlas/AtlasDecorator.tsx +15 -0
  47. package/src/components/Atlas/AtlasLazy/AtlasLazy.styles.tsx +9 -0
  48. package/src/components/Atlas/AtlasLazy/AtlasLazy.tsx +42 -0
  49. package/src/components/Atlas/AtlasLazy/hooks.ts +29 -0
  50. package/src/components/Atlas/AtlasLazy/index.ts +7 -0
  51. package/src/components/Atlas/AtlasPrimary.tsx +21 -0
  52. package/src/components/Atlas/AtlasSecondary.tsx +148 -0
  53. package/src/components/Atlas/index.ts +7 -0
  54. package/src/components/Atlas/types.ts +11 -0
  55. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.styles.tsx +58 -0
  56. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.tsx +97 -0
  57. package/src/components/Code/CodeSampleButtons/index.ts +7 -0
  58. package/src/components/Code/index.ts +2 -0
  59. package/src/components/Icon/index.tsx +386 -0
  60. package/src/docs/AtlasExample/AtlasExample.stories.tsx +47 -0
  61. package/src/docs/AtlasExample/todo-app.uniform.json +625 -0
  62. package/src/docs/AtlasExample/uniform-to-references.ts +101 -0
  63. package/src/styles/styles.css +104 -0
  64. package/src/styles/tokens.css +60 -0
  65. package/src/utils/mdx.ts +2 -0
  66. package/tsconfig.json +51 -0
  67. package/types.d.ts +22 -0
  68. package/vite.config.ts +25 -0
@@ -0,0 +1,202 @@
1
+ import { css } from "@linaria/core";
2
+
3
+ export const ApiRefPropertiesUlHost = css`
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ flex-direction: column;
7
+
8
+ list-style: none;
9
+ border: none;
10
+ `;
11
+
12
+ export const ApiRefPropertiesLiHost = css`
13
+ margin: 0;
14
+ padding: 20px 0px;
15
+ border-bottom: 1px solid var(--dark32);
16
+
17
+ &:first-child {
18
+ padding-top: 0;
19
+ }
20
+
21
+ &:last-child {
22
+ padding-bottom: 0;
23
+ border-bottom: none;
24
+ }
25
+ `;
26
+
27
+ export const ApiRefPropertiesDescriptionHost = css`
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 15px;
31
+
32
+ color: var(--XydAtlas-Component-ApiRef-Properties__color-description);
33
+
34
+ p {
35
+ color: var(--XydAtlas-Component-ApiRef-Properties__color-description);
36
+ }
37
+ `;
38
+
39
+ export const ApiRefPropertiesDlHost = css`
40
+ position: relative;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: flex-start;
44
+ flex-wrap: wrap;
45
+ gap: 10px;
46
+
47
+ margin: 4px 0;
48
+
49
+ dd {
50
+ margin-inline-start: 0px;
51
+ }
52
+ `;
53
+
54
+ export const ApiRefPropertiesPropNameCodeHost = css`
55
+ display: inline-flex;
56
+ padding: 4px 0;
57
+ font-weight: var(--xyd-font-weight-semibold);
58
+ color: var(--XydAtlas-Component-ApiRef-Properties__color-propName);
59
+
60
+ &[data-parent-choice-type="true"] {
61
+ font-weight: var(--xyd-font-weight-normal);
62
+ }
63
+ `;
64
+
65
+ export const ApiRefPropertiesPropTypeCodeHost = css`
66
+ display: inline-flex;
67
+ padding: 4px 0;
68
+ border-radius: 4px;
69
+ color: var(--XydAtlas-Component-ApiRef-Properties__color-propType);
70
+ `;
71
+
72
+ export const ApiRefPropertiesPropTypeCodeLink = css`
73
+ color: var(--XydAtlas-Component-ApiRef-Properties__color--active);
74
+ text-decoration: underline;
75
+
76
+ &:hover {
77
+ text-decoration: none;
78
+ color: var(--XydAtlas-Sys-Color-Primary--hover);
79
+ }
80
+ `;
81
+
82
+ export const ApiRefPropertiesSubPropsHost = css`
83
+ padding: 8px;
84
+ border-style: none;
85
+ display: none;
86
+ `;
87
+
88
+ export const ApiRefPropertiesSubPropsHostExpanded = css`
89
+ display: unset;
90
+ `;
91
+
92
+ export const ApiRefPropertiesSubPropsBox = css`
93
+ `;
94
+
95
+ export const ApiRefPropertiesSubPropsUl = css`
96
+ display: flex;
97
+ flex-wrap: wrap;
98
+ flex-direction: column;
99
+ gap: 16px;
100
+
101
+ padding: 0;
102
+ margin: 0;
103
+
104
+ list-style: none;
105
+
106
+ border: none;
107
+ border-left: 1px solid var(--XydAtlas-Component-ApiRef-Properties__color-border);
108
+ `;
109
+
110
+ export const ApiRefPropertiesSubPropsLi = css`
111
+ padding: 0 16px;
112
+ `;
113
+
114
+ export const ApiRefPropertiesPropToggleHost = css`
115
+ display: flex;
116
+ align-items: center;
117
+ padding: 0;
118
+ margin-top: 5px;
119
+
120
+ background: none;
121
+ outline: inherit;
122
+ border: none;
123
+
124
+ cursor: pointer;
125
+ color: inherit;
126
+
127
+ svg {
128
+ font-size: var(--xyd-font-size-small);
129
+ }
130
+
131
+ &:hover {
132
+ svg {
133
+ transition: all ease-in .1s;
134
+ color: var(--XydAtlas-Component-ApiRef-Properties__color--active);
135
+ }
136
+ }
137
+ `;
138
+
139
+ export const ApiRefPropertiesPropToggleLink = css`
140
+ text-decoration: none;
141
+ cursor: pointer;
142
+ margin-left: 4px;
143
+
144
+ &:hover {
145
+ transition: all ease-in .1s;
146
+ color: var(--XydAtlas-Component-ApiRef-Properties__color--active);
147
+ }
148
+ `;
149
+
150
+ export const globals = css`
151
+ :global() {
152
+ atlas-apiref-propmeta { // TODO: !!! BETTER API !!! - FOR CUSTOM COMPONENTS
153
+ font-size: var(--xyd-font-size-xsmall);
154
+ line-height: var(--xyd-line-height-xsmall);
155
+
156
+
157
+ code {
158
+ display: inline-flex;
159
+ padding: 4px 0;
160
+ border-radius: 4px;
161
+ color: var(--XydAtlas-Component-ApiRef-Properties__color-propType);
162
+ }
163
+ &[data-name="required"] {
164
+ code {
165
+ color: var(--xyd-text-color--error);
166
+ }
167
+ }
168
+
169
+ a {
170
+ color: var(--XydAtlas-Component-ApiRef-Properties__color--active);
171
+ text-decoration: underline;
172
+
173
+ &:hover {
174
+ text-decoration: none;
175
+ color: var(--XydAtlas-Sys-Color-Primary--hover);
176
+ }
177
+ }
178
+ }
179
+ }
180
+ `;
181
+
182
+ export const ApiRefPropertiesMetaInfoHost = css`
183
+ display: flex;
184
+ flex-direction: column;
185
+ gap: 4px;
186
+
187
+ [part="examples"] {
188
+ display: inline;
189
+
190
+ span {
191
+ margin-right: 2px;
192
+ }
193
+ }
194
+
195
+ [part="examples-list"] {
196
+ display: inline;
197
+
198
+ xyd-badge {
199
+ margin-right: 2px;
200
+ }
201
+ }
202
+ `;