@ember-eui/core 5.12.1 → 5.12.4

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.
@@ -1,3 +1,3 @@
1
1
  <span class="euiBadgeGroup__item">
2
2
  {{yield}}
3
- </span>
3
+ </span>
@@ -2,45 +2,44 @@
2
2
  (arg-or-default @baseClassName "euiButton")
3
3
  (if
4
4
  @element
5
- (element @element)
6
- (if
7
- (and @href (not (or @isLoading @isDisabled)))
8
- (element "a")
9
- (element "button")
10
- )
5
+ @element
6
+ (if (and @href (not (or @isLoading @isDisabled))) "a" "button")
11
7
  )
12
- as |baseClassName Element|
8
+ as |baseClassName theElement|
13
9
  }}
14
- <Element
15
- class={{class-names
16
- (if @fill (concat baseClassName "--fill"))
17
- (if @fullWidth (concat baseClassName "--fullWidth"))
18
- (if
19
- (or @isLoading @isDisabled @disabled)
20
- (concat baseClassName "-isDisabled")
21
- )
22
- componentName=(classify baseClassName)
23
- color=(arg-or-default @color "primary")
24
- size=@size
25
- }}
26
- disabled={{or @isLoading @isDisabled @disabled}}
27
- href={{@href}}
28
- target={{@target}}
29
- aria-pressed={{if @isSelected "true" null}}
30
- ...attributes
31
- >
32
- <EuiButtonContent
33
- class="euiButton__content {{@contentClasses}}"
34
- @isLoading={{@isLoading}}
35
- @iconType={{@iconType}}
36
- @iconSize={{@iconSize}}
37
- @iconSide={{@iconSide}}
38
- @iconClasses={{@iconClasses}}
39
- @useSvg={{@useSvg}}
40
- @useComponent={{@useComponent}}
41
- @textClasses={{class-names "euiButton__text" @textClasses}}
10
+ {{#let (element theElement) as |Element|}}
11
+ <Element
12
+ class={{class-names
13
+ (if @fill (concat baseClassName "--fill"))
14
+ (if @fullWidth (concat baseClassName "--fullWidth"))
15
+ (if
16
+ (or @isLoading @isDisabled @disabled)
17
+ (concat baseClassName "-isDisabled")
18
+ )
19
+ componentName=(classify baseClassName)
20
+ color=(arg-or-default @color "primary")
21
+ size=@size
22
+ }}
23
+ disabled={{or @isLoading @isDisabled @disabled}}
24
+ href={{@href}}
25
+ target={{@target}}
26
+ aria-pressed={{if @isSelected "true" null}}
27
+ type={{if (eq theElement "button") (arg-or-default @type "button") null}}
28
+ ...attributes
42
29
  >
43
- {{yield}}
44
- </EuiButtonContent>
45
- </Element>
30
+ <EuiButtonContent
31
+ class="euiButton__content {{@contentClasses}}"
32
+ @isLoading={{@isLoading}}
33
+ @iconType={{@iconType}}
34
+ @iconSize={{@iconSize}}
35
+ @iconSide={{@iconSide}}
36
+ @iconClasses={{@iconClasses}}
37
+ @useSvg={{@useSvg}}
38
+ @useComponent={{@useComponent}}
39
+ @textClasses={{class-names "euiButton__text" @textClasses}}
40
+ >
41
+ {{yield}}
42
+ </EuiButtonContent>
43
+ </Element>
44
+ {{/let}}
46
45
  {{/let}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.12.1",
3
+ "version": "5.12.4",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -55,7 +55,7 @@
55
55
  "@elastic/datemath": "^5.0.3",
56
56
  "@elastic/eui": "41.4.0",
57
57
  "@ember/render-modifiers": "^2.0.4",
58
- "@html-next/vertical-collection": "3.0.0",
58
+ "@html-next/vertical-collection": "4.0.0",
59
59
  "@types/lodash-es": "^4.17.4",
60
60
  "@types/refractor": "^3.0.0",
61
61
  "chroma-js": "^2.1.0",
@@ -186,5 +186,5 @@
186
186
  "volta": {
187
187
  "extends": "../../package.json"
188
188
  },
189
- "gitHead": "70d429facc95d24a14b0ee86a3997ee76182116c"
189
+ "gitHead": "301908259ce0bc2b0308966f411927a3493874de"
190
190
  }