@ember-eui/core 5.6.0 → 5.8.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.
Files changed (227) hide show
  1. package/addon/components/eui-described-form-group/index.hbs +5 -1
  2. package/addon/components/eui-empty-prompt/index.hbs +2 -1
  3. package/addon/components/eui-i18n/index.hbs +33 -0
  4. package/addon/components/eui-i18n/index.ts +73 -0
  5. package/addon/components/eui-i18n/render.hbs +1 -0
  6. package/addon/components/eui-i18n/util.ts +127 -0
  7. package/addon/components/eui-pagination/button-wrapper/index.hbs +21 -0
  8. package/addon/components/eui-pagination/index.hbs +115 -0
  9. package/addon/components/eui-pagination/index.ts +177 -0
  10. package/addon/components/eui-pagination/next-button/index.hbs +27 -0
  11. package/addon/components/eui-pagination/previous-button/index.hbs +27 -0
  12. package/addon/components/eui-pagination-button/index.hbs +36 -0
  13. package/addon/i18n/index.ts +8 -0
  14. package/addon/utils/predicate/common_predicates.ts +37 -0
  15. package/addon/utils/predicate/index.ts +10 -0
  16. package/addon/utils/predicate/lodash_predicates.ts +27 -0
  17. package/app/components/eui-i18n/index.js +1 -0
  18. package/app/components/eui-i18n/render.js +1 -0
  19. package/app/components/eui-pagination/button-wrapper.js +1 -0
  20. package/app/components/eui-pagination/index.js +1 -0
  21. package/app/components/eui-pagination/next-button.js +1 -0
  22. package/app/components/eui-pagination/previous-button.js +1 -0
  23. package/app/components/eui-pagination-button/index.js +1 -0
  24. package/app/i18n/index.js +1 -0
  25. package/docs/display/{avatar-demo/demo1.md → avatar/demo/d01-basic.md} +0 -2
  26. package/docs/display/{avatar-demo/demo2.md → avatar/demo/d02-initials.md} +0 -0
  27. package/docs/display/{avatar-demo/demo3.md → avatar/demo/d03-types.md} +0 -0
  28. package/docs/display/{avatar-demo/demo4.md → avatar/demo/d04-icons.md} +0 -0
  29. package/docs/display/{avatar-demo/demo5.md → avatar/demo/d05-disabled.md} +0 -0
  30. package/docs/display/{avatar.md → avatar/index.md} +5 -0
  31. package/docs/display/{badge-demo/demo1.md → badge/demo/d01-badge.md} +0 -0
  32. package/docs/display/{badge-demo/demo2.md → badge/demo/d02-badge-with-icon.md} +0 -0
  33. package/docs/display/{badge-demo/demo3.md → badge/demo/d03-badge-with-onclick-events.md} +0 -0
  34. package/docs/display/{badge-demo/demo4.md → badge/demo/d04-badge-for-health-status.md} +0 -0
  35. package/docs/display/{badge-demo/demo5.md → badge/demo/d05-badge-with-href.md} +0 -0
  36. package/docs/display/{badge-demo/demo7.md → badge/demo/d06-badge-groups-and-truncation.md} +0 -0
  37. package/docs/display/{badge-demo/demo6.md → badge/demo/d07-beta-badge-type.md} +0 -0
  38. package/docs/display/{badge-demo/demo8.md → badge/demo/d08-notification-badge-type.md} +0 -0
  39. package/docs/display/{badge.md → badge/index.md} +5 -0
  40. package/docs/display/{callout-demo/demo1.md → callout/demo/d01-info.md} +0 -0
  41. package/docs/display/{callout-demo/demo2.md → callout/demo/d02-success.md} +0 -0
  42. package/docs/display/{callout-demo/demo3.md → callout/demo/d03-warning.md} +0 -0
  43. package/docs/display/{callout-demo/demo4.md → callout/demo/d04-danger.md} +0 -0
  44. package/docs/display/{callout.md → callout/index.md} +6 -1
  45. package/docs/display/card/{basic-card-demo/demo1.md → demo/d01-basic-card.md} +5 -1
  46. package/docs/display/card/{layout-demo/demo1.md → demo/d02-layout.md} +4 -0
  47. package/docs/display/card/{images-demo/demo1.md → demo/d03-images.md} +1 -1
  48. package/docs/display/card/{footer-demo/demo1.md → demo/d04-footer.md} +4 -0
  49. package/docs/display/card/{beta-badge-demo/demo1.md → demo/d05-beta-badge.md} +4 -0
  50. package/docs/display/card/{selectable-demo/demo1.md → demo/d06-selectable.md} +5 -1
  51. package/docs/display/card/{checkable-demo/demo1.md → demo/d07-checkable.md} +1 -1
  52. package/docs/display/card/{checkable-demo/demo2.md → demo/d07.1-cheekable.md} +1 -1
  53. package/docs/display/card/{custom-children-demo/demo1.md → demo/d08-custom-children.md} +5 -1
  54. package/docs/display/card/index.md +14 -0
  55. package/docs/display/{comment-list-demo/demo1.md → comment-list/demo/d01-comment-list.md} +28 -22
  56. package/docs/display/{comment-list.md → comment-list/index.md} +6 -0
  57. package/docs/display/{description-list-demo/demo1.md → description-list/demo/d01-description-list.md} +0 -0
  58. package/docs/display/{description-list-demo/demo2.md → description-list/demo/d02-reverse-style.md} +0 -0
  59. package/docs/display/{description-list-demo/demo3.md → description-list/demo/d03-as-columns.md} +0 -0
  60. package/docs/display/{description-list-demo/demo4.md → description-list/demo/d04-inline.md} +0 -0
  61. package/docs/display/{description-list-demo/demo5.md → description-list/demo/d05-centered-and-compressed.md} +0 -0
  62. package/docs/display/{description-list-demo/demo6.md → description-list/demo/d06-passing-classname.md} +0 -0
  63. package/docs/display/{description-list.md → description-list/index.md} +6 -0
  64. package/docs/display/{empty-prompt-demo/demo1.md → empty-prompt/demo/d01-empty-prompt.md} +0 -0
  65. package/docs/display/{empty-prompt-demo/demo2.md → empty-prompt/demo/d02-less-content-more-actions.md} +0 -0
  66. package/docs/display/{empty-prompt-demo/demo3.md → empty-prompt/demo/d03-panel-options.md} +0 -0
  67. package/docs/display/{empty-prompt-demo/demo4.md → empty-prompt/demo/d04-title-sizes-and-icon-colors.md} +0 -0
  68. package/docs/display/{empty-prompt-demo/demo5.md → empty-prompt/demo/d05-loading-and-error-prompts.md} +0 -0
  69. package/docs/display/{empty-prompt-demo/demo6.md → empty-prompt/demo/d06-layout.md} +0 -0
  70. package/docs/display/{empty-prompt-demo/demo7.md → empty-prompt/demo/d07-more-types-of-empty-states.md} +0 -0
  71. package/docs/display/{empty-prompt-demo/demo8.md → empty-prompt/demo/d08-using-in-a-page-template.md} +0 -0
  72. package/docs/display/empty-prompt/index.md +13 -0
  73. package/docs/display/{health-demo/demo1.md → health/demo/d01-health.md} +0 -0
  74. package/docs/display/{health-demo/demo2.md → health/demo/d02-text-sizes.md} +0 -0
  75. package/docs/display/health/index.md +13 -0
  76. package/docs/display/{icons-demo/demo1.md → icons/demo/d01-glyphs.md} +0 -0
  77. package/docs/display/{icons-demo/demo2.md → icons/demo/d02-editor-controls.md} +0 -0
  78. package/docs/display/{icons-demo/demo3.md → icons/demo/d03-elastic-logos.md} +0 -0
  79. package/docs/display/{icons-demo/demo4.md → icons/demo/d04-apps.md} +0 -0
  80. package/docs/display/{icons-demo/demo5.md → icons/demo/d05-tokens.md} +0 -0
  81. package/docs/display/{icons-demo/demo6.md → icons/demo/d06-sizes.md} +0 -0
  82. package/docs/display/{icons-demo/demo7.md → icons/demo/d07-colors.md} +0 -0
  83. package/docs/display/{icons-demo/demo8.md → icons/demo/d08-custom-svgs.md} +0 -0
  84. package/docs/display/{icons.md → icons/index.md} +5 -0
  85. package/docs/display/{image-demo/demo1.md → image/demo/d01-image.md} +0 -0
  86. package/docs/display/{image-demo/demo2.md → image/demo/d02-click-an-image-for-a-fullscreen-version.md} +0 -0
  87. package/docs/display/{image-demo/demo3.md → image/demo/d03-images-can-be-sized.md} +0 -0
  88. package/docs/display/{image-demo/demo4.md → image/demo/d04-float-images-within-text.md} +0 -0
  89. package/docs/display/{image.md → image/index.md} +5 -1
  90. package/docs/display/list-group/demo/d01-list-group.md +99 -0
  91. package/docs/display/list-group/demo/d02-list-of-links.md +47 -0
  92. package/docs/display/list-group/demo/d03-text-wrapping-and-tooltips.md +31 -0
  93. package/docs/display/list-group/demo/d04-list-item-color-and-size.md +27 -0
  94. package/docs/display/list-group/index.md +8 -0
  95. package/docs/display/loading/logo-demo/{demo1.md → d01-logos.md} +0 -0
  96. package/docs/display/loading/spinner-demo/d02-spinner.md +6 -0
  97. package/docs/display/loading/text-content-demo/{demo1.md → d3-text-content.md} +0 -2
  98. package/docs/display/notification-event/demo/{demo1.md → d01-notification-event.md} +15 -24
  99. package/docs/display/notification-event/demo/{demo2.md → d02-read-state.md} +0 -0
  100. package/docs/display/notification-event/demo/{demo3.md → d03-feed.md} +0 -0
  101. package/docs/display/notification-event/index.md +2 -2
  102. package/docs/display/{progress-demo → progress/demo}/demo1.md +0 -0
  103. package/docs/display/{progress-demo → progress/demo}/demo2.md +0 -0
  104. package/docs/display/{progress-demo → progress/demo}/demo3.md +0 -0
  105. package/docs/display/{progress-demo → progress/demo}/demo4.md +0 -0
  106. package/docs/display/progress/index.md +7 -0
  107. package/docs/display/stat-demo/{demo1.md → demo/d01-stat.md} +0 -0
  108. package/docs/display/stat-demo/{demo2.md → demo/d02-applying-color.md} +0 -0
  109. package/docs/display/stat-demo/{demo3.md → demo/d03-text-alignment.md} +0 -0
  110. package/docs/display/stat-demo/{demo4.md → demo/d04-title-size.md} +0 -0
  111. package/docs/display/stat-demo/{demo5.md → demo/d05-reverse-the-order.md} +0 -0
  112. package/docs/display/stat-demo/{demo6.md → demo/d06-stat-loading.md} +0 -0
  113. package/docs/display/stat-demo/{demo7.md → demo/d07-putting-it-all-together.md} +0 -0
  114. package/docs/display/{stat.md → stat-demo/index.md} +5 -0
  115. package/docs/display/{text-demo/demo1.md → text/demo/d01-text.md} +0 -0
  116. package/docs/display/{text-demo/demo2.md → text/demo/d02-coloring-text.md} +0 -0
  117. package/docs/display/{text-demo/demo3.md → text/demo/d03-alignment.md} +0 -0
  118. package/docs/display/{text.md → text/index.md} +6 -1
  119. package/docs/display/{title-demo/demo1.md → title/demo/d01-title.md} +0 -0
  120. package/docs/display/title/index.md +6 -0
  121. package/docs/display/toast/{toast-list-demo/demo1.md → demo/d01-toast.md} +11 -13
  122. package/docs/display/{tool-tip.md → toast/index.md} +6 -1
  123. package/docs/display/{tool-tip-demo/demo1.md → tool-tip/demo/d01-tool-tip.md} +0 -3
  124. package/docs/display/{tool-tip-demo/demo2.md → tool-tip/demo/d02-wrapping-components.md} +0 -0
  125. package/docs/display/{tool-tip-demo/demo3.md → tool-tip/demo/d03-icontip.md} +0 -0
  126. package/docs/display/{tool-tip-demo/demo4.md → tool-tip/demo/d04-attaching-to.md} +0 -0
  127. package/docs/display/tool-tip/index.md +10 -0
  128. package/docs/editors/code/{inline-demo/demo1.md → demo/d01-inline.md} +1 -1
  129. package/docs/editors/code/{code-block-demo/demo1.md → demo/d02-code-block.md} +1 -1
  130. package/docs/editors/code/{code-block-demo/demo5.md → demo/d03-line-numbers.md} +1 -1
  131. package/docs/editors/code/{code-block-demo/demo2.md → demo/d04-copy.md} +1 -1
  132. package/docs/editors/code/{code-block-demo/demo3.md → demo/d05-overflow-height.md} +1 -1
  133. package/docs/editors/code/{code-block-demo/demo4.md → demo/d06-white-space.md} +1 -1
  134. package/docs/editors/code/{code-block-demo/demo6.md → demo/d07-line-numbers-highlighted.md} +1 -1
  135. package/docs/editors/code/{code-block-demo/demo7.md → demo/d08-code-block-virtualization.md} +1 -1
  136. package/docs/editors/code/{code-block-demo/demo8.md → demo/d09-flyout.md} +1 -1
  137. package/docs/editors/code/{code-block.md → index.md} +8 -3
  138. package/docs/editors/markdown-editor/base-editor-demo/demo1.md +1 -4
  139. package/docs/editors/markdown-editor/base-editor.md +2 -1
  140. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo1.md +0 -2
  141. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo2.md +0 -0
  142. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo3.md +0 -0
  143. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo4.md +0 -0
  144. package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo5.md +0 -0
  145. package/docs/forms/{form-controls/combo-box → combo-box}/index.md +1 -0
  146. package/docs/forms/form-controls/checkbox/index.md +1 -0
  147. package/docs/forms/form-controls/checkbox-group/index.md +1 -0
  148. package/docs/forms/form-controls/file-picker/index.md +1 -1
  149. package/docs/forms/form-controls/form-control-layout/demo/demo1.md +85 -69
  150. package/docs/forms/form-controls/form-control-layout/index.md +1 -0
  151. package/docs/forms/form-controls/form-control-layout-delimited/demo/demo1.md +0 -2
  152. package/docs/forms/form-controls/form-control-layout-delimited/index.md +1 -0
  153. package/docs/forms/form-controls/number-field/index.md +1 -0
  154. package/docs/forms/form-controls/password-field/index.md +1 -0
  155. package/docs/forms/form-controls/radio/index.md +1 -0
  156. package/docs/forms/form-controls/radio-group/index.md +1 -1
  157. package/docs/forms/form-controls/range/index.md +1 -0
  158. package/docs/forms/form-controls/search-field/index.md +1 -1
  159. package/docs/forms/form-controls/select/index.md +1 -1
  160. package/docs/forms/form-controls/switch/index.md +1 -0
  161. package/docs/forms/form-controls/text-field/index.md +1 -1
  162. package/docs/forms/form-controls/textarea/index.md +2 -0
  163. package/docs/forms/form-layouts/described-form-groups.md +2 -1
  164. package/docs/layout/accordion/index.md +14 -13
  165. package/docs/layout/bottom-bar/index.md +2 -1
  166. package/docs/layout/flex/index.md +8 -7
  167. package/docs/layout/flyout/index.md +2 -1
  168. package/docs/layout/header/index.md +2 -1
  169. package/docs/layout/horizontal-rule/horizontal-rule.md +2 -1
  170. package/docs/layout/modal/index.md +1 -1
  171. package/docs/layout/page-header/index.md +2 -1
  172. package/docs/layout/panel/index.md +1 -0
  173. package/docs/layout/popover/index.md +2 -1
  174. package/docs/layout/resizable-container/index.md +2 -1
  175. package/docs/layout/spacer/index.md +2 -1
  176. package/docs/navigation/breadcrumbs/demo/d01-basic.md +5 -7
  177. package/docs/navigation/button/index.md +2 -1
  178. package/docs/navigation/collapsible-nav.md +2 -1
  179. package/docs/navigation/key-pad-menu-demo/demo1.md +0 -2
  180. package/docs/navigation/key-pad-menu.md +2 -1
  181. package/docs/navigation/link-demo/demo1.md +0 -2
  182. package/docs/navigation/link.md +2 -1
  183. package/docs/navigation/pagination/demo/d01-basic.md +27 -0
  184. package/docs/navigation/pagination/index.md +8 -0
  185. package/docs/navigation/side-nav-demo/demo1.md +6 -5
  186. package/docs/navigation/side-nav.md +2 -1
  187. package/docs/navigation/steps.md +2 -1
  188. package/docs/navigation/tabs.md +1 -0
  189. package/docs/templates/page-template/index.md +4 -2
  190. package/docs/templates/sitewide-search/index.md +2 -1
  191. package/docs/templates/super-date-picker/index.md +1 -1
  192. package/docs/utilities/auto-sizer-demo/demo1.md +0 -2
  193. package/docs/utilities/auto-sizer.md +2 -1
  194. package/docs/utilities/copy-demo/demo1.md +0 -2
  195. package/docs/utilities/copy.md +2 -1
  196. package/docs/utilities/i18n/demo/d01-basic.md +32 -0
  197. package/docs/utilities/i18n/index.md +8 -0
  198. package/docs/utilities/mutation-observer-demo/demo1.md +9 -6
  199. package/docs/utilities/mutation-observer.md +2 -1
  200. package/docs/utilities/outside-click-detector-demo/demo1.md +1 -3
  201. package/docs/utilities/outside-click-detector.md +2 -1
  202. package/docs/utilities/overlay-mask-demo/demo1.md +3 -5
  203. package/docs/utilities/overlay-mask.md +2 -1
  204. package/docs/utilities/portal-demo/demo1.md +1 -1
  205. package/docs/utilities/portal-demo/demo2.md +15 -14
  206. package/docs/utilities/portal.md +2 -1
  207. package/docs/utilities/resize-observer-demo/demo1.md +26 -15
  208. package/docs/utilities/resize-observer.md +2 -1
  209. package/docs/utilities/responsive.md +2 -1
  210. package/package.json +3 -3
  211. package/docs/display/card/basic-card.md +0 -9
  212. package/docs/display/card/beta-badge.md +0 -9
  213. package/docs/display/card/checkable.md +0 -9
  214. package/docs/display/card/custom-children.md +0 -9
  215. package/docs/display/card/footer.md +0 -9
  216. package/docs/display/card/images.md +0 -9
  217. package/docs/display/card/layout.md +0 -9
  218. package/docs/display/card/selectable.md +0 -9
  219. package/docs/display/empty-prompt.md +0 -2
  220. package/docs/display/health.md +0 -9
  221. package/docs/display/list-group-demo/demo1.md +0 -171
  222. package/docs/display/list-group.md +0 -1
  223. package/docs/display/loading/spinner-demo/demo1.md +0 -8
  224. package/docs/display/progress.md +0 -1
  225. package/docs/display/title.md +0 -1
  226. package/docs/display/toast/toast-list.md +0 -1
  227. package/docs/editors/code/inline.md +0 -1
