@ember-eui/core 5.0.3 → 5.2.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 (173) 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-context-menu-item/index.hbs +60 -0
  4. package/addon/components/eui-context-menu-item/index.ts +12 -0
  5. package/addon/components/eui-context-menu-panel/index.hbs +5 -0
  6. package/addon/components/eui-header-links/index.hbs +1 -1
  7. package/addon/components/eui-input-popover/index.hbs +37 -31
  8. package/addon/components/eui-popover/index.hbs +61 -102
  9. package/addon/helpers/merge.ts +5 -0
  10. package/addon/utils/css-mappings/eui-avatar.ts +1 -0
  11. package/addon/utils/css-mappings/eui-context-menu-item.ts +26 -0
  12. package/addon/utils/css-mappings/eui-header-links.ts +1 -1
  13. package/addon/utils/css-mappings/index.ts +98 -96
  14. package/app/components/eui-context-menu-item/index.js +1 -0
  15. package/app/components/eui-context-menu-panel/index.js +1 -0
  16. package/app/helpers/merge.js +1 -0
  17. package/docs/display/notification-event/demo/demo2.md +3 -10
  18. package/docs/layout/{accordion.md → accordion/demo/d01-simple-and-unstyle.md} +18 -22
  19. package/docs/layout/accordion/demo/d02-arrow-display.md +34 -0
  20. package/docs/layout/{accordion-demo/demo2.md → accordion/demo/d03-multiple-accordions.md} +6 -5
  21. package/docs/layout/{accordion-demo/demo3.md → accordion/demo/d04-extra-actions.md} +2 -2
  22. package/docs/layout/{accordion-demo/demo4.md → accordion/demo/d05-opened-on-initial-render.md} +2 -2
  23. package/docs/layout/{accordion-demo/demo5.md → accordion/demo/d06-controlling-toggled-state.md} +3 -2
  24. package/docs/layout/{accordion-demo/demo6.md → accordion/demo/d07-loading-state.md} +2 -1
  25. package/docs/layout/accordion/demo/d08-when-content-changes-dynamically.md +71 -0
  26. package/docs/layout/{accordion-demo/demo8.md → accordion/demo/d09-interactive-content-in-the-trigger.md} +4 -4
  27. package/docs/layout/{accordion-demo/demo9.md → accordion/demo/d10-styled-for-forms.md} +44 -44
  28. package/docs/layout/accordion/index.md +23 -0
  29. package/docs/layout/{bottom-bar-demo/demo1.md → bottom-bar/demo/d01-basic.md} +0 -2
  30. package/docs/layout/{bottom-bar-demo/demo2.md → bottom-bar/demo/d02-positions.md} +0 -0
  31. package/docs/layout/{bottom-bar-demo/demo3.md → bottom-bar/demo/d03-displacement.md} +1 -0
  32. package/docs/layout/bottom-bar/index.md +18 -0
  33. package/docs/layout/flex/demo/d01-flex-group-is-for-a-single-row-layout.md +19 -0
  34. package/docs/layout/flex/demo/d02-flex-items-are-also-flex.md +18 -0
  35. package/docs/layout/flex/demo/d03-spans-instead-of-divs.md +19 -0
  36. package/docs/layout/flex/demo/d04-panels-grow-to-fill-flex-items.md +32 -0
  37. package/docs/layout/flex/demo/d05-turn-off-item-streching.md +12 -0
  38. package/docs/layout/flex/demo/d06-proportional-widths-of-items.md +32 -0
  39. package/docs/layout/flex/demo/d07-justify-and-align.md +11 -0
  40. package/docs/layout/flex/demo/d08-allowing-flex-items-to-wrap.md +43 -0
  41. package/docs/layout/flex/demo/d09-change-direction.md +13 -0
  42. package/docs/layout/flex/demo/d10-flex-grids-are-for-repeatable-items.md +33 -0
  43. package/docs/layout/flex/demo/d11-flex-grids-can-change-direction.md +33 -0
  44. package/docs/layout/flex/demo/d12-flex-grids-and-flex-groups-can-nest.md +30 -0
  45. package/docs/layout/flex/demo/d13-gutter-sizing.md +61 -0
  46. package/docs/layout/flex/demo/d14-responsive-layouts.md +29 -0
  47. package/docs/layout/flex/index.md +18 -0
  48. package/docs/layout/{flyout-demo/demo1.md → flyout/demo/d01-basic.md} +12 -16
  49. package/docs/layout/flyout/demo/d02-more-complicated-flyout.md +195 -0
  50. package/docs/layout/{flyout-demo/demo3.md → flyout/demo/d03-sizing.md} +5 -17
  51. package/docs/layout/{flyout-demo/demo4.md → flyout/demo/d04-adjusting-padding.md} +29 -36
  52. package/docs/layout/{flyout-demo/demo5.md → flyout/demo/d05-adding-a-banner.md} +6 -6
  53. package/docs/layout/{flyout-demo/demo6.md → flyout/demo/d06-without-ownfocus.md} +11 -14
  54. package/docs/layout/{flyout-demo/demo7.md → flyout/demo/d07-push-versus-overlay.md} +17 -3
  55. package/docs/layout/flyout/demo/d08-understanding-max-width.md +9 -0
  56. package/docs/layout/flyout/index.md +7 -0
  57. package/docs/layout/{header-demo/demo1.md → header/demo/d01-header.md} +138 -120
  58. package/docs/layout/header/demo/d02-sections.md +9 -0
  59. package/docs/layout/{header-demo/demo2.md → header/demo/d03-header-links.md} +2 -2
  60. package/docs/layout/{header-demo/demo3.md → header/demo/d04-fixed-header.md} +1 -1
  61. package/docs/layout/{header-demo/demo4.md → header/demo/d05-dark-theme.md} +3 -3
  62. package/docs/layout/{header-demo/demo5.md → header/demo/d06-portal-content-in-the-header.md} +20 -9
  63. package/docs/layout/{header-demo/demo6.md → header/demo/d07-header-notifications.md} +1 -1
  64. package/docs/layout/{header-demo/demo7.md → header/demo/d08-stacked-headers.md} +47 -26
  65. package/docs/layout/header/demo/d09-the-elastic-navigation-pattern.md +9 -0
  66. package/docs/layout/header/index.md +7 -0
  67. package/docs/layout/horizontal-rule/demo/d01-size.md +14 -0
  68. package/docs/layout/horizontal-rule/demo/d02-margins.md +38 -0
  69. package/docs/layout/horizontal-rule/horizontal-rule.md +7 -0
  70. package/docs/layout/modal/demo/d01-modal.md +73 -0
  71. package/docs/layout/modal/demo/d02-forms-in-a-modal.md +107 -0
  72. package/docs/layout/modal/demo/d03-confirm-modal.md +86 -0
  73. package/docs/layout/modal/demo/d04-loading-and-disabling-confirm-button.md +80 -0
  74. package/docs/layout/{modal-demo/demo5.md → modal/demo/d05-widths.md} +20 -39
  75. package/docs/layout/modal/index.md +13 -0
  76. package/docs/layout/page-header/demo/{demo1.md → d01-basic.md} +0 -2
  77. package/docs/layout/page-header/demo/{demo2.md → d02-tabs-in-the-page-header.md} +1 -2
  78. package/docs/layout/page-header/demo/{demo3.md → d03-tabs-in-the-page-header.md} +2 -3
  79. package/docs/layout/page-header/demo/{demo4.md → d04-breadcrumbs-in-the-page-header.md} +3 -2
  80. package/docs/layout/page-header/demo/{demo5.md → d05-breadcrumbs-in-the-page-header.md} +1 -28
  81. package/docs/layout/page-header/demo/{demo6.md → d06-customizing-the-page-header.md} +0 -0
  82. package/docs/layout/page-header/index.md +1 -2
  83. package/docs/layout/{panel-demo/demo1.md → panel/demo/d01-padding.md} +0 -0
  84. package/docs/layout/{panel-demo/demo2.md → panel/demo/d02-shadow-and-border.md} +2 -2
  85. package/docs/layout/{panel-demo/demo3.md → panel/demo/d03-colors-and-corners.md} +0 -0
  86. package/docs/layout/{panel-demo/demo4.md → panel/demo/d04-growing-height.md} +0 -0
  87. package/docs/layout/{panel-demo/demo5.md → panel/demo/d05-split-panels.md} +1 -1
  88. package/docs/layout/{panel.md → panel/index.md} +4 -0
  89. package/docs/layout/{popover-demo/demo1.md → popover/demo/d01-basic.md} +6 -4
  90. package/docs/layout/{popover-demo/demo2.md → popover/demo/d02-anchor-position.md} +0 -0
  91. package/docs/layout/popover/demo/d03-popover-titles-and-footers.md +133 -0
  92. package/docs/layout/{popover-demo/demo5.md → popover/demo/d04-popover-padding-sizes.md} +56 -31
  93. package/docs/layout/{popover-demo/demo6.md → popover/demo/d05-panel-class-name.md} +3 -3
  94. package/docs/layout/{popover-demo/demo7.md → popover/demo/d06-popover-with-block-level-display.md} +2 -3
  95. package/docs/layout/{popover-demo/demo3.md → popover/demo/d07-popover-on-a-fixed-element.md} +3 -11
  96. package/docs/layout/{popover-demo/demo8.md → popover/demo/d08-constraining-a-popover-inside-a-container.md} +0 -0
  97. package/docs/layout/{popover-demo/demo9.md → popover/demo/d09-popover-attached-to-input-element.md} +14 -12
  98. package/docs/layout/popover/demo/d10-setting-an-initial-focus.md +61 -0
  99. package/docs/layout/{popover-demo/demo10.md → popover/demo/d11-removing-the-focus-trap.md} +1 -1
  100. package/docs/layout/popover/demo/d12-popover-using-and-html-element-as-the-anchor.md +9 -0
  101. package/docs/layout/popover/index.md +7 -0
  102. package/docs/layout/resizable-container/demo/d01-horizontal-resizing.md +10 -0
  103. package/docs/layout/resizable-container/demo/d02-resizable-panel-options.md +10 -0
  104. package/docs/layout/resizable-container/demo/d03-horizontal-resizing-with-controlled-widths.md +10 -0
  105. package/docs/layout/resizable-container/demo/d04-vertical-resizing.md +10 -0
  106. package/docs/layout/resizable-container/demo/d05-collapsible-resizable-panels.md +10 -0
  107. package/docs/layout/resizable-container/demo/d06-responsive-layout.md +10 -0
  108. package/docs/layout/resizable-container/demo/d07-collapsible-panels-options.md +10 -0
  109. package/docs/layout/resizable-container/demo/d08-collapsible-panels-with-external-control.md +10 -0
  110. package/docs/layout/resizable-container/index.md +15 -0
  111. package/docs/layout/spacer/demo/d01-basic.md +44 -0
  112. package/docs/layout/spacer/index.md +7 -0
  113. package/docs/navigation/{breadcrumbs-demo/demo1.md → breadcrumbs/demo/d01-basic.md} +9 -6
  114. package/docs/navigation/{breadcrumbs-demo/demo2.md → breadcrumbs/demo/d02-limit-the-number-of-breadcrumbs.md} +0 -0
  115. package/docs/navigation/{breadcrumbs-demo/demo3.md → breadcrumbs/demo/d03-truncate-each-breadcrumb.md} +0 -0
  116. package/docs/navigation/{breadcrumbs-demo/demo4.md → breadcrumbs/demo/d04-truncate-each-breadcrumb-on-each-object.md} +0 -0
  117. package/docs/navigation/{breadcrumbs-demo/demo5.md → breadcrumbs/demo/d05-responsive.md} +14 -0
  118. package/docs/navigation/{breadcrumbs-demo/demo6.md → breadcrumbs/demo/d06-color-for-emphasis.md} +12 -23
  119. package/docs/navigation/breadcrumbs/index.md +7 -0
  120. package/docs/navigation/button/demo/d01-basic.md +85 -0
  121. package/docs/navigation/button/demo/d02-empty-button.md +68 -0
  122. package/docs/navigation/button/demo/d03-flush-empty-button.md +32 -0
  123. package/docs/navigation/button/demo/d04-buttons-with-icons.md +213 -0
  124. package/docs/navigation/button/demo/d05-icon-buttons.md +139 -0
  125. package/docs/navigation/button/demo/d06-buttons-as-links.md +51 -0
  126. package/docs/navigation/button/demo/d07-loading-state.md +38 -0
  127. package/docs/navigation/button/demo/d08-split-buttons.md +43 -0
  128. package/docs/navigation/button/demo/d09-toggle-buttons.md +10 -0
  129. package/docs/navigation/button/demo/d10-button-groups.md +10 -0
  130. package/docs/navigation/button/demo/d11-ghost.md +10 -0
  131. package/docs/navigation/button/index.md +13 -0
  132. package/docs/{layout/page-template/demo/demo1.md → templates/page-template/demo/d01-a-full-page-with-everything.md} +1 -24
  133. package/docs/{layout/page-template/demo/demo2.md → templates/page-template/demo/d02-restricting-page-width.md} +0 -0
  134. package/docs/{layout/page-template/demo/demo3.md → templates/page-template/demo/d03-showing-a-bottom-bar.md} +0 -0
  135. package/docs/{layout/page-template/demo/demo4.md → templates/page-template/demo/d04-centered-body.md} +1 -1
  136. package/docs/{layout/page-template/demo/demo5.md → templates/page-template/demo/d05-centered-content.md} +1 -1
  137. package/docs/{layout/page-template/demo/demo6.md → templates/page-template/demo/d06-a-simple-page-with-tabs.md} +0 -0
  138. package/docs/{layout/page-template/demo/demo7.md → templates/page-template/demo/d07-full-height-layout.md} +0 -0
  139. package/docs/{layout/page-template/demo/demo8.md → templates/page-template/demo/d08-simple-layout-with-centered-body.md} +0 -0
  140. package/docs/{layout/page-template/demo/demo9.md → templates/page-template/demo/d09-simple-layout-with-centered-content.md} +0 -0
  141. package/docs/{layout/page-template/demo/demo10.md → templates/page-template/demo/d10-a-simple-page-layout-with-custom-content.md} +0 -0
  142. package/docs/templates/page-template/index.md +37 -0
  143. package/docs/templates/sitewide-search/demo/d01-basic-setup.md +10 -0
  144. package/docs/templates/sitewide-search/demo/d02-options.md +10 -0
  145. package/docs/templates/sitewide-search/index.md +9 -0
  146. package/docs/templates/super-date-picker/demo/d01-update-button.md +10 -0
  147. package/docs/templates/super-date-picker/demo/d02-quick-select-panels.md +10 -0
  148. package/docs/templates/super-date-picker/demo/d03-sizing.md +10 -0
  149. package/docs/templates/super-date-picker/demo/d04-auto-refresh.md +11 -0
  150. package/docs/templates/super-date-picker/demo/d05-elastic-pattern-with-kql.md +10 -0
  151. package/docs/templates/super-date-picker/index.md +12 -0
  152. package/package.json +3 -3
  153. package/docs/layout/accordion-demo/demo1.md +0 -33
  154. package/docs/layout/accordion-demo/demo7.md +0 -66
  155. package/docs/layout/bottom-bar.md +0 -1
  156. package/docs/layout/flex-demo/demo1.md +0 -358
  157. package/docs/layout/flex.md +0 -1
  158. package/docs/layout/flyout-demo/demo2.md +0 -87
  159. package/docs/layout/flyout.md +0 -1
  160. package/docs/layout/header.md +0 -1
  161. package/docs/layout/horizontal-rule-demo/demo1.md +0 -70
  162. package/docs/layout/horizontal-rule.md +0 -1
  163. package/docs/layout/modal-demo/demo1.md +0 -97
  164. package/docs/layout/modal-demo/demo2.md +0 -126
  165. package/docs/layout/modal-demo/demo3.md +0 -55
  166. package/docs/layout/modal-demo/demo4.md +0 -65
  167. package/docs/layout/modal.md +0 -1
  168. package/docs/layout/page-template/index.md +0 -11
  169. package/docs/layout/popover-demo/demo4.md +0 -118
  170. package/docs/layout/popover.md +0 -1
  171. package/docs/navigation/breadcrumbs.md +0 -1
  172. package/docs/navigation/button-demo/demo1.md +0 -413
  173. package/docs/navigation/button.md +0 -1
