@ember-eui/core 5.0.1 → 5.1.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 (168) hide show
  1. package/addon/components/eui-accordion/index.hbs +1 -1
  2. package/addon/components/eui-breadcrumbs/index.hbs +9 -1
  3. package/addon/components/eui-header-links/index.hbs +1 -1
  4. package/addon/components/eui-input-popover/index.hbs +37 -31
  5. package/addon/components/eui-page-header-content/index.hbs +10 -12
  6. package/addon/components/eui-popover/index.hbs +61 -102
  7. package/addon/components/eui-step-horizontal/index.hbs +11 -6
  8. package/addon/helpers/merge.ts +5 -0
  9. package/addon/utils/css-mappings/eui-avatar.ts +1 -0
  10. package/addon/utils/css-mappings/eui-header-links.ts +1 -1
  11. package/app/helpers/merge.js +1 -0
  12. package/docs/layout/{accordion.md → accordion/demo/d01-simple-and-unstyle.md} +18 -22
  13. package/docs/layout/accordion/demo/d02-arrow-display.md +34 -0
  14. package/docs/layout/{accordion-demo/demo2.md → accordion/demo/d03-multiple-accordions.md} +6 -5
  15. package/docs/layout/{accordion-demo/demo3.md → accordion/demo/d04-extra-actions.md} +2 -2
  16. package/docs/layout/{accordion-demo/demo4.md → accordion/demo/d05-opened-on-initial-render.md} +2 -2
  17. package/docs/layout/{accordion-demo/demo5.md → accordion/demo/d06-controlling-toggled-state.md} +3 -2
  18. package/docs/layout/{accordion-demo/demo6.md → accordion/demo/d07-loading-state.md} +2 -1
  19. package/docs/layout/accordion/demo/d08-when-content-changes-dynamically.md +71 -0
  20. package/docs/layout/{accordion-demo/demo8.md → accordion/demo/d09-interactive-content-in-the-trigger.md} +4 -4
  21. package/docs/layout/{accordion-demo/demo9.md → accordion/demo/d10-styled-for-forms.md} +44 -44
  22. package/docs/layout/accordion/index.md +23 -0
  23. package/docs/layout/{bottom-bar-demo/demo1.md → bottom-bar/demo/d01-basic.md} +0 -2
  24. package/docs/layout/{bottom-bar-demo/demo2.md → bottom-bar/demo/d02-positions.md} +0 -0
  25. package/docs/layout/{bottom-bar-demo/demo3.md → bottom-bar/demo/d03-displacement.md} +1 -0
  26. package/docs/layout/bottom-bar/index.md +18 -0
  27. package/docs/layout/flex/demo/d01-flex-group-is-for-a-single-row-layout.md +19 -0
  28. package/docs/layout/flex/demo/d02-flex-items-are-also-flex.md +18 -0
  29. package/docs/layout/flex/demo/d03-spans-instead-of-divs.md +19 -0
  30. package/docs/layout/flex/demo/d04-panels-grow-to-fill-flex-items.md +32 -0
  31. package/docs/layout/flex/demo/d05-turn-off-item-streching.md +12 -0
  32. package/docs/layout/flex/demo/d06-proportional-widths-of-items.md +32 -0
  33. package/docs/layout/flex/demo/d07-justify-and-align.md +11 -0
  34. package/docs/layout/flex/demo/d08-allowing-flex-items-to-wrap.md +43 -0
  35. package/docs/layout/flex/demo/d09-change-direction.md +13 -0
  36. package/docs/layout/flex/demo/d10-flex-grids-are-for-repeatable-items.md +33 -0
  37. package/docs/layout/flex/demo/d11-flex-grids-can-change-direction.md +33 -0
  38. package/docs/layout/flex/demo/d12-flex-grids-and-flex-groups-can-nest.md +30 -0
  39. package/docs/layout/flex/demo/d13-gutter-sizing.md +61 -0
  40. package/docs/layout/flex/demo/d14-responsive-layouts.md +29 -0
  41. package/docs/layout/flex/index.md +18 -0
  42. package/docs/layout/{flyout-demo/demo1.md → flyout/demo/d01-basic.md} +12 -16
  43. package/docs/layout/flyout/demo/d02-more-complicated-flyout.md +195 -0
  44. package/docs/layout/{flyout-demo/demo3.md → flyout/demo/d03-sizing.md} +5 -17
  45. package/docs/layout/{flyout-demo/demo4.md → flyout/demo/d04-adjusting-padding.md} +29 -36
  46. package/docs/layout/{flyout-demo/demo5.md → flyout/demo/d05-adding-a-banner.md} +6 -6
  47. package/docs/layout/{flyout-demo/demo6.md → flyout/demo/d06-without-ownfocus.md} +11 -14
  48. package/docs/layout/{flyout-demo/demo7.md → flyout/demo/d07-push-versus-overlay.md} +17 -3
  49. package/docs/layout/flyout/demo/d08-understanding-max-width.md +9 -0
  50. package/docs/layout/flyout/index.md +7 -0
  51. package/docs/layout/{header-demo/demo1.md → header/demo/d01-header.md} +138 -120
  52. package/docs/layout/header/demo/d02-sections.md +9 -0
  53. package/docs/layout/{header-demo/demo2.md → header/demo/d03-header-links.md} +2 -2
  54. package/docs/layout/{header-demo/demo3.md → header/demo/d04-fixed-header.md} +1 -1
  55. package/docs/layout/{header-demo/demo4.md → header/demo/d05-dark-theme.md} +3 -3
  56. package/docs/layout/{header-demo/demo5.md → header/demo/d06-portal-content-in-the-header.md} +20 -9
  57. package/docs/layout/{header-demo/demo6.md → header/demo/d07-header-notifications.md} +1 -1
  58. package/docs/layout/{header-demo/demo7.md → header/demo/d08-stacked-headers.md} +47 -26
  59. package/docs/layout/header/demo/d09-the-elastic-navigation-pattern.md +9 -0
  60. package/docs/layout/header/index.md +7 -0
  61. package/docs/layout/horizontal-rule/demo/d01-size.md +14 -0
  62. package/docs/layout/horizontal-rule/demo/d02-margins.md +38 -0
  63. package/docs/layout/horizontal-rule/horizontal-rule.md +7 -0
  64. package/docs/layout/modal/demo/d01-modal.md +73 -0
  65. package/docs/layout/modal/demo/d02-forms-in-a-modal.md +107 -0
  66. package/docs/layout/modal/demo/d03-confirm-modal.md +86 -0
  67. package/docs/layout/modal/demo/d04-loading-and-disabling-confirm-button.md +80 -0
  68. package/docs/layout/{modal-demo/demo5.md → modal/demo/d05-widths.md} +20 -39
  69. package/docs/layout/modal/index.md +13 -0
  70. package/docs/layout/page-header/demo/{demo1.md → d01-basic.md} +0 -2
  71. package/docs/layout/page-header/demo/{demo2.md → d02-tabs-in-the-page-header.md} +1 -2
  72. package/docs/layout/page-header/demo/{demo3.md → d03-tabs-in-the-page-header.md} +2 -3
  73. package/docs/layout/page-header/demo/{demo4.md → d04-breadcrumbs-in-the-page-header.md} +3 -2
  74. package/docs/layout/page-header/demo/{demo5.md → d05-breadcrumbs-in-the-page-header.md} +1 -28
  75. package/docs/layout/page-header/demo/{demo6.md → d06-customizing-the-page-header.md} +0 -0
  76. package/docs/layout/page-header/index.md +1 -2
  77. package/docs/layout/{panel-demo/demo1.md → panel/demo/d01-padding.md} +0 -0
  78. package/docs/layout/{panel-demo/demo2.md → panel/demo/d02-shadow-and-border.md} +2 -2
  79. package/docs/layout/{panel-demo/demo3.md → panel/demo/d03-colors-and-corners.md} +0 -0
  80. package/docs/layout/{panel-demo/demo4.md → panel/demo/d04-growing-height.md} +0 -0
  81. package/docs/layout/{panel-demo/demo5.md → panel/demo/d05-split-panels.md} +1 -1
  82. package/docs/layout/{panel.md → panel/index.md} +4 -0
  83. package/docs/layout/{popover-demo/demo1.md → popover/demo/d01-basic.md} +6 -4
  84. package/docs/layout/{popover-demo/demo2.md → popover/demo/d02-anchor-position.md} +0 -0
  85. package/docs/layout/popover/demo/d03-popover-titles-and-footers.md +133 -0
  86. package/docs/layout/{popover-demo/demo5.md → popover/demo/d04-popover-padding-sizes.md} +56 -31
  87. package/docs/layout/{popover-demo/demo6.md → popover/demo/d05-panel-class-name.md} +3 -3
  88. package/docs/layout/{popover-demo/demo7.md → popover/demo/d06-popover-with-block-level-display.md} +2 -3
  89. package/docs/layout/{popover-demo/demo3.md → popover/demo/d07-popover-on-a-fixed-element.md} +3 -11
  90. package/docs/layout/{popover-demo/demo8.md → popover/demo/d08-constraining-a-popover-inside-a-container.md} +0 -0
  91. package/docs/layout/{popover-demo/demo9.md → popover/demo/d09-popover-attached-to-input-element.md} +14 -12
  92. package/docs/layout/popover/demo/d10-setting-an-initial-focus.md +61 -0
  93. package/docs/layout/{popover-demo/demo10.md → popover/demo/d11-removing-the-focus-trap.md} +1 -1
  94. package/docs/layout/popover/demo/d12-popover-using-and-html-element-as-the-anchor.md +9 -0
  95. package/docs/layout/popover/index.md +7 -0
  96. package/docs/layout/resizable-container/demo/d01-horizontal-resizing.md +10 -0
  97. package/docs/layout/resizable-container/demo/d02-resizable-panel-options.md +10 -0
  98. package/docs/layout/resizable-container/demo/d03-horizontal-resizing-with-controlled-widths.md +10 -0
  99. package/docs/layout/resizable-container/demo/d04-vertical-resizing.md +10 -0
  100. package/docs/layout/resizable-container/demo/d05-collapsible-resizable-panels.md +10 -0
  101. package/docs/layout/resizable-container/demo/d06-responsive-layout.md +10 -0
  102. package/docs/layout/resizable-container/demo/d07-collapsible-panels-options.md +10 -0
  103. package/docs/layout/resizable-container/demo/d08-collapsible-panels-with-external-control.md +10 -0
  104. package/docs/layout/resizable-container/index.md +15 -0
  105. package/docs/layout/spacer/demo/d01-basic.md +44 -0
  106. package/docs/layout/spacer/index.md +7 -0
  107. package/docs/navigation/{breadcrumbs-demo/demo1.md → breadcrumbs/demo/d01-basic.md} +9 -6
  108. package/docs/navigation/{breadcrumbs-demo/demo2.md → breadcrumbs/demo/d02-limit-the-number-of-breadcrumbs.md} +0 -0
  109. package/docs/navigation/{breadcrumbs-demo/demo3.md → breadcrumbs/demo/d03-truncate-each-breadcrumb.md} +0 -0
  110. package/docs/navigation/{breadcrumbs-demo/demo4.md → breadcrumbs/demo/d04-truncate-each-breadcrumb-on-each-object.md} +0 -0
  111. package/docs/navigation/{breadcrumbs-demo/demo5.md → breadcrumbs/demo/d05-responsive.md} +14 -0
  112. package/docs/navigation/{breadcrumbs-demo/demo6.md → breadcrumbs/demo/d06-color-for-emphasis.md} +12 -23
  113. package/docs/navigation/breadcrumbs/index.md +7 -0
  114. package/docs/navigation/button/demo/d01-basic.md +85 -0
  115. package/docs/navigation/button/demo/d02-empty-button.md +68 -0
  116. package/docs/navigation/button/demo/d03-flush-empty-button.md +32 -0
  117. package/docs/navigation/button/demo/d04-buttons-with-icons.md +213 -0
  118. package/docs/navigation/button/demo/d05-icon-buttons.md +139 -0
  119. package/docs/navigation/button/demo/d06-buttons-as-links.md +51 -0
  120. package/docs/navigation/button/demo/d07-loading-state.md +38 -0
  121. package/docs/navigation/button/demo/d08-split-buttons.md +43 -0
  122. package/docs/navigation/button/demo/d09-toggle-buttons.md +10 -0
  123. package/docs/navigation/button/demo/d10-button-groups.md +10 -0
  124. package/docs/navigation/button/demo/d11-ghost.md +10 -0
  125. package/docs/navigation/button/index.md +13 -0
  126. package/docs/navigation/steps-demo/demo3.md +0 -1
  127. package/docs/{layout/page-template/demo/demo1.md → templates/page-template/demo/d01-a-full-page-with-everything.md} +1 -24
  128. package/docs/{layout/page-template/demo/demo2.md → templates/page-template/demo/d02-restricting-page-width.md} +0 -0
  129. package/docs/{layout/page-template/demo/demo3.md → templates/page-template/demo/d03-showing-a-bottom-bar.md} +0 -0
  130. package/docs/{layout/page-template/demo/demo4.md → templates/page-template/demo/d04-centered-body.md} +1 -1
  131. package/docs/{layout/page-template/demo/demo5.md → templates/page-template/demo/d05-centered-content.md} +1 -1
  132. package/docs/{layout/page-template/demo/demo6.md → templates/page-template/demo/d06-a-simple-page-with-tabs.md} +0 -0
  133. package/docs/{layout/page-template/demo/demo7.md → templates/page-template/demo/d07-full-height-layout.md} +0 -0
  134. package/docs/{layout/page-template/demo/demo8.md → templates/page-template/demo/d08-simple-layout-with-centered-body.md} +0 -0
  135. package/docs/{layout/page-template/demo/demo9.md → templates/page-template/demo/d09-simple-layout-with-centered-content.md} +0 -0
  136. package/docs/{layout/page-template/demo/demo10.md → templates/page-template/demo/d10-a-simple-page-layout-with-custom-content.md} +0 -0
  137. package/docs/templates/page-template/index.md +37 -0
  138. package/docs/templates/sitewide-search/demo/d01-basic-setup.md +10 -0
  139. package/docs/templates/sitewide-search/demo/d02-options.md +10 -0
  140. package/docs/templates/sitewide-search/index.md +9 -0
  141. package/docs/templates/super-date-picker/demo/d01-update-button.md +10 -0
  142. package/docs/templates/super-date-picker/demo/d02-quick-select-panels.md +10 -0
  143. package/docs/templates/super-date-picker/demo/d03-sizing.md +10 -0
  144. package/docs/templates/super-date-picker/demo/d04-auto-refresh.md +11 -0
  145. package/docs/templates/super-date-picker/demo/d05-elastic-pattern-with-kql.md +10 -0
  146. package/docs/templates/super-date-picker/index.md +12 -0
  147. package/package.json +3 -3
  148. package/docs/layout/accordion-demo/demo1.md +0 -33
  149. package/docs/layout/accordion-demo/demo7.md +0 -66
  150. package/docs/layout/bottom-bar.md +0 -1
  151. package/docs/layout/flex-demo/demo1.md +0 -358
  152. package/docs/layout/flex.md +0 -1
  153. package/docs/layout/flyout-demo/demo2.md +0 -87
  154. package/docs/layout/flyout.md +0 -1
  155. package/docs/layout/header.md +0 -1
  156. package/docs/layout/horizontal-rule-demo/demo1.md +0 -70
  157. package/docs/layout/horizontal-rule.md +0 -1
  158. package/docs/layout/modal-demo/demo1.md +0 -97
  159. package/docs/layout/modal-demo/demo2.md +0 -126
  160. package/docs/layout/modal-demo/demo3.md +0 -55
  161. package/docs/layout/modal-demo/demo4.md +0 -65
  162. package/docs/layout/modal.md +0 -1
  163. package/docs/layout/page-template/index.md +0 -11
  164. package/docs/layout/popover-demo/demo4.md +0 -118
  165. package/docs/layout/popover.md +0 -1
  166. package/docs/navigation/breadcrumbs.md +0 -1
  167. package/docs/navigation/button-demo/demo1.md +0 -413
  168. package/docs/navigation/button.md +0 -1