@@ -0,0 +1,99 @@
1
+ ---
2
+ order: 1
3
+ ---
4
+
5
+ <EuiText>
6
+ <p>The <strong>EuiListGroup</strong> component is used to present <strong>EuiListGroupItems</strong> in a neatly formatted list. Use the <EuiCode>flush</EuiCode> and <EuiCode>bordered</EuiCode> properties for full-width and bordered presentations, respectively.
7
+ Adjust the <EuiCode>gutterSize</EuiCode> prop to increase or decrease the spacing between items.</p>
8
+ </EuiText>
9
+
10
+ ```hbs template
11
+ <EuiFlexGroup>
12
+ <EuiFlexItem>
13
+ <EuiListGroup
14
+ @bordered={{this.bordered}}
15
+ @flush={{this.flush}}
16
+ @maxWidth={{this.maxWidth}}
17
+ @gutterSize={{this.gutterSize}}
18
+ >
19
+ <EuiListGroupItem
20
+ @href={{if this.useHref '/'}}
21
+ @onClick={{if this.useOnClick this.onClick}}
22
+ @isActive={{this.isActive}}
23
+ @isDisabled={{this.isDisabled}}
24
+ @wrapText={{this.wrapText}}
25
+ @size={{this.size}}
26
+ @color={{this.color}}
27
+ @iconType={{if this.useIconType 'bell'}}
28
+ >
29
+ {{#if this.wrapText}}
30
+ First item with very long text with Lorem ipsum dolor sit amet,
31
+ consectetur adipiscing elit
32
+ {{else}}
33
+ First item
34
+ {{/if}}
35
+ </EuiListGroupItem>
36
+ <EuiListGroupItem>
37
+ Second item
38
+ </EuiListGroupItem>
39
+ <EuiListGroupItem>
40
+ Third item
41
+ </EuiListGroupItem>
42
+ <EuiListGroupItem>
43
+ Fourth item
44
+ </EuiListGroupItem>
45
+ </EuiListGroup>
46
+ </EuiFlexItem>
47
+ <EuiFlexItem>
48
+ <EuiFlexGroup>
49
+ <EuiFlexItem>
50
+ <EuiTitle @size='xs'>Group</EuiTitle>
51
+ <div>
52
+ <Input @type='checkbox' @checked={{this.bordered}} name='bordered' />
53
+ <label for='bordered'>Bordered</label>
54
+ </div>
55
+ <div>
56
+ <Input @type='checkbox' @checked={{this.flush}} name='flushed' />
57
+ <label for='flushed'>Flush</label>
58
+ </div>
59
+
60
+ </EuiFlexItem>
61
+ </EuiFlexGroup>
62
+ </EuiFlexItem>
63
+ </EuiFlexGroup>
64
+ ```
65
+
66
+ ```js component
67
+ import Component from '@glimmer/component';
68
+ import { tracked } from '@glimmer/tracking';
69
+ import { action } from '@ember/object';
70
+
71
+ export default class DemoListGroupComponent extends Component {
72
+ // Group config
73
+ @tracked bordered = false;
74
+ @tracked flush = false;
75
+ @tracked gutterSize = 's';
76
+ @tracked maxWidthType = 'bool';
77
+ @tracked maxWidth = false;
78
+
79
+ @action
80
+ parseToNum(event) {
81
+ this.maxWidth = Number(event.target.value);
82
+ }
83
+
84
+ @action
85
+ onClick(event) {
86
+ console.log('Item clicked');
87
+ }
88
+
89
+ //Item config
90
+ @tracked useHref = false;
91
+ @tracked useOnClick = false;
92
+ @tracked isActive = false;
93
+ @tracked isDisabled = false;
94
+ @tracked wrapText = false;
95
+ @tracked size = 'm';
96
+ @tracked color = 'inherit';
97
+ @tracked useIconType = false;
98
+ }
99
+ ```
@@ -0,0 +1,47 @@
1
+ ---
2
+ order: 2
3
+ ---
4
+
5
+ # List of links
6
+
7
+ <EuiText>
8
+ <p>Display <strong>EuiListGroupItems</strong> as links by providing an <EuiCode>href</EuiCode> value and change their state with the <EuiCode>isActive</EuiCode> and <EuiCode>isDisabled</EuiCode> properties.</p><p>As is done in this example, the <strong>EuiListGroup</strong> component can also accept an array of items via the <EuiCode>listItems</EuiCode> property.</p>
9
+ </EuiText>
10
+
11
+ ```hbs template
12
+ <EuiListGroup>
13
+ <EuiListGroupItem @href='#/display/list-group' @iconType='calendar' @size='s'>
14
+ First link
15
+ </EuiListGroupItem>
16
+ <EuiListGroupItem
17
+ @href='#/display/list-group'
18
+ @iconType='clock'
19
+ @size='s'
20
+ @isActive='true'
21
+ >
22
+ This is an active link with very long label that truncates
23
+ </EuiListGroupItem>
24
+ <EuiListGroupItem
25
+ @href='#/display/list-group'
26
+ @iconType='compute'
27
+ @size='s'
28
+ @isDisabled='true'
29
+ >
30
+ Third link is disabled
31
+ </EuiListGroupItem>
32
+ <EuiListGroupItem
33
+ @href='#/display/list-group'
34
+ @iconType='copyClipboard'
35
+ @size='s'
36
+ >
37
+ Fourth link
38
+ </EuiListGroupItem>
39
+ <EuiListGroupItem
40
+ @href='#/display/list-group'
41
+ @iconType='crosshairs'
42
+ @size='s'
43
+ >
44
+ Fifth link
45
+ </EuiListGroupItem>
46
+ </EuiListGroup>
47
+ ```
@@ -0,0 +1,31 @@
1
+ ---
2
+ order: 3
3
+ ---
4
+
5
+ # Text wrapping and tooltips
6
+
7
+ <EuiText>
8
+ <p>Optional props <EuiCode>showToolTip</EuiCode> and <EuiCode>wrapLines</EuiCode> can be used to augment the display of list items. Use these when lists are inside small containers where it is likely that the content will be truncated.</p>
9
+ </EuiText>
10
+
11
+ ```hbs template
12
+ <EuiListGroup @showToolTips>
13
+ <EuiListGroupItem>
14
+ First item
15
+ </EuiListGroupItem>
16
+
17
+ <EuiListGroupItem>
18
+ Second item
19
+ </EuiListGroupItem>
20
+
21
+ <EuiListGroupItem>
22
+ <span>
23
+ Third very, very long item that
24
+ <strong>will surely</strong>
25
+ force truncation
26
+ </span>
27
+ </EuiListGroupItem>
28
+ <EuiListGroupItem @wrapText={{true}}>Fourth very, very long item with wrapping
29
+ enabled that will not force truncation</EuiListGroupItem>
30
+ </EuiListGroup>
31
+ ```
@@ -0,0 +1,27 @@
1
+ ---
2
+ order: 4
3
+ ---
4
+
5
+ # List item color and size
6
+
7
+ <EuiText>
8
+ <p><strong>EuiListGroupItems</strong> will inherit the color from their element type whether it is a <EuiCode>button</EuiCode>, <EuiCode>anchor</EuiCode>, or <EuiCode>span</EuiCode>. You can enforce a different color of <EuiCode>primary</EuiCode>, <EuiCode>text</EuiCode>, or <EuiCode>subdued</EuiCode> with the <EuiCode>color</EuiCode> prop. Or provide the prop directly to <strong>EuiListGroup</strong>.</p><p>They also accept options for text size; <EuiCode><span class="token string">'xs'</span> <span class="token operator">|</span> <span class="token string">'s'</span> <span class="token operator">|</span> <span class="token string">'m'</span> <span class="token operator">|</span> <span class="token string">'l'</span></EuiCode>.</p>
9
+ </EuiText>
10
+
11
+ ```hbs template
12
+ <EuiListGroup>
13
+ <EuiListGroupItem @href='#' @label='Inherit by default (xs)' @size='xs' />
14
+
15
+ <EuiListGroupItem @label='Primary (s)' @color='primary' @size='s' />
16
+
17
+ <EuiListGroupItem @href='#' @label='Text (m)' @color='text' />
18
+
19
+ <EuiListGroupItem @href='#' @label='Subdued (l)' @color='subdued' @size='l' />
20
+ </EuiListGroup>
21
+
22
+ <EuiSpacer @size='s' />
23
+
24
+ <EuiListGroup {{style (inline-styles background='black')}}>
25
+ <EuiListGroupItem @href='#' @label='Ghost' @color='ghost' />
26
+ </EuiListGroup>
27
+ ```
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: List Group
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="List Group"/>
7
+
8
+ <EuiHorizontalRule />
@@ -0,0 +1,6 @@
1
+ ```hbs template
2
+ <EuiLoadingSpinner @size='s' />
3
+ <EuiLoadingSpinner @size='m' />
4
+ <EuiLoadingSpinner @size='l' />
5
+ <EuiLoadingSpinner @size='xl' />
6
+ ```
@@ -1,5 +1,3 @@
1
- # Demo
2
-
3
1
  Text Content Loading display will only render a maximum of 10 lines.
