@ebrains/react 0.0.1-alpha.0 → 0.2.0-alpha.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 (108) hide show
  1. package/README.md +4 -48
  2. package/arrow-diagonal-black-8f0494c3.esm.js +3 -0
  3. package/arrow-right-9322ba8a.esm.js +5 -0
  4. package/bluesky-cc5edd2d.esm.js +14 -0
  5. package/chevron-down-6144c823.esm.js +12 -0
  6. package/chevron-left-ca6c66e1.esm.js +11 -0
  7. package/chevron-right-b88ed2d4.esm.js +5 -0
  8. package/chevron-up-c66bd477.esm.js +12 -0
  9. package/close-87fc0d63.esm.js +5 -0
  10. package/color-0ba8ed56.esm.js +423 -0
  11. package/color-primary-palette_6.entry.esm.js +756 -0
  12. package/copy-03b72cb6.esm.js +5 -0
  13. package/correct-use-of-colors.entry.esm.js +243 -0
  14. package/eds-accordion.entry.esm.js +132 -0
  15. package/eds-alert_28.entry.esm.js +227 -0
  16. package/eds-block-break.entry.esm.js +22 -0
  17. package/eds-breadcrumb.entry.esm.js +169 -0
  18. package/eds-card-project.entry.esm.js +92 -0
  19. package/eds-card-section.entry.esm.js +60 -0
  20. package/eds-card-tags.entry.esm.js +27 -0
  21. package/eds-card-tool.entry.esm.js +106 -0
  22. package/eds-card-wrapper.entry.esm.js +39 -0
  23. package/eds-code-block.entry.esm.js +2243 -0
  24. package/eds-components-section.entry.esm.js +113 -0
  25. package/eds-docs-palettes.entry.esm.js +29 -0
  26. package/eds-docs-tokens.entry.esm.js +45 -0
  27. package/eds-footer.entry.esm.js +110 -0
  28. package/eds-frame.entry.esm.js +117 -0
  29. package/eds-fullscreen-menu.entry.esm.js +143 -0
  30. package/eds-icon-arrow-diagonal.entry.esm.js +21 -0
  31. package/eds-icon-arrow-right.entry.esm.js +21 -0
  32. package/eds-icon-bluesky.entry.esm.js +21 -0
  33. package/eds-icon-chevron-down.entry.esm.js +21 -0
  34. package/eds-icon-chevron-left.entry.esm.js +21 -0
  35. package/eds-icon-chevron-right.entry.esm.js +21 -0
  36. package/eds-icon-chevron-up.entry.esm.js +21 -0
  37. package/eds-icon-close.entry.esm.js +21 -0
  38. package/eds-icon-copy.entry.esm.js +21 -0
  39. package/eds-icon-eu.entry.esm.js +21 -0
  40. package/eds-icon-facebook.entry.esm.js +21 -0
  41. package/eds-icon-gitlab.entry.esm.js +21 -0
  42. package/eds-icon-linkedin.entry.esm.js +21 -0
  43. package/eds-icon-loader.entry.esm.js +21 -0
  44. package/eds-icon-mastodon.entry.esm.js +21 -0
  45. package/eds-icon-menu.entry.esm.js +21 -0
  46. package/eds-icon-more.entry.esm.js +21 -0
  47. package/eds-icon-search.entry.esm.js +21 -0
  48. package/eds-icon-success.entry.esm.js +21 -0
  49. package/eds-icon-twitter.entry.esm.js +21 -0
  50. package/eds-icon-user.entry.esm.js +21 -0
  51. package/eds-icon-youtube.entry.esm.js +21 -0
  52. package/eds-login.entry.esm.js +84 -0
  53. package/eds-matomo-notice.entry.esm.js +129 -0
  54. package/eds-modal.entry.esm.js +114 -0
  55. package/eds-navigator.entry.esm.js +72 -0
  56. package/eds-pagination.entry.esm.js +258 -0
  57. package/eds-rating.entry.esm.js +71 -0
  58. package/eds-section-core_2.entry.esm.js +69 -0
  59. package/eds-social-networks.entry.esm.js +74 -0
  60. package/eds-svg-repository.entry.esm.js +316 -0
  61. package/eds-tab.entry.esm.js +41 -0
  62. package/eds-table.entry.esm.js +196 -0
  63. package/eds-tabs-content.entry.esm.js +145 -0
  64. package/eds-tabs.entry.esm.js +136 -0
  65. package/eds-tooltip.entry.esm.js +116 -0
  66. package/eu-9ddde93a.esm.js +30 -0
  67. package/facebook-9cb5c17f.esm.js +14 -0
  68. package/incorrect-use-of-colors.entry.esm.js +70 -0
  69. package/index-39c58238.esm.js +58 -0
  70. package/index.esm.js +3 -2668
  71. package/index.esm2.js +4783 -0
  72. package/keycloak-13893af6.esm.js +1594 -0
  73. package/linkedin-e8650abb.esm.js +28 -0
  74. package/loader-c9628637.esm.js +30 -0
  75. package/logo-color-7f1fd803.esm.js +115 -0
  76. package/logo-color-margins-ff8ce71b.esm.js +118 -0
  77. package/logo-space.entry.esm.js +32 -0
  78. package/logo-variations-horizontal.entry.esm.js +50 -0
  79. package/logo-variations-vertical.entry.esm.js +53 -0
  80. package/logo-white-no-bg-f382f86f.esm.js +1021 -0
  81. package/logo-wrong-usage.entry.esm.js +137 -0
  82. package/mastodon-3703ec61.esm.js +14 -0
  83. package/menu-340ea948.esm.js +11 -0
  84. package/mono-53f70232.esm.js +11 -0
  85. package/more-4449d549.esm.js +13 -0
  86. package/package.json +1 -1
  87. package/search-fbcd79c2.esm.js +12 -0
  88. package/src/components.d.ts +38 -0
  89. package/src/index.d.ts +1 -1
  90. package/src/react-component-lib/attachProps.d.ts +16 -0
  91. package/src/react-component-lib/case.d.ts +2 -0
  92. package/src/react-component-lib/createComponent.d.ts +10 -0
  93. package/src/react-component-lib/createOverlayComponent.d.ts +21 -0
  94. package/src/react-component-lib/dev.d.ts +2 -0
  95. package/src/react-component-lib/index.d.ts +2 -0
  96. package/src/react-component-lib/interfaces.d.ts +29 -0
  97. package/src/react-component-lib/utils/attachProps.d.ts +16 -0
  98. package/src/react-component-lib/utils/case.d.ts +2 -0
  99. package/src/react-component-lib/utils/index.d.ts +10 -0
  100. package/success-443809da.esm.js +18 -0
  101. package/toastManager-d9eee791.esm.js +34 -0
  102. package/token-list_3.entry.esm.js +385 -0
  103. package/token-ratios.entry.esm.js +49 -0
  104. package/token-spacing.entry.esm.js +93 -0
  105. package/token-typography.entry.esm.js +264 -0
  106. package/twitter-ac21b505.esm.js +14 -0
  107. package/user-71ebdc15.esm.js +16 -0
  108. package/youtube-efbfbdc4.esm.js +14 -0
