@tarojs/rn-style-transformer 4.0.1 → 4.0.2
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/LICENSE +8 -8
- package/README.md +36 -21
- package/dist/index.d.ts +8 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/transforms/StyleSheet/ColorPropType.d.ts +10 -0
- package/dist/transforms/StyleSheet/ColorPropType.js.map +1 -1
- package/dist/transforms/StyleSheet/ImageResizeMode.d.ts +6 -0
- package/dist/transforms/StyleSheet/ImageStylePropTypes.d.ts +128 -0
- package/dist/transforms/StyleSheet/ImageStylePropTypes.js +1 -1
- package/dist/transforms/StyleSheet/ImageStylePropTypes.js.map +1 -1
- package/dist/transforms/StyleSheet/LayoutPropTypes.d.ts +388 -0
- package/dist/transforms/StyleSheet/ShadowPropTypesIOS.d.ts +45 -0
- package/dist/transforms/StyleSheet/ShadowPropTypesIOS.js +1 -1
- package/dist/transforms/StyleSheet/ShadowPropTypesIOS.js.map +1 -1
- package/dist/transforms/StyleSheet/StyleSheetValidation.d.ts +15 -0
- package/dist/transforms/StyleSheet/StyleSheetValidation.js +1 -1
- package/dist/transforms/StyleSheet/StyleSheetValidation.js.map +1 -1
- package/dist/transforms/StyleSheet/TextStylePropTypes.d.ts +191 -0
- package/dist/transforms/StyleSheet/TextStylePropTypes.js +1 -1
- package/dist/transforms/StyleSheet/TextStylePropTypes.js.map +1 -1
- package/dist/transforms/StyleSheet/TransformPropTypes.d.ts +67 -0
- package/dist/transforms/StyleSheet/TransformPropTypes.js.map +1 -1
- package/dist/transforms/StyleSheet/ViewStylePropTypes.d.ts +136 -0
- package/dist/transforms/StyleSheet/ViewStylePropTypes.js +1 -1
- package/dist/transforms/StyleSheet/ViewStylePropTypes.js.map +1 -1
- package/dist/transforms/StyleSheet/deprecatedPropType.d.ts +13 -0
- package/dist/transforms/StyleSheet/deprecatedPropType.js.map +1 -1
- package/dist/transforms/StyleSheet/index.d.ts +2 -0
- package/dist/transforms/StyleSheet/normalizeColor.d.ts +10 -0
- package/dist/transforms/StyleSheet/normalizeColor.js.map +1 -1
- package/dist/transforms/index.d.ts +56 -0
- package/dist/transforms/index.js +6 -6
- package/dist/transforms/index.js.map +1 -1
- package/dist/transforms/less.d.ts +2 -0
- package/dist/transforms/less.js +1 -1
- package/dist/transforms/less.js.map +1 -1
- package/dist/transforms/postcss.d.ts +13 -0
- package/dist/transforms/postcss.js +17 -5
- package/dist/transforms/postcss.js.map +1 -1
- package/dist/transforms/sass.d.ts +2 -0
- package/dist/transforms/sass.js +2 -2
- package/dist/transforms/sass.js.map +1 -1
- package/dist/transforms/stylus.d.ts +3 -0
- package/dist/transforms/stylus.js +1 -1
- package/dist/transforms/stylus.js.map +1 -1
- package/dist/types/index.d.ts +206 -0
- package/dist/utils/index.d.ts +21 -0
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/lessImport.d.ts +5 -0
- package/dist/utils/reporterSkip.d.ts +7 -0
- package/dist/utils/reporterSkip.js.map +1 -1
- package/package.json +34 -31
- package/.eslintrc.js +0 -8
- package/__tests__/config.spec.js +0 -203
- package/__tests__/index.spec.js +0 -252
- package/__tests__/platform.spec.js +0 -78
- package/__tests__/styles/b.css +0 -3
- package/__tests__/styles/b.less +0 -3
- package/__tests__/styles/b.rn.css +0 -3
- package/__tests__/styles/b.scss +0 -3
- package/__tests__/styles/b.styl +0 -3
- package/__tests__/styles/c.css +0 -3
- package/__tests__/styles/c.less +0 -5
- package/__tests__/styles/c.rn.scss +0 -5
- package/__tests__/styles/c.scss +0 -5
- package/__tests__/styles/d.rn.scss +0 -3
- package/__tests__/styles/d.scss +0 -3
- package/__tests__/styles/mixins.scss +0 -18
- package/__tests__/styles/nest.rn.less +0 -3
- package/__tests__/styles/variable.scss +0 -1
- package/babel.config.js +0 -12
- package/jest.config.js +0 -8
- package/src/config/rn-stylelint.json +0 -5
- package/src/index.ts +0 -52
- package/src/transforms/StyleSheet/ColorPropType.ts +0 -76
- package/src/transforms/StyleSheet/ImageResizeMode.ts +0 -50
- package/src/transforms/StyleSheet/ImageStylePropTypes.ts +0 -62
- package/src/transforms/StyleSheet/LayoutPropTypes.ts +0 -559
- package/src/transforms/StyleSheet/ShadowPropTypesIOS.ts +0 -48
- package/src/transforms/StyleSheet/StyleSheetValidation.ts +0 -81
- package/src/transforms/StyleSheet/TextStylePropTypes.ts +0 -123
- package/src/transforms/StyleSheet/TransformPropTypes.ts +0 -109
- package/src/transforms/StyleSheet/ViewStylePropTypes.ts +0 -61
- package/src/transforms/StyleSheet/deprecatedPropType.ts +0 -31
- package/src/transforms/StyleSheet/index.ts +0 -5
- package/src/transforms/StyleSheet/normalizeColor.ts +0 -369
- package/src/transforms/index.ts +0 -231
- package/src/transforms/less.ts +0 -50
- package/src/transforms/postcss.ts +0 -96
- package/src/transforms/sass.ts +0 -151
- package/src/transforms/stylus.ts +0 -124
- package/src/types/index.ts +0 -242
- package/src/utils/index.ts +0 -229
- package/src/utils/lessImport.ts +0 -50
- package/src/utils/reporterSkip.ts +0 -27
- package/tsconfig.json +0 -12
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import * as ReactPropTypes from 'prop-types';
|
|
11
|
+
declare const TextStylePropTypes: {
|
|
12
|
+
color: any;
|
|
13
|
+
fontFamily: ReactPropTypes.Requireable<string>;
|
|
14
|
+
fontSize: ReactPropTypes.Requireable<number>;
|
|
15
|
+
fontStyle: ReactPropTypes.Requireable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported for
|
|
18
|
+
* most fonts. Not all fonts have a variant for each of the numeric values,
|
|
19
|
+
* in that case the closest one is chosen.
|
|
20
|
+
*/
|
|
21
|
+
fontWeight: ReactPropTypes.Requireable<string>;
|
|
22
|
+
/**
|
|
23
|
+
* @platform ios
|
|
24
|
+
*/
|
|
25
|
+
fontVariant: ReactPropTypes.Requireable<(string | null | undefined)[]>;
|
|
26
|
+
textShadowOffset: ReactPropTypes.Requireable<ReactPropTypes.InferProps<{
|
|
27
|
+
width: ReactPropTypes.Requireable<number>;
|
|
28
|
+
height: ReactPropTypes.Requireable<number>;
|
|
29
|
+
}>>;
|
|
30
|
+
textShadowRadius: ReactPropTypes.Requireable<number>;
|
|
31
|
+
textShadowColor: any;
|
|
32
|
+
/**
|
|
33
|
+
* @platform ios
|
|
34
|
+
*/
|
|
35
|
+
letterSpacing: ReactPropTypes.Requireable<number>;
|
|
36
|
+
lineHeight: ReactPropTypes.Requireable<number>;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies text alignment. The value 'justify' is only supported on iOS and
|
|
39
|
+
* fallbacks to `left` on Android.
|
|
40
|
+
*/
|
|
41
|
+
textAlign: ReactPropTypes.Requireable<string>;
|
|
42
|
+
/**
|
|
43
|
+
* @platform android
|
|
44
|
+
*/
|
|
45
|
+
textAlignVertical: ReactPropTypes.Requireable<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Set to `false` to remove extra font padding intended to make space for certain ascenders / descenders.
|
|
48
|
+
* With some fonts, this padding can make text look slightly misaligned when centered vertically.
|
|
49
|
+
* For best results also set `textAlignVertical` to `center`. Default is true.
|
|
50
|
+
* @platform android
|
|
51
|
+
*/
|
|
52
|
+
includeFontPadding: ReactPropTypes.Requireable<boolean>;
|
|
53
|
+
textDecorationLine: ReactPropTypes.Requireable<string>;
|
|
54
|
+
/**
|
|
55
|
+
* @platform ios
|
|
56
|
+
*/
|
|
57
|
+
textDecorationStyle: ReactPropTypes.Requireable<string>;
|
|
58
|
+
/**
|
|
59
|
+
* @platform ios
|
|
60
|
+
*/
|
|
61
|
+
textDecorationColor: any;
|
|
62
|
+
textTransform: ReactPropTypes.Requireable<string>;
|
|
63
|
+
/**
|
|
64
|
+
* @platform ios
|
|
65
|
+
*/
|
|
66
|
+
writingDirection: ReactPropTypes.Requireable<string>;
|
|
67
|
+
backfaceVisibility: ReactPropTypes.Requireable<string>;
|
|
68
|
+
backgroundColor: any;
|
|
69
|
+
borderColor: any;
|
|
70
|
+
borderTopColor: any;
|
|
71
|
+
borderRightColor: any;
|
|
72
|
+
borderBottomColor: any;
|
|
73
|
+
borderLeftColor: any;
|
|
74
|
+
borderStartColor: any;
|
|
75
|
+
borderEndColor: any;
|
|
76
|
+
borderRadius: ReactPropTypes.Requireable<number>;
|
|
77
|
+
borderTopLeftRadius: ReactPropTypes.Requireable<number>;
|
|
78
|
+
borderTopRightRadius: ReactPropTypes.Requireable<number>;
|
|
79
|
+
borderTopStartRadius: ReactPropTypes.Requireable<number>;
|
|
80
|
+
borderTopEndRadius: ReactPropTypes.Requireable<number>;
|
|
81
|
+
borderBottomLeftRadius: ReactPropTypes.Requireable<number>;
|
|
82
|
+
borderBottomRightRadius: ReactPropTypes.Requireable<number>;
|
|
83
|
+
borderBottomStartRadius: ReactPropTypes.Requireable<number>;
|
|
84
|
+
borderBottomEndRadius: ReactPropTypes.Requireable<number>;
|
|
85
|
+
borderStyle: ReactPropTypes.Requireable<string>;
|
|
86
|
+
borderWidth: ReactPropTypes.Requireable<number>;
|
|
87
|
+
borderTopWidth: ReactPropTypes.Requireable<number>;
|
|
88
|
+
borderRightWidth: ReactPropTypes.Requireable<number>;
|
|
89
|
+
borderBottomWidth: ReactPropTypes.Requireable<number>;
|
|
90
|
+
borderLeftWidth: ReactPropTypes.Requireable<number>;
|
|
91
|
+
opacity: ReactPropTypes.Requireable<number>;
|
|
92
|
+
elevation: ReactPropTypes.Requireable<number>;
|
|
93
|
+
transform: ReactPropTypes.Requireable<(NonNullable<ReactPropTypes.InferProps<{
|
|
94
|
+
perspective: ReactPropTypes.Requireable<number>;
|
|
95
|
+
}> | ReactPropTypes.InferProps<{
|
|
96
|
+
rotate: ReactPropTypes.Requireable<string>;
|
|
97
|
+
}> | ReactPropTypes.InferProps<{
|
|
98
|
+
rotateX: ReactPropTypes.Requireable<string>;
|
|
99
|
+
}> | ReactPropTypes.InferProps<{
|
|
100
|
+
rotateY: ReactPropTypes.Requireable<string>;
|
|
101
|
+
}> | ReactPropTypes.InferProps<{
|
|
102
|
+
rotateZ: ReactPropTypes.Requireable<string>;
|
|
103
|
+
}> | ReactPropTypes.InferProps<{
|
|
104
|
+
scale: ReactPropTypes.Requireable<number>;
|
|
105
|
+
}> | ReactPropTypes.InferProps<{
|
|
106
|
+
scaleX: ReactPropTypes.Requireable<number>;
|
|
107
|
+
}> | ReactPropTypes.InferProps<{
|
|
108
|
+
scaleY: ReactPropTypes.Requireable<number>;
|
|
109
|
+
}> | ReactPropTypes.InferProps<{
|
|
110
|
+
translateX: ReactPropTypes.Requireable<number>;
|
|
111
|
+
}> | ReactPropTypes.InferProps<{
|
|
112
|
+
translateY: ReactPropTypes.Requireable<number>;
|
|
113
|
+
}> | ReactPropTypes.InferProps<{
|
|
114
|
+
skewX: ReactPropTypes.Requireable<string>;
|
|
115
|
+
}> | ReactPropTypes.InferProps<{
|
|
116
|
+
skewY: ReactPropTypes.Requireable<string>;
|
|
117
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
118
|
+
transformMatrix: (props: any, propName: any, _componentName: any) => Error | undefined;
|
|
119
|
+
decomposedMatrix: (props: any, propName: any, _componentName: any) => Error | undefined;
|
|
120
|
+
scaleX: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
121
|
+
/**
|
|
122
|
+
* @platform ios
|
|
123
|
+
*/
|
|
124
|
+
scaleY: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
125
|
+
rotation: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
126
|
+
translateX: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
127
|
+
translateY: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
128
|
+
shadowColor: any;
|
|
129
|
+
shadowOffset: ReactPropTypes.Requireable<ReactPropTypes.InferProps<{
|
|
130
|
+
width: ReactPropTypes.Requireable<number>; /**
|
|
131
|
+
* @platform ios
|
|
132
|
+
*/
|
|
133
|
+
height: ReactPropTypes.Requireable<number>;
|
|
134
|
+
}>>;
|
|
135
|
+
shadowOpacity: ReactPropTypes.Requireable<number>;
|
|
136
|
+
shadowRadius: ReactPropTypes.Requireable<number>;
|
|
137
|
+
display: ReactPropTypes.Requireable<string>;
|
|
138
|
+
width: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
139
|
+
height: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>; /**
|
|
140
|
+
* Set to `false` to remove extra font padding intended to make space for certain ascenders / descenders.
|
|
141
|
+
* With some fonts, this padding can make text look slightly misaligned when centered vertically.
|
|
142
|
+
* For best results also set `textAlignVertical` to `center`. Default is true.
|
|
143
|
+
* @platform android
|
|
144
|
+
*/
|
|
145
|
+
start: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
146
|
+
end: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
147
|
+
top: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
148
|
+
left: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
149
|
+
right: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
150
|
+
bottom: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
151
|
+
minWidth: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
152
|
+
maxWidth: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
153
|
+
minHeight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
154
|
+
maxHeight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
155
|
+
margin: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
156
|
+
marginVertical: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
157
|
+
marginHorizontal: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
158
|
+
marginTop: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
159
|
+
marginBottom: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
160
|
+
marginLeft: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
161
|
+
marginRight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
162
|
+
marginStart: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
163
|
+
marginEnd: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
164
|
+
padding: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
165
|
+
paddingVertical: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
166
|
+
paddingHorizontal: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
167
|
+
paddingTop: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
168
|
+
paddingBottom: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
169
|
+
paddingLeft: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
170
|
+
paddingRight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
171
|
+
paddingStart: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
172
|
+
paddingEnd: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
173
|
+
borderStartWidth: ReactPropTypes.Requireable<number>;
|
|
174
|
+
borderEndWidth: ReactPropTypes.Requireable<number>;
|
|
175
|
+
position: ReactPropTypes.Requireable<string>;
|
|
176
|
+
flexDirection: ReactPropTypes.Requireable<string>;
|
|
177
|
+
flexWrap: ReactPropTypes.Requireable<string>;
|
|
178
|
+
justifyContent: ReactPropTypes.Requireable<string>;
|
|
179
|
+
alignItems: ReactPropTypes.Requireable<string>;
|
|
180
|
+
alignSelf: ReactPropTypes.Requireable<string>;
|
|
181
|
+
alignContent: ReactPropTypes.Requireable<string>;
|
|
182
|
+
overflow: ReactPropTypes.Requireable<string>;
|
|
183
|
+
flex: ReactPropTypes.Requireable<number>;
|
|
184
|
+
flexGrow: ReactPropTypes.Requireable<number>;
|
|
185
|
+
flexShrink: ReactPropTypes.Requireable<number>;
|
|
186
|
+
flexBasis: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
187
|
+
aspectRatio: ReactPropTypes.Requireable<number>;
|
|
188
|
+
zIndex: ReactPropTypes.Requireable<number>;
|
|
189
|
+
direction: ReactPropTypes.Requireable<string>;
|
|
190
|
+
};
|
|
191
|
+
export default TextStylePropTypes;
|
|
@@ -35,8 +35,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
const ColorPropType_1 = __importDefault(require("./ColorPropType"));
|
|
39
38
|
const ReactPropTypes = __importStar(require("prop-types"));
|
|
39
|
+
const ColorPropType_1 = __importDefault(require("./ColorPropType"));
|
|
40
40
|
const ViewStylePropTypes_1 = __importDefault(require("./ViewStylePropTypes"));
|
|
41
41
|
const TextStylePropTypes = Object.assign(Object.assign({}, ViewStylePropTypes_1.default), { color: ColorPropType_1.default, fontFamily: ReactPropTypes.string, fontSize: ReactPropTypes.number, fontStyle: ReactPropTypes.oneOf(['normal', 'italic']),
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextStylePropTypes.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/TextStylePropTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,oEAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"TextStylePropTypes.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/TextStylePropTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,2DAA4C;AAE5C,oEAA2C;AAC3C,8EAAqD;AAErD,MAAM,kBAAkB,mCACnB,4BAAkB,KAErB,KAAK,EAAE,uBAAa,EACpB,UAAU,EAAE,cAAc,CAAC,MAAM,EACjC,QAAQ,EAAE,cAAc,CAAC,MAAM,EAC/B,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACrD;;;;OAIG;IACH,UAAU,EAAE,cAAc,CAAC,KAAK,CAAC;QAC/B,QAAQ,CAAC,aAAa;QACtB,MAAM;QACN,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;KACN,CAAC;IACF;;OAEG;IACH,WAAW,EAAE,cAAc,CAAC,OAAO,CACjC,cAAc,CAAC,KAAK,CAAC;QACnB,YAAY;QACZ,eAAe;QACf,aAAa;QACb,cAAc;QACd,mBAAmB;KACpB,CAAC,CACH,EACD,gBAAgB,EAAE,cAAc,CAAC,KAAK,CAAC;QACrC,KAAK,EAAE,cAAc,CAAC,MAAM;QAC5B,MAAM,EAAE,cAAc,CAAC,MAAM;KAC9B,CAAC,EACF,gBAAgB,EAAE,cAAc,CAAC,MAAM,EACvC,eAAe,EAAE,uBAAa;IAC9B;;OAEG;IACH,aAAa,EAAE,cAAc,CAAC,MAAM,EACpC,UAAU,EAAE,cAAc,CAAC,MAAM;IACjC;;;OAGG;IACH,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC;QAC9B,MAAM,CAAC,aAAa;QACpB,MAAM;QACN,OAAO;QACP,QAAQ;QACR,SAAS;KACV,CAAC;IACF;;OAEG;IACH,iBAAiB,EAAE,cAAc,CAAC,KAAK,CAAC;QACtC,MAAM,CAAC,aAAa;QACpB,KAAK;QACL,QAAQ;QACR,QAAQ;KACT,CAAC;IACF;;;;;OAKG;IACH,kBAAkB,EAAE,cAAc,CAAC,IAAI,EACvC,kBAAkB,EAAE,cAAc,CAAC,KAAK,CAAC;QACvC,MAAM,CAAC,aAAa;QACpB,WAAW;QACX,cAAc;QACd,wBAAwB;KACzB,CAAC;IACF;;OAEG;IACH,mBAAmB,EAAE,cAAc,CAAC,KAAK,CAAC;QACxC,OAAO,CAAC,aAAa;QACrB,QAAQ;QACR,QAAQ;QACR,QAAQ;KACT,CAAC;IACF;;OAEG;IACH,mBAAmB,EAAE,uBAAa,EAClC,aAAa,EAAE,cAAc,CAAC,KAAK,CAAC;QAClC,MAAM,CAAC,aAAa;QACpB,YAAY;QACZ,WAAW;QACX,WAAW;KACZ,CAAC;IACF;;OAEG;IACH,gBAAgB,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,GAC7E,CAAA;AAED,kBAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import * as ReactPropTypes from 'prop-types';
|
|
11
|
+
declare const TransformPropTypes: {
|
|
12
|
+
/**
|
|
13
|
+
* `transform` accepts an array of transformation objects. Each object specifies
|
|
14
|
+
* the property that will be transformed as the key, and the value to use in the
|
|
15
|
+
* transformation. Objects should not be combined. Use a single key/value pair
|
|
16
|
+
* per object.
|
|
17
|
+
*
|
|
18
|
+
* The rotate transformations require a string so that the transform may be
|
|
19
|
+
* expressed in degrees (deg) or radians (rad). For example:
|
|
20
|
+
*
|
|
21
|
+
* `transform([{ rotateX: '45deg' }, { rotateZ: '0.785398rad' }])`
|
|
22
|
+
*
|
|
23
|
+
* The skew transformations require a string so that the transform may be
|
|
24
|
+
* expressed in degrees (deg). For example:
|
|
25
|
+
*
|
|
26
|
+
* `transform([{ skewX: '45deg' }])`
|
|
27
|
+
*/
|
|
28
|
+
transform: ReactPropTypes.Requireable<(NonNullable<ReactPropTypes.InferProps<{
|
|
29
|
+
perspective: ReactPropTypes.Requireable<number>;
|
|
30
|
+
}> | ReactPropTypes.InferProps<{
|
|
31
|
+
rotate: ReactPropTypes.Requireable<string>;
|
|
32
|
+
}> | ReactPropTypes.InferProps<{
|
|
33
|
+
rotateX: ReactPropTypes.Requireable<string>;
|
|
34
|
+
}> | ReactPropTypes.InferProps<{
|
|
35
|
+
rotateY: ReactPropTypes.Requireable<string>;
|
|
36
|
+
}> | ReactPropTypes.InferProps<{
|
|
37
|
+
rotateZ: ReactPropTypes.Requireable<string>;
|
|
38
|
+
}> | ReactPropTypes.InferProps<{
|
|
39
|
+
scale: ReactPropTypes.Requireable<number>;
|
|
40
|
+
}> | ReactPropTypes.InferProps<{
|
|
41
|
+
scaleX: ReactPropTypes.Requireable<number>;
|
|
42
|
+
}> | ReactPropTypes.InferProps<{
|
|
43
|
+
scaleY: ReactPropTypes.Requireable<number>;
|
|
44
|
+
}> | ReactPropTypes.InferProps<{
|
|
45
|
+
translateX: ReactPropTypes.Requireable<number>;
|
|
46
|
+
}> | ReactPropTypes.InferProps<{
|
|
47
|
+
translateY: ReactPropTypes.Requireable<number>;
|
|
48
|
+
}> | ReactPropTypes.InferProps<{
|
|
49
|
+
skewX: ReactPropTypes.Requireable<string>;
|
|
50
|
+
}> | ReactPropTypes.InferProps<{
|
|
51
|
+
skewY: ReactPropTypes.Requireable<string>;
|
|
52
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Deprecated. Use the transform prop instead.
|
|
55
|
+
*/
|
|
56
|
+
transformMatrix: (props: any, propName: any, _componentName: any) => Error | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Deprecated. Use the transform prop instead.
|
|
59
|
+
*/
|
|
60
|
+
decomposedMatrix: (props: any, propName: any, _componentName: any) => Error | undefined;
|
|
61
|
+
scaleX: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
62
|
+
scaleY: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
63
|
+
rotation: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
64
|
+
translateX: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
65
|
+
translateY: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
66
|
+
};
|
|
67
|
+
export default TransformPropTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransformPropTypes.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/TransformPropTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,2DAA4C;AAE5C,8EAAqD;AAErD,MAAM,uBAAuB,GAAG,UAC9B,KAAK,EACL,QAAQ,EACR,cAAc;IAEd,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"TransformPropTypes.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/TransformPropTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,2DAA4C;AAE5C,8EAAqD;AAErD,MAAM,uBAAuB,GAAG,UAC9B,KAAK,EACL,QAAQ,EACR,cAAc;IAEd,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpB,OAAO,IAAI,KAAK,CACd,oDAAoD;YACpD,6C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;QACtD,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC;KACvD,CAAC,CACH;IAED;;OAEG;IACH,eAAe,EAAE,uBAAuB;IACxC;;OAEG;IACH,gBAAgB,EAAE,wBAAwB;IAE1C,qDAAqD;IACrD,MAAM,EAAE,IAAA,4BAAkB,EACxB,cAAc,CAAC,MAAM,EACrB,iCAAiC,CAClC;IACD,MAAM,EAAE,IAAA,4BAAkB,EACxB,cAAc,CAAC,MAAM,EACrB,iCAAiC,CAClC;IACD,QAAQ,EAAE,IAAA,4BAAkB,EAC1B,cAAc,CAAC,MAAM,EACrB,iCAAiC,CAClC;IACD,UAAU,EAAE,IAAA,4BAAkB,EAC5B,cAAc,CAAC,MAAM,EACrB,iCAAiC,CAClC;IACD,UAAU,EAAE,IAAA,4BAAkB,EAC5B,cAAc,CAAC,MAAM,EACrB,iCAAiC,CAClC;CACF,CAAA;AAED,kBAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import * as ReactPropTypes from 'prop-types';
|
|
11
|
+
/**
|
|
12
|
+
* Warning: Some of these properties may not be supported in all releases.
|
|
13
|
+
*/
|
|
14
|
+
declare const ViewStylePropTypes: {
|
|
15
|
+
backfaceVisibility: ReactPropTypes.Requireable<string>;
|
|
16
|
+
backgroundColor: any;
|
|
17
|
+
borderColor: any;
|
|
18
|
+
borderTopColor: any;
|
|
19
|
+
borderRightColor: any;
|
|
20
|
+
borderBottomColor: any;
|
|
21
|
+
borderLeftColor: any;
|
|
22
|
+
borderStartColor: any;
|
|
23
|
+
borderEndColor: any;
|
|
24
|
+
borderRadius: ReactPropTypes.Requireable<number>;
|
|
25
|
+
borderTopLeftRadius: ReactPropTypes.Requireable<number>;
|
|
26
|
+
borderTopRightRadius: ReactPropTypes.Requireable<number>;
|
|
27
|
+
borderTopStartRadius: ReactPropTypes.Requireable<number>;
|
|
28
|
+
borderTopEndRadius: ReactPropTypes.Requireable<number>;
|
|
29
|
+
borderBottomLeftRadius: ReactPropTypes.Requireable<number>;
|
|
30
|
+
borderBottomRightRadius: ReactPropTypes.Requireable<number>;
|
|
31
|
+
borderBottomStartRadius: ReactPropTypes.Requireable<number>;
|
|
32
|
+
borderBottomEndRadius: ReactPropTypes.Requireable<number>;
|
|
33
|
+
borderStyle: ReactPropTypes.Requireable<string>;
|
|
34
|
+
borderWidth: ReactPropTypes.Requireable<number>;
|
|
35
|
+
borderTopWidth: ReactPropTypes.Requireable<number>;
|
|
36
|
+
borderRightWidth: ReactPropTypes.Requireable<number>;
|
|
37
|
+
borderBottomWidth: ReactPropTypes.Requireable<number>;
|
|
38
|
+
borderLeftWidth: ReactPropTypes.Requireable<number>;
|
|
39
|
+
opacity: ReactPropTypes.Requireable<number>;
|
|
40
|
+
/**
|
|
41
|
+
* (Android-only) Sets the elevation of a view, using Android's underlying
|
|
42
|
+
* [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).
|
|
43
|
+
* This adds a drop shadow to the item and affects z-order for overlapping views.
|
|
44
|
+
* Only supported on Android 5.0+, has no effect on earlier versions.
|
|
45
|
+
* @platform android
|
|
46
|
+
*/
|
|
47
|
+
elevation: ReactPropTypes.Requireable<number>;
|
|
48
|
+
transform: ReactPropTypes.Requireable<(NonNullable<ReactPropTypes.InferProps<{
|
|
49
|
+
perspective: ReactPropTypes.Requireable<number>;
|
|
50
|
+
}> | ReactPropTypes.InferProps<{
|
|
51
|
+
rotate: ReactPropTypes.Requireable<string>;
|
|
52
|
+
}> | ReactPropTypes.InferProps<{
|
|
53
|
+
rotateX: ReactPropTypes.Requireable<string>;
|
|
54
|
+
}> | ReactPropTypes.InferProps<{
|
|
55
|
+
rotateY: ReactPropTypes.Requireable<string>;
|
|
56
|
+
}> | ReactPropTypes.InferProps<{
|
|
57
|
+
rotateZ: ReactPropTypes.Requireable<string>;
|
|
58
|
+
}> | ReactPropTypes.InferProps<{
|
|
59
|
+
scale: ReactPropTypes.Requireable<number>;
|
|
60
|
+
}> | ReactPropTypes.InferProps<{
|
|
61
|
+
scaleX: ReactPropTypes.Requireable<number>;
|
|
62
|
+
}> | ReactPropTypes.InferProps<{
|
|
63
|
+
scaleY: ReactPropTypes.Requireable<number>;
|
|
64
|
+
}> | ReactPropTypes.InferProps<{
|
|
65
|
+
translateX: ReactPropTypes.Requireable<number>;
|
|
66
|
+
}> | ReactPropTypes.InferProps<{
|
|
67
|
+
translateY: ReactPropTypes.Requireable<number>;
|
|
68
|
+
}> | ReactPropTypes.InferProps<{
|
|
69
|
+
skewX: ReactPropTypes.Requireable<string>;
|
|
70
|
+
}> | ReactPropTypes.InferProps<{
|
|
71
|
+
skewY: ReactPropTypes.Requireable<string>;
|
|
72
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
73
|
+
transformMatrix: (props: any, propName: any, _componentName: any) => Error | undefined;
|
|
74
|
+
decomposedMatrix: (props: any, propName: any, _componentName: any) => Error | undefined;
|
|
75
|
+
scaleX: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
76
|
+
scaleY: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
77
|
+
rotation: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
78
|
+
translateX: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
79
|
+
translateY: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
80
|
+
shadowColor: any;
|
|
81
|
+
shadowOffset: ReactPropTypes.Requireable<ReactPropTypes.InferProps<{
|
|
82
|
+
width: ReactPropTypes.Requireable<number>;
|
|
83
|
+
height: ReactPropTypes.Requireable<number>;
|
|
84
|
+
}>>;
|
|
85
|
+
shadowOpacity: ReactPropTypes.Requireable<number>;
|
|
86
|
+
shadowRadius: ReactPropTypes.Requireable<number>;
|
|
87
|
+
display: ReactPropTypes.Requireable<string>;
|
|
88
|
+
width: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
89
|
+
height: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
90
|
+
start: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
91
|
+
end: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
92
|
+
top: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
93
|
+
left: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
94
|
+
right: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
95
|
+
bottom: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
96
|
+
minWidth: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
97
|
+
maxWidth: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
98
|
+
minHeight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
99
|
+
maxHeight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
100
|
+
margin: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
101
|
+
marginVertical: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
102
|
+
marginHorizontal: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
103
|
+
marginTop: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
104
|
+
marginBottom: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
105
|
+
marginLeft: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
106
|
+
marginRight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
107
|
+
marginStart: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
108
|
+
marginEnd: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
109
|
+
padding: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
110
|
+
paddingVertical: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
111
|
+
paddingHorizontal: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
112
|
+
paddingTop: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
113
|
+
paddingBottom: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
114
|
+
paddingLeft: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
115
|
+
paddingRight: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
116
|
+
paddingStart: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
117
|
+
paddingEnd: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
118
|
+
borderStartWidth: ReactPropTypes.Requireable<number>;
|
|
119
|
+
borderEndWidth: ReactPropTypes.Requireable<number>;
|
|
120
|
+
position: ReactPropTypes.Requireable<string>;
|
|
121
|
+
flexDirection: ReactPropTypes.Requireable<string>;
|
|
122
|
+
flexWrap: ReactPropTypes.Requireable<string>;
|
|
123
|
+
justifyContent: ReactPropTypes.Requireable<string>;
|
|
124
|
+
alignItems: ReactPropTypes.Requireable<string>;
|
|
125
|
+
alignSelf: ReactPropTypes.Requireable<string>;
|
|
126
|
+
alignContent: ReactPropTypes.Requireable<string>;
|
|
127
|
+
overflow: ReactPropTypes.Requireable<string>;
|
|
128
|
+
flex: ReactPropTypes.Requireable<number>;
|
|
129
|
+
flexGrow: ReactPropTypes.Requireable<number>;
|
|
130
|
+
flexShrink: ReactPropTypes.Requireable<number>;
|
|
131
|
+
flexBasis: ReactPropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
132
|
+
aspectRatio: ReactPropTypes.Requireable<number>;
|
|
133
|
+
zIndex: ReactPropTypes.Requireable<number>;
|
|
134
|
+
direction: ReactPropTypes.Requireable<string>;
|
|
135
|
+
};
|
|
136
|
+
export default ViewStylePropTypes;
|
|
@@ -35,9 +35,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
const ReactPropTypes = __importStar(require("prop-types"));
|
|
38
39
|
const ColorPropType_1 = __importDefault(require("./ColorPropType"));
|
|
39
40
|
const LayoutPropTypes_1 = __importDefault(require("./LayoutPropTypes"));
|
|
40
|
-
const ReactPropTypes = __importStar(require("prop-types"));
|
|
41
41
|
const ShadowPropTypesIOS_1 = __importDefault(require("./ShadowPropTypesIOS"));
|
|
42
42
|
const TransformPropTypes_1 = __importDefault(require("./TransformPropTypes"));
|
|
43
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewStylePropTypes.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/ViewStylePropTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,oEAA2C;AAC3C,wEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"ViewStylePropTypes.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/ViewStylePropTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,2DAA4C;AAE5C,oEAA2C;AAC3C,wEAA+C;AAC/C,8EAAqD;AACrD,8EAAqD;AAErD;;GAEG;AACH,MAAM,kBAAkB,+DACnB,yBAAe,GACf,4BAAkB,GAClB,4BAAkB,KACrB,kBAAkB,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAC/D,eAAe,EAAE,uBAAa,EAC9B,WAAW,EAAE,uBAAa,EAC1B,cAAc,EAAE,uBAAa,EAC7B,gBAAgB,EAAE,uBAAa,EAC/B,iBAAiB,EAAE,uBAAa,EAChC,eAAe,EAAE,uBAAa,EAC9B,gBAAgB,EAAE,uBAAa,EAC/B,cAAc,EAAE,uBAAa,EAC7B,YAAY,EAAE,cAAc,CAAC,MAAM,EACnC,mBAAmB,EAAE,cAAc,CAAC,MAAM,EAC1C,oBAAoB,EAAE,cAAc,CAAC,MAAM,EAC3C,oBAAoB,EAAE,cAAc,CAAC,MAAM,EAC3C,kBAAkB,EAAE,cAAc,CAAC,MAAM,EACzC,sBAAsB,EAAE,cAAc,CAAC,MAAM,EAC7C,uBAAuB,EAAE,cAAc,CAAC,MAAM,EAC9C,uBAAuB,EAAE,cAAc,CAAC,MAAM,EAC9C,qBAAqB,EAAE,cAAc,CAAC,MAAM,EAC5C,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAChE,WAAW,EAAE,cAAc,CAAC,MAAM,EAClC,cAAc,EAAE,cAAc,CAAC,MAAM,EACrC,gBAAgB,EAAE,cAAc,CAAC,MAAM,EACvC,iBAAiB,EAAE,cAAc,CAAC,MAAM,EACxC,eAAe,EAAE,cAAc,CAAC,MAAM,EACtC,OAAO,EAAE,cAAc,CAAC,MAAM;IAC9B;;;;;;OAMG;IACH,SAAS,EAAE,cAAc,CAAC,MAAM,GACjC,CAAA;AAED,kBAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
* strict-local
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Adds a deprecation warning when the prop is used.
|
|
12
|
+
*/
|
|
13
|
+
export default function deprecatedPropType(propType: any, explanation: any): (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecatedPropType.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/deprecatedPropType.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAEH,yCAAyC;AAEzC;;GAEG;AACH,SAAwB,kBAAkB,CACxC,QAAQ,EACR,WAAW;IAEX,OAAO,SAAS,QAAQ,CAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI;QAC/D,oCAAoC;QACpC,oEAAoE;QACpE,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"deprecatedPropType.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/deprecatedPropType.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAEH,yCAAyC;AAEzC;;GAEG;AACH,SAAwB,kBAAkB,CACxC,QAAQ,EACR,WAAW;IAEX,OAAO,SAAS,QAAQ,CAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI;QAC/D,oCAAoC;QACpC,oEAAoE;QACpE,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;YAClC,OAAO,CAAC,IAAI,CACV,KAAK,QAAQ,oBAAoB,aAAa,2BAA2B,WAAW,EAAE,CACvF,CAAA;QACH,CAAC;QAED,OAAO,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,CAAA;IAC1D,CAAC,CAAA;AACH,CAAC;AAfD,qCAeC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export default function normalizeColor(color: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeColor.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/normalizeColor.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAEH,0BAA0B;AAE1B,SAAwB,cAAc,CAAE,KAAK;IAC3C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,IAAI,KAAK,CAAA;IAET,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"normalizeColor.js","sourceRoot":"","sources":["../../../src/transforms/StyleSheet/normalizeColor.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAEH,0BAA0B;AAE1B,SAAwB,cAAc,CAAE,KAAK;IAC3C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,IAAI,KAAK,CAAA;IAET,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK,KAAK,CAAC,KAAK,KAAK,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,UAAU,EAAE,CAAC;YAC/D,OAAO,KAAK,CAAA;QACd,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,oDAAoD;IACpD,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACxC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;IAC5C,CAAC;IAED,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC,KAAK,CAAC,CAAA;IACrB,CAAC;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MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,UAAU;IACrB,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;IACjB,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,UAAU;CACxB,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Config, PostcssConfig, TransformOptions } from '../types';
|
|
2
|
+
export declare function getWrapedCSS(css: any): string;
|
|
3
|
+
interface PostcssParam {
|
|
4
|
+
css: string;
|
|
5
|
+
map: any;
|
|
6
|
+
filename: string;
|
|
7
|
+
additionalData: string;
|
|
8
|
+
postcssConfig: PostcssConfig;
|
|
9
|
+
transformOptions: TransformOptions;
|
|
10
|
+
}
|
|
11
|
+
export default class StyleTransform {
|
|
12
|
+
config: Config;
|
|
13
|
+
processConfigMap: Map<any, any>;
|
|
14
|
+
constructor(config: Config);
|
|
15
|
+
init: (config: Config) => void;
|
|
16
|
+
/**
|
|
17
|
+
* @description 样式文件处理
|
|
18
|
+
* @param {string} src
|
|
19
|
+
* @param {string} filename
|
|
20
|
+
* @param {object} options
|
|
21
|
+
*/
|
|
22
|
+
processStyle(src: string, filename: string, options: TransformOptions): Promise<{
|
|
23
|
+
filename: string;
|
|
24
|
+
css: string;
|
|
25
|
+
lastPlugin: import("postcss").TransformCallback | import("postcss").Plugin;
|
|
26
|
+
map: import("postcss").SourceMap;
|
|
27
|
+
messages: import("postcss/lib/result").Message[];
|
|
28
|
+
opts: import("postcss/lib/result").ResultOptions;
|
|
29
|
+
processor: import("postcss").Processor;
|
|
30
|
+
root: import("postcss").Root;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* postcss处理
|
|
34
|
+
* @param param0 PostcssParam
|
|
35
|
+
* @returns {Promise | any}
|
|
36
|
+
*/
|
|
37
|
+
postCSS({ css, map, filename, postcssConfig, transformOptions, additionalData }: PostcssParam): Promise<{
|
|
38
|
+
filename: string;
|
|
39
|
+
css: string;
|
|
40
|
+
lastPlugin: import("postcss").TransformCallback | import("postcss").Plugin;
|
|
41
|
+
map: import("postcss").SourceMap;
|
|
42
|
+
messages: import("postcss/lib/result").Message[];
|
|
43
|
+
opts: import("postcss/lib/result").ResultOptions;
|
|
44
|
+
processor: import("postcss").Processor;
|
|
45
|
+
root: import("postcss").Root;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* @description 处理样式入口
|
|
49
|
+
* @param {string} src
|
|
50
|
+
* @param {string} filename
|
|
51
|
+
* @param {object} transform
|
|
52
|
+
* @return {string} JSONString
|
|
53
|
+
*/
|
|
54
|
+
transform(src: string, filename: string, options: TransformOptions): Promise<string>;
|
|
55
|
+
}
|
|
56
|
+
export {};
|