@@ -1,137 +1,139 @@
1
1
  import EuiAccordion from './eui-accordion';
2
- import EuiIcon from './eui-icon';
3
- import EuiModal from './eui-modal';
4
- import EuiLoadingSpinner from './eui-loading-spinner';
5
- import EuiImage from './eui-image';
6
- import EuiSpacer from './eui-spacer';
7
- import EuiTabs from './eui-tabs';
8
- import EuiTitle from './eui-title';
9
- import EuiTextAlign from './eui-text-align';
10
- import EuiTextColor from './eui-text-color';
11
- import EuiText from './eui-text';
12
- import EuiPanel from './eui-panel';
13
- import EuiPageContent from './eui-page-content';
14
2
  import EuiAvatar from './eui-avatar';
15
- import EuiCallOut from './eui-call-out';
16
- import EuiFlexGroup from './eui-flex-group';
17
- import EuiFlexItem from './eui-flex-item';
18
- import EuiFlexGrid from './eui-flex-grid';
19
- import EuiNotificationBadge from './eui-notification-badge';
20
- import EuiBadgeGroup from './eui-badge-group';
21
3
  import EuiBadge from './eui-badge';
22
- import EuiCard from './eui-card';
4
+ import EuiBadgeGroup from './eui-badge-group';
5
+ import EuiBetaBadge from './eui-beta-badge';
6
+ import EuiBottomBar from './eui-bottom-bar';
7
+ import EuiButton from './eui-button';
23
8
  import EuiButtonEmpty from './eui-button-empty';
