@ember-eui/core 5.0.3 → 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 (165) 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-popover/index.hbs +61 -102
  6. package/addon/helpers/merge.ts +5 -0
  7. package/addon/utils/css-mappings/eui-avatar.ts +1 -0
  8. package/addon/utils/css-mappings/eui-header-links.ts +1 -1
  9. package/app/helpers/merge.js +1 -0
  10. package/docs/layout/{accordion.md → accordion/demo/d01-simple-and-unstyle.md} +18 -22
  11. package/docs/layout/accordion/demo/d02-arrow-display.md +34 -0
  12. package/docs/layout/{accordion-demo/demo2.md → accordion/demo/d03-multiple-accordions.md} +6 -5
  13. package/docs/layout/{accordion-demo/demo3.md → accordion/demo/d04-extra-actions.md} +2 -2
  14. package/docs/layout/{accordion-demo/demo4.md → accordion/demo/d05-opened-on-initial-render.md} +2 -2
  15. package/docs/layout/{accordion-demo/demo5.md → accordion/demo/d06-controlling-toggled-state.md} +3 -2
  16. package/docs/layout/{accordion-demo/demo6.md → accordion/demo/d07-loading-state.md} +2 -1
  17. package/docs/layout/accordion/demo/d08-when-content-changes-dynamically.md +71 -0
  18. package/docs/layout/{accordion-demo/demo8.md → accordion/demo/d09-interactive-content-in-the-trigger.md} +4 -4
  19. package/docs/layout/{accordion-demo/demo9.md → accordion/demo/d10-styled-for-forms.md} +44 -44
  20. package/docs/layout/accordion/index.md +23 -0
  21. package/docs/layout/{bottom-bar-demo/demo1.md → bottom-bar/demo/d01-basic.md} +0 -2
  22. package/docs/layout/{bottom-bar-demo/demo2.md → bottom-bar/demo/d02-positions.md} +0 -0
  23. package/docs/layout/{bottom-bar-demo/demo3.md → bottom-bar/demo/d03-displacement.md} +1 -0
  24. package/docs/layout/bottom-bar/index.md +18 -0
  25. package/docs/layout/flex/demo/d01-flex-group-is-for-a-single-row-layout.md +19 -0
  26. package/docs/layout/flex/demo/d02-flex-items-are-also-flex.md +18 -0
  27. package/docs/layout/flex/demo/d03-spans-instead-of-divs.md +19 -0
  28. package/docs/layout/flex/demo/d04-panels-grow-to-fill-flex-items.md +32 -0
  29. package/docs/layout/flex/demo/d05-turn-off-item-streching.md +12 -0
  30. package/docs/layout/flex/demo/d06-proportional-widths-of-items.md +32 -0
  31. package/docs/layout/flex/demo/d07-justify-and-align.md +11 -0
  32. package/docs/layout/flex/demo/d08-allowing-flex-items-to-wrap.md +43 -0
  33. package/docs/layout/flex/demo/d09-change-direction.md +13 -0
  34. package/docs/layout/flex/demo/d10-flex-grids-are-for-repeatable-items.md +33 -0
  35. package/docs/layout/flex/demo/d11-flex-grids-can-change-direction.md +33 -0
  36. package/docs/layout/flex/demo/d12-flex-grids-and-flex-groups-can-nest.md +30 -0
  37. package/docs/layout/flex/demo/d13-gutter-sizing.md +61 -0
  38. package/docs/layout/flex/demo/d14-responsive-layouts.md +29 -0
  39. package/docs/layout/flex/index.md +18 -0
  40. package/docs/layout/{flyout-demo/demo1.md → flyout/demo/d01-basic.md} +12 -16
  41. package/docs/layout/flyout/demo/d02-more-complicated-flyout.md +195 -0
  42. package/docs/layout/{flyout-demo/demo3.md → flyout/demo/d03-sizing.md} +5 -17
  43. package/docs/layout/{flyout-demo/demo4.md → flyout/demo/d04-adjusting-padding.md} +29 -36
  44. package/docs/layout/{flyout-demo/demo5.md → flyout/demo/d05-adding-a-banner.md} +6 -6
  45. package/docs/layout/{flyout-demo/demo6.md → flyout/demo/d06-without-ownfocus.md} +11 -14
  46. package/docs/layout/{flyout-demo/demo7.md → flyout/demo/d07-push-versus-overlay.md} +17 -3
  47. package/docs/layout/flyout/demo/d08-understanding-max-width.md +9 -0
  48. package/docs/layout/flyout/index.md +7 -0
  49. package/docs/layout/{header-demo/demo1.md → header/demo/d01-header.md} +138 -120
  50. package/docs/layout/header/demo/d02-sections.md +9 -0
  51. package/docs/layout/{header-demo/demo2.md → header/demo/d03-header-links.md} +2 -2
  52. package/docs/layout/{header-demo/demo3.md → header/demo/d04-fixed-header.md} +1 -1
  53. package/docs/layout/{header-demo/demo4.md → header/demo/d05-dark-theme.md} +3 -3
  54. package/docs/layout/{header-demo/demo5.md → header/demo/d06-portal-content-in-the-header.md} +20 -9
  55. package/docs/layout/{header-demo/demo6.md → header/demo/d07-header-notifications.md} +1 -1
  56. package/docs/layout/{header-demo/demo7.md → header/demo/d08-stacked-headers.md} +47 -26
  57. package/docs/layout/header/demo/d09-the-elastic-navigation-pattern.md +9 -0
  58. package/docs/layout/header/index.md +7 -0
  59. package/docs/layout/horizontal-rule/demo/d01-size.md +14 -0
  60. package/docs/layout/horizontal-rule/demo/d02-margins.md +38 -0
  61. package/docs/layout/horizontal-rule/horizontal-rule.md +7 -0
  62. package/docs/layout/modal/demo/d01-modal.md +73 -0
  63. package/docs/layout/modal/demo/d02-forms-in-a-modal.md +107 -0
  64. package/docs/layout/modal/demo/d03-confirm-modal.md +86 -0
  65. package/docs/layout/modal/demo/d04-loading-and-disabling-confirm-button.md +80 -0
  66. package/docs/layout/{modal-demo/demo5.md → modal/demo/d05-widths.md} +20 -39
  67. package/docs/layout/modal/index.md +13 -0
  68. package/docs/layout/page-header/demo/{demo1.md → d01-basic.md} +0 -2
  69. package/docs/layout/page-header/demo/{demo2.md → d02-tabs-in-the-page-header.md} +1 -2
  70. package/docs/layout/page-header/demo/{demo3.md → d03-tabs-in-the-page-header.md} +2 -3
  71. package/docs/layout/page-header/demo/{demo4.md → d04-breadcrumbs-in-the-page-header.md} +3 -2
  72. package/docs/layout/page-header/demo/{demo5.md → d05-breadcrumbs-in-the-page-header.md} +1 -28
  73. package/docs/layout/page-header/demo/{demo6.md → d06-customizing-the-page-header.md} +0 -0
  74. package/docs/layout/page-header/index.md +1 -2
  75. package/docs/layout/{panel-demo/demo1.md → panel/demo/d01-padding.md} +0 -0
  76. package/docs/layout/{panel-demo/demo2.md → panel/demo/d02-shadow-and-border.md} +2 -2
  77. package/docs/layout/{panel-demo/demo3.md → panel/demo/d03-colors-and-corners.md} +0 -0
  78. package/docs/layout/{panel-demo/demo4.md → panel/demo/d04-growing-height.md} +0 -0
  79. package/docs/layout/{panel-demo/demo5.md → panel/demo/d05-split-panels.md} +1 -1
  80. package/docs/layout/{panel.md → panel/index.md} +4 -0
  81. package/docs/layout/{popover-demo/demo1.md → popover/demo/d01-basic.md} +6 -4
  82. package/docs/layout/{popover-demo/demo2.md → popover/demo/d02-anchor-position.md} +0 -0
  83. package/docs/layout/popover/demo/d03-popover-titles-and-footers.md +133 -0
  84. package/docs/layout/{popover-demo/demo5.md → popover/demo/d04-popover-padding-sizes.md} +56 -31
  85. package/docs/layout/{popover-demo/demo6.md → popover/demo/d05-panel-class-name.md} +3 -3
  86. package/docs/layout/{popover-demo/demo7.md → popover/demo/d06-popover-with-block-level-display.md} +2 -3
  87. package/docs/layout/{popover-demo/demo3.md → popover/demo/d07-popover-on-a-fixed-element.md} +3 -11
  88. package/docs/layout/{popover-demo/demo8.md → popover/demo/d08-constraining-a-popover-inside-a-container.md} +0 -0
  89. package/docs/layout/{popover-demo/demo9.md → popover/demo/d09-popover-attached-to-input-element.md} +14 -12
  90. package/docs/layout/popover/demo/d10-setting-an-initial-focus.md +61 -0
  91. package/docs/layout/{popover-demo/demo10.md → popover/demo/d11-removing-the-focus-trap.md} +1 -1
  92. package/docs/layout/popover/demo/d12-popover-using-and-html-element-as-the-anchor.md +9 -0
  93. package/docs/layout/popover/index.md +7 -0
  94. package/docs/layout/resizable-container/demo/d01-horizontal-resizing.md +10 -0
  95. package/docs/layout/resizable-container/demo/d02-resizable-panel-options.md +10 -0
  96. package/docs/layout/resizable-container/demo/d03-horizontal-resizing-with-controlled-widths.md +10 -0
  97. package/docs/layout/resizable-container/demo/d04-vertical-resizing.md +10 -0
  98. package/docs/layout/resizable-container/demo/d05-collapsible-resizable-panels.md +10 -0
  99. package/docs/layout/resizable-container/demo/d06-responsive-layout.md +10 -0
  100. package/docs/layout/resizable-container/demo/d07-collapsible-panels-options.md +10 -0
  101. package/docs/layout/resizable-container/demo/d08-collapsible-panels-with-external-control.md +10 -0
  102. package/docs/layout/resizable-container/index.md +15 -0
  103. package/docs/layout/spacer/demo/d01-basic.md +44 -0
  104. package/docs/layout/spacer/index.md +7 -0
  105. package/docs/navigation/{breadcrumbs-demo/demo1.md → breadcrumbs/demo/d01-basic.md} +9 -6
  106. package/docs/navigation/{breadcrumbs-demo/demo2.md → breadcrumbs/demo/d02-limit-the-number-of-breadcrumbs.md} +0 -0
  107. package/docs/navigation/{breadcrumbs-demo/demo3.md → breadcrumbs/demo/d03-truncate-each-breadcrumb.md} +0 -0
  108. package/docs/navigation/{breadcrumbs-demo/demo4.md → breadcrumbs/demo/d04-truncate-each-breadcrumb-on-each-object.md} +0 -0
  109. package/docs/navigation/{breadcrumbs-demo/demo5.md → breadcrumbs/demo/d05-responsive.md} +14 -0
  110. package/docs/navigation/{breadcrumbs-demo/demo6.md → breadcrumbs/demo/d06-color-for-emphasis.md} +12 -23
  111. package/docs/navigation/breadcrumbs/index.md +7 -0
  112. package/docs/navigation/button/demo/d01-basic.md +85 -0
  113. package/docs/navigation/button/demo/d02-empty-button.md +68 -0
  114. package/docs/navigation/button/demo/d03-flush-empty-button.md +32 -0
  115. package/docs/navigation/button/demo/d04-buttons-with-icons.md +213 -0
  116. package/docs/navigation/button/demo/d05-icon-buttons.md +139 -0
  117. package/docs/navigation/button/demo/d06-buttons-as-links.md +51 -0
  118. package/docs/navigation/button/demo/d07-loading-state.md +38 -0
  119. package/docs/navigation/button/demo/d08-split-buttons.md +43 -0
  120. package/docs/navigation/button/demo/d09-toggle-buttons.md +10 -0
  121. package/docs/navigation/button/demo/d10-button-groups.md +10 -0
  122. package/docs/navigation/button/demo/d11-ghost.md +10 -0
  123. package/docs/navigation/button/index.md +13 -0
  124. package/docs/{layout/page-template/demo/demo1.md → templates/page-template/demo/d01-a-full-page-with-everything.md} +1 -24
  125. package/docs/{layout/page-template/demo/demo2.md → templates/page-template/demo/d02-restricting-page-width.md} +0 -0
  126. package/docs/{layout/page-template/demo/demo3.md → templates/page-template/demo/d03-showing-a-bottom-bar.md} +0 -0
  127. package/docs/{layout/page-template/demo/demo4.md → templates/page-template/demo/d04-centered-body.md} +1 -1
  128. package/docs/{layout/page-template/demo/demo5.md → templates/page-template/demo/d05-centered-content.md} +1 -1
  129. package/docs/{layout/page-template/demo/demo6.md → templates/page-template/demo/d06-a-simple-page-with-tabs.md} +0 -0
  130. package/docs/{layout/page-template/demo/demo7.md → templates/page-template/demo/d07-full-height-layout.md} +0 -0
  131. package/docs/{layout/page-template/demo/demo8.md → templates/page-template/demo/d08-simple-layout-with-centered-body.md} +0 -0
  132. package/docs/{layout/page-template/demo/demo9.md → templates/page-template/demo/d09-simple-layout-with-centered-content.md} +0 -0
  133. package/docs/{layout/page-template/demo/demo10.md → templates/page-template/demo/d10-a-simple-page-layout-with-custom-content.md} +0 -0
  134. package/docs/templates/page-template/index.md +37 -0
  135. package/docs/templates/sitewide-search/demo/d01-basic-setup.md +10 -0
  136. package/docs/templates/sitewide-search/demo/d02-options.md +10 -0
  137. package/docs/templates/sitewide-search/index.md +9 -0
  138. package/docs/templates/super-date-picker/demo/d01-update-button.md +10 -0
  139. package/docs/templates/super-date-picker/demo/d02-quick-select-panels.md +10 -0
  140. package/docs/templates/super-date-picker/demo/d03-sizing.md +10 -0
  141. package/docs/templates/super-date-picker/demo/d04-auto-refresh.md +11 -0
  142. package/docs/templates/super-date-picker/demo/d05-elastic-pattern-with-kql.md +10 -0
  143. package/docs/templates/super-date-picker/index.md +12 -0
  144. package/package.json +3 -3
  145. package/docs/layout/accordion-demo/demo1.md +0 -33
  146. package/docs/layout/accordion-demo/demo7.md +0 -66
  147. package/docs/layout/bottom-bar.md +0 -1
  148. package/docs/layout/flex-demo/demo1.md +0 -358
  149. package/docs/layout/flex.md +0 -1
  150. package/docs/layout/flyout-demo/demo2.md +0 -87
  151. package/docs/layout/flyout.md +0 -1
  152. package/docs/layout/header.md +0 -1
  153. package/docs/layout/horizontal-rule-demo/demo1.md +0 -70
  154. package/docs/layout/horizontal-rule.md +0 -1
  155. package/docs/layout/modal-demo/demo1.md +0 -97
  156. package/docs/layout/modal-demo/demo2.md +0 -126
  157. package/docs/layout/modal-demo/demo3.md +0 -55
  158. package/docs/layout/modal-demo/demo4.md +0 -65
  159. package/docs/layout/modal.md +0 -1
  160. package/docs/layout/page-template/index.md +0 -11
  161. package/docs/layout/popover-demo/demo4.md +0 -118
  162. package/docs/layout/popover.md +0 -1
  163. package/docs/navigation/breadcrumbs.md +0 -1
  164. package/docs/navigation/button-demo/demo1.md +0 -413
  165. package/docs/navigation/button.md +0 -1
