@ember-eui/core 5.4.4 → 5.7.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 (206) hide show
  1. package/addon/components/eui-card/index.hbs +25 -20
  2. package/addon/components/eui-card/index.ts +26 -0
  3. package/addon/components/eui-confirm-modal/index.hbs +13 -7
  4. package/addon/components/eui-described-form-group/index.hbs +5 -1
  5. package/addon/components/eui-loading-content/index.hbs +6 -1
  6. package/addon/components/eui-modal/index.hbs +2 -2
  7. package/addon/components/eui-selectable-list-item/index.hbs +24 -0
  8. package/addon/utils/css-mappings/eui-selectable-list-item.ts +14 -0
  9. package/addon/utils/css-mappings/index.ts +2 -0
  10. package/app/components/eui-selectable-list-item/index.js +1 -0
  11. package/docs/display/{avatar-demo/demo1.md → avatar/demo/d01-basic.md} +0 -2
  12. package/docs/display/{avatar-demo/demo2.md → avatar/demo/d02-initials.md} +0 -0
  13. package/docs/display/{avatar-demo/demo3.md → avatar/demo/d03-types.md} +0 -0
  14. package/docs/display/{avatar-demo/demo4.md → avatar/demo/d04-icons.md} +0 -0
  15. package/docs/display/{avatar-demo/demo5.md → avatar/demo/d05-disabled.md} +0 -0
  16. package/docs/display/{avatar.md → avatar/index.md} +5 -0
  17. package/docs/display/{badge-demo/demo1.md → badge/demo/d01-badge.md} +0 -0
  18. package/docs/display/{badge-demo/demo2.md → badge/demo/d02-badge-with-icon.md} +0 -0
  19. package/docs/display/{badge-demo/demo3.md → badge/demo/d03-badge-with-onclick-events.md} +0 -0
  20. package/docs/display/{badge-demo/demo4.md → badge/demo/d04-badge-for-health-status.md} +0 -0
  21. package/docs/display/{badge-demo/demo5.md → badge/demo/d05-badge-with-href.md} +0 -0
  22. package/docs/display/{badge-demo/demo7.md → badge/demo/d06-badge-groups-and-truncation.md} +0 -0
  23. package/docs/display/{badge-demo/demo6.md → badge/demo/d07-beta-badge-type.md} +0 -0
  24. package/docs/display/{badge-demo/demo8.md → badge/demo/d08-notification-badge-type.md} +0 -0
  25. package/docs/display/{badge.md → badge/index.md} +5 -0
  26. package/docs/display/{callout-demo/demo1.md → callout/demo/d01-info.md} +0 -0
  27. package/docs/display/{callout-demo/demo2.md → callout/demo/d02-success.md} +0 -0
  28. package/docs/display/{callout-demo/demo3.md → callout/demo/d03-warning.md} +0 -0
  29. package/docs/display/{callout-demo/demo4.md → callout/demo/d04-danger.md} +0 -0
  30. package/docs/display/{callout.md → callout/index.md} +6 -1
  31. package/docs/display/card/{basic-card-demo/demo1.md → demo/d01-basic-card.md} +5 -1
  32. package/docs/display/card/{layout-demo/demo1.md → demo/d02-layout.md} +4 -0
  33. package/docs/display/card/{images-demo/demo1.md → demo/d03-images.md} +1 -1
  34. package/docs/display/card/{footer-demo/demo1.md → demo/d04-footer.md} +4 -0
  35. package/docs/display/card/{beta-badge-demo/demo1.md → demo/d05-beta-badge.md} +4 -0
  36. package/docs/display/card/{selectable-demo/demo1.md → demo/d06-selectable.md} +5 -1
  37. package/docs/display/card/{checkable-demo/demo1.md → demo/d07-checkable.md} +1 -1
  38. package/docs/display/card/{checkable-demo/demo2.md → demo/d07.1-cheekable.md} +1 -1
  39. package/docs/display/card/{custom-children-demo/demo1.md → demo/d08-custom-children.md} +5 -1
  40. package/docs/display/card/index.md +14 -0
  41. package/docs/display/{comment-list-demo/demo1.md → comment-list/demo/d01-comment-list.md} +28 -22
  42. package/docs/display/{comment-list.md → comment-list/index.md} +6 -0
  43. package/docs/display/{description-list-demo/demo1.md → description-list/demo/d01-description-list.md} +0 -0
  44. package/docs/display/{description-list-demo/demo2.md → description-list/demo/d02-reverse-style.md} +0 -0
  45. package/docs/display/{description-list-demo/demo3.md → description-list/demo/d03-as-columns.md} +0 -0
  46. package/docs/display/{description-list-demo/demo4.md → description-list/demo/d04-inline.md} +0 -0
  47. package/docs/display/{description-list-demo/demo5.md → description-list/demo/d05-centered-and-compressed.md} +0 -0
  48. package/docs/display/{description-list-demo/demo6.md → description-list/demo/d06-passing-classname.md} +0 -0
  49. package/docs/display/{description-list.md → description-list/index.md} +6 -0
  50. package/docs/display/{empty-prompt-demo/demo1.md → empty-prompt/demo/d01-empty-prompt.md} +0 -0
  51. package/docs/display/{empty-prompt-demo/demo2.md → empty-prompt/demo/d02-less-content-more-actions.md} +0 -0
  52. package/docs/display/{empty-prompt-demo/demo3.md → empty-prompt/demo/d03-panel-options.md} +0 -0
  53. package/docs/display/{empty-prompt-demo/demo4.md → empty-prompt/demo/d04-title-sizes-and-icon-colors.md} +0 -0
  54. package/docs/display/{empty-prompt-demo/demo5.md → empty-prompt/demo/d05-loading-and-error-prompts.md} +0 -0
  55. package/docs/display/{empty-prompt-demo/demo6.md → empty-prompt/demo/d06-layout.md} +0 -0
  56. package/docs/display/{empty-prompt-demo/demo7.md → empty-prompt/demo/d07-more-types-of-empty-states.md} +0 -0
  57. package/docs/display/{empty-prompt-demo/demo8.md → empty-prompt/demo/d08-using-in-a-page-template.md} +0 -0
  58. package/docs/display/empty-prompt/index.md +13 -0
  59. package/docs/display/{health-demo/demo1.md → health/demo/d01-health.md} +0 -0
  60. package/docs/display/{health-demo/demo2.md → health/demo/d02-text-sizes.md} +0 -0
  61. package/docs/display/health/index.md +13 -0
  62. package/docs/display/{icons-demo/demo1.md → icons/demo/d01-glyphs.md} +0 -0
  63. package/docs/display/{icons-demo/demo2.md → icons/demo/d02-editor-controls.md} +0 -0
  64. package/docs/display/{icons-demo/demo3.md → icons/demo/d03-elastic-logos.md} +0 -0
  65. package/docs/display/{icons-demo/demo4.md → icons/demo/d04-apps.md} +0 -0
  66. package/docs/display/{icons-demo/demo5.md → icons/demo/d05-tokens.md} +0 -0
  67. package/docs/display/{icons-demo/demo6.md → icons/demo/d06-sizes.md} +0 -0
  68. package/docs/display/{icons-demo/demo7.md → icons/demo/d07-colors.md} +0 -0
  69. package/docs/display/{icons-demo/demo8.md → icons/demo/d08-custom-svgs.md} +0 -0
  70. package/docs/display/{icons.md → icons/index.md} +5 -0
  71. package/docs/display/{image-demo/demo1.md → image/demo/d01-image.md} +0 -0
  72. package/docs/display/{image-demo/demo2.md → image/demo/d02-click-an-image-for-a-fullscreen-version.md} +0 -0
  73. package/docs/display/{image-demo/demo3.md → image/demo/d03-images-can-be-sized.md} +0 -0
  74. package/docs/display/{image-demo/demo4.md → image/demo/d04-float-images-within-text.md} +0 -0
  75. package/docs/display/{image.md → image/index.md} +5 -1
  76. package/docs/display/list-group/demo/d01-list-group.md +236 -0
  77. package/docs/display/list-group/index.md +8 -0
  78. package/docs/display/loading/logo-demo/{demo1.md → d01-logos.md} +0 -0
  79. package/docs/display/loading/spinner-demo/d02-spinner.md +6 -0
  80. package/docs/display/loading/text-content-demo/{demo1.md → d3-text-content.md} +0 -2
  81. package/docs/display/notification-event/demo/{demo1.md → d01-notification-event.md} +15 -24
  82. package/docs/display/notification-event/demo/{demo2.md → d02-read-state.md} +0 -0
  83. package/docs/display/notification-event/demo/{demo3.md → d03-feed.md} +0 -0
  84. package/docs/display/notification-event/index.md +2 -2
  85. package/docs/display/{progress-demo → progress/demo}/demo1.md +0 -0
  86. package/docs/display/{progress-demo → progress/demo}/demo2.md +0 -0
  87. package/docs/display/{progress-demo → progress/demo}/demo3.md +0 -0
  88. package/docs/display/{progress-demo → progress/demo}/demo4.md +0 -0
  89. package/docs/display/progress/index.md +7 -0
  90. package/docs/display/stat-demo/{demo1.md → demo/d01-stat.md} +0 -0
  91. package/docs/display/stat-demo/{demo2.md → demo/d02-applying-color.md} +0 -0
  92. package/docs/display/stat-demo/{demo3.md → demo/d03-text-alignment.md} +0 -0
  93. package/docs/display/stat-demo/{demo4.md → demo/d04-title-size.md} +0 -0
  94. package/docs/display/stat-demo/{demo5.md → demo/d05-reverse-the-order.md} +0 -0
  95. package/docs/display/stat-demo/{demo6.md → demo/d06-stat-loading.md} +0 -0
  96. package/docs/display/stat-demo/{demo7.md → demo/d07-putting-it-all-together.md} +0 -0
  97. package/docs/display/{stat.md → stat-demo/index.md} +5 -0
  98. package/docs/display/{text-demo/demo1.md → text/demo/d01-text.md} +0 -0
  99. package/docs/display/{text-demo/demo2.md → text/demo/d02-coloring-text.md} +0 -0
  100. package/docs/display/{text-demo/demo3.md → text/demo/d03-alignment.md} +0 -0
  101. package/docs/display/{text.md → text/index.md} +6 -1
  102. package/docs/display/{title-demo/demo1.md → title/demo/d01-title.md} +0 -0
  103. package/docs/display/title/index.md +6 -0
  104. package/docs/display/toast/{toast-list-demo/demo1.md → demo/d01-toast.md} +11 -13
  105. package/docs/display/{tool-tip.md → toast/index.md} +6 -1
  106. package/docs/display/{tool-tip-demo/demo1.md → tool-tip/demo/d01-tool-tip.md} +0 -3
  107. package/docs/display/{tool-tip-demo/demo2.md → tool-tip/demo/d02-wrapping-components.md} +0 -0
  108. package/docs/display/{tool-tip-demo/demo3.md → tool-tip/demo/d03-icontip.md} +0 -0
  109. package/docs/display/{tool-tip-demo/demo4.md → tool-tip/demo/d04-attaching-to.md} +0 -0
  110. package/docs/display/tool-tip/index.md +10 -0
  111. package/docs/editors/code/{inline-demo/demo1.md → demo/d01-inline.md} +1 -1
  112. package/docs/editors/code/{code-block-demo/demo1.md → demo/d02-code-block.md} +1 -1
  113. package/docs/editors/code/{code-block-demo/demo5.md → demo/d03-line-numbers.md} +1 -1
  114. package/docs/editors/code/{code-block-demo/demo2.md → demo/d04-copy.md} +1 -1
  115. package/docs/editors/code/{code-block-demo/demo3.md → demo/d05-overflow-height.md} +1 -1
  116. package/docs/editors/code/{code-block-demo/demo4.md → demo/d06-white-space.md} +1 -1
  117. package/docs/editors/code/{code-block-demo/demo6.md → demo/d07-line-numbers-highlighted.md} +1 -1
  118. package/docs/editors/code/{code-block-demo/demo7.md → demo/d08-code-block-virtualization.md} +1 -1
  119. package/docs/editors/code/{code-block-demo/demo8.md → demo/d09-flyout.md} +1 -1
  120. package/docs/editors/code/{code-block.md → index.md} +8 -3
  121. package/docs/editors/markdown-editor/base-editor-demo/demo1.md +1 -4
  122. package/docs/editors/markdown-editor/base-editor.md +2 -1
  123. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo1.md +0 -2
  124. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo2.md +0 -0
  125. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo3.md +0 -0
  126. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo4.md +0 -0
  127. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo5.md +0 -0
  128. package/docs/forms/{form-controls/combo-box → combo-box}/index.md +1 -0
  129. package/docs/forms/form-controls/checkbox/index.md +1 -0
  130. package/docs/forms/form-controls/checkbox-group/index.md +1 -0
  131. package/docs/forms/form-controls/file-picker/index.md +1 -1
  132. package/docs/forms/form-controls/form-control-layout/demo/demo1.md +85 -69
  133. package/docs/forms/form-controls/form-control-layout/index.md +1 -0
  134. package/docs/forms/form-controls/form-control-layout-delimited/demo/demo1.md +0 -2
  135. package/docs/forms/form-controls/form-control-layout-delimited/index.md +1 -0
  136. package/docs/forms/form-controls/number-field/index.md +1 -0
  137. package/docs/forms/form-controls/password-field/index.md +1 -0
  138. package/docs/forms/form-controls/radio/index.md +1 -0
  139. package/docs/forms/form-controls/radio-group/index.md +1 -1
  140. package/docs/forms/form-controls/range/index.md +1 -0
  141. package/docs/forms/form-controls/search-field/index.md +1 -1
  142. package/docs/forms/form-controls/select/index.md +1 -1
  143. package/docs/forms/form-controls/switch/index.md +1 -0
  144. package/docs/forms/form-controls/text-field/index.md +1 -1
  145. package/docs/forms/form-controls/textarea/index.md +2 -0
  146. package/docs/forms/form-layouts/described-form-groups.md +2 -1
  147. package/docs/layout/accordion/index.md +14 -13
  148. package/docs/layout/bottom-bar/index.md +2 -1
  149. package/docs/layout/flex/index.md +8 -7
  150. package/docs/layout/flyout/index.md +2 -1
  151. package/docs/layout/header/index.md +2 -1
  152. package/docs/layout/horizontal-rule/horizontal-rule.md +2 -1
  153. package/docs/layout/modal/index.md +1 -1
  154. package/docs/layout/page-header/index.md +2 -1
  155. package/docs/layout/panel/index.md +1 -0
  156. package/docs/layout/popover/index.md +2 -1
  157. package/docs/layout/resizable-container/index.md +2 -1
  158. package/docs/layout/spacer/index.md +2 -1
  159. package/docs/navigation/breadcrumbs/demo/d01-basic.md +5 -7
  160. package/docs/navigation/button/index.md +2 -1
  161. package/docs/navigation/collapsible-nav.md +2 -1
  162. package/docs/navigation/key-pad-menu-demo/demo1.md +0 -2
  163. package/docs/navigation/key-pad-menu.md +2 -1
  164. package/docs/navigation/link-demo/demo1.md +0 -2
  165. package/docs/navigation/link.md +2 -1
  166. package/docs/navigation/side-nav-demo/demo1.md +6 -5
  167. package/docs/navigation/side-nav.md +2 -1
  168. package/docs/navigation/steps.md +2 -1
  169. package/docs/navigation/tabs.md +1 -0
  170. package/docs/templates/page-template/index.md +4 -2
  171. package/docs/templates/sitewide-search/index.md +2 -1
  172. package/docs/templates/super-date-picker/index.md +1 -1
  173. package/docs/utilities/auto-sizer-demo/demo1.md +0 -2
  174. package/docs/utilities/auto-sizer.md +2 -1
  175. package/docs/utilities/copy-demo/demo1.md +0 -2
  176. package/docs/utilities/copy.md +2 -1
  177. package/docs/utilities/mutation-observer-demo/demo1.md +9 -6
  178. package/docs/utilities/mutation-observer.md +2 -1
  179. package/docs/utilities/outside-click-detector-demo/demo1.md +1 -3
  180. package/docs/utilities/outside-click-detector.md +2 -1
  181. package/docs/utilities/overlay-mask-demo/demo1.md +3 -5
  182. package/docs/utilities/overlay-mask.md +2 -1
  183. package/docs/utilities/portal-demo/demo1.md +1 -1
  184. package/docs/utilities/portal-demo/demo2.md +15 -14
  185. package/docs/utilities/portal.md +2 -1
  186. package/docs/utilities/resize-observer-demo/demo1.md +26 -15
  187. package/docs/utilities/resize-observer.md +2 -1
  188. package/docs/utilities/responsive.md +2 -1
  189. package/package.json +3 -3
  190. package/docs/display/card/basic-card.md +0 -9
  191. package/docs/display/card/beta-badge.md +0 -9
  192. package/docs/display/card/checkable.md +0 -9
  193. package/docs/display/card/custom-children.md +0 -9
  194. package/docs/display/card/footer.md +0 -9
  195. package/docs/display/card/images.md +0 -9
  196. package/docs/display/card/layout.md +0 -9
  197. package/docs/display/card/selectable.md +0 -9
  198. package/docs/display/empty-prompt.md +0 -2
  199. package/docs/display/health.md +0 -9
  200. package/docs/display/list-group-demo/demo1.md +0 -171
  201. package/docs/display/list-group.md +0 -1
  202. package/docs/display/loading/spinner-demo/demo1.md +0 -8
  203. package/docs/display/progress.md +0 -1
  204. package/docs/display/title.md +0 -1
  205. package/docs/display/toast/toast-list.md +0 -1
  206. package/docs/editors/code/inline.md +0 -1