9
+ import EuiButtonIcon from './eui-button-icon';
10
+ import EuiCallOut from './eui-call-out';
11
+ import EuiCard from './eui-card';
24
12
  import EuiCardSelect from './eui-card-select';
13
+ import EuiCodeBlock from './eui-code-block';
14
+ import EuiCollapsibleNavGroup from './eui-collapsible-nav-group';
15
+ import EuiCommentEvent from './eui-comment-event';
16
+ import EuiCommentTimelineIcon from './eui-comment-timeline-icon';
17
+ import EuiContextMenuItem from './eui-context-menu-item';
18
+ import EuiDescribedFormGroup from './eui-described-form-group';
19
+ import EuiDescriptionList from './eui-description-list';
20
+ import EuiEmptyPrompt from './eui-empty-prompt';
21
+ import EuiFilePicker from './eui-file-picker';
22
+ import EuiFlexGrid from './eui-flex-grid';
23
+ import EuiFlexGroup from './eui-flex-group';
24
+ import EuiFlexItem from './eui-flex-item';
25
+ import EuiFlyout from './eui-flyout';
26
+ import EuiFormRow from './eui-form-row';
27
+ import EuiGlobalToastList from './eui-global-toast-list';
28
+ import EuiHeader from './eui-header';
29
+ import EuiHeaderLinks from './eui-header-links';
25
30
  import EuiHeaderSection from './eui-header-section';
