@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
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
|
-
```hbs template
|
|
4
|
-
<EuiTitle @size='m'>
|
|
5
|
-
Button
|
|
6
|
-
</EuiTitle>
|
|
7
|
-
<EuiSpacer @size='s' />
|
|
8
|
-
<div
|
|
9
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
10
|
-
>
|
|
11
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
12
|
-
<EuiButton>
|
|
13
|
-
Primary
|
|
14
|
-
</EuiButton>
|
|
15
|
-
</div>
|
|
16
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
17
|
-
<EuiButton @fill={{true}}>
|
|
18
|
-
Filled
|
|
19
|
-
</EuiButton>
|
|
20
|
-
</div>
|
|
21
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
22
|
-
<EuiButton @size='s'>
|
|
23
|
-
Small
|
|
24
|
-
</EuiButton>
|
|
25
|
-
</div>
|
|
26
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
27
|
-
<EuiButton @size='s' @fill={{true}}>
|
|
28
|
-
Small Filled
|
|
29
|
-
</EuiButton>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div
|
|
33
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
34
|
-
>
|
|
35
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
36
|
-
<EuiButton @color='success'>
|
|
37
|
-
Success
|
|
38
|
-
</EuiButton>
|
|
39
|
-
</div>
|
|
40
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
41
|
-
<EuiButton @fill={{true}} @color='success'>
|
|
42
|
-
Filled
|
|
43
|
-
</EuiButton>
|
|
44
|
-
</div>
|
|
45
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
46
|
-
<EuiButton @size='s' @color='success'>
|
|
47
|
-
Small
|
|
48
|
-
</EuiButton>
|
|
49
|
-
</div>
|
|
50
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
51
|
-
<EuiButton @size='s' @fill={{true}} @color='success'>
|
|
52
|
-
Small Filled
|
|
53
|
-
</EuiButton>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div
|
|
57
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
58
|
-
>
|
|
59
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
60
|
-
<EuiButton @color='warning'>
|
|
61
|
-
Warning
|
|
62
|
-
</EuiButton>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
65
|
-
<EuiButton @fill={{true}} @color='warning'>
|
|
66
|
-
Filled
|
|
67
|
-
</EuiButton>
|
|
68
|
-
</div>
|
|
69
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
70
|
-
<EuiButton @size='s' @color='warning'>
|
|
71
|
-
Small
|
|
72
|
-
</EuiButton>
|
|
73
|
-
</div>
|
|
74
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
75
|
-
<EuiButton @size='s' @fill={{true}} @color='warning'>
|
|
76
|
-
Small Filled
|
|
77
|
-
</EuiButton>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
<div
|
|
81
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
82
|
-
>
|
|
83
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
84
|
-
<EuiButton @color='danger'>
|
|
85
|
-
Danger
|
|
86
|
-
</EuiButton>
|
|
87
|
-
</div>
|
|
88
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
89
|
-
<EuiButton @fill={{true}} @color='danger'>
|
|
90
|
-
Filled
|
|
91
|
-
</EuiButton>
|
|
92
|
-
</div>
|
|
93
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
94
|
-
<EuiButton @size='s' @color='danger'>
|
|
95
|
-
Small
|
|
96
|
-
</EuiButton>
|
|
97
|
-
</div>
|
|
98
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
99
|
-
<EuiButton @size='s' @fill={{true}} @color='danger'>
|
|
100
|
-
Small Filled
|
|
101
|
-
</EuiButton>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
<div
|
|
105
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
106
|
-
>
|
|
107
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
108
|
-
<EuiButton @isDisabled={{true}}>
|
|
109
|
-
Disabled
|
|
110
|
-
</EuiButton>
|
|
111
|
-
</div>
|
|
112
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
113
|
-
<EuiButton @isDisabled={{true}} @fill={{true}}>
|
|
114
|
-
Filled
|
|
115
|
-
</EuiButton>
|
|
116
|
-
</div>
|
|
117
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
118
|
-
<EuiButton @isDisabled={{true}} @size='s'>
|
|
119
|
-
Small
|
|
120
|
-
</EuiButton>
|
|
121
|
-
</div>
|
|
122
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
123
|
-
<EuiButton @isDisabled={{true}} @size='s' @fill={{true}}>
|
|
124
|
-
Small Filled
|
|
125
|
-
</EuiButton>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
<EuiSpacer @size='s' />
|
|
129
|
-
<EuiTitle @size='xs'>
|
|
130
|
-
Button as links
|
|
131
|
-
</EuiTitle>
|
|
132
|
-
<EuiSpacer @size='s' />
|
|
133
|
-
<div
|
|
134
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
135
|
-
>
|
|
136
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
137
|
-
<EuiButton @href='http://www.elastic.co'>
|
|
138
|
-
Link to elastic.co
|
|
139
|
-
</EuiButton>
|
|
140
|
-
</div>
|
|
141
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
142
|
-
<EuiButtonEmpty
|
|
143
|
-
@isDisabled={{this.disabledLink}}
|
|
144
|
-
@href='http://www.elastic.co'
|
|
145
|
-
>
|
|
146
|
-
Link to elastic.co
|
|
147
|
-
</EuiButtonEmpty>
|
|
148
|
-
</div>
|
|
149
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
150
|
-
<EuiButtonIcon
|
|
151
|
-
@href='http://www.elastic.co'
|
|
152
|
-
@iconType='link'
|
|
153
|
-
aria-label='This is a link'
|
|
154
|
-
/>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
<EuiSpacer @size='s' />
|
|
158
|
-
<EuiTitle @size='xs'>
|
|
159
|
-
Button with Icon
|
|
160
|
-
</EuiTitle>
|
|
161
|
-
<EuiSpacer @size='s' />
|
|
162
|
-
<div
|
|
163
|
-
class='euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter'
|
|
164
|
-
>
|
|
165
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
166
|
-
<EuiButton @iconType='pencil'>
|
|
167
|
-
Primary
|
|
168
|
-
</EuiButton>
|
|
169
|
-
</div>
|
|
170
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
171
|
-
<EuiButton @iconType='pencil' @fill={{true}} @iconSide='right'>
|
|
172
|
-
Primary
|
|
173
|
-
</EuiButton>
|
|
174
|
-
</div>
|
|
175
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
176
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
177
|
-
<EuiButton @iconType='pencil' @iconSide='right' @isDisabled={{true}}>
|
|
178
|
-
Disabled
|
|
179
|
-
</EuiButton>
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
183
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
184
|
-
<EuiButton
|
|
185
|
-
@iconType='pencil'
|
|
186
|
-
@fill={{true}}
|
|
187
|
-
@isDisabled={{true}}
|
|
188
|
-
{{on 'click' this.clickedButton}}
|
|
189
|
-
>
|
|
190
|
-
Disabled
|
|
191
|
-
</EuiButton>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
</div>
|
|
195
|
-
<EuiSpacer />
|
|
196
|
-
<EuiTitle @size='xs'>
|
|
197
|
-
Loading State
|
|
198
|
-
</EuiTitle>
|
|
199
|
-
<EuiSpacer @size='s' />
|
|
200
|
-
<div
|
|
201
|
-
class='euiFlexGrid euiFlexGrid--responsive euiFlexGrid--fourths euiFlexGrid--gutterLarge'
|
|
202
|
-
>
|
|
203
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
204
|
-
<EuiButton @color='primary' @isLoading={{true}}>
|
|
205
|
-
Loading...
|
|
206
|
-
</EuiButton>
|
|
207
|
-
</div>
|
|
208
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
209
|
-
<EuiButton @color='primary' @isLoading={{true}} @fill={{true}}>
|
|
210
|
-
Loading...
|
|
211
|
-
</EuiButton>
|
|
212
|
-
</div>
|
|
213
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
214
|
-
<EuiButton
|
|
215
|
-
@color='primary'
|
|
216
|
-
@isLoading={{true}}
|
|
217
|
-
@fill={{true}}
|
|
218
|
-
@iconSide='right'
|
|
219
|
-
>
|
|
220
|
-
Loading...
|
|
221
|
-
</EuiButton>
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
<EuiSpacer />
|
|
225
|
-
<EuiTitle @size='m'>
|
|
226
|
-
Button Empty
|
|
227
|
-
</EuiTitle>
|
|
228
|
-
<div
|
|
229
|
-
class='euiFlexGrid euiFlexGrid--responsive euiFlexGrid--fourths euiFlexGrid--gutterLarge'
|
|
230
|
-
>
|
|
231
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
232
|
-
<EuiButtonEmpty @color='primary'>
|
|
233
|
-
Primary
|
|
234
|
-
</EuiButtonEmpty>
|
|
235
|
-
</div>
|
|
236
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
237
|
-
<EuiButtonEmpty @color='primary' @isLoading={{false}} @isDisabled={{true}}>
|
|
238
|
-
Disabled
|
|
239
|
-
</EuiButtonEmpty>
|
|
240
|
-
</div>
|
|
241
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
242
|
-
<EuiButtonEmpty @color='primary' @isLoading={{true}} @isDisabled={{false}}>
|
|
243
|
-
Loading
|
|
244
|
-
</EuiButtonEmpty>
|
|
245
|
-
</div>
|
|
246
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
247
|
-
<EuiButtonEmpty
|
|
248
|
-
@color='primary'
|
|
249
|
-
@iconSide='right'
|
|
250
|
-
@isLoading={{true}}
|
|
251
|
-
@isDisabled={{false}}
|
|
252
|
-
>
|
|
253
|
-
Loading Right
|
|
254
|
-
</EuiButtonEmpty>
|
|
255
|
-
</div>
|
|
256
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
257
|
-
<EuiButtonEmpty @color='danger'>
|
|
258
|
-
Danger
|
|
259
|
-
</EuiButtonEmpty>
|
|
260
|
-
</div>
|
|
261
|
-
</div>
|
|
262
|
-
<EuiSpacer @size='l' />
|
|
263
|
-
<EuiTitle @size='m'>
|
|
264
|
-
Icon Button
|
|
265
|
-
</EuiTitle>
|
|
266
|
-
<div
|
|
267
|
-
class='euiFlexGroup euiFlexGroup--directionRow euiFlexGroup--responsive euiFlexGroup--gutterLarge'
|
|
268
|
-
>
|
|
269
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
270
|
-
<EuiButtonIcon
|
|
271
|
-
@color='primary'
|
|
272
|
-
@iconType='arrowRight'
|
|
273
|
-
@size='xs'
|
|
274
|
-
@iconSize='s'
|
|
275
|
-
/>
|
|
276
|
-
</div>
|
|
277
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
278
|
-
<EuiButtonIcon
|
|
279
|
-
@color='text'
|
|
280
|
-
@iconType='arrowRight'
|
|
281
|
-
@size='s'
|
|
282
|
-
@iconSize='m'
|
|
283
|
-
/>
|
|
284
|
-
</div>
|
|
285
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
286
|
-
<EuiButtonIcon
|
|
287
|
-
@color='accent'
|
|
288
|
-
@iconType='arrowRight'
|
|
289
|
-
@size='m'
|
|
290
|
-
@iconSize='l'
|
|
291
|
-
/>
|
|
292
|
-
</div>
|
|
293
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
294
|
-
<EuiButtonIcon
|
|
295
|
-
@color='warning'
|
|
296
|
-
@iconType='arrowRight'
|
|
297
|
-
@size='m'
|
|
298
|
-
@iconSize='xl'
|
|
299
|
-
/>
|
|
300
|
-
</div>
|
|
301
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
302
|
-
<EuiButtonIcon
|
|
303
|
-
@color='danger'
|
|
304
|
-
@iconType='arrowRight'
|
|
305
|
-
@iconSize='original'
|
|
306
|
-
/>
|
|
307
|
-
</div>
|
|
308
|
-
<div class='bg-black euiFlexItem euiFlexItem--flexGrowZero'>
|
|
309
|
-
<EuiButtonIcon
|
|
310
|
-
@color='ghost'
|
|
311
|
-
@iconType='arrowRight'
|
|
312
|
-
@size='m'
|
|
313
|
-
@iconSize='xxl'
|
|
314
|
-
/>
|
|
315
|
-
</div>
|
|
316
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
317
|
-
<EuiButtonIcon
|
|
318
|
-
@color='subdued'
|
|
319
|
-
@iconType='arrowRight'
|
|
320
|
-
@size='m'
|
|
321
|
-
@iconSize='xxl'
|
|
322
|
-
/>
|
|
323
|
-
</div>
|
|
324
|
-
</div>
|
|
325
|
-
<div
|
|
326
|
-
class='euiFlexGroup euiFlexGroup--directionRow euiFlexGroup--responsive euiFlexGroup--gutterLarge'
|
|
327
|
-
>
|
|
328
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
329
|
-
<EuiButtonIcon
|
|
330
|
-
@color='primary'
|
|
331
|
-
@iconType='arrowRight'
|
|
332
|
-
@iconSize='original'
|
|
333
|
-
{{on 'click' this.toggleIconButton}}
|
|
334
|
-
/>
|
|
335
|
-
</div>
|
|
336
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
337
|
-
<EuiButtonIcon
|
|
338
|
-
@color='success'
|
|
339
|
-
@iconType='arrowRight'
|
|
340
|
-
@isDisabled={{true}}
|
|
341
|
-
/>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
<EuiSpacer />
|
|
345
|
-
<EuiTitle @size='m'>
|
|
346
|
-
Toggle Buttons
|
|
347
|
-
</EuiTitle>
|
|
348
|
-
<EuiSpacer />
|
|
349
|
-
<EuiCallOut
|
|
350
|
-
@color='warning'
|
|
351
|
-
@iconType='alert'
|
|
352
|
-
@title='Do not add @aria-pressed or @isSelected if you also change the readable text.'
|
|
353
|
-
/>
|
|
354
|
-
<EuiSpacer @size='xs' />
|
|
355
|
-
<div
|
|
356
|
-
class='euiFlexGroup euiFlexGroup--directionRow euiFlexGroup--alignItemsCenter euiFlexGroup--gutterSmall'
|
|
357
|
-
>
|
|
358
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
359
|
-
<EuiButton
|
|
360
|
-
@isSelected={{this.button1On}}
|
|
361
|
-
@fill={{this.button1On}}
|
|
362
|
-
@iconType={{if this.button1On 'stopFilled' 'stop'}}
|
|
363
|
-
{{on 'click' (fn this.toggleButtonState 'button1On')}}
|
|
364
|
-
>
|
|
365
|
-
Toggle me
|
|
366
|
-
</EuiButton>
|
|
367
|
-
</div>
|
|
368
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
369
|
-
<EuiButton {{on 'click' (fn this.toggleButtonState 'button2On')}}>
|
|
370
|
-
{{if this.button2On 'I have changed!' 'Click to change text!'}}
|
|
371
|
-
</EuiButton>
|
|
372
|
-
</div>
|
|
373
|
-
<div class='euiFlexItem euiFlexItem--flexGrowZero'>
|
|
374
|
-
<EuiButtonIcon
|
|
375
|
-
@title='Autosave'
|
|
376
|
-
@iconType='save'
|
|
377
|
-
aria-pressed={{this.button3On}}
|
|
378
|
-
@color={{if this.button3On 'primary' 'subdued'}}
|
|
379
|
-
{{on 'click' (fn this.toggleButtonState 'button3On')}}
|
|
380
|
-
/>
|
|
381
|
-
</div>
|
|
382
|
-
</div>
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
```js component
|
|
386
|
-
import Component from '@glimmer/component';
|
|
387
|
-
import { action } from '@ember/object';
|
|
388
|
-
import { tracked } from '@glimmer/tracking';
|
|
389
|
-
|
|
390
|
-
export default class Demo1ButtonComponent extends Component {
|
|
391
|
-
@tracked selectedIconButton = false;
|
|
392
|
-
@tracked button1On = false;
|
|
393
|
-
@tracked button2On = false;
|
|
394
|
-
@tracked button3On = false;
|
|
395
|
-
|
|
396
|
-
@tracked disabledLink = false;
|
|
397
|
-
|
|
398
|
-
@action
|
|
399
|
-
toggleIconButton() {
|
|
400
|
-
this.selectedIconButton = !this.selectedIconButton;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
@action
|
|
404
|
-
clickedButton() {
|
|
405
|
-
alert('You clicked a button!');
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
@action
|
|
409
|
-
toggleButtonState(btn) {
|
|
410
|
-
this[btn] = !this[btn];
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<EuiPageHeader @pageTitle="Button"/>
|