@ebrains/react 0.4.0-alpha.0 → 0.5.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 (76) hide show
  1. package/analytics-1cde8e4a.esm.js +47 -0
  2. package/color-2554aad6.esm.js +122 -0
  3. package/color-primary-palette_6.entry.esm.js +106 -106
  4. package/correct-use-of-colors.entry.esm.js +33 -33
  5. package/eds-accordion.entry.esm.js +126 -0
  6. package/eds-alert_17.entry.esm.js +187 -0
  7. package/eds-avatar_4.entry.esm.js +193 -0
  8. package/eds-card-generic.entry.esm.js +124 -0
  9. package/eds-card-project.entry.esm.js +12 -11
  10. package/eds-card-section.entry.esm.js +2 -2
  11. package/eds-card-tags.entry.esm.js +1 -1
  12. package/eds-card-tool.entry.esm.js +5 -6
  13. package/eds-card-wrapper.entry.esm.js +4 -4
  14. package/eds-code-block.entry.esm.js +8 -8
  15. package/eds-components-section.entry.esm.js +14 -2
  16. package/eds-docs-palettes.entry.esm.js +1 -1
  17. package/eds-docs-tokens.entry.esm.js +1 -1
  18. package/eds-dropdown_2.entry.esm.js +235 -0
  19. package/eds-form.entry.esm.js +410 -0
  20. package/eds-frame.entry.esm.js +117 -0
  21. package/eds-icon-arrow-diagonal.entry.esm.js +1 -1
  22. package/eds-icon-arrow-right.entry.esm.js +1 -1
  23. package/eds-icon-bluesky.entry.esm.js +1 -1
  24. package/eds-icon-chevron-down.entry.esm.js +1 -1
  25. package/eds-icon-chevron-left.entry.esm.js +1 -1
  26. package/eds-icon-chevron-right.entry.esm.js +1 -1
  27. package/eds-icon-chevron-up.entry.esm.js +1 -1
  28. package/eds-icon-close.entry.esm.js +1 -1
  29. package/eds-icon-copy.entry.esm.js +1 -1
  30. package/eds-icon-eu.entry.esm.js +1 -1
  31. package/eds-icon-facebook.entry.esm.js +1 -1
  32. package/eds-icon-gitlab.entry.esm.js +1 -1
  33. package/eds-icon-linkedin.entry.esm.js +1 -1
  34. package/eds-icon-loader.entry.esm.js +1 -1
  35. package/eds-icon-mastodon.entry.esm.js +1 -1
  36. package/eds-icon-menu.entry.esm.js +1 -1
  37. package/eds-icon-more.entry.esm.js +1 -1
  38. package/eds-icon-search.entry.esm.js +1 -1
  39. package/eds-icon-success.entry.esm.js +1 -1
  40. package/eds-icon-twitter.entry.esm.js +1 -1
  41. package/eds-icon-user.entry.esm.js +1 -1
  42. package/eds-icon-youtube.entry.esm.js +1 -1
  43. package/eds-input_7.entry.esm.js +529 -0
  44. package/eds-login.entry.esm.js +66 -45
  45. package/eds-logo-variations.entry.esm.js +1 -1
  46. package/eds-matomo-notice.entry.esm.js +1 -2
  47. package/eds-modal.entry.esm.js +129 -0
  48. package/eds-navigator.entry.esm.js +5 -5
  49. package/eds-pagination_2.entry.esm.js +15 -16
  50. package/eds-progress-bar.entry.esm.js +7 -2
  51. package/eds-section-core_2.entry.esm.js +5 -5
  52. package/eds-svg-repository.entry.esm.js +1 -1
  53. package/eds-tab.entry.esm.js +1 -1
  54. package/eds-tabs-content.entry.esm.js +5 -5
  55. package/eds-tabs.entry.esm.js +4 -4
  56. package/eds-timeline.entry.esm.js +4 -4
  57. package/eds-tooltip.entry.esm.js +4 -5
  58. package/eds-trl.entry.esm.js +2 -2
  59. package/eds-user.entry.esm.js +118 -0
  60. package/eds-vertical-stepper.entry.esm.js +81 -0
  61. package/incorrect-use-of-colors.entry.esm.js +7 -7
  62. package/index.esm.js +1 -1
  63. package/index.esm2.js +37 -7
  64. package/{keycloak-13893af6.esm.js → keycloak-d502ec16.esm.js} +219 -168
  65. package/logo-space.entry.esm.js +4 -4
  66. package/logo-variations-horizontal_2.entry.esm.js +26 -26
  67. package/logo-wrong-usage.entry.esm.js +37 -37
  68. package/package.json +1 -1
  69. package/src/components.d.ts +3 -0
  70. package/token-list_3.entry.esm.js +5 -5
  71. package/token-ratios.entry.esm.js +3 -3
  72. package/token-spacing.entry.esm.js +26 -26
  73. package/token-typography.entry.esm.js +2 -2
  74. package/color-bb472c37.esm.js +0 -423
  75. package/eds-accordion_33.entry.esm.js +0 -369
  76. package/eds-rating.entry.esm.js +0 -69