26
31
  import EuiHeaderSectionItem from './eui-header-section-item';
27
- import EuiHeader from './eui-header';
28
32
  import EuiHealth from './eui-health';
29
- import EuiButtonIcon from './eui-button-icon';
30
- import EuiButton from './eui-button';
31
33
  import EuiHorizontalRule from './eui-horizontal-rule';
32
- import EuiCommentTimelineIcon from './eui-comment-timeline-icon';
33
- import EuiCommentEvent from './eui-comment-event';
34
- import EuiFlyout from './eui-flyout';
35
- import EuiCollapsibleNavGroup from './eui-collapsible-nav-group';
36
- import EuiStepNumber from './eui-step-number';
37
- import EuiProgress from './eui-progress';
38
- import EuiProgressData from './eui-progress-data';
39
- import EuiFormRow from './eui-form-row';
40
- import EuiDescribedFormGroup from './eui-described-form-group';
34
+ import EuiIcon from './eui-icon';
35
+ import EuiImage from './eui-image';
36
+ import EuiLink from './eui-link';
41
37
  import EuiListGroup from './eui-list-group';
42
38
  import EuiListGroupItem from './eui-list-group-item';
43
- import EuiTextArea from './eui-text-area';
44
- import EuiFilePicker from './eui-file-picker';
45
- import EuiBottomBar from './eui-bottom-bar';
39
+ import EuiLoadingSpinner from './eui-loading-spinner';
40
+ import EuiModal from './eui-modal';
41
+ import EuiNotificationBadge from './eui-notification-badge';
46
42
  import EuiPage from './eui-page';