@@ -0,0 +1,10 @@
1
+ ---
2
+ order: 8
3
+ ---
4
+
5
+ # Collapsible panels with external control
6
+
7
+
8
+ ```hbs template
9
+ <TodoText/>
10
+ ```
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: Resizable container
3
+ disabled: true
4
+ disabled_demos:
5
+ - d01-horizontal-resizing
6
+ - d02-resizable-panel-options
7
+ - d03-horizontal-resizing-with-controlled-widths
8
+ - d04-vertical-resizing
9
+ - d05-collapsible-resizable-panels
10
+ - d06-responsive-layout
11
+ - d07-collapsible-panels-options
12
+ - d08-collapsible-panels-with-external-control
13
+ ---
14
+
15
+ <EuiPageHeader @pageTitle="Resizable container"/>
@@ -0,0 +1,44 @@
1
+ ---
2
+ order: 1
3
+ ---
4
+
5
+ <EuiText>
6
+ The <EuiCode>EuiSpacer</EuiCode> component is for adding vertical space between items and should be used in place of the <EuiCode><br/></EuiCode> tag. There are many different heights you can specify via the size prop which align to the EUI vertical grid sizing.
7
+ </EuiText>
8
+
9
+
10
+ ```hbs template
11
+ <div class="guideDemo__highlightSpacer">
12
+ <EuiFlexGroup>
13
+ <EuiFlexItem>
14
+ <EuiCode>xs</EuiCode>
15
+ <EuiSpacer @size="xs" />
16
+ </EuiFlexItem>
17
+
18
+ <EuiFlexItem>
19
+ <EuiCode>s</EuiCode>
20
+ <EuiSpacer @size="s" />
21
+ </EuiFlexItem>
22
+
23
+ <EuiFlexItem>
24
+ <EuiCode>m</EuiCode>
25
+ <EuiSpacer @size="m" />
26
+ </EuiFlexItem>
27
+
28
+ <EuiFlexItem>
29
+ <EuiCode>l (default)</EuiCode>
30
+ <EuiSpacer />
31
+ </EuiFlexItem>
32
+
33
+ <EuiFlexItem>
34
+ <EuiCode>xl</EuiCode>
35
+ <EuiSpacer @size="xl" />
36
+ </EuiFlexItem>
37
+
38
+ <EuiFlexItem>
39
+ <EuiCode>xxl</EuiCode>
40
+ <EuiSpacer @size="xxl" />
41
+ </EuiFlexItem>
42
+ </EuiFlexGroup>
43
+ </div>
44
+ ```
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Spacer
3
+ ---
4
+
5
+ <EuiPageHeader @pageTitle="Spacer"/>
6
+
7
+ <EuiHorizontalRule/>
@@ -31,13 +31,16 @@ order: 1
31
31
  @truncate={{false}}
