@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
@@ -15,15 +15,13 @@ order: 1
15
15
  <EuiSpacer/>
16
16
 
17
17
  <EuiCallOut @iconType='accessibility' @color='warning'>
18
- <:title>
19
- For accessibility, it is highly recommended to provide a descriptive
20
- <EuiCode>aria-label</EuiCode>
21
- for each set of breadcrumbs.
22
- </:title>
18
+ <:title>
19
+ For accessibility, it is highly recommended to provide a descriptive
20
+ <EuiCode>aria-label</EuiCode>
21
+ for each set of breadcrumbs.
22
+ </:title>
23
23
  </EuiCallOut>
24
24
 
25
- # Basic
26
-
27
25
  ```hbs template
28
26
  <EuiPageContent role={{null}}>
29
27
  <EuiBreadcrumbs
@@ -2,6 +2,7 @@
2
2
  title: Button
3
3
  ---
4
4
 
5
+ <EuiSpacer/>
5
6
  <EuiPageHeader @pageTitle="Button"/>
6
7
  <EuiSpacer @size="l" />
7
8
 
@@ -10,4 +11,4 @@ title: Button
10
11
  <p>Be sure to read the full button usage guidelines.</p>
11
12
  </EuiText>
12
13
 
13
- <EuiHorizontalRule/>
14
+ <EuiHorizontalRule/>
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Collapsible nav"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Collapsible nav"/>
@@ -14,8 +14,6 @@ order: 1
14
14
  </EuiText>
15
15
  <EuiSpacer/>
16
16
 
17
- # Basic
18
-
19
17
  ```hbs template
20
18
  <EuiCallOut @iconType='accessibility' @color='warning'>
21
19
  <:body>
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Key pad menu"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Key pad menu"/>
@@ -2,8 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Basic
6
-
7
5
  <EuiText>
8
6
  <p>
9
7
  <strong>EuiLink</strong> is any anchor or button element that is designed to display nicely within a block of text. It also provides more anchor-specific styling onto links and makes sure they are accessible.
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Link"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Link"/>
@@ -1,5 +1,3 @@
1
- # Demo
2
-
3
1
  ```hbs template
4
2
  <EuiSideNav
5
3
  @mobileTitle='Mobile Title'
@@ -7,7 +5,8 @@
7
5
  @isOpenMobile={{true}}
8
6
  @items={{this.sideNavItems}}
9
7
  @selectedItem={{this.selectedItem}}
10
- @truncate={{true}} {{! you can also truncate per item }}
8
+ @truncate={{true}}
9
+ {{! you can also truncate per item }}
11
10
  />
12
11
 
13
12
  <EuiSpacer />
@@ -15,10 +14,12 @@
15
14
  @isOpenMobile={{true}}
16
15
  @items={{this.sideNavItems}}
17
16
  @selectedItem={{this.selectedItem}}
18
- @truncate={{true}} {{! you can also truncate per item }}
17
+ @truncate={{true}}
18
+ {{! you can also truncate per item }}
19
19
  >
20
20
  <:heading>
21
- <EuiIcon @type="faceHappy"/> Header!
21
+ <EuiIcon @type='faceHappy' />
22
+ Header!
22
23
  </:heading>
23
24
  </EuiSideNav>
24
25
  ```
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Side nav"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Side nav"/>
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Steps"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Steps"/>
@@ -1 +1,2 @@
1
+ <EuiSpacer/>
1
2
  <EuiPageHeader @pageTitle="Tabs"/>
@@ -2,9 +2,11 @@
2
2
  title: Page template
3
3
  ---
4
4
 
5
+ <EuiSpacer/>
5
6
  <EuiPageHeader @pageTitle="Page template"/>
6
-
7
+ <EuiSpacer />
7
8
  <EuiText>
9
+
8
10
  <p>
9
11
  Page layouts are modular and fit together in a precise manner, though certain
10
12
  parts can also be added or removed as needed. EUI provides both the indivdual
@@ -34,4 +36,4 @@ title: Page template
34
36
  </EuiCallOut>
35
37
  <EuiSpacer /> -->
36
38
 
37
- <EuiHorizontalRule />
39
+ <EuiHorizontalRule />
@@ -6,4 +6,5 @@ disabled_demos:
6
6
  - d02-options
7
7
  ---
8
8
 