4
2
  <br>
5
3
  <br>
@@ -2,12 +2,8 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Basic
6
-
7
5
  ```hbs template
8
- {{#let (slice
9
- 0 this.messagesCount this.messages
10
- ) as |msgs|}}
6
+ {{#let (slice 0 this.messagesCount this.messages) as |msgs|}}
11
7
  <EuiPanel @paddingSize='xs'>
12
8
  <EuiNotificationEvent
13
9
  @type='Hey!'
@@ -20,21 +16,21 @@ order: 1
20
16
  @accordionHideText='hide'
21
17
  >
22
18
 
23
- <:primaryAction>
24
- <EuiButtonEmpty
25
- style="display: {{if this.showPrimaryAction '' 'none'}};"
26
- @flush="left"
27
- @size="s"
28
- >
29
- Do something!
30
- </EuiButtonEmpty>
31
- </:primaryAction>
19
+ <:primaryAction>
20
+ <EuiButtonEmpty
21
+ style='display: {{if this.showPrimaryAction "" "none"}};'
22
+ @flush='left'
23
+ @size='s'
24
+ >
25
+ Do something!
26
+ </EuiButtonEmpty>
27
+ </:primaryAction>
32
28
 
33
29
  </EuiNotificationEvent>
34
30
  </EuiPanel>
35
31
  {{/let}}
36
32
 
37
- <EuiSpacer/>
33
+ <EuiSpacer />
38
34
 
39
35
  Messages count:
40
36
  <EuiRange
@@ -61,12 +57,8 @@ import { action } from '@ember/object';
61
57
  export default class NotificationEvent1Component extends Component {
62
58
  @tracked messagesCount;
63
59
  @tracked showPrimaryAction;
64
-
65
- messages = [
66
- 'This is a message',
67
- "Wait, there's more",
68
- 'hmmm...'
69
- ]
60
+
61
+ messages = ['This is a message', "Wait, there's more", 'hmmm...'];
70
62
 
71
63
  constructor() {
72
64
  super(...arguments);
@@ -75,9 +67,8 @@ export default class NotificationEvent1Component extends Component {
75
67
  }
76
68
 
77
69
  @action
78
- setMessagesCount(e){
70
+ setMessagesCount(e) {
79
71
  this.messagesCount = e.target.value;
80
72
  }
81
-
82
73
  }
83
- ```
74
+ ```
@@ -1,6 +1,6 @@
1
1
  ---
2
- order: 1
3
2
  title: Notification Event
4
3
  ---
5
4
 
6
- <EuiPageHeader @pageTitle="Notification Event"/>
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Notification Event"/>
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Progress
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Progress"/>
7
+ <EuiHorizontalRule />
@@ -1,3 +1,8 @@
1
+ ---
2
+ title: Stat
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Stat"/>
2
7
 
3
8
  <EuiText>
@@ -1,3 +1,8 @@
1
+ ---
2
+ title: Text
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Text"/>
2
7
 
3
8
  <EuiText>
@@ -9,4 +14,4 @@ EuiText can ensure proper line-length for readability by setting a <EuiCode>max-
9
14
  </p>
10
15
  </EuiText>
11
16
 
12
- <EuiHorizontalRule />
17
+ <EuiHorizontalRule />
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Title
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Title"/>
@@ -1,11 +1,9 @@
1
- # Demo
2
-
3
1
  ```hbs template