43
+ import EuiPageBody from './eui-page-body';
44
+ import EuiPageContent from './eui-page-content';
45
+ import EuiPageContentBody from './eui-page-content-body';
46
+ import EuiPageHeader from './eui-page-header';
47
+ import EuiPageSideBar from './eui-page-side-bar';
48
+ import EuiPanel from './eui-panel';
47
49
  import EuiPopover from './eui-popover';
48
- import EuiPopoverTitle from './eui-popover-title';
49
50
  import EuiPopoverFooter from './eui-popover-footer';
51
+ import EuiPopoverTitle from './eui-popover-title';
52
+ import EuiProgress from './eui-progress';
53
+ import EuiProgressData from './eui-progress-data';
50
54
  import EuiRangeHighlight from './eui-range-highlight';
51
55
  import EuiRangeInput from './eui-range-input';
52
56
  import EuiRangeLevels from './eui-range-levels';
53
- import EuiToolTip from './eui-tool-tip';
54
- import EuiToast from './eui-toast';
55
- import EuiGlobalToastList from './eui-global-toast-list';
56
- import EuiCodeBlock from './eui-code-block';
57
+ import EuiSpacer from './eui-spacer';
57
58
  import EuiStat from './eui-stat';
58
- import EuiHeaderLinks from './eui-header-links';
59
- import EuiLink from './eui-link';
60
- import EuiBetaBadge from './eui-beta-badge';
61
- import EuiDescriptionList from './eui-description-list';
62
- import EuiPageSideBar from './eui-page-side-bar';
63
- import EuiPageBody from './eui-page-body';
64
- import EuiPageHeader from './eui-page-header';
65
- import EuiPageContentBody from './eui-page-content-body';
66
- import EuiEmptyPrompt from './eui-empty-prompt';
59
+ import EuiStepNumber from './eui-step-number';
60
+ import EuiTabs from './eui-tabs';
61
+ import EuiText from './eui-text';
62
+ import EuiTextAlign from './eui-text-align';
63
+ import EuiTextArea from './eui-text-area';
64
+ import EuiTextColor from './eui-text-color';
65
+ import EuiTitle from './eui-title';
66
+ import EuiToast from './eui-toast';
67
+ import EuiToolTip from './eui-tool-tip';
67
68
 