@@ -0,0 +1,264 @@
1
+ import { r as registerInstance, h } from './index.esm2.js';
2
+ import 'react';
3
+ import 'react/jsx-runtime';
4
+ import 'react-dom';
5
+
6
+ const headings = {
7
+ 'heading-01': {
8
+ sm: {
9
+ fontFamily: 'var(--sans)',
10
+ fontWeight: 800,
11
+ fontSize: '42px',
12
+ lineHeight: '100%',
13
+ letterSpacing: '-0.01em'
14
+ },
15
+ md: {
16
+ fontSize: '48px'
17
+ },
18
+ lg: {
19
+ fontSize: '72px'
20
+ },
21
+ xl: {
22
+ fontSize: '83px'
23
+ }
24
+ },
25
+ 'heading-02': {
26
+ sm: {
27
+ fontFamily: 'var(--sans)',
28
+ fontWeight: 800,
29
+ fontSize: '36px',
30
+ lineHeight: '100%',
31
+ letterSpacing: '-0.01em'
32
+ },
33
+ lg: {
34
+ fontSize: '48px'
35
+ },
36
+ xl: {
37
+ fontSize: '60px'
38
+ }
39
+ },
40
+ 'heading-03': {
41
+ sm: {
42
+ fontFamily: 'var(--sans)',
43
+ fontWeight: 800,
44
+ fontSize: '36px',
45
+ lineHeight: '100%',
46
+ letterSpacing: '-0.01em'
47
+ },
48
+ xl: {
49
+ fontSize: '42px'
50
+ }
51
+ },
52
+ 'heading-04': {
53
+ sm: {
54
+ fontFamily: 'var(--sans)',
55
+ fontWeight: 800,
56
+ fontSize: '28px',
57
+ lineHeight: '100%',
58
+ letterSpacing: '-0.01em'
59
+ },
60
+ xl: {
61
+ fontSize: '36px'
62
+ }
63
+ },
64
+ 'heading-05': {
65
+ sm: {
66
+ fontFamily: 'var(--sans)',
67
+ fontWeight: 800,
68
+ fontSize: '28px',
69
+ lineHeight: '110%',
70
+ letterSpacing: '-0.01em'
71
+ }
72
+ },
73
+ 'heading-06': {
74
+ sm: {
75
+ fontFamily: 'var(--sans)',
76
+ fontWeight: 800,
77
+ fontSize: '22px',
78
+ lineHeight: '120%'
79
+ }
80
+ }
81
+ };
82
+ const bodies = {
83
+ 'body-01': {
84
+ sm: {
85
+ fontFamily: 'var(--sans)',
86
+ fontWeight: 600,
87
+ fontSize: '20px',
88
+ lineHeight: '140%',
89
+ letterSpacing: '-0.01em'
90
+ }
91
+ },
92
+ 'body-02': {
93
+ sm: {
94
+ fontFamily: 'var(--sans)',
95
+ fontWeight: 600,
96
+ fontSize: '17px',
97
+ lineHeight: '150%'
98
+ }
99
+ }
100
+ };
101
+ const uis = {
102
+ 'ui-01': {
103
+ sm: {
104
+ fontFamily: 'var(--sans)',
105
+ fontWeight: 800,
106
+ fontSize: '18px',
107
+ lineHeight: '110%',
108
+ letterSpacing: '-0.01em'
109
+ }
110
+ },
111
+ 'ui-02': {
112
+ sm: {
113
+ fontFamily: 'var(--sans)',
114
+ fontWeight: 800,
115
+ fontSize: '16px',
116
+ lineHeight: '110%',
117
+ letterSpacing: '-0.01em'
118
+ }
119
+ },
120
+ 'ui-02-light': {
121
+ sm: {
122
+ fontFamily: 'var(--sans)',
123
+ fontWeight: 600,
124
+ fontSize: '16px',
125
+ lineHeight: '110%',
126
+ letterSpacing: '-0.01em'
127
+ }
128
+ },
129
+ 'ui-03': {
130
+ sm: {
131
+ fontFamily: 'var(--sans)',
132
+ fontWeight: 800,
133
+ fontSize: '14px',
134
+ lineHeight: '110%',
135
+ letterSpacing: '-0.01em'
136
+ }
137
+ },
138
+ 'ui-03-light': {
139
+ sm: {
140
+ fontFamily: 'var(--sans)',
141
+ fontWeight: 600,
142
+ fontSize: '14px',
143
+ lineHeight: '130%',
144
+ letterSpacing: '-0.01em'
145
+ }
146
+ },
147
+ 'ui-04': {
148
+ sm: {
149
+ fontFamily: 'var(--sans)',
150
+ fontWeight: 800,
151
+ fontSize: '12px',
152
+ lineHeight: '100%',
153
+ letterSpacing: '-0.01em'
154
+ }
155
+ },
156
+ 'ui-05': {
157
+ sm: {
158
+ fontFamily: 'var(--sans)',
159
+ fontWeight: 800,
160
+ fontSize: '10px',
161
+ lineHeight: '110%',
162
+ letterSpacing: '-0.01em'
163
+ }
164
+ },
165
+ caption: {
166
+ sm: {
167
+ fontFamily: 'var(--sans)',
168
+ fontWeight: 800,
169
+ fontSize: '12px',
170
+ lineHeight: '120%'
171
+ }
172
+ }
173
+ };
174
+ const displays = {
175
+ 'display-01': {
176
+ sm: {
177
+ fontFamily: 'var(--sans)',
178
+ fontWeight: 800,
179
+ fontSize: '120px',
180
+ lineHeight: '100%',
181
+ letterSpacing: '-0.01em'
182
+ },
183
+ lg: {
184
+ fontSize: '150px'
185
+ }
186
+ }
187
+ };
188
+ const typography = {
189
+ families: {
190
+ sans: 'Inter, Helvetica, Arial, sans-serif'
191
+ },
192
+ typesets: {
193
+ ...headings,
194
+ ...bodies,
195
+ ...uis,
196
+ ...displays
197
+ }
198
+ };
199
+ const TokenTypography = class {
200
+ constructor(hostRef) {
201
+ registerInstance(this, hostRef);
202
+ }
203
+ render() {
204
+ return h("section", {
205
+ key: '2078622c91b8906b71ee3aebdadcda0ac2c49512',
206
+ class: "w-full"
207
+ }, h("ul", {
208
+ key: 'fe9212731cddcd43e3d5f5518245911d9d4cd493',
209
+ class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
210
+ }, Object.entries(typography.typesets).filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
211
+ .flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => h("li", {
212
+ class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
213
+ }, h("div", {
214
+ class: "w-full p-4 block lg:flex items-center border border-soft rounded"
215
+ }, h("div", {
216
+ class: "mr-auto hidden lg:block",
217
+ style: {
218
+ fontFamily: typography.families.sans,
219
+ fontWeight: style.fontWeight,
220
+ fontSize: style.fontSize,
221
+ lineHeight: style.lineHeight,
222
+ letterSpacing: style.letterSpacing
223
+ }
224
+ }, h("span", {
225
+ class: "text-default font-bold"
226
+ }, `${typeKey} (${size})`)), h("div", {
227
+ class: "mr-auto block lg:hidden p-4"
228
+ }, h("span", {
229
+ class: "text-default f-heading-05"
230
+ }, `${typeKey} (${size})`)), h("div", {
231
+ class: "ml-auto"
232
+ }, h("eds-code-block", {
233
+ code: `f-${typeKey}`,
234
+ language: "Utility Class",
235
+ class: "min-w-[250px] mb-4"
236
+ }), h("eds-code-block", {
237
+ code: `${size}:f-${typeKey}`,
238
+ language: "Screen",
239
+ class: "min-w-[250px] mb-4"
240
+ }), h("eds-code-block", {
241
+ code: [style.fontSize && `font-size: ${style.fontSize};`, style.lineHeight && `line-height: ${style.lineHeight};`, style.letterSpacing && `letter-spacing: ${style.letterSpacing};`, style.fontWeight && `font-weight: ${style.fontWeight};`, style.fontFamily && `font-family: ${style.fontFamily};`].filter(Boolean) // Remove any falsy values (e.g., undefined, null)
242
+ .join('\n'),
243
+ language: "css",
244
+ class: "min-w-[250px] mb-4"
245
+ }), h("eds-code-block", {
246
+ code: `--var(--f-${typeKey}-fontFamily)`,
247
+ class: "min-w-[250px] mb-4"
248
+ }), h("eds-code-block", {
249
+ code: `--var(--f-${typeKey}-fontWeight)`,
250
+ class: "min-w-[250px] mb-4"
251
+ }), h("eds-code-block", {
252
+ code: `--var(--f-${typeKey}-fontSize)`,
253
+ class: "min-w-[250px] mb-4"
254
+ }), h("eds-code-block", {
255
+ code: `--var(--f-${typeKey}-lineHeight)`,
256
+ class: "min-w-[250px] mb-4"
257
+ }), h("eds-code-block", {
258
+ code: `--var(--f-${typeKey}-letterSpacing)`,
259
+ class: "min-w-[250px] mb-4"
260
+ }))))))));
261
+ }
262
+ };
263
+
264
+ export { TokenTypography as token_typography };
@@ -0,0 +1,14 @@
1
+ const twitter = ` <svg
2
+ width="20"
3
+ height="20"
4
+ viewBox="0 0 20 20"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <path
9
+ d="M7.03188 17C13.07 17 16.3718 11.999 16.3718 7.66246C16.3718 7.52041 16.3689 7.37901 16.3625 7.23824C17.0035 6.775 17.5606 6.1969 18 5.53882C17.4118 5.80019 16.7789 5.97615 16.1149 6.05549C16.7926 5.64919 17.313 5.00647 17.5584 4.24026C16.9242 4.61617 16.2217 4.88938 15.4739 5.03686C14.8748 4.39894 14.022 4 13.0777 4C11.2649 4 9.7948 5.46972 9.7948 7.28143C9.7948 7.53897 9.8236 7.78947 9.87992 8.02973C7.15157 7.89248 4.73235 6.58656 3.11345 4.60081C2.83153 5.08581 2.66897 5.64919 2.66897 6.25032C2.66897 7.38893 3.2485 8.39412 4.12978 8.98213C3.59122 8.9655 3.08529 8.81769 2.64305 8.57167C2.64257 8.58544 2.64257 8.59887 2.64257 8.61358C2.64257 10.203 3.7741 11.53 5.27619 11.8307C5.00035 11.9059 4.71011 11.9462 4.41059 11.9462C4.19938 11.9462 3.99362 11.9254 3.79362 11.887C4.21154 13.191 5.42339 14.1399 6.86021 14.1665C5.73668 15.0469 4.3213 15.5712 2.78305 15.5712C2.51841 15.5712 2.25696 15.5562 2 15.5258C3.45281 16.4568 5.17795 17 7.03205 17"
10
+ fill="currentColor"
11
+ />
12
+ </svg>`;
13
+
14
+ export { twitter as t };
@@ -0,0 +1,16 @@
1
+ const user = `<svg
2
+ width="20"
3
+ height="20"
4
+ viewBox="0 0 20 20"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <circle cx="10" cy="6" r="3" stroke="currentColor" stroke-width="2" />
9
+ <path
10
+ d="M17 18V17C17 14.7909 15.2091 13 13 13H7C4.79086 13 3 14.7909 3 17V18"
11
+ stroke="currentColor"
12
+ stroke-width="2"
13
+ />
14
+ </svg>`;
15
+
16
+ export { user as u };
@@ -0,0 +1,14 @@
1
+ const youtube = ` <svg
2
+ width="20"
3
+ height="20"
4
+ viewBox="0 0 20 20"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <path
9
+ d="M19.5821 5.18614C19.3521 4.3256 18.6743 3.64795 17.8137 3.41797C16.2542 3 10 3 10 3C10 3 3.74579 3 2.18614 3.41797C1.32557 3.64795 0.647844 4.3256 0.417841 5.18614C-2.98023e-08 6.74579 0 10 0 10C0 10 -2.98023e-08 13.2541 0.417841 14.8139C0.647844 15.6744 1.32557 16.352 2.18614 16.5821C3.74579 17 10 17 10 17C10 17 16.2542 17 17.8137 16.5821C18.6743 16.352 19.3521 15.6744 19.5821 14.8139C20 13.2541 20 10 20 10C20 10 20 6.74579 19.5821 5.18614ZM8 13V7L14 10L8 13Z"
10
+ fill="currentColor"
11
+ />
12
+ </svg>`;
13
+
14
+ export { youtube as y };