tamagui 1.123.7 → 1.123.9
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/index.cjs +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.native.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/jsx/index.js +2 -2
- package/dist/jsx/index.mjs +2 -2
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +2 -2
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/native.js +25 -25
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +25 -25
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
- package/src/index.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
package/dist/test.native.js
CHANGED
|
@@ -1432,7 +1432,6 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1432
1432
|
...textColors
|
|
1433
1433
|
}
|
|
1434
1434
|
}, stylePropsUnitless = {
|
|
1435
|
-
perspective: !0,
|
|
1436
1435
|
WebkitLineClamp: !0,
|
|
1437
1436
|
animationIterationCount: !0,
|
|
1438
1437
|
aspectRatio: !0,
|
|
@@ -5423,9 +5422,9 @@ var require_expandStyles_native = __commonJS({
|
|
|
5423
5422
|
}
|
|
5424
5423
|
});
|
|
5425
5424
|
|
|
5426
|
-
// ../../core/web/dist/cjs/helpers/
|
|
5427
|
-
var
|
|
5428
|
-
"../../core/web/dist/cjs/helpers/
|
|
5425
|
+
// ../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js
|
|
5426
|
+
var require_getCSSStylesAtomic_native = __commonJS({
|
|
5427
|
+
"../../core/web/dist/cjs/helpers/getCSSStylesAtomic.native.js"(exports2, module2) {
|
|
5429
5428
|
"use strict";
|
|
5430
5429
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5431
5430
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -5459,22 +5458,22 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
5459
5458
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5460
5459
|
value: !0
|
|
5461
5460
|
}), mod);
|
|
5462
|
-
},
|
|
5463
|
-
__export2(
|
|
5461
|
+
}, getCSSStylesAtomic_native_exports = {};
|
|
5462
|
+
__export2(getCSSStylesAtomic_native_exports, {
|
|
5463
|
+
getCSSStylesAtomic: function() {
|
|
5464
|
+
return getCSSStylesAtomic2;
|
|
5465
|
+
},
|
|
5464
5466
|
getStyleAtomic: function() {
|
|
5465
5467
|
return getStyleAtomic;
|
|
5466
5468
|
},
|
|
5467
|
-
getStylesAtomic: function() {
|
|
5468
|
-
return getStylesAtomic2;
|
|
5469
|
-
},
|
|
5470
5469
|
styleToCSS: function() {
|
|
5471
5470
|
return styleToCSS;
|
|
5472
5471
|
}
|
|
5473
5472
|
});
|
|
5474
|
-
module2.exports = __toCommonJS2(
|
|
5473
|
+
module2.exports = __toCommonJS2(getCSSStylesAtomic_native_exports);
|
|
5475
5474
|
var empty = function() {
|
|
5476
5475
|
console.warn("no-op native");
|
|
5477
|
-
},
|
|
5476
|
+
}, getCSSStylesAtomic2 = empty, getStyleAtomic = empty, styleToCSS = empty;
|
|
5478
5477
|
}
|
|
5479
5478
|
});
|
|
5480
5479
|
|
|
@@ -6775,6 +6774,7 @@ var require_transformsToString_native = __commonJS({
|
|
|
6775
6774
|
// { scale: 2 } => 'scale(2)'
|
|
6776
6775
|
// { translateX: 20 } => 'translateX(20px)'
|
|
6777
6776
|
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
6777
|
+
// { perspective: 1000 } => perspective(1000px)
|
|
6778
6778
|
function(transform) {
|
|
6779
6779
|
var type = Object.keys(transform)[0], value = transform[type];
|
|
6780
6780
|
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
@@ -6848,7 +6848,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6848
6848
|
}
|
|
6849
6849
|
});
|
|
6850
6850
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6851
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(),
|
|
6851
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), consoleGroupCollapsed = import_constants4.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
|
|
6852
6852
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6853
6853
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6854
6854
|
}
|
|
@@ -6939,7 +6939,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6939
6939
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key4], isEnter = key4 === "enterStyle", isExit = key4 === "exitStyle";
|
|
6940
6940
|
if (!descriptor) return;
|
|
6941
6941
|
if (shouldDoClasses && !isExit) {
|
|
6942
|
-
var pseudoStyles = (0,
|
|
6942
|
+
var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
6943
6943
|
try {
|
|
6944
6944
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
6945
6945
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
@@ -6990,7 +6990,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6990
6990
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
6991
6991
|
importance1 && (space = val2.space, usedKeys.space = importance1);
|
|
6992
6992
|
}
|
|
6993
|
-
var mediaStyles = (0,
|
|
6993
|
+
var mediaStyles = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(mediaStyle), priority = mediaStylesSeen;
|
|
6994
6994
|
mediaStylesSeen += 1;
|
|
6995
6995
|
var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
|
|
6996
6996
|
try {
|
|
@@ -7094,7 +7094,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7094
7094
|
for (var keyOg in props) _loop(keyOg);
|
|
7095
7095
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7096
7096
|
if (!avoidNormalize) {
|
|
7097
|
-
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0,
|
|
7097
|
+
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), !styleProps.noExpand && !styleProps.noMergeStyle && import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7098
7098
|
var _styleState;
|
|
7099
7099
|
(_styleState = styleState).style || (_styleState.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7100
7100
|
var [a] = param, [b] = param1;
|
|
@@ -7114,7 +7114,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7114
7114
|
}
|
|
7115
7115
|
if (0) var _styleState_style, shouldStringifyTransforms;
|
|
7116
7116
|
if (0) {
|
|
7117
|
-
if (styleState.style && shouldDoClasses) {
|
|
7117
|
+
if (!styleProps.noMergeStyle && styleState.style && shouldDoClasses) {
|
|
7118
7118
|
var retainedStyles, shouldRetain;
|
|
7119
7119
|
if (!styleState.style.$$css) {
|
|
7120
7120
|
var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
|
|
@@ -7134,7 +7134,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7134
7134
|
} else if (viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
|
|
7135
7135
|
}
|
|
7136
7136
|
var styleProp = props.style;
|
|
7137
|
-
if (styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
|
|
7137
|
+
if (!styleProps.noMergeStyle && styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);
|
|
7138
7138
|
else for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i = 0; i < len; i++) {
|
|
7139
7139
|
var style = isArray ? styleProp[i] : styleProp;
|
|
7140
7140
|
if (style) if (style.$$css) Object.assign(styleState.classNames, style);
|
|
@@ -7164,11 +7164,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7164
7164
|
pseudoGroups,
|
|
7165
7165
|
mediaGroups
|
|
7166
7166
|
}, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
7167
|
-
if (!asChildExceptStyleLike) {
|
|
7167
|
+
if (!styleProps.noMergeStyle && !asChildExceptStyleLike) {
|
|
7168
7168
|
var style2 = styleState.style;
|
|
7169
7169
|
if (0) {
|
|
7170
7170
|
var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
|
|
7171
|
-
if (!
|
|
7171
|
+
if (!(styleProps.isAnimated && !conf.animations.supportsCSSVars && isReactNative) && isReactNative) {
|
|
7172
7172
|
var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
|
|
7173
7173
|
try {
|
|
7174
7174
|
for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
|
|
@@ -7176,7 +7176,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7176
7176
|
} finally {
|
|
7177
7177
|
}
|
|
7178
7178
|
}
|
|
7179
|
-
} else style2 &&
|
|
7179
|
+
} else style2 && (viewProps.style = style2);
|
|
7180
7180
|
}
|
|
7181
7181
|
if (0)
|
|
7182
7182
|
try {
|
|
@@ -11066,7 +11066,7 @@ var require_index_native14 = __commonJS({
|
|
|
11066
11066
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
11067
11067
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
11068
11068
|
__reExport2(index_exports2, require_getSplitStyles_native(), module2.exports);
|
|
11069
|
-
__reExport2(index_exports2,
|
|
11069
|
+
__reExport2(index_exports2, require_getCSSStylesAtomic_native(), module2.exports);
|
|
11070
11070
|
__reExport2(index_exports2, require_createComponent_native(), module2.exports);
|
|
11071
11071
|
__reExport2(index_exports2, require_getThemeCSSRules_native(), module2.exports);
|
|
11072
11072
|
__reExport2(index_exports2, require_getVariantExtras_native(), module2.exports);
|
|
@@ -24899,9 +24899,9 @@ var require_Popover_native = __commonJS({
|
|
|
24899
24899
|
// (closed !== unmounted when animating out)
|
|
24900
24900
|
trapFocus: trapFocus ?? context.open,
|
|
24901
24901
|
disableOutsidePointerEvents: !0,
|
|
24902
|
-
onCloseAutoFocus: (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
|
|
24902
|
+
onCloseAutoFocus: props.onCloseAutoFocus === !1 ? void 0 : (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {
|
|
24903
24903
|
var _context_triggerRef_current;
|
|
24904
|
-
event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus();
|
|
24904
|
+
event.defaultPrevented || (event.preventDefault(), isRightClickOutsideRef.current || (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus());
|
|
24905
24905
|
}),
|
|
24906
24906
|
onPointerDownOutside: (0, import_helpers.composeEventHandlers)(props.onPointerDownOutside, function(event) {
|
|
24907
24907
|
var originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
@@ -30701,9 +30701,9 @@ __export(index_exports, {
|
|
|
30701
30701
|
createTokens: () => import_core11.createTokens,
|
|
30702
30702
|
createVariable: () => import_core11.createVariable,
|
|
30703
30703
|
defaultStyles: () => defaultStyles,
|
|
30704
|
+
getCSSStylesAtomic: () => import_core11.getCSSStylesAtomic,
|
|
30704
30705
|
getConfig: () => import_core11.getConfig,
|
|
30705
30706
|
getMedia: () => import_core11.getMedia,
|
|
30706
|
-
getStylesAtomic: () => import_core11.getStylesAtomic,
|
|
30707
30707
|
getThemes: () => import_core11.getThemes,
|
|
30708
30708
|
getToken: () => import_core11.getToken,
|
|
30709
30709
|
getTokenValue: () => import_core11.getTokenValue,
|
|
@@ -31058,9 +31058,9 @@ var import_core11 = __toESM(require_index_native18());
|
|
|
31058
31058
|
createTokens,
|
|
31059
31059
|
createVariable,
|
|
31060
31060
|
defaultStyles,
|
|
31061
|
+
getCSSStylesAtomic,
|
|
31061
31062
|
getConfig,
|
|
31062
31063
|
getMedia,
|
|
31063
|
-
getStylesAtomic,
|
|
31064
31064
|
getThemes,
|
|
31065
31065
|
getToken,
|
|
31066
31066
|
getTokenValue,
|