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

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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/dist/allRules.js +1 -1
  3. package/dist/allRules.js.map +1 -1
  4. package/dist/cjs/allRules.js +15 -0
  5. package/dist/cjs/allRules.js.map +7 -0
  6. package/dist/cjs/concatClassName.js +78 -0
  7. package/dist/cjs/concatClassName.js.map +7 -0
  8. package/dist/cjs/index.js +24 -0
  9. package/dist/cjs/index.js.map +7 -0
  10. package/dist/cjs/simpleHash.js +21 -0
  11. package/dist/cjs/simpleHash.js.map +7 -0
  12. package/dist/cjs/types.js +4 -0
  13. package/dist/cjs/types.js.map +7 -0
  14. package/dist/cjs/validStyleProps.js +163 -0
  15. package/dist/cjs/validStyleProps.js.map +7 -0
  16. package/dist/concatClassName.js +4 -2
  17. package/dist/concatClassName.js.map +2 -2
  18. package/dist/esm/allRules.js +9 -0
  19. package/dist/esm/allRules.js.map +7 -0
  20. package/dist/esm/concatClassName.js +72 -0
  21. package/dist/esm/concatClassName.js.map +7 -0
  22. package/dist/esm/index.js +5 -0
  23. package/dist/esm/index.js.map +7 -0
  24. package/dist/esm/simpleHash.js +15 -0
  25. package/dist/esm/simpleHash.js.map +7 -0
  26. package/dist/esm/types.js +1 -0
  27. package/dist/esm/types.js.map +7 -0
  28. package/dist/esm/validStyleProps.js +150 -0
  29. package/dist/esm/validStyleProps.js.map +7 -0
  30. package/dist/index.cjs +5 -3
  31. package/dist/index.cjs.map +3 -3
  32. package/dist/index.js +1 -1
  33. package/dist/index.js.map +1 -1
  34. package/dist/jsx/allRules.js +8 -0
  35. package/dist/jsx/concatClassName.js +71 -0
  36. package/dist/jsx/index.js +4 -0
  37. package/dist/jsx/simpleHash.js +14 -0
  38. package/dist/jsx/types.js +0 -0
  39. package/dist/jsx/validStyleProps.js +149 -0
  40. package/package.json +4 -3
  41. package/src/allRules.d.ts +2 -0
  42. package/src/allRules.d.ts.map +1 -0
  43. package/src/allRules.js +2 -0
  44. package/src/{AllRules.ts → allRules.ts} +0 -0
  45. package/src/concatClassName.d.ts +1 -0
  46. package/src/concatClassName.d.ts.map +1 -0
  47. package/src/concatClassName.js +65 -0
  48. package/src/concatClassName.ts +28 -4
  49. package/src/index.d.ts +4 -0
  50. package/src/index.d.ts.map +1 -0
  51. package/src/index.js +4 -0
  52. package/src/index.ts +1 -1
  53. package/src/types.d.ts +7 -0
  54. package/src/types.d.ts.map +1 -0
  55. package/src/types.js +1 -0
  56. package/src/validStyleProps.d.ts +474 -0
  57. package/src/validStyleProps.d.ts.map +1 -0
  58. package/src/validStyleProps.js +140 -0
