@tamagui/helpers 1.0.0-alpha.12 → 1.0.0-alpha.13

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/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@tamagui/helpers",
3
- "version": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.13",
4
4
  "source": "src/index.ts",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.js",
7
- "typings": "types.d.ts",
5
+ "typings": "types",
6
+ "main": "dist/cjs",
7
+ "module": "dist/esm",
8
+ "module:jsx": "dist/_jsx",
8
9
  "files": [
9
- "types.d.ts",
10
- "dist",
11
- "src"
10
+ "types",
11
+ "src",
12
+ "dist"
12
13
  ],
13
14
  "scripts": {
14
15
  "build": "tamagui-build",
@@ -23,5 +24,5 @@
23
24
  "publishConfig": {
24
25
  "access": "public"
25
26
  },
26
- "gitHead": "d50261a4e08d2212395af4f2d8f49555fc780c3e"
27
+ "gitHead": "5fa09073ac2c6bf529f0e81dd65db8b31682f360"
27
28
  }
@@ -0,0 +1,3 @@
1
+ export declare const AllRules: Set<unknown>;
2
+ export declare const getStyleRules: () => Set<unknown>;
3
+ //# sourceMappingURL=allRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allRules.d.ts","sourceRoot":"","sources":["../src/allRules.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,cAAY,CAAA;AAEjC,eAAO,MAAM,aAAa,oBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function concatClassName(_cn: any): string;
2
+ //# sourceMappingURL=concatClassName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concatClassName.d.ts","sourceRoot":"","sources":["../src/concatClassName.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,UAoFvC"}
@@ -0,0 +1,5 @@
1
+ export * from './concatClassName';
2
+ export * from './validStyleProps';
3
+ export * from './types';
4
+ export * from './allRules';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const simpleHash: (str: string) => string;
2
+ //# sourceMappingURL=simpleHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleHash.d.ts","sourceRoot":"","sources":["../src/simpleHash.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAS,MAAM,WAQrC,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare type StyleObject = {
2
+ property: string;
3
+ value: string;
4
+ className: string;
5
+ identifier: string;
6
+ rules: string[];
7
+ };
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB,CAAA"}
@@ -0,0 +1,475 @@
1
+ export declare const stylePropsTransform: {
2
+ x: boolean;
3
+ y: boolean;
4
+ scale: boolean;
5
+ perspective: boolean;
6
+ scaleX: boolean;
7
+ scaleY: boolean;
8
+ skewX: boolean;
9
+ skewY: boolean;
10
+ matrix: boolean;
11
+ rotate: boolean;
12
+ rotateY: boolean;
13
+ rotateX: boolean;
14
+ rotateZ: boolean;
15
+ };
16
+ export declare const stylePropsView: Readonly<{
17
+ userSelect?: boolean | undefined;
18
+ cursor?: boolean | undefined;
19
+ contain?: boolean | undefined;
20
+ pointerEvents?: boolean | undefined;
21
+ boxSizing?: boolean | undefined;
22
+ x: boolean;
23
+ y: boolean;
24
+ scale: boolean;
25
+ perspective: boolean;
26
+ scaleX: boolean;
27
+ scaleY: boolean;
28
+ skewX: boolean;
29
+ skewY: boolean;
30
+ matrix: boolean;
31
+ rotate: boolean;
32
+ rotateY: boolean;
33
+ rotateX: boolean;
34
+ rotateZ: boolean;
35
+ backfaceVisibility: boolean;
36
+ backgroundColor: boolean;
37
+ borderBottomColor: boolean;
38
+ borderBottomEndRadius: boolean;
39
+ borderBottomLeftRadius: boolean;
40
+ borderBottomRightRadius: boolean;
41
+ borderBottomStartRadius: boolean;
42
+ borderBottomWidth: boolean;
43
+ borderColor: boolean;
44
+ borderEndColor: boolean;
45
+ borderLeftColor: boolean;
46
+ borderLeftWidth: boolean;
47
+ borderRadius: boolean;
48
+ borderRightColor: boolean;
49
+ borderRightWidth: boolean;
50
+ borderStartColor: boolean;
51
+ borderStyle: boolean;
52
+ borderTopColor: boolean;
53
+ borderTopEndRadius: boolean;
54
+ borderTopLeftRadius: boolean;
55
+ borderTopRightRadius: boolean;
56
+ borderTopStartRadius: boolean;
57
+ borderTopWidth: boolean;
58
+ borderWidth: boolean;
59
+ opacity: boolean;
60
+ transform: boolean;
61
+ alignContent: boolean;
62
+ alignItems: boolean;
63
+ alignSelf: boolean;
64
+ aspectRatio: boolean;
65
+ borderEndWidth: boolean;
66
+ borderStartWidth: boolean;
67
+ bottom: boolean;
68
+ display: boolean;
69
+ end: boolean;
70
+ flex: boolean;
71
+ flexBasis: boolean;
72
+ flexDirection: boolean;
73
+ flexGrow: boolean;
74
+ flexShrink: boolean;
75
+ flexWrap: boolean;
76
+ height: boolean;
77
+ justifyContent: boolean;
78
+ left: boolean;
79
+ margin: boolean;
80
+ marginBottom: boolean;
81
+ marginEnd: boolean;
82
+ marginHorizontal: boolean;
83
+ marginLeft: boolean;
84
+ marginRight: boolean;
85
+ marginStart: boolean;
86
+ marginTop: boolean;
87
+ marginVertical: boolean;
88
+ maxHeight: boolean;
89
+ maxWidth: boolean;
90
+ minHeight: boolean;
91
+ minWidth: boolean;
92
+ overflow: boolean;
93
+ padding: boolean;
94
+ paddingBottom: boolean;
95
+ paddingEnd: boolean;
96
+ paddingHorizontal: boolean;
97
+ paddingLeft: boolean;
98
+ paddingRight: boolean;
99
+ paddingStart: boolean;
100
+ paddingTop: boolean;
101
+ paddingVertical: boolean;
102
+ position: boolean;
103
+ right: boolean;
104
+ start: boolean;
105
+ top: boolean;
106
+ width: boolean;
107
+ zIndex: boolean;
108
+ direction: boolean;
109
+ shadowColor: boolean;
110
+ shadowOffset: boolean;
111
+ shadowOpacity: boolean;
112
+ shadowRadius: boolean;
113
+ }>;
114
+ export declare const stylePropsTextOnly: Readonly<{
115
+ whiteSpace?: boolean | undefined;
116
+ wordWrap?: boolean | undefined;
117
+ textOverflow?: boolean | undefined;
118
+ textDecorationDistance?: boolean | undefined;
119
+ color: boolean;
120
+ fontFamily: boolean;
121
+ fontSize: boolean;
122
+ fontStyle: boolean;
123
+ fontWeight: boolean;
124
+ letterSpacing: boolean;
125
+ lineHeight: boolean;
126
+ textAlign: boolean;
127
+ textDecorationLine: boolean;
128
+ textDecorationStyle: boolean;
129
+ textDecorationColor: boolean;
130
+ textShadowColor: boolean;
131
+ textShadowOffset: boolean;
132
+ textShadowRadius: boolean;
133
+ textTransform: boolean;
134
+ }>;
135
+ export declare const stylePropsText: Readonly<{
136
+ whiteSpace?: boolean | undefined;
137
+ wordWrap?: boolean | undefined;
138
+ textOverflow?: boolean | undefined;
139
+ textDecorationDistance?: boolean | undefined;
140
+ color: boolean;
141
+ fontFamily: boolean;
142
+ fontSize: boolean;
143
+ fontStyle: boolean;
144
+ fontWeight: boolean;
145
+ letterSpacing: boolean;
146
+ lineHeight: boolean;
147
+ textAlign: boolean;
148
+ textDecorationLine: boolean;
149
+ textDecorationStyle: boolean;
150
+ textDecorationColor: boolean;
151
+ textShadowColor: boolean;
152
+ textShadowOffset: boolean;
153
+ textShadowRadius: boolean;
154
+ textTransform: boolean;
155
+ userSelect?: boolean | undefined;
156
+ cursor?: boolean | undefined;
157
+ contain?: boolean | undefined;
158
+ pointerEvents?: boolean | undefined;
159
+ boxSizing?: boolean | undefined;
160
+ x: boolean;
161
+ y: boolean;
162
+ scale: boolean;
163
+ perspective: boolean;
164
+ scaleX: boolean;
165
+ scaleY: boolean;
166
+ skewX: boolean;
167
+ skewY: boolean;
168
+ matrix: boolean;
169
+ rotate: boolean;
170
+ rotateY: boolean;
171
+ rotateX: boolean;
172
+ rotateZ: boolean;
173
+ backfaceVisibility: boolean;
174
+ backgroundColor: boolean;
175
+ borderBottomColor: boolean;
176
+ borderBottomEndRadius: boolean;
177
+ borderBottomLeftRadius: boolean;
178
+ borderBottomRightRadius: boolean;
179
+ borderBottomStartRadius: boolean;
180
+ borderBottomWidth: boolean;
181
+ borderColor: boolean;
182
+ borderEndColor: boolean;
183
+ borderLeftColor: boolean;
184
+ borderLeftWidth: boolean;
185
+ borderRadius: boolean;
186
+ borderRightColor: boolean;
187
+ borderRightWidth: boolean;
188
+ borderStartColor: boolean;
189
+ borderStyle: boolean;
190
+ borderTopColor: boolean;
191
+ borderTopEndRadius: boolean;
192
+ borderTopLeftRadius: boolean;
193
+ borderTopRightRadius: boolean;
194
+ borderTopStartRadius: boolean;
195
+ borderTopWidth: boolean;
196
+ borderWidth: boolean;
197
+ opacity: boolean;
198
+ transform: boolean;
199
+ alignContent: boolean;
200
+ alignItems: boolean;
201
+ alignSelf: boolean;
202
+ aspectRatio: boolean;
203
+ borderEndWidth: boolean;
204
+ borderStartWidth: boolean;
205
+ bottom: boolean;
206
+ display: boolean;
207
+ end: boolean;
208
+ flex: boolean;
209
+ flexBasis: boolean;
210
+ flexDirection: boolean;
211
+ flexGrow: boolean;
212
+ flexShrink: boolean;
213
+ flexWrap: boolean;
214
+ height: boolean;
215
+ justifyContent: boolean;
216
+ left: boolean;
217
+ margin: boolean;
218
+ marginBottom: boolean;
219
+ marginEnd: boolean;
220
+ marginHorizontal: boolean;
221
+ marginLeft: boolean;
222
+ marginRight: boolean;
223
+ marginStart: boolean;
224
+ marginTop: boolean;
225
+ marginVertical: boolean;
226
+ maxHeight: boolean;
227
+ maxWidth: boolean;
228
+ minHeight: boolean;
229
+ minWidth: boolean;
230
+ overflow: boolean;
231
+ padding: boolean;
232
+ paddingBottom: boolean;
233
+ paddingEnd: boolean;
234
+ paddingHorizontal: boolean;
235
+ paddingLeft: boolean;
236
+ paddingRight: boolean;
237
+ paddingStart: boolean;
238
+ paddingTop: boolean;
239
+ paddingVertical: boolean;
240
+ position: boolean;
241
+ right: boolean;
242
+ start: boolean;
243
+ top: boolean;
244
+ width: boolean;
245
+ zIndex: boolean;
246
+ direction: boolean;
247
+ shadowColor: boolean;
248
+ shadowOffset: boolean;
249
+ shadowOpacity: boolean;
250
+ shadowRadius: boolean;
251
+ }>;
252
+ export declare const stylePropsAll: Readonly<{
253
+ whiteSpace?: boolean | undefined;
254
+ wordWrap?: boolean | undefined;
255
+ textOverflow?: boolean | undefined;
256
+ textDecorationDistance?: boolean | undefined;
257
+ color: boolean;
258
+ fontFamily: boolean;
259
+ fontSize: boolean;
260
+ fontStyle: boolean;
261
+ fontWeight: boolean;
262
+ letterSpacing: boolean;
263
+ lineHeight: boolean;
264
+ textAlign: boolean;
265
+ textDecorationLine: boolean;
266
+ textDecorationStyle: boolean;
267
+ textDecorationColor: boolean;
268
+ textShadowColor: boolean;
269
+ textShadowOffset: boolean;
270
+ textShadowRadius: boolean;
271
+ textTransform: boolean;
272
+ userSelect?: boolean | undefined;
273
+ cursor?: boolean | undefined;
274
+ contain?: boolean | undefined;
275
+ pointerEvents?: boolean | undefined;
276
+ boxSizing?: boolean | undefined;
277
+ x: boolean;
278
+ y: boolean;
279
+ scale: boolean;
280
+ perspective: boolean;
281
+ scaleX: boolean;
282
+ scaleY: boolean;
283
+ skewX: boolean;
284
+ skewY: boolean;
285
+ matrix: boolean;
286
+ rotate: boolean;
287
+ rotateY: boolean;
288
+ rotateX: boolean;
289
+ rotateZ: boolean;
290
+ backfaceVisibility: boolean;
291
+ backgroundColor: boolean;
292
+ borderBottomColor: boolean;
293
+ borderBottomEndRadius: boolean;
294
+ borderBottomLeftRadius: boolean;
295
+ borderBottomRightRadius: boolean;
296
+ borderBottomStartRadius: boolean;
297
+ borderBottomWidth: boolean;
298
+ borderColor: boolean;
299
+ borderEndColor: boolean;
300
+ borderLeftColor: boolean;
301
+ borderLeftWidth: boolean;
302
+ borderRadius: boolean;
303
+ borderRightColor: boolean;
304
+ borderRightWidth: boolean;
305
+ borderStartColor: boolean;
306
+ borderStyle: boolean;
307
+ borderTopColor: boolean;
308
+ borderTopEndRadius: boolean;
309
+ borderTopLeftRadius: boolean;
310
+ borderTopRightRadius: boolean;
311
+ borderTopStartRadius: boolean;
312
+ borderTopWidth: boolean;
313
+ borderWidth: boolean;
314
+ opacity: boolean;
315
+ transform: boolean;
316
+ alignContent: boolean;
317
+ alignItems: boolean;
318
+ alignSelf: boolean;
319
+ aspectRatio: boolean;
320
+ borderEndWidth: boolean;
321
+ borderStartWidth: boolean;
322
+ bottom: boolean;
323
+ display: boolean;
324
+ end: boolean;
325
+ flex: boolean;
326
+ flexBasis: boolean;
327
+ flexDirection: boolean;
328
+ flexGrow: boolean;
329
+ flexShrink: boolean;
330
+ flexWrap: boolean;
331
+ height: boolean;
332
+ justifyContent: boolean;
333
+ left: boolean;
334
+ margin: boolean;
335
+ marginBottom: boolean;
336
+ marginEnd: boolean;
337
+ marginHorizontal: boolean;
338
+ marginLeft: boolean;
339
+ marginRight: boolean;
340
+ marginStart: boolean;
341
+ marginTop: boolean;
342
+ marginVertical: boolean;
343
+ maxHeight: boolean;
344
+ maxWidth: boolean;
345
+ minHeight: boolean;
346
+ minWidth: boolean;
347
+ overflow: boolean;
348
+ padding: boolean;
349
+ paddingBottom: boolean;
350
+ paddingEnd: boolean;
351
+ paddingHorizontal: boolean;
352
+ paddingLeft: boolean;
353
+ paddingRight: boolean;
354
+ paddingStart: boolean;
355
+ paddingTop: boolean;
356
+ paddingVertical: boolean;
357
+ position: boolean;
358
+ right: boolean;
359
+ start: boolean;
360
+ top: boolean;
361
+ width: boolean;
362
+ zIndex: boolean;
363
+ direction: boolean;
364
+ shadowColor: boolean;
365
+ shadowOffset: boolean;
366
+ shadowOpacity: boolean;
367
+ shadowRadius: boolean;
368
+ }>;
369
+ export declare const validStylesPseudo: {
370
+ hoverStyle: boolean;
371
+ pressStyle: boolean;
372
+ focusStyle: boolean;
373
+ };
374
+ export declare const validStyles: {
375
+ userSelect?: boolean | undefined;
376
+ cursor?: boolean | undefined;
377
+ contain?: boolean | undefined;
378
+ pointerEvents?: boolean | undefined;
379
+ boxSizing?: boolean | undefined;
380
+ x: boolean;
381
+ y: boolean;
382
+ scale: boolean;
383
+ perspective: boolean;
384
+ scaleX: boolean;
385
+ scaleY: boolean;
386
+ skewX: boolean;
387
+ skewY: boolean;
388
+ matrix: boolean;
389
+ rotate: boolean;
390
+ rotateY: boolean;
391
+ rotateX: boolean;
392
+ rotateZ: boolean;
393
+ backfaceVisibility: boolean;
394
+ backgroundColor: boolean;
395
+ borderBottomColor: boolean;
396
+ borderBottomEndRadius: boolean;
397
+ borderBottomLeftRadius: boolean;
398
+ borderBottomRightRadius: boolean;
399
+ borderBottomStartRadius: boolean;
400
+ borderBottomWidth: boolean;
401
+ borderColor: boolean;
402
+ borderEndColor: boolean;
403
+ borderLeftColor: boolean;
404
+ borderLeftWidth: boolean;
405
+ borderRadius: boolean;
406
+ borderRightColor: boolean;
407
+ borderRightWidth: boolean;
408
+ borderStartColor: boolean;
409
+ borderStyle: boolean;
410
+ borderTopColor: boolean;
411
+ borderTopEndRadius: boolean;
412
+ borderTopLeftRadius: boolean;
413
+ borderTopRightRadius: boolean;
414
+ borderTopStartRadius: boolean;
415
+ borderTopWidth: boolean;
416
+ borderWidth: boolean;
417
+ opacity: boolean;
418
+ transform: boolean;
419
+ alignContent: boolean;
420
+ alignItems: boolean;
421
+ alignSelf: boolean;
422
+ aspectRatio: boolean;
423
+ borderEndWidth: boolean;
424
+ borderStartWidth: boolean;
425
+ bottom: boolean;
426
+ display: boolean;
427
+ end: boolean;
428
+ flex: boolean;
429
+ flexBasis: boolean;
430
+ flexDirection: boolean;
431
+ flexGrow: boolean;
432
+ flexShrink: boolean;
433
+ flexWrap: boolean;
434
+ height: boolean;
435
+ justifyContent: boolean;
436
+ left: boolean;
437
+ margin: boolean;
438
+ marginBottom: boolean;
439
+ marginEnd: boolean;
440
+ marginHorizontal: boolean;
441
+ marginLeft: boolean;
442
+ marginRight: boolean;
443
+ marginStart: boolean;
444
+ marginTop: boolean;
445
+ marginVertical: boolean;
446
+ maxHeight: boolean;
447
+ maxWidth: boolean;
448
+ minHeight: boolean;
449
+ minWidth: boolean;
450
+ overflow: boolean;
451
+ padding: boolean;
452
+ paddingBottom: boolean;
453
+ paddingEnd: boolean;
454
+ paddingHorizontal: boolean;
455
+ paddingLeft: boolean;
456
+ paddingRight: boolean;
457
+ paddingStart: boolean;
458
+ paddingTop: boolean;
459
+ paddingVertical: boolean;
460
+ position: boolean;
461
+ right: boolean;
462
+ start: boolean;
463
+ top: boolean;
464
+ width: boolean;
465
+ zIndex: boolean;
466
+ direction: boolean;
467
+ shadowColor: boolean;
468
+ shadowOffset: boolean;
469
+ shadowOpacity: boolean;
470
+ shadowRadius: boolean;
471
+ hoverStyle: boolean;
472
+ pressStyle: boolean;
473
+ focusStyle: boolean;
474
+ };
475
+ //# sourceMappingURL=validStyleProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validStyleProps.d.ts","sourceRoot":"","sources":["../src/validStyleProps.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAc/B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFzB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;EAyB7B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiB,CAAA;AAE3C,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}