@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.
- package/addon/components/eui-accordion/index.hbs +1 -1
- package/addon/components/eui-breadcrumbs/index.hbs +9 -1
- package/addon/components/eui-header-links/index.hbs +1 -1
- package/addon/components/eui-input-popover/index.hbs +37 -31
- package/addon/components/eui-page-header-content/index.hbs +10 -12
- package/addon/components/eui-popover/index.hbs +61 -102
- package/addon/components/eui-step-horizontal/index.hbs +11 -6
- package/addon/helpers/merge.ts +5 -0
- package/addon/utils/css-mappings/eui-avatar.ts +1 -0
- package/addon/utils/css-mappings/eui-header-links.ts +1 -1
- package/app/helpers/merge.js +1 -0
- package/docs/layout/{accordion.md → accordion/demo/d01-simple-and-unstyle.md} +18 -22
- package/docs/layout/accordion/demo/d02-arrow-display.md +34 -0
- package/docs/layout/{accordion-demo/demo2.md → accordion/demo/d03-multiple-accordions.md} +6 -5
- package/docs/layout/{accordion-demo/demo3.md → accordion/demo/d04-extra-actions.md} +2 -2
- package/docs/layout/{accordion-demo/demo4.md → accordion/demo/d05-opened-on-initial-render.md} +2 -2
- package/docs/layout/{accordion-demo/demo5.md → accordion/demo/d06-controlling-toggled-state.md} +3 -2
- package/docs/layout/{accordion-demo/demo6.md → accordion/demo/d07-loading-state.md} +2 -1
- package/docs/layout/accordion/demo/d08-when-content-changes-dynamically.md +71 -0
- package/docs/layout/{accordion-demo/demo8.md → accordion/demo/d09-interactive-content-in-the-trigger.md} +4 -4
- package/docs/layout/{accordion-demo/demo9.md → accordion/demo/d10-styled-for-forms.md} +44 -44
- package/docs/layout/accordion/index.md +23 -0
- package/docs/layout/{bottom-bar-demo/demo1.md → bottom-bar/demo/d01-basic.md} +0 -2
- package/docs/layout/{bottom-bar-demo/demo2.md → bottom-bar/demo/d02-positions.md} +0 -0
- package/docs/layout/{bottom-bar-demo/demo3.md → bottom-bar/demo/d03-displacement.md} +1 -0
- package/docs/layout/bottom-bar/index.md +18 -0
- package/docs/layout/flex/demo/d01-flex-group-is-for-a-single-row-layout.md +19 -0
- package/docs/layout/flex/demo/d02-flex-items-are-also-flex.md +18 -0
- package/docs/layout/flex/demo/d03-spans-instead-of-divs.md +19 -0
- package/docs/layout/flex/demo/d04-panels-grow-to-fill-flex-items.md +32 -0
- package/docs/layout/flex/demo/d05-turn-off-item-streching.md +12 -0
- package/docs/layout/flex/demo/d06-proportional-widths-of-items.md +32 -0
- package/docs/layout/flex/demo/d07-justify-and-align.md +11 -0
- package/docs/layout/flex/demo/d08-allowing-flex-items-to-wrap.md +43 -0
- package/docs/layout/flex/demo/d09-change-direction.md +13 -0
- package/docs/layout/flex/demo/d10-flex-grids-are-for-repeatable-items.md +33 -0
- package/docs/layout/flex/demo/d11-flex-grids-can-change-direction.md +33 -0
- package/docs/layout/flex/demo/d12-flex-grids-and-flex-groups-can-nest.md +30 -0
- package/docs/layout/flex/demo/d13-gutter-sizing.md +61 -0
- package/docs/layout/flex/demo/d14-responsive-layouts.md +29 -0
- package/docs/layout/flex/index.md +18 -0
- package/docs/layout/{flyout-demo/demo1.md → flyout/demo/d01-basic.md} +12 -16
- package/docs/layout/flyout/demo/d02-more-complicated-flyout.md +195 -0
- package/docs/layout/{flyout-demo/demo3.md → flyout/demo/d03-sizing.md} +5 -17
- package/docs/layout/{flyout-demo/demo4.md → flyout/demo/d04-adjusting-padding.md} +29 -36
- package/docs/layout/{flyout-demo/demo5.md → flyout/demo/d05-adding-a-banner.md} +6 -6
- package/docs/layout/{flyout-demo/demo6.md → flyout/demo/d06-without-ownfocus.md} +11 -14
- package/docs/layout/{flyout-demo/demo7.md → flyout/demo/d07-push-versus-overlay.md} +17 -3
- package/docs/layout/flyout/demo/d08-understanding-max-width.md +9 -0
- package/docs/layout/flyout/index.md +7 -0
- package/docs/layout/{header-demo/demo1.md → header/demo/d01-header.md} +138 -120
- package/docs/layout/header/demo/d02-sections.md +9 -0
- package/docs/layout/{header-demo/demo2.md → header/demo/d03-header-links.md} +2 -2
- package/docs/layout/{header-demo/demo3.md → header/demo/d04-fixed-header.md} +1 -1
- package/docs/layout/{header-demo/demo4.md → header/demo/d05-dark-theme.md} +3 -3
- package/docs/layout/{header-demo/demo5.md → header/demo/d06-portal-content-in-the-header.md} +20 -9
- package/docs/layout/{header-demo/demo6.md → header/demo/d07-header-notifications.md} +1 -1
- package/docs/layout/{header-demo/demo7.md → header/demo/d08-stacked-headers.md} +47 -26
- package/docs/layout/header/demo/d09-the-elastic-navigation-pattern.md +9 -0
- package/docs/layout/header/index.md +7 -0
- package/docs/layout/horizontal-rule/demo/d01-size.md +14 -0
- package/docs/layout/horizontal-rule/demo/d02-margins.md +38 -0
- package/docs/layout/horizontal-rule/horizontal-rule.md +7 -0
- package/docs/layout/modal/demo/d01-modal.md +73 -0
- package/docs/layout/modal/demo/d02-forms-in-a-modal.md +107 -0
- package/docs/layout/modal/demo/d03-confirm-modal.md +86 -0
- package/docs/layout/modal/demo/d04-loading-and-disabling-confirm-button.md +80 -0
- package/docs/layout/{modal-demo/demo5.md → modal/demo/d05-widths.md} +20 -39
- package/docs/layout/modal/index.md +13 -0
- package/docs/layout/page-header/demo/{demo1.md → d01-basic.md} +0 -2
- package/docs/layout/page-header/demo/{demo2.md → d02-tabs-in-the-page-header.md} +1 -2
- package/docs/layout/page-header/demo/{demo3.md → d03-tabs-in-the-page-header.md} +2 -3
- package/docs/layout/page-header/demo/{demo4.md → d04-breadcrumbs-in-the-page-header.md} +3 -2
- package/docs/layout/page-header/demo/{demo5.md → d05-breadcrumbs-in-the-page-header.md} +1 -28
- package/docs/layout/page-header/demo/{demo6.md → d06-customizing-the-page-header.md} +0 -0
- package/docs/layout/page-header/index.md +1 -2
- package/docs/layout/{panel-demo/demo1.md → panel/demo/d01-padding.md} +0 -0
- package/docs/layout/{panel-demo/demo2.md → panel/demo/d02-shadow-and-border.md} +2 -2
- package/docs/layout/{panel-demo/demo3.md → panel/demo/d03-colors-and-corners.md} +0 -0
- package/docs/layout/{panel-demo/demo4.md → panel/demo/d04-growing-height.md} +0 -0
- package/docs/layout/{panel-demo/demo5.md → panel/demo/d05-split-panels.md} +1 -1
- package/docs/layout/{panel.md → panel/index.md} +4 -0
- package/docs/layout/{popover-demo/demo1.md → popover/demo/d01-basic.md} +6 -4
- package/docs/layout/{popover-demo/demo2.md → popover/demo/d02-anchor-position.md} +0 -0
- package/docs/layout/popover/demo/d03-popover-titles-and-footers.md +133 -0
- package/docs/layout/{popover-demo/demo5.md → popover/demo/d04-popover-padding-sizes.md} +56 -31
- package/docs/layout/{popover-demo/demo6.md → popover/demo/d05-panel-class-name.md} +3 -3
- package/docs/layout/{popover-demo/demo7.md → popover/demo/d06-popover-with-block-level-display.md} +2 -3
- package/docs/layout/{popover-demo/demo3.md → popover/demo/d07-popover-on-a-fixed-element.md} +3 -11
- package/docs/layout/{popover-demo/demo8.md → popover/demo/d08-constraining-a-popover-inside-a-container.md} +0 -0
- package/docs/layout/{popover-demo/demo9.md → popover/demo/d09-popover-attached-to-input-element.md} +14 -12
- package/docs/layout/popover/demo/d10-setting-an-initial-focus.md +61 -0
- package/docs/layout/{popover-demo/demo10.md → popover/demo/d11-removing-the-focus-trap.md} +1 -1
- package/docs/layout/popover/demo/d12-popover-using-and-html-element-as-the-anchor.md +9 -0
- package/docs/layout/popover/index.md +7 -0
- package/docs/layout/resizable-container/demo/d01-horizontal-resizing.md +10 -0
- package/docs/layout/resizable-container/demo/d02-resizable-panel-options.md +10 -0
- package/docs/layout/resizable-container/demo/d03-horizontal-resizing-with-controlled-widths.md +10 -0
- package/docs/layout/resizable-container/demo/d04-vertical-resizing.md +10 -0
- package/docs/layout/resizable-container/demo/d05-collapsible-resizable-panels.md +10 -0
- package/docs/layout/resizable-container/demo/d06-responsive-layout.md +10 -0
- package/docs/layout/resizable-container/demo/d07-collapsible-panels-options.md +10 -0
- package/docs/layout/resizable-container/demo/d08-collapsible-panels-with-external-control.md +10 -0
- package/docs/layout/resizable-container/index.md +15 -0
- package/docs/layout/spacer/demo/d01-basic.md +44 -0
- package/docs/layout/spacer/index.md +7 -0
- package/docs/navigation/{breadcrumbs-demo/demo1.md → breadcrumbs/demo/d01-basic.md} +9 -6
- package/docs/navigation/{breadcrumbs-demo/demo2.md → breadcrumbs/demo/d02-limit-the-number-of-breadcrumbs.md} +0 -0
- package/docs/navigation/{breadcrumbs-demo/demo3.md → breadcrumbs/demo/d03-truncate-each-breadcrumb.md} +0 -0
- package/docs/navigation/{breadcrumbs-demo/demo4.md → breadcrumbs/demo/d04-truncate-each-breadcrumb-on-each-object.md} +0 -0
- package/docs/navigation/{breadcrumbs-demo/demo5.md → breadcrumbs/demo/d05-responsive.md} +14 -0
- package/docs/navigation/{breadcrumbs-demo/demo6.md → breadcrumbs/demo/d06-color-for-emphasis.md} +12 -23
- package/docs/navigation/breadcrumbs/index.md +7 -0
- package/docs/navigation/button/demo/d01-basic.md +85 -0
- package/docs/navigation/button/demo/d02-empty-button.md +68 -0
- package/docs/navigation/button/demo/d03-flush-empty-button.md +32 -0
- package/docs/navigation/button/demo/d04-buttons-with-icons.md +213 -0
- package/docs/navigation/button/demo/d05-icon-buttons.md +139 -0
- package/docs/navigation/button/demo/d06-buttons-as-links.md +51 -0
- package/docs/navigation/button/demo/d07-loading-state.md +38 -0
- package/docs/navigation/button/demo/d08-split-buttons.md +43 -0
- package/docs/navigation/button/demo/d09-toggle-buttons.md +10 -0
- package/docs/navigation/button/demo/d10-button-groups.md +10 -0
- package/docs/navigation/button/demo/d11-ghost.md +10 -0
- package/docs/navigation/button/index.md +13 -0
- package/docs/navigation/steps-demo/demo3.md +0 -1
- package/docs/{layout/page-template/demo/demo1.md → templates/page-template/demo/d01-a-full-page-with-everything.md} +1 -24
- package/docs/{layout/page-template/demo/demo2.md → templates/page-template/demo/d02-restricting-page-width.md} +0 -0
- package/docs/{layout/page-template/demo/demo3.md → templates/page-template/demo/d03-showing-a-bottom-bar.md} +0 -0
- package/docs/{layout/page-template/demo/demo4.md → templates/page-template/demo/d04-centered-body.md} +1 -1
- package/docs/{layout/page-template/demo/demo5.md → templates/page-template/demo/d05-centered-content.md} +1 -1
- package/docs/{layout/page-template/demo/demo6.md → templates/page-template/demo/d06-a-simple-page-with-tabs.md} +0 -0
- package/docs/{layout/page-template/demo/demo7.md → templates/page-template/demo/d07-full-height-layout.md} +0 -0
- package/docs/{layout/page-template/demo/demo8.md → templates/page-template/demo/d08-simple-layout-with-centered-body.md} +0 -0
- package/docs/{layout/page-template/demo/demo9.md → templates/page-template/demo/d09-simple-layout-with-centered-content.md} +0 -0
- package/docs/{layout/page-template/demo/demo10.md → templates/page-template/demo/d10-a-simple-page-layout-with-custom-content.md} +0 -0
- package/docs/templates/page-template/index.md +37 -0
- package/docs/templates/sitewide-search/demo/d01-basic-setup.md +10 -0
- package/docs/templates/sitewide-search/demo/d02-options.md +10 -0
- package/docs/templates/sitewide-search/index.md +9 -0
- package/docs/templates/super-date-picker/demo/d01-update-button.md +10 -0
- package/docs/templates/super-date-picker/demo/d02-quick-select-panels.md +10 -0
- package/docs/templates/super-date-picker/demo/d03-sizing.md +10 -0
- package/docs/templates/super-date-picker/demo/d04-auto-refresh.md +11 -0
- package/docs/templates/super-date-picker/demo/d05-elastic-pattern-with-kql.md +10 -0
- package/docs/templates/super-date-picker/index.md +12 -0
- package/package.json +3 -3
- package/docs/layout/accordion-demo/demo1.md +0 -33
- package/docs/layout/accordion-demo/demo7.md +0 -66
- package/docs/layout/bottom-bar.md +0 -1
- package/docs/layout/flex-demo/demo1.md +0 -358
- package/docs/layout/flex.md +0 -1
- package/docs/layout/flyout-demo/demo2.md +0 -87
- package/docs/layout/flyout.md +0 -1
- package/docs/layout/header.md +0 -1
- package/docs/layout/horizontal-rule-demo/demo1.md +0 -70
- package/docs/layout/horizontal-rule.md +0 -1
- package/docs/layout/modal-demo/demo1.md +0 -97
- package/docs/layout/modal-demo/demo2.md +0 -126
- package/docs/layout/modal-demo/demo3.md +0 -55
- package/docs/layout/modal-demo/demo4.md +0 -65
- package/docs/layout/modal.md +0 -1
- package/docs/layout/page-template/index.md +0 -11
- package/docs/layout/popover-demo/demo4.md +0 -118
- package/docs/layout/popover.md +0 -1
- package/docs/navigation/breadcrumbs.md +0 -1
- package/docs/navigation/button-demo/demo1.md +0 -413
- package/docs/navigation/button.md +0 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 5
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Icon buttons
|
|
6
|
+
|
|
7
|
+
```hbs template
|
|
8
|
+
<EuiFlexGroup @responsive={{false}} @gutterSize="s" @alignItems="center">
|
|
9
|
+
{{#each this.colors as |color|}}
|
|
10
|
+
<EuiFlexItem key={{color}} @grow={{false}}>
|
|
11
|
+
<EuiButtonIcon
|
|
12
|
+
@color={{color}}
|
|
13
|
+
@iconType="help"
|
|
14
|
+
aria-label="Help"
|
|
15
|
+
/>
|
|
16
|
+
</EuiFlexItem>
|
|
17
|
+
{{/each}}
|
|
18
|
+
</EuiFlexGroup>
|
|
19
|
+
<EuiSpacer @size="m" />
|
|
20
|
+
<EuiTitle @size="xxs">
|
|
21
|
+
<h3>
|
|
22
|
+
Display (<EuiCode>empty</EuiCode>, <EuiCode>base</EuiCode>, <EuiCode>fill</EuiCode>)
|
|
23
|
+
</h3>
|
|
24
|
+
</EuiTitle>
|
|
25
|
+
<EuiSpacer @size="s" />
|
|
26
|
+
<EuiFlexGroup @responsive={{false}} @gutterSize="s" @alignItems="center">
|
|
27
|
+
<EuiFlexItem @grow={{false}}>
|
|
28
|
+
<EuiButtonIcon @iconType="arrowRight" aria-label="Next" />
|
|
29
|
+
</EuiFlexItem>
|
|
30
|
+
<EuiFlexItem @grow={{false}}>
|
|
31
|
+
<EuiButtonIcon @display="base" @iconType="arrowRight" aria-label="Next" />
|
|
32
|
+
</EuiFlexItem>
|
|
33
|
+
<EuiFlexItem @grow={{false}}>
|
|
34
|
+
<EuiButtonIcon @display="fill" @iconType="arrowRight" aria-label="Next" />
|
|
35
|
+
</EuiFlexItem>
|
|
36
|
+
</EuiFlexGroup>
|
|
37
|
+
<EuiSpacer @size="m" />
|
|
38
|
+
<EuiTitle @size="xxs">
|
|
39
|
+
<h3>Disabled </h3>
|
|
40
|
+
</EuiTitle>
|
|
41
|
+
<EuiSpacer @size="s" />
|
|
42
|
+
<EuiFlexGroup @responsive={{false}} @gutterSize="s" @alignItems="center">
|
|
43
|
+
<EuiFlexItem @grow={{false}}>
|
|
44
|
+
<EuiButtonIcon @iconType="arrowRight" @isDisabled={{true}} aria-label="Next" />
|
|
45
|
+
</EuiFlexItem>
|
|
46
|
+
<EuiFlexItem @grow={{false}}>
|
|
47
|
+
<EuiButtonIcon
|
|
48
|
+
@display="base"
|
|
49
|
+
@iconType="arrowRight"
|
|
50
|
+
@isDisabled={{true}}
|
|
51
|
+
aria-label="Next"
|
|
52
|
+
/>
|
|
53
|
+
</EuiFlexItem>
|
|
54
|
+
<EuiFlexItem @grow={{false}}>
|
|
55
|
+
<EuiButtonIcon
|
|
56
|
+
@iconType="arrowRight"
|
|
57
|
+
@display="fill"
|
|
58
|
+
@isDisabled={{true}}
|
|
59
|
+
aria-label="Next"
|
|
60
|
+
/>
|
|
61
|
+
</EuiFlexItem>
|
|
62
|
+
</EuiFlexGroup>
|
|
63
|
+
<EuiSpacer @size="m" />
|
|
64
|
+
<EuiTitle @size="xxs">
|
|
65
|
+
<h3>
|
|
66
|
+
Size (<EuiCode>xs</EuiCode>, <EuiCode>s</EuiCode>, <EuiCode>m</EuiCode>)
|
|
67
|
+
</h3>
|
|
68
|
+
</EuiTitle>
|
|
69
|
+
<EuiSpacer @size="s" />
|
|
70
|
+
<EuiFlexGroup @responsive={{false}} @gutterSize="s" @alignItems="center">
|
|
71
|
+
<EuiFlexItem @grow={{false}}>
|
|
72
|
+
<EuiButtonIcon @display="base" @iconType="arrowRight" aria-label="Next" />
|
|
73
|
+
</EuiFlexItem>
|
|
74
|
+
<EuiFlexItem @grow={{false}}>
|
|
75
|
+
<EuiButtonIcon
|
|
76
|
+
@display="base"
|
|
77
|
+
@iconType="arrowRight"
|
|
78
|
+
@size="s"
|
|
79
|
+
aria-label="Next"
|
|
80
|
+
/>
|
|
81
|
+
</EuiFlexItem>
|
|
82
|
+
<EuiFlexItem @grow={{false}}>
|
|
83
|
+
<EuiButtonIcon
|
|
84
|
+
@display="base"
|
|
85
|
+
@iconType="arrowRight"
|
|
86
|
+
@iconSize="l"
|
|
87
|
+
@size="m"
|
|
88
|
+
aria-label="Next"
|
|
89
|
+
/>
|
|
90
|
+
</EuiFlexItem>
|
|
91
|
+
</EuiFlexGroup>
|
|
92
|
+
<EuiSpacer @size="m" />
|
|
93
|
+
<EuiTitle @size="xxs">
|
|
94
|
+
<h3>All icons types inherit button color</h3>
|
|
95
|
+
</EuiTitle>
|
|
96
|
+
<EuiSpacer @size="s" />
|
|
97
|
+
<EuiFlexGroup @responsive={{false}} @gutterSize="s" @alignItems="center">
|
|
98
|
+
<EuiFlexItem @grow={{false}}>
|
|
99
|
+
<EuiButtonIcon @iconType="heart" aria-label="Heart" @color="accent" />
|
|
100
|
+
</EuiFlexItem>
|
|
101
|
+
<EuiFlexItem @grow={{false}}>
|
|
102
|
+
<EuiButtonIcon
|
|
103
|
+
@iconType="dashboardApp"
|
|
104
|
+
aria-label="Dashboard"
|
|
105
|
+
@color="success"
|
|
106
|
+
/>
|
|
107
|
+
</EuiFlexItem>
|
|
108
|
+
<EuiFlexItem @grow={{false}}>
|
|
109
|
+
<EuiButtonIcon
|
|
110
|
+
@display="base"
|
|
111
|
+
@iconType="trash"
|
|
112
|
+
aria-label="Delete"
|
|
113
|
+
@color="danger"
|
|
114
|
+
/>
|
|
115
|
+
</EuiFlexItem>
|
|
116
|
+
<EuiFlexItem @grow={{false}}>
|
|
117
|
+
<EuiButtonIcon @display="base" @iconType="lensApp" aria-label="Lens" />
|
|
118
|
+
</EuiFlexItem>
|
|
119
|
+
</EuiFlexGroup>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
```js component
|
|
123
|
+
import Component from '@glimmer/component';
|
|
124
|
+
import { action } from '@ember/object';
|
|
125
|
+
import { tracked } from '@glimmer/tracking';
|
|
126
|
+
|
|
127
|
+
export default class DemoComponent extends Component {
|
|
128
|
+
|
|
129
|
+
colors = [
|
|
130
|
+
'primary',
|
|
131
|
+
'success',
|
|
132
|
+
'warning',
|
|
133
|
+
'danger',
|
|
134
|
+
'text',
|
|
135
|
+
'accent'
|
|
136
|
+
];
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 6
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Buttons as links
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
```hbs template
|
|
9
|
+
<EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
|
|
10
|
+
<EuiFlexItem @grow={{false}}>
|
|
11
|
+
<EuiButton @href="#/navigation/button">Link to elastic.co</EuiButton>
|
|
12
|
+
</EuiFlexItem>
|
|
13
|
+
|
|
14
|
+
<EuiFlexItem @grow={{false}}>
|
|
15
|
+
<EuiButtonEmpty @href="#/navigation/button">
|
|
16
|
+
Link to elastic.co
|
|
17
|
+
</EuiButtonEmpty>
|
|
18
|
+
</EuiFlexItem>
|
|
19
|
+
|
|
20
|
+
<EuiFlexItem @grow={{false}}>
|
|
21
|
+
<EuiButtonIcon
|
|
22
|
+
@href="#/navigation/button"
|
|
23
|
+
@iconType="link"
|
|
24
|
+
aria-label="This is a link"
|
|
25
|
+
/>
|
|
26
|
+
</EuiFlexItem>
|
|
27
|
+
</EuiFlexGroup>
|
|
28
|
+
|
|
29
|
+
<EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
|
|
30
|
+
<EuiFlexItem @grow={{false}}>
|
|
31
|
+
<EuiButton @href="#/navigation/button" @isDisabled={{true}}>
|
|
32
|
+
Disabled link
|
|
33
|
+
</EuiButton>
|
|
34
|
+
</EuiFlexItem>
|
|
35
|
+
|
|
36
|
+
<EuiFlexItem @grow={{false}}>
|
|
37
|
+
<EuiButtonEmpty @href="#/navigation/button" @isDisabled={{true}}>
|
|
38
|
+
Disabled empty link
|
|
39
|
+
</EuiButtonEmpty>
|
|
40
|
+
</EuiFlexItem>
|
|
41
|
+
|
|
42
|
+
<EuiFlexItem @grow={{false}}>
|
|
43
|
+
<EuiButtonIcon
|
|
44
|
+
@href="#/navigation/button"
|
|
45
|
+
@iconType="link"
|
|
46
|
+
aria-label="This is a link"
|
|
47
|
+
@isDisabled={{true}}
|
|
48
|
+
/>
|
|
49
|
+
</EuiFlexItem>
|
|
50
|
+
</EuiFlexGroup>
|
|
51
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 7
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Loading state
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
```hbs template
|
|
9
|
+
<EuiFlexGroup @responsive={{false}} @wrap={{true}} @gutterSize="s" @alignItems="center">
|
|
10
|
+
<EuiFlexItem @grow={{false}}>
|
|
11
|
+
<EuiButton @isLoading={true}>Loading…</EuiButton>
|
|
12
|
+
</EuiFlexItem>
|
|
13
|
+
|
|
14
|
+
<EuiFlexItem @grow={{false}}>
|
|
15
|
+
<EuiButton @fill={{true}} @size="s" @isLoading={true}>
|
|
16
|
+
Loading…
|
|
17
|
+
</EuiButton>
|
|
18
|
+
</EuiFlexItem>
|
|
19
|
+
|
|
20
|
+
<EuiFlexItem @grow={{false}}>
|
|
21
|
+
<EuiButton @fill={{true}} @isLoading={true} @iconType="check" @iconSide="right">
|
|
22
|
+
Loading…
|
|
23
|
+
</EuiButton>
|
|
24
|
+
</EuiFlexItem>
|
|
25
|
+
|
|
26
|
+
<EuiFlexItem @grow={{false}}>
|
|
27
|
+
<EuiButtonEmpty @isLoading={{true}}>
|
|
28
|
+
Loading…
|
|
29
|
+
</EuiButtonEmpty>
|
|
30
|
+
</EuiFlexItem>
|
|
31
|
+
|
|
32
|
+
<EuiFlexItem @grow={{false}}>
|
|
33
|
+
<EuiButtonEmpty @size="xs" @isLoading={{true}} @iconSide="right">
|
|
34
|
+
Loading…
|
|
35
|
+
</EuiButtonEmpty>
|
|
36
|
+
</EuiFlexItem>
|
|
37
|
+
</EuiFlexGroup>
|
|
38
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 8
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Split buttons
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
```hbs template
|
|
9
|
+
<TodoText/>
|
|
10
|
+
<!-- <EuiFlexGroup @responsive={{false}} @gutterSize="xs" @alignItems="center">
|
|
11
|
+
<EuiFlexItem @grow={{false}}>
|
|
12
|
+
<EuiButton @size="s" @iconType="calendar">
|
|
13
|
+
Last 15 min
|
|
14
|
+
</EuiButton>
|
|
15
|
+
</EuiFlexItem>
|
|
16
|
+
<EuiFlexItem @grow={{false}}>
|
|
17
|
+
|
|
18
|
+
<EuiPopover
|
|
19
|
+
@ownFocus={{true}}
|
|
20
|
+
@isOpen={{this.popover}}
|
|
21
|
+
@anchorPosition='downCenter'
|
|
22
|
+
@closePopover={{set this 'popover' false}}
|
|
23
|
+
>
|
|
24
|
+
<:button>
|
|
25
|
+
<EuiButton
|
|
26
|
+
@iconType='arrowDown'
|
|
27
|
+
@iconSide='right'
|
|
28
|
+
{{on 'click' (set this 'popover' true)}}
|
|
29
|
+
>
|
|
30
|
+
Show Popover
|
|
31
|
+
</EuiButton>
|
|
32
|
+
</:button>
|
|
33
|
+
<:content>
|
|
34
|
+
<EuiText @size="m" style="width: 300px;">
|
|
35
|
+
<p>
|
|
36
|
+
Popover content that’s wider than the default width
|
|
37
|
+
</p>
|
|
38
|
+
</EuiText>
|
|
39
|
+
</:content>
|
|
40
|
+
</EuiPopover>
|
|
41
|
+
</EuiFlexItem>
|
|
42
|
+
</EuiFlexGroup> -->
|
|
43
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Button
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiPageHeader @pageTitle="Button"/>
|
|
6
|
+
<EuiSpacer @size="l" />
|
|
7
|
+
|
|
8
|
+
<EuiText>
|
|
9
|
+
<p> EUI provides many types, colors and configurations of buttons. The one best suited for you context depends on placement, prominence, and state. For primary and secondary actions it is best to use the basic <strong>EuiButton</strong>. For tertiary or low prominence actions, use <strong>EuiButtonempty</strong>.</p>
|
|
10
|
+
<p>Be sure to read the full button usage guidelines.</p>
|
|
11
|
+
</EuiText>
|
|
12
|
+
|
|
13
|
+
<EuiHorizontalRule/>
|
|
@@ -2,31 +2,8 @@
|
|
|
2
2
|
order: 1
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# A full page with everything
|
|
6
6
|
|
|
7
|
-
<EuiText>
|
|
8
|
-
Page layouts are modular and fit together in a precise manner, though certain
|
|
9
|
-
parts can also be added or removed as needed. EUI provides both the indivdual
|
|
10
|
-
page components and an over-arching template for easily creating some
|
|
11
|
-
pre-defined layouts.
|
|
12
|
-
</EuiText>
|
|
13
|
-
<EuiSpacer />
|
|
14
|
-
<EuiCallOut
|
|
15
|
-
@title='The following examples showcase the both the template and custom built
|
|
16
|
-
usages of the page components.'
|
|
17
|
-
@iconType='document'
|
|
18
|
-
>
|
|
19
|
-
<:body>
|
|
20
|
-
You'll find the code for each in their own tab and if you go to full screen,
|
|
21
|
-
you can see how they would behave in a typical application layout.
|
|
22
|
-
</:body>
|
|
23
|
-
</EuiCallOut>
|
|
24
|
-
<EuiSpacer />
|
|
25
|
-
<EuiHorizontalRule />
|
|
26
|
-
<EuiTitle>
|
|
27
|
-
A full page with everything
|
|
28
|
-
</EuiTitle>
|
|
29
|
-
<EuiSpacer />
|
|
30
7
|
<EuiText>
|
|
31
8
|
EUI provides a family of components using the
|
|
32
9
|
<EuiCode>EuiPage</EuiCode>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Page template
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiPageHeader @pageTitle="Page template"/>
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>
|
|
9
|
+
Page layouts are modular and fit together in a precise manner, though certain
|
|
10
|
+
parts can also be added or removed as needed. EUI provides both the indivdual
|
|
11
|
+
page components and an over-arching template for easily creating some
|
|
12
|
+
pre-defined layouts.
|
|
13
|
+
</p>
|
|
14
|
+
</EuiText>
|
|
15
|
+
|
|
16
|
+
<!-- <EuiCallOut
|
|
17
|
+
@title='The following examples showcase the both the template and custom built usages of the page components.'
|
|
18
|
+
@iconType='document'
|
|
19
|
+
>
|
|
20
|
+
<:body>
|
|
21
|
+
You'll find the code for each in their own tab and if you go to full screen, you can see how they would behave in a typical application layout.
|
|
22
|
+
</:body>
|
|
23
|
+
</EuiCallOut>
|
|
24
|
+
<EuiSpacer />
|
|
25
|
+
|
|
26
|
+
<EuiCallOut
|
|
27
|
+
@color="danger"
|
|
28
|
+
@title='Do not nest multiple EuiPageTemplate components.'
|
|
29
|
+
@iconType='alert'
|
|
30
|
+
>
|
|
31
|
+
<:body>
|
|
32
|
+
The template is a very fragile component that will cause unexpected results if nested.
|
|
33
|
+
</:body>
|
|
34
|
+
</EuiCallOut>
|
|
35
|
+
<EuiSpacer /> -->
|
|
36
|
+
|
|
37
|
+
<EuiHorizontalRule />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@elastic/eui": "41.4.0",
|
|
56
56
|
"@ember/render-modifiers": "^2.0.4",
|
|
57
|
-
"@html-next/vertical-collection": "3.0.0
|
|
57
|
+
"@html-next/vertical-collection": "3.0.0",
|
|
58
58
|
"@types/lodash-es": "^4.17.4",
|
|
59
59
|
"@types/refractor": "^3.0.0",
|
|
60
60
|
"chroma-js": "^2.1.0",
|
|
@@ -182,5 +182,5 @@
|
|
|
182
182
|
"volta": {
|
|
183
183
|
"extends": "../../package.json"
|
|
184
184
|
},
|
|
185
|
-
"gitHead": "
|
|
185
|
+
"gitHead": "d8af7448f9a9283a6b2aeb246dbbf73687c56a0e"
|
|
186
186
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
order: 1
|
|
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. If you must hide or change the side in which the arrow appears, use <EuiCode>arrowDisplay: 'right'</EuiCode> or <EuiCode>'none'</EuiCode>
|
|
9
|
-
</EuiText>
|
|
10
|
-
|
|
11
|
-
```hbs template
|
|
12
|
-
<EuiAccordion @arrowDisplay='right'>
|
|
13
|
-
<:buttonContent>
|
|
14
|
-
This accordion has the arrow on the right
|
|
15
|
-
</:buttonContent>
|
|
16
|
-
<:content>
|
|
17
|
-
Any content inside of
|
|
18
|
-
<strong>EuiAccordion</strong>
|
|
19
|
-
will appear here.
|
|
20
|
-
</:content>
|
|
21
|
-
</EuiAccordion>
|
|
22
|
-
<EuiSpacer />
|
|
23
|
-
<EuiAccordion @arrowDisplay='none'>
|
|
24
|
-
<:buttonContent>
|
|
25
|
-
This one has it removed entirely
|
|
26
|
-
</:buttonContent>
|
|
27
|
-
<:content>
|
|
28
|
-
Any content inside of
|
|
29
|
-
<strong>EuiAccordion</strong>
|
|
30
|
-
will appear here.
|
|
31
|
-
</:content>
|
|
32
|
-
</EuiAccordion>
|
|
33
|
-
```
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
order: 7
|
|
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'>
|
|
14
|
-
<:buttonContent>
|
|
15
|
-
Click me to toggle close / open
|
|
16
|
-
</:buttonContent>
|
|
17
|
-
<:content>
|
|
18
|
-
<EuiButton
|
|
19
|
-
@size='s'
|
|
20
|
-
@iconType='plusInCircleFilled'
|
|
21
|
-
{{on 'click' (fn this.incrementDecreaseRows 'add')}}
|
|
22
|
-
>
|
|
23
|
-
Increase height to
|
|
24
|
-
{{add this.counter 1}}
|
|
25
|
-
items
|
|
26
|
-
</EuiButton>
|
|
27
|
-
<EuiButton
|
|
28
|
-
@size='s'
|
|
29
|
-
@iconType='minusInCircleFilled'
|
|
30
|
-
{{on 'click' (fn this.incrementDecreaseRows 'sub')}}
|
|
31
|
-
@isDisabled={{eq this.counter 1}}
|
|
32
|
-
>
|
|
33
|
-
Decrease height to
|
|
34
|
-
{{sub this.counter 1}}
|
|
35
|
-
items
|
|
36
|
-
</EuiButton>
|
|
37
|
-
<EuiSpacer />
|
|
38
|
-
<EuiPanel @color='subdued'>
|
|
39
|
-
<ul>
|
|
40
|
-
{{#each (range 0 this.counter) as |row|}}
|
|
41
|
-
<li> Row {{row}}</li>
|
|
42
|
-
{{/each}}
|
|
43
|
-
</ul>
|
|
44
|
-
</EuiPanel>
|
|
45
|
-
</:content>
|
|
46
|
-
</EuiAccordion>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
```js component
|
|
50
|
-
import Component from '@glimmer/component';
|
|
51
|
-
import { tracked } from '@glimmer/tracking';
|
|
52
|
-
import { action } from '@ember/object';
|
|
53
|
-
|
|
54
|
-
export default class AccordionDemo8Component extends Component {
|
|
55
|
-
@tracked counter = 1;
|
|
56
|
-
|
|
57
|
-
@action
|
|
58
|
-
incrementDecreaseRows(actionType) {
|
|
59
|
-
if (actionType == 'add') {
|
|
60
|
-
this.counter++;
|
|
61
|
-
} else {
|
|
62
|
-
this.counter--;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<EuiPageHeader @pageTitle="Bottom bar"/>
|