32
32
  aria-label='An example of EuiBreadcrumbs'
33
33
  />
34
- <EuiSpacer size='xs' />
34
+ <EuiSpacer @size='xs' />
35
35
  <EuiPageHeader>
36
- <EuiPageHeaderSection>
37
- <EuiTitle>
38
- Boa constrictor
39
- </EuiTitle>
40
- </EuiPageHeaderSection>
36
+ <:pageTitle>
37
+ Boa constrictor
38
+ </:pageTitle>
39
+ <:rightSideItems as |Item|>
40
+ <Item>
41
+ <EuiButton>Cancel</EuiButton>
42
+ </Item>
43
+ </:rightSideItems>
41
44
  </EuiPageHeader>
42
45
  </EuiPageContent>
43
46
  ```
@@ -18,6 +18,20 @@ order: 5
18
18
  @responsive={{false}}
19
19
  aria-label='An example of non-responsive EuiBreadcrumbs'
20
20
  />
21
+
22
+ <EuiText>
23
+ <p>
24
+ Alternatively, you can change number of breadcrumbs that show per breakpoint by passing a custom responsive object.
25
+ </p>
26
+ </EuiText>
27
+
28
+
29
+ <EuiBreadcrumbs
30
+ @breadcrumbs={{this.breadcrumbs}}
31
+ @responsive={{hash xs=1 s=3 m=5 xl=6}}
32
+ @max={{null}}
33
+ aria-label='An example of custom responsive EuiBreadcrumbs'
34
+ />
21
35
  ```
