1- const styleMap = {
2- ac : 'alignContent' ,
3- acs : [ 'alignContent' , 'stretch' ] ,
4- acc : [ 'alignContent' , 'center' ] ,
5- acfs : [ 'alignContent' , 'flex-start' ] ,
6- acfe : [ 'alignContent' , 'flex-end' ] ,
7- acsb : [ 'alignContent' , 'space-between' ] ,
8- acsa : [ 'alignContent' , 'space-around' ] ,
9- ai : 'alignItems' ,
10- ais : [ 'alignItems' , 'stretch' ] ,
11- aib : [ 'alignItems' , 'baseline' ] ,
12- aic : [ 'alignItems' , 'center' ] ,
13- aifs : [ 'alignItems' , 'flex-start' ] ,
14- aife : [ 'alignItems' , 'flex-end' ] ,
15- as : 'alignSelf' ,
16- asa : [ 'alignSelf' , 'auto' ] ,
17- ass : [ 'alignSelf' , 'stretch' ] ,
18- asb : [ 'alignSelf' , 'baseline' ] ,
19- asc : [ 'alignSelf' , 'center' ] ,
20- asfs : [ 'alignSelf' , 'flex-start' ] ,
21- asfe : [ 'alignSelf' , 'flex-end' ] ,
22- bc : 'backgroundColor' ,
23- br : 'borderRadius' ,
24- bw : 'borderWidth' ,
25- bs : 'borderStyle' ,
26- btw : 'borderTopWidth' ,
27- btc : 'borderTopColor' ,
28- brw : 'borderRightWidth' ,
29- brc : 'borderRightColor' ,
30- bbw : 'borderBottomWidth' ,
31- bbc : 'borderBottomColor' ,
32- blw : 'borderLeftWidth' ,
33- blc : 'borderLeftColor' ,
34- btrr : 'borderTopRightRadius' ,
35- btlr : 'borderTopLeftRadius' ,
36- bbrr : 'borderBottomRightRadius' ,
37- bblr : 'borderBottomLeftRadius' ,
38- b : 'bottom' ,
39- b0 : [ 'bottom' , 0 ] ,
40- c : 'color' ,
41- dn : [ 'display' , 'none' ] ,
42- f : 'flex' ,
43- f1 : [ 'flex' , 1 ] ,
44- fdr : [ 'flexDirection' , 'row' ] ,
45- fdrr : [ 'flexDirection' , 'row-reverse' ] ,
46- fdc : [ 'flexDirection' , 'column' ] ,
47- fdcr : [ 'flexDirection' , 'column-reverse' ] ,
48- fwn : [ 'flexWrap' , 'nowrap' ] ,
49- fwb : [ 'fontWeight' , 'bold' ] ,
50- fw100 : [ 'fontWeight' , "100" ] ,
51- fw200 : [ 'fontWeight' , "200" ] ,
52- fw300 : [ 'fontWeight' , "300" ] ,
53- fw400 : [ 'fontWeight' , "400" ] ,
54- fw500 : [ 'fontWeight' , "500" ] ,
55- fw600 : [ 'fontWeight' , "600" ] ,
56- fw700 : [ 'fontWeight' , "700" ] ,
57- fw800 : [ 'fontWeight' , "800" ] ,
58- fw900 : [ 'fontWeight' , "900" ] ,
59- fs : 'fontSize' ,
60- ff : 'fontFamily' ,
61- fsn : [ 'fontStyle' , 'normal' ] ,
62- fsi : [ 'fontStyle' , 'italic' ] ,
63- h : 'height' ,
64- h100p : [ 'height' , '100%' ] ,
65- jcc : [ 'justifyContent' , 'center' ] ,
66- jcsb : [ 'justifyContent' , 'space-between' ] ,
67- jcfs : [ 'justifyContent' , 'flex-start' ] ,
68- jcfe : [ 'justifyContent' , 'flex-end' ] ,
69- jcsa : [ 'justifyContent' , 'space-around' ] ,
70- jcse : [ 'justifyContent' , 'space-evenly' ] ,
71- l : 'left' ,
72- l0 : [ 'left' , 0 ] ,
73- lh : 'lineHeight' ,
74- m ( value ) {
1+ export default {
2+ ac : 'alignContent' ,
3+ acs : [ 'alignContent' , 'stretch' ] ,
4+ acc : [ 'alignContent' , 'center' ] ,
5+ acfs : [ 'alignContent' , 'flex-start' ] ,
6+ acfe : [ 'alignContent' , 'flex-end' ] ,
7+ acsb : [ 'alignContent' , 'space-between' ] ,
8+ acsa : [ 'alignContent' , 'space-around' ] ,
9+ ai : 'alignItems' ,
10+ ais : [ 'alignItems' , 'stretch' ] ,
11+ aib : [ 'alignItems' , 'baseline' ] ,
12+ aic : [ 'alignItems' , 'center' ] ,
13+ aifs : [ 'alignItems' , 'flex-start' ] ,
14+ aife : [ 'alignItems' , 'flex-end' ] ,
15+ as : 'alignSelf' ,
16+ asa : [ 'alignSelf' , 'auto' ] ,
17+ ass : [ 'alignSelf' , 'stretch' ] ,
18+ asb : [ 'alignSelf' , 'baseline' ] ,
19+ asc : [ 'alignSelf' , 'center' ] ,
20+ asfs : [ 'alignSelf' , 'flex-start' ] ,
21+ asfe : [ 'alignSelf' , 'flex-end' ] ,
22+ bc : 'backgroundColor' ,
23+ br : 'borderRadius' ,
24+ bw : 'borderWidth' ,
25+ bs : 'borderStyle' ,
26+ btw : 'borderTopWidth' ,
27+ btc : 'borderTopColor' ,
28+ brw : 'borderRightWidth' ,
29+ brc : 'borderRightColor' ,
30+ bbw : 'borderBottomWidth' ,
31+ bbc : 'borderBottomColor' ,
32+ blw : 'borderLeftWidth' ,
33+ blc : 'borderLeftColor' ,
34+ btrr : 'borderTopRightRadius' ,
35+ btlr : 'borderTopLeftRadius' ,
36+ bbrr : 'borderBottomRightRadius' ,
37+ bblr : 'borderBottomLeftRadius' ,
38+ b : 'bottom' ,
39+ b0 : [ 'bottom' , 0 ] ,
40+ c : 'color' ,
41+ dn : [ 'display' , 'none' ] ,
42+ f : 'flex' ,
43+ f1 : [ 'flex' , 1 ] ,
44+ fdr : [ 'flexDirection' , 'row' ] ,
45+ fdrr : [ 'flexDirection' , 'row-reverse' ] ,
46+ fdc : [ 'flexDirection' , 'column' ] ,
47+ fdcr : [ 'flexDirection' , 'column-reverse' ] ,
48+ fwn : [ 'flexWrap' , 'nowrap' ] ,
49+ fwb : [ 'fontWeight' , 'bold' ] ,
50+ fw100 : [ 'fontWeight' , '100' ] ,
51+ fw200 : [ 'fontWeight' , '200' ] ,
52+ fw300 : [ 'fontWeight' , '300' ] ,
53+ fw400 : [ 'fontWeight' , '400' ] ,
54+ fw500 : [ 'fontWeight' , '500' ] ,
55+ fw600 : [ 'fontWeight' , '600' ] ,
56+ fw700 : [ 'fontWeight' , '700' ] ,
57+ fw800 : [ 'fontWeight' , '800' ] ,
58+ fw900 : [ 'fontWeight' , '900' ] ,
59+ fs : 'fontSize' ,
60+ ff : 'fontFamily' ,
61+ fsn : [ 'fontStyle' , 'normal' ] ,
62+ fsi : [ 'fontStyle' , 'italic' ] ,
63+ h : 'height' ,
64+ h100p : [ 'height' , '100%' ] ,
65+ jcc : [ 'justifyContent' , 'center' ] ,
66+ jcsb : [ 'justifyContent' , 'space-between' ] ,
67+ jcfs : [ 'justifyContent' , 'flex-start' ] ,
68+ jcfe : [ 'justifyContent' , 'flex-end' ] ,
69+ jcsa : [ 'justifyContent' , 'space-around' ] ,
70+ jcse : [ 'justifyContent' , 'space-evenly' ] ,
71+ l : 'left' ,
72+ l0 : [ 'left' , 0 ] ,
73+ lh : 'lineHeight' ,
74+ m ( value ) {
75+ return {
76+ marginTop : value ,
77+ marginBottom : value ,
78+ marginRight : value ,
79+ marginLeft : value ,
80+ } ;
81+ } ,
82+ mt : 'marginTop' ,
83+ mr : 'marginRight' ,
84+ mb : 'marginBottom' ,
85+ ml : 'marginLeft' ,
86+ mh : 'marginHorizontal' ,
87+ mv : 'marginVertical' ,
88+ o : 'opacity' ,
89+ oh : [ 'overflow' , 'hidden' ] ,
90+ p ( value ) {
91+ return {
92+ paddingTop : value ,
93+ paddingBottom : value ,
94+ paddingRight : value ,
95+ paddingLeft : value ,
96+ } ;
97+ } ,
98+ pa : [ 'position' , 'absolute' ] ,
99+ pr ( value ) {
100+ if ( value === true ) {
75101 return {
76- marginTop : value ,
77- marginBottom : value ,
78- marginRight : value ,
79- marginLeft : value ,
102+ position : 'relative' ,
80103 } ;
81- } ,
82- mt : 'marginTop' ,
83- mr : 'marginRight' ,
84- mb : 'marginBottom' ,
85- ml : 'marginLeft' ,
86- mh : 'marginHorizontal' ,
87- mv : 'marginVertical' ,
88- o : 'opacity' ,
89- oh : [ 'overflow' , 'hidden' ] ,
90- p ( value ) {
91- return {
92- paddingTop : value ,
93- paddingBottom : value ,
94- paddingRight : value ,
95- paddingLeft : value ,
96- } ;
97- } ,
98- pa : [ 'position' , 'absolute' ] ,
99- pr ( value ) {
100- if ( value === true ) {
101- return {
102- position : 'relative' ,
103- } ;
104- }
105- return {
106- paddingRight : value ,
107- } ;
108- } ,
109- pt : 'paddingTop' ,
110- pb : 'paddingBottom' ,
111- pl : 'paddingLeft' ,
112- ph : 'paddingHorizontal' ,
113- pv : 'paddingVertical' ,
114- r : 'right' ,
115- r0 : [ 'right' , 0 ] ,
116- t : 'top' ,
117- t0 : [ 'top' , 0 ] ,
118- tac : [ 'textAlign' , 'center' ] ,
119- tar : [ 'textAlign' , 'right' ] ,
120- taa : [ 'textAlign' , 'auto' ] ,
121- tal : [ 'textAlign' , 'left' ] ,
122- taj : [ 'textAlign' , 'justify' ] ,
123- ttu : [ 'textTransform' , 'uppercase' ] ,
124- ttc : [ 'textTransform' , 'capitalize' ] ,
125- ttn : [ 'textTransform' , 'none' ] ,
126- ttl : [ 'textTransform' , 'lowercase' ] ,
127- w : 'width' ,
128- w100p : [ 'width' , '100%' ] ,
129- zi : 'zIndex' ,
130- } ;
131-
132- export default styleMap
104+ }
105+ return {
106+ paddingRight : value ,
107+ } ;
108+ } ,
109+ pt : 'paddingTop' ,
110+ pb : 'paddingBottom' ,
111+ pl : 'paddingLeft' ,
112+ ph : 'paddingHorizontal' ,
113+ pv : 'paddingVertical' ,
114+ r : 'right' ,
115+ r0 : [ 'right' , 0 ] ,
116+ t : 'top' ,
117+ t0 : [ 'top' , 0 ] ,
118+ tac : [ 'textAlign' , 'center' ] ,
119+ tar : [ 'textAlign' , 'right' ] ,
120+ taa : [ 'textAlign' , 'auto' ] ,
121+ tal : [ 'textAlign' , 'left' ] ,
122+ taj : [ 'textAlign' , 'justify' ] ,
123+ ttu : [ 'textTransform' , 'uppercase' ] ,
124+ ttc : [ 'textTransform' , 'capitalize' ] ,
125+ ttn : [ 'textTransform' , 'none' ] ,
126+ ttl : [ 'textTransform' , 'lowercase' ] ,
127+ w : 'width' ,
128+ w100p : [ 'width' , '100%' ] ,
129+ zi : 'zIndex' ,
130+ } ;
0 commit comments