9
- <EuiPageHeader @pageTitle="Sitewide search"/>
9
+ <EuiSpacer/>
10
+ <EuiPageHeader @pageTitle="Sitewide search"/>
@@ -8,5 +8,5 @@ disabled_demos:
8
8
  - d04-auto-refresh
9
9
  - d05-elastic-pattern-with-kql
10
10
  ---
11
-
11
+ <EuiSpacer/>
12
12
  <EuiPageHeader @pageTitle="Sitewide search"/>
@@ -2,8 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Auto sizer
6
-
7
5
  <EuiText>
8
6
  <p>
9
7
  <strong>EuiAutoSizer</strong> helps components that use virtualized rendering and/or require explicit dimensions to fill all available space in the parent container. See the <EuiLink @href="https://github.com/bvaughn/react-virtualized/blob/master/docs/AutoSizer.md">react-virtualized</EuiLink> documentation as <strong>EuiAutoSizer</strong> is a port from component for <strong>AutoSizer</strong>.
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Auto sizer"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Auto sizer"/>
@@ -2,8 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Copy
6
-
7
5
  <EuiText>
8
6
  <p>
9
7
  The <strong>EuiCopy</strong> component is a utility for copying text to clipboard. Wrap a function that returns a component. The first argument will be a <EuiCode>copy</EuiCode> function
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Copy"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Copy"/>
@@ -1,5 +1,3 @@
1
- # Demo
2
-
3
1
  ```hbs template
4
2
  <div>
5
3
  <p>
@@ -12,7 +10,11 @@
12
10
  onMutation=this.onMutation
13
11
  }}
14
12
  >
15
- <EuiButton @color={{this.buttonColor}} @fill="{true}" {{on "click" this.toggleButtonColor}}>
13
+ <EuiButton
14
+ @color={{this.buttonColor}}
15
+ @fill='{true}'
16
+ {{on 'click' this.toggleButtonColor}}
17
+ >
16
18
  Toggle button color
17
19
  </EuiButton>
18
20
  <EuiSpacer />
@@ -26,8 +28,8 @@
26
28
  </li>
27
29
  {{/each}}
28
30
  </ul>
29
- <EuiSpacer size="s" />
30
- <EuiButtonEmpty {{on "click" this.addItem}}>
31
+ <EuiSpacer size='s' />
32
+ <EuiButtonEmpty {{on 'click' this.addItem}}>
31
33
  add item
32
34
  </EuiButtonEmpty>
33
35
  </EuiPanel>
@@ -60,7 +62,8 @@ export default class OutsideClickDetectorComponentDemo1 extends GlimmerComponent
60
62
 
61
63
  @action
62
64
  onMutation([{ type }]) {
63
- this.lastMutation = type === 'attributes' ? 'button class name changed' : 'DOM tree changed';
65
+ this.lastMutation =
66
+ type === 'attributes' ? 'button class name changed' : 'DOM tree changed';
64
67
  }
65
68
  }
66
69
  ```
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Mutation observer"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Mutation observer"/>
@@ -1,8 +1,6 @@
1
- # Demo
2
-
3
1
  ```hbs template
4
2
  <EuiButton
5
- {{on "click" (set this "disabled" (not this.disabled))}}
3
+ {{on 'click' (set this 'disabled' (not this.disabled))}}
6
4
  {{outside-click-detector onOutsideClick=this.salute isDisabled=this.disabled}}
7
5
  >
8
6
  {{#if this.disabled}}
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Outside click detector"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Outside click detector"/>
@@ -1,11 +1,9 @@
1
- # Demo
2
-
3
1
  ```hbs template
4
- <EuiButtonEmpty {{on "click" this.toggle}} @color="primary">
5
- Click here to test Overlay
2
+ <EuiButtonEmpty {{on 'click' this.toggle}} @color='primary'>
3
+ Click here to test Overlay
6
4
  </EuiButtonEmpty>
