@ember-eui/core 5.5.0 → 5.6.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.
@@ -30,7 +30,7 @@
30
30
  >
31
31
 
32
32
  {{#if (or (has-block "icon") (or @image @icon))}}
33
- <div class="euiCard__top">
33
+ <div class={{this.topClasses}}>
34
34
  {{#if (has-block "icon")}}
35
35
  {{yield "euiCard__icon" to="icon"}}
36
36
  {{else}}
@@ -53,7 +53,7 @@
53
53
  {{/if}}
54
54
 
55
55
 
56
- <div class="euiCard__content">
56
+ <div class={{this.contentClasses}}>
57
57
  <EuiTitle class="euiCard__title" @size={{arg-or-default @titleSize "s"}}>
58
58
  {{#if (has-block "title")}}
59
59
  {{yield (set this "link") to="title"}}
@@ -122,7 +122,7 @@
122
122
  </span>
123
123
  {{/if}}
124
124
  {{#if (and (eq layout "vertical") (or (has-block "footer") @footer))}}
125
- <div class="euiCard__footer">
125
+ <div class={{this.footerClasses}}>
126
126
  {{#if (has-block "footer")}}
127
127
  {{yield to="footer"}}
128
128
  {{else}}
@@ -4,6 +4,20 @@ import { EuiCardSelectProps, euiCardSelectableColor } from '../eui-card-select';
4
4
 
5
5
  type EuiCardComponentArgs = {
6
6
  selectable?: EuiCardSelectProps;
7
+ /**
8
+ * Class that will apply to the card top section.
9
+ */
10
+ topClassName?: string;
11
+
12
+ /**
13
+ * Class that will apply to the card content section.
14
+ */
15
+ contentClassName?: string;
16
+
17
+ /**
18
+ * Class that will apply to the card footer section.
19
+ */
20
+ footerClassName?: string;
7
21
  };
8
22
 
9
23
  export default class EuiCardComponent extends Component<EuiCardComponentArgs> {
@@ -24,4 +38,16 @@ export default class EuiCardComponent extends Component<EuiCardComponentArgs> {
24
38
  )}`
25
39
  : undefined;
26
40
  }
41
+
42
+ get topClasses(): string {
43
+ return ['euiCard__top', this.args.topClassName].join(' ');
44
+ }
45
+
46
+ get contentClasses(): string {
47
+ return ['euiCard__content', this.args.contentClassName].join(' ');
48
+ }
49
+
50
+ get footerClasses(): string {
51
+ return ['euiCard__footer', this.args.footerClassName].join(' ');
52
+ }
27
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -182,5 +182,5 @@
182
182
  "volta": {
183
183
  "extends": "../../package.json"
184
184
  },
185
- "gitHead": "2318b608b8f8f66a2af52e2e0a3e865da3428696"
185
+ "gitHead": "7764a095d79c5241eec5c002f23721eda2dd6417"
186
186
  }