File tree 7 files changed +23
-29
lines changed
7 files changed +23
-29
lines changed Original file line number Diff line number Diff line change 124
124
"@emotion/styled" : " ^10.0.5" ,
125
125
"@exah/utils" : " ^2.0.0" ,
126
126
"emotion-theming" : " ^10.0.5" ,
127
- "pss" : " ^3 .0.1 " ,
127
+ "pss" : " ^4 .0.0 " ,
128
128
"react-styled-base" : " ^2.0.1"
129
129
}
130
130
}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import styled from '@emotion/styled'
3
3
import { Box } from '../box'
4
4
5
5
const FlexBox = styled ( Box ) ( { display : 'flex' } , flex , flexItem )
6
- const FlexBoxItem = styled ( Box ) ( flexItem )
7
6
8
7
FlexBox . displayName = 'FlexBox'
9
8
@@ -12,15 +11,8 @@ FlexBox.propTypes = {
12
11
...flex . propTypes
13
12
}
14
13
15
- FlexBox . Item = FlexBoxItem
16
- FlexBox . Item . displayName = 'FlexGrid.Item'
17
-
18
- FlexBox . Item . propTypes = {
19
- ...Box . propTypes ,
20
- ...flexItem . propTypes
21
- }
14
+ FlexBox . Item = Box // COMPAT
22
15
23
16
export {
24
- FlexBox ,
25
- FlexBoxItem
17
+ FlexBox
26
18
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import styled from '@emotion/styled'
2
2
import { createBase } from '../base'
3
3
4
4
import {
5
- combine ,
5
+ combineStyles ,
6
6
cursor ,
7
7
display ,
8
8
flexItem ,
@@ -15,7 +15,7 @@ import {
15
15
transform
16
16
} from 'pss'
17
17
18
- const image = combine (
18
+ const image = combineStyles (
19
19
cursor ,
20
20
display ,
21
21
flexItem ,
Original file line number Diff line number Diff line change 1
1
import { compose } from '@exah/utils'
2
2
import { defaultProps , withDisplayName , withPropTypes } from '../utils'
3
- import { FlexBox , FlexBoxItem } from '../flex-box'
3
+ import { FlexBox } from '../flex-box'
4
+ import { Box } from '../box'
4
5
5
6
const withLayoutProps = defaultProps ( {
6
7
flexDirection : 'column' ,
@@ -19,9 +20,9 @@ const Layout = compose(
19
20
20
21
const LayoutContent = compose (
21
22
withDisplayName ( 'Layout.Content' ) ,
22
- withPropTypes ( FlexBoxItem ) ,
23
+ withPropTypes ( Box ) ,
23
24
withLayoutContentProps
24
- ) ( FlexBoxItem )
25
+ ) ( Box )
25
26
26
27
const LayoutBody = compose (
27
28
withDisplayName ( 'Layout.Body' ) ,
@@ -31,13 +32,13 @@ const LayoutBody = compose(
31
32
32
33
Object . assign ( Layout , {
33
34
Content : LayoutContent ,
34
- Item : FlexBoxItem ,
35
+ Item : Box ,
35
36
Body : LayoutBody
36
37
} )
37
38
38
39
export {
39
40
Layout ,
40
- FlexBoxItem as LayoutItem ,
41
+ Box as LayoutItem ,
41
42
LayoutContent ,
42
43
LayoutBody
43
44
}
Original file line number Diff line number Diff line change 1
1
import { compose } from '@exah/utils'
2
2
import { defaultProps , withDisplayName , withPropTypes } from '../utils'
3
- import { FlexBox , FlexBoxItem } from '../flex-box'
3
+ import { FlexBox } from '../flex-box'
4
+ import { Box } from '../box'
4
5
5
6
const MediaObject = compose (
6
7
withDisplayName ( 'MediaObject' ) ,
@@ -10,15 +11,15 @@ const MediaObject = compose(
10
11
11
12
const MediaObjectSide = compose (
12
13
withDisplayName ( 'MediaObject.Side' ) ,
13
- withPropTypes ( FlexBoxItem ) ,
14
+ withPropTypes ( Box ) ,
14
15
defaultProps ( { flex : '0 0' } )
15
- ) ( FlexBoxItem )
16
+ ) ( Box )
16
17
17
18
const MediaObjectContent = compose (
18
19
withDisplayName ( 'MediaObject.Content' ) ,
19
- withPropTypes ( FlexBoxItem ) ,
20
+ withPropTypes ( Box ) ,
20
21
defaultProps ( { flex : '1' , minWidth : 0 } )
21
- ) ( FlexBoxItem )
22
+ ) ( Box )
22
23
23
24
Object . assign ( MediaObject , {
24
25
Side : MediaObjectSide ,
Original file line number Diff line number Diff line change 3
3
exports [` Box 1` ] = `
4
4
.emotion-0 {
5
5
box - sizing : border - box ;
6
+ height : 300px ;
6
7
margin - left : auto ;
7
8
margin - right : auto ;
8
- height : 300px ;
9
9
background - color : #000 ;
10
10
color : #fff ;
11
11
}
@@ -674,10 +674,10 @@ exports[`MediaObject 1`] = `
674
674
675
675
.emotion-2 {
676
676
box - sizing : border - box ;
677
- min - width : 0 ;
678
677
- webkit - flex : 1 ;
679
678
- ms - flex : 1 ;
680
679
flex : 1 ;
680
+ min - width : 0 ;
681
681
}
682
682
683
683
<div
Original file line number Diff line number Diff line change @@ -8768,10 +8768,10 @@ psl@^1.1.24, psl@^1.1.28:
8768
8768
resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.31.tgz#e9aa86d0101b5b105cbe93ac6b784cd547276184"
8769
8769
integrity sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==
8770
8770
8771
- pss@^3 .0.1 :
8772
- version "3 .0.1 "
8773
- resolved "https://registry.yarnpkg.com/pss/-/pss-3 .0.1 .tgz#dcf171304d0b163a80c44ff76450da20aa9cbc9c "
8774
- integrity sha512-go39tpJy3dONz3+6iYoFtTNhMHdoGdGyWQVG+5ctaJvpvwxO037CWdMgXUlBNmiHA7HydCrXEuIPKbvOhXaZbA ==
8771
+ pss@^4 .0.0 :
8772
+ version "4 .0.0 "
8773
+ resolved "https://registry.yarnpkg.com/pss/-/pss-4 .0.0 .tgz#38d9523b04aea11281117a5b295b34f1a290bdde "
8774
+ integrity sha512-Q3gXkvT+6tBySOHmKir90q+nejz7fp+X0vMqf8y5OPyGw6NUTz/gtaERJ4BRraAbbFwfqrperm8JlTiFelr2MA ==
8775
8775
dependencies :
8776
8776
" @exah/utils" " ^2.0.0"
8777
8777
prop-types "^15.6.2"
You can’t perform that action at this time.
0 commit comments