4
- <EuiButton @color="primary" {{on "click" this.showRandomToast}}>
2
+ <EuiButton @color='primary' {{on 'click' this.showRandomToast}}>
5
3
  Add toast to global toast list
6
4
  </EuiButton>
7
5
 
8
- <EuiSpacer @size="l" />
6
+ <EuiSpacer @size='l' />
9
7
 
10
8
  <EuiGlobalToastList @toastLifeTimeMs={{3000}} />
11
9
  ```
@@ -22,11 +20,11 @@ export default class DemoToastListComponent extends Component {
22
20
  @action
23
21
  showRandomToast() {
24
22
  this.euiToaster.show({
25
- onClose: function() {
23
+ onClose: function () {
26
24
  console.log('A toast is being closed');
27
25
  },
28
26
  ...this.toasts[Math.floor(Math.random() * 4)]
29
- })
27
+ });
30
28
  }
31
29
 
32
30
  toasts = [
@@ -35,25 +33,25 @@ export default class DemoToastListComponent extends Component {
35
33
  body: 'This toast overrides the default toastLifeTimeMs value and will be around for 15 seconds.',
36
34
  color: 'warning',
37
35
  iconType: 'clock',
38
- toastLifeTimeMs: 15000,
36
+ toastLifeTimeMs: 15000
39
37
  },
40
38
  {
41
39
  title: `Download complete!`,
42
40
  body: 'Thanks for your patience!',
43
- color: 'success',
41
+ color: 'success'
44
42
  },
45
43
  {
46
44
  title: `Logging you out soon, due to inactivity`,
47
45
  body: 'This is a security measure.',
48
46
  color: 'warning',
49
- iconType: 'user',
47
+ iconType: 'user'
50
48
  },
51
- {
49
+ {
52
50
  title: `Oops, there was an error`,
53
51
  body: 'Sorry. We’ll try not to let it happen it again.',
54
52
  color: 'danger',
55
- iconType: 'help',
53
+ iconType: 'help'
56
54
  }
57
- ]
55
+ ];
58
56
  }
59
- ```
57
+ ```
@@ -1,4 +1,9 @@
1
- <EuiPageHeader @pageTitle="Tooltip"/>
1
+ ---
2
+ title: Toast
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Toast"/>
2
7
 
3
8
  <EuiSpacer @size='l' />
4
9
  <EuiText>
@@ -2,9 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- <EuiText>
6
- Generally, tooltips should provide short, <strong>non-essential</strong>, contextual information, usually naming or describing with more detail. If you need interactive content or anything other than text, we recommend using <strong>EuiPopover</strong> instead.
7
- </EuiText>
8
5
  <EuiSpacer />
9
6
  <EuiCallOut @color="warning" @size="s" @iconType="accessibility" @title="Putting anything other than plain text in a tooltip is lost on screen readers." />
10
7
  <EuiSpacer />
@@ -0,0 +1,10 @@
1
+ ---
2
+ title: Tooltip
3
+ ---
4
+
5
+ <EuiSpacer/>
6
+ <EuiPageHeader @pageTitle="Tooltip"/>
7
+
8
+ <EuiSpacer @size='l' />
9
+
10
+ <EuiHorizontalRule />
@@ -2,7 +2,7 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Demo
5
+ # Inline
6
6
 
7
7
  ```hbs template
