@tamagui/core 1.93.2 → 1.94.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/native.js +11 -73
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +11 -73
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -4802,57 +4802,7 @@ var require_accessibilityDirectMap_native = __commonJS({
|
|
|
4802
4802
|
}
|
|
4803
4803
|
});
|
|
4804
4804
|
module2.exports = __toCommonJS2(accessibilityDirectMap_native_exports);
|
|
4805
|
-
var accessibilityDirectMap = {}, webToNativeAccessibilityDirectMap = {
|
|
4806
|
-
"aria-label": "accessibilityLabel",
|
|
4807
|
-
"aria-labelledby": "accessibilityLabelledBy",
|
|
4808
|
-
"aria-live": "accessibilityLiveRegion",
|
|
4809
|
-
"aria-modal": "accessibilityViewIsModal",
|
|
4810
|
-
"aria-hidden": "accessibilityElementsHidden"
|
|
4811
|
-
}, nativeAccessibilityValue = {
|
|
4812
|
-
"aria-valuemin": "min",
|
|
4813
|
-
"aria-valuemax": "max",
|
|
4814
|
-
"aria-valuenow": "now",
|
|
4815
|
-
"aria-valuetext": "text"
|
|
4816
|
-
}, nativeAccessibilityState = {
|
|
4817
|
-
"aria-disabled": "disabled",
|
|
4818
|
-
"aria-selected": "selected",
|
|
4819
|
-
"aria-checked": "checked",
|
|
4820
|
-
"aria-busy": "busy",
|
|
4821
|
-
"aria-expanded": "expanded"
|
|
4822
|
-
}, accessibilityWebRoleToNativeRole = {
|
|
4823
|
-
alert: "alert",
|
|
4824
|
-
button: "button",
|
|
4825
|
-
checkbox: "checkbox",
|
|
4826
|
-
combobox: "combobox",
|
|
4827
|
-
grid: "grid",
|
|
4828
|
-
group: "none",
|
|
4829
|
-
heading: "header",
|
|
4830
|
-
imagebutton: "imagebutton",
|
|
4831
|
-
img: "image",
|
|
4832
|
-
keyboardkey: "keyboardkey",
|
|
4833
|
-
link: "link",
|
|
4834
|
-
menu: "menu",
|
|
4835
|
-
menubar: "menubar",
|
|
4836
|
-
menuitem: "menuitem",
|
|
4837
|
-
none: "none",
|
|
4838
|
-
presentation: "none",
|
|
4839
|
-
progressbar: "progressbar",
|
|
4840
|
-
radio: "radio",
|
|
4841
|
-
radiogroup: "radiogroup",
|
|
4842
|
-
region: "summary",
|
|
4843
|
-
scrollbar: "scrollbar",
|
|
4844
|
-
searchbox: "search",
|
|
4845
|
-
slider: "adjustable",
|
|
4846
|
-
spinbutton: "spinbutton",
|
|
4847
|
-
summary: "summary",
|
|
4848
|
-
switch: "switch",
|
|
4849
|
-
tab: "tab",
|
|
4850
|
-
tablist: "tablist",
|
|
4851
|
-
text: "text",
|
|
4852
|
-
timer: "timer",
|
|
4853
|
-
togglebutton: "togglebutton",
|
|
4854
|
-
toolbar: "toolbar"
|
|
4855
|
-
};
|
|
4805
|
+
var accessibilityDirectMap = {}, webToNativeAccessibilityDirectMap = {}, nativeAccessibilityValue = {}, nativeAccessibilityState = {}, accessibilityWebRoleToNativeRole = {};
|
|
4856
4806
|
}
|
|
4857
4807
|
});
|
|
4858
4808
|
|
|
@@ -7266,24 +7216,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7266
7216
|
continue;
|
|
7267
7217
|
if (keyInit === "userSelect")
|
|
7268
7218
|
keyInit = "selectable", valInit = valInit !== "none";
|
|
7269
|
-
else if (keyInit
|
|
7270
|
-
viewProps.accessibilityRole = import_accessibilityDirectMap.accessibilityWebRoleToNativeRole[valInit];
|
|
7271
|
-
continue;
|
|
7272
|
-
} else if (keyInit.startsWith("aria-")) {
|
|
7273
|
-
if (import_accessibilityDirectMap.webToNativeAccessibilityDirectMap[keyInit]) {
|
|
7274
|
-
var nativeA11yProp = import_accessibilityDirectMap.webToNativeAccessibilityDirectMap[keyInit];
|
|
7275
|
-
keyInit === "aria-hidden" && (viewProps["aria-hidden"] = valInit), viewProps[nativeA11yProp] = valInit;
|
|
7276
|
-
continue;
|
|
7277
|
-
}
|
|
7278
|
-
if (import_accessibilityDirectMap.nativeAccessibilityValue[keyInit]) {
|
|
7279
|
-
var field = import_accessibilityDirectMap.nativeAccessibilityValue[keyInit];
|
|
7280
|
-
viewProps.accessibilityValue ? viewProps.accessibilityValue[field] = valInit : viewProps.accessibilityValue = _define_property2({}, field, valInit);
|
|
7281
|
-
} else if (import_accessibilityDirectMap.nativeAccessibilityState[keyInit]) {
|
|
7282
|
-
var field1 = import_accessibilityDirectMap.nativeAccessibilityState[keyInit];
|
|
7283
|
-
viewProps.accessibilityState ? viewProps.accessibilityState[field1] = valInit : viewProps.accessibilityState = _define_property2({}, field1, valInit);
|
|
7284
|
-
}
|
|
7285
|
-
continue;
|
|
7286
|
-
} else if (keyInit.startsWith("data-"))
|
|
7219
|
+
else if (keyInit.startsWith("data-"))
|
|
7287
7220
|
continue;
|
|
7288
7221
|
}
|
|
7289
7222
|
if (keyInit === "dataSet") {
|
|
@@ -7293,7 +7226,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7293
7226
|
}
|
|
7294
7227
|
if (0)
|
|
7295
7228
|
var didUseKeyInit;
|
|
7296
|
-
var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo)
|
|
7229
|
+
var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
|
|
7230
|
+
if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
|
|
7231
|
+
var name = keyInit.split("-")[1];
|
|
7232
|
+
context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
7233
|
+
}
|
|
7234
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !styleProps.noExpand || isShorthand;
|
|
7297
7235
|
if (!(isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))) {
|
|
7298
7236
|
var shouldPassProp = !isStyleProp || // is in parent variants
|
|
7299
7237
|
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
@@ -7580,7 +7518,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7580
7518
|
var cnStyles, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
|
|
7581
7519
|
try {
|
|
7582
7520
|
for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0)
|
|
7583
|
-
var
|
|
7521
|
+
var name1;
|
|
7584
7522
|
} catch (err) {
|
|
7585
7523
|
} finally {
|
|
7586
7524
|
try {
|
|
@@ -8804,7 +8742,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8804
8742
|
pseudoGroups ? Object.keys(_to_consumable_array(pseudoGroups)).join("") : 0,
|
|
8805
8743
|
mediaGroups ? Object.keys(_to_consumable_array(mediaGroups)).join("") : 0
|
|
8806
8744
|
]);
|
|
8807
|
-
var runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName ||
|
|
8745
|
+
var runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimePressStyle), events = shouldAttach ? _object_spread2(_object_spread_props(_object_spread2({
|
|
8808
8746
|
onPressOut: attachPress ? function(e) {
|
|
8809
8747
|
unPress(), onPressOut == null || onPressOut(e), onMouseUp == null || onMouseUp(e);
|
|
8810
8748
|
} : void 0
|
|
@@ -9115,7 +9053,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9115
9053
|
group
|
|
9116
9054
|
});
|
|
9117
9055
|
};
|
|
9118
|
-
if (pseudo && pseudoGroups != null && pseudoGroups.has(name))
|
|
9056
|
+
if (pseudo && pseudoGroups != null && pseudoGroups.has(String(name)))
|
|
9119
9057
|
Object.assign(current.pseudo, pseudo), persist();
|
|
9120
9058
|
else if (layout && mediaGroups) {
|
|
9121
9059
|
var mediaState2 = getMediaState(mediaGroups, layout), next = (0, import_createShallowSetState.mergeIfNotShallowEqual)(current.media, mediaState2);
|