@@ -1,358 +0,0 @@
1
- # Demo
2
-
3
- ```hbs template
4
- <EuiTitle>
5
- Flex Group
6
- </EuiTitle>
7
- <EuiSpacer />
8
- <EuiTitle @size="s">
9
- Flex Wrap
10
- </EuiTitle>
11
- <EuiSpacer @size="s" />
12
- <EuiFlexGroup @wrap={{true}}>
13
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1); min-width: 300px;">
14
- Min Width: 300px
15
- </EuiFlexItem>
16
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1); min-width: 300px;">
17
- Min Width: 300px
18
- </EuiFlexItem>
19
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1); min-width: 300px;">
20
- Min Width: 300px
21
- </EuiFlexItem>
22
- </EuiFlexGroup>
23
- <EuiSpacer @size="xl" />
24
- <EuiTitle @size="s">
25
- Flex Group with unlimited items
26
- </EuiTitle>
27
- <EuiSpacer @size="s" />
28
- <EuiFlexGroup @wrap={{true}}>
29
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
30
- 1
31
- </EuiFlexItem>
32
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
33
- 2
34
- </EuiFlexItem>
35
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
36
- 3
37
- </EuiFlexItem>
38
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
39
- 4
40
- </EuiFlexItem>
41
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
42
- 5
43
- </EuiFlexItem>
44
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
45
- 6
46
- </EuiFlexItem>
47
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
48
- 7
49
- </EuiFlexItem>
50
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
51
- 8
52
- </EuiFlexItem>
53
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
54
- 9
55
- </EuiFlexItem>
56
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
57
- 10
58
- </EuiFlexItem>
59
- </EuiFlexGroup>
60
- <EuiSpacer @size="xl" />
61
- <EuiTitle @size="s">
62
- Flex Grow
63
- </EuiTitle>
64
- <EuiSpacer @size="s" />
65
- <EuiFlexGroup @wrap={{true}}>
66
- <EuiFlexItem @grow="false" style="padding: 16px; background: rgba(27,169,245,0.1);">
67
- This item won't grow.
68
- </EuiFlexItem>
69
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
70
- But this item will.
71
- </EuiFlexItem>
72
- </EuiFlexGroup>
73
- <EuiSpacer @size="xl" />
74
- <EuiTitle @size="s">
75
- Flex - Proportional Growth
76
- </EuiTitle>
77
- <EuiSpacer @size="s" />
78
- <EuiFlexGroup>
79
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{1}}>
80
- 1
81
- </EuiFlexItem>
82
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{2}}>
83
- 2
84
- <br />
85
- wraps content if necessary
86
- </EuiFlexItem>
87
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{3}}>
88
- 3
89
- <br />
90
- expands_to_fit_if_content_cannot_wrap
91
- </EuiFlexItem>
92
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{4}}>
93
- 4
94
- </EuiFlexItem>
95
- </EuiFlexGroup>
96
- <EuiSpacer />
97
- <EuiFlexGroup>
98
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{6}}>
99
- 6
100
- </EuiFlexItem>
101
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{3}}>
102
- 3
103
- </EuiFlexItem>
104
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{1}}>
105
- 1
106
- </EuiFlexItem>
107
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{3}}>
108
- 3
109
- </EuiFlexItem>
110
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow={{6}}>
111
- 6
112
- </EuiFlexItem>
113
- </EuiFlexGroup>
114
- <EuiSpacer @size="xl" />
115
- <EuiTitle @size="s">
116
- Flex - Justify and Align
117
- </EuiTitle>
118
- <EuiSpacer @size="s" />
119
- <EuiFlexGroup @justifyContent="spaceEvenly">
120
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
121
- One here on the left
122
- </EuiFlexItem>
123
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
124
- The other over here on the right.
125
- </EuiFlexItem>
126
- </EuiFlexGroup>
127
- <EuiSpacer />
128
- <EuiFlexGroup @justifyContent="spaceBetween">
129
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
130
- One here on the left
131
- </EuiFlexItem>
132
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
133
- The other over here on the right.
134
- </EuiFlexItem>
135
- </EuiFlexGroup>
136
- <EuiSpacer />
137
- <EuiFlexGroup @justifyContent="spaceAround">
138
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
139
- I’m a single centered item!
140
- </EuiFlexItem>
141
- </EuiFlexGroup>
142
- <EuiSpacer />
143
- <EuiFlexGroup @alignItems="center">
144
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
145
- <EuiText>
146
- <p>
147
- I
148
- </p>
149
- <p>
150
- am
151
- </p>
152
- <p>
153
- really
154
- </p>
155
- <p>
156
- tall
157
- </p>
158
- </EuiText>
159
- </EuiFlexItem>
160
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
161
- I am vertically centered!
162
- </EuiFlexItem>
163
- </EuiFlexGroup>
164
- <EuiSpacer @size="xl" />
165
- <EuiTitle @size="s">
166
- Flex Groups can change direction
167
- </EuiTitle>
168
- <EuiSpacer @size="s" />
169
- <EuiFlexGroup @direction="column">
170
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
171
- Content grid item
172
- </EuiFlexItem>
173
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
174
- Another content grid item
175
- </EuiFlexItem>
176
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);" @grow="false">
177
- Using the column direction
178
- </EuiFlexItem>
179
- </EuiFlexGroup>
180
- <EuiSpacer @size="xl" />
181
- <EuiTitle @size="s">
182
- Flex Grids for repeatable grids - can have up to 4 columns
183
- </EuiTitle>
184
- <EuiSpacer @size="s" />
185
- <EuiFlexGrid @columns={{4}}>
186
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
187
- <div>
188
- One
189
- </div>
190
- </EuiFlexItem>
191
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
192
- <div>
193
- Two
194
- </div>
195
- </EuiFlexItem>
196
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
197
- <div>
198
- Three
199
- </div>
200
- </EuiFlexItem>
201
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
202
- <div>
203
- Four
204
- </div>
205
- </EuiFlexItem>
206
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
207
- <div>
208
- Five
209
- </div>
210
- </EuiFlexItem>
211
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
212
- <div>
213
- Six
214
- </div>
215
- </EuiFlexItem>
216
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
217
- <div>
218
- Seven
219
- </div>
220
- </EuiFlexItem>
221
- </EuiFlexGrid>
222
- <EuiSpacer @size="xl" />
223
- <EuiTitle @size="s">
224
- Flex Grids can change direction
225
- </EuiTitle>
226
- <EuiSpacer @size="s" />
227
- <EuiFlexGrid @direction="column" @columns={{2}}>
228
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
229
- <div>
230
- One
231
- </div>
232
- </EuiFlexItem>
233
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
234
- <div>
235
- Two
236
- </div>
237
- </EuiFlexItem>
238
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
239
- <div>
240
- Three
241
- </div>
242
- </EuiFlexItem>
243
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
244
- <div>
245
- Four
246
- </div>
247
- </EuiFlexItem>
248
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
249
- <div>
250
- Five
251
- </div>
252
- </EuiFlexItem>
253
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
254
- <div>
255
- Six
256
- </div>
257
- </EuiFlexItem>
258
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
259
- <div>
260
- Seven
261
- </div>
262
- </EuiFlexItem>
263
- </EuiFlexGrid>
264
- <EuiSpacer @size="xl" />
265
- <EuiTitle @size="s">
266
- Gutter Size for both Grids and Groups
267
- </EuiTitle>
268
- <EuiSpacer @size="s" />
269
- <EuiFlexGroup @gutterSize="none">
270
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
271
- None
272
- </EuiFlexItem>
273
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
274
- None
275
- </EuiFlexItem>
276
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
277
- None
278
- </EuiFlexItem>
279
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
280
- None
281
- </EuiFlexItem>
282
- </EuiFlexGroup>
283
- <EuiSpacer />
284
- <EuiFlexGroup @gutterSize="xs">
285
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
286
- Extra small
287
- </EuiFlexItem>
288
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
289
- Extra small
290
- </EuiFlexItem>
291
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
292
- Extra small
293
- </EuiFlexItem>
294
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
295
- Extra small
296
- </EuiFlexItem>
297
- </EuiFlexGroup>
298
- <EuiSpacer />
299
- <EuiFlexGroup @gutterSize="s">
300
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
301
- Small
302
- </EuiFlexItem>
303
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
304
- Small
305
- </EuiFlexItem>
306
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
307
- Small
308
- </EuiFlexItem>
309
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
310
- Small
311
- </EuiFlexItem>
312
- </EuiFlexGroup>
313
- <EuiSpacer />
314
- <EuiFlexGroup @gutterSize="m">
315
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
316
- Medium
317
- </EuiFlexItem>
318
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
319
- Medium
320
- </EuiFlexItem>
321
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
322
- Medium
323
- </EuiFlexItem>
324
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
325
- Medium
326
- </EuiFlexItem>
327
- </EuiFlexGroup>
328
- <EuiSpacer />
329
- <EuiFlexGroup @gutterSize="l">
330
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
331
- Large (default)
332
- </EuiFlexItem>
333
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
334
- Large (default)
335
- </EuiFlexItem>
336
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
337
- Large (default)
338
- </EuiFlexItem>
339
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
340
- Large (default)
341
- </EuiFlexItem>
342
- </EuiFlexGroup>
343
- <EuiSpacer />
344
- <EuiFlexGroup @gutterSize="xl">
345
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
346
- Extra Large
347
- </EuiFlexItem>
348
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
349
- Extra Large
350
- </EuiFlexItem>
351
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
352
- Extra Large
353
- </EuiFlexItem>
354
- <EuiFlexItem style="padding: 16px; background: rgba(27,169,245,0.1);">
355
- Extra Large
356
- </EuiFlexItem>
357
- </EuiFlexGroup>
358
- ```
@@ -1 +0,0 @@
1
- <EuiPageHeader @pageTitle="Flex"/>
@@ -1,87 +0,0 @@
1
- ---
2
- order: 2
3
- ---
4
- # More complicated flyout
5
-
6
- <EuiSpacer />
7
-
8
- <EuiText>
9
- <p>
10
-
11
- This component also comes with related child components for ease of creating headers, footers and scrolling body content. <strong>EuiFlyoutHeader</strong> and <strong>EuiFlyoutFooter</strong> are pinned to the top and bottom of the flyout, respectively, to allow for always visible navigation and actions. The <strong>EuiFlyoutBody</strong> component will then automatically overflow.
12
-
13
- </p>
14
- </EuiText>
15
-
16
- ```hbs template
17
- <EuiButton {{on 'click' this.openFlyout}}>
18
- Small Flyout w/o Overlay
19
- </EuiButton>
20
-
21
- {{#if this.flyout2Open}}
22
- <EuiFlyout @size='s' @onClose={{this.closeFlyout}}>
23
- <EuiFlyoutHeader @hasBorder={{true}}>
24
- <EuiTitle @size='l'>Small Welcome!</EuiTitle>
25
- </EuiFlyoutHeader>
26
- <EuiFlyoutBody>
27
-
28
- <EuiText>
29
- <p>
30
- Far out in the uncharted backwaters of the unfashionable end of the
31
- western spiral arm of the Galaxy lies a small unregarded yellow sun.
32
- </p>
33
- <EuiHorizontalRule margin='s' @size='half' />
34
- <p>
35
- Orbiting this at a distance of roughly ninety-two million miles is an
36
- utterly insignificant little blue green planet whose ape- descended
37
- life forms are so amazingly primitive that they still think digital
38
- watches are a pretty neat idea.
39
- </p>
40
- <EuiHorizontalRule margin='s' @size='half' />
41
- <p>
42
- This planet has - or rather had - a problem, which was this: most of
43
- the people living on it were unhappy for pretty much of the time. Many
44
- solutions were suggested for this problem, but most of these were
45
- largely concerned with the movements of small green pieces of paper,
46
- which is odd because on the whole it was not the small green pieces of
47
- paper that were unhappy.
48
- </p>
49
- </EuiText>
50
-
51
- </EuiFlyoutBody>
52
- <EuiFlyoutFooter>
53
- <EuiFlexGroup @justifyContent='spaceBetween' @gutterSize='s'>
54
- <EuiButton {{on 'click' (fn this.closeFlyout 'flyout2Open')}}>
55
- Cancel
56
- </EuiButton>
57
- <EuiButton
58
- @fill={{true}}
59
- {{on 'click' (fn this.closeFlyout 'flyout2Open')}}
60
- >
61
- Send
62
- </EuiButton>
63
- </EuiFlexGroup>
64
- </EuiFlyoutFooter>
65
- </EuiFlyout>
66
- {{/if}}
67
- ```
68
-
69
- ```js component
70
- import Component from '@glimmer/component';
71
- import { tracked } from '@glimmer/tracking';
72
- import { action } from '@ember/object';
73
-
74
- export default class DemoFlyoutDemo2Component extends Component {
75
- @tracked flyout2Open = false;
76
-
77
- @action
78
- openFlyout() {
79
- this.flyout2Open = true;
80
- }
81
-
82
- @action
83
- closeFlyout(flyout) {
84
- this.flyout2Open = false;
85
- }
86
- }
87
- ```
@@ -1 +0,0 @@
1
- <EuiPageHeader @pageTitle="Flyout"/>
@@ -1 +0,0 @@
1
- <EuiPageHeader @pageTitle="Header"/>
@@ -1,70 +0,0 @@
1
- # Demo
2
-
3
- ```hbs template
4
- <EuiTitle @size="l">
5
- Size
6
- </EuiTitle>
7
- <EuiText @size="s">
8
- <p>
9
- quarter
10
- </p>
11
- </EuiText>
12
- <EuiHorizontalRule @size="quarter" />
13
- <EuiText @size="s">
14
- <p>
15
- half
16
- </p>
17
- </EuiText>
18
- <EuiHorizontalRule @size="half" />
19
- <EuiText @size="s">
20
- <p>
21
- full (default)
22
- </p>
23
- </EuiText>
24
- <EuiHorizontalRule @size="full" />
25
- <EuiTitle @size="l">
26
- Margin
27
- </EuiTitle>
28
- <EuiText @size="s">
29
- <p>
30
- none
31
- </p>
32
- </EuiText>
33
- <EuiHorizontalRule @margin="none" />
34
- <EuiText @size="s">
35
- <p>
36
- xs
37
- </p>
38
- </EuiText>
39
- <EuiHorizontalRule @margin="xs" />
40
- <EuiText @size="s">
41
- <p>
42
- s
43
- </p>
44
- </EuiText>
45
- <EuiHorizontalRule @margin="s" />
46
- <EuiText @size="s">
47
- <p>
48
- m
49
- </p>
50
- </EuiText>
51
- <EuiHorizontalRule @margin="m" />
52
- <EuiText @size="s">
53
- <p>
54
- l (default)
55
- </p>
56
- </EuiText>
57
- <EuiHorizontalRule @margin="l" />
58
- <EuiText @size="s">
59
- <p>
60
- xl
61
- </p>
62
- </EuiText>
63
- <EuiHorizontalRule @margin="xl" />
64
- <EuiText @size="s">
65
- <p>
66
- xxl
67
- </p>
68
- </EuiText>
69
- <EuiHorizontalRule @margin="xxl" />
70
- ```
@@ -1 +0,0 @@
1
- <EuiPageHeader @pageTitle="Horizontal Rule"/>
@@ -1,97 +0,0 @@
1
- ---
2
- order: 1
3
- ---
4
-
5
- # Modal
6
-
7
- <EuiText>
8
- Each <strong>EuiModal</strong> requires a specific set of nested child components. They can be
9
- omitted if necessary, but the order cannot be changed or interrupted. Modals
10
- come a wrapping <strong>EuiOverlayMask</strong> to obscure the content beneath, but unlike
11
- flyouts, modals cannot be dismissed by clicking on the overlay mask. This is
12
- inline with our modal usage guidelines which requires there to be a primary
13
- action button, even if that button simply closes the modal.
14
- </EuiText>
15
-
16
- ```hbs template
17
- <EuiButton
18
- @color='primary'
19
- {{on 'click' (fn this.activateModal 'basicModalActive')}}
20
- >
21
- Show Modal
22
- </EuiButton>
23
- {{#if this.basicModalActive}}
24
-
25
- <EuiModal
26
- @onClose={{fn this.deactivateModal 'basicModalActive'}}
27
- @initialFocus='#focusee'
28
- @maxWidth='90%'
29
- >
30
- <EuiModalHeader>
31
- <EuiTitle @size='m'>
32
- Basic Modal
33
- </EuiTitle>
34
- </EuiModalHeader>
35
- <EuiModalBody>
36
- <EuiText>
37
- <p>
38
- Hello there!
39
- </p>
40
- <p>
41
- This modal has many
42
- <a id='focusee' href='#'>
43
- different
44
- </a>
45
- <a href='#'>
46
- focusable
47
- </a>
48
- <a href='#'>
49
- items
50
- </a>
51
- .
52
- </p>
53
- </EuiText>
54
- </EuiModalBody>
55
- <EuiModalFooter>
56
- <EuiButtonEmpty
57
- {{on 'click' (fn this.deactivateModal 'basicModalActive')}}
58
- >
59
- Cancel
60
- </EuiButtonEmpty>
61
- <EuiButton
62
- {{on 'click' (fn this.deactivateModal 'basicModalActive')}}
63
- @color='primary'
64
- @fill={{true}}
65
- >
66
- Submit
67
- </EuiButton>
68
- </EuiModalFooter>
69
- </EuiModal>
70
- {{/if}}
71
- <EuiSpacer />
72
- ```
73
-
74
- ```js component
75
- import Component from '@glimmer/component';
76
- import { tracked } from '@glimmer/tracking';
77
- import { action } from '@ember/object';
78
-
79
- export default class DemoModalComponent extends Component {
80
- @tracked basicModalActive = false;
81
-
82
- @action
83
- activateModal(modal) {
84
- this[modal] = true;
85
- }
86
-
87
- @action
88
- deactivateModal(modal) {
89
- this[modal] = false;
90
- }
91
-
92
- @action
93
- reloadPage() {
94
- location.reload();
95
- }
96
- }
97
- ```