@@ -0,0 +1,117 @@
1
+ import { r as registerInstance, h, g as getElement } from './index.esm2.js';
2
+ import 'react';
3
+ import 'react/jsx-runtime';
4
+ import 'react-dom';
5
+
6
+ const EdsFrame = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.frameLabel = undefined;
10
+ this.urlLabel = 'Open in Storybook';
11
+ this.errorMessage = 'Could not load the requested Storybook content. Please check the URL or try again later.';
12
+ this.storybookUrl = undefined;
13
+ this.storyPath = undefined;
14
+ this.intent = 'strong';
15
+ this.tiny = false;
16
+ this.size = 'auto';
17
+ this.bg = true;
18
+ this.iframeError = false;
19
+ }
20
+ articleClasses() {
21
+ return [this.tiny ? 'min-h-120' : 'min-h-156', this.bg ? 'bg-inverse' : 'bg-default', 'rounded border-softer effect-focus-within relative flex grow flex-col border-2', 'w-full h-full'].join(' ');
22
+ }
23
+ getFrameHeight() {
24
+ switch (this.size) {
25
+ case 'sm':
26
+ return '100px';
27
+ case 'md':
28
+ return '200px';
29
+ case 'lg':
30
+ return '400px';
31
+ case 'xl':
32
+ return '700px';
33
+ default:
34
+ return 'auto';
35
+ }
36
+ }
37
+ async checkIframeAvailability() {
38
+ try {
39
+ const response = await fetch(this.frameSrc, {
40
+ method: 'GET'
41
+ });
42
+ if (!response.ok) {
43
+ throw new Error('Failed to load');
44
+ }
45
+ } catch (error) {
46
+ this.iframeError = true;
47
+ }
48
+ }
49
+ componentWillLoad() {
50
+ this.checkIframeAvailability();
51
+ }
52
+ componentDidLoad() {
53
+ // Emit context for each eds-link element after the component is fully loaded
54
+ const links = this.el.querySelectorAll('eds-link');
55
+ links.forEach(link => {
56
+ this.emitContext(link);
57
+ });
58
+ }
59
+ /**
60
+ * Emits a custom event called `parentContext` for a given link element.
61
+ * This event provides context information about the breadcrumb component.
62
+ *
63
+ * @param linkElement - The link element to which the event will be dispatched.
64
+ */
65
+ emitContext(linkElement) {
66
+ const event = new CustomEvent('parentContext', {
67
+ detail: {
68
+ componentName: this.el.tagName.toLowerCase(),
69
+ identifier: this.frameLabel
70
+ }
71
+ });
72
+ linkElement.dispatchEvent(event);
73
+ }
74
+ get storyLink() {
75
+ return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
76
+ }
77
+ get frameSrc() {
78
+ return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
79
+ }
80
+ render() {
81
+ return h("div", {
82
+ key: '20786dd40414d29f98d496e29720bd78b9d7cf8e',
83
+ class: this.articleClasses()
84
+ }, h("div", {
85
+ key: '208612330c9d2872c68aeb310e164c8a915a51ef',
86
+ class: "effect-height flex items-center justify-between py-8 px-12"
87
+ }, h("span", {
88
+ key: 'ada2a40384ffaffadc8887580aa6184422008a68',
89
+ class: "f-ui-02"
90
+ }, this.frameLabel), !this.iframeError ? h("eds-link", {
91
+ label: this.urlLabel,
92
+ url: this.storyLink,
93
+ intent: this.intent,
94
+ class: "ml-auto",
95
+ external: true,
96
+ disabled: false,
97
+ icon: "arrow-diagonal"
98
+ }) : null), h("div", {
99
+ key: '26a5ae1c81b60b05b6f4859ffa4dbd13bb2557f3',
100
+ class: "border-softer border-t-2"
101
+ }, this.iframeError ? h("div", {
102
+ class: "container ml-8 mr-8 mt-16"
103
+ }, this.errorMessage) : h("iframe", {
104
+ src: this.frameSrc,
105
+ width: "100%",
106
+ height: this.getFrameHeight(),
107
+ title: this.frameLabel,
108
+ frameBorder: "0",
109
+ allowFullScreen: true
110
+ })));
111
+ }
112
+ get el() {
113
+ return getElement(this);
114
+ }
115
+ };
116
+
117
+ export { EdsFrame as eds_frame };
@@ -11,7 +11,7 @@ const EdsIconArrowDiagonal = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '08ebdce5cfbe75bf4bfab8f72493e2178be55c3c',
14
+ key: 'd85a4d425e0c255efe4763d4a13f13b6ff727c2c',
15
15
  class: this.addClass,