22
36
 
23
37
  ```js component
@@ -2,7 +2,7 @@
2
2
  order: 6
3
3
  ---
4
4
 
5
- # Custom responsive hash
5
+ # Color for emphasis
6
6
 
7
7
  <EuiText>
8
8
  <p>
@@ -23,38 +23,27 @@ order: 6
23
23
  ```js component
24
24
  import Component from '@glimmer/component';
25
25
 
26
- export default class DemoSideNavComponent extends Component {
26
+ export default class DemoComponent extends Component {
27
27
  breadcrumbs = [
28
28
  {
29
29
  text: 'Animals',
30
- href: '#'
31
- },
32
- {
33
- text: 'Metazoans',
34
- href: '#'
35
- },
36
- {
37
- text: 'Chordates',
38
- href: '#'
39
- },
40
- {
41
- text: 'Vertebrates',
42
- href: '#'
43
- },
44
- {
45
- text: 'Tetrapods',
46
- href: '#'
30
+ href: '#',
31
+ color: 'primary',
32
+ onClick: (e) => e.preventDefault(),
47
33
  },
48
34
  {
49
35
  text: 'Reptiles',
50
- href: '#'
36
+ color: 'primary',
51
37
  },
52
38
  {
53
- text: 'Boa constrictor',
54
- href: '#'
39
+ text: 'Boa constrictor', // todo support icon
40
+ title: 'Boa constrictor has an error',
41
+ href: '#',
42
+ color: 'danger',
43
+ onClick: (e) => e.preventDefault(),
55
44
  },
56
45
  {
57
- text: 'Nebulosa subspecies'
46
+ text: 'Edit',
58
47
  }
59
48
  ];
60
49
  }
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Breadcrumbs
3
+ ---
4
+
5
+ <EuiPageHeader @pageTitle="Breadcrumbs"/>
6
+
7
+ <EuiHorizontalRule/>
@@ -0,0 +1,85 @@
1
+ ---
2
+ order: 1
3
+ ---
4
+
5
+ ```hbs template
6
+
7
+ {{#each this.buttons as |type|}}
8
+ {{#let
9
+ (if (eq type 'disabled') undefined type)
10
+ (eq type 'disabled')
11
+ as |color isDisabled|}}
12
+ <EuiFlexGroup
13
+ @gutterSize='s'
14
+ @alignItems="center"
15
+ @wrap={{true}}
16
+ >
17
+ <EuiFlexItem @grow={{false}}>
18
+ <EuiButton
19
+ @color={{color}}
20
+ @isDisabled={{isDisabled}}
21
+ >
22
+ {{type}}
23
+ </EuiButton>
24
+ </EuiFlexItem>
25
+ <EuiFlexItem @grow={{false}}>
26
+ <EuiButton
27
+ @color={{color}}
28
+ @isDisabled={{isDisabled}}
29
+ @fill={{true}}
30
+ >
31
+ Filled
32
+ </EuiButton>
33
+ </EuiFlexItem>
34
+ <EuiFlexItem @grow={{false}}>
35
+ <EuiButton
36
+ @color={{color}}
37
+ @isDisabled={{isDisabled}}
38
+ @size='s'
39
+ >
40
+ Small
41
+ </EuiButton>
42
+ </EuiFlexItem>
43
+ <EuiFlexItem @grow={{false}}>
44
+ <EuiButton
45
+ @color={{color}}
46
+ @isDisabled={{isDisabled}}
47
+ @fill={{true}}
48
+ @size='s'
49
+ >
50
+ Small and filled
51
+ </EuiButton>
52
+ </EuiFlexItem>
53
+ <EuiFlexItem @grow={{true}}>
54
+ <EuiButton
55
+ @color={{color}}
56
+ @isDisabled={{isDisabled}}
57
+ @fullWidth={{true}}
58
+ >
59
+ Full width
60
+ </EuiButton>
61
+ </EuiFlexItem>
62
+ </EuiFlexGroup>
63
+ {{/let}}
64
+ {{/each}}
65
+ ```
66
+
67
+ ```js component
68
+ import Component from '@glimmer/component';
69
+ import { action } from '@ember/object';
70
+ import { tracked } from '@glimmer/tracking';
71
+
72
+ export default class DemoComponent extends Component {
73
+
74
+ buttons = [
75
+ 'primary',
76
+ 'success',
77
+ 'warning',
78
+ 'danger',
79
+ 'text',
80
+ 'accent',
81
+ 'disabled',
82
+ ];
83
+
84
+ }
85
+ ```
@@ -0,0 +1,68 @@
1
+ ---
2
+ order: 2
3
+ ---
4
+
5
+ # Empty button
6
+
7
+ ```hbs template
8
+
9
+ {{#each this.buttons as |type|}}
10
+ {{#let
11
+ (if (eq type 'disabled') undefined type)
12
+ (eq type 'disabled')
13
+ as |color isDisabled|}}
14
+ <EuiFlexGroup
15
+ @gutterSize='s'
16
+ @alignItems="center"
17
+ @wrap={{true}}
18
+ >
19
+ <EuiFlexItem @grow={{false}}>
20
+ <EuiButtonEmpty
21
+ @color={{color}}
22
+ @isDisabled={{isDisabled}}
23
+ >
24
+ {{type}}
25
+ </EuiButtonEmpty>
26
+ </EuiFlexItem>
27
+ <EuiFlexItem @grow={{false}}>
28
+ <EuiButtonEmpty
29
+ @color={{color}}
30
+ @isDisabled={{isDisabled}}
31
+ @size='s'
32
+ >
33
+ Small
34
+ </EuiButtonEmpty>
35
+ </EuiFlexItem>
36
+ <EuiFlexItem @grow={{false}}>
37
+ <EuiButtonEmpty
38
+ @color={{color}}
39
+ @isDisabled={{isDisabled}}
40
+ @size='xs'
41
+ >
42
+ Extra small
43
+ </EuiButtonEmpty>
44
+ </EuiFlexItem>
45
+ </EuiFlexGroup>
46
+ {{/let}}
47
+ {{/each}}
48
+ ```
49
+
50
+ ```js component
51
+ import Component from '@glimmer/component';
52
+ import { action } from '@ember/object';
53
+ import { tracked } from '@glimmer/tracking';
54
+
55
+ export default class DemoComponent extends Component {
56
+
57
+ buttons = [
58
+ 'primary',
59
+ 'success',
60
+ 'warning',
61
+ 'danger',
62
+ 'text',
63
+ 'accent',
64
+ 'disabled',
65
+ ];
66
+
67
+ }
68
+ ```
@@ -0,0 +1,32 @@
1
+ ---
2
+ order: 3
3
+ ---
4
+
5
+ # Flush empty button
6
+
7
+
8
+ ```hbs template
9
+ <EuiFlexGroup
10
+ @responsive={{false}}
11
+ @gutterSize="s"
12
+ @alignItems="center"
13
+ >
14
+ <EuiFlexItem @grow={{false}}>
15
+ <EuiButtonEmpty @flush="left">
16
+ Flush left
17
+ </EuiButtonEmpty>
18
+ </EuiFlexItem>
19
+
20
+ <EuiFlexItem @grow={{false}}>
21
+ <EuiButtonEmpty @flush="right">
22
+ Flush right
23
+ </EuiButtonEmpty>
24
+ </EuiFlexItem>
25
+
26
+ <EuiFlexItem @grow={{false}}>
27
+ <EuiButtonEmpty @flush="both">
28
+ Flush both
29
+ </EuiButtonEmpty>
30
+ </EuiFlexItem>
31
+ </EuiFlexGroup>
32
+ ```
@@ -0,0 +1,213 @@
1
+ ---
2
+ order: 4
3
+ ---
4
+
5
+ # Buttons with icons
6
+
7
+
8
+ ```hbs template
9
+ <div>
10
+
11
+ <EuiFlexGroup
12
+ @responsive={{false}}
13
+ @wrap={{true}}
14
+ @gutterSize="s"
15
+ @alignItems="center"
16
+ >
17
+ <EuiFlexItem @grow={{false}}>
18
+ <EuiButton @iconType="heart">
19
+ Primary
20
+ </EuiButton>
21
+ </EuiFlexItem>
22
+
23
+ <EuiFlexItem @grow={{false}}>
24
+ <EuiButton
25
+ @fill={{true}}
26
+ @iconType="lensApp"
27
+ >
28
+ Filled
29
+ </EuiButton>
30
+ </EuiFlexItem>
31
+
32
+ <EuiFlexItem @grow={{false}}>
33
+ <EuiButton @iconType="heart" @size="s">
34
+ Small
35
+ </EuiButton>
36
+ </EuiFlexItem>
37
+
38
+ <EuiFlexItem @grow={{false}}>
39
+ <EuiButton @iconType="lensApp" @size="s" @fill={{true}}>
40
+ Small and filled
41
+ </EuiButton>
42
+ </EuiFlexItem>
43
+
44
+ <EuiFlexItem @grow={{true}}>
45
+ <EuiButton fullWidth @iconType="lensApp">
46
+ Full width
47
+ </EuiButton>
48
+ </EuiFlexItem>
49
+ </EuiFlexGroup>
50
+
51
+ <EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
52
+ <EuiFlexItem @grow={{false}}>
53
+ <EuiButtonEmpty @iconType="lensApp">
54
+ Empty button
55
+ </EuiButtonEmpty>
56
+ </EuiFlexItem>
57
+
58
+ <EuiFlexItem @grow={{false}}>
59
+ <EuiButtonEmpty @iconType="lensApp" @size="s">
60
+ Small empty
61
+ </EuiButtonEmpty>
62
+ </EuiFlexItem>
63
+
64
+ <EuiFlexItem @grow={{false}}>
65
+ <EuiButtonEmpty @iconType="lensApp" @size="xs">
66
+ Extra small empty
67
+ </EuiButtonEmpty>
68
+ </EuiFlexItem>
69
+ </EuiFlexGroup>
70
+
71
+ <EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
72
+ <EuiFlexItem @grow={{false}}>
73
+ <EuiButton @iconSide="right" @iconType="arrowDown">
74
+ Icon right
75
+ </EuiButton>
76
+ </EuiFlexItem>
77
+
78
+ <EuiFlexItem @grow={{false}}>
79
+ <EuiButton
80
+ @iconSide="right"
81
+ @fill={{true}}
82
+ @iconType="arrowDown"
83
+ >
84
+ Filled
85
+ </EuiButton>
86
+ </EuiFlexItem>
87
+
88
+ <EuiFlexItem @grow={{false}}>
89
+ <EuiButton
90
+ @iconSide="right"
91
+ @iconType="arrowDown"
92
+ @size="s"
93
+ >
94
+ Small
95
+ </EuiButton>
96
+ </EuiFlexItem>
97
+
98
+ <EuiFlexItem @grow={{false}}>
99
+ <EuiButton
100
+ @iconSide="right"
101
+ @iconType="arrowDown"
102
+ @size="s"
103
+ @fill={{true}}
104
+ >
105
+ Small and filled
106
+ </EuiButton>
107
+ </EuiFlexItem>
108
+
109
+ <EuiFlexItem @grow={{true}}>
110
+ <EuiButton
111
+ fullWidth
112
+ @iconSide="right"
113
+ @iconType="arrowDown"
114
+ >
115
+ Full width
116
+ </EuiButton>
117
+ </EuiFlexItem>
118
+ </EuiFlexGroup>
119
+
120
+ <EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
121
+ <EuiFlexItem @grow={{false}}>
122
+ <EuiButtonEmpty
123
+ @iconSide="right"
124
+ @iconType="arrowDown"
125
+ >
126
+ Icon right
127
+ </EuiButtonEmpty>
128
+ </EuiFlexItem>
129
+
130
+ <EuiFlexItem @grow={{false}}>
131
+ <EuiButtonEmpty
132
+ @iconSide="right"
133
+ @iconType="arrowDown"
134
+ @size="s"
135
+ >
136
+ Small empty
137
+ </EuiButtonEmpty>
138
+ </EuiFlexItem>
139
+
140
+ <EuiFlexItem @grow={{false}}>
141
+ <EuiButtonEmpty
142
+ @iconSide="right"
143
+ @iconType="arrowDown"
144
+ @size="xs"
145
+ >
146
+ Extra small empty
147
+ </EuiButtonEmpty>
148
+ </EuiFlexItem>
149
+ </EuiFlexGroup>
150
+
151
+ <EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
152
+ <EuiFlexItem @grow={{false}}>
153
+ <EuiButton @iconType="heart" @isDisabled={{true}}>
154
+ Disabled
155
+ </EuiButton>
156
+ </EuiFlexItem>
157
+
158
+ <EuiFlexItem @grow={{false}}>
159
+ <EuiButton @fill={{true}} @iconType="lensApp" @isDisabled={{true}}>
160
+ Filled
161
+ </EuiButton>
162
+ </EuiFlexItem>
163
+
164
+ <EuiFlexItem @grow={{false}}>
165
+ <EuiButton @iconType="heart" @size="s" @isDisabled={{true}}>
166
+ Small
167
+ </EuiButton>
168
+ </EuiFlexItem>
169
+
170
+ <EuiFlexItem @grow={{false}}>
171
+ <EuiButton
172
+ @iconType="lensApp"
173
+ @size="s"
174
+ @fill={{true}}
175
+ @isDisabled={{true}}
176
+ >
177
+ Small and filled
178
+ </EuiButton>
179
+ </EuiFlexItem>
180
+
181
+ <EuiFlexItem @grow={{true}}>
182
+ <EuiButton fullWidth @iconType="lensApp" @isDisabled={{true}}>
183
+ Full width
184
+ </EuiButton>
185
+ </EuiFlexItem>
186
+ </EuiFlexGroup>
187
+
188
+ <EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
189
+ <EuiFlexItem @grow={{false}}>
190
+ <EuiButtonEmpty
191
+ @isDisabled={{true}}
192
+ @color="text"
193
+ @iconType="dashboardApp"
194
+ >
195
+ Disabled app icon
196
+ </EuiButtonEmpty>
197
+ </EuiFlexItem>
198
+
199
+ <EuiFlexItem @grow={{false}}>
200
+ <EuiButtonEmpty
201
+ @isDisabled={{true}}
202
+ @color="text"
203
+ @iconType="arrowDown"
204
+ @iconSide="right"
205
+ @size="xs"
206
+ >
207
+ Disabled icon right
208
+ </EuiButtonEmpty>
209
+ </EuiFlexItem>
210
+ </EuiFlexGroup>
211
+
212
+ </div>
213
+ ```