Skip to content

Commit f548ab5

Browse files
committed
Merge branch 'master' of https://github.com/prysmex/ember-eui
2 parents da41eef + 7f66980 commit f548ab5

File tree

48 files changed

+1822
-948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1822
-948
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.0.0-alpha.6",
2+
"version": "5.0.0",
33
"packages": [
44
"packages/*"
55
],

packages/changeset-form/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ember-eui/changeset-form",
3-
"version": "5.0.0-alpha.6",
3+
"version": "5.0.0",
44
"description": "Ember Eui changeset integration",
55
"keywords": [
66
"ember-addon",
@@ -30,7 +30,7 @@
3030
"postpack": "ember ts:clean"
3131
},
3232
"dependencies": {
33-
"@ember-eui/core": "^5.0.0-alpha.6",
33+
"@ember-eui/core": "^5.0.0",
3434
"ember-changeset": "github:betocantu93/ember-changeset#v3.15.1",
3535
"ember-changeset-validations": "^3.16.0",
3636
"ember-cli-babel": "^7.26.11",

packages/core/addon/components/eui-page-body/index.hbs

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,46 @@
11
{{#let
2-
(arg-or-default @tagName "div")
32
(arg-or-default @restrictWidth false)
3+
(arg-or-default @tagName "div")
44
(arg-or-default @borderRadius "none")
55
(arg-or-default @paddingSize (if @panelled "l" "none"))
6-
as |tagName restrictWidth borderRadius paddingSize|
6+
as |restrictWidth tagName borderRadius paddingSize|
77
}}
88

9-
{{#let
10-
(if
11-
(eq restrictWidth true)
12-
(hash widthClassName="euiPageBody--restrictWidth-custom")
13-
(if
14-
(eq restrictWidth false)
15-
(hash
16-
widthClassName="euiPageBody--restrictWidth-default"
17-
widthStyle=restrictWidth
18-
)
19-
)
20-
)
21-
as |styling|
22-
}}
9+
{{#let (eui-page-restrict-width restrictWidth @style) as |styling|}}
2310
{{#if @panelled}}
2411
<EuiPanel
2512
class={{class-names
13+
(if (eq borderRadius "none") "euiPageBody--borderRadiusNone")
14+
(if
15+
styling.widthClassName
16+
(concat "euiPageBody--" styling.widthClassName)
17+
)
2618
componentName="EuiPageBody"
27-
borderRadiusSize=borderRadius
2819
paddingSize=@paddingSize
2920
}}
3021
@paddingSize={{paddingSize}}
3122
@borderRadius={{borderRadius}}
32-
{{!-- @paddingSize={{arg-or-default @paddingSize "none"}} --}}
33-
{{!-- @restrictWidth={{@restrictWidth}} --}}
23+
@color={{@color}}
24+
@hasBorder={{@hasBorder}}
25+
@hasShadow={{@hasShadow}}
26+
{{style styling.newStyle}}
3427
...attributes
35-
{{style
36-
(if styling.widthStyle (inline-styles max-width=styling.widthStyle))
37-
}}
3828
>
39-
{{!-- <div
40-
class={{class-names
41-
componentName="EuiPageBody"
42-
borderRadiusSize=borderRadius
43-
paddingSize=paddingSize
44-
}}
45-
> --}}
4629
{{yield}}
47-
{{! </div> }}
4830
</EuiPanel>
4931
{{else}}
5032
{{#let (element tagName) as |Tag|}}
5133
<Tag
5234
class={{class-names
35+
(if (eq borderRadius "none") "euiPageBody--borderRadiusNone")
36+
(if
37+
styling.widthClassName
38+
(concat "euiPageBody--" styling.widthClassName)
39+
)
5340
componentName="EuiPageBody"
54-
borderRadiusSize=borderRadius
55-
paddingSize=paddingSize
56-
}}
57-
style={{if
58-
styling.widthStyle
59-
(inline-styles max-width=styling.widthStyle)
41+
paddingSize=@paddingSize
6042
}}
43+
{{style styling.newStyle}}
6144
...attributes
6245
>
6346
{{yield}}
Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
<div
2-
class={{class-names
3-
(if
4-
@restrictWidth
5-
"euiPage--restrictWidth-custom"
6-
"euiPage--restrictWidth-default"
7-
)
8-
componentName="EuiPageContentBody"
9-
paddingSize=@paddingSize
10-
}}
11-
{{style (inline-styles width=@restrictWidth)}}
12-
...attributes
13-
>
14-
{{yield}}
15-
</div>
1+
{{#let
2+
(eui-page-restrict-width (arg-or-default @restrictWidth false) @style)
3+
as |styling|
4+
}}
5+
<div
6+
class={{class-names
7+
(concat "euiPage--" styling.widthClassName)
8+
componentName="EuiPageContentBody"
9+
paddingSize=@paddingSize
10+
}}
11+
{{style styling.newStyle}}
12+
...attributes
13+
>
14+
{{yield}}
15+
</div>
16+
{{/let}}

packages/core/addon/components/eui-page-content-header/index.hbs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,8 @@
22
class={{class-names
33
"euiPageContentHeader"
44
(if @responsive "euiPageContentHeader--responsive")
5-
(if
6-
@restrictWidth
7-
"euiPanel--restrictWidth-custom"
8-
"euiPanel--restrictWidth-default"
9-
)
105
}}
11-
{{style (inline-styles width=@restrictWidth)}}
126
...attributes
137
>
14-
{{yield
15-
(hash
16-
Section=(component
17-
"eui-page-content-header-section"
18-
)
19-
)
20-
}}
8+
{{yield}}
219
</div>
Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
<EuiPanel
2-
class={{class-names
3-
componentName="EuiPageContent"
4-
verticalPosition=@verticalPosition
5-
horizontalPosition=@horizontalPosition
6-
borderRadius=@borderRadius
7-
}}
8-
@hasShadow={{@hasShadow}}
9-
@hasBorder={{@hasBorder}}
10-
@paddingSize={{arg-or-default @paddingSize "l"}}
11-
@borderRadius={{@borderRadius}}
12-
@color={{@color}}
13-
@grow={{@grow}}
14-
...attributes
15-
>
16-
{{yield}}
17-
</EuiPanel>
1+
{{#let (arg-or-default @role "main") as |role|}}
2+
<EuiPanel
3+
role={{if (eq role null) undefined role}}
4+
class={{class-names
5+
(if (eq @borderRadius "none") "euiPageContent--borderRadiusNone")
6+
componentName="EuiPageContent"
7+
verticalPosition=@verticalPosition
8+
horizontalPosition=@horizontalPosition
9+
}}
10+
@hasShadow={{@hasShadow}}
11+
@hasBorder={{@hasBorder}}
12+
@paddingSize={{arg-or-default @paddingSize "l"}}
13+
@borderRadius={{@borderRadius}}
14+
@color={{@color}}
15+
@grow={{@grow}}
16+
...attributes
17+
>
18+
{{yield}}
19+
</EuiPanel>
20+
{{/let}}

0 commit comments

Comments
 (0)