@1024pix/pix-ui 47.2.0 → 48.0.1

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.
@@ -8,16 +8,17 @@
8
8
  aria-expanded={{if this.isUnCollapsed "true" "false"}}
9
9
  ...attributes
10
10
  >
11
- {{#if @iconName}}
12
- <PixIcon
13
- class="pix-collapsible-title__icon"
14
- @name={{@iconName}}
15
- @plainIcon={{@plainIcon}}
16
- @ariaHidden={{true}}
17
- />
18
- {{/if}}
19
11
 
20
- <span>
12
+ <span class="pix-collapsible-title__container">
13
+ {{#if @iconName}}
14
+ <PixIcon
15
+ class="pix-collapsible-title__icon"
16
+ @name={{@iconName}}
17
+ @plainIcon={{@plainIcon}}
18
+ @ariaHidden={{true}}
19
+ />
20
+ {{/if}}
21
+
21
22
  {{yield to="title"}}
22
23
  </span>
23
24
 
@@ -40,7 +41,7 @@
40
41
  aria-hidden={{if this.isCollapsed "true" "false"}}
41
42
  >
42
43
  {{#if this.isContentRendered}}
43
- {{yield}}
44
+ {{yield to="content"}}
44
45
  {{/if}}
45
46
  </div>
46
47
  </div>
@@ -18,13 +18,6 @@ export default class PixCollapsible extends Component {
18
18
  return this.hasUnCollapsedOnce;
19
19
  }
20
20
 
21
- get title() {
22
- if (!this.args.title || !this.args.title.trim()) {
23
- throw new Error('ERROR in PixCollapsible component, @title param is not provided');
24
- }
25
- return this.args.title;
26
- }
27
-
28
21
  @action
29
22
  toggleCollapsible() {
30
23
  this.isCollapsed = !this.isCollapsed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "47.2.0",
3
+ "version": "48.0.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"