68
69
  const mapping: Mapping = {
69
- EuiDescriptionList,
70
- EuiBetaBadge,
71
- EuiLink,
72
- EuiStat,
73
- EuiCodeBlock,
74
70
  EuiAccordion,
75
- EuiIcon,
76
- EuiModal,
77
- EuiImage,
78
- EuiLoadingSpinner,
79
- EuiSpacer,
80
- EuiTabs,
81
- EuiTitle,
82
- EuiTextAlign,
83
- EuiTextColor,
84
- EuiText,
85
- EuiPanel,
86
- EuiPageContent,
87
71
  EuiAvatar,
88
- EuiCallOut,
89
- EuiFlexGroup,
90
- EuiFlexItem,
91
- EuiFlexGrid,
92
- EuiNotificationBadge,
93
- EuiBadgeGroup,
94
72
  EuiBadge,
95
- EuiCard,
73
+ EuiBadgeGroup,
74
+ EuiBetaBadge,
75
+ EuiBottomBar,
76
+ EuiButton,
96
77
  EuiButtonEmpty,
78
+ EuiButtonIcon,
79
+ EuiCallOut,
80
+ EuiCard,
97
81
  EuiCardSelect,
82
+ EuiCodeBlock,
83
+ EuiCollapsibleNavGroup,
84
+ EuiCommentEvent,
85
+ EuiCommentTimelineIcon,
86
+ EuiContextMenuItem,
87
+ EuiDescribedFormGroup,
88
+ EuiDescriptionList,
89
+ EuiEmptyPrompt,
90
+ EuiFilePicker,
91
+ EuiFlexGrid,
92
+ EuiFlexGroup,
93
+ EuiFlexItem,
94
+ EuiFlyout,
95
+ EuiFormRow,
96
+ EuiGlobalToastList,
97
+ EuiHeader,
98
+ EuiHeaderLinks,
98
99
  EuiHeaderSection,
99
100
  EuiHeaderSectionItem,
100
- EuiHeader,
101
101
  EuiHealth,
102
- EuiButton,
103
- EuiButtonIcon,
104
102
  EuiHorizontalRule,
105
- EuiCommentTimelineIcon,
106
- EuiCommentEvent,
107
- EuiFlyout,
108
- EuiCollapsibleNavGroup,
109
- EuiStepNumber,
110
- EuiProgress,
111
- EuiProgressData,
112
- EuiFormRow,
113
- EuiDescribedFormGroup,
103
+ EuiIcon,
104
+ EuiImage,
105
+ EuiLink,
114
106
  EuiListGroup,
115
107
  EuiListGroupItem,
116
- EuiTextArea,
117
- EuiFilePicker,
118
- EuiBottomBar,
108
+ EuiLoadingSpinner,
109
+ EuiModal,
110
+ EuiNotificationBadge,
119
111
  EuiPage,
112
+ EuiPageBody,
113
+ EuiPageContent,
114
+ EuiPageContentBody,
115
+ EuiPageHeader,
116
+ EuiPageSideBar,
117
+ EuiPanel,
120
118
  EuiPopover,
121
- EuiPopoverTitle,
122
119
  EuiPopoverFooter,
120
+ EuiPopoverTitle,
121
+ EuiProgress,
122
+ EuiProgressData,
123
123
  EuiRangeHighlight,
124
124
  EuiRangeInput,
125
125
  EuiRangeLevels,
126
- EuiToolTip,
126
+ EuiSpacer,
127
+ EuiStat,
128
+ EuiStepNumber,
129
+ EuiTabs,
130
+ EuiText,
131
+ EuiTextAlign,
132
+ EuiTextArea,
133
+ EuiTextColor,
134
+ EuiTitle,
127
135
  EuiToast,
128
- EuiGlobalToastList,
129
- EuiHeaderLinks,
130
- EuiPageSideBar,
131
- EuiPageBody,
132
- EuiPageHeader,
133
- EuiPageContentBody,
134
- EuiEmptyPrompt
136
+ EuiToolTip,
135
137
  };
136
138
 
137
139
  export default mapping;
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/components/eui-context-menu-item';
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/components/eui-context-menu-panel';
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/helpers/merge';
@@ -35,18 +35,11 @@ order: 2
35
35
  @accordionHideText='hide'
36
36
  >
37
37
  <:contextMenu>
38
- <!-- ToDo Missing EuiContextMenu component -->
39
- <button
40
- class="euiContextMenuItem"
41
- type="button"
38
+ <EuiContextMenuItem
42
39
  {{on 'click' this.onRead}}
43
40
  >
44
- <span class="euiContextMenu__itemLayout">
45
- <span class="euiContextMenuItem__text">
46
- Mark as {{if this.isRead 'unread' 'read'}}
47
- </span>
48
- </span>
49
- </button>
41
+ Mark as {{if this.isRead 'unread' 'read'}}
42
+ </EuiContextMenuItem>
50
43
  </:contextMenu>
51
44
 
52
45
  <:primaryAction>
@@ -1,31 +1,15 @@
1
- <EuiPageHeader @pageTitle="Accordion"/>
2
- <EuiCallOut>
3
- <:body>
4
- <EuiText>
5
- Take care when including flex group content within accordions<br />
6
- <strong>EuiFlexGroup's</strong>
7
- negative margins can sometimes create scrollbars within
8
- <strong>EuiAccordion</strong>
9
- because of the overflow tricks used to hide content. If you run into this
10
- issue make sure your paddingSize prop is large enough to account for the
11
- <EuiCode>gutterSize</EuiCode>
12
- of any nested flex groups.
13
- </EuiText>
14
- </:body>
15
- </EuiCallOut>
1
+ ---
2
+ order: 1
3
+ ---
16
4
 
