@tamagui/helpers 1.97.1 → 1.98.0
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/dist/cjs/validStyleProps.js +74 -5
- package/dist/cjs/validStyleProps.js.map +1 -1
- package/dist/cjs/validStyleProps.native.js +35 -3
- package/dist/cjs/validStyleProps.native.js.map +2 -2
- package/dist/esm/validStyleProps.js +74 -5
- package/dist/esm/validStyleProps.js.map +1 -1
- package/dist/esm/validStyleProps.mjs +74 -5
- package/dist/esm/validStyleProps.native.js +35 -3
- package/dist/esm/validStyleProps.native.js.map +2 -2
- package/package.json +4 -4
- package/src/validStyleProps.ts +73 -3
- package/types/validStyleProps.d.ts +291 -14
- package/types/validStyleProps.d.ts.map +1 -1
- package/types/withStaticProperties.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/validStyleProps.ts"],
|
|
4
|
-
"mappings": "AAAA,SAASA,iBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjC,IAAMC,aAAa;EACjBC,OAAO;EACPC,qBAAqB;EACrBC,iBAAiB;AACnB,GAIaC,kBAAkB;EAC7BC,QAAQ;IACNC,cAAc;IACdC,qBAAqB;IACrBC,sBAAsB;IACtBC,wBAAwB;IACxBC,yBAAyB;;IAGzBC,wBAAwB;IACxBC,sBAAsB;IACtBC,sBAAsB;IACtBC,oBAAoB;EACtB;EACAC,MAAM;IACJC,OAAO;IACPC,QAAQ;IACRC,UAAU;IACVC,WAAW;IACXC,UAAU;IACVC,WAAW;
|
|
5
|
-
"names": ["isAndroid", "textColors", "color", "textDecorationColor", "textShadowColor", "tokenCategories", "radius", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderStartStartRadius", "borderStartEndRadius", "borderEndStartRadius", "borderEndEndRadius", "size", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "zIndex", "backgroundColor", "borderColor", "borderBlockStartColor", "borderBlockEndColor", "borderBlockColor", "borderBottomColor", "borderTopColor", "borderLeftColor", "borderRightColor", "borderEndColor", "borderStartColor", "shadowColor", "process", "stylePropsUnitless", "WebkitLineClamp", "animationIterationCount", "aspectRatio", "borderImageOutset", "borderImageSlice", "borderImageWidth", "columnCount", "flex", "flexGrow", "flexOrder", "flexPositive", "flexShrink", "flexNegative", "fontWeight", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "lineClamp", "opacity", "order", "orphans", "tabSize", "widows", "zoom", "scale", "scaleX", "scaleY", "scaleZ", "shadowOpacity", "stylePropsTransform", "x", "y", "perspective", "skewX", "skewY", "matrix", "rotate", "rotateY", "rotateX", "rotateZ", "stylePropsView", "backfaceVisibility", "borderBottomEndRadius", "borderBottomStartRadius", "borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderStyle", "borderTopEndRadius", "borderTopStartRadius", "borderTopWidth", "borderWidth", "transform", "transformOrigin", "alignContent", "alignItems", "alignSelf", "borderEndWidth", "borderStartWidth", "bottom", "display", "end", "flexBasis", "flexDirection", "flexWrap", "gap", "columnGap", "rowGap", "justifyContent", "left", "margin", "
|
|
4
|
+
"mappings": "AAAA,SAASA,iBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjC,IAAMC,aAAa;EACjBC,OAAO;EACPC,qBAAqB;EACrBC,iBAAiB;AACnB,GAIaC,kBAAkB;EAC7BC,QAAQ;IACNC,cAAc;IACdC,qBAAqB;IACrBC,sBAAsB;IACtBC,wBAAwB;IACxBC,yBAAyB;;IAGzBC,wBAAwB;IACxBC,sBAAsB;IACtBC,sBAAsB;IACtBC,oBAAoB;EACtB;EACAC,MAAM;IACJC,OAAO;IACPC,QAAQ;IACRC,UAAU;IACVC,WAAW;IACXC,UAAU;IACVC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2H,eAAe;EACfC,YAAY;EACZC,eAAe;AACjB,GAEaC,qBAAqB;EAAA,qBAAA,eAAA,qBAAA,eAAA,CAAA,GAC7BP,cAAAA,GAAAA;IACHQ,WAAW;IACXC,oBAAoB;IACpBC,qBAAqB;MAClB5L,UAAAA,GAAAA;IACH6L,kBAAkB;IAClBC,kBAAkB;IAClBC,YAAY;IACZC,YAAY;IACZC,eAAe;;;EAGXrJ;AAQJ,GAGWsJ,iBAAiB,eAAA,CAAA,GACzBvG,gBACA8F,kBAAAA,GAGQU,gBAAgBD,gBAEhBE,kBAAkB;EAAA;IAC7BC,YAAY;IACZC,WAAW;IACXC,YAAY;IACZC,YAAY;IACZC,YAAY;IACZC,eAAe;;;EAGX9J;AAEJ,GAGW+J,cAAc,eAAA,CAAA,GACtBP,iBACAzG,cAAAA;",
|
|
5
|
+
"names": ["isAndroid", "textColors", "color", "textDecorationColor", "textShadowColor", "tokenCategories", "radius", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderStartStartRadius", "borderStartEndRadius", "borderEndStartRadius", "borderEndEndRadius", "size", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "blockSize", "minBlockSize", "maxBlockSize", "inlineSize", "minInlineSize", "maxInlineSize", "zIndex", "backgroundColor", "borderColor", "borderBlockStartColor", "borderBlockEndColor", "borderBlockColor", "borderBottomColor", "borderInlineColor", "borderInlineStartColor", "borderInlineEndColor", "borderTopColor", "borderLeftColor", "borderRightColor", "borderEndColor", "borderStartColor", "shadowColor", "process", "stylePropsUnitless", "WebkitLineClamp", "animationIterationCount", "aspectRatio", "borderImageOutset", "borderImageSlice", "borderImageWidth", "columnCount", "flex", "flexGrow", "flexOrder", "flexPositive", "flexShrink", "flexNegative", "fontWeight", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "lineClamp", "opacity", "order", "orphans", "tabSize", "widows", "zoom", "scale", "scaleX", "scaleY", "scaleZ", "shadowOpacity", "stylePropsTransform", "x", "y", "perspective", "skewX", "skewY", "matrix", "rotate", "rotateY", "rotateX", "rotateZ", "stylePropsView", "backfaceVisibility", "borderBottomEndRadius", "borderBottomStartRadius", "borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderBlockWidth", "borderBlockEndWidth", "borderBlockStartWidth", "borderInlineWidth", "borderInlineEndWidth", "borderInlineStartWidth", "borderStyle", "borderBlockStyle", "borderBlockEndStyle", "borderBlockStartStyle", "borderInlineStyle", "borderInlineEndStyle", "borderInlineStartStyle", "borderTopEndRadius", "borderTopStartRadius", "borderTopWidth", "borderWidth", "transform", "transformOrigin", "alignContent", "alignItems", "alignSelf", "borderEndWidth", "borderStartWidth", "bottom", "display", "end", "flexBasis", "flexDirection", "flexWrap", "gap", "columnGap", "rowGap", "justifyContent", "left", "margin", "marginBlock", "marginBlockEnd", "marginBlockStart", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBottom", "marginEnd", "marginHorizontal", "marginLeft", "marginRight", "marginStart", "marginTop", "marginVertical", "overflow", "padding", "paddingBottom", "paddingInline", "paddingBlock", "paddingBlockStart", "paddingInlineEnd", "paddingInlineStart", "paddingEnd", "paddingHorizontal", "paddingLeft", "paddingRight", "paddingStart", "paddingTop", "paddingVertical", "position", "right", "start", "top", "inset", "insetBlock", "insetBlockEnd", "insetBlockStart", "insetInline", "insetInlineEnd", "insetInlineStart", "direction", "shadowOffset", "shadowRadius", "elevationAndroid", "stylePropsFont", "fontFamily", "fontSize", "fontStyle", "letterSpacing", "lineHeight", "textTransform", "stylePropsTextOnly", "textAlign", "textDecorationLine", "textDecorationStyle", "textShadowOffset", "textShadowRadius", "userSelect", "selectable", "verticalAlign", "stylePropsText", "stylePropsAll", "validPseudoKeys", "enterStyle", "exitStyle", "hoverStyle", "pressStyle", "focusStyle", "disabledStyle", "validStyles"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.98.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"clean:build": "tamagui-build clean:build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tamagui/constants": "1.
|
|
23
|
-
"@tamagui/simple-hash": "1.
|
|
22
|
+
"@tamagui/constants": "1.98.0",
|
|
23
|
+
"@tamagui/simple-hash": "1.98.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tamagui/build": "1.
|
|
26
|
+
"@tamagui/build": "1.98.0"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
package/src/validStyleProps.ts
CHANGED
|
@@ -31,6 +31,12 @@ export const tokenCategories = {
|
|
|
31
31
|
minHeight: true,
|
|
32
32
|
maxWidth: true,
|
|
33
33
|
maxHeight: true,
|
|
34
|
+
blockSize: true,
|
|
35
|
+
minBlockSize: true,
|
|
36
|
+
maxBlockSize: true,
|
|
37
|
+
inlineSize: true,
|
|
38
|
+
minInlineSize: true,
|
|
39
|
+
maxInlineSize: true,
|
|
34
40
|
},
|
|
35
41
|
zIndex: {
|
|
36
42
|
zIndex: true,
|
|
@@ -42,6 +48,9 @@ export const tokenCategories = {
|
|
|
42
48
|
borderBlockEndColor: true,
|
|
43
49
|
borderBlockColor: true,
|
|
44
50
|
borderBottomColor: true,
|
|
51
|
+
borderInlineColor: true,
|
|
52
|
+
borderInlineStartColor: true,
|
|
53
|
+
borderInlineEndColor: true,
|
|
45
54
|
borderTopColor: true,
|
|
46
55
|
borderLeftColor: true,
|
|
47
56
|
borderRightColor: true,
|
|
@@ -51,6 +60,7 @@ export const tokenCategories = {
|
|
|
51
60
|
...textColors,
|
|
52
61
|
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
53
62
|
outlineColor: true,
|
|
63
|
+
caretColor: true,
|
|
54
64
|
}),
|
|
55
65
|
},
|
|
56
66
|
}
|
|
@@ -116,7 +126,19 @@ export const stylePropsView = {
|
|
|
116
126
|
borderBottomWidth: true,
|
|
117
127
|
borderLeftWidth: true,
|
|
118
128
|
borderRightWidth: true,
|
|
129
|
+
borderBlockWidth: true,
|
|
130
|
+
borderBlockEndWidth: true,
|
|
131
|
+
borderBlockStartWidth: true,
|
|
132
|
+
borderInlineWidth: true,
|
|
133
|
+
borderInlineEndWidth: true,
|
|
134
|
+
borderInlineStartWidth: true,
|
|
119
135
|
borderStyle: true,
|
|
136
|
+
borderBlockStyle: true,
|
|
137
|
+
borderBlockEndStyle: true,
|
|
138
|
+
borderBlockStartStyle: true,
|
|
139
|
+
borderInlineStyle: true,
|
|
140
|
+
borderInlineEndStyle: true,
|
|
141
|
+
borderInlineStartStyle: true,
|
|
120
142
|
borderTopEndRadius: true,
|
|
121
143
|
borderTopStartRadius: true,
|
|
122
144
|
borderTopWidth: true,
|
|
@@ -140,11 +162,12 @@ export const stylePropsView = {
|
|
|
140
162
|
justifyContent: true,
|
|
141
163
|
left: true,
|
|
142
164
|
margin: true,
|
|
165
|
+
marginBlock: true,
|
|
143
166
|
marginBlockEnd: true,
|
|
144
167
|
marginBlockStart: true,
|
|
145
|
-
marginInlineEnd: true,
|
|
146
168
|
marginInline: true,
|
|
147
169
|
marginInlineStart: true,
|
|
170
|
+
marginInlineEnd: true,
|
|
148
171
|
marginBottom: true,
|
|
149
172
|
marginEnd: true,
|
|
150
173
|
marginHorizontal: true,
|
|
@@ -172,6 +195,13 @@ export const stylePropsView = {
|
|
|
172
195
|
right: true,
|
|
173
196
|
start: true,
|
|
174
197
|
top: true,
|
|
198
|
+
inset: true,
|
|
199
|
+
insetBlock: true,
|
|
200
|
+
insetBlockEnd: true,
|
|
201
|
+
insetBlockStart: true,
|
|
202
|
+
insetInline: true,
|
|
203
|
+
insetInlineEnd: true,
|
|
204
|
+
insetInlineStart: true,
|
|
175
205
|
direction: true,
|
|
176
206
|
shadowOffset: true,
|
|
177
207
|
shadowRadius: true,
|
|
@@ -205,6 +235,45 @@ export const stylePropsView = {
|
|
|
205
235
|
outlineOffset: true,
|
|
206
236
|
outlineWidth: true,
|
|
207
237
|
touchAction: true,
|
|
238
|
+
filter: true,
|
|
239
|
+
backdropFilter: true,
|
|
240
|
+
mixBlendMode: true,
|
|
241
|
+
backgroundImage: true,
|
|
242
|
+
backgroundOrigin: true,
|
|
243
|
+
backgroundPosition: true,
|
|
244
|
+
backgroundRepeat: true,
|
|
245
|
+
backgroundSize: true,
|
|
246
|
+
backgroundColor: true,
|
|
247
|
+
backgroundClip: true,
|
|
248
|
+
backgroundBlendMode: true,
|
|
249
|
+
backgroundAttachment: true,
|
|
250
|
+
background: true,
|
|
251
|
+
clipPath: true,
|
|
252
|
+
transformStyle: true,
|
|
253
|
+
mask: true,
|
|
254
|
+
maskImage: true,
|
|
255
|
+
textEmphasis: true,
|
|
256
|
+
borderImage: true,
|
|
257
|
+
float: true,
|
|
258
|
+
content: true,
|
|
259
|
+
overflowBlock: true,
|
|
260
|
+
overflowInline: true,
|
|
261
|
+
|
|
262
|
+
maskBorder: true,
|
|
263
|
+
maskBorderMode: true,
|
|
264
|
+
maskBorderOutset: true,
|
|
265
|
+
maskBorderRepeat: true,
|
|
266
|
+
maskBorderSlice: true,
|
|
267
|
+
maskBorderSource: true,
|
|
268
|
+
maskBorderWidth: true,
|
|
269
|
+
maskClip: true,
|
|
270
|
+
maskComposite: true,
|
|
271
|
+
maskMode: true,
|
|
272
|
+
maskOrigin: true,
|
|
273
|
+
maskPosition: true,
|
|
274
|
+
maskRepeat: true,
|
|
275
|
+
maskSize: true,
|
|
276
|
+
maskType: true,
|
|
208
277
|
}),
|
|
209
278
|
...(isAndroid ? { elevationAndroid: true } : {}),
|
|
210
279
|
}
|
|
@@ -227,6 +296,9 @@ export const stylePropsTextOnly = {
|
|
|
227
296
|
...textColors,
|
|
228
297
|
textShadowOffset: true,
|
|
229
298
|
textShadowRadius: true,
|
|
299
|
+
userSelect: true,
|
|
300
|
+
selectable: true,
|
|
301
|
+
verticalAlign: true,
|
|
230
302
|
|
|
231
303
|
// allow some web only ones
|
|
232
304
|
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
@@ -234,8 +306,6 @@ export const stylePropsTextOnly = {
|
|
|
234
306
|
wordWrap: true,
|
|
235
307
|
textOverflow: true,
|
|
236
308
|
textDecorationDistance: true,
|
|
237
|
-
userSelect: true,
|
|
238
|
-
selectable: true,
|
|
239
309
|
cursor: true,
|
|
240
310
|
WebkitLineClamp: true,
|
|
241
311
|
WebkitBoxOrient: true,
|