@@ -28,27 +28,32 @@
28
28
  @paddingSize={{@paddingSize}}
29
29
  ...attributes
30
30
  >
31
- <div class="euiCard__top">
32
- {{#if (has-block "icon")}}
33
- {{yield "euiCard__icon" to="icon"}}
34
- {{else}}
35
- {{#if (or @image @icon)}}
36
- {{#if (and @image (not-eq layout "horizontal"))}}
37
- <div class="euiCard__image">
38
- <img src={{@image}} alt="card-top" />
39
- </div>
40
- {{/if}}
41
- {{#if @icon}}
42
- <EuiIcon
43
- @iconClasses="euiCard__icon"
44
- @type={{@icon}}
45
- @size={{@iconSize}}
46
- />
31
+
32
+ {{#if (or (has-block "icon") (or @image @icon))}}
33
+ <div class={{this.topClasses}}>
34
+ {{#if (has-block "icon")}}
35
+ {{yield "euiCard__icon" to="icon"}}
36
+ {{else}}
37
+ {{#if (or @image @icon)}}
38
+ {{#if (and @image (not-eq layout "horizontal"))}}
39
+ <div class="euiCard__image">
40
+ <img src={{@image}} alt="card-top" />
41
+ </div>
42
+ {{/if}}
43
+ {{#if @icon}}
44
+ <EuiIcon
45
+ @iconClasses="euiCard__icon"
46
+ @type={{@icon}}
47
+ @size={{@iconSize}}
48
+ />
49
+ {{/if}}
47
50
  {{/if}}
48
51
  {{/if}}
49
- {{/if}}
50
- </div>
51
- <div class="euiCard__content">
52
+ </div>
53
+ {{/if}}
54
+
55
+
56
+ <div class={{this.contentClasses}}>
52
57
  <EuiTitle class="euiCard__title" @size={{arg-or-default @titleSize "s"}}>
53
58
  {{#if (has-block "title")}}
54
59
  {{yield (set this "link") to="title"}}
@@ -117,7 +122,7 @@
117
122
  </span>
118
123
  {{/if}}
119
124
  {{#if (and (eq layout "vertical") (or (has-block "footer") @footer))}}
120
- <div class="euiCard__footer">
125
+ <div class={{this.footerClasses}}>
121
126
  {{#if (has-block "footer")}}
122
127
  {{yield to="footer"}}
123
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
  }
@@ -1,22 +1,27 @@
1
- <EuiModal class="euiModal--confirmation" @onClose={{@onCancel}} ...attributes>
2
- {{#if @title}}
1
+ <EuiModal
2
+ class="euiModal--confirmation"
3
+ @onClose={{@onCancel}}
4
+ ...attributes
5
+ >
6
+
7
+ {{#if (or @title (has-block 'title'))}}
3
8
  <EuiModalHeader>
4
9
  <EuiModalHeaderTitle>
5
10
  {{@title}}
11
+ {{yield to='title'}}
6
12
  </EuiModalHeaderTitle>
7
13
  </EuiModalHeader>
8
14
  {{/if}}
9
- {{#if (has-block)}}
10
- <EuiModalBody>
11
- {{yield}}
12
- </EuiModalBody>
13
- {{else if @message}}
15
+
16
+ {{#if (or @message (has-block))}}
14
17
  <EuiModalBody>
15
18
  <EuiText>
16
19
  {{@message}}
20
+ {{yield}}
17
21
  </EuiText>
18
22
  </EuiModalBody>
19
23
  {{/if}}
24
+
20
25
  <EuiModalFooter>
21
26
  <EuiButtonEmpty {{on "click" @onCancel}}>
22
27
  {{@cancelButtonText}}
@@ -31,4 +36,5 @@
31
36
  {{@confirmButtonText}}
32
37
  </EuiButton>
33
38
  </EuiModalFooter>
39
+
34
40
  </EuiModal>
@@ -8,7 +8,11 @@
8
8
  >
9
9
  <EuiFlexGroup @gutterSize={{arg-or-default @gutterSize "l"}}>
10
10
  <EuiFlexItem @grow={{@descriptionFlexItemProps.grow}}>
11
- <EuiTitle class="euiDescribedFormGroup__title" @size={{@titleSize}}>
11
+ <EuiTitle
12
+ class="euiDescribedFormGroup__title"
13
+ @size={{@titleSize}}
14
+ @tagName={{@titleTagName}}
15
+ >
12
16
  {{yield to="title"}}
13
17
  </EuiTitle>
14
18
  <EuiText
@@ -12,7 +12,12 @@
12
12
  )
13
13
  )
14
14
  }}
15
- <span class="euiLoadingContent__singleLine">
15
+ <span
16
+ class={{class-names
17
+ "euiLoadingContent__singleLine"
18
+ @singleLineClasses
19
+ }}
20
+ >
16
21
  <span class="euiLoadingContent__singleLineBackground" />
17
22
  </span>
18
23
  {{/each}}
@@ -25,13 +25,13 @@
25
25
  isPaused=(arg-or-default @isFocusTrapPaused false)
26
26
  focusTrapOptions=(arg-or-default @focusTrapOptions (hash))
27
27
  }}
28
- {{on-key "Escape" (prevent-default (stop-propagation @onClose))}}
28
+ {{on-key "Escape" (prevent-default (stop-propagation (optional @onClose)))}}
29
29
  >
30
30
  <EuiButtonIcon
31
31
  class="euiModal__closeIcon"
32
32
  @iconType="cross"
33
33
  @color="text"
34
- {{on "click" @onClose}}
34
+ {{on "click" (optional @onClose)}}
35
35
  />
36
36
  <div class="euiModal__flex">
37
37
  {{yield}}
@@ -0,0 +1,24 @@
1
+ {{!-- TODO: not fully implemented --}}
2
+
3
+ <li
4
+ role="option"
5
+ aria-selected={{and (not @disabled) (eq (type-of @checked) 'string')}}
6
+ class={{class-names
7
+ componentName='EuiSelectableListItem'
8
+ isFocused=@isFocused
9
+ }}
10
+ aria-disabled={{@disabled}}
11
+ ...attributes
12
+ >
13
+ <span class="euiSelectableListItem__content">
14
+ {{!-- {{optionIcon}} --}}
15
+ {{!-- {{prependNode}} --}}
16
+ <span class="euiSelectableListItem__text">
17
+ {{yield}}
18
+ {{!-- {{state}} --}}
19
+ {{!-- {{children}} --}}
20
+ {{!-- {{instruction}} --}}
21
+ </span>
22
+ {{!-- {{appendNode}} --}}
23
+ </span>
24
+ </li>
@@ -0,0 +1,14 @@
1
+ export const baseClass = 'euiSelectableListItem';
2
+
3
+ export const isFocusedMapping = {
4
+ true: `${baseClass}--isFocused`
5
+ };
6
+
7
+ const mapping: ComponentMapping = {
8
+ base: baseClass,
9
+ properties: {
10
+ isFocused: isFocusedMapping
11
+ }
12
+ };
13
+
14
+ export default mapping;
@@ -54,6 +54,7 @@ import EuiProgressData from './eui-progress-data';
54
54
  import EuiRangeHighlight from './eui-range-highlight';
55
55
  import EuiRangeInput from './eui-range-input';
56
56
  import EuiRangeLevels from './eui-range-levels';
57
+ import EuiSelectableListItem from './eui-selectable-list-item';
57
58
  import EuiSpacer from './eui-spacer';
58
59
  import EuiStat from './eui-stat';
59
60
  import EuiStepNumber from './eui-step-number';
@@ -123,6 +124,7 @@ const mapping: Mapping = {
123
124
  EuiRangeHighlight,
124
125
  EuiRangeInput,
125
126
  EuiRangeLevels,
127
+ EuiSelectableListItem,
126
128
  EuiSpacer,
127
129
  EuiStat,
128
130
  EuiStepNumber,
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/components/eui-selectable-list-item';
@@ -2,8 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Basic
6
-
7
5
  ```hbs template
8
6
  <div>
9
7
  <EuiAvatar @size='s' @name='Raphael' />
@@ -1,3 +1,8 @@
1
+ ---
2
+ title: Avatar
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Avatar"/>
2
7
  <EuiHorizontalRule />
3
8
  <EuiText>
@@ -1,3 +1,8 @@
1
+ ---
2
+ title: Badge
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Badge"/>
2
7
  <EuiHorizontalRule />
3
8
  <EuiText>
@@ -1,3 +1,8 @@
1
+ ---
2
+ title: CallOut
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Callout"/>
2
7
 
3
8
  <EuiSpacer />
@@ -6,4 +11,4 @@
6
11
  <strong>EuiCallOut</strong> contains a message directly related to content on the page. This includes general information, success, warning, and error messages.</p><p><strong>Keep these guidelines in mind:</strong></p><ul><li>Minimize the number of callouts per page.</li><li>Stack callouts in the order in which they require users' attention: error, warning, info, and then success.</li><li>Offer only one action per callout and ensure it's an action users can perform quickly.</li><li>If the callout has a permanent spot in the UI, but needs to be less obstructive, set the <EuiCode @language="text">size</EuiCode> property to <EuiCode @language=="text">s</EuiCode> (small).</li><li>Use an <EuiCode @language="text">icon</EuiCode> prop if it adds context.</li></ul>
7
12
  </EuiText>
8
13
 
9
- <EuiHorizontalRule />
14
+ <EuiHorizontalRule />
@@ -1,4 +1,8 @@
1
- # Basic card
1
+ ---
2
+ order: 1
3
+ ---
4
+
5
+ # Basic Card
2
6
 
3
7
  <EuiText>
4
8
  <p>At its core an <strong>EuiCard</strong> should contain a <EuiCode @language="text">title</EuiCode>,<EuiCode @language="text">description</EuiCode>, and an <EuiCode @language="text">icon</EuiCode>. You can make the whole card clickable by giving it an <EuiCode @language="text">onClick</EuiCode> handler or <EuiCode @language="text">href</EuiCode>.</p>
@@ -1,3 +1,7 @@
1
+ ---
2
+ order: 2
3
+ ---
4
+
1
5
  # Layout
2
6
 
3
7
  <EuiText>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 1
2
+ order: 3
3
3
  ---
4
4
 
5
5
  # Images
@@ -1,3 +1,7 @@
1
+ ---
2
+ order: 4
3
+ ---
4
+
1
5
  # Footer
2
6
 
3
7
  <EuiText>
@@ -1,3 +1,7 @@
1
+ ---
2
+ order: 5
3
+ ---
4
+
1
5
  # Beta Badge
2
6
 
3
7
  <EuiText>
@@ -1,4 +1,8 @@
1
- # Demo
1
+ ---
2
+ order: 6
3
+ ---
4
+
5
+ # Selectable
2
6
 
3
7
  ```hbs template
4
8
  <EuiFlexGroup @gutterSize='l'>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 1
2
+ order: 7
3
3
  ---
4
4
 
5
5
  # Checkable
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 2
2
+ order: 8
3
3
  ---
4
4
 
5
5
  <EuiCallOut @iconType='accessibility' @color='warning'>
@@ -1,4 +1,8 @@
1
- # Custom Children
1
+ ---
2
+ order: 9
3
+ ---
4
+
5
+ # Custom children
2
6
 
3
7
  <EuiText>
4
8
  <p>In the event that you need <strong>more than</strong> just paragraph text for the <EuiCode>description</EuiCode>, you can suppliment with anything you need as the <EuiCode>children</EuiCode> of the component. You can also completely replace the description with custom children, but <strong>EuiCard</strong> at least one of these.</p>
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: Card
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Card"/>
7
+ <EuiSpacer/>
8
+ <EuiText>
9
+ <p>
10
+ <strong>EuiCard</strong> is a content-oriented component built on top of EuiPanel. Be sure to check out the guidelines for properly nesting panels.
11
+ </p>
12
+ </EuiText>
13
+
14
+ <EuiHorizontalRule/>
@@ -1,14 +1,18 @@
1
- # Comment List
2
-
1
+ <EuiText>
2
+ <p>
3
3
  The Comment List serves merely as a wrapper for various comments.
4
4
  It does contain the comments from trying to connect each other in case you had multiple
5
5
  unrelated comment lists in the same page.
6
6
 
7
- >The original component from the React.js framework receives a @comments object, and maps them into the EuiCommentList component. For Ember.js, just pass them as children.
7
+ The original component from the React.js framework receives a @comments object, and maps them into the EuiCommentList component. For Ember.js, just pass them as children.
8
+
9
+ </p>
10
+
11
+ </EuiText>
8
12
 
9
13
  ```hbs template
10
14
  <EuiCommentList>
11
- <EuiComment @type="regular">
15
+ <EuiComment @type='regular'>
12
16
  <:username>
13
17
  kyloRen
14
18
  </:username>
@@ -24,10 +28,10 @@ unrelated comment lists in the same page.
24
28
  </EuiText>
25
29
  </:body>
26
30
  <:actions>
27
- <EuiButtonIcon @iconType="wrench"/>
31
+ <EuiButtonIcon @iconType='wrench' />
28
32
  </:actions>
29
33
  </EuiComment>
30
- <EuiComment @type="update">
34
+ <EuiComment @type='update'>
31
35
  <:username>
32
36
  lukeSW
33
37
  </:username>
@@ -38,7 +42,7 @@ unrelated comment lists in the same page.
38
42
  on 2015-02-05
39
43
  </:timestamp>
40
44
  </EuiComment>
41
- <EuiComment @type="update">
45
+ <EuiComment @type='update'>
42
46
  <:username>
43
47
  r2d2
44
48
  </:username>
@@ -48,8 +52,8 @@ unrelated comment lists in the same page.
48
52
  <:body>
49
53
  <EuiText>
50
54
  <p>
51
- He went into a sort of hibernation or low power mode,
52
- you know? Like when you 'sleep' a computer.
55
+ He went into a sort of hibernation or low power mode, you know? Like
56
+ when you 'sleep' a computer.
53
57
  </p>
54
58
  </EuiText>
55
59
  </:body>
@@ -57,11 +61,17 @@ unrelated comment lists in the same page.
57
61
  on 2015-02-05
58
62
  </:timestamp>
59
63
  </EuiComment>
60
- <EuiComment @timelineIcon="listAdd" @type="update">
64
+ <EuiComment @timelineIcon='listAdd' @type='update'>
61
65
  <:username>
62
- <EuiFlexGroup @responsive={{false}} @alignItems="center" @gutterSize="s">
66
+ <EuiFlexGroup @responsive={{false}} @alignItems='center' @gutterSize='s'>
63
67
  <EuiFlexItem @grow={{false}}>
64
- <EuiAvatar @type="space" @initials="FO" @name="First Order" @initialLength={{2}} @size="s" />
68
+ <EuiAvatar
69
+ @type='space'
70
+ @initials='FO'
71
+ @name='First Order'
72
+ @initialLength={{2}}
73
+ @size='s'
74
+ />
65
75
  </EuiFlexItem>
66
76
  <EuiFlexItem @grow={{false}}>
67
77
  firstOrder
@@ -69,12 +79,12 @@ unrelated comment lists in the same page.
69
79
  </EuiFlexGroup>
70
80
  </:username>
71
81
  <:event>
72
- <EuiFlexGroup @responsive={{false}} @alignItems="center" @gutterSize="s">
82
+ <EuiFlexGroup @responsive={{false}} @alignItems='center' @gutterSize='s'>
73
83
  <EuiFlexItem @grow={{false}}>
74
84
  was created by
75
85
  </EuiFlexItem>
76
86
  <EuiFlexItem @grow={{false}}>
77
- <EuiBadge @color="accent">snoke</EuiBadge>
87
+ <EuiBadge @color='accent'>snoke</EuiBadge>
78
88
  </EuiFlexItem>
79
89
  </EuiFlexGroup>
80
90
  </:event>
@@ -82,13 +92,9 @@ unrelated comment lists in the same page.
82
92
  on 2015-02-05
83
93
  </:timestamp>
84
94
  </EuiComment>
85
- <EuiComment @type="regular">
95
+ <EuiComment @type='regular'>
86
96
  <:timelineIcon>
87
- <EuiAvatar
88
- @initials="RS"
89
- @name="Rey Skywokah"
90
- @type="user"
91
- />
97
+ <EuiAvatar @initials='RS' @name='Rey Skywokah' @type='user' />
92
98
  </:timelineIcon>
93
99
  <:username>
94
100
  reySkywokah
@@ -104,11 +110,11 @@ unrelated comment lists in the same page.
104
110
  </EuiText>
105
111
  </:body>
106
112
  <:actions>
107
- <EuiButtonIcon @iconType="questionInCircle" />
113
+ <EuiButtonIcon @iconType='questionInCircle' />
108
114
  </:actions>
109
115
  <:timestamp>
110
116
  on 2015-02-05
111
117
  </:timestamp>
112
118
  </EuiComment>
113
119
  </EuiCommentList>
114
- ```
120
+ ```
@@ -1,2 +1,8 @@
1
+ ---
2
+ title: Comment List
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Comment List"/>
7
+ <EuiSpacer/>
2
8
  <EuiHorizontalRule />
@@ -1,2 +1,8 @@
1
+ ---
2
+ title: Description list
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Description list"/>
7
+
2
8
  <EuiHorizontalRule />
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: Empty Prompt
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Empty prompt"/>
7
+ <EuiSpacer/>
8
+ <EuiText>
9
+ <p>
10
+ The <strong>EuiEmptyPrompt</strong> is the building block to create an empty state. You can use it as a placeholder for any type of empty content. They are especially helpful for replacing entire pages or parts of a product that contain no content.
11
+ </p>
12
+ </EuiText>
13
+ <EuiHorizontalRule />
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: Health
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Health"/>
7
+
8
+ <EuiHorizontalRule />
9
+ <EuiText>
10
+ <p>
11
+ <p>The <strong>EuiHealth</strong> component should be used when showing comparitive health of listed objects (like servers, HTTP response status codes(as per convenience), nodes, indexes..etc). Because icons are vague and bulky and color alone does not work, color plus text provides a recognizable, lightweight combo that works in most situations.</p>
12
+ </p>
13
+ </EuiText>