@ember-eui/core 5.4.4 → 5.7.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-card/index.hbs +25 -20
- package/addon/components/eui-card/index.ts +26 -0
- package/addon/components/eui-confirm-modal/index.hbs +13 -7
- package/addon/components/eui-described-form-group/index.hbs +5 -1
- package/addon/components/eui-loading-content/index.hbs +6 -1
- package/addon/components/eui-modal/index.hbs +2 -2
- package/addon/components/eui-selectable-list-item/index.hbs +24 -0
- package/addon/utils/css-mappings/eui-selectable-list-item.ts +14 -0
- package/addon/utils/css-mappings/index.ts +2 -0
- package/app/components/eui-selectable-list-item/index.js +1 -0
- package/docs/display/{avatar-demo/demo1.md → avatar/demo/d01-basic.md} +0 -2
- package/docs/display/{avatar-demo/demo2.md → avatar/demo/d02-initials.md} +0 -0
- package/docs/display/{avatar-demo/demo3.md → avatar/demo/d03-types.md} +0 -0
- package/docs/display/{avatar-demo/demo4.md → avatar/demo/d04-icons.md} +0 -0
- package/docs/display/{avatar-demo/demo5.md → avatar/demo/d05-disabled.md} +0 -0
- package/docs/display/{avatar.md → avatar/index.md} +5 -0
- package/docs/display/{badge-demo/demo1.md → badge/demo/d01-badge.md} +0 -0
- package/docs/display/{badge-demo/demo2.md → badge/demo/d02-badge-with-icon.md} +0 -0
- package/docs/display/{badge-demo/demo3.md → badge/demo/d03-badge-with-onclick-events.md} +0 -0
- package/docs/display/{badge-demo/demo4.md → badge/demo/d04-badge-for-health-status.md} +0 -0
- package/docs/display/{badge-demo/demo5.md → badge/demo/d05-badge-with-href.md} +0 -0
- package/docs/display/{badge-demo/demo7.md → badge/demo/d06-badge-groups-and-truncation.md} +0 -0
- package/docs/display/{badge-demo/demo6.md → badge/demo/d07-beta-badge-type.md} +0 -0
- package/docs/display/{badge-demo/demo8.md → badge/demo/d08-notification-badge-type.md} +0 -0
- package/docs/display/{badge.md → badge/index.md} +5 -0
- package/docs/display/{callout-demo/demo1.md → callout/demo/d01-info.md} +0 -0
- package/docs/display/{callout-demo/demo2.md → callout/demo/d02-success.md} +0 -0
- package/docs/display/{callout-demo/demo3.md → callout/demo/d03-warning.md} +0 -0
- package/docs/display/{callout-demo/demo4.md → callout/demo/d04-danger.md} +0 -0
- package/docs/display/{callout.md → callout/index.md} +6 -1
- package/docs/display/card/{basic-card-demo/demo1.md → demo/d01-basic-card.md} +5 -1
- package/docs/display/card/{layout-demo/demo1.md → demo/d02-layout.md} +4 -0
- package/docs/display/card/{images-demo/demo1.md → demo/d03-images.md} +1 -1
- package/docs/display/card/{footer-demo/demo1.md → demo/d04-footer.md} +4 -0
- package/docs/display/card/{beta-badge-demo/demo1.md → demo/d05-beta-badge.md} +4 -0
- package/docs/display/card/{selectable-demo/demo1.md → demo/d06-selectable.md} +5 -1
- package/docs/display/card/{checkable-demo/demo1.md → demo/d07-checkable.md} +1 -1
- package/docs/display/card/{checkable-demo/demo2.md → demo/d07.1-cheekable.md} +1 -1
- package/docs/display/card/{custom-children-demo/demo1.md → demo/d08-custom-children.md} +5 -1
- package/docs/display/card/index.md +14 -0
- package/docs/display/{comment-list-demo/demo1.md → comment-list/demo/d01-comment-list.md} +28 -22
- package/docs/display/{comment-list.md → comment-list/index.md} +6 -0
- package/docs/display/{description-list-demo/demo1.md → description-list/demo/d01-description-list.md} +0 -0
- package/docs/display/{description-list-demo/demo2.md → description-list/demo/d02-reverse-style.md} +0 -0
- package/docs/display/{description-list-demo/demo3.md → description-list/demo/d03-as-columns.md} +0 -0
- package/docs/display/{description-list-demo/demo4.md → description-list/demo/d04-inline.md} +0 -0
- package/docs/display/{description-list-demo/demo5.md → description-list/demo/d05-centered-and-compressed.md} +0 -0
- package/docs/display/{description-list-demo/demo6.md → description-list/demo/d06-passing-classname.md} +0 -0
- package/docs/display/{description-list.md → description-list/index.md} +6 -0
- package/docs/display/{empty-prompt-demo/demo1.md → empty-prompt/demo/d01-empty-prompt.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo2.md → empty-prompt/demo/d02-less-content-more-actions.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo3.md → empty-prompt/demo/d03-panel-options.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo4.md → empty-prompt/demo/d04-title-sizes-and-icon-colors.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo5.md → empty-prompt/demo/d05-loading-and-error-prompts.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo6.md → empty-prompt/demo/d06-layout.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo7.md → empty-prompt/demo/d07-more-types-of-empty-states.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo8.md → empty-prompt/demo/d08-using-in-a-page-template.md} +0 -0
- package/docs/display/empty-prompt/index.md +13 -0
- package/docs/display/{health-demo/demo1.md → health/demo/d01-health.md} +0 -0
- package/docs/display/{health-demo/demo2.md → health/demo/d02-text-sizes.md} +0 -0
- package/docs/display/health/index.md +13 -0
- package/docs/display/{icons-demo/demo1.md → icons/demo/d01-glyphs.md} +0 -0
- package/docs/display/{icons-demo/demo2.md → icons/demo/d02-editor-controls.md} +0 -0
- package/docs/display/{icons-demo/demo3.md → icons/demo/d03-elastic-logos.md} +0 -0
- package/docs/display/{icons-demo/demo4.md → icons/demo/d04-apps.md} +0 -0
- package/docs/display/{icons-demo/demo5.md → icons/demo/d05-tokens.md} +0 -0
- package/docs/display/{icons-demo/demo6.md → icons/demo/d06-sizes.md} +0 -0
- package/docs/display/{icons-demo/demo7.md → icons/demo/d07-colors.md} +0 -0
- package/docs/display/{icons-demo/demo8.md → icons/demo/d08-custom-svgs.md} +0 -0
- package/docs/display/{icons.md → icons/index.md} +5 -0
- package/docs/display/{image-demo/demo1.md → image/demo/d01-image.md} +0 -0
- package/docs/display/{image-demo/demo2.md → image/demo/d02-click-an-image-for-a-fullscreen-version.md} +0 -0
- package/docs/display/{image-demo/demo3.md → image/demo/d03-images-can-be-sized.md} +0 -0
- package/docs/display/{image-demo/demo4.md → image/demo/d04-float-images-within-text.md} +0 -0
- package/docs/display/{image.md → image/index.md} +5 -1
- package/docs/display/list-group/demo/d01-list-group.md +236 -0
- package/docs/display/list-group/index.md +8 -0
- package/docs/display/loading/logo-demo/{demo1.md → d01-logos.md} +0 -0
- package/docs/display/loading/spinner-demo/d02-spinner.md +6 -0
- package/docs/display/loading/text-content-demo/{demo1.md → d3-text-content.md} +0 -2
- package/docs/display/notification-event/demo/{demo1.md → d01-notification-event.md} +15 -24
- package/docs/display/notification-event/demo/{demo2.md → d02-read-state.md} +0 -0
- package/docs/display/notification-event/demo/{demo3.md → d03-feed.md} +0 -0
- package/docs/display/notification-event/index.md +2 -2
- package/docs/display/{progress-demo → progress/demo}/demo1.md +0 -0
- package/docs/display/{progress-demo → progress/demo}/demo2.md +0 -0
- package/docs/display/{progress-demo → progress/demo}/demo3.md +0 -0
- package/docs/display/{progress-demo → progress/demo}/demo4.md +0 -0
- package/docs/display/progress/index.md +7 -0
- package/docs/display/stat-demo/{demo1.md → demo/d01-stat.md} +0 -0
- package/docs/display/stat-demo/{demo2.md → demo/d02-applying-color.md} +0 -0
- package/docs/display/stat-demo/{demo3.md → demo/d03-text-alignment.md} +0 -0
- package/docs/display/stat-demo/{demo4.md → demo/d04-title-size.md} +0 -0
- package/docs/display/stat-demo/{demo5.md → demo/d05-reverse-the-order.md} +0 -0
- package/docs/display/stat-demo/{demo6.md → demo/d06-stat-loading.md} +0 -0
- package/docs/display/stat-demo/{demo7.md → demo/d07-putting-it-all-together.md} +0 -0
- package/docs/display/{stat.md → stat-demo/index.md} +5 -0
- package/docs/display/{text-demo/demo1.md → text/demo/d01-text.md} +0 -0
- package/docs/display/{text-demo/demo2.md → text/demo/d02-coloring-text.md} +0 -0
- package/docs/display/{text-demo/demo3.md → text/demo/d03-alignment.md} +0 -0
- package/docs/display/{text.md → text/index.md} +6 -1
- package/docs/display/{title-demo/demo1.md → title/demo/d01-title.md} +0 -0
- package/docs/display/title/index.md +6 -0
- package/docs/display/toast/{toast-list-demo/demo1.md → demo/d01-toast.md} +11 -13
- package/docs/display/{tool-tip.md → toast/index.md} +6 -1
- package/docs/display/{tool-tip-demo/demo1.md → tool-tip/demo/d01-tool-tip.md} +0 -3
- package/docs/display/{tool-tip-demo/demo2.md → tool-tip/demo/d02-wrapping-components.md} +0 -0
- package/docs/display/{tool-tip-demo/demo3.md → tool-tip/demo/d03-icontip.md} +0 -0
- package/docs/display/{tool-tip-demo/demo4.md → tool-tip/demo/d04-attaching-to.md} +0 -0
- package/docs/display/tool-tip/index.md +10 -0
- package/docs/editors/code/{inline-demo/demo1.md → demo/d01-inline.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo1.md → demo/d02-code-block.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo5.md → demo/d03-line-numbers.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo2.md → demo/d04-copy.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo3.md → demo/d05-overflow-height.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo4.md → demo/d06-white-space.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo6.md → demo/d07-line-numbers-highlighted.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo7.md → demo/d08-code-block-virtualization.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo8.md → demo/d09-flyout.md} +1 -1
- package/docs/editors/code/{code-block.md → index.md} +8 -3
- package/docs/editors/markdown-editor/base-editor-demo/demo1.md +1 -4
- package/docs/editors/markdown-editor/base-editor.md +2 -1
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo1.md +0 -2
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo2.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo3.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo4.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo5.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/index.md +1 -0
- package/docs/forms/form-controls/checkbox/index.md +1 -0
- package/docs/forms/form-controls/checkbox-group/index.md +1 -0
- package/docs/forms/form-controls/file-picker/index.md +1 -1
- package/docs/forms/form-controls/form-control-layout/demo/demo1.md +85 -69
- package/docs/forms/form-controls/form-control-layout/index.md +1 -0
- package/docs/forms/form-controls/form-control-layout-delimited/demo/demo1.md +0 -2
- package/docs/forms/form-controls/form-control-layout-delimited/index.md +1 -0
- package/docs/forms/form-controls/number-field/index.md +1 -0
- package/docs/forms/form-controls/password-field/index.md +1 -0
- package/docs/forms/form-controls/radio/index.md +1 -0
- package/docs/forms/form-controls/radio-group/index.md +1 -1
- package/docs/forms/form-controls/range/index.md +1 -0
- package/docs/forms/form-controls/search-field/index.md +1 -1
- package/docs/forms/form-controls/select/index.md +1 -1
- package/docs/forms/form-controls/switch/index.md +1 -0
- package/docs/forms/form-controls/text-field/index.md +1 -1
- package/docs/forms/form-controls/textarea/index.md +2 -0
- package/docs/forms/form-layouts/described-form-groups.md +2 -1
- package/docs/layout/accordion/index.md +14 -13
- package/docs/layout/bottom-bar/index.md +2 -1
- package/docs/layout/flex/index.md +8 -7
- package/docs/layout/flyout/index.md +2 -1
- package/docs/layout/header/index.md +2 -1
- package/docs/layout/horizontal-rule/horizontal-rule.md +2 -1
- package/docs/layout/modal/index.md +1 -1
- package/docs/layout/page-header/index.md +2 -1
- package/docs/layout/panel/index.md +1 -0
- package/docs/layout/popover/index.md +2 -1
- package/docs/layout/resizable-container/index.md +2 -1
- package/docs/layout/spacer/index.md +2 -1
- package/docs/navigation/breadcrumbs/demo/d01-basic.md +5 -7
- package/docs/navigation/button/index.md +2 -1
- package/docs/navigation/collapsible-nav.md +2 -1
- package/docs/navigation/key-pad-menu-demo/demo1.md +0 -2
- package/docs/navigation/key-pad-menu.md +2 -1
- package/docs/navigation/link-demo/demo1.md +0 -2
- package/docs/navigation/link.md +2 -1
- package/docs/navigation/side-nav-demo/demo1.md +6 -5
- package/docs/navigation/side-nav.md +2 -1
- package/docs/navigation/steps.md +2 -1
- package/docs/navigation/tabs.md +1 -0
- package/docs/templates/page-template/index.md +4 -2
- package/docs/templates/sitewide-search/index.md +2 -1
- package/docs/templates/super-date-picker/index.md +1 -1
- package/docs/utilities/auto-sizer-demo/demo1.md +0 -2
- package/docs/utilities/auto-sizer.md +2 -1
- package/docs/utilities/copy-demo/demo1.md +0 -2
- package/docs/utilities/copy.md +2 -1
- package/docs/utilities/mutation-observer-demo/demo1.md +9 -6
- package/docs/utilities/mutation-observer.md +2 -1
- package/docs/utilities/outside-click-detector-demo/demo1.md +1 -3
- package/docs/utilities/outside-click-detector.md +2 -1
- package/docs/utilities/overlay-mask-demo/demo1.md +3 -5
- package/docs/utilities/overlay-mask.md +2 -1
- package/docs/utilities/portal-demo/demo1.md +1 -1
- package/docs/utilities/portal-demo/demo2.md +15 -14
- package/docs/utilities/portal.md +2 -1
- package/docs/utilities/resize-observer-demo/demo1.md +26 -15
- package/docs/utilities/resize-observer.md +2 -1
- package/docs/utilities/responsive.md +2 -1
- package/package.json +3 -3
- package/docs/display/card/basic-card.md +0 -9
- package/docs/display/card/beta-badge.md +0 -9
- package/docs/display/card/checkable.md +0 -9
- package/docs/display/card/custom-children.md +0 -9
- package/docs/display/card/footer.md +0 -9
- package/docs/display/card/images.md +0 -9
- package/docs/display/card/layout.md +0 -9
- package/docs/display/card/selectable.md +0 -9
- package/docs/display/empty-prompt.md +0 -2
- package/docs/display/health.md +0 -9
- package/docs/display/list-group-demo/demo1.md +0 -171
- package/docs/display/list-group.md +0 -1
- package/docs/display/loading/spinner-demo/demo1.md +0 -8
- package/docs/display/progress.md +0 -1
- package/docs/display/title.md +0 -1
- package/docs/display/toast/toast-list.md +0 -1
- package/docs/editors/code/inline.md +0 -1
|
@@ -28,27 +28,32 @@
|
|
|
28
28
|
@paddingSize={{@paddingSize}}
|
|
29
29
|
...attributes
|
|
30
30
|
>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
|
|
32
|
+
{{#if (or (has-block "icon") (or @image @icon))}}
|
|
33
|
+
<div class={{this.topClasses}}>
|
|
34
|
+
{{#if (has-block "icon")}}
|
|
35
|
+
{{yield "euiCard__icon" to="icon"}}
|
|
36
|
+
{{else}}
|
|
37
|
+
{{#if (or @image @icon)}}
|
|
38
|
+
{{#if (and @image (not-eq layout "horizontal"))}}
|
|
39
|
+
<div class="euiCard__image">
|
|
40
|
+
<img src={{@image}} alt="card-top" />
|
|
41
|
+
</div>
|
|
42
|
+
{{/if}}
|
|
43
|
+
{{#if @icon}}
|
|
44
|
+
<EuiIcon
|
|
45
|
+
@iconClasses="euiCard__icon"
|
|
46
|
+
@type={{@icon}}
|
|
47
|
+
@size={{@iconSize}}
|
|
48
|
+
/>
|
|
49
|
+
{{/if}}
|
|
47
50
|
{{/if}}
|
|
48
51
|
{{/if}}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
</div>
|
|
53
|
+
{{/if}}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<div class={{this.contentClasses}}>
|
|
52
57
|
<EuiTitle class="euiCard__title" @size={{arg-or-default @titleSize "s"}}>
|
|
53
58
|
{{#if (has-block "title")}}
|
|
54
59
|
{{yield (set this "link") to="title"}}
|
|
@@ -117,7 +122,7 @@
|
|
|
117
122
|
</span>
|
|
118
123
|
{{/if}}
|
|
119
124
|
{{#if (and (eq layout "vertical") (or (has-block "footer") @footer))}}
|
|
120
|
-
<div class=
|
|
125
|
+
<div class={{this.footerClasses}}>
|
|
121
126
|
{{#if (has-block "footer")}}
|
|
122
127
|
{{yield to="footer"}}
|
|
123
128
|
{{else}}
|
|
@@ -4,6 +4,20 @@ import { EuiCardSelectProps, euiCardSelectableColor } from '../eui-card-select';
|
|
|
4
4
|
|
|
5
5
|
type EuiCardComponentArgs = {
|
|
6
6
|
selectable?: EuiCardSelectProps;
|
|
7
|
+
/**
|
|
8
|
+
* Class that will apply to the card top section.
|
|
9
|
+
*/
|
|
10
|
+
topClassName?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Class that will apply to the card content section.
|
|
14
|
+
*/
|
|
15
|
+
contentClassName?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Class that will apply to the card footer section.
|
|
19
|
+
*/
|
|
20
|
+
footerClassName?: string;
|
|
7
21
|
};
|
|
8
22
|
|
|
9
23
|
export default class EuiCardComponent extends Component<EuiCardComponentArgs> {
|
|
@@ -24,4 +38,16 @@ export default class EuiCardComponent extends Component<EuiCardComponentArgs> {
|
|
|
24
38
|
)}`
|
|
25
39
|
: undefined;
|
|
26
40
|
}
|
|
41
|
+
|
|
42
|
+
get topClasses(): string {
|
|
43
|
+
return ['euiCard__top', this.args.topClassName].join(' ');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get contentClasses(): string {
|
|
47
|
+
return ['euiCard__content', this.args.contentClassName].join(' ');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get footerClasses(): string {
|
|
51
|
+
return ['euiCard__footer', this.args.footerClassName].join(' ');
|
|
52
|
+
}
|
|
27
53
|
}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
<EuiModal
|
|
2
|
-
|
|
1
|
+
<EuiModal
|
|
2
|
+
class="euiModal--confirmation"
|
|
3
|
+
@onClose={{@onCancel}}
|
|
4
|
+
...attributes
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
{{#if (or @title (has-block 'title'))}}
|
|
3
8
|
<EuiModalHeader>
|
|
4
9
|
<EuiModalHeaderTitle>
|
|
5
10
|
{{@title}}
|
|
11
|
+
{{yield to='title'}}
|
|
6
12
|
</EuiModalHeaderTitle>
|
|
7
13
|
</EuiModalHeader>
|
|
8
14
|
{{/if}}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{{yield}}
|
|
12
|
-
</EuiModalBody>
|
|
13
|
-
{{else if @message}}
|
|
15
|
+
|
|
16
|
+
{{#if (or @message (has-block))}}
|
|
14
17
|
<EuiModalBody>
|
|
15
18
|
<EuiText>
|
|
16
19
|
{{@message}}
|
|
20
|
+
{{yield}}
|
|
17
21
|
</EuiText>
|
|
18
22
|
</EuiModalBody>
|
|
19
23
|
{{/if}}
|
|
24
|
+
|
|
20
25
|
<EuiModalFooter>
|
|
21
26
|
<EuiButtonEmpty {{on "click" @onCancel}}>
|
|
22
27
|
{{@cancelButtonText}}
|
|
@@ -31,4 +36,5 @@
|
|
|
31
36
|
{{@confirmButtonText}}
|
|
32
37
|
</EuiButton>
|
|
33
38
|
</EuiModalFooter>
|
|
39
|
+
|
|
34
40
|
</EuiModal>
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
>
|
|
9
9
|
<EuiFlexGroup @gutterSize={{arg-or-default @gutterSize "l"}}>
|
|
10
10
|
<EuiFlexItem @grow={{@descriptionFlexItemProps.grow}}>
|
|
11
|
-
<EuiTitle
|
|
11
|
+
<EuiTitle
|
|
12
|
+
class="euiDescribedFormGroup__title"
|
|
13
|
+
@size={{@titleSize}}
|
|
14
|
+
@tagName={{@titleTagName}}
|
|
15
|
+
>
|
|
12
16
|
{{yield to="title"}}
|
|
13
17
|
</EuiTitle>
|
|
14
18
|
<EuiText
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
isPaused=(arg-or-default @isFocusTrapPaused false)
|
|
26
26
|
focusTrapOptions=(arg-or-default @focusTrapOptions (hash))
|
|
27
27
|
}}
|
|
28
|
-
{{on-key "Escape" (prevent-default (stop-propagation @onClose))}}
|
|
28
|
+
{{on-key "Escape" (prevent-default (stop-propagation (optional @onClose)))}}
|
|
29
29
|
>
|
|
30
30
|
<EuiButtonIcon
|
|
31
31
|
class="euiModal__closeIcon"
|
|
32
32
|
@iconType="cross"
|
|
33
33
|
@color="text"
|
|
34
|
-
{{on "click" @onClose}}
|
|
34
|
+
{{on "click" (optional @onClose)}}
|
|
35
35
|
/>
|
|
36
36
|
<div class="euiModal__flex">
|
|
37
37
|
{{yield}}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{{!-- TODO: not fully implemented --}}
|
|
2
|
+
|
|
3
|
+
<li
|
|
4
|
+
role="option"
|
|
5
|
+
aria-selected={{and (not @disabled) (eq (type-of @checked) 'string')}}
|
|
6
|
+
class={{class-names
|
|
7
|
+
componentName='EuiSelectableListItem'
|
|
8
|
+
isFocused=@isFocused
|
|
9
|
+
}}
|
|
10
|
+
aria-disabled={{@disabled}}
|
|
11
|
+
...attributes
|
|
12
|
+
>
|
|
13
|
+
<span class="euiSelectableListItem__content">
|
|
14
|
+
{{!-- {{optionIcon}} --}}
|
|
15
|
+
{{!-- {{prependNode}} --}}
|
|
16
|
+
<span class="euiSelectableListItem__text">
|
|
17
|
+
{{yield}}
|
|
18
|
+
{{!-- {{state}} --}}
|
|
19
|
+
{{!-- {{children}} --}}
|
|
20
|
+
{{!-- {{instruction}} --}}
|
|
21
|
+
</span>
|
|
22
|
+
{{!-- {{appendNode}} --}}
|
|
23
|
+
</span>
|
|
24
|
+
</li>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const baseClass = 'euiSelectableListItem';
|
|
2
|
+
|
|
3
|
+
export const isFocusedMapping = {
|
|
4
|
+
true: `${baseClass}--isFocused`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const mapping: ComponentMapping = {
|
|
8
|
+
base: baseClass,
|
|
9
|
+
properties: {
|
|
10
|
+
isFocused: isFocusedMapping
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default mapping;
|
|
@@ -54,6 +54,7 @@ import EuiProgressData from './eui-progress-data';
|
|
|
54
54
|
import EuiRangeHighlight from './eui-range-highlight';
|
|
55
55
|
import EuiRangeInput from './eui-range-input';
|
|
56
56
|
import EuiRangeLevels from './eui-range-levels';
|
|
57
|
+
import EuiSelectableListItem from './eui-selectable-list-item';
|
|
57
58
|
import EuiSpacer from './eui-spacer';
|
|
58
59
|
import EuiStat from './eui-stat';
|
|
59
60
|
import EuiStepNumber from './eui-step-number';
|
|
@@ -123,6 +124,7 @@ const mapping: Mapping = {
|
|
|
123
124
|
EuiRangeHighlight,
|
|
124
125
|
EuiRangeInput,
|
|
125
126
|
EuiRangeLevels,
|
|
127
|
+
EuiSelectableListItem,
|
|
126
128
|
EuiSpacer,
|
|
127
129
|
EuiStat,
|
|
128
130
|
EuiStepNumber,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-selectable-list-item';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CallOut
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
1
6
|
<EuiPageHeader @pageTitle="Callout"/>
|
|
2
7
|
|
|
3
8
|
<EuiSpacer />
|
|
@@ -6,4 +11,4 @@
|
|
|
6
11
|
<strong>EuiCallOut</strong> contains a message directly related to content on the page. This includes general information, success, warning, and error messages.</p><p><strong>Keep these guidelines in mind:</strong></p><ul><li>Minimize the number of callouts per page.</li><li>Stack callouts in the order in which they require users' attention: error, warning, info, and then success.</li><li>Offer only one action per callout and ensure it's an action users can perform quickly.</li><li>If the callout has a permanent spot in the UI, but needs to be less obstructive, set the <EuiCode @language="text">size</EuiCode> property to <EuiCode @language=="text">s</EuiCode> (small).</li><li>Use an <EuiCode @language="text">icon</EuiCode> prop if it adds context.</li></ul>
|
|
7
12
|
</EuiText>
|
|
8
13
|
|
|
9
|
-
<EuiHorizontalRule />
|
|
14
|
+
<EuiHorizontalRule />
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Basic Card
|
|
2
6
|
|
|
3
7
|
<EuiText>
|
|
4
8
|
<p>At its core an <strong>EuiCard</strong> should contain a <EuiCode @language="text">title</EuiCode>,<EuiCode @language="text">description</EuiCode>, and an <EuiCode @language="text">icon</EuiCode>. You can make the whole card clickable by giving it an <EuiCode @language="text">onClick</EuiCode> handler or <EuiCode @language="text">href</EuiCode>.</p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
order: 9
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Custom children
|
|
2
6
|
|
|
3
7
|
<EuiText>
|
|
4
8
|
<p>In the event that you need <strong>more than</strong> just paragraph text for the <EuiCode>description</EuiCode>, you can suppliment with anything you need as the <EuiCode>children</EuiCode> of the component. You can also completely replace the description with custom children, but <strong>EuiCard</strong> at least one of these.</p>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Card
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
6
|
+
<EuiPageHeader @pageTitle="Card"/>
|
|
7
|
+
<EuiSpacer/>
|
|
8
|
+
<EuiText>
|
|
9
|
+
<p>
|
|
10
|
+
<strong>EuiCard</strong> is a content-oriented component built on top of EuiPanel. Be sure to check out the guidelines for properly nesting panels.
|
|
11
|
+
</p>
|
|
12
|
+
</EuiText>
|
|
13
|
+
|
|
14
|
+
<EuiHorizontalRule/>
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<EuiText>
|
|
2
|
+
<p>
|
|
3
3
|
The Comment List serves merely as a wrapper for various comments.
|
|
4
4
|
It does contain the comments from trying to connect each other in case you had multiple
|
|
5
5
|
unrelated comment lists in the same page.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The original component from the React.js framework receives a @comments object, and maps them into the EuiCommentList component. For Ember.js, just pass them as children.
|
|
8
|
+
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
</EuiText>
|
|
8
12
|
|
|
9
13
|
```hbs template
|
|
10
14
|
<EuiCommentList>
|
|
11
|
-
<EuiComment @type=
|
|
15
|
+
<EuiComment @type='regular'>
|
|
12
16
|
<:username>
|
|
13
17
|
kyloRen
|
|
14
18
|
</:username>
|
|
@@ -24,10 +28,10 @@ unrelated comment lists in the same page.
|
|
|
24
28
|
</EuiText>
|
|
25
29
|
</:body>
|
|
26
30
|
<:actions>
|
|
27
|
-
<EuiButtonIcon @iconType=
|
|
31
|
+
<EuiButtonIcon @iconType='wrench' />
|
|
28
32
|
</:actions>
|
|
29
33
|
</EuiComment>
|
|
30
|
-
<EuiComment @type=
|
|
34
|
+
<EuiComment @type='update'>
|
|
31
35
|
<:username>
|
|
32
36
|
lukeSW
|
|
33
37
|
</:username>
|
|
@@ -38,7 +42,7 @@ unrelated comment lists in the same page.
|
|
|
38
42
|
on 2015-02-05
|
|
39
43
|
</:timestamp>
|
|
40
44
|
</EuiComment>
|
|
41
|
-
<EuiComment @type=
|
|
45
|
+
<EuiComment @type='update'>
|
|
42
46
|
<:username>
|
|
43
47
|
r2d2
|
|
44
48
|
</:username>
|
|
@@ -48,8 +52,8 @@ unrelated comment lists in the same page.
|
|
|
48
52
|
<:body>
|
|
49
53
|
<EuiText>
|
|
50
54
|
<p>
|
|
51
|
-
He went into a sort of hibernation or low power mode,
|
|
52
|
-
|
|
55
|
+
He went into a sort of hibernation or low power mode, you know? Like
|
|
56
|
+
when you 'sleep' a computer.
|
|
53
57
|
</p>
|
|
54
58
|
</EuiText>
|
|
55
59
|
</:body>
|
|
@@ -57,11 +61,17 @@ unrelated comment lists in the same page.
|
|
|
57
61
|
on 2015-02-05
|
|
58
62
|
</:timestamp>
|
|
59
63
|
</EuiComment>
|
|
60
|
-
<EuiComment @timelineIcon=
|
|
64
|
+
<EuiComment @timelineIcon='listAdd' @type='update'>
|
|
61
65
|
<:username>
|
|
62
|
-
<EuiFlexGroup @responsive={{false}} @alignItems=
|
|
66
|
+
<EuiFlexGroup @responsive={{false}} @alignItems='center' @gutterSize='s'>
|
|
63
67
|
<EuiFlexItem @grow={{false}}>
|
|
64
|
-
<EuiAvatar
|
|
68
|
+
<EuiAvatar
|
|
69
|
+
@type='space'
|
|
70
|
+
@initials='FO'
|
|
71
|
+
@name='First Order'
|
|
72
|
+
@initialLength={{2}}
|
|
73
|
+
@size='s'
|
|
74
|
+
/>
|
|
65
75
|
</EuiFlexItem>
|
|
66
76
|
<EuiFlexItem @grow={{false}}>
|
|
67
77
|
firstOrder
|
|
@@ -69,12 +79,12 @@ unrelated comment lists in the same page.
|
|
|
69
79
|
</EuiFlexGroup>
|
|
70
80
|
</:username>
|
|
71
81
|
<:event>
|
|
72
|
-
<EuiFlexGroup @responsive={{false}} @alignItems=
|
|
82
|
+
<EuiFlexGroup @responsive={{false}} @alignItems='center' @gutterSize='s'>
|
|
73
83
|
<EuiFlexItem @grow={{false}}>
|
|
74
84
|
was created by
|
|
75
85
|
</EuiFlexItem>
|
|
76
86
|
<EuiFlexItem @grow={{false}}>
|
|
77
|
-
<EuiBadge @color=
|
|
87
|
+
<EuiBadge @color='accent'>snoke</EuiBadge>
|
|
78
88
|
</EuiFlexItem>
|
|
79
89
|
</EuiFlexGroup>
|
|
80
90
|
</:event>
|
|
@@ -82,13 +92,9 @@ unrelated comment lists in the same page.
|
|
|
82
92
|
on 2015-02-05
|
|
83
93
|
</:timestamp>
|
|
84
94
|
</EuiComment>
|
|
85
|
-
<EuiComment @type=
|
|
95
|
+
<EuiComment @type='regular'>
|
|
86
96
|
<:timelineIcon>
|
|
87
|
-
<EuiAvatar
|
|
88
|
-
@initials="RS"
|
|
89
|
-
@name="Rey Skywokah"
|
|
90
|
-
@type="user"
|
|
91
|
-
/>
|
|
97
|
+
<EuiAvatar @initials='RS' @name='Rey Skywokah' @type='user' />
|
|
92
98
|
</:timelineIcon>
|
|
93
99
|
<:username>
|
|
94
100
|
reySkywokah
|
|
@@ -104,11 +110,11 @@ unrelated comment lists in the same page.
|
|
|
104
110
|
</EuiText>
|
|
105
111
|
</:body>
|
|
106
112
|
<:actions>
|
|
107
|
-
<EuiButtonIcon @iconType=
|
|
113
|
+
<EuiButtonIcon @iconType='questionInCircle' />
|
|
108
114
|
</:actions>
|
|
109
115
|
<:timestamp>
|
|
110
116
|
on 2015-02-05
|
|
111
117
|
</:timestamp>
|
|
112
118
|
</EuiComment>
|
|
113
119
|
</EuiCommentList>
|
|
114
|
-
```
|
|
120
|
+
```
|
|
File without changes
|
package/docs/display/{description-list-demo/demo2.md → description-list/demo/d02-reverse-style.md}
RENAMED
|
File without changes
|
package/docs/display/{description-list-demo/demo3.md → description-list/demo/d03-as-columns.md}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Empty Prompt
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
6
|
+
<EuiPageHeader @pageTitle="Empty prompt"/>
|
|
7
|
+
<EuiSpacer/>
|
|
8
|
+
<EuiText>
|
|
9
|
+
<p>
|
|
10
|
+
The <strong>EuiEmptyPrompt</strong> is the building block to create an empty state. You can use it as a placeholder for any type of empty content. They are especially helpful for replacing entire pages or parts of a product that contain no content.
|
|
11
|
+
</p>
|
|
12
|
+
</EuiText>
|
|
13
|
+
<EuiHorizontalRule />
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Health
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
6
|
+
<EuiPageHeader @pageTitle="Health"/>
|
|
7
|
+
|
|
8
|
+
<EuiHorizontalRule />
|
|
9
|
+
<EuiText>
|
|
10
|
+
<p>
|
|
11
|
+
<p>The <strong>EuiHealth</strong> component should be used when showing comparitive health of listed objects (like servers, HTTP response status codes(as per convenience), nodes, indexes..etc). Because icons are vague and bulky and color alone does not work, color plus text provides a recognizable, lightweight combo that works in most situations.</p>
|
|
12
|
+
</p>
|
|
13
|
+
</EuiText>
|
|
File without changes
|