@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.
- package/addon/components/eui-accordion/index.hbs +1 -1
- package/addon/components/eui-breadcrumbs/index.hbs +9 -1
- package/addon/components/eui-context-menu-item/index.hbs +60 -0
- package/addon/components/eui-context-menu-item/index.ts +12 -0
- package/addon/components/eui-context-menu-panel/index.hbs +5 -0
- package/addon/components/eui-header-links/index.hbs +1 -1
- package/addon/components/eui-input-popover/index.hbs +37 -31
- package/addon/components/eui-popover/index.hbs +61 -102
- package/addon/helpers/merge.ts +5 -0
- package/addon/utils/css-mappings/eui-avatar.ts +1 -0
- package/addon/utils/css-mappings/eui-context-menu-item.ts +26 -0
- package/addon/utils/css-mappings/eui-header-links.ts +1 -1
- package/addon/utils/css-mappings/index.ts +98 -96
- package/app/components/eui-context-menu-item/index.js +1 -0
- package/app/components/eui-context-menu-panel/index.js +1 -0
- package/app/helpers/merge.js +1 -0
- package/docs/display/notification-event/demo/demo2.md +3 -10
- 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/{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
|
File without changes
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 3
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Popover titles and footers
|
|
6
|
+
<EuiText>
|
|
7
|
+
Popovers often need titling. Use the
|
|
8
|
+
<strong>EuiPopoverTitle</strong>
|
|
9
|
+
component nested somewhere inside the popover contents.
|
|
10
|
+
<br /><br />
|
|
11
|
+
You can also add a similarly styled
|
|
12
|
+
<strong>EuiPopoverFooter</strong>
|
|
13
|
+
for smaller captions or call to action buttons.
|
|
14
|
+
</EuiText>
|
|
15
|
+
|
|
16
|
+
```hbs template
|
|
17
|
+
|
|
18
|
+
<EuiFlexGroup @gutterSize="l">
|
|
19
|
+
<!-- example 1 -->
|
|
20
|
+
<EuiFlexItem @grow={{false}}>
|
|
21
|
+
<EuiPopover
|
|
22
|
+
@ownFocus={{true}}
|
|
23
|
+
@isOpen={{this.pop1}}
|
|
24
|
+
@closePopover={{set this 'pop1' false}}
|
|
25
|
+
>
|
|
26
|
+
<:button>
|
|
27
|
+
<EuiButton
|
|
28
|
+
@iconType='arrowDown'
|
|
29
|
+
@iconSide='right'
|
|
30
|
+
{{on 'click' (set this 'pop1' true)}}
|
|
31
|
+
>
|
|
32
|
+
With title
|
|
33
|
+
</EuiButton>
|
|
34
|
+
</:button>
|
|
35
|
+
<:content>
|
|
36
|
+
<EuiPopoverTitle>
|
|
37
|
+
Hello, I’m a popover title
|
|
38
|
+
</EuiPopoverTitle>
|
|
39
|
+
<div style='width: 300px;'>
|
|
40
|
+
<EuiText @size='s'>
|
|
41
|
+
<p>
|
|
42
|
+
Selfies migas stumptown hot chicken quinoa wolf green juice, mumblecore tattooed trust fund hammock truffaut taxidermy kogi.
|
|
43
|
+
</p>
|
|
44
|
+
</EuiText>
|
|
45
|
+
</div>
|
|
46
|
+
</:content>
|
|
47
|
+
</EuiPopover>
|
|
48
|
+
</EuiFlexItem>
|
|
49
|
+
|
|
50
|
+
<!-- example 2 -->
|
|
51
|
+
<EuiFlexItem @grow={{false}}>
|
|
52
|
+
<EuiPopover
|
|
53
|
+
@ownFocus={{true}}
|
|
54
|
+
@isOpen={{this.pop2}}
|
|
55
|
+
@anchorPosition='upCenter'
|
|
56
|
+
@closePopover={{set this 'pop2' false}}
|
|
57
|
+
>
|
|
58
|
+
<:button>
|
|
59
|
+
<EuiButton
|
|
60
|
+
@iconType='arrowDown'
|
|
61
|
+
@iconSide='right'
|
|
62
|
+
{{on 'click' (set this 'pop2' true)}}
|
|
63
|
+
>
|
|
64
|
+
With footer
|
|
65
|
+
</EuiButton>
|
|
66
|
+
</:button>
|
|
67
|
+
<:content>
|
|
68
|
+
<div style='width: 300px;'>
|
|
69
|
+
<EuiText @size='s'>
|
|
70
|
+
<p>
|
|
71
|
+
Selfies migas stumptown hot chicken quinoa wolf green juice, mumblecore tattooed trust fund hammock truffaut taxidermy kogi.
|
|
72
|
+
</p>
|
|
73
|
+
</EuiText>
|
|
74
|
+
</div>
|
|
75
|
+
<EuiPopoverFooter>
|
|
76
|
+
<EuiTextColor @color="subdued">
|
|
77
|
+
Hello, I’m a small popover footer caption
|
|
78
|
+
</EuiTextColor>
|
|
79
|
+
</EuiPopoverFooter>
|
|
80
|
+
</:content>
|
|
81
|
+
</EuiPopover>
|
|
82
|
+
</EuiFlexItem>
|
|
83
|
+
|
|
84
|
+
<!-- example 3 -->
|
|
85
|
+
<EuiFlexItem @grow={{false}}>
|
|
86
|
+
<EuiPopover
|
|
87
|
+
@ownFocus={{true}}
|
|
88
|
+
@isOpen={{this.pop3}}
|
|
89
|
+
@anchorPosition='upCenter'
|
|
90
|
+
@closePopover={{set this 'pop3' false}}
|
|
91
|
+
>
|
|
92
|
+
<:button>
|
|
93
|
+
<EuiButton
|
|
94
|
+
@iconType='arrowDown'
|
|
95
|
+
@iconSide='right'
|
|
96
|
+
{{on 'click' (set this 'pop3' true)}}
|
|
97
|
+
>
|
|
98
|
+
With Title and footer button
|
|
99
|
+
</EuiButton>
|
|
100
|
+
</:button>
|
|
101
|
+
<:content>
|
|
102
|
+
<EuiPopoverTitle>
|
|
103
|
+
Hello, I’m a popover title
|
|
104
|
+
</EuiPopoverTitle>
|
|
105
|
+
<div style='width: 300px;'>
|
|
106
|
+
<EuiText @size='s'>
|
|
107
|
+
<p>
|
|
108
|
+
Selfies migas stumptown hot chicken quinoa wolf green juice, mumblecore tattooed trust fund hammock truffaut taxidermy kogi.
|
|
109
|
+
</p>
|
|
110
|
+
</EuiText>
|
|
111
|
+
</div>
|
|
112
|
+
<EuiPopoverFooter>
|
|
113
|
+
<EuiButton @fullWidth={{true}}>
|
|
114
|
+
Manage this thing
|
|
115
|
+
</EuiButton>
|
|
116
|
+
</EuiPopoverFooter>
|
|
117
|
+
</:content>
|
|
118
|
+
</EuiPopover>
|
|
119
|
+
</EuiFlexItem>
|
|
120
|
+
</EuiFlexGroup>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
```javascript component
|
|
124
|
+
import Component from '@glimmer/component';
|
|
125
|
+
import { action } from '@ember/object';
|
|
126
|
+
import { tracked } from '@glimmer/tracking';
|
|
127
|
+
|
|
128
|
+
export default class PopoverDemo1 extends Component {
|
|
129
|
+
@tracked pop1 = false;
|
|
130
|
+
@tracked pop2 = false;
|
|
131
|
+
@tracked pop3 = false;
|
|
132
|
+
}
|
|
133
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
order:
|
|
2
|
+
order: 4
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Popover padding sizes
|
|
@@ -14,11 +14,12 @@ order: 5
|
|
|
14
14
|
<strong>EuiPopoverTitle</strong>
|
|
15
15
|
of
|
|
16
16
|
<strong>EuiPopoverFooter</strong>.
|
|
17
|
-
|
|
17
|
+
</EuiText>
|
|
18
18
|
|
|
19
19
|
```hbs template
|
|
20
20
|
<div>
|
|
21
21
|
<EuiFlexGroup>
|
|
22
|
+
|
|
22
23
|
<EuiFlexItem @grow={{false}}>
|
|
23
24
|
<EuiPopover
|
|
24
25
|
@ownFocus={{true}}
|
|
@@ -37,22 +38,26 @@ order: 5
|
|
|
37
38
|
</:button>
|
|
38
39
|
<:content>
|
|
39
40
|
<EuiPopoverTitle>
|
|
40
|
-
|
|
41
|
+
Hello, I’m a popover title
|
|
41
42
|
</EuiPopoverTitle>
|
|
42
43
|
<div style='width: 300px;'>
|
|
43
|
-
<EuiText size='s'>
|
|
44
|
+
<EuiText @size='s'>
|
|
44
45
|
Only changing the panelPaddingSize will get inherited by the
|
|
45
46
|
title.
|
|
46
47
|
</EuiText>
|
|
47
48
|
</div>
|
|
48
49
|
<EuiPopoverFooter>
|
|
49
|
-
<EuiButton
|
|
50
|
+
<EuiButton
|
|
51
|
+
@size='s'
|
|
52
|
+
@fullWidth={{true}}
|
|
53
|
+
>
|
|
50
54
|
Footer button
|
|
51
55
|
</EuiButton>
|
|
52
56
|
</EuiPopoverFooter>
|
|
53
57
|
</:content>
|
|
54
58
|
</EuiPopover>
|
|
55
59
|
</EuiFlexItem>
|
|
60
|
+
|
|
56
61
|
<EuiFlexItem @grow={{false}}>
|
|
57
62
|
<EuiPopover
|
|
58
63
|
@ownFocus={{true}}
|
|
@@ -66,36 +71,40 @@ order: 5
|
|
|
66
71
|
@iconSide='right'
|
|
67
72
|
{{on 'click' (set this 'pop2' true)}}
|
|
68
73
|
>
|
|
69
|
-
No panel padding
|
|
74
|
+
No panel padding (none)
|
|
70
75
|
</EuiButton>
|
|
71
76
|
</:button>
|
|
72
77
|
<:content>
|
|
73
78
|
<EuiPopoverTitle>
|
|
74
|
-
|
|
79
|
+
Hello, I’m a popover title
|
|
75
80
|
</EuiPopoverTitle>
|
|
76
81
|
<div style='width: 300px;'>
|
|
77
|
-
<EuiText size='s'>
|
|
82
|
+
<EuiText @size='s'>
|
|
78
83
|
Removing the panelPaddingSize completely is good for lists that
|
|
79
84
|
should extend to the edges.
|
|
80
85
|
</EuiText>
|
|
81
86
|
</div>
|
|
82
87
|
<EuiPopoverFooter>
|
|
83
|
-
<EuiButton
|
|
88
|
+
<EuiButton
|
|
89
|
+
@size='s'
|
|
90
|
+
@fullWidth={{true}}
|
|
91
|
+
>
|
|
84
92
|
Footer button
|
|
85
93
|
</EuiButton>
|
|
86
94
|
</EuiPopoverFooter>
|
|
87
95
|
</:content>
|
|
88
96
|
</EuiPopover>
|
|
89
97
|
</EuiFlexItem>
|
|
98
|
+
|
|
90
99
|
</EuiFlexGroup>
|
|
91
|
-
|
|
100
|
+
|
|
92
101
|
|
|
93
102
|
<EuiFlexGroup>
|
|
103
|
+
|
|
94
104
|
<EuiFlexItem @grow={{false}}>
|
|
95
105
|
<EuiPopover
|
|
96
106
|
@ownFocus={{true}}
|
|
97
107
|
@isOpen={{this.pop3}}
|
|
98
|
-
@panelPaddingSize='s'
|
|
99
108
|
@closePopover={{set this 'pop3' false}}
|
|
100
109
|
>
|
|
101
110
|
<:button>
|
|
@@ -104,27 +113,31 @@ order: 5
|
|
|
104
113
|
@iconSide='right'
|
|
105
114
|
{{on 'click' (set this 'pop3' true)}}
|
|
106
115
|
>
|
|
107
|
-
No title padding
|
|
116
|
+
No title padding (none)
|
|
108
117
|
</EuiButton>
|
|
109
118
|
</:button>
|
|
110
119
|
<:content>
|
|
111
120
|
<EuiPopoverTitle @paddingSize='none'>
|
|
112
|
-
|
|
121
|
+
Hello, I’m a popover title
|
|
113
122
|
</EuiPopoverTitle>
|
|
114
123
|
<div style='width: 300px;'>
|
|
115
|
-
<EuiText size='s'>
|
|
124
|
+
<EuiText @size='s'>
|
|
116
125
|
Removing the padding from titles only with paddingSize on
|
|
117
126
|
EuiPopoverTitle.
|
|
118
127
|
</EuiText>
|
|
119
128
|
</div>
|
|
120
129
|
<EuiPopoverFooter>
|
|
121
|
-
<EuiButton
|
|
130
|
+
<EuiButton
|
|
131
|
+
@size='s'
|
|
132
|
+
@fullWidth={{true}}
|
|
133
|
+
>
|
|
122
134
|
Footer button
|
|
123
135
|
</EuiButton>
|
|
124
136
|
</EuiPopoverFooter>
|
|
125
137
|
</:content>
|
|
126
138
|
</EuiPopover>
|
|
127
139
|
</EuiFlexItem>
|
|
140
|
+
|
|
128
141
|
<EuiFlexItem @grow={{false}}>
|
|
129
142
|
<EuiPopover
|
|
130
143
|
@ownFocus={{true}}
|
|
@@ -142,27 +155,32 @@ order: 5
|
|
|
142
155
|
</EuiButton>
|
|
143
156
|
</:button>
|
|
144
157
|
<:content>
|
|
145
|
-
<EuiPopoverTitle @paddingSize='
|
|
146
|
-
|
|
158
|
+
<EuiPopoverTitle @paddingSize='s'>
|
|
159
|
+
Hello, I’m a popover title
|
|
147
160
|
</EuiPopoverTitle>
|
|
148
161
|
<div style='width: 300px;'>
|
|
149
|
-
<EuiText size='s'>
|
|
162
|
+
<EuiText @size='s'>
|
|
150
163
|
You can adjust both the panelPaddingSize and the paddingSize at
|
|
151
164
|
the same time
|
|
152
165
|
</EuiText>
|
|
153
166
|
</div>
|
|
154
167
|
<EuiPopoverFooter>
|
|
155
|
-
<EuiButton
|
|
168
|
+
<EuiButton
|
|
169
|
+
@size='s'
|
|
170
|
+
@fullWidth={{true}}
|
|
171
|
+
>
|
|
156
172
|
Footer button
|
|
157
173
|
</EuiButton>
|
|
158
174
|
</EuiPopoverFooter>
|
|
159
175
|
</:content>
|
|
160
176
|
</EuiPopover>
|
|
161
177
|
</EuiFlexItem>
|
|
178
|
+
|
|
162
179
|
</EuiFlexGroup>
|
|
163
|
-
|
|
180
|
+
|
|
164
181
|
|
|
165
182
|
<EuiFlexGroup>
|
|
183
|
+
|
|
166
184
|
<EuiFlexItem @grow={{false}}>
|
|
167
185
|
<EuiPopover
|
|
168
186
|
@ownFocus={{true}}
|
|
@@ -181,22 +199,26 @@ order: 5
|
|
|
181
199
|
</:button>
|
|
182
200
|
<:content>
|
|
183
201
|
<EuiPopoverTitle>
|
|
184
|
-
|
|
202
|
+
Hello, I’m a popover title
|
|
185
203
|
</EuiPopoverTitle>
|
|
186
204
|
<div style='width: 300px;'>
|
|
187
|
-
<EuiText size='s'>
|
|
205
|
+
<EuiText @size='s'>
|
|
188
206
|
Removing the padding from titles only with paddingSize on
|
|
189
207
|
EuiPopoverTitle.
|
|
190
208
|
</EuiText>
|
|
191
209
|
</div>
|
|
192
210
|
<EuiPopoverFooter @paddingSize='none'>
|
|
193
|
-
<EuiButton
|
|
211
|
+
<EuiButton
|
|
212
|
+
@size='s'
|
|
213
|
+
@fullWidth={{true}}
|
|
214
|
+
>
|
|
194
215
|
Footer button
|
|
195
216
|
</EuiButton>
|
|
196
217
|
</EuiPopoverFooter>
|
|
197
218
|
</:content>
|
|
198
219
|
</EuiPopover>
|
|
199
220
|
</EuiFlexItem>
|
|
221
|
+
|
|
200
222
|
<EuiFlexItem @grow={{false}}>
|
|
201
223
|
<EuiPopover
|
|
202
224
|
@ownFocus={{true}}
|
|
@@ -214,25 +236,28 @@ order: 5
|
|
|
214
236
|
</EuiButton>
|
|
215
237
|
</:button>
|
|
216
238
|
<:content>
|
|
217
|
-
<EuiPopoverTitle @paddingSize='
|
|
218
|
-
|
|
239
|
+
<EuiPopoverTitle @paddingSize='s'>
|
|
240
|
+
Hello, I’m a popover title
|
|
219
241
|
</EuiPopoverTitle>
|
|
220
242
|
<div style='width: 300px;'>
|
|
221
|
-
<EuiText size='s'>
|
|
222
|
-
|
|
223
|
-
the same time
|
|
243
|
+
<EuiText @size='s'>
|
|
244
|
+
For the most reliable padding display, set the panelPaddingSize and the paddingSize props for each component individually.
|
|
224
245
|
</EuiText>
|
|
225
246
|
</div>
|
|
226
|
-
<EuiPopoverFooter @paddingSize='
|
|
227
|
-
<EuiButton
|
|
247
|
+
<EuiPopoverFooter @paddingSize='s'>
|
|
248
|
+
<EuiButton
|
|
249
|
+
@size='s'
|
|
250
|
+
@fullWidth={{true}}
|
|
251
|
+
>
|
|
228
252
|
Footer button
|
|
229
253
|
</EuiButton>
|
|
230
254
|
</EuiPopoverFooter>
|
|
231
255
|
</:content>
|
|
232
256
|
</EuiPopover>
|
|
233
257
|
</EuiFlexItem>
|
|
258
|
+
|
|
234
259
|
</EuiFlexGroup>
|
|
235
|
-
|
|
260
|
+
|
|
236
261
|
</div>
|
|
237
262
|
```
|
|
238
263
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
order:
|
|
2
|
+
order: 5
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Panel class name
|
|
@@ -14,7 +14,7 @@ order: 6
|
|
|
14
14
|
@ownFocus={{true}}
|
|
15
15
|
@isOpen={{this.popover}}
|
|
16
16
|
@anchorPosition='downLeft'
|
|
17
|
-
@panelClasses='
|
|
17
|
+
@panelClasses='guideDemo__textLines'
|
|
18
18
|
@closePopover={{set this 'popover' false}}
|
|
19
19
|
>
|
|
20
20
|
<:button>
|
|
@@ -27,7 +27,7 @@ order: 6
|
|
|
27
27
|
</EuiButton>
|
|
28
28
|
</:button>
|
|
29
29
|
<:content>
|
|
30
|
-
This has a custom class that applies some
|
|
30
|
+
This has a custom class that applies some grid lines.
|
|
31
31
|
</:content>
|
|
32
32
|
</EuiPopover>
|
|
33
33
|
</div>
|
package/docs/layout/{popover-demo/demo7.md → popover/demo/d06-popover-with-block-level-display.md}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
order:
|
|
2
|
+
order: 6
|
|
3
3
|
---
|
|
4
4
|
# Popover with block level display
|
|
5
5
|
|
|
@@ -12,13 +12,12 @@ order: 7
|
|
|
12
12
|
<EuiPopover
|
|
13
13
|
@ownFocus={{true}}
|
|
14
14
|
@isOpen={{this.popover}}
|
|
15
|
-
@anchorPosition='
|
|
15
|
+
@anchorPosition='downCenter'
|
|
16
16
|
@display='block'
|
|
17
17
|
@closePopover={{set this 'popover' false}}
|
|
18
18
|
>
|
|
19
19
|
<:button>
|
|
20
20
|
<EuiButton
|
|
21
|
-
@iconType='arrowDown'
|
|
22
21
|
@iconSide='right'
|
|
23
22
|
@fullWidth={{true}}
|
|
24
23
|
{{on 'click' (set this 'popover' true)}}
|
package/docs/layout/{popover-demo/demo3.md → popover/demo/d07-popover-on-a-fixed-element.md}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
order:
|
|
2
|
+
order: 7
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Popover on a fixed element
|
|
@@ -33,16 +33,8 @@ order: 3
|
|
|
33
33
|
</EuiButton>
|
|
34
34
|
</:button>
|
|
35
35
|
<:content>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
</EuiPopoverTitle>
|
|
39
|
-
<div style='width: 300px;'>
|
|
40
|
-
<EuiText size='s'>
|
|
41
|
-
<p>
|
|
42
|
-
Selfies migas stumptown hot chicken quinoa wolf green juice,
|
|
43
|
-
mumblecore tattooed trust fund hammock truffaut taxidermy kogi.
|
|
44
|
-
</p>
|
|
45
|
-
</EuiText>
|
|
36
|
+
<div>
|
|
37
|
+
This popover scrolls with the button element!
|
|
46
38
|
</div>
|
|
47
39
|
</:content>
|
|
48
40
|
</EuiPopover>
|
|
File without changes
|
package/docs/layout/{popover-demo/demo9.md → popover/demo/d09-popover-attached-to-input-element.md}
RENAMED
|
@@ -22,30 +22,32 @@ order: 9
|
|
|
22
22
|
```hbs template
|
|
23
23
|
<div>
|
|
24
24
|
<EuiInputPopover
|
|
25
|
-
@isOpen={{this.
|
|
26
|
-
@closePopover={{set this '
|
|
25
|
+
@isOpen={{this.popover1}}
|
|
26
|
+
@closePopover={{set this 'popover1' false}}
|
|
27
27
|
>
|
|
28
28
|
<:input>
|
|
29
29
|
<EuiFieldText
|
|
30
|
-
@value={{this.
|
|
31
|
-
{{on 'input' (pick 'target.value' (set this '
|
|
32
|
-
{{on 'focus' (set this '
|
|
30
|
+
@value={{this.text1}}
|
|
31
|
+
{{on 'input' (pick 'target.value' (set this 'text1'))}}
|
|
32
|
+
{{on 'focus' (set this 'popover1' true)}}
|
|
33
33
|
/>
|
|
34
34
|
</:input>
|
|
35
35
|
<:content>
|
|
36
|
-
|
|
36
|
+
Popover content
|
|
37
37
|
</:content>
|
|
38
38
|
</EuiInputPopover>
|
|
39
|
+
|
|
39
40
|
<EuiSpacer @size='l' />
|
|
41
|
+
|
|
40
42
|
<EuiInputPopover
|
|
41
43
|
@isOpen={{this.popover2}}
|
|
42
44
|
@closePopover={{set this 'popover2' false}}
|
|
43
45
|
>
|
|
44
46
|
<:input>
|
|
45
47
|
<EuiFieldText
|
|
46
|
-
@value={{this.
|
|
48
|
+
@value={{this.text2}}
|
|
47
49
|
style={{concat 'width: ' this.width 'px'}}
|
|
48
|
-
{{on 'input' (pick 'target.value' (set this '
|
|
50
|
+
{{on 'input' (pick 'target.value' (set this 'text2'))}}
|
|
49
51
|
{{on
|
|
50
52
|
'focus'
|
|
51
53
|
(queue (set this 'popover2' true) (fn this.setInputWidth 400))
|
|
@@ -54,7 +56,7 @@ order: 9
|
|
|
54
56
|
/>
|
|
55
57
|
</:input>
|
|
56
58
|
<:content>
|
|
57
|
-
|
|
59
|
+
Popover will adjust in size as the input does
|
|
58
60
|
</:content>
|
|
59
61
|
</EuiInputPopover>
|
|
60
62
|
</div>
|
|
@@ -66,11 +68,11 @@ import { action } from '@ember/object';
|
|
|
66
68
|
import { tracked } from '@glimmer/tracking';
|
|
67
69
|
|
|
68
70
|
export default class PopoverDemo1 extends Component {
|
|
69
|
-
@tracked
|
|
71
|
+
@tracked popover1 = false;
|
|
70
72
|
@tracked popover2 = false;
|
|
71
73
|
@tracked width = 200;
|
|
72
|
-
@tracked
|
|
73
|
-
@tracked
|
|
74
|
+
@tracked text1 = '';
|
|
75
|
+
@tracked text2 = '';
|
|
74
76
|
|
|
75
77
|
@action
|
|
76
78
|
setInputWidth(width) {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 10
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Setting an initial focus
|
|
6
|
+
|
|
7
|
+
```hbs template
|
|
8
|
+
|
|
9
|
+
<div>
|
|
10
|
+
{{#let
|
|
11
|
+
(unique-id)
|
|
12
|
+
as |textId|}}
|
|
13
|
+
<EuiPopover
|
|
14
|
+
@ownFocus={{false}}
|
|
15
|
+
@isOpen={{this.popover}}
|
|
16
|
+
@anchorPosition='downLeft'
|
|
17
|
+
@closePopover={{set this 'popover' false}}
|
|
18
|
+
@initialFocus={{concat '#' textId}}
|
|
19
|
+
>
|
|
20
|
+
<:button>
|
|
21
|
+
<EuiButton
|
|
22
|
+
@iconType='arrowDown'
|
|
23
|
+
@iconSide='right'
|
|
24
|
+
{{on 'click' (set this 'popover' true)}}
|
|
25
|
+
>
|
|
26
|
+
Show popover
|
|
27
|
+
</EuiButton>
|
|
28
|
+
</:button>
|
|
29
|
+
<:content>
|
|
30
|
+
|
|
31
|
+
<EuiFormRow
|
|
32
|
+
@label='Enter name'
|
|
33
|
+
@id={{textId}}
|
|
34
|
+
@hasChildLabel={{false}}
|
|
35
|
+
>
|
|
36
|
+
<EuiFieldText
|
|
37
|
+
@value={{this.textValue}}
|
|
38
|
+
@id={{textId}}
|
|
39
|
+
id='hello'
|
|
40
|
+
{{on 'input' (pick 'target.value' (set this 'textValue'))}}
|
|
41
|
+
/>
|
|
42
|
+
</EuiFormRow>
|
|
43
|
+
|
|
44
|
+
<EuiSpacer />
|
|
45
|
+
|
|
46
|
+
<EuiButton @fill={{true}}>Submit</EuiButton>
|
|
47
|
+
</:content>
|
|
48
|
+
</EuiPopover>
|
|
49
|
+
{{/let}}
|
|
50
|
+
</div>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```javascript component
|
|
54
|
+
import Component from '@glimmer/component';
|
|
55
|
+
import { action } from '@ember/object';
|
|
56
|
+
import { tracked } from '@glimmer/tracking';
|
|
57
|
+
|
|
58
|
+
export default class PopoverDemo1 extends Component {
|
|
59
|
+
@tracked popover = false;
|
|
60
|
+
}
|
|
61
|
+
```
|