8
8
  <EuiText>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 1
2
+ order: 2
3
3
  ---
4
4
 
5
5
  # Code block
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 5
2
+ order: 3
3
3
  ---
4
4
 
5
5
  # Line numbers
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 2
2
+ order: 4
3
3
  ---
4
4
 
5
5
  # Copy
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 3
2
+ order: 5
3
3
  ---
4
4
 
5
5
  # Overflow height
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 4
2
+ order: 6
3
3
  ---
4
4
 
5
5
  # White space
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 6
2
+ order: 7
3
3
  ---
4
4
 
5
5
  # Line numbers highlighted
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 7
2
+ order: 8
3
3
  ---
4
4
 
5
5
  # Code block virtualization
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 8
2
+ order: 9
3
3
  ---
4
4
 
5
5
  # Flyout
@@ -1,14 +1,18 @@
1
+ ---
2
+ title: Code
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Code"/>
2
7
 
3
- <EuiSpacer />
8
+ <EuiSpacer @size='l' />
9
+
4
10
  <EuiCallOut>
5
11
  <:body>
6
12
  <strong>EuiCode</strong> and <strong>EuiCodeBlock</strong> are intended to render static lines or blocks of code in <strong>read-only</strong> contexts. If you need capabilities to edit, or want to print long code (e.g., printing JSON from an API), we recommend installing a version of Monaco. If you are building within the Kibana platform, you can use their CodeEditor.
