@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
@@ -1,2 +1,7 @@
1
+ ---
2
+ title: Icons
3
+ ---
4
+
5
+ <EuiSpacer/>
1
6
  <EuiPageHeader @pageTitle="Icons"/>
2
7
  <EuiHorizontalRule />
@@ -1,4 +1,8 @@
1
+ ---
2
+ title: Image
3
+ ---
1
4
 
5
+ <EuiSpacer/>
2
6
  <EuiPageHeader @pageTitle="Image"/>
3
7
 
4
8
  <EuiSpacer />
@@ -6,4 +10,4 @@
6
10
  <p>Use <strong>EuiImage</strong> when you need to place a static image into a page with an optional caption.</p>
7
11
  </EuiText>
8
12
 
9
- <EuiHorizontalRule />
13
+ <EuiHorizontalRule />
@@ -0,0 +1,236 @@
1
+ ```hbs template
2
+ <EuiFlexGroup>
3
+ <EuiFlexItem>
4
+ <EuiListGroup
5
+ @bordered={{this.bordered}}
6
+ @flush={{this.flush}}
7
+ @maxWidth={{this.maxWidth}}
8
+ @gutterSize={{this.gutterSize}}
9
+ >
10
+ <EuiListGroupItem
11
+ @href={{if this.useHref '/'}}
12
+ @onClick={{if this.useOnClick this.onClick}}
13
+ @isActive={{this.isActive}}
14
+ @isDisabled={{this.isDisabled}}
15
+ @wrapText={{this.wrapText}}
16
+ @size={{this.size}}
17
+ @color={{this.color}}
18
+ @iconType={{if this.useIconType 'bell'}}
19
+ >
20
+ {{#if this.wrapText}}
21
+ First item with very long text with Lorem ipsum dolor sit amet,
22
+ consectetur adipiscing elit
23
+ {{else}}
24
+ First item
25
+ {{/if}}
26
+ </EuiListGroupItem>
27
+ <EuiListGroupItem>
28
+ Second item
29
+ </EuiListGroupItem>
30
+ <EuiListGroupItem>
31
+ Third item
32
+ </EuiListGroupItem>
33
+ <EuiListGroupItem>
34
+ Fourth item
35
+ </EuiListGroupItem>
36
+ </EuiListGroup>
37
+ </EuiFlexItem>
38
+ <EuiFlexItem>
39
+ <EuiFlexGroup>
40
+ <EuiFlexItem>
41
+ <EuiTitle @size='xs'>Group</EuiTitle>
42
+ <div>
43
+ <Input @type='checkbox' @checked={{this.bordered}} name='bordered' />
44
+ <label for='bordered'>Bordered</label>
45
+ </div>
46
+ <div>
47
+ <Input @type='checkbox' @checked={{this.flush}} name='flushed' />
48
+ <label for='flushed'>Flush</label>
49
+ </div>
50
+ <div>
51
+ <EuiText>Gutter size</EuiText>
52
+ <EuiBadge
53
+ @color={{if (eq this.gutterSize 'none') 'primary'}}
54
+ @onClick={{set this 'gutterSize' 'none'}}
55
+ >none</EuiBadge>
56
+ <EuiBadge
57
+ @color={{if (eq this.gutterSize 's') 'primary'}}
58
+ @onClick={{set this 'gutterSize' 's'}}
59
+ >small</EuiBadge>
60
+ <EuiBadge
61
+ @color={{if (eq this.gutterSize 'm') 'primary'}}
62
+ @onClick={{set this 'gutterSize' 'm'}}
63
+ >medium</EuiBadge>
64
+ </div>
65
+ <div>
66
+ <EuiText>Max width</EuiText>
67
+ <EuiBadge
68
+ @color={{if (eq this.maxWidthType 'bool') 'primary'}}
69
+ @onClick={{pipe
70
+ (set this 'maxWidthType' 'bool')
71
+ (set this 'maxWidth' false)
72
+ }}
73
+ >
74
+ boolean
75
+ </EuiBadge>
76
+ <EuiBadge
77
+ @color={{if (eq this.maxWidthType 'num') 'primary'}}
78
+ @onClick={{pipe
79
+ (set this 'maxWidthType' 'num')
80
+ (set this 'maxWidth' 400)
81
+ }}
82
+ >
83
+ number
84
+ </EuiBadge>
85
+ <EuiBadge
86
+ @color={{if (eq this.maxWidthType 'string') 'primary'}}
87
+ @onClick={{pipe
88
+ (set this 'maxWidthType' 'string')
89
+ (set this 'maxWidth' '')
90
+ }}
91
+ >
92
+ string
93
+ </EuiBadge>
94
+ </div>
95
+ <div>
96
+ {{#if (eq this.maxWidthType 'bool')}}
97
+ <Input
98
+ @type='checkbox'
99
+ @checked={{this.maxWidth}}
100
+ name='maxwidth'
101
+ />
102
+ <label for='maxwidth'>{{this.maxWidth}}</label>
103
+ {{else if (eq this.maxWidthType 'num')}}
104
+ <label for='maxwidth'>Enter value</label>
105
+ <input
106
+ type='number'
107
+ value={{this.maxWidth}}
108
+ {{on 'input' this.parseToNum}}
109
+ name='maxwidth'
110
+ />
111
+ {{else}}
112
+ <label for='maxwidth'>Enter value</label>
113
+ <Input @value={{this.maxWidth}} name='maxwidth' />
114
+ {{/if}}
115
+ </div>
116
+ </EuiFlexItem>
117
+ <EuiFlexItem>
118
+ <EuiTitle @size='xs'>First Item</EuiTitle>
119
+ <div>
120
+ <Input @type='checkbox' @checked={{this.useHref}} name='useHref' />
121
+ <label for='useHref'>use Href</label>
122
+ </div>
123
+ <div>
124
+ <Input
125
+ @type='checkbox'
126
+ @checked={{this.useOnClick}}
127
+ name='useOnClick'
128
+ />
129
+ <label for='useOnClick'>use onClick</label>
130
+ </div>
131
+ <div>
132
+ <Input @type='checkbox' @checked={{this.isActive}} name='isActive' />
133
+ <label for='isActive'>isActive</label>
134
+ </div>
135
+ <div>
136
+ <Input
137
+ @type='checkbox'
138
+ @checked={{this.isDisabled}}
139
+ name='isDisabled'
140
+ />
141
+ <label for='isDisabled'>isDisabled</label>
142
+ </div>
143
+ <div>
144
+ <Input @type='checkbox' @checked={{this.wrapText}} name='wrapText' />
145
+ <label for='wrapText'>wrapText</label>
146
+ </div>
147
+ <div>
148
+ <EuiText>Size</EuiText>
149
+ <EuiBadge
150
+ @color={{if (eq this.size 'xs') 'primary'}}
151
+ @onClick={{set this 'size' 'xs'}}
152
+ >extra small</EuiBadge>
153
+ <EuiBadge
154
+ @color={{if (eq this.size 's') 'primary'}}
155
+ @onClick={{set this 'size' 's'}}
156
+ >small</EuiBadge>
157
+ <EuiBadge
158
+ @color={{if (eq this.size 'm') 'primary'}}
159
+ @onClick={{set this 'size' 'm'}}
160
+ >medium</EuiBadge>
161
+ <EuiBadge
162
+ @color={{if (eq this.size 'l') 'primary'}}
163
+ @onClick={{set this 'size' 'l'}}
164
+ >large</EuiBadge>
165
+ </div>
166
+ <div>
167
+ <EuiText>Color</EuiText>
168
+ <EuiBadge
169
+ @color={{if (eq this.color 'inherit') 'primary'}}
170
+ @onClick={{set this 'color' 'inherit'}}
171
+ >inherit</EuiBadge>
172
+ <EuiBadge
173
+ @color={{if (eq this.color 'text') 'primary'}}
174
+ @onClick={{set this 'color' 'text'}}
175
+ >text</EuiBadge>
176
+ <EuiBadge
177
+ @color={{if (eq this.color 'subdued') 'primary'}}
178
+ @onClick={{set this 'color' 'subdued'}}
179
+ >subdued</EuiBadge>
180
+ <EuiBadge
181
+ @color={{if (eq this.color 'ghost') 'primary'}}
182
+ @onClick={{set this 'color' 'ghost'}}
183
+ >ghost</EuiBadge>
184
+ <EuiBadge
185
+ @color={{if (eq this.color 'primary') 'primary'}}
186
+ @onClick={{set this 'color' 'primary'}}
187
+ >primary</EuiBadge>
188
+ </div>
189
+ <div>
190
+ <Input
191
+ @type='checkbox'
192
+ @checked={{this.useIconType}}
193
+ name='useIconType'
194
+ />
195
+ <label for='useIconType'>use iconType</label>
196
+ </div>
197
+ </EuiFlexItem>
198
+ </EuiFlexGroup>
199
+ </EuiFlexItem>
200
+ </EuiFlexGroup>
201
+ ```
202
+
203
+ ```js component
204
+ import Component from '@glimmer/component';
205
+ import { tracked } from '@glimmer/tracking';
206
+ import { action } from '@ember/object';
207
+
208
+ export default class DemoListGroupComponent extends Component {
209
+ // Group config
210
+ @tracked bordered = false;
211
+ @tracked flush = false;
212
+ @tracked gutterSize = 's';
213
+ @tracked maxWidthType = 'bool';
214
+ @tracked maxWidth = false;
215
+
216
+ @action
217
+ parseToNum(event) {
218
+ this.maxWidth = Number(event.target.value);
219
+ }
220
+
221
+ @action
222
+ onClick(event) {
223
+ console.log('Item clicked');
224
+ }
225
+
226
+ //Item config
227
+ @tracked useHref = false;
228
+ @tracked useOnClick = false;
229
+ @tracked isActive = false;
230
+ @tracked isDisabled = false;
231
+ @tracked wrapText = false;
232
+ @tracked size = 'm';
233
+ @tracked color = 'inherit';
234
+ @tracked useIconType = false;
235
+ }
236
+ ```
@@ -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