@tamagui/helpers 1.110.4 → 1.111.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/clamp.native.js +1 -42
- package/dist/cjs/clamp.native.js.map +1 -1
- package/dist/cjs/composeEventHandlers.native.js +1 -1
- package/dist/cjs/composeEventHandlers.native.js.map +1 -1
- package/dist/cjs/validStyleProps.native.js +124 -163
- package/dist/cjs/validStyleProps.native.js.map +2 -2
- package/dist/cjs/withStaticProperties.native.js +7 -43
- package/dist/cjs/withStaticProperties.native.js.map +1 -1
- package/dist/esm/clamp.native.js +1 -42
- package/dist/esm/clamp.native.js.map +1 -1
- package/dist/esm/clamp.native.mjs +6 -0
- package/dist/esm/clamp.native.mjs.map +1 -0
- package/dist/esm/composeEventHandlers.native.js +3 -3
- package/dist/esm/composeEventHandlers.native.js.map +1 -1
- package/dist/esm/composeEventHandlers.native.mjs +12 -0
- package/dist/esm/composeEventHandlers.native.mjs.map +1 -0
- package/dist/esm/concatClassName.native.mjs +46 -0
- package/dist/esm/concatClassName.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +9 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/esm/shouldRenderNativePlatform.native.mjs +35 -0
- package/dist/esm/shouldRenderNativePlatform.native.mjs.map +1 -0
- package/dist/esm/types.native.mjs +7 -0
- package/dist/esm/types.native.mjs.map +1 -0
- package/dist/esm/validStyleProps.native.js +123 -161
- package/dist/esm/validStyleProps.native.js.map +2 -2
- package/dist/esm/validStyleProps.native.mjs +245 -0
- package/dist/esm/validStyleProps.native.mjs.map +1 -0
- package/dist/esm/withStaticProperties.native.js +6 -41
- package/dist/esm/withStaticProperties.native.js.map +1 -1
- package/dist/esm/withStaticProperties.native.mjs +24 -0
- package/dist/esm/withStaticProperties.native.mjs.map +1 -0
- package/package.json +4 -4
package/dist/cjs/clamp.native.js
CHANGED
|
@@ -18,49 +18,8 @@ __export(clamp_exports, {
|
|
|
18
18
|
clamp: () => clamp
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(clamp_exports);
|
|
21
|
-
function _array_like_to_array(arr, len) {
|
|
22
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
23
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
24
|
-
return arr2;
|
|
25
|
-
}
|
|
26
|
-
function _array_with_holes(arr) {
|
|
27
|
-
if (Array.isArray(arr)) return arr;
|
|
28
|
-
}
|
|
29
|
-
function _iterable_to_array_limit(arr, i) {
|
|
30
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31
|
-
if (_i != null) {
|
|
32
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
33
|
-
try {
|
|
34
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
35
|
-
;
|
|
36
|
-
} catch (err) {
|
|
37
|
-
_d = !0, _e = err;
|
|
38
|
-
} finally {
|
|
39
|
-
try {
|
|
40
|
-
!_n && _i.return != null && _i.return();
|
|
41
|
-
} finally {
|
|
42
|
-
if (_d) throw _e;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return _arr;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function _non_iterable_rest() {
|
|
49
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50
|
-
}
|
|
51
|
-
function _sliced_to_array(arr, i) {
|
|
52
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
53
|
-
}
|
|
54
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
55
|
-
if (o) {
|
|
56
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
57
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
58
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
59
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
21
|
function clamp(value, param) {
|
|
63
|
-
var
|
|
22
|
+
var [min, max] = param;
|
|
64
23
|
return Math.min(max, Math.max(min, value));
|
|
65
24
|
}
|
|
66
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/clamp.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,SAASA,MAAMC,OAAe,OAA4B;MAA5B,CAACC,KAAKC,GAAAA,IAAN;AACnC,SAAOC,KAAKF,IAAIC,KAAKC,KAAKD,IAAID,KAAKD,KAAAA,CAAAA;AACrC;",
|
|
5
5
|
"names": ["clamp", "value", "min", "max", "Math"]
|
|
6
6
|
}
|
|
@@ -19,7 +19,7 @@ __export(composeEventHandlers_exports, {
|
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(composeEventHandlers_exports);
|
|
21
21
|
function composeEventHandlers(og, next) {
|
|
22
|
-
var
|
|
22
|
+
var { checkDefaultPrevented = !0 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
23
23
|
return !og || !next ? next || og || void 0 : function(event) {
|
|
24
24
|
if (og == null || og(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
25
25
|
"defaultPrevented" in event && !event.defaultPrevented)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/composeEventHandlers.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAIA;;;;;AAAO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAIA;;;;;AAAO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,EAAEC,wBAAwB,GAAI,IAA9B,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAmC,CAAC;AAEpC,SAAI,CAACF,MAAM,CAACC,OACHA,QAAQD,MAAMG,SAEhB,SAACC,OAAAA;AAEN,QADAJ,MAAAA,QAAAA,GAAKI,KAAAA,GAEH,CAACA,SACD,EAAEF,yBAAyB,sBAAsBE;IAEhD,sBAAsBA,SAAS,CAACA,MAAMC;AAEvC,aAAOJ,QAAAA,OAAAA,SAAAA,KAAOG,KAAAA;EAElB;AACF;",
|
|
5
5
|
"names": ["composeEventHandlers", "og", "next", "checkDefaultPrevented", "undefined", "event", "defaultPrevented"]
|
|
6
6
|
}
|
|
@@ -27,42 +27,7 @@ __export(validStyleProps_exports, {
|
|
|
27
27
|
validStyles: () => validStyles
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(validStyleProps_exports);
|
|
30
|
-
var import_constants = require("@tamagui/constants")
|
|
31
|
-
function _define_property(obj, key, value) {
|
|
32
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
33
|
-
value,
|
|
34
|
-
enumerable: !0,
|
|
35
|
-
configurable: !0,
|
|
36
|
-
writable: !0
|
|
37
|
-
}) : obj[key] = value, obj;
|
|
38
|
-
}
|
|
39
|
-
function _object_spread(target) {
|
|
40
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
41
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
42
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
43
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44
|
-
}))), ownKeys2.forEach(function(key) {
|
|
45
|
-
_define_property(target, key, source[key]);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return target;
|
|
49
|
-
}
|
|
50
|
-
function ownKeys(object, enumerableOnly) {
|
|
51
|
-
var keys = Object.keys(object);
|
|
52
|
-
if (Object.getOwnPropertySymbols) {
|
|
53
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
54
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
55
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
56
|
-
})), keys.push.apply(keys, symbols);
|
|
57
|
-
}
|
|
58
|
-
return keys;
|
|
59
|
-
}
|
|
60
|
-
function _object_spread_props(target, source) {
|
|
61
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
62
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
63
|
-
}), target;
|
|
64
|
-
}
|
|
65
|
-
var textColors = {
|
|
30
|
+
var import_constants = require("@tamagui/constants"), textColors = {
|
|
66
31
|
color: !0,
|
|
67
32
|
textDecorationColor: !0,
|
|
68
33
|
textShadowColor: !0
|
|
@@ -96,7 +61,7 @@ var textColors = {
|
|
|
96
61
|
zIndex: {
|
|
97
62
|
zIndex: !0
|
|
98
63
|
},
|
|
99
|
-
color:
|
|
64
|
+
color: {
|
|
100
65
|
backgroundColor: !0,
|
|
101
66
|
borderColor: !0,
|
|
102
67
|
borderBlockStartColor: !0,
|
|
@@ -111,8 +76,9 @@ var textColors = {
|
|
|
111
76
|
borderRightColor: !0,
|
|
112
77
|
borderEndColor: !0,
|
|
113
78
|
borderStartColor: !0,
|
|
114
|
-
shadowColor: !0
|
|
115
|
-
|
|
79
|
+
shadowColor: !0,
|
|
80
|
+
...textColors
|
|
81
|
+
}
|
|
116
82
|
}, stylePropsUnitless = {
|
|
117
83
|
WebkitLineClamp: !0,
|
|
118
84
|
animationIterationCount: !0,
|
|
@@ -165,106 +131,102 @@ var textColors = {
|
|
|
165
131
|
rotateY: !0,
|
|
166
132
|
rotateX: !0,
|
|
167
133
|
rotateZ: !0
|
|
168
|
-
}, stylePropsView =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
tokenCategories.
|
|
257
|
-
tokenCategories.radius,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
stylePropsUnitless,
|
|
262
|
-
// allow a few web only ones
|
|
263
|
-
!1,
|
|
264
|
-
import_constants.isAndroid ? {
|
|
134
|
+
}, stylePropsView = {
|
|
135
|
+
backfaceVisibility: !0,
|
|
136
|
+
borderBottomEndRadius: !0,
|
|
137
|
+
borderBottomStartRadius: !0,
|
|
138
|
+
borderBottomWidth: !0,
|
|
139
|
+
borderLeftWidth: !0,
|
|
140
|
+
borderRightWidth: !0,
|
|
141
|
+
borderBlockWidth: !0,
|
|
142
|
+
borderBlockEndWidth: !0,
|
|
143
|
+
borderBlockStartWidth: !0,
|
|
144
|
+
borderInlineWidth: !0,
|
|
145
|
+
borderInlineEndWidth: !0,
|
|
146
|
+
borderInlineStartWidth: !0,
|
|
147
|
+
borderStyle: !0,
|
|
148
|
+
borderBlockStyle: !0,
|
|
149
|
+
borderBlockEndStyle: !0,
|
|
150
|
+
borderBlockStartStyle: !0,
|
|
151
|
+
borderInlineStyle: !0,
|
|
152
|
+
borderInlineEndStyle: !0,
|
|
153
|
+
borderInlineStartStyle: !0,
|
|
154
|
+
borderTopEndRadius: !0,
|
|
155
|
+
borderTopStartRadius: !0,
|
|
156
|
+
borderTopWidth: !0,
|
|
157
|
+
borderWidth: !0,
|
|
158
|
+
transform: !0,
|
|
159
|
+
transformOrigin: !0,
|
|
160
|
+
alignContent: !0,
|
|
161
|
+
alignItems: !0,
|
|
162
|
+
alignSelf: !0,
|
|
163
|
+
borderEndWidth: !0,
|
|
164
|
+
borderStartWidth: !0,
|
|
165
|
+
bottom: !0,
|
|
166
|
+
display: !0,
|
|
167
|
+
end: !0,
|
|
168
|
+
flexBasis: !0,
|
|
169
|
+
flexDirection: !0,
|
|
170
|
+
flexWrap: !0,
|
|
171
|
+
gap: !0,
|
|
172
|
+
columnGap: !0,
|
|
173
|
+
rowGap: !0,
|
|
174
|
+
justifyContent: !0,
|
|
175
|
+
left: !0,
|
|
176
|
+
margin: !0,
|
|
177
|
+
marginBlock: !0,
|
|
178
|
+
marginBlockEnd: !0,
|
|
179
|
+
marginBlockStart: !0,
|
|
180
|
+
marginInline: !0,
|
|
181
|
+
marginInlineStart: !0,
|
|
182
|
+
marginInlineEnd: !0,
|
|
183
|
+
marginBottom: !0,
|
|
184
|
+
marginEnd: !0,
|
|
185
|
+
marginHorizontal: !0,
|
|
186
|
+
marginLeft: !0,
|
|
187
|
+
marginRight: !0,
|
|
188
|
+
marginStart: !0,
|
|
189
|
+
marginTop: !0,
|
|
190
|
+
marginVertical: !0,
|
|
191
|
+
overflow: !0,
|
|
192
|
+
padding: !0,
|
|
193
|
+
paddingBottom: !0,
|
|
194
|
+
paddingInline: !0,
|
|
195
|
+
paddingBlock: !0,
|
|
196
|
+
paddingBlockStart: !0,
|
|
197
|
+
paddingInlineEnd: !0,
|
|
198
|
+
paddingInlineStart: !0,
|
|
199
|
+
paddingEnd: !0,
|
|
200
|
+
paddingHorizontal: !0,
|
|
201
|
+
paddingLeft: !0,
|
|
202
|
+
paddingRight: !0,
|
|
203
|
+
paddingStart: !0,
|
|
204
|
+
paddingTop: !0,
|
|
205
|
+
paddingVertical: !0,
|
|
206
|
+
position: !0,
|
|
207
|
+
right: !0,
|
|
208
|
+
start: !0,
|
|
209
|
+
top: !0,
|
|
210
|
+
inset: !0,
|
|
211
|
+
insetBlock: !0,
|
|
212
|
+
insetBlockEnd: !0,
|
|
213
|
+
insetBlockStart: !0,
|
|
214
|
+
insetInline: !0,
|
|
215
|
+
insetInlineEnd: !0,
|
|
216
|
+
insetInlineStart: !0,
|
|
217
|
+
direction: !0,
|
|
218
|
+
shadowOffset: !0,
|
|
219
|
+
shadowRadius: !0,
|
|
220
|
+
...tokenCategories.color,
|
|
221
|
+
...tokenCategories.radius,
|
|
222
|
+
...tokenCategories.size,
|
|
223
|
+
...tokenCategories.radius,
|
|
224
|
+
...stylePropsTransform,
|
|
225
|
+
...stylePropsUnitless,
|
|
226
|
+
...import_constants.isAndroid ? {
|
|
265
227
|
elevationAndroid: !0
|
|
266
228
|
} : {}
|
|
267
|
-
|
|
229
|
+
}, stylePropsFont = {
|
|
268
230
|
fontFamily: !0,
|
|
269
231
|
fontSize: !0,
|
|
270
232
|
fontStyle: !0,
|
|
@@ -272,32 +234,31 @@ var textColors = {
|
|
|
272
234
|
letterSpacing: !0,
|
|
273
235
|
lineHeight: !0,
|
|
274
236
|
textTransform: !0
|
|
275
|
-
}, stylePropsTextOnly =
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
), validStyles = _object_spread({}, validPseudoKeys, stylePropsView);
|
|
237
|
+
}, stylePropsTextOnly = {
|
|
238
|
+
...stylePropsFont,
|
|
239
|
+
textAlign: !0,
|
|
240
|
+
textDecorationLine: !0,
|
|
241
|
+
textDecorationStyle: !0,
|
|
242
|
+
...textColors,
|
|
243
|
+
textShadowOffset: !0,
|
|
244
|
+
textShadowRadius: !0,
|
|
245
|
+
userSelect: !0,
|
|
246
|
+
selectable: !0,
|
|
247
|
+
verticalAlign: !0
|
|
248
|
+
}, stylePropsText = {
|
|
249
|
+
...stylePropsView,
|
|
250
|
+
...stylePropsTextOnly
|
|
251
|
+
}, stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
252
|
+
enterStyle: !0,
|
|
253
|
+
exitStyle: !0,
|
|
254
|
+
hoverStyle: !0,
|
|
255
|
+
pressStyle: !0,
|
|
256
|
+
focusStyle: !0,
|
|
257
|
+
disabledStyle: !0
|
|
258
|
+
}, validStyles = {
|
|
259
|
+
...validPseudoKeys,
|
|
260
|
+
...stylePropsView
|
|
261
|
+
};
|
|
301
262
|
// Annotate the CommonJS export names for ESM import in node:
|
|
302
263
|
0 && (module.exports = {
|
|
303
264
|
stylePropsAll,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/validStyleProps.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["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", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;uBAA0B,+BAIpBA,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;IACXC,WAAW;IACXC,cAAc;IACdC,cAAc;IACdC,YAAY;IACZC,eAAe;IACfC,eAAe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Ae;AACjB,GAEaC,qBAAqB;EAChC,GAAGP;EACHQ,WAAW;EACXC,oBAAoB;EACpBC,qBAAqB;EACrB,GAAG9L;EACH+L,kBAAkB;EAClBC,kBAAkB;EAClBC,YAAY;EACZC,YAAY;EACZC,eAAe;AAYjB,GAEaC,iBAAiB;EAC5B,GAAGxG;EACH,GAAG+F;AACL,GAEaU,gBAAgBD,gBAEhBE,kBAAkB;EAC7BC,YAAY;EACZC,WAAW;EACXC,YAAY;EACZC,YAAY;EACZC,YAAY;EACZC,eAAe;AAMjB,GAEaC,cAAc;EACzB,GAAGP;EACH,GAAG1G;AACL;",
|
|
5
|
+
"names": ["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", "stylePropsUnitless", "WebkitLineClamp", "animationIterationCount", "aspectRatio", "borderImageOutset", "borderImageSlice", "borderImageWidth", "columnCount", "flex", "flexGrow", "flexOrder", "flexPositive", "flexShrink", "flexNegative", "fontWeight", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridTemplateColumns", "gridTemplateAreas", "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", "isAndroid", "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
|
}
|
|
@@ -26,56 +26,20 @@ __export(withStaticProperties_exports, {
|
|
|
26
26
|
withStaticProperties: () => withStaticProperties
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(withStaticProperties_exports);
|
|
29
|
-
var import_react = __toESM(require("react"))
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
32
|
-
value,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : obj[key] = value, obj;
|
|
37
|
-
}
|
|
38
|
-
function _object_spread(target) {
|
|
39
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
40
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
41
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
42
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
43
|
-
}))), ownKeys2.forEach(function(key) {
|
|
44
|
-
_define_property(target, key, source[key]);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return target;
|
|
48
|
-
}
|
|
49
|
-
function ownKeys(object, enumerableOnly) {
|
|
50
|
-
var keys = Object.keys(object);
|
|
51
|
-
if (Object.getOwnPropertySymbols) {
|
|
52
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
53
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
55
|
-
})), keys.push.apply(keys, symbols);
|
|
56
|
-
}
|
|
57
|
-
return keys;
|
|
58
|
-
}
|
|
59
|
-
function _object_spread_props(target, source) {
|
|
60
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
61
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
62
|
-
}), target;
|
|
63
|
-
}
|
|
64
|
-
function _type_of(obj) {
|
|
65
|
-
"@swc/helpers - typeof";
|
|
66
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
67
|
-
}
|
|
68
|
-
var Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
|
|
29
|
+
var import_react = __toESM(require("react")), Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
|
|
69
30
|
var next = function() {
|
|
70
31
|
if (component[Decorated]) {
|
|
71
32
|
var _ = /* @__PURE__ */ import_react.default.forwardRef(function(props, ref) {
|
|
72
|
-
return /* @__PURE__ */ import_react.default.createElement(component,
|
|
33
|
+
return /* @__PURE__ */ import_react.default.createElement(component, {
|
|
34
|
+
...props,
|
|
73
35
|
ref
|
|
74
|
-
})
|
|
36
|
+
});
|
|
75
37
|
});
|
|
76
38
|
for (var key in component) {
|
|
77
39
|
var v = component[key];
|
|
78
|
-
_[key] = v &&
|
|
40
|
+
_[key] = v && typeof v == "object" ? {
|
|
41
|
+
...v
|
|
42
|
+
} : v;
|
|
79
43
|
}
|
|
80
44
|
}
|
|
81
45
|
return component;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/withStaticProperties.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;mBAAkB,2BAEZA,YAAYC,OAAAA,GAILC,uBAAuB,SAClCC,WACAC,aAAAA;AAGA,MAAMC,OAAQ,WAAA;AACZ,QAAIF,UAAUH,SAAAA,GAAY;AACxB,UAAMM,IAAIC,6BAAAA,QAAMC,WAAW,SAACC,OAAOC,KAAAA;eACjCH,6BAAAA,QAAMI,cAAcR,WAAkB;UAAE,GAAGM;UAAOC;QAAI,CAAA;;AAGxD,eAAWE,OAAOT,WAAW;AAC3B,YAAMU,IAAIV,UAAUS,GAAAA;AAEpBN,UAAEM,GAAAA,IAAOC,KAAK,OAAOA,KAAM,WAAW;UAAE,GAAGA;QAAE,IAAIA;MACnD;IACF;AACA,WAAOV;EACT,EAAA;AAGAW,gBAAOC,OAAOV,MAAMD,WAAAA,GACpBC,KAAKL,SAAAA,IAAa,IAEXK;AACT;",
|
|
5
5
|
"names": ["Decorated", "Symbol", "withStaticProperties", "component", "staticProps", "next", "_", "React", "forwardRef", "props", "ref", "createElement", "key", "v", "Object", "assign"]
|
|
6
6
|
}
|
package/dist/esm/clamp.native.js
CHANGED
|
@@ -1,46 +1,5 @@
|
|
|
1
|
-
function _array_like_to_array(arr, len) {
|
|
2
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
3
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
4
|
-
return arr2;
|
|
5
|
-
}
|
|
6
|
-
function _array_with_holes(arr) {
|
|
7
|
-
if (Array.isArray(arr)) return arr;
|
|
8
|
-
}
|
|
9
|
-
function _iterable_to_array_limit(arr, i) {
|
|
10
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
11
|
-
if (_i != null) {
|
|
12
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
13
|
-
try {
|
|
14
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
15
|
-
;
|
|
16
|
-
} catch (err) {
|
|
17
|
-
_d = !0, _e = err;
|
|
18
|
-
} finally {
|
|
19
|
-
try {
|
|
20
|
-
!_n && _i.return != null && _i.return();
|
|
21
|
-
} finally {
|
|
22
|
-
if (_d) throw _e;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return _arr;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _non_iterable_rest() {
|
|
29
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
30
|
-
}
|
|
31
|
-
function _sliced_to_array(arr, i) {
|
|
32
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
33
|
-
}
|
|
34
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
35
|
-
if (o) {
|
|
36
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
37
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
38
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
39
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
1
|
function clamp(value, param) {
|
|
43
|
-
var
|
|
2
|
+
var [min, max] = param;
|
|
44
3
|
return Math.min(max, Math.max(min, value));
|
|
45
4
|
}
|
|
46
5
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/clamp.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAO,SAASA,MAAMC,OAAe,OAA4B;MAA5B,CAACC,KAAKC,GAAAA,IAAN;AACnC,SAAOC,KAAKF,IAAIC,KAAKC,KAAKD,IAAID,KAAKD,KAAAA,CAAAA;AACrC;",
|
|
5
5
|
"names": ["clamp", "value", "min", "max", "Math"]
|
|
6
6
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["clamp","value","param","min","max","Math"],"sources":["../../src/clamp.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,MAAMC,KAAA,EAAeC,KAAC,EAAK;EACzC,KAAAC,GAAO,EAAAC,GAAK,IAAIF,KAAK;EACvB,OAAAG,IAAA,CAAAF,GAAA,CAAAC,GAAA,EAAAC,IAAA,CAAAD,GAAA,CAAAD,GAAA,EAAAF,KAAA","ignoreList":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
function composeEventHandlers(og, next) {
|
|
2
|
-
var
|
|
2
|
+
var { checkDefaultPrevented = !0 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3
3
|
return !og || !next ? next || og || void 0 : function(event) {
|
|
4
|
-
if (og
|
|
4
|
+
if (og?.(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
5
5
|
"defaultPrevented" in event && !event.defaultPrevented)
|
|
6
|
-
return next
|
|
6
|
+
return next?.(event);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/helpers/src/composeEventHandlers.ts"],
|
|
4
|
-
"mappings": "AAIO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,
|
|
4
|
+
"mappings": "AAIO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,EAAEC,wBAAwB,GAAI,IAA9B,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAmC,CAAC;AAEpC,SAAI,CAACF,MAAM,CAACC,OACHA,QAAQD,MAAMG,SAEhB,SAACC,OAAAA;AAEN,QADAJ,KAAKI,KAAAA,GAEH,CAACA,SACD,EAAEF,yBAAyB,sBAAsBE;IAEhD,sBAAsBA,SAAS,CAACA,MAAMC;AAEvC,aAAOJ,OAAOG,KAAAA;EAElB;AACF;",
|
|
5
5
|
"names": ["composeEventHandlers", "og", "next", "checkDefaultPrevented", "undefined", "event", "defaultPrevented"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function composeEventHandlers(og, next) {
|
|
2
|
+
var {
|
|
3
|
+
checkDefaultPrevented = !0
|
|
4
|
+
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5
|
+
return !og || !next ? next || og || void 0 : function (event) {
|
|
6
|
+
if (og?.(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) ||
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
"defaultPrevented" in event && !event.defaultPrevented) return next?.(event);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export { composeEventHandlers };
|
|
12
|
+
//# sourceMappingURL=composeEventHandlers.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["composeEventHandlers","og","next","checkDefaultPrevented","arguments","length","event","defaultPrevented"],"sources":["../../src/composeEventHandlers.ts"],"sourcesContent":[null],"mappings":"AAIO,SAASA,qBACdC,EAAA,EACAC,IAAA,EACA;EAEA;IAAAC,qBACS,GAAQ;EAAA,IAAMC,SAEf,CAAAC,MAAA,GAAa,KAAAD,SAAA,iBAAAA,SAAA;EAEnB,OADA,CAAAH,EAAA,IAAK,CAAAC,IAEH,GAACA,IAAA,IACDD,EAAE,uBAAAK,KAAyB;IAE1B,IAAAL,EAAA,GAAAK,KAAA,IAAAA,KAAsB,MAAAH,qBAAgB,0BAAAG,KAAA;IAAA;IAEvC,kBAAc,IAAKA,KAAA,KAAAA,KAAA,CAAAC,gBAAA,EAEvB,OAAAL,IAAA,GAAAI,KAAA;EACF","ignoreList":[]}
|