7
13
  </:body>
8
14
  </EuiCallOut>
9
15
 
10
- <EuiSpacer />
11
-
12
16
  <EuiText>
13
17
  <p>
14
18
  The <strong>EuiCode</strong> and <strong>EuiCodeBlock</strong> components support <a href="https://prismjs.com/#supported-languages" target="_blank">all language syntaxes</a> supported by the <EuiCode>prism</EuiCode> <a href="https://prismjs.com" target="_blank">library</a>. The language prop can also be omitted to simply render formatted but unhighlighted code.
@@ -19,3 +23,4 @@
19
23
  </EuiText>
20
24
 
21
25
  <EuiHorizontalRule />
26
+ <EuiSpacer/>
@@ -2,8 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Demo
6
-
7
5
  ```hbs template
8
6
  <EuiMarkdownEditor
9
7
  @value={{this.value}}
@@ -19,7 +17,6 @@ import { action } from '@ember/object';
19
17
  import { visit } from '@ember-eui/core/utils/markdown/plugins/markdown-add-components';
20
18
  import { defaultProcessingPlugins } from '@ember-eui/core/utils/markdown/plugins/markdown-default-plugins';
21
19
 
22
-
23
20
  /*
24
21
  Quick example how you can extend plugins, this plugin adds _blank to `a` elements
25
22
  */
@@ -27,7 +24,7 @@ function TargetBlankProcessingPlugin() {
27
24
  return (tree) => {
28
25
  visit(tree, (node) => {
29
26
  if (node.type === 'element' && node.tagName === 'a') {
30
- node.properties.target = '_blank';
27
+ node.properties.target = '_blank';
31
28
  }
32
29
  return node;
33
30
  });
@@ -1 +1,2 @@
1
- <EuiPageHeader @pageTitle="Base editor"/>
1
+ <EuiSpacer/>
2
+ <EuiPageHeader @pageTitle="Base editor"/>
@@ -2,8 +2,6 @@
2
2
  order: 1
3
3
  ---
4
4
 
5
- # Basic
6
-
7
5
  <EuiText>
8
6
  <p>
9
7
  <strong>EuiComboBox </strong> ember's implementation uses <a href="https://ember-power-select.com">ember-power-select</a> under the hood for a rich selector, so please refer to it if needed.