@ebrains/react 0.9.0-beta → 0.9.1-beta

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -4,4 +4,8 @@ React target wrappers for Stencil output, allowing for seamless integration of S
4
4
 
5
5
  ## Usage
6
6
 
7
- More information about importing and using the package can be found currently in the WIP [https://design-dev.ebrains.eu/ui-components/](EBRAINS Design System).
7
+ More information about importing and using the package can be found currently in the [https://design.ebrains.eu/ui-components/](EBRAINS Design System).
8
+
9
+ ## Licensing
10
+
11
+ The contents of this package are licensed under `MIT`.
@@ -23,7 +23,7 @@ const EdsAccordion = class {
23
23
  category: 'ui-component',
24
24
  parentContext: null,
25
25
  tag: this.el.tagName.toLowerCase(),
26
- name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
26
+ name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
27
27
  action: this.isExpanded ? 'expanded' : 'collapsed'
28
28
  });
29
29
  };
@@ -40,7 +40,7 @@ const EdsAccordion = class {
40
40
  this.headerHeight = this.headerRef.scrollHeight - 30;
41
41
  }
42
42
  };
43
- this.title = undefined;
43
+ this.heading = undefined;
44
44
  this.description = undefined;
45
45
  this.switchBg = true;
46
46
  this.expanded = false;
@@ -70,21 +70,21 @@ const EdsAccordion = class {
70
70
  */
71
71
  render() {
72
72
  return h("div", {
73
- key: 'db04fa9db1f53e95a7ac758656b32e75281f5749',
73
+ key: '9545d005b8c1dab935f2dcc7d9194aacfded535e',
74
74
  ref: el => this.wrapperRef = el,
75
75
  class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
76
76
  ${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
77
77
  ${this.switchBg ? 'hover:bg-inverse' : ''}
78
78
  ${this.description ? 'min-h-56' : ''}`
79
79
  }, h("h3", {
80
- key: 'a6fc54388e0eab3ddfb81dfb5907c55a1d6d40e1',
80
+ key: '243b3a8e6c168f8b7809e997c2299917f000d6ee',
81
81
  ref: el => this.headerRef = el,
82
82
  class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40"
83
- }, this.title), h("div", {
84
- key: '96a1e4ae2849300e6cd3c737357a7e6e9a0439d5',
83
+ }, this.heading), h("div", {
84
+ key: '7ecf3dca450a58169464e1482962e5cc5e8b7b5e',
85
85
  class: "ml-auto"
86
86
  }, h("eds-button", {
87
- key: 'ca53eed446f9bc7a96182da9e9e3a45b1c63dba2',
87
+ key: '4a3572e61e1054dca181d1eb05eef1d73f07ff96',
88
88
  id: "toggleAccordion",
89
89
  intent: "tertiary",
90
90
  "aria-expanded": this.isExpanded || this.shortContent,
@@ -94,7 +94,7 @@ const EdsAccordion = class {
94
94
  onClick: this.handleClick,
95
95
  icon: "chevron-down"
96
96
  })), h("div", {
97
- key: '2e1c52759fa07ecf63fed47f79c0384a79cd81c6',
97
+ key: 'f7cd77703aab8f2b56e6f7d36aeab90f7263bd76',
98
98
  class: `w-full`,
99
99
  style: Number.isFinite(this.headerHeight) ? {
100
100
  marginTop: `${this.headerHeight}px`
@@ -102,7 +102,7 @@ const EdsAccordion = class {
102
102
  }, this.description ? h("span", {
103
103
  class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}`
104
104
  }, this.description) : null, h("section", {
105
- key: '6ca819b2d9cb989f0942b98f32cd7243771b6ae9',
105
+ key: 'dbfa879d6aa14be50d18a31587e451f7e06a03df',
106
106
  id: "accordionSection",
107
107
  role: "region",
108
108
  "aria-labelledby": "accordionHeader",
@@ -112,15 +112,15 @@ const EdsAccordion = class {
112
112
  height: this.isExpanded ? 'auto' : '0'
113
113
  }
114
114
  }, h("div", {
115
- key: 'aa33297747aca21c3b3ed33eb3eabc2998192aeb',
115
+ key: 'ae5c56f8eb6597c34df4bd1cb78a00b3333baf1e',
116
116
  ref: el => this.childContentRef = el,
117
117
  class: `accordion-content effect-color pt-4`,
118
118
  "aria-hidden": !this.isExpanded
119
119
  }, h("span", {
120
- key: 'af5b6e2218419a3c95e21e7e432696b073b7752b',
120
+ key: '093f851cde64acefd8b9285d4b6e15f7d2e5c592',
121
121
  class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}`
122
122
  }, h("slot", {
123
- key: '2a9d1ef2d2537c831b28fbecb02a6125a1412019'
123
+ key: '68f428a78168f89637018f588ab431e1a1bef7a4'
124
124
  }))))));
125
125
  }
126
126
  get el() {