tamagui 1.124.16 → 1.124.18
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 +14 -12
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +14 -12
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
package/dist/test.native.js
CHANGED
|
@@ -5925,14 +5925,14 @@ var require_propMapper_native = __commonJS({
|
|
|
5925
5925
|
}, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
|
|
5926
5926
|
var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
|
|
5927
5927
|
if (resolveAs === "none") return value;
|
|
5928
|
-
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
|
|
5928
|
+
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[value] || theme[value.slice(1)] : void 0, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
|
|
5929
5929
|
if (customTokenAccept) {
|
|
5930
|
-
var
|
|
5930
|
+
var val = themeValue ?? tokensParsed[customTokenAccept][value];
|
|
5931
5931
|
val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
|
|
5932
5932
|
}
|
|
5933
|
-
if (
|
|
5933
|
+
if (themeValue) {
|
|
5934
5934
|
if (resolveAs === "except-theme") return value;
|
|
5935
|
-
valOrVar =
|
|
5935
|
+
valOrVar = themeValue, hasSet = !0;
|
|
5936
5936
|
} else {
|
|
5937
5937
|
if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
|
|
5938
5938
|
else {
|
|
@@ -11206,7 +11206,7 @@ var require_matchQuery_native = __commonJS({
|
|
|
11206
11206
|
case "color":
|
|
11207
11207
|
case "color-index":
|
|
11208
11208
|
case "monochrome":
|
|
11209
|
-
expValue = parseInt(expValue, 10) || 1, value = parseInt(value, 10) || 0;
|
|
11209
|
+
expValue = Number.parseInt(expValue, 10) || 1, value = Number.parseInt(value, 10) || 0;
|
|
11210
11210
|
break;
|
|
11211
11211
|
}
|
|
11212
11212
|
switch (modifier) {
|
|
@@ -11247,7 +11247,7 @@ var require_matchQuery_native = __commonJS({
|
|
|
11247
11247
|
return decimal || (numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/), decimal = numbers[1] / numbers[2]), decimal;
|
|
11248
11248
|
}
|
|
11249
11249
|
function toDpi(resolution) {
|
|
11250
|
-
var _String_match, value = parseFloat(resolution), units = (_String_match = String(resolution).match(RE_RESOLUTION_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11250
|
+
var _String_match, value = Number.parseFloat(resolution), units = (_String_match = String(resolution).match(RE_RESOLUTION_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11251
11251
|
switch (units) {
|
|
11252
11252
|
case "dpcm":
|
|
11253
11253
|
return value / 2.54;
|
|
@@ -11258,7 +11258,7 @@ var require_matchQuery_native = __commonJS({
|
|
|
11258
11258
|
}
|
|
11259
11259
|
}
|
|
11260
11260
|
function toPx(length) {
|
|
11261
|
-
var _String_match, value = parseFloat(length), units = (_String_match = String(length).match(RE_LENGTH_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11261
|
+
var _String_match, value = Number.parseFloat(length), units = (_String_match = String(length).match(RE_LENGTH_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11262
11262
|
switch (units) {
|
|
11263
11263
|
case "em":
|
|
11264
11264
|
return value * 16;
|
|
@@ -16205,7 +16205,7 @@ var require_create_context_native = __commonJS({
|
|
|
16205
16205
|
if (defaultContext !== void 0) return defaultContext;
|
|
16206
16206
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
16207
16207
|
}
|
|
16208
|
-
return
|
|
16208
|
+
return [
|
|
16209
16209
|
Provider,
|
|
16210
16210
|
useContext
|
|
16211
16211
|
];
|
|
@@ -16235,7 +16235,7 @@ var require_create_context_native = __commonJS({
|
|
|
16235
16235
|
if (options != null && options.fallback) return (options == null ? void 0 : options.warn) !== !1 && console.warn(missingContextMessage), options.fallback;
|
|
16236
16236
|
throw new Error(missingContextMessage);
|
|
16237
16237
|
}
|
|
16238
|
-
return
|
|
16238
|
+
return [
|
|
16239
16239
|
Provider,
|
|
16240
16240
|
useContext
|
|
16241
16241
|
];
|
|
@@ -24710,18 +24710,20 @@ var require_Popover_native = __commonJS({
|
|
|
24710
24710
|
});
|
|
24711
24711
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24712
24712
|
var { allowPinchZoom, trapFocus, disableRemoveScroll = !0, zIndex, __scopePopover, ...contentImplProps } = props, context = usePopoverContext(__scopePopover), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React4.useRef(!1), [isFullyHidden, setIsFullyHidden] = React4.useState(!context.open);
|
|
24713
|
-
|
|
24713
|
+
if (context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
24714
24714
|
if (context.open) {
|
|
24715
24715
|
var content = contentRef.current;
|
|
24716
24716
|
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
24717
24717
|
}
|
|
24718
24718
|
}, [
|
|
24719
24719
|
context.open
|
|
24720
|
-
]), !context.keepChildrenMounted && isFullyHidden
|
|
24720
|
+
]), !context.keepChildrenMounted && isFullyHidden) return null;
|
|
24721
|
+
var _contentImplProps_pointerEvents;
|
|
24722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
24721
24723
|
__scopePopover,
|
|
24722
24724
|
zIndex: props.zIndex,
|
|
24723
24725
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
24724
|
-
pointerEvents: context.open ? "auto" : "none",
|
|
24726
|
+
pointerEvents: context.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
24725
24727
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
24726
24728
|
...contentImplProps,
|
|
24727
24729
|
disableRemoveScroll,
|