16
16
  innerHTML: arrowDiagonal
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconArrowRight = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '6d704324784e6c3d9c221dcaf83bd86a8a6a94ab',
14
+ key: '4a2b33b86753acab8270a45c7b250603b128bc88',
15
15
  class: this.class,
16
16
  innerHTML: arrowRight
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconBluesky = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d',
14
+ key: '845a157678b9d059b2c9bd8a6265d3a62f33c31a',
15
15
  class: this.class,
16
16
  innerHTML: bluesky
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconChevronDown = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'bc01e9e10033245e02403b6b919911018eef9919',
14
+ key: 'fa8022d27b91e909d4cd5522c6d0406be698a412',
15
15
  class: this.class,
16
16
  innerHTML: chevronDown
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconChevronLeft = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'd74bd0b2ddfd5bd61c97309aebb71d7c29f0cf43',
14
+ key: 'c723d7f1bbd596063ae7e66123b8038af5320a54',
15
15
  class: this.class,
16
16
  innerHTML: chevronLeft
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconChevronRight = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '998491aed74bd3edd1fb8545f85ab52cf2703b3f',
14
+ key: 'f770cd9151077e8708c76d2082613c65a20c420f',
15
15
  class: this.class,
16
16
  innerHTML: chevronRight
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconChevronUp = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'd0723afa766fc6dac454ec84602bd50ba4e49950',
14
+ key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6',
15
15
  class: this.class,
16
16
  innerHTML: chevronUp
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconClose = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '365ad476b1be9c708e73598cad1dd42a908fa1cd',
14
+ key: '947f6615e8ee155be98b379a9c771cc0d453becd',
15
15
  class: this.class,
16
16
  innerHTML: close
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconCopy = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '770c34b98ec0e0a7e16de4d7b5b41b4afec9911e',
14
+ key: '1e23d4493d5a1d07bc794da20cc4e445a87d56b0',
15
15
  class: this.class,
16
16
  innerHTML: copy
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconEu = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'cc6e5f7d7333ff7ed4a6f716e0ee90806fa782f9',
14
+ key: '14254e1b9d43562e6f3f943de22aa8dd4d89a044',
15
15
  class: this.class,
16
16
  innerHTML: euSvg
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconFacebook = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'f859db4f8b6679e138e6d72d1d0f5e5bd1bcf997',
14
+ key: '902598891dfe926f92ce5d30dc135896c6eccd43',
15
15
  class: this.class,
16
16
  innerHTML: facebook
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconGitlab = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '5a91cfc15c4dec2b50ce57fb0f1d6cc8f57b03e8',
14
+ key: '128f9265dfc1aee95586ba0a3fd20dd131678893',
15
15
  class: this.class,
16
16
  innerHTML: gitlabBlack
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconLinkedin = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'b8e0661a74a92c72b6db109cb48db12da48dcf92',
14
+ key: '0f9675a371ca7bb460882c04bf2bb0c103273a0d',
15
15
  class: this.class,
16
16
  innerHTML: linkedin
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconLoader = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '260c4eeb69ff79d943571c1461346b9019ea513a',
14
+ key: 'f11c60068baa2d2398056b3d7f04129d9deb4517',
15
15
  class: this.class,
16
16
  innerHTML: loader
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMastodon = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '902598891dfe926f92ce5d30dc135896c6eccd43',
14
+ key: '1f68e5d0b6f8455f40bf94f6095eceff00b7887e',
15
15
  class: this.class,
16
16
  innerHTML: mastodon
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMenu = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '9d15be28017eb074a69846a2a639861de997130b',
14
+ key: '0084602c8e870b70caa66479f71bed3bd0cce94e',
15
15
  class: this.class,
16
16
  innerHTML: menu
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMore = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '0f7d61104f8f2b0a83c5b60a6ce81c6ab91ecb9c',
14
+ key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4',
15
15
  class: this.class,
16
16
  innerHTML: more
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconSearch = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '6795d973d3a1fff27c2fd6181235d0284abaf3b7',
14
+ key: '42acc730afd956c2884b0789b3ea37ccf323630b',
15
15
  class: this.class,
16
16
  innerHTML: search
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconSuccess = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '15e428fd72496249adfe372847d5c683cd3412b1',
14
+ key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d',
15
15
  class: this.class,
16
16
  innerHTML: success
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconTwitter = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'cfa2d903e79d5a17fb7511e078c0d26bd6d3abd6',
14
+ key: 'a06ab2e79a1ec7603244ec09649ccc2c9ea1950c',
15
15
  class: this.class,
16
16
  innerHTML: twitter
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconUser = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0',
14
+ key: 'cb31d12146ff577195650b502f51005092404a30',
15
15
  class: this.class,
16
16
  innerHTML: user
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconYoutube = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'ecd12a21c5797f93f7d8abe67803b27862967b2f',
14
+ key: '4eba69bfec926b7a3490feee15b5947a8ab8a7b9',
15
15
  class: this.class,
16
16
  innerHTML: youtube
17
17
  });