@ebrains/react 2.1.0 → 2.2.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 (66) hide show
  1. package/color-primary-palette_6.entry.esm.js +106 -106
  2. package/components-section.entry.esm.js +3 -7
  3. package/correct-use-of-colors.entry.esm.js +33 -33
  4. package/docs-palettes.entry.esm.js +1 -1
  5. package/docs-tokens.entry.esm.js +1 -1
  6. package/download-47746956.esm.js +18 -0
  7. package/{eds-accordion_33.entry.esm.js → eds-accordion_34.entry.esm.js} +49 -46
  8. package/eds-app-root.entry.esm.js +4 -4
  9. package/eds-cookies-preference.entry.esm.js +2 -2
  10. package/eds-feedback.entry.esm.js +5 -5
  11. package/eds-footer.entry.esm.js +12 -14
  12. package/eds-frame.entry.esm.js +4 -4
  13. package/eds-fullscreen-menu.entry.esm.js +8 -3
  14. package/eds-icon-bluesky.entry.esm.js +1 -1
  15. package/eds-icon-download.entry.esm.js +21 -0
  16. package/eds-icon-draft.entry.esm.js +1 -1
  17. package/eds-icon-edit.entry.esm.js +1 -1
  18. package/eds-icon-eu.entry.esm.js +1 -1
  19. package/eds-icon-external.entry.esm.js +1 -1
  20. package/eds-icon-facebook.entry.esm.js +1 -1
  21. package/eds-icon-gitlab.entry.esm.js +1 -1
  22. package/eds-icon-linkedin.entry.esm.js +1 -1
  23. package/eds-icon-loader.entry.esm.js +1 -1
  24. package/eds-icon-mastodon.entry.esm.js +1 -1
  25. package/eds-icon-menu.entry.esm.js +1 -1
  26. package/eds-icon-minus.entry.esm.js +1 -1
  27. package/eds-icon-more.entry.esm.js +1 -1
  28. package/eds-icon-paper.entry.esm.js +1 -1
  29. package/eds-icon-plus.entry.esm.js +1 -1
  30. package/eds-icon-portal.entry.esm.js +1 -1
  31. package/eds-icon-private.entry.esm.js +1 -1
  32. package/eds-icon-public.entry.esm.js +1 -1
  33. package/eds-icon-search.entry.esm.js +1 -1
  34. package/eds-icon-star.entry.esm.js +1 -1
  35. package/eds-icon-start.entry.esm.js +1 -1
  36. package/eds-icon-success.entry.esm.js +1 -1
  37. package/eds-icon-thumbs-down.entry.esm.js +1 -1
  38. package/eds-icon-thumbs-up.entry.esm.js +1 -1
  39. package/eds-icon-tutorial.entry.esm.js +1 -1
  40. package/eds-icon-twitter.entry.esm.js +1 -1
  41. package/eds-icon-unknown.entry.esm.js +1 -1
  42. package/eds-icon-updown.entry.esm.js +1 -1
  43. package/eds-icon-user.entry.esm.js +1 -1
  44. package/eds-icon-view.entry.esm.js +1 -1
  45. package/eds-icon-youtube.entry.esm.js +1 -1
  46. package/eds-modal.entry.esm.js +8 -8
  47. package/eds-progress-bar.entry.esm.js +4 -4
  48. package/eds-section-core_2.entry.esm.js +5 -5
  49. package/eds-social-networks.entry.esm.js +7 -8
  50. package/eds-spinner.entry.esm.js +4 -4
  51. package/eds-timeline.entry.esm.js +4 -4
  52. package/eds-toast-manager.entry.esm.js +1 -1
  53. package/eds-trl.entry.esm.js +2 -2
  54. package/incorrect-use-of-colors.entry.esm.js +8 -8
  55. package/index.esm2.js +6 -6
  56. package/logo-space.entry.esm.js +9 -9
  57. package/logo-variations-horizontal_2.entry.esm.js +28 -28
  58. package/logo-variations-tabs.entry.esm.js +1 -1
  59. package/logo-wrong-usage.entry.esm.js +25 -25
  60. package/package.json +1 -1
  61. package/svg-repository.entry.esm.js +3 -18
  62. package/token-list_3.entry.esm.js +5 -5
  63. package/token-ratios.entry.esm.js +3 -3
  64. package/token-spacing.entry.esm.js +26 -26
  65. package/token-typography.entry.esm.js +2 -2
  66. package/eds-tooltip.entry.esm.js +0 -47
@@ -20,6 +20,7 @@ import { s as search } from './search-fbcd79c2.esm.js';
20
20
  import { l as loader } from './loader-c9628637.esm.js';
