@tamagui/core 1.79.19 → 1.80.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/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/native.js +18 -11
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +18 -11
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
- package/src/index.tsx +2 -2
package/dist/test.native.js
CHANGED
|
@@ -2071,11 +2071,20 @@ var require_constants_native2 = __commonJS({
|
|
|
2071
2071
|
__export2(constants_exports, {
|
|
2072
2072
|
THEME_CLASSNAME_PREFIX: () => THEME_CLASSNAME_PREFIX,
|
|
2073
2073
|
THEME_NAME_SEPARATOR: () => THEME_NAME_SEPARATOR,
|
|
2074
|
-
stackDefaultStyles: () => stackDefaultStyles
|
|
2074
|
+
stackDefaultStyles: () => stackDefaultStyles,
|
|
2075
|
+
webViewFlexCompatStyles: () => webViewFlexCompatStyles
|
|
2075
2076
|
});
|
|
2076
2077
|
module2.exports = __toCommonJS2(constants_exports);
|
|
2077
|
-
var THEME_NAME_SEPARATOR = "_", THEME_CLASSNAME_PREFIX = "t_", stackDefaultStyles = {
|
|
2078
|
-
|
|
2078
|
+
var THEME_NAME_SEPARATOR = "_", THEME_CLASSNAME_PREFIX = "t_", stackDefaultStyles = {}, webViewFlexCompatStyles = {
|
|
2079
|
+
display: "flex",
|
|
2080
|
+
alignItems: "stretch",
|
|
2081
|
+
flexDirection: "column",
|
|
2082
|
+
flexBasis: "auto",
|
|
2083
|
+
boxSizing: "border-box",
|
|
2084
|
+
position: "relative",
|
|
2085
|
+
minHeight: 0,
|
|
2086
|
+
minWidth: 0,
|
|
2087
|
+
flexShrink: 0
|
|
2079
2088
|
};
|
|
2080
2089
|
}
|
|
2081
2090
|
});
|
|
@@ -2327,7 +2336,7 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2327
2336
|
// @ts-ignore
|
|
2328
2337
|
prefixes[mediaKey]
|
|
2329
2338
|
), prefix = groupMediaKey ? `@container ${containerName}` : "@media";
|
|
2330
|
-
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: ${conf.settings.webContainerType || "inline-size"}) {${styleRule}}`);
|
|
2339
|
+
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`).replace("and screen and", "and") : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: ${conf.settings.webContainerType || "inline-size"}) {${styleRule}}`);
|
|
2331
2340
|
}
|
|
2332
2341
|
return {
|
|
2333
2342
|
property,
|
|
@@ -6114,12 +6123,9 @@ var require_View_native = __commonJS({
|
|
|
6114
6123
|
View: () => View2
|
|
6115
6124
|
});
|
|
6116
6125
|
module2.exports = __toCommonJS2(View_exports);
|
|
6117
|
-
var import_helpers = require_index_native4(), import_createComponent = require_createComponent_native(), View2 = (0, import_createComponent.createComponent)({
|
|
6126
|
+
var import_helpers = require_index_native4(), import_constants3 = require_constants_native2(), import_createComponent = require_createComponent_native(), View2 = (0, import_createComponent.createComponent)({
|
|
6118
6127
|
acceptsClassName: !0,
|
|
6119
|
-
defaultProps:
|
|
6120
|
-
display: "flex",
|
|
6121
|
-
flexDirection: "column"
|
|
6122
|
-
},
|
|
6128
|
+
defaultProps: import_constants3.stackDefaultStyles,
|
|
6123
6129
|
validStyles: import_helpers.validStyles
|
|
6124
6130
|
});
|
|
6125
6131
|
}
|
|
@@ -6429,6 +6435,7 @@ var require_index_native9 = __commonJS({
|
|
|
6429
6435
|
__reExport2(src_exports2, require_ComponentContext_native(), module2.exports);
|
|
6430
6436
|
__reExport2(src_exports2, require_createStyledContext_native(), module2.exports);
|
|
6431
6437
|
__reExport2(src_exports2, require_expandStyles_native(), module2.exports);
|
|
6438
|
+
__reExport2(src_exports2, require_createMediaStyle_native(), module2.exports);
|
|
6432
6439
|
__reExport2(src_exports2, require_expandStylesAndRemoveNullishValues_native(), module2.exports);
|
|
6433
6440
|
__reExport2(src_exports2, require_propMapper_native(), module2.exports);
|
|
6434
6441
|
__reExport2(src_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
@@ -6874,9 +6881,9 @@ var View = import_web.View, Stack = import_web.Stack, Text = import_web.Text, ba
|
|
|
6874
6881
|
onSelectionChangeShouldSetResponderCapture,
|
|
6875
6882
|
onStartShouldSetResponder,
|
|
6876
6883
|
onStartShouldSetResponderCapture
|
|
6877
|
-
}), viewProps.href
|
|
6884
|
+
}), viewProps.href && hrefAttrs) {
|
|
6878
6885
|
let { download, rel, target } = hrefAttrs;
|
|
6879
|
-
download != null && (viewProps.download = download), rel
|
|
6886
|
+
download != null && (viewProps.download = download), rel && (viewProps.rel = rel), typeof target == "string" && (viewProps.target = target.charAt(0) !== "_" ? `_${target}` : target);
|
|
6880
6887
|
}
|
|
6881
6888
|
return viewProps;
|
|
6882
6889
|
},
|