7
5
  {{#if this.showOverlay}}
8
- <EuiOverlayMask @headerZindexLocation="above" {{on "click" this.toggle}}>
6
+ <EuiOverlayMask @headerZindexLocation='above' {{on 'click' this.toggle}}>
9
7
  This is a plain overlay!!
10
8
  </EuiOverlayMask>
11
9
  {{/if}}
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Overlay mask"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Overlay mask"/>
@@ -2,7 +2,7 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Demo
5
+
6
6
 
7
7
  ```hbs template
8
8
  <EuiTitle>
@@ -2,30 +2,31 @@
2
2
  order: 2
3
3
  ---
4
4
 
5
- # Demo
6
-
7
5
  ```hbs template
8
6
  <EuiTitle>
9
- Inserting portals
7
+ Inserting portals
10
8
  </EuiTitle>
11
9
  <EuiText>
12
- There is an optional insert prop that can specify the portal's location in the DOM. When used, it is important to consider how the location relates to the component lifecycle, as it could be removed from the DOM by another component update.
13
-
14
- insert is an object with two key-value pairs: sibling and position.sibling is the HTMLElement to insert the portal next to, and position specifies the portal's relative position, either before or after.
10
+ There is an optional insert prop that can specify the portal's location in the
11
+ DOM. When used, it is important to consider how the location relates to the
12
+ component lifecycle, as it could be removed from the DOM by another component
13
+ update. insert is an object with two key-value pairs: sibling and
14
+ position.sibling is the HTMLElement to insert the portal next to, and position
15
+ specifies the portal's relative position, either before or after.
15
16
  </EuiText>
16
- <EuiSpacer @size="l"/>
17
+ <EuiSpacer @size='l' />
17
18
  <EuiButton
18
- {{did-insert (set this "buttonRef")}}
19
- {{on "click" (set this "showPortal" (not this.showPortal))}}
19
+ {{did-insert (set this 'buttonRef')}}
20
+ {{on 'click' (set this 'showPortal' (not this.showPortal))}}
20
21
  >
21
- Toggle portal
22
+ Toggle portal
22
23
  </EuiButton>
23
24
 
24
25
  {{#if this.showPortal}}
25
- <EuiPortal @insert={{hash sibling=this.buttonRef position='after' }}>
26
- <EuiSpacer />
27
- <p>This element is appended immediately after the button.</p>
28
- </EuiPortal>
26
+ <EuiPortal @insert={{hash sibling=this.buttonRef position='after'}}>
27
+ <EuiSpacer />
28
+ <p>This element is appended immediately after the button.</p>
29
+ </EuiPortal>
29
30
  {{/if}}
30
31
  ```
31
32
 
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Portal"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Portal"/>
@@ -1,13 +1,17 @@
1
- # Demo
2
-
3
1
  ```hbs template
4
2
  <div>
5
3
  <EuiText>
6
4
  <p>
7
- EuiResizeObserver is a wrapper around the Resizer Observer API which allows watching for changes to the content rectangle of DOM elements. Unlike EuiMutationObserver, EuiResizeObserver does not take parameters, but it does fire a more efficient and informative callback when resize events occur.
5
+ EuiResizeObserver is a wrapper around the Resizer Observer API which
6
+ allows watching for changes to the content rectangle of DOM elements.
7
+ Unlike EuiMutationObserver, EuiResizeObserver does not take parameters,
8
+ but it does fire a more efficient and informative callback when resize
9
+ events occur.
8
10
  </p>
9
11
  <p>
10
- Due to limited browser support (currently not in Safari and IE11), will fallback to using the MutationObserver API with a default set of parameters that approximate the results of EuiMutationObserver.
12
+ Due to limited browser support (currently not in Safari and IE11), will
13
+ fallback to using the MutationObserver API with a default set of
14
+ parameters that approximate the results of EuiMutationObserver.
11
15
  </p>
12
16
  </EuiText>
13
17
  <EuiSpacer />
@@ -18,13 +22,16 @@
18
22
  height:
19
23
  {{this.dimensions.height}}
20
24
  </EuiTitle>
21
- <EuiButton {{on "click" this.addItem}}>
25
+ <EuiButton {{on 'click' this.addItem}}>
22
26
  add item
23
27
  </EuiButton>
24
28
  <EuiSpacer />
25
29
  <EuiFlexGroup>
26
30
  <EuiFlexItem @grow={{false}}>
27
- <EuiPanel @grow={{false}} {{resize-observer onResize=(set this "dimensions")}}>
31
+ <EuiPanel
32
+ @grow={{false}}
33
+ {{resize-observer onResize=(set this 'dimensions')}}
34
+ >
28
35
  <ul>
29
36
  {{#each this.items as |item|}}
30
37
  <li>
@@ -32,19 +39,20 @@
32
39
  </li>
33
40
  {{/each}}
34
41
  </ul>
35
- <EuiSpacer size="s" />
42
+ <EuiSpacer size='s' />
36
43
  </EuiPanel>
37
44
  </EuiFlexItem>
38
45
  </EuiFlexGroup>
39
- <EuiSpacer @size="l" />
46
+ <EuiSpacer @size='l' />
40
47
  <EuiText>
41
- You can also indicate to only care about width or height, for example the next panel only observers for height changes
48
+ You can also indicate to only care about width or height, for example the
49
+ next panel only observers for height changes
42
50
  </EuiText>
43
51
  <EuiSpacer />
44
- <EuiButton {{on "click" this.increaseItemsWidth}}>
52
+ <EuiButton {{on 'click' this.increaseItemsWidth}}>
45
53
  increaseWidth
46
54
  </EuiButton>
47
- <EuiButton {{on "click" this.addItem}}>
55
+ <EuiButton {{on 'click' this.addItem}}>
48
56
  add item
49
57
  </EuiButton>
50
58
  <EuiTitle>
@@ -56,7 +64,10 @@
56
64
  <EuiSpacer />
57
65
  <EuiFlexGroup>
58
66
  <EuiFlexItem @grow={{false}}>
59
- <EuiPanel @grow={{false}} {{resize-observer "height" onResize=(set this "dimensions2")}}>
67
+ <EuiPanel
68
+ @grow={{false}}
69
+ {{resize-observer 'height' onResize=(set this 'dimensions2')}}
70
+ >
60
71
  <ul>
61
72
  {{#each this.items as |item|}}
62
73
  <li>
@@ -64,7 +75,7 @@
64
75
  </li>
65
76
  {{/each}}
66
77
  </ul>
67
- <EuiSpacer size="s" />
78
+ <EuiSpacer size='s' />
68
79
  </EuiPanel>
69
80
  </EuiFlexItem>
70
81
  </EuiFlexGroup>
@@ -81,11 +92,11 @@ export default class OutsideClickDetectorComponentDemo1 extends GlimmerComponent
81
92
  @tracked disabled = false;
82
93
  @tracked dimensions = {
83
94
  width: 0,
84
- height: 0,
95
+ height: 0
85
96
  };
86
97
  @tracked dimensions2 = {
87
98
  width: 0,
88
- height: 0,
99
+ height: 0
89
100
  };
90
101
  @tracked items = ['item 1', 'item 2', 'item 3'];
91
102
  @tracked items2 = ['item 1', 'item 2', 'item 3'];
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Resize observer"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Resize observer"/>
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Responsive"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Responsive"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.4.4",
3
+ "version": "5.7.0",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -64,7 +64,7 @@
64
64
  "ember-cli-htmlbars": "^6.0.1",
65
65
  "ember-cli-typescript": "4.2.1",
66
66
  "ember-composable-helpers": "^4.4.1",
67
- "ember-element-helper": "^0.5.5",
67
+ "ember-element-helper": "^0.6.0",
68
68
  "ember-event-helpers": "^0.1.1",
69
69
  "ember-in-element-polyfill": "^1.0.0",
70
70
  "ember-keyboard": "^7.0.1",
@@ -182,5 +182,5 @@
182
182
  "volta": {
183
183
  "extends": "../../package.json"
184
184
  },
185
- "gitHead": "ff5f29643319901716bf4c0ad1d2b1cfdd30d245"
185
+ "gitHead": "99f313704b534a506c9a67cffd7e38a64348df97"
186
186
  }
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Basic card
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Beta badge
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Checkable
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Custom children
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Footer
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Images
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Layout
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,9 +0,0 @@
1
- <EuiPageHeader>
2
- <EuiPageHeaderSection>
3
- <EuiTitle @size="l">
4
- <h1>
5
- Selectable
6
- </h1>
7
- </EuiTitle>
8
- </EuiPageHeaderSection>
9
- </EuiPageHeader>
@@ -1,2 +0,0 @@
1
- <EuiPageHeader @pageTitle="Empty Prompt"/>
2
- <EuiHorizontalRule />
@@ -1,9 +0,0 @@
1
- <EuiPageHeader @pageTitle="Health"/>
2
-
3
- <EuiSpacer />
4
- <EuiText>
5
- <p>
6
- <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>
7
- </p>
8
- </EuiText>
9
- <EuiHorizontalRule />