@tamagui/core 2.0.0-rc.21 → 2.0.0-rc.21-1772323626103
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/.turbo/turbo-build.log +2 -2
- package/dist/native.cjs +108 -100
- package/dist/test.native.cjs +108 -100
- package/package.json +10 -10
package/.turbo/turbo-build.log
CHANGED
package/dist/native.cjs
CHANGED
|
@@ -8870,53 +8870,29 @@ function resolvePlatformNames(nativeProp) {
|
|
|
8870
8870
|
) : Array.isArray(nativeProp) ? nativeProp : [nativeProp], set = new Set(platforms2);
|
|
8871
8871
|
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
8872
8872
|
}
|
|
8873
|
-
var
|
|
8874
|
-
transition: true,
|
|
8875
|
-
textWrap: true,
|
|
8876
|
-
backdropFilter: true,
|
|
8877
|
-
WebkitBackdropFilter: true,
|
|
8878
|
-
background: true,
|
|
8879
|
-
borderTop: true,
|
|
8880
|
-
borderRight: true,
|
|
8881
|
-
borderBottom: true,
|
|
8882
|
-
borderLeft: true,
|
|
8873
|
+
var nonAnimatableWebViewProps = {
|
|
8883
8874
|
backgroundAttachment: true,
|
|
8884
8875
|
backgroundBlendMode: true,
|
|
8885
8876
|
backgroundClip: true,
|
|
8886
8877
|
backgroundOrigin: true,
|
|
8887
|
-
backgroundPosition: true,
|
|
8888
8878
|
backgroundRepeat: true,
|
|
8889
|
-
backgroundSize: true,
|
|
8890
8879
|
borderBottomStyle: true,
|
|
8891
|
-
borderImage: true,
|
|
8892
8880
|
borderLeftStyle: true,
|
|
8893
8881
|
borderRightStyle: true,
|
|
8894
8882
|
borderTopStyle: true,
|
|
8895
|
-
caretColor: true,
|
|
8896
|
-
clipPath: true,
|
|
8897
8883
|
contain: true,
|
|
8898
8884
|
containerType: true,
|
|
8899
8885
|
content: true,
|
|
8900
8886
|
float: true,
|
|
8901
|
-
mask: true,
|
|
8902
|
-
maskBorder: true,
|
|
8903
8887
|
maskBorderMode: true,
|
|
8904
|
-
maskBorderOutset: true,
|
|
8905
8888
|
maskBorderRepeat: true,
|
|
8906
|
-
maskBorderSlice: true,
|
|
8907
|
-
maskBorderSource: true,
|
|
8908
|
-
maskBorderWidth: true,
|
|
8909
8889
|
maskClip: true,
|
|
8910
8890
|
maskComposite: true,
|
|
8911
|
-
maskImage: true,
|
|
8912
8891
|
maskMode: true,
|
|
8913
8892
|
maskOrigin: true,
|
|
8914
|
-
maskPosition: true,
|
|
8915
8893
|
maskRepeat: true,
|
|
8916
|
-
maskSize: true,
|
|
8917
8894
|
maskType: true,
|
|
8918
8895
|
objectFit: true,
|
|
8919
|
-
objectPosition: true,
|
|
8920
8896
|
overflowBlock: true,
|
|
8921
8897
|
overflowInline: true,
|
|
8922
8898
|
overflowX: true,
|
|
@@ -8924,20 +8900,46 @@ var webOnlyStylePropsView = {
|
|
|
8924
8900
|
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
8925
8901
|
pointerEvents: true,
|
|
8926
8902
|
scrollbarWidth: true,
|
|
8927
|
-
|
|
8903
|
+
textWrap: true,
|
|
8928
8904
|
touchAction: true,
|
|
8929
8905
|
transformStyle: true,
|
|
8930
|
-
userSelect: true,
|
|
8931
8906
|
willChange: true
|
|
8932
|
-
},
|
|
8907
|
+
}, nonAnimatableWebTextProps = {
|
|
8933
8908
|
whiteSpace: true,
|
|
8934
8909
|
wordWrap: true,
|
|
8935
8910
|
textOverflow: true,
|
|
8911
|
+
WebkitBoxOrient: true
|
|
8912
|
+
}, webOnlyStylePropsView = __spreadProps(__spreadValues({}, nonAnimatableWebViewProps), {
|
|
8913
|
+
transition: true,
|
|
8914
|
+
backdropFilter: true,
|
|
8915
|
+
WebkitBackdropFilter: true,
|
|
8916
|
+
background: true,
|
|
8917
|
+
borderTop: true,
|
|
8918
|
+
borderRight: true,
|
|
8919
|
+
borderBottom: true,
|
|
8920
|
+
borderLeft: true,
|
|
8921
|
+
backgroundPosition: true,
|
|
8922
|
+
backgroundSize: true,
|
|
8923
|
+
borderImage: true,
|
|
8924
|
+
caretColor: true,
|
|
8925
|
+
clipPath: true,
|
|
8926
|
+
mask: true,
|
|
8927
|
+
maskBorder: true,
|
|
8928
|
+
maskBorderOutset: true,
|
|
8929
|
+
maskBorderSlice: true,
|
|
8930
|
+
maskBorderSource: true,
|
|
8931
|
+
maskBorderWidth: true,
|
|
8932
|
+
maskImage: true,
|
|
8933
|
+
maskPosition: true,
|
|
8934
|
+
maskSize: true,
|
|
8935
|
+
objectPosition: true,
|
|
8936
|
+
textEmphasis: true,
|
|
8937
|
+
userSelect: true
|
|
8938
|
+
}), webOnlyStylePropsText = __spreadProps(__spreadValues({}, nonAnimatableWebTextProps), {
|
|
8936
8939
|
textDecorationDistance: true,
|
|
8937
8940
|
// cursor: now cross-platform - in stylePropsView
|
|
8938
|
-
WebkitLineClamp: true
|
|
8939
|
-
|
|
8940
|
-
};
|
|
8941
|
+
WebkitLineClamp: true
|
|
8942
|
+
});
|
|
8941
8943
|
var cssShorthandLonghands = {
|
|
8942
8944
|
// border longhands
|
|
8943
8945
|
borderWidth: true,
|
|
@@ -9014,8 +9016,47 @@ var cssShorthandLonghands = {
|
|
|
9014
9016
|
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
9015
9017
|
outlineColor: true
|
|
9016
9018
|
})
|
|
9017
|
-
},
|
|
9019
|
+
}, nonAnimatableViewProps = {
|
|
9020
|
+
alignContent: true,
|
|
9021
|
+
alignItems: true,
|
|
9022
|
+
alignSelf: true,
|
|
9023
|
+
backfaceVisibility: true,
|
|
9024
|
+
borderCurve: true,
|
|
9025
|
+
borderStyle: true,
|
|
9026
|
+
borderBlockStyle: true,
|
|
9027
|
+
borderBlockEndStyle: true,
|
|
9028
|
+
borderBlockStartStyle: true,
|
|
9029
|
+
borderInlineStyle: true,
|
|
9030
|
+
borderInlineEndStyle: true,
|
|
9031
|
+
borderInlineStartStyle: true,
|
|
9032
|
+
boxSizing: true,
|
|
9033
|
+
cursor: true,
|
|
9034
|
+
direction: true,
|
|
9035
|
+
display: true,
|
|
9036
|
+
flexDirection: true,
|
|
9037
|
+
flexWrap: true,
|
|
9038
|
+
isolation: true,
|
|
9039
|
+
justifyContent: true,
|
|
9040
|
+
mixBlendMode: true,
|
|
9041
|
+
outlineStyle: true,
|
|
9042
|
+
overflow: true,
|
|
9043
|
+
position: true
|
|
9044
|
+
}, nonAnimatableFontProps = {
|
|
9045
|
+
fontFamily: true,
|
|
9046
|
+
fontStyle: true,
|
|
9047
|
+
fontVariant: true,
|
|
9048
|
+
textTransform: true
|
|
9049
|
+
}, nonAnimatableTextOnlyProps = {
|
|
9050
|
+
textAlign: true,
|
|
9051
|
+
textDecorationLine: true,
|
|
9052
|
+
textDecorationStyle: true,
|
|
9053
|
+
userSelect: true
|
|
9054
|
+
}, nonAnimatableUnitlessProps = {
|
|
9018
9055
|
WebkitLineClamp: true,
|
|
9056
|
+
lineClamp: true,
|
|
9057
|
+
gridTemplateColumns: true,
|
|
9058
|
+
gridTemplateAreas: true
|
|
9059
|
+
}, nonAnimatableStyleProps = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, nonAnimatableViewProps), nonAnimatableFontProps), nonAnimatableTextOnlyProps), nonAnimatableUnitlessProps), stylePropsUnitless = __spreadProps(__spreadValues({}, nonAnimatableUnitlessProps), {
|
|
9019
9060
|
animationIterationCount: true,
|
|
9020
9061
|
aspectRatio: true,
|
|
9021
9062
|
borderImageOutset: true,
|
|
@@ -9037,9 +9078,6 @@ var cssShorthandLonghands = {
|
|
|
9037
9078
|
gridColumnEnd: true,
|
|
9038
9079
|
gridColumnGap: true,
|
|
9039
9080
|
gridColumnStart: true,
|
|
9040
|
-
gridTemplateColumns: true,
|
|
9041
|
-
gridTemplateAreas: true,
|
|
9042
|
-
lineClamp: true,
|
|
9043
9081
|
opacity: true,
|
|
9044
9082
|
order: true,
|
|
9045
9083
|
orphans: true,
|
|
@@ -9052,7 +9090,7 @@ var cssShorthandLonghands = {
|
|
|
9052
9090
|
scaleY: true,
|
|
9053
9091
|
scaleZ: true,
|
|
9054
9092
|
shadowOpacity: true
|
|
9055
|
-
}, stylePropsTransform = {
|
|
9093
|
+
}), stylePropsTransform = {
|
|
9056
9094
|
x: true,
|
|
9057
9095
|
y: true,
|
|
9058
9096
|
scale: true,
|
|
@@ -9066,10 +9104,7 @@ var cssShorthandLonghands = {
|
|
|
9066
9104
|
rotateY: true,
|
|
9067
9105
|
rotateX: true,
|
|
9068
9106
|
rotateZ: true
|
|
9069
|
-
}, stylePropsView = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
9070
|
-
backfaceVisibility: true,
|
|
9071
|
-
borderCurve: true,
|
|
9072
|
-
cursor: true,
|
|
9107
|
+
}, stylePropsView = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, nonAnimatableViewProps), {
|
|
9073
9108
|
borderBottomEndRadius: true,
|
|
9074
9109
|
borderBottomStartRadius: true,
|
|
9075
9110
|
borderBottomWidth: true,
|
|
@@ -9081,34 +9116,20 @@ var cssShorthandLonghands = {
|
|
|
9081
9116
|
borderInlineWidth: true,
|
|
9082
9117
|
borderInlineEndWidth: true,
|
|
9083
9118
|
borderInlineStartWidth: true,
|
|
9084
|
-
borderStyle: true,
|
|
9085
|
-
borderBlockStyle: true,
|
|
9086
|
-
borderBlockEndStyle: true,
|
|
9087
|
-
borderBlockStartStyle: true,
|
|
9088
|
-
borderInlineStyle: true,
|
|
9089
|
-
borderInlineEndStyle: true,
|
|
9090
|
-
borderInlineStartStyle: true,
|
|
9091
9119
|
borderTopEndRadius: true,
|
|
9092
9120
|
borderTopStartRadius: true,
|
|
9093
9121
|
borderTopWidth: true,
|
|
9094
9122
|
borderWidth: true,
|
|
9095
9123
|
transform: true,
|
|
9096
9124
|
transformOrigin: true,
|
|
9097
|
-
alignContent: true,
|
|
9098
|
-
alignItems: true,
|
|
9099
|
-
alignSelf: true,
|
|
9100
9125
|
borderEndWidth: true,
|
|
9101
9126
|
borderStartWidth: true,
|
|
9102
9127
|
bottom: true,
|
|
9103
|
-
display: true,
|
|
9104
9128
|
end: true,
|
|
9105
9129
|
flexBasis: true,
|
|
9106
|
-
flexDirection: true,
|
|
9107
|
-
flexWrap: true,
|
|
9108
9130
|
gap: true,
|
|
9109
9131
|
columnGap: true,
|
|
9110
9132
|
rowGap: true,
|
|
9111
|
-
justifyContent: true,
|
|
9112
9133
|
left: true,
|
|
9113
9134
|
margin: true,
|
|
9114
9135
|
marginBlock: true,
|
|
@@ -9125,7 +9146,6 @@ var cssShorthandLonghands = {
|
|
|
9125
9146
|
marginStart: true,
|
|
9126
9147
|
marginTop: true,
|
|
9127
9148
|
marginVertical: true,
|
|
9128
|
-
overflow: true,
|
|
9129
9149
|
padding: true,
|
|
9130
9150
|
paddingBottom: true,
|
|
9131
9151
|
paddingInline: true,
|
|
@@ -9140,7 +9160,6 @@ var cssShorthandLonghands = {
|
|
|
9140
9160
|
paddingStart: true,
|
|
9141
9161
|
paddingTop: true,
|
|
9142
9162
|
paddingVertical: true,
|
|
9143
|
-
position: true,
|
|
9144
9163
|
right: true,
|
|
9145
9164
|
start: true,
|
|
9146
9165
|
top: true,
|
|
@@ -9151,10 +9170,9 @@ var cssShorthandLonghands = {
|
|
|
9151
9170
|
insetInline: true,
|
|
9152
9171
|
insetInlineEnd: true,
|
|
9153
9172
|
insetInlineStart: true,
|
|
9154
|
-
direction: true,
|
|
9155
9173
|
shadowOffset: true,
|
|
9156
9174
|
shadowRadius: true
|
|
9157
|
-
}, tokenCategories.color), tokenCategories.radius), tokenCategories.size),
|
|
9175
|
+
}), tokenCategories.color), tokenCategories.radius), tokenCategories.size), stylePropsTransform), stylePropsUnitless), isAndroid ? {
|
|
9158
9176
|
elevationAndroid: true
|
|
9159
9177
|
} : {}), {
|
|
9160
9178
|
boxShadow: true,
|
|
@@ -9165,32 +9183,19 @@ var cssShorthandLonghands = {
|
|
|
9165
9183
|
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
9166
9184
|
experimental_backgroundImage: true,
|
|
9167
9185
|
// RN 0.76/0.77+ style props (New Architecture)
|
|
9168
|
-
boxSizing: true,
|
|
9169
|
-
mixBlendMode: true,
|
|
9170
|
-
isolation: true,
|
|
9171
9186
|
outline: true,
|
|
9172
9187
|
outlineColor: true,
|
|
9173
9188
|
outlineOffset: true,
|
|
9174
|
-
outlineStyle: true,
|
|
9175
9189
|
outlineWidth: true
|
|
9176
|
-
}), stylePropsFont = {
|
|
9177
|
-
fontFamily: true,
|
|
9190
|
+
}), stylePropsFont = __spreadProps(__spreadValues({}, nonAnimatableFontProps), {
|
|
9178
9191
|
fontSize: true,
|
|
9179
|
-
fontStyle: true,
|
|
9180
9192
|
fontWeight: true,
|
|
9181
|
-
fontVariant: true,
|
|
9182
9193
|
letterSpacing: true,
|
|
9183
|
-
lineHeight: true
|
|
9184
|
-
|
|
9185
|
-
}, stylePropsTextOnly = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, stylePropsFont), {
|
|
9186
|
-
textAlign: true,
|
|
9187
|
-
textDecorationLine: true,
|
|
9188
|
-
textDecorationStyle: true
|
|
9189
|
-
}), textColors), {
|
|
9194
|
+
lineHeight: true
|
|
9195
|
+
}), stylePropsTextOnly = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, stylePropsFont), nonAnimatableTextOnlyProps), textColors), {
|
|
9190
9196
|
textShadow: true,
|
|
9191
9197
|
textShadowOffset: true,
|
|
9192
9198
|
textShadowRadius: true,
|
|
9193
|
-
userSelect: true,
|
|
9194
9199
|
verticalAlign: true
|
|
9195
9200
|
}), stylePropsText = __spreadValues(__spreadValues({}, stylePropsView), stylePropsTextOnly), stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
9196
9201
|
enterStyle: true,
|
|
@@ -10717,43 +10722,43 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10717
10722
|
if (!noSkip && keyInit in skipProps) return "continue";
|
|
10718
10723
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
10719
10724
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
10720
|
-
if (propMapper(keyInit, valInit, styleState, disablePropMap, function(
|
|
10721
|
-
var _parentStaticConfig_variants, isStyledContextProp = styledContext &&
|
|
10725
|
+
if (propMapper(keyInit, valInit, styleState, disablePropMap, function(key5, val2, originalVal) {
|
|
10726
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key5 in styledContext;
|
|
10722
10727
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
10723
|
-
viewProps[
|
|
10728
|
+
viewProps[key5] = val2;
|
|
10724
10729
|
return;
|
|
10725
10730
|
}
|
|
10726
10731
|
if (false, val2 != null) {
|
|
10727
|
-
if (
|
|
10728
|
-
viewProps[
|
|
10732
|
+
if (key5 === "pointerEvents") {
|
|
10733
|
+
viewProps[key5] = val2;
|
|
10729
10734
|
return;
|
|
10730
10735
|
}
|
|
10731
|
-
if (!isHOC && isValidStyleKey(
|
|
10732
|
-
mergeStyle(styleState,
|
|
10736
|
+
if (!isHOC && isValidStyleKey(key5, validStyles$1, accept) || isAndroid && key5 === "elevation") {
|
|
10737
|
+
mergeStyle(styleState, key5, val2, 1, false, originalVal);
|
|
10733
10738
|
return;
|
|
10734
10739
|
}
|
|
10735
|
-
if (isPseudo =
|
|
10740
|
+
if (isPseudo = key5 in validPseudoKeys, isMedia = isPseudo ? false : getMediaKey(key5), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key5 in variants, isMedia === "group" && (key5 = normalizeGroupKey(key5, groupContext)), (inlineProps == null ? void 0 : inlineProps.has(key5)) || process.env.IS_STATIC === "is_static" && (inlineWhenUnflattened == null ? void 0 : inlineWhenUnflattened.has(key5))) {
|
|
10736
10741
|
var _props_key;
|
|
10737
|
-
viewProps[
|
|
10742
|
+
viewProps[key5] = (_props_key = props[key5]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
10738
10743
|
}
|
|
10739
10744
|
var shouldPassThrough2 = styleProps2.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
10740
10745
|
if (shouldPassThrough2) {
|
|
10741
|
-
passDownProp(viewProps,
|
|
10746
|
+
passDownProp(viewProps, key5, val2, isMediaOrPseudo), false;
|
|
10742
10747
|
return;
|
|
10743
10748
|
}
|
|
10744
10749
|
if (isPseudo) {
|
|
10745
10750
|
if (!val2) return;
|
|
10746
|
-
var pseudoStyleObject = getSubStyle(styleState,
|
|
10751
|
+
var pseudoStyleObject = getSubStyle(styleState, key5, val2, styleProps2.noClass && process.env.IS_STATIC !== "is_static");
|
|
10747
10752
|
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
10748
10753
|
var _pseudos, _key;
|
|
10749
|
-
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key =
|
|
10750
|
-
Object.assign(pseudos[
|
|
10754
|
+
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key5] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
10755
|
+
Object.assign(pseudos[key5], pseudoStyleObject);
|
|
10751
10756
|
return;
|
|
10752
10757
|
}
|
|
10753
10758
|
}
|
|
10754
|
-
var descriptor = pseudoDescriptors[
|
|
10759
|
+
var descriptor = pseudoDescriptors[key5], isEnter = key5 === "enterStyle", isExit = key5 === "exitStyle";
|
|
10755
10760
|
if (!descriptor) return;
|
|
10756
|
-
var pseudoStyles,
|
|
10761
|
+
var pseudoStyles, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _iterator3, _step3, psuedoStyle, fullKey;
|
|
10757
10762
|
if (shouldDoClasses && !isExit) ;
|
|
10758
10763
|
if (!shouldDoClasses || isExit || isEnter) {
|
|
10759
10764
|
var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled2 = componentState[descriptorKey] === false;
|
|
@@ -10767,7 +10772,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10767
10772
|
if (shouldMerge) {
|
|
10768
10773
|
if (process.env.IS_STATIC === "is_static") {
|
|
10769
10774
|
var _pseudos1, _key1;
|
|
10770
|
-
pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 =
|
|
10775
|
+
pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key5] || (_pseudos1[_key1] = {}), pseudos[key5][pkey] = _$val;
|
|
10771
10776
|
}
|
|
10772
10777
|
mergeStyle(styleState, pkey, _$val, importance, false, pseudoOriginalValues == null ? void 0 : pseudoOriginalValues[pkey]);
|
|
10773
10778
|
}
|
|
@@ -10782,15 +10787,15 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10782
10787
|
}
|
|
10783
10788
|
if (isMedia) {
|
|
10784
10789
|
if (!val2) return;
|
|
10785
|
-
var mediaKeyShort =
|
|
10790
|
+
var mediaKeyShort = key5.slice(isMedia == "theme" ? 7 : 1);
|
|
10786
10791
|
hasMedia || (hasMedia = true);
|
|
10787
10792
|
var hasSpace = val2.space;
|
|
10788
|
-
if ((hasSpace || !shouldDoClasses || styleProps2.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !isActivePlatform(
|
|
10793
|
+
if ((hasSpace || !shouldDoClasses || styleProps2.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !isActivePlatform(key5)) return;
|
|
10789
10794
|
var priority = mediaStylesSeen;
|
|
10790
10795
|
mediaStylesSeen += 1;
|
|
10791
10796
|
var shouldDoClassesForThisMedia = shouldDoClasses || isWeb && isMedia === "theme";
|
|
10792
10797
|
if (shouldDoClassesForThisMedia) {
|
|
10793
|
-
var mediaStyle = getSubStyle(styleState,
|
|
10798
|
+
var mediaStyle = getSubStyle(styleState, key5, val2, false), mediaStyles = getCSSStylesAtomic(mediaStyle), _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
|
|
10794
10799
|
try {
|
|
10795
10800
|
for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
|
|
10796
10801
|
var style3 = _step12.value, property = style3[StyleObjectProperty], isSubStyle = property[0] === "$";
|
|
@@ -10810,11 +10815,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10810
10815
|
}
|
|
10811
10816
|
}
|
|
10812
10817
|
} else {
|
|
10813
|
-
let mergeMediaStyle2 = function(
|
|
10818
|
+
let mergeMediaStyle2 = function(key6, val3, originalVal2) {
|
|
10814
10819
|
var _styleState4;
|
|
10815
10820
|
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
10816
|
-
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort,
|
|
10817
|
-
didMerge &&
|
|
10821
|
+
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key6, val3, mediaState[mediaKeyShort], importanceBump, debug, originalVal2);
|
|
10822
|
+
didMerge && key6 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
10818
10823
|
};
|
|
10819
10824
|
var mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
10820
10825
|
if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
|
|
@@ -10822,7 +10827,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10822
10827
|
return;
|
|
10823
10828
|
}
|
|
10824
10829
|
}
|
|
10825
|
-
var mediaStyle1 = getSubStyle(styleState,
|
|
10830
|
+
var mediaStyle1 = getSubStyle(styleState, key5, val2, true), importanceBump = 0;
|
|
10826
10831
|
if (isThemeMedia) {
|
|
10827
10832
|
if (isIos && getSetting("fastSchemeChange")) {
|
|
10828
10833
|
var _styleState3;
|
|
@@ -10887,7 +10892,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10887
10892
|
}
|
|
10888
10893
|
if (!isVariant) {
|
|
10889
10894
|
if (isStyledContextProp) return;
|
|
10890
|
-
viewProps[
|
|
10895
|
+
viewProps[key5] = val2;
|
|
10891
10896
|
}
|
|
10892
10897
|
}
|
|
10893
10898
|
}), false) ;
|
|
@@ -10933,8 +10938,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10933
10938
|
fallbackProps
|
|
10934
10939
|
} = styleProps2;
|
|
10935
10940
|
fallbackProps && (styleState.props = new Proxy(props, {
|
|
10936
|
-
get(_2,
|
|
10937
|
-
return Reflect.has(props,
|
|
10941
|
+
get(_2, key5, val2) {
|
|
10942
|
+
return Reflect.has(props, key5) ? Reflect.get(props, key5) : Reflect.get(fallbackProps, key5);
|
|
10938
10943
|
}
|
|
10939
10944
|
}));
|
|
10940
10945
|
}
|
|
@@ -13617,6 +13622,9 @@ exports.mergeIfNotShallowEqual = mergeIfNotShallowEqual;
|
|
|
13617
13622
|
exports.mergeProps = mergeProps;
|
|
13618
13623
|
exports.mergeSlotStyleProps = mergeSlotStyleProps;
|
|
13619
13624
|
exports.mutatedAutoVariables = mutatedAutoVariables;
|
|
13625
|
+
exports.nonAnimatableStyleProps = nonAnimatableStyleProps;
|
|
13626
|
+
exports.nonAnimatableWebTextProps = nonAnimatableWebTextProps;
|
|
13627
|
+
exports.nonAnimatableWebViewProps = nonAnimatableWebViewProps;
|
|
13620
13628
|
exports.normalizeColor = normalizeColor;
|
|
13621
13629
|
exports.normalizeStyle = normalizeStyle$1;
|
|
13622
13630
|
exports.normalizeValueWithProperty = normalizeValueWithProperty;
|
package/dist/test.native.cjs
CHANGED
|
@@ -606,53 +606,29 @@ function resolvePlatformNames(nativeProp) {
|
|
|
606
606
|
) : Array.isArray(nativeProp) ? nativeProp : [nativeProp], set = new Set(platforms2);
|
|
607
607
|
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
transition: true,
|
|
611
|
-
textWrap: true,
|
|
612
|
-
backdropFilter: true,
|
|
613
|
-
WebkitBackdropFilter: true,
|
|
614
|
-
background: true,
|
|
615
|
-
borderTop: true,
|
|
616
|
-
borderRight: true,
|
|
617
|
-
borderBottom: true,
|
|
618
|
-
borderLeft: true,
|
|
609
|
+
var nonAnimatableWebViewProps = {
|
|
619
610
|
backgroundAttachment: true,
|
|
620
611
|
backgroundBlendMode: true,
|
|
621
612
|
backgroundClip: true,
|
|
622
613
|
backgroundOrigin: true,
|
|
623
|
-
backgroundPosition: true,
|
|
624
614
|
backgroundRepeat: true,
|
|
625
|
-
backgroundSize: true,
|
|
626
615
|
borderBottomStyle: true,
|
|
627
|
-
borderImage: true,
|
|
628
616
|
borderLeftStyle: true,
|
|
629
617
|
borderRightStyle: true,
|
|
630
618
|
borderTopStyle: true,
|
|
631
|
-
caretColor: true,
|
|
632
|
-
clipPath: true,
|
|
633
619
|
contain: true,
|
|
634
620
|
containerType: true,
|
|
635
621
|
content: true,
|
|
636
622
|
float: true,
|
|
637
|
-
mask: true,
|
|
638
|
-
maskBorder: true,
|
|
639
623
|
maskBorderMode: true,
|
|
640
|
-
maskBorderOutset: true,
|
|
641
624
|
maskBorderRepeat: true,
|
|
642
|
-
maskBorderSlice: true,
|
|
643
|
-
maskBorderSource: true,
|
|
644
|
-
maskBorderWidth: true,
|
|
645
625
|
maskClip: true,
|
|
646
626
|
maskComposite: true,
|
|
647
|
-
maskImage: true,
|
|
648
627
|
maskMode: true,
|
|
649
628
|
maskOrigin: true,
|
|
650
|
-
maskPosition: true,
|
|
651
629
|
maskRepeat: true,
|
|
652
|
-
maskSize: true,
|
|
653
630
|
maskType: true,
|
|
654
631
|
objectFit: true,
|
|
655
|
-
objectPosition: true,
|
|
656
632
|
overflowBlock: true,
|
|
657
633
|
overflowInline: true,
|
|
658
634
|
overflowX: true,
|
|
@@ -660,20 +636,46 @@ var webOnlyStylePropsView = {
|
|
|
660
636
|
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
661
637
|
pointerEvents: true,
|
|
662
638
|
scrollbarWidth: true,
|
|
663
|
-
|
|
639
|
+
textWrap: true,
|
|
664
640
|
touchAction: true,
|
|
665
641
|
transformStyle: true,
|
|
666
|
-
userSelect: true,
|
|
667
642
|
willChange: true
|
|
668
|
-
},
|
|
643
|
+
}, nonAnimatableWebTextProps = {
|
|
669
644
|
whiteSpace: true,
|
|
670
645
|
wordWrap: true,
|
|
671
646
|
textOverflow: true,
|
|
647
|
+
WebkitBoxOrient: true
|
|
648
|
+
}, webOnlyStylePropsView = __spreadProps(__spreadValues({}, nonAnimatableWebViewProps), {
|
|
649
|
+
transition: true,
|
|
650
|
+
backdropFilter: true,
|
|
651
|
+
WebkitBackdropFilter: true,
|
|
652
|
+
background: true,
|
|
653
|
+
borderTop: true,
|
|
654
|
+
borderRight: true,
|
|
655
|
+
borderBottom: true,
|
|
656
|
+
borderLeft: true,
|
|
657
|
+
backgroundPosition: true,
|
|
658
|
+
backgroundSize: true,
|
|
659
|
+
borderImage: true,
|
|
660
|
+
caretColor: true,
|
|
661
|
+
clipPath: true,
|
|
662
|
+
mask: true,
|
|
663
|
+
maskBorder: true,
|
|
664
|
+
maskBorderOutset: true,
|
|
665
|
+
maskBorderSlice: true,
|
|
666
|
+
maskBorderSource: true,
|
|
667
|
+
maskBorderWidth: true,
|
|
668
|
+
maskImage: true,
|
|
669
|
+
maskPosition: true,
|
|
670
|
+
maskSize: true,
|
|
671
|
+
objectPosition: true,
|
|
672
|
+
textEmphasis: true,
|
|
673
|
+
userSelect: true
|
|
674
|
+
}), webOnlyStylePropsText = __spreadProps(__spreadValues({}, nonAnimatableWebTextProps), {
|
|
672
675
|
textDecorationDistance: true,
|
|
673
676
|
// cursor: now cross-platform - in stylePropsView
|
|
674
|
-
WebkitLineClamp: true
|
|
675
|
-
|
|
676
|
-
};
|
|
677
|
+
WebkitLineClamp: true
|
|
678
|
+
});
|
|
677
679
|
var cssShorthandLonghands = {
|
|
678
680
|
// border longhands
|
|
679
681
|
borderWidth: true,
|
|
@@ -750,8 +752,47 @@ var cssShorthandLonghands = {
|
|
|
750
752
|
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
751
753
|
outlineColor: true
|
|
752
754
|
})
|
|
753
|
-
},
|
|
755
|
+
}, nonAnimatableViewProps = {
|
|
756
|
+
alignContent: true,
|
|
757
|
+
alignItems: true,
|
|
758
|
+
alignSelf: true,
|
|
759
|
+
backfaceVisibility: true,
|
|
760
|
+
borderCurve: true,
|
|
761
|
+
borderStyle: true,
|
|
762
|
+
borderBlockStyle: true,
|
|
763
|
+
borderBlockEndStyle: true,
|
|
764
|
+
borderBlockStartStyle: true,
|
|
765
|
+
borderInlineStyle: true,
|
|
766
|
+
borderInlineEndStyle: true,
|
|
767
|
+
borderInlineStartStyle: true,
|
|
768
|
+
boxSizing: true,
|
|
769
|
+
cursor: true,
|
|
770
|
+
direction: true,
|
|
771
|
+
display: true,
|
|
772
|
+
flexDirection: true,
|
|
773
|
+
flexWrap: true,
|
|
774
|
+
isolation: true,
|
|
775
|
+
justifyContent: true,
|
|
776
|
+
mixBlendMode: true,
|
|
777
|
+
outlineStyle: true,
|
|
778
|
+
overflow: true,
|
|
779
|
+
position: true
|
|
780
|
+
}, nonAnimatableFontProps = {
|
|
781
|
+
fontFamily: true,
|
|
782
|
+
fontStyle: true,
|
|
783
|
+
fontVariant: true,
|
|
784
|
+
textTransform: true
|
|
785
|
+
}, nonAnimatableTextOnlyProps = {
|
|
786
|
+
textAlign: true,
|
|
787
|
+
textDecorationLine: true,
|
|
788
|
+
textDecorationStyle: true,
|
|
789
|
+
userSelect: true
|
|
790
|
+
}, nonAnimatableUnitlessProps = {
|
|
754
791
|
WebkitLineClamp: true,
|
|
792
|
+
lineClamp: true,
|
|
793
|
+
gridTemplateColumns: true,
|
|
794
|
+
gridTemplateAreas: true
|
|
795
|
+
}, nonAnimatableStyleProps = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, nonAnimatableViewProps), nonAnimatableFontProps), nonAnimatableTextOnlyProps), nonAnimatableUnitlessProps), stylePropsUnitless = __spreadProps(__spreadValues({}, nonAnimatableUnitlessProps), {
|
|
755
796
|
animationIterationCount: true,
|
|
756
797
|
aspectRatio: true,
|
|
757
798
|
borderImageOutset: true,
|
|
@@ -773,9 +814,6 @@ var cssShorthandLonghands = {
|
|
|
773
814
|
gridColumnEnd: true,
|
|
774
815
|
gridColumnGap: true,
|
|
775
816
|
gridColumnStart: true,
|
|
776
|
-
gridTemplateColumns: true,
|
|
777
|
-
gridTemplateAreas: true,
|
|
778
|
-
lineClamp: true,
|
|
779
817
|
opacity: true,
|
|
780
818
|
order: true,
|
|
781
819
|
orphans: true,
|
|
@@ -788,7 +826,7 @@ var cssShorthandLonghands = {
|
|
|
788
826
|
scaleY: true,
|
|
789
827
|
scaleZ: true,
|
|
790
828
|
shadowOpacity: true
|
|
791
|
-
}, stylePropsTransform = {
|
|
829
|
+
}), stylePropsTransform = {
|
|
792
830
|
x: true,
|
|
793
831
|
y: true,
|
|
794
832
|
scale: true,
|
|
@@ -802,10 +840,7 @@ var cssShorthandLonghands = {
|
|
|
802
840
|
rotateY: true,
|
|
803
841
|
rotateX: true,
|
|
804
842
|
rotateZ: true
|
|
805
|
-
}, stylePropsView = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
806
|
-
backfaceVisibility: true,
|
|
807
|
-
borderCurve: true,
|
|
808
|
-
cursor: true,
|
|
843
|
+
}, stylePropsView = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, nonAnimatableViewProps), {
|
|
809
844
|
borderBottomEndRadius: true,
|
|
810
845
|
borderBottomStartRadius: true,
|
|
811
846
|
borderBottomWidth: true,
|
|
@@ -817,34 +852,20 @@ var cssShorthandLonghands = {
|
|
|
817
852
|
borderInlineWidth: true,
|
|
818
853
|
borderInlineEndWidth: true,
|
|
819
854
|
borderInlineStartWidth: true,
|
|
820
|
-
borderStyle: true,
|
|
821
|
-
borderBlockStyle: true,
|
|
822
|
-
borderBlockEndStyle: true,
|
|
823
|
-
borderBlockStartStyle: true,
|
|
824
|
-
borderInlineStyle: true,
|
|
825
|
-
borderInlineEndStyle: true,
|
|
826
|
-
borderInlineStartStyle: true,
|
|
827
855
|
borderTopEndRadius: true,
|
|
828
856
|
borderTopStartRadius: true,
|
|
829
857
|
borderTopWidth: true,
|
|
830
858
|
borderWidth: true,
|
|
831
859
|
transform: true,
|
|
832
860
|
transformOrigin: true,
|
|
833
|
-
alignContent: true,
|
|
834
|
-
alignItems: true,
|
|
835
|
-
alignSelf: true,
|
|
836
861
|
borderEndWidth: true,
|
|
837
862
|
borderStartWidth: true,
|
|
838
863
|
bottom: true,
|
|
839
|
-
display: true,
|
|
840
864
|
end: true,
|
|
841
865
|
flexBasis: true,
|
|
842
|
-
flexDirection: true,
|
|
843
|
-
flexWrap: true,
|
|
844
866
|
gap: true,
|
|
845
867
|
columnGap: true,
|
|
846
868
|
rowGap: true,
|
|
847
|
-
justifyContent: true,
|
|
848
869
|
left: true,
|
|
849
870
|
margin: true,
|
|
850
871
|
marginBlock: true,
|
|
@@ -861,7 +882,6 @@ var cssShorthandLonghands = {
|
|
|
861
882
|
marginStart: true,
|
|
862
883
|
marginTop: true,
|
|
863
884
|
marginVertical: true,
|
|
864
|
-
overflow: true,
|
|
865
885
|
padding: true,
|
|
866
886
|
paddingBottom: true,
|
|
867
887
|
paddingInline: true,
|
|
@@ -876,7 +896,6 @@ var cssShorthandLonghands = {
|
|
|
876
896
|
paddingStart: true,
|
|
877
897
|
paddingTop: true,
|
|
878
898
|
paddingVertical: true,
|
|
879
|
-
position: true,
|
|
880
899
|
right: true,
|
|
881
900
|
start: true,
|
|
882
901
|
top: true,
|
|
@@ -887,10 +906,9 @@ var cssShorthandLonghands = {
|
|
|
887
906
|
insetInline: true,
|
|
888
907
|
insetInlineEnd: true,
|
|
889
908
|
insetInlineStart: true,
|
|
890
|
-
direction: true,
|
|
891
909
|
shadowOffset: true,
|
|
892
910
|
shadowRadius: true
|
|
893
|
-
}, tokenCategories.color), tokenCategories.radius), tokenCategories.size),
|
|
911
|
+
}), tokenCategories.color), tokenCategories.radius), tokenCategories.size), stylePropsTransform), stylePropsUnitless), isAndroid ? {
|
|
894
912
|
elevationAndroid: true
|
|
895
913
|
} : {}), {
|
|
896
914
|
boxShadow: true,
|
|
@@ -901,32 +919,19 @@ var cssShorthandLonghands = {
|
|
|
901
919
|
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
902
920
|
experimental_backgroundImage: true,
|
|
903
921
|
// RN 0.76/0.77+ style props (New Architecture)
|
|
904
|
-
boxSizing: true,
|
|
905
|
-
mixBlendMode: true,
|
|
906
|
-
isolation: true,
|
|
907
922
|
outline: true,
|
|
908
923
|
outlineColor: true,
|
|
909
924
|
outlineOffset: true,
|
|
910
|
-
outlineStyle: true,
|
|
911
925
|
outlineWidth: true
|
|
912
|
-
}), stylePropsFont = {
|
|
913
|
-
fontFamily: true,
|
|
926
|
+
}), stylePropsFont = __spreadProps(__spreadValues({}, nonAnimatableFontProps), {
|
|
914
927
|
fontSize: true,
|
|
915
|
-
fontStyle: true,
|
|
916
928
|
fontWeight: true,
|
|
917
|
-
fontVariant: true,
|
|
918
929
|
letterSpacing: true,
|
|
919
|
-
lineHeight: true
|
|
920
|
-
|
|
921
|
-
}, stylePropsTextOnly = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, stylePropsFont), {
|
|
922
|
-
textAlign: true,
|
|
923
|
-
textDecorationLine: true,
|
|
924
|
-
textDecorationStyle: true
|
|
925
|
-
}), textColors), {
|
|
930
|
+
lineHeight: true
|
|
931
|
+
}), stylePropsTextOnly = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, stylePropsFont), nonAnimatableTextOnlyProps), textColors), {
|
|
926
932
|
textShadow: true,
|
|
927
933
|
textShadowOffset: true,
|
|
928
934
|
textShadowRadius: true,
|
|
929
|
-
userSelect: true,
|
|
930
935
|
verticalAlign: true
|
|
931
936
|
}), stylePropsText = __spreadValues(__spreadValues({}, stylePropsView), stylePropsTextOnly), stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
932
937
|
enterStyle: true,
|
|
@@ -2999,43 +3004,43 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
2999
3004
|
if (!noSkip && keyInit in skipProps) return "continue";
|
|
3000
3005
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
3001
3006
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
3002
|
-
if (propMapper(keyInit, valInit, styleState, disablePropMap, function(
|
|
3003
|
-
var _parentStaticConfig_variants, isStyledContextProp = styledContext &&
|
|
3007
|
+
if (propMapper(keyInit, valInit, styleState, disablePropMap, function(key5, val2, originalVal) {
|
|
3008
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key5 in styledContext;
|
|
3004
3009
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
3005
|
-
viewProps[
|
|
3010
|
+
viewProps[key5] = val2;
|
|
3006
3011
|
return;
|
|
3007
3012
|
}
|
|
3008
3013
|
if (false, val2 != null) {
|
|
3009
|
-
if (
|
|
3010
|
-
viewProps[
|
|
3014
|
+
if (key5 === "pointerEvents") {
|
|
3015
|
+
viewProps[key5] = val2;
|
|
3011
3016
|
return;
|
|
3012
3017
|
}
|
|
3013
|
-
if (!isHOC && isValidStyleKey(
|
|
3014
|
-
mergeStyle(styleState,
|
|
3018
|
+
if (!isHOC && isValidStyleKey(key5, validStyles$1, accept) || isAndroid && key5 === "elevation") {
|
|
3019
|
+
mergeStyle(styleState, key5, val2, 1, false, originalVal);
|
|
3015
3020
|
return;
|
|
3016
3021
|
}
|
|
3017
|
-
if (isPseudo =
|
|
3022
|
+
if (isPseudo = key5 in validPseudoKeys, isMedia = isPseudo ? false : getMediaKey(key5), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key5 in variants, isMedia === "group" && (key5 = normalizeGroupKey(key5, groupContext)), (inlineProps == null ? void 0 : inlineProps.has(key5)) || process.env.IS_STATIC === "is_static" && (inlineWhenUnflattened == null ? void 0 : inlineWhenUnflattened.has(key5))) {
|
|
3018
3023
|
var _props_key;
|
|
3019
|
-
viewProps[
|
|
3024
|
+
viewProps[key5] = (_props_key = props[key5]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
3020
3025
|
}
|
|
3021
3026
|
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
3022
3027
|
if (shouldPassThrough2) {
|
|
3023
|
-
passDownProp(viewProps,
|
|
3028
|
+
passDownProp(viewProps, key5, val2, isMediaOrPseudo), false;
|
|
3024
3029
|
return;
|
|
3025
3030
|
}
|
|
3026
3031
|
if (isPseudo) {
|
|
3027
3032
|
if (!val2) return;
|
|
3028
|
-
var pseudoStyleObject = getSubStyle(styleState,
|
|
3033
|
+
var pseudoStyleObject = getSubStyle(styleState, key5, val2, styleProps.noClass && process.env.IS_STATIC !== "is_static");
|
|
3029
3034
|
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
3030
3035
|
var _pseudos, _key;
|
|
3031
|
-
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key =
|
|
3032
|
-
Object.assign(pseudos[
|
|
3036
|
+
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key5] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
3037
|
+
Object.assign(pseudos[key5], pseudoStyleObject);
|
|
3033
3038
|
return;
|
|
3034
3039
|
}
|
|
3035
3040
|
}
|
|
3036
|
-
var descriptor = pseudoDescriptors[
|
|
3041
|
+
var descriptor = pseudoDescriptors[key5], isEnter = key5 === "enterStyle", isExit = key5 === "exitStyle";
|
|
3037
3042
|
if (!descriptor) return;
|
|
3038
|
-
var pseudoStyles,
|
|
3043
|
+
var pseudoStyles, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _iterator3, _step3, psuedoStyle, fullKey;
|
|
3039
3044
|
if (shouldDoClasses && !isExit) ;
|
|
3040
3045
|
if (!shouldDoClasses || isExit || isEnter) {
|
|
3041
3046
|
var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled2 = componentState[descriptorKey] === false;
|
|
@@ -3049,7 +3054,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
3049
3054
|
if (shouldMerge) {
|
|
3050
3055
|
if (process.env.IS_STATIC === "is_static") {
|
|
3051
3056
|
var _pseudos1, _key1;
|
|
3052
|
-
pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 =
|
|
3057
|
+
pseudos || (pseudos = {}), (_pseudos1 = pseudos)[_key1 = key5] || (_pseudos1[_key1] = {}), pseudos[key5][pkey] = _$val;
|
|
3053
3058
|
}
|
|
3054
3059
|
mergeStyle(styleState, pkey, _$val, importance, false, pseudoOriginalValues == null ? void 0 : pseudoOriginalValues[pkey]);
|
|
3055
3060
|
}
|
|
@@ -3064,15 +3069,15 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
3064
3069
|
}
|
|
3065
3070
|
if (isMedia) {
|
|
3066
3071
|
if (!val2) return;
|
|
3067
|
-
var mediaKeyShort =
|
|
3072
|
+
var mediaKeyShort = key5.slice(isMedia == "theme" ? 7 : 1);
|
|
3068
3073
|
hasMedia || (hasMedia = true);
|
|
3069
3074
|
var hasSpace = val2.space;
|
|
3070
|
-
if ((hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !isActivePlatform(
|
|
3075
|
+
if ((hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !isActivePlatform(key5)) return;
|
|
3071
3076
|
var priority = mediaStylesSeen;
|
|
3072
3077
|
mediaStylesSeen += 1;
|
|
3073
3078
|
var shouldDoClassesForThisMedia = shouldDoClasses || isWeb && isMedia === "theme";
|
|
3074
3079
|
if (shouldDoClassesForThisMedia) {
|
|
3075
|
-
var mediaStyle = getSubStyle(styleState,
|
|
3080
|
+
var mediaStyle = getSubStyle(styleState, key5, val2, false), mediaStyles = getCSSStylesAtomic(mediaStyle), _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
|
|
3076
3081
|
try {
|
|
3077
3082
|
for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
|
|
3078
3083
|
var style3 = _step12.value, property = style3[StyleObjectProperty], isSubStyle = property[0] === "$";
|
|
@@ -3092,11 +3097,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
3092
3097
|
}
|
|
3093
3098
|
}
|
|
3094
3099
|
} else {
|
|
3095
|
-
let mergeMediaStyle2 = function(
|
|
3100
|
+
let mergeMediaStyle2 = function(key6, val3, originalVal2) {
|
|
3096
3101
|
var _styleState4;
|
|
3097
3102
|
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
3098
|
-
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort,
|
|
3099
|
-
didMerge &&
|
|
3103
|
+
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key6, val3, mediaState[mediaKeyShort], importanceBump, debug, originalVal2);
|
|
3104
|
+
didMerge && key6 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
3100
3105
|
};
|
|
3101
3106
|
var mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
3102
3107
|
if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
|
|
@@ -3104,7 +3109,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
3104
3109
|
return;
|
|
3105
3110
|
}
|
|
3106
3111
|
}
|
|
3107
|
-
var mediaStyle1 = getSubStyle(styleState,
|
|
3112
|
+
var mediaStyle1 = getSubStyle(styleState, key5, val2, true), importanceBump = 0;
|
|
3108
3113
|
if (isThemeMedia) {
|
|
3109
3114
|
if (isIos && getSetting("fastSchemeChange")) {
|
|
3110
3115
|
var _styleState3;
|
|
@@ -3169,7 +3174,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
3169
3174
|
}
|
|
3170
3175
|
if (!isVariant) {
|
|
3171
3176
|
if (isStyledContextProp) return;
|
|
3172
|
-
viewProps[
|
|
3177
|
+
viewProps[key5] = val2;
|
|
3173
3178
|
}
|
|
3174
3179
|
}
|
|
3175
3180
|
}), false) ;
|
|
@@ -3215,8 +3220,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
3215
3220
|
fallbackProps
|
|
3216
3221
|
} = styleProps;
|
|
3217
3222
|
fallbackProps && (styleState.props = new Proxy(props, {
|
|
3218
|
-
get(_2,
|
|
3219
|
-
return Reflect.has(props,
|
|
3223
|
+
get(_2, key5, val2) {
|
|
3224
|
+
return Reflect.has(props, key5) ? Reflect.get(props, key5) : Reflect.get(fallbackProps, key5);
|
|
3220
3225
|
}
|
|
3221
3226
|
}));
|
|
3222
3227
|
}
|
|
@@ -5691,6 +5696,9 @@ exports.mergeIfNotShallowEqual = mergeIfNotShallowEqual;
|
|
|
5691
5696
|
exports.mergeProps = mergeProps;
|
|
5692
5697
|
exports.mergeSlotStyleProps = mergeSlotStyleProps;
|
|
5693
5698
|
exports.mutatedAutoVariables = mutatedAutoVariables;
|
|
5699
|
+
exports.nonAnimatableStyleProps = nonAnimatableStyleProps;
|
|
5700
|
+
exports.nonAnimatableWebTextProps = nonAnimatableWebTextProps;
|
|
5701
|
+
exports.nonAnimatableWebViewProps = nonAnimatableWebViewProps;
|
|
5694
5702
|
exports.normalizeColor = normalizeColor;
|
|
5695
5703
|
exports.normalizeStyle = normalizeStyle$1;
|
|
5696
5704
|
exports.normalizeValueWithProperty = normalizeValueWithProperty;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "2.0.0-rc.21",
|
|
3
|
+
"version": "2.0.0-rc.21-1772323626103",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"clean:build": "tamagui-build clean:build"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@tamagui/helpers": "2.0.0-rc.21",
|
|
83
|
-
"@tamagui/react-native-media-driver": "2.0.0-rc.21",
|
|
84
|
-
"@tamagui/react-native-use-pressable": "2.0.0-rc.21",
|
|
85
|
-
"@tamagui/use-element-layout": "2.0.0-rc.21",
|
|
86
|
-
"@tamagui/use-event": "2.0.0-rc.21",
|
|
87
|
-
"@tamagui/web": "2.0.0-rc.21"
|
|
82
|
+
"@tamagui/helpers": "2.0.0-rc.21-1772323626103",
|
|
83
|
+
"@tamagui/react-native-media-driver": "2.0.0-rc.21-1772323626103",
|
|
84
|
+
"@tamagui/react-native-use-pressable": "2.0.0-rc.21-1772323626103",
|
|
85
|
+
"@tamagui/use-element-layout": "2.0.0-rc.21-1772323626103",
|
|
86
|
+
"@tamagui/use-event": "2.0.0-rc.21-1772323626103",
|
|
87
|
+
"@tamagui/web": "2.0.0-rc.21-1772323626103"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@tamagui/build": "2.0.0-rc.21",
|
|
91
|
-
"@tamagui/native-bundle": "2.0.0-rc.21",
|
|
92
|
-
"@tamagui/react-native-web-lite": "2.0.0-rc.21",
|
|
90
|
+
"@tamagui/build": "2.0.0-rc.21-1772323626103",
|
|
91
|
+
"@tamagui/native-bundle": "2.0.0-rc.21-1772323626103",
|
|
92
|
+
"@tamagui/react-native-web-lite": "2.0.0-rc.21-1772323626103",
|
|
93
93
|
"@testing-library/react": "^16.1.0",
|
|
94
94
|
"csstype": "^3.0.10",
|
|
95
95
|
"react": ">=19",
|