@@ -0,0 +1,140 @@
1
+ export const stylePropsTransform = {
2
+ x: true,
3
+ y: true,
4
+ scale: true,
5
+ perspective: true,
6
+ scaleX: true,
7
+ scaleY: true,
8
+ skewX: true,
9
+ skewY: true,
10
+ matrix: true,
11
+ rotate: true,
12
+ rotateY: true,
13
+ rotateX: true,
14
+ rotateZ: true,
15
+ };
16
+ export const stylePropsView = Object.freeze({
17
+ backfaceVisibility: true,
18
+ backgroundColor: true,
19
+ borderBottomColor: true,
20
+ borderBottomEndRadius: true,
21
+ borderBottomLeftRadius: true,
22
+ borderBottomRightRadius: true,
23
+ borderBottomStartRadius: true,
24
+ borderBottomWidth: true,
25
+ borderColor: true,
26
+ borderEndColor: true,
27
+ borderLeftColor: true,
28
+ borderLeftWidth: true,
29
+ borderRadius: true,
30
+ borderRightColor: true,
31
+ borderRightWidth: true,
32
+ borderStartColor: true,
33
+ borderStyle: true,
34
+ borderTopColor: true,
35
+ borderTopEndRadius: true,
36
+ borderTopLeftRadius: true,
37
+ borderTopRightRadius: true,
38
+ borderTopStartRadius: true,
39
+ borderTopWidth: true,
40
+ borderWidth: true,
41
+ opacity: true,
42
+ transform: true,
43
+ alignContent: true,
44
+ alignItems: true,
45
+ alignSelf: true,
46
+ aspectRatio: true,
47
+ borderEndWidth: true,
48
+ borderStartWidth: true,
49
+ bottom: true,
50
+ display: true,
51
+ end: true,
52
+ flex: true,
53
+ flexBasis: true,
54
+ flexDirection: true,
55
+ flexGrow: true,
56
+ flexShrink: true,
57
+ flexWrap: true,
58
+ height: true,
59
+ justifyContent: true,
60
+ left: true,
61
+ margin: true,
62
+ marginBottom: true,
63
+ marginEnd: true,
64
+ marginHorizontal: true,
65
+ marginLeft: true,
66
+ marginRight: true,
67
+ marginStart: true,
68
+ marginTop: true,
69
+ marginVertical: true,
70
+ maxHeight: true,
71
+ maxWidth: true,
72
+ minHeight: true,
73
+ minWidth: true,
74
+ overflow: true,
75
+ padding: true,
76
+ paddingBottom: true,
77
+ paddingEnd: true,
78
+ paddingHorizontal: true,
79
+ paddingLeft: true,
80
+ paddingRight: true,
81
+ paddingStart: true,
82
+ paddingTop: true,
83
+ paddingVertical: true,
84
+ position: true,
85
+ right: true,
86
+ start: true,
87
+ top: true,
88
+ width: true,
89
+ zIndex: true,
90
+ direction: true,
91
+ shadowColor: true,
92
+ shadowOffset: true,
93
+ shadowOpacity: true,
94
+ shadowRadius: true,
95
+ ...stylePropsTransform,
96
+ ...(process.env.TAMAGUI_TARGET === 'web' && {
97
+ userSelect: true,
98
+ cursor: true,
99
+ contain: true,
100
+ pointerEvents: true,
101
+ boxSizing: true,
102
+ }),
103
+ });
104
+ export const stylePropsTextOnly = Object.freeze({
105
+ color: true,
106
+ fontFamily: true,
107
+ fontSize: true,
108
+ fontStyle: true,
109
+ fontWeight: true,
110
+ letterSpacing: true,
111
+ lineHeight: true,
112
+ textAlign: true,
113
+ textDecorationLine: true,
114
+ textDecorationStyle: true,
115
+ textDecorationColor: true,
116
+ textShadowColor: true,
117
+ textShadowOffset: true,
118
+ textShadowRadius: true,
119
+ textTransform: true,
120
+ ...(process.env.TAMAGUI_TARGET === 'web' && {
121
+ whiteSpace: true,
122
+ wordWrap: true,
123
+ textOverflow: true,
124
+ textDecorationDistance: true,
125
+ }),
126
+ });
127
+ export const stylePropsText = Object.freeze({
128
+ ...stylePropsView,
129
+ ...stylePropsTextOnly,
130
+ });
131
+ export const stylePropsAll = stylePropsText;
132
+ export const validStylesPseudo = {
133
+ hoverStyle: true,
134
+ pressStyle: true,
135
+ focusStyle: true,
136
+ };
137
+ export const validStyles = {
138
+ ...validStylesPseudo,
139
+ ...stylePropsView,
140
+ };