21
21
  import { s as success } from './success-443809da.esm.js';
22
22
  import { c as close } from './close-87fc0d63.esm.js';
23
+ import { d as download } from './download-47746956.esm.js';
23
24
  import { m as menu } from './menu-340ea948.esm.js';
24
25
  import { m as more } from './more-4449d549.esm.js';
25
26
  import { u as user } from './user-71ebdc15.esm.js';
@@ -178,22 +179,6 @@ const documentation = `<svg
178
179
  stroke-width="1.5"
179
180
  />
180
181
  </svg>`;
181
- const download = `<svg
182
- width="20"
183
- height="20"
184
- viewBox="0 0 20 20"
185
- fill="none"
186
- xmlns="http://www.w3.org/2000/svg"
187
- >
188
- <path
189
- d="M5.91937 8H9V3H11V8H14.0806L10 13.1008L5.91937 8Z"
190
- fill="currentColor"
191
- />
192
- <path
193
- d="M5 15V12H3V15C3 16.1046 3.89543 17 5 17H15C16.1046 17 17 16.1046 17 15V12H15V15H5Z"
194
- fill="currentColor"
195
- />
196
- </svg>`;
197
182
  const filter = ` <svg
198
183
  width="20"
199
184
  height="20"
@@ -329,10 +314,10 @@ const SvgRepository = class {
329
314
  }
330
315
  };
331
316
  return h("div", {
332
- key: '7182d9e62bbee54fe4787d4fdd00e454d4f9df44',
317
+ key: '36ab796174ab215a5e8f834f0d6291853305e732',
333
318
  class: "full-width"
334
319
  }, h("eds-table", {
335
- key: '4f9e0681ce92a66ca09fd933663caf465208306d',
320
+ key: '31fca470f340fa54137887ef426f4f7e1fc72f73',
336
321
  "table-data": JSON.stringify(svgData),
337
322
  config: JSON.stringify(tableConfig),
338
323
  "rows-per-page": 10,
@@ -296,7 +296,7 @@ const TokenList = class {
296
296
  [this.show]: colors[this.show]
297
297
  } : colors;
298
298
  return h("section", {
299
- key: 'b8b778fe87179f77bb71705d89026c500b0293fb',
299
+ key: 'c5a0dc7f4e58c77624481262b1a6ac31df5425ee',
300
300
  class: "w-full mt-28"
301
301
  }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
302
302
  // Only render sections that exist in `colors`
@@ -317,10 +317,10 @@ const TokenRadii = class {
317
317
  }
318
318
  render() {
319
319
  return h("section", {
320
- key: '584f5f90e1e3813692870fbd8fd382956729dbf1',
320
+ key: 'd0e212f61414068b55b2ce1a3d9c7c2a51743908',
321
321
  class: "w-full mt-28"
322
322
  }, h("ul", {
323
- key: '81786b7835d62739d6ec034609e77209e15e3b38',
323
+ key: 'f656822bfc1a95bb4435eec2db9573e4362d1c59',
324
324
  class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
325
325
  }, Object.entries(radii).map(([key, value]) => h("li", {
326
326
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
@@ -358,10 +358,10 @@ const TokenShadows = class {
358
358
  }
359
359
  render() {
360
360
  return h("section", {
361
- key: '8ca055cb3616c9bc3f6e8c1032671ff53a540156',
361
+ key: '2f8e9eef279ee176ba1c72660181a4a36a184985',
362
362
  class: "w-full mt-28"
363
363
  }, h("ul", {
364
- key: '7b72868285aaffe0f31628b5ab142e39aaccd964',
364
+ key: 'a5ddc9f6faab20c73b6dbb08364925d3b221e848',
365
365
  class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
366
366
  }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => h("li", {
367
367
  class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16"
@@ -17,15 +17,15 @@ const TokenRatios = class {
17
17
  }
18
18
  render() {
19
19
  return h("section", {
20
- key: '255775984f1d0edd52f48814776dfb5739b4885e',
20
+ key: '0215729c6c798288f74b3e9a589763c8a71c6fd3',
21
21
  class: "w-full"
22
22
  }, h("eds-section-core", {
23
- key: '7fd28e74db00800fcaa4adb13dd6b0b9cace371d',
23
+ key: '9ac3c1b933b7bb7cc6c8dd9aeface59ba3646750',
24
24
  tag: "div",
25
25
  "section-title": "Aspect Ratios",
26
26
  "heading-level": "h3"
27
27
  }, h("ul", {
28
- key: '1e4c0af9a699e69c5bc6c86df821c457bb20614a',
28
+ key: 'd4ae2c487aa2402740dfd1465823fe3d04c19e18',
29
29
  class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
30
30
  }, Object.entries(ratios).map(([key, value]) => h("li", {
31
31
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
@@ -9,82 +9,82 @@ const TokenSpacing = class {
9
9
  }
10
10
  render() {
11
11
  return h("div", {
12
- key: '9967174337c771b175eb51d9cd77ec227071178e',
12
+ key: 'e01032fc0640d466fbf25d52c786c2ad09282deb',
13
13
  class: "w-full"
14
14
  }, h("ul", {
15
- key: 'db8df572ea997ea83600cb522c761ec5c99788bc',
15
+ key: '067499a0d422c6759393a729018a0e428ac5bb73',
16
16
  class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
17
17
  }, h("li", {
18
- key: '25a7b31970e56ce8ff62c81a69daac121984d9d6',
18
+ key: '18811cd88f3627f824c09ed57522b624c905704a',
19
19
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
20
20
  }, h("div", {
21
- key: '1a1dfa005e39237c2fedb210c0082293770387c6',
21
+ key: '6f810ada1266d71181c85ae01f6d0f03d74c5d62',
22
22
  class: "container p-8 item-center border-2 border-soft"
23
23
  }, h("div", {
24
- key: '473024ed6927d1a140eee0e021af92790c3ec5b0',
24
+ key: 'be8c8193dd759eb651230904f482bdd29ece17d9',
25
25
  class: "spacing-sample m-16 bg-strong"
26
26
  }, h("span", {
27
- key: '7b691bf830943134160396ddcd8f71e419eb29e2',
27
+ key: '3275ae8d2dcc26a097fcec9e47e865d122e8a7a0',
28
28
  class: "f-body-01 text-inverse"
29
29
  }, "Margin: 1rem / m-16")))), h("li", {
30
- key: '38f1d4d7e78b1efdbc55cf732b6be2ac3a62b5b7',
30
+ key: '1501280856acd0f86ed6d18deb2994e2b938d550',
31
31
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
32
32
  }, h("div", {
33
- key: '3a0fc8cdfa13bf0998a4829c36a74b17a6ee2314',
33
+ key: '9c6bd09fb408bf28e1ff7259ee82858657055d53',
34
34
  class: "container p-8 item-center border-2 border-soft"
35
35
  }, h("div", {
36
- key: 'ec730379e1041a68c9d980bb6b5d4b16560debb0',
36
+ key: '66ce0e318e1ef01c95634678d8dad929261c3559',
37
37
  class: "spacing-sample ml-64 bg-strong"
38
38
  }, h("span", {
39
- key: 'fd6f3ab787f1d43fb0b060e8408a1464eacd9875',
39
+ key: '746c47d3d838c4a2afc3e33f97ea92e4152505a4',
40
40
  class: "f-body-01 text-inverse"
41
41
  }, "Margin Left: 4rem / ml-64")))), h("li", {
42
- key: '60a45420ca9cd7f4dab1524c8d6be31b39295b0c',
42
+ key: '1e743a6b9907f8d533b6bb0e47204ca9f2ac1540',
43
43
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
44
44
  }, h("div", {
45
- key: 'ec433621396341959df05dd4becf2844c4266ea5',
45
+ key: '9b127a0fc072a67d2a03af42718407f7c570981c',
46
46
  class: "container p-8 item-center border-2 border-soft"
47
47
  }, h("div", {
48
- key: 'e2ae2d3a3f0eb5226fae09d70eff099ed79ca0e6',
48
+ key: '603d387bfc95e7eaaa688d9bed69d17dcdbeb023',
49
49
  class: "spacing-sample mt-32 bg-strong"
50
50
  }, h("span", {
51
- key: '1da10931bb4dae62a1a1c020c89463634a3c1630',
51
+ key: '19105f04e3571991899dcd237a2e88285200fa2a',
52
52
  class: "f-body-01 text-inverse"
53
53
  }, "Margin Top: 2rem / mt-32")))), h("li", {
54
- key: 'f2f6ff5c992df7d4d426a3488cb7aa7ad9b7bc85',
54
+ key: 'a4bba328ebdb74767c06aed1ddf90251ff53c774',
55
55
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
56
56
  }, h("div", {
57
- key: '23700500e04f2ec99fb5329092b7e430f7ac4274',
57
+ key: '8c0ddf065902880ea676a0178d8d384696d11d44',
58
58
  class: "container p-8 item-center border-2 border-soft"
59
59
  }, h("div", {
60
- key: 'bc304e082326c02787a62681fa86d20382fbb2d7',
60
+ key: 'c73eb82ac1b447d2441be39f1e07e4864bba2a49',
61
61
  class: "spacing-sample p-32 bg-strong"
62
62
  }, h("span", {
63
- key: '32692a307c58603ac232bb1004b88e0b5bff0c3d',
63
+ key: '6c76e373c0827ed4449abfd0fa1b69db2e02ef10',
64
64
  class: "f-body-01 text-inverse"
65
65
  }, "Padding: 2rem / p-32")))), h("li", {
66
- key: '6fc5032427724389d29d200347e3f5de984d6ec5',
66
+ key: '23699817570e914c03849e8bc5ab3c72b732470c',
67
67
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
68
68
  }, h("div", {
69
- key: 'f66687c53866291f4f455153e34813d53bbb6d68',
69
+ key: '253d94e4ddabd622302bbc38a5e866b9a9dc8826',
70
70
  class: "container p-8 item-center border-2 border-soft"
71
71
  }, h("div", {
72
- key: 'c4305cf37d1f08f50be085664d9a4da0c4859805',
72
+ key: 'c366056f299a7fd53eb589cedbf8f40aa996d032',
73
73
  class: "spacing-sample pt-32 bg-strong"
74
74
  }, h("span", {
75
- key: '4bd0c2056950a34d119c11ffd04e1dce1b8136c5',
75
+ key: '22b94a1f3f4605af8f11dcd10b03f112ad426798',
76
76
  class: "f-body-01 text-inverse"
77
77
  }, "Padding Top: 2rem / pt-32")))), h("li", {
78
- key: '67053133a6c121e02b7cab1da4cf4bc025dcc28d',
78
+ key: '18418c7ea84aaaefe187e484774e96d5233946ab',
79
79
  class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
80
80
  }, h("div", {
81
- key: 'dc7c1198e284eb0d71d183017e99fca72c3fb2a7',
81
+ key: '953b9ebfb47560f768bdf606fdc455eae18fa351',
82
82
  class: "container p-8 item-center border-2 border-soft"
83
83
  }, h("div", {
84
- key: '3e69f16b8673007197f18b736e07a9e2c86e7eeb',
84
+ key: '1ee32fc2918a078e421e0641c84e76c2bf48e839',
85
85
  class: "spacing-sample pl-32 bg-strong"
86
86
  }, h("span", {
87
- key: '5a112de1bf2ce66ea278da76b8890aff02cce8af',
87
+ key: '15f50b76c805eb9fc1610d8027cd710f6c8c89b4',
88
88
  class: "f-body-01 text-inverse"
89
89
  }, "Padding Left: 2rem / pl-32"))))));
90
90
  }
@@ -202,10 +202,10 @@ const TokenTypography = class {
202
202
  }
203
203
  render() {
204
204
  return h("section", {
205
- key: 'b638ddc335ade66f9eb0af8752f56945270fc5ee',
205
+ key: 'a50023eb5ce02aebb63994e4319450f3a330617d',
206
206
  class: "w-full"
207
207
  }, h("ul", {
208
- key: '40f638bc0eccdcc79aecaf5da8fc9c1332122d49',
208
+ key: '757a1845f16da440eaa8ba332b39f62ccb69ed89',
209
209
  class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
210
210
  }, Object.entries(typography.typesets).filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
211
211
  .flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => h("li", {
@@ -1,47 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index.esm2.js';
2
- import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
3
- import 'react';
4
- import 'react/jsx-runtime';
5
- import 'react-dom';
6
-
7
- const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
8
- const EdsTooltipStyle0 = edsTooltipCss;
9
- const EdsTooltip = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- this.content = undefined;
13
- this.position = 'top';
14
- }
15
- /** fire analytics on every hover */
16
- handleHover() {
17
- sendAnalytics({
18
- category: 'ui-component',
19
- tag: this.el.tagName.toLowerCase(),
20
- name: this.content.toLowerCase(),
21
- action: 'hover'
22
- });
23
- }
24
- render() {
25
- const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
26
- return h("div", {
27
- key: 'ee76b787881bdaef986b73fb2775c900a8c33d05',
28
- class: "relative w-full inline-block group"
29
- }, h("slot", {
30
- key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469'
31
- }), h("div", {
32
- key: '31bdc63d6263090578f6600ae32027c2b050b2bf',
33
- class: `absolute ${positionClass}
34
- rounded-xs bg-strongest text-inverse
35
- f-ui-03-light pointer-events-none
36
- z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
37
- group-hover:opacity-100 whitespace-normal break-words`,
38
- role: "tooltip"
39
- }, this.content));
40
- }
41
- get el() {
42
- return getElement(this);
43
- }
44
- };
45
- EdsTooltip.style = EdsTooltipStyle0;
46
-
47
- export { EdsTooltip as eds_tooltip };