17
- <EuiSpacer />
18
- <EuiTitle>
19
- Simple and unstyled
20
- </EuiTitle>
21
- <EuiSpacer />
5
+ # Simple and unstyled
22
6
 
23
7
  <EuiText>
24
8
  <strong>EuiAccordion</strong>
25
9
  has been purposely designed with minimal styles, allowing you to visually
26
10
  enhance it as needed (see the accordion form example). The only styling
27
11
  enforced by EUI is the caret icon, which indicates to users that the item can
28
- be opened.<br /><br />
12
+ be opened.
29
13
  A
30
14
  <EuiCode>buttonContent</EuiCode>
31
15
  prop defines the content of the clickable area. On click it will expose the
@@ -36,4 +20,16 @@
36
20
  <EuiCode>buttonClassName</EuiCode>
37
21
  (for the clickable area).
38
22
  </EuiText>
39
- <EuiSpacer />
23
+
24
+ ```hbs template
25
+ <EuiAccordion>
26
+ <:buttonContent>
27
+ Click me to toggle
28
+ </:buttonContent>
29
+ <:content>
30
+ <EuiPanel @color="subdued" @hasShadow={{false}}>
31
+ Any content inside of <strong>EuiAccordion</strong> will appear here.
32
+ </EuiPanel>
33
+ </:content>
34
+ </EuiAccordion>
35
+ ```
@@ -0,0 +1,34 @@
1
+ ---
2
+ order: 2
3
+ ---
4
+
5
+ # Arrow display
6
+
7
+ <EuiText>
8
+ The arrow helps indicate the current state of the accordion (open or not) and points to the main triggering button text.
9
+ If you must hide or change the side in which the arrow appears, use <EuiCode>arrowDisplay: 'right'</EuiCode> or <EuiCode>'none'</EuiCode>
10
+ </EuiText>
11
+
12
+ ```hbs template
13
+ <EuiAccordion @arrowDisplay='right'>
14
+ <:buttonContent>
15
+ This accordion has the arrow on the right
16
+ </:buttonContent>
17
+ <:content>
18
+ <EuiPanel @color="subdued" @hasShadow={{false}}>
19
+ Any content inside of <strong>EuiAccordion</strong> will appear here.
20
+ </EuiPanel>
21
+ </:content>
22
+ </EuiAccordion>
23
+ <EuiSpacer />
24
+ <EuiAccordion @arrowDisplay='none'>
25
+ <:buttonContent>
26
+ This one has it removed entirely
27
+ </:buttonContent>
28
+ <:content>
29
+ <EuiPanel @color="subdued" @hasShadow={{false}}>
30
+ Any content inside of <strong>EuiAccordion</strong> will appear here.
31
+ </EuiPanel>
32
+ </:content>
33
+ </EuiAccordion>
34
+ ```
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 2
2
+ order: 3
3
3
  ---
4
4
 
5
5
  # Multiple accordions
@@ -23,7 +23,7 @@ order: 2
23
23
  An accordion with padding applied through props
24
24
  </:buttonContent>
25
25
  <:content>
26
- <EuiText size='s'>
26
+ <EuiText @size='s'>
27
27
  <p>The content inside can be of any height.</p>
28
28
  <p>The content inside can be of any height.</p>
29
29
  <p>The content inside can be of any height.</p>
@@ -37,7 +37,7 @@ order: 2
37
37
  because of eui-textTruncate
38
38
  </:buttonContent>
39
39
  <:content>
40
- <EuiText size='s'>
40
+ <EuiText @size='s'>
41
41
  <p>The content inside can be of any height.</p>
42
42
  <p>The content inside can be of any height.</p>
43
43
  <p>The content inside can be of any height.</p>
@@ -53,13 +53,14 @@ order: 2
53
53
  A third accordion with nested accordion
54
54
  </:buttonContent>
55
55
  <:content>
56
- <EuiText size='s'>
56
+ <EuiText @size='s'>
57
57
  <p>
58
58
  This content area will grow to accommodate when the accordion below
59
59
  opens
60
60
  </p>
61
61
  </EuiText>
62
- <EuiAccordion @paddingSize='m'>
62
+ <EuiSpacer/>
63
+ <EuiAccordion>
63
64
  <:buttonContent>
64
65
  A fourth nested accordion
65
66
  </:buttonContent>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 3
2
+ order: 4
3
3
  ---
4
4
 
5
5
  # Extra actions
@@ -9,7 +9,7 @@ order: 3
9
9
  </EuiText>
10
10
 
11
11
  ```hbs template
12
- <EuiAccordion @paddingSize='m' @extraAction={{true}}>
12
+ <EuiAccordion @paddingSize='l' @extraAction={{true}}>
13
13
  <:buttonContent>
14
14
  Click to open
15
15
  </:buttonContent>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 4
2
+ order: 5
3
3
  ---
4
4
 
5
5
  # Opened on initial render
@@ -11,7 +11,7 @@ order: 4
11
11
  </EuiText>
12
12
 
13
13
  ```hbs template
