@ember-eui/core 1.5.0 → 1.6.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  ### Master
4
4
 
5
+ ### 1.6.3
6
+ 🐛 Bug / Fixes
7
+ `@ember-eui/core`
8
+ - Fix inline-styling weird bug
9
+
10
+ ### 1.6.2
11
+ 🐛 Bug / Fixes
12
+ `@ember-eui/validated-form`
13
+ - Bubble the change correctly from `<Form.FieldMarkdownEditor />`
14
+ ### 1.6.1
15
+ 🐛 Bug / Fixes
16
+ `@ember-eui/core`
17
+ - Add default yield block for `<EuiStat />`
18
+
19
+ ### 1.6.0
20
+ 🚀 Enhancements
21
+ `@ember-eui/core`
22
+ - `<EuiStat/>` component!
5
23
  ### 1.5.0
6
24
  🚀 Enhancements
7
25
  `@ember-eui/validated-form`
@@ -2,37 +2,46 @@
2
2
  <EuiOverlayMask @headerZindexLocation="below" {{on "click" @onClose}} />
3
3
  {{/if}}
4
4
  {{set-body-class "euiBody--hasFlyout"}}
5
- <div
6
- role="dialog"
7
- class={{class-names
8
- (if (eq @maxWidth true) "euiFlyout--maxWidth-default")
9
- componentName="EuiFlyout"
10
- size=(arg-or-default @size "m")
11
- }}
12
- tabindex={{0}}
13
- ...attributes
14
- {{style
15
- (if (not (or (eq @maxWidth false) (eq @maxWidth true))) (inline-styles max-width=@maxWidth))
16
- }}
17
- {{focus-trap
18
- isActive=(arg-or-default @isFocusTrapActive true)
19
- shouldSelfFocus=(arg-or-default @shouldSelfFocus true)
20
- isPaused=(arg-or-default @isFocusTrapPaused false)
21
- focusTrapOptions=(arg-or-default
22
- @focusTrapOptions (hash allowOutsideClick=true clickOutsideDeactivates=(not @ownFocus))
23
- )
24
- }}
25
- {{on-key "Escape" @onClose}}
26
- >
27
- {{#if (and @onClose (not @hideCloseButton))}}
28
- <EuiButtonIcon
29
- class="euiFlyout__closeButton"
30
- aria-label={{or @closeButtonAriaLabel @closeAriaLabel}}
31
- @iconType="cross"
32
- @color="text"
33
- data-test-subj="euiFlyoutCloseButton"
34
- {{on "click" @onClose}}
35
- />
36
- {{/if}}
37
- {{yield}}
38
- </div>
5
+
6
+ {{#let
7
+ (if
8
+ (not (or (eq @maxWidth false) (eq @maxWidth true)))
9
+ (inline-styles max-width=@maxWidth)
10
+ (hash)
11
+ )
12
+ as |inlineStyles|
13
+ }}
14
+ <div
15
+ role="dialog"
16
+ class={{class-names
17
+ (if (eq @maxWidth true) "euiFlyout--maxWidth-default")
18
+ componentName="EuiFlyout"
19
+ size=(arg-or-default @size "m")
20
+ }}
21
+ tabindex={{0}}
22
+ ...attributes
23
+ {{style inlineStyles}}
24
+ {{focus-trap
25
+ isActive=(arg-or-default @isFocusTrapActive true)
26
+ shouldSelfFocus=(arg-or-default @shouldSelfFocus true)
27
+ isPaused=(arg-or-default @isFocusTrapPaused false)
28
+ focusTrapOptions=(arg-or-default
29
+ @focusTrapOptions
30
+ (hash allowOutsideClick=true clickOutsideDeactivates=(not @ownFocus))
31
+ )
32
+ }}
33
+ {{on-key "Escape" @onClose}}
34
+ >
35
+ {{#if (and @onClose (not @hideCloseButton))}}
36
+ <EuiButtonIcon
37
+ class="euiFlyout__closeButton"
38
+ aria-label={{or @closeButtonAriaLabel @closeAriaLabel}}
39
+ @iconType="cross"
40
+ @color="text"
41
+ data-test-subj="euiFlyoutCloseButton"
42
+ {{on "click" @onClose}}
43
+ />
44
+ {{/if}}
45
+ {{yield}}
46
+ </div>
47
+ {{/let}}
@@ -1,18 +1,24 @@
1
- <ul
2
- class={{class-names
3
- (if (eq @maxWidth true) "euiListGroup-maxWidthDefault")
4
- (if @bordered "euiListGroup-bordered")
5
- (if @flush "euiListGroup-flush")
6
- componentName="EuiListGroup"
7
- gutterSize=(arg-or-default @gutterSize "s")
8
- }}
9
- ...attributes
10
- {{style
11
- (if
12
- (and @maxWidth (not-eq @maxWidth true))
13
- (inline-styles componentName="EuiListGroup" componentArgs=(hash maxWidth=@maxWidth))
1
+ {{#let
2
+ (if
3
+ (and @maxWidth (not-eq @maxWidth true))
4
+ (inline-styles
5
+ componentName="EuiListGroup" componentArgs=(hash maxWidth=@maxWidth)
14
6
  )
15
- }}
16
- >
17
- {{yield}}
18
- </ul>
7
+ (hash)
8
+ )
9
+ as |inlineStyles|
10
+ }}
11
+ <ul
12
+ class={{class-names
13
+ (if (eq @maxWidth true) "euiListGroup-maxWidthDefault")
14
+ (if @bordered "euiListGroup-bordered")
15
+ (if @flush "euiListGroup-flush")
16
+ componentName="EuiListGroup"
17
+ gutterSize=(arg-or-default @gutterSize "s")
18
+ }}
19
+ ...attributes
20
+ {{style inlineStyles}}
21
+ >
22
+ {{yield}}
23
+ </ul>
24
+ {{/let}}
@@ -12,7 +12,7 @@
12
12
  </EuiToolTip>
13
13
 
14
14
  {{/each}}
15
- <span className="euiMarkdownEditorToolbar__divider"></span>
15
+ <span class="euiMarkdownEditorToolbar__divider"></span>
16
16
  {{#each this.listButtons as |item|}}
17
17
  <EuiToolTip @content={{item.label}} @delay="long">
18
18
  <EuiButtonIcon
@@ -26,7 +26,7 @@
26
26
  </EuiToolTip>
27
27
 
28
28
  {{/each}}
29
- <span className="euiMarkdownEditorToolbar__divider"></span>
29
+ <span class="euiMarkdownEditorToolbar__divider"></span>
30
30
  {{#each this.quoteCodeLinkButtons as |item|}}
31
31
  <EuiToolTip @content={{item.label}} @delay="long">
32
32
  <EuiButtonIcon
@@ -40,7 +40,7 @@
40
40
 
41
41
  {{/each}}
42
42
  {{#if (gte this.uiPlugins.length 0)}}
43
- <span className="euiMarkdownEditorToolbar__divider"></span>
43
+ <span class="euiMarkdownEditorToolbar__divider"></span>
44
44
  {{#each this.uiPlugins as |plugin|}}
45
45
  {{#let
46
46
  (and @selectedNode (eq @selectedNode.type plugin.name))
@@ -1,3 +1,4 @@
1
+ {{! This hbs was inspired by https://github.com/ampatspell/ember-cli-remark-static/blob/v3.0.5/addon/components/remark.hbs }}
1
2
  <div class="euiMarkdownFormat">
2
3
  {{this.result.element}}
3
4
  {{#each this.result.components as |CompNode|}}
@@ -10,4 +11,4 @@
10
11
  {{/let}}
11
12
  {{/in-element}}
12
13
  {{/each}}
13
- </div>
14
+ </div>
@@ -1,28 +1,37 @@
1
- <div
2
- class={{class-names "euiModal" (if (eq @maxWidth true) "euiModal--maxWidth-default")}}
3
- tabindex="0"
4
- ...attributes
5
- {{style
6
- (if
7
- (and @maxWidth (not-eq @maxWidth true))
8
- (inline-styles componentName="EuiModal" componentArgs=(hash maxWidth=@maxWidth))
1
+ {{#let
2
+ (if
3
+ (and @maxWidth (not-eq @maxWidth true))
4
+ (inline-styles
5
+ componentName="EuiModal" componentArgs=(hash maxWidth=@maxWidth)
9
6
  )
10
- }}
11
- {{focus-trap
12
- isActive=(arg-or-default @isFocusTrapActive true)
13
- shouldSelfFocus=(arg-or-default @shouldSelfFocus true)
14
- isPaused=(arg-or-default @isFocusTrapPaused false)
15
- focusTrapOptions=(arg-or-default @focusTrapOptions (hash))
16
- }}
17
- {{on-key "Escape" @onClose}}
18
- >
19
- <EuiButtonIcon
20
- class="euiModal__closeIcon"
21
- @iconType="cross"
22
- @color="text"
23
- {{on "click" @onClose}}
24
- />
25
- <div class="euiModal__flex">
26
- {{yield}}
7
+ (hash)
8
+ )
9
+ as |inlineStyles|
10
+ }}
11
+ <div
12
+ class={{class-names
13
+ "euiModal"
14
+ (if (eq @maxWidth true) "euiModal--maxWidth-default")
15
+ }}
16
+ tabindex="0"
17
+ ...attributes
18
+ {{style inlineStyles}}
19
+ {{focus-trap
20
+ isActive=(arg-or-default @isFocusTrapActive true)
21
+ shouldSelfFocus=(arg-or-default @shouldSelfFocus true)
22
+ isPaused=(arg-or-default @isFocusTrapPaused false)
23
+ focusTrapOptions=(arg-or-default @focusTrapOptions (hash))
24
+ }}
25
+ {{on-key "Escape" @onClose}}
26
+ >
27
+ <EuiButtonIcon
28
+ class="euiModal__closeIcon"
29
+ @iconType="cross"
30
+ @color="text"
31
+ {{on "click" @onClose}}
32
+ />
33
+ <div class="euiModal__flex">
34
+ {{yield}}
35
+ </div>
27
36
  </div>
28
- </div>
37
+ {{/let}}
@@ -0,0 +1,16 @@
1
+ {{#if @descriptionElement}}
2
+ {{#let (element @descriptionElement) as |DescriptionElement|}}
3
+ <EuiText class="euiStat__description" @size="s">
4
+ <DescriptionElement aria-hidden="true">
5
+ {{yield}}
6
+ </DescriptionElement>
7
+ </EuiText>
8
+ {{/let}}
9
+
10
+ {{else}}
11
+ <EuiText class="euiStat__description" @size="s">
12
+ <p aria-hidden="true">
13
+ {{yield}}
14
+ </p>
15
+ </EuiText>
16
+ {{/if}}
@@ -0,0 +1,83 @@
1
+ {{#let
2
+ (class-names
3
+ textAlign=(arg-or-default @textAlign "left") componentName="EuiStat"
4
+ )
5
+ (class-names
6
+ "euiStat__title"
7
+ (if @isLoading "euiStat__title-isLoading")
8
+ color=(arg-or-default @titleColor "default")
9
+ addBase=false
10
+ componentName="EuiStat"
11
+ )
12
+ (arg-or-default @reverse false)
13
+ (arg-or-default @titleSize "l")
14
+ as |classes titleClasses reverse titleSize|
15
+ }}
16
+ <div class={{classes}} ...attributes>
17
+ {{#if reverse}}
18
+ <EuiStat::Title
19
+ class={{titleClasses}}
20
+ @titleElement={{@titleElement}}
21
+ @titleSize={{titleSize}}
22
+ @isColorClass={{this.isColorClass}}
23
+ >
24
+ {{#if @isLoading}}
25
+ --
26
+ {{else}}
27
+ {{#if (has-block "title")}}
28
+ {{yield to="title"}}
29
+ {{else}}
30
+ {{@title}}
31
+ {{/if}}
32
+ {{/if}}
33
+ </EuiStat::Title>
34
+ <EuiStat::Description
35
+ @descriptionElement={{@descriptionElement}}
36
+ >
37
+ {{#if (has-block "description")}}
38
+ {{yield to="description"}}
39
+ {{else}}
40
+ {{@description}}
41
+ {{/if}}
42
+ </EuiStat::Description>
43
+ {{else}}
44
+ <EuiStat::Description
45
+ @descriptionElement={{@descriptionElement}}
46
+ >
47
+ {{#if (has-block "description")}}
48
+ {{yield to="description"}}
49
+ {{else}}
50
+ {{@description}}
51
+ {{/if}}
52
+ </EuiStat::Description>
53
+ <EuiStat::Title
54
+ class={{titleClasses}}
55
+ @titleElement={{@titleElement}}
56
+ @titleSize={{titleSize}}
57
+ @isColorClass={{this.isColorClass}}
58
+ >
59
+ {{#if @isLoading}}
60
+ --
61
+ {{else}}
62
+ {{#if (has-block "title")}}
63
+ {{yield to="title"}}
64
+ {{else}}
65
+ {{@title}}
66
+ {{/if}}
67
+ {{/if}}
68
+ </EuiStat::Title>
69
+ {{/if}}
70
+ {{#if this.screenReader}}
71
+ <p {{screen-reader-only}}>
72
+ {{#if reverse}}
73
+ {{@title}}
74
+ {{@description}}
75
+ {{else}}
76
+ {{@description}}
77
+ {{@title}}
78
+ {{/if}}
79
+ </p>
80
+ {{/if}}
81
+ {{yield}}
82
+ </div>
83
+ {{/let}}
@@ -0,0 +1,45 @@
1
+ import Component from '@glimmer/component';
2
+ import { colorMapping } from '../../utils/css-mappings/eui-stat';
3
+ import { sizeMapping } from '../../utils/css-mappings/eui-title';
4
+ import { keysOf } from '../common';
5
+
6
+ type EuiTitleSize = keyof typeof sizeMapping;
7
+
8
+ export const COLORS = keysOf(colorMapping);
9
+
10
+ export const isColorClass = (
11
+ input: string
12
+ ): input is keyof typeof colorMapping => {
13
+ return colorMapping.hasOwnProperty(input);
14
+ };
15
+
16
+ type StatArgs = {
17
+ /**
18
+ * The color of the title text
19
+ */
20
+ titleColor?: keyof typeof colorMapping | string;
21
+
22
+ /**
23
+ * Size of the title. See EuiTitle for options ('s', 'm', 'l'... etc)
24
+ */
25
+ titleSize?: EuiTitleSize;
26
+
27
+ title?: string | Component;
28
+ description?: string | Component;
29
+ };
30
+
31
+ export default class EuiStart extends Component<StatArgs> {
32
+ get isColorClass() {
33
+ if (this.args.titleColor) {
34
+ return isColorClass(this.args.titleColor);
35
+ }
36
+ return false;
37
+ }
38
+
39
+ get useScreenReader() {
40
+ return (
41
+ typeof this.args.title === 'string' &&
42
+ typeof this.args.description === 'string'
43
+ );
44
+ }
45
+ }
@@ -0,0 +1,18 @@
1
+ {{#if @titleElement}}
2
+ {{#let (element @titleElement) as |TitleElement|}}
3
+ <EuiTitle @size={{@titleSize}} ...attributes>
4
+ <TitleElement
5
+ aria-hidden="true"
6
+ {{style (if @isColorClass (hash color=@titleColor))}}
7
+ >
8
+ {{yield}}
9
+ </TitleElement>
10
+ </EuiTitle>
11
+ {{/let}}
12
+ {{else}}
13
+ <EuiTitle @size={{@titleSize}} ...attributes>
14
+ <p aria-hidden="true" {{style (if @isColorClass (hash color=@titleColor))}}>
15
+ {{yield}}
16
+ </p>
17
+ </EuiTitle>
18
+ {{/if}}
@@ -27,7 +27,7 @@
27
27
  />
28
28
  {{/if}}
29
29
 
30
- <span className="euiToastHeader__title">
30
+ <span class="euiToastHeader__title">
31
31
  {{@title}}
32
32
  </span>
33
33
  </div>
@@ -40,8 +40,12 @@ interface Options extends IObjectKeys {
40
40
  *
41
41
  * @param classes - List of classes that will be joined
42
42
  */
43
- export function classNames(classNames: string[] = [], options: Options): string {
43
+ export function classNames(
44
+ classNames: string[] = [],
45
+ options: Options & { addBase: boolean }
46
+ ): string {
44
47
  let { componentName, ...rest } = options;
48
+ let includeBase = options.addBase !== false;
45
49
  let str = `${classNames.join(' ')}`;
46
50
  if (options.componentName) {
47
51
  assert(
@@ -49,7 +53,9 @@ export function classNames(classNames: string[] = [], options: Options): string
49
53
  cssMappings[options.componentName] !== undefined
50
54
  );
51
55
  const component = cssMappings[options.componentName];
52
- str = `${str} ${component.base}`;
56
+ if (includeBase) {
57
+ str = `${str} ${component.base}`;
58
+ }
53
59
 
54
60
  for (let key in rest) {
55
61
  if (component.properties[key] && component.properties[key][rest[key]]) {
@@ -0,0 +1,26 @@
1
+ export const baseClass = 'euiStat';
2
+
3
+ export const textAlignMapping = {
4
+ left: `${baseClass}--leftAligned`,
5
+ center: `${baseClass}--centerAligned`,
6
+ right: `${baseClass}--rightAligned`
7
+ };
8
+
9
+ export const colorMapping = {
10
+ default: '',
11
+ subdued: `${baseClass}__title--subdued`,
12
+ primary: `${baseClass}__title--primary`,
13
+ success: `${baseClass}__title--success`,
14
+ danger: `${baseClass}__title--danger`,
15
+ accent: `${baseClass}__title--accent`
16
+ };
17
+
18
+ const mapping: ComponentMapping = {
19
+ base: baseClass,
20
+ properties: {
21
+ textAlign: textAlignMapping,
22
+ color: colorMapping
23
+ }
24
+ };
25
+
26
+ export default mapping;
@@ -53,8 +53,10 @@ import EuiToolTip from './eui-tool-tip';
53
53
  import EuiToast from './eui-toast';
54
54
  import EuiGlobalToastList from './eui-global-toast-list';
55
55
  import EuiCodeBlockImpl from './eui-code-block-impl';
56
+ import EuiStat from './eui-stat';
56
57
 
57
58
  const mapping: Mapping = {
59
+ EuiStat,
58
60
  EuiCodeBlockImpl,
59
61
  EuiAccordion,
60
62
  EuiIcon,
@@ -1,3 +1,7 @@
1
+ /*
2
+ This util was extracted from https://github.com/ampatspell/ember-cli-remark-static/blob/v3.0.5/addon/util/to-dom.js
3
+ */
4
+
1
5
  import { assert } from '@ember/debug';
2
6
  import { RehypeNode } from '../markdown-types';
3
7
 
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/components/eui-stat/description';
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/components/eui-stat';
@@ -0,0 +1 @@
1
+ export { default } from '@ember-eui/core/components/eui-stat/title';
@@ -0,0 +1,131 @@
1
+ ---
2
+ order: 1
3
+ ---
4
+ # Demo
5
+
6
+ ```hbs template
7
+ <div>
8
+ <EuiFlexGroup>
9
+ <EuiFlexItem>
10
+ <EuiStat @title='7,600 mm' @description='Total people' />
11
+ </EuiFlexItem>
12
+ </EuiFlexGroup>
13
+ </div>
14
+ <EuiSpacer />
15
+ <div>
16
+ <EuiFlexGroup>
17
+ <EuiFlexItem>
18
+ <EuiStat
19
+ @title='22,123'
20
+ @description='Total people'
21
+ @titleColor='primary'
22
+ />
23
+ </EuiFlexItem>
24
+ <EuiFlexItem>
25
+ <EuiStat
26
+ @title='22,123'
27
+ @description='Total people'
28
+ @titleColor='accent'
29
+ />
30
+ </EuiFlexItem>
31
+ <EuiFlexItem>
32
+ <EuiStat
33
+ @title='22,123'
34
+ @description='Total people'
35
+ @titleColor='danger'
36
+ />
37
+ </EuiFlexItem>
38
+ </EuiFlexGroup>
39
+ </div>
40
+
41
+ <EuiSpacer />
42
+ <div>
43
+ <EuiFlexGroup>
44
+ <EuiFlexItem>
45
+ <EuiStat
46
+ @title='22,123'
47
+ @description='Total people'
48
+ @isLoading={{this.isLoading}}
49
+ @titleColor='primary'
50
+ />
51
+ <EuiSpacer />
52
+ <EuiSwitch
53
+ @label='Show as loading'
54
+ @checked={{this.isLoading}}
55
+ @onChange={{pick 'target.checked' (set this 'isLoading')}}
56
+ />
57
+ </EuiFlexItem>
58
+ </EuiFlexGroup>
59
+ </div>
60
+ <EuiSpacer />
61
+ <div>
62
+ <EuiFlexGroup>
63
+ <EuiFlexItem>
64
+ <EuiPanel>
65
+ <EuiStat
66
+ @title='8,888'
67
+ @description='Total widgets'
68
+ @textAlign='right'
69
+ @isLoading={{this.isLoading}}
70
+ >
71
+ <EuiIcon @type='empty' />
72
+ </EuiStat>
73
+ </EuiPanel>
74
+ </EuiFlexItem>
75
+ <EuiFlexItem>
76
+ <EuiPanel>
77
+ <EuiStat
78
+ @title='2,000'
79
+ @description='Pending widgets'
80
+ @titleColor='accent'
81
+ @textAlign='right'
82
+ @isLoading={{this.Loading}}
83
+ >
84
+ <EuiIcon @type='clock' @color='accent' />
85
+ </EuiStat>
86
+ </EuiPanel>
87
+ </EuiFlexItem>
88
+ <EuiFlexItem>
89
+ <EuiPanel>
90
+ <EuiStat
91
+ @title='6,800'
92
+ @description='Success widgets'
93
+ @titleColor='success'
94
+ @textAlign='right'
95
+ @isLoading={{this.isLoading}}
96
+ >
97
+ <EuiIcon @type='check' @color='success' />
98
+ </EuiStat>
99
+ </EuiPanel>
100
+ </EuiFlexItem>
101
+ <EuiFlexItem>
102
+ <EuiPanel>
103
+ <EuiStat
104
+ @title='88'
105
+ @description='Error widgets'
106
+ @titleColor='danger'
107
+ @textAlign='right'
108
+ @isLoading={{this.isLoading}}
109
+ >
110
+ <EuiIcon @type='alert' @color='danger' />
111
+ </EuiStat>
112
+ </EuiPanel>
113
+ </EuiFlexItem>
114
+ </EuiFlexGroup>
115
+ <EuiSpacer />
116
+ <EuiSwitch
117
+ @label='Show as loading'
118
+ @checked={{this.isLoading}}
119
+ @onChange={{pick 'target.checked' (set this 'isLoading')}}
120
+ />
121
+ </div>
122
+ ```
123
+
124
+ ```js component
125
+ import Component from '@glimmer/component';
126
+ import { tracked } from '@glimmer/tracking';
127
+
128
+ export default class StatDemoComponent extends Component {
129
+ @tracked isLoading = true;
130
+ }
131
+ ```
@@ -0,0 +1,59 @@
1
+ # Demo
2
+
3
+ <EuiTitle>Title size</EuiTitle>
4
+ <EuiText>
5
+ title uses the <EuiCode>EuiTitle</EuiCode> component and thus uses the same sizing property
6
+ values (applied via the titleSize property). Although all EuiTitle sizes are
7
+ available, suggested sizes include <EuiCode>'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs'</EuiCode>. By
8
+ default, the size is set to large <EuiCode>l</EuiCode>. The @description label cannot be
9
+ re-sized via component properties.
10
+ </EuiText>
11
+ <EuiSpacer/>
12
+
13
+ ```hbs template
14
+ <div>
15
+ <EuiFlexGroup>
16
+ <EuiFlexItem>
17
+ <EuiStat @title='1,000,000' @description='Large size' @titleSize='l' />
18
+ </EuiFlexItem>
19
+ <EuiFlexItem>
20
+ <EuiStat @title='1,000,000' @description='Medium size' @titleSize='m' />
21
+ </EuiFlexItem>
22
+ <EuiFlexItem>
23
+ <EuiStat @title='1,000,000' @description='Small size' @titleSize='s' />
24
+ </EuiFlexItem>
25
+ </EuiFlexGroup>
26
+ <EuiFlexGroup>
27
+ <EuiFlexItem>
28
+ <EuiStat
29
+ @title='1,000,000'
30
+ @description='Extra small size'
31
+ @titleSize='xs'
32
+ />
33
+ </EuiFlexItem>
34
+ <EuiFlexItem>
35
+ <EuiStat
36
+ @title='1,000,000'
37
+ @description='Extra extra small size'
38
+ @titleSize='xxs'
39
+ />
40
+ </EuiFlexItem>
41
+ <EuiFlexItem>
42
+ <EuiStat
43
+ @title='1,000,000'
44
+ @description='Extra extra extra small size'
45
+ @titleSize='xxxs'
46
+ />
47
+ </EuiFlexItem>
48
+ </EuiFlexGroup>
49
+ </div>
50
+ ```
51
+
52
+ ```js component
53
+ import Component from '@glimmer/component';
54
+ import { tracked } from '@glimmer/tracking';
55
+
56
+ export default class StatDemoComponent extends Component {
57
+ @tracked isLoading = true;
58
+ }
59
+ ```
@@ -0,0 +1 @@
1
+ # Stat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "1.5.0",
3
+ "version": "1.6.3",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -154,5 +154,5 @@
154
154
  "volta": {
155
155
  "node": "12.22.1"
156
156
  },
157
- "gitHead": "51aac7b1e346dcd59cf60693be8df778c9020237"
157
+ "gitHead": "9a24c611ad631adc96733da28942a10301abb05e"
158
158
  }