14
- <EuiAccordion @paddingSize='m' @initialIsOpen={{true}}>
14
+ <EuiAccordion @initialIsOpen={{true}}>
15
15
  <:buttonContent>
16
16
  I am opened by default. Click me to toggle close / open
17
17
  </:buttonContent>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 5
2
+ order: 6
3
3
  ---
4
4
 
5
5
  # Controlling toggled state
@@ -8,7 +8,7 @@ order: 5
8
8
  Typically, the open and closed state of
9
9
  <strong>EuiAccordion</strong>
10
10
  is maintained by the component's internal state. Though, you can manually
11
- control it with:
11
+ control it.
12
12
  <ul>
13
13
  <li><EuiCode>forceState</EuiCode>: Accepts either
14
14
  <EuiCode>'open'</EuiCode>
@@ -21,6 +21,7 @@ order: 5
21
21
  </EuiText>
22
22
 
23
23
  ```hbs template
24
+ <TodoText @text="missing EuiButtonGroup component"/>
24
25
  <EuiFlexGroup>
25
26
  <EuiFlexItem>
26
27
  <EuiButton {{on 'click' (fn (mut this.accordionState) 'open')}}>
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 6
2
+ order: 7
3
3
  ---
4
4
 
5
5
  # Loading state
@@ -21,6 +21,7 @@ order: 6
21
21
  </EuiText> -->
22
22
 
23
23
  ```hbs template
24
+ <TodoText @text="missing EuiButtonGroup component"/>
24
25
  <EuiFlexGroup>
25
26
  <EuiFlexItem>
26
27
  <EuiText>
@@ -0,0 +1,71 @@
1
+ ---
2
+ order: 8
3
+ ---
4
+
5
+ # When content changes dynamically
6
+
7
+ <EuiText>
8
+ If an accordion’s content changes height while the accordion is open, it will
9
+ resize dynamically.
10
+ </EuiText>
11
+
12
+ ```hbs template
13
+ <EuiAccordion @paddingSize='s' @initialIsOpen={{true}}>
14
+ <:buttonContent>
15
+ Click me to toggle close / open
16
+ </:buttonContent>
17
+ <:content>
18
+
19
+ <EuiPanel @color='subdued'>
20
+ <EuiText @size="s">
21
+ <p>
22
+ <EuiButton
23
+ @size='s'
24
+ @iconType='plusInCircleFilled'
25
+ {{on 'click' (fn this.incrementDecreaseRows 'add')}}
26
+ >
27
+ Increase height to
28
+ {{add this.counter 1}}
29
+ items
30
+ </EuiButton>
31
+ <EuiButton
32
+ @size='s'
33
+ @iconType='minusInCircleFilled'
34
+ {{on 'click' (fn this.incrementDecreaseRows 'sub')}}
35
+ @isDisabled={{eq this.counter 1}}
36
+ >
37
+ Decrease height to
38
+ {{sub this.counter 1}}
39
+ items
40
+ </EuiButton>
41
+ </p>
42
+ <ul>
43
+ {{#each (range 0 this.counter) as |row|}}
44
+ <li> Row {{add row 1}}</li>
45
+ {{/each}}
46
+ </ul>
47
+ </EuiText>
48
+ </EuiPanel>
49
+
50
+ </:content>
51
+ </EuiAccordion>
52
+ ```
53
+
54
+ ```js component
55
+ import Component from '@glimmer/component';
56
+ import { tracked } from '@glimmer/tracking';
57
+ import { action } from '@ember/object';
58
+
59
+ export default class AccordionDemo8Component extends Component {
60
+ @tracked counter = 1;
61
+
62
+ @action
63
+ incrementDecreaseRows(actionType) {
64
+ if (actionType == 'add') {
65
+ this.counter++;
66
+ } else {
67
+ this.counter--;
68
+ }
69
+ }
70
+ }
71
+ ```
@@ -1,5 +1,5 @@
1
1
  ---
2
- order: 8
2
+ order: 9
3
3
  ---
4
4
 
5
5
  # Interactive content in the trigger
@@ -32,12 +32,12 @@ order: 8
32
32
  <EuiSpacer />
33
33
  <EuiAccordion @paddingSize='s' @buttonElement="div">
34
34
  <:buttonContent>
35
- <EuiText
35
+ <EuiLink
36
36
  onClick={{this.onClick}}
37
- href='#/layout/accordion#interactive-content-in-the-trigger'
37
+ @href='#docfy-demo-docs-layout-accordion-d09-interactive-content-in-the-trigger'
38
38
  >
39
39
  This is a nested link
40
- </EuiText>
40
+ </EuiLink>
41
41
  </:buttonContent>
42
42
  <:content>
43
43
  <EuiPanel @color='subdued'>