tamagui 1.76.0 → 1.77.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 +76 -40
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +45 -10
- package/dist/test.native.js.map +3 -3
- package/package.json +57 -52
- package/types/views/Input.d.ts +2 -2
package/dist/test.native.js
CHANGED
|
@@ -1671,7 +1671,7 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
1671
1671
|
// @ts-ignore
|
|
1672
1672
|
prefixes[mediaKey]
|
|
1673
1673
|
), prefix = groupMediaKey ? `@container ${containerName}` : "@media";
|
|
1674
|
-
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: inline-size) {${styleRule}}`);
|
|
1674
|
+
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}}`);
|
|
1675
1675
|
}
|
|
1676
1676
|
return {
|
|
1677
1677
|
property,
|
|
@@ -2357,6 +2357,29 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
2357
2357
|
}
|
|
2358
2358
|
});
|
|
2359
2359
|
|
|
2360
|
+
// ../web/dist/cjs/helpers/log.native.js
|
|
2361
|
+
var require_log_native = __commonJS({
|
|
2362
|
+
"../web/dist/cjs/helpers/log.native.js"(exports, module2) {
|
|
2363
|
+
"use strict";
|
|
2364
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2365
|
+
for (var name in all)
|
|
2366
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2367
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2368
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2369
|
+
for (let key of __getOwnPropNames2(from))
|
|
2370
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2371
|
+
return to;
|
|
2372
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
2373
|
+
__export2(log_exports, {
|
|
2374
|
+
log: () => log
|
|
2375
|
+
});
|
|
2376
|
+
module2.exports = __toCommonJS2(log_exports);
|
|
2377
|
+
function log(...args) {
|
|
2378
|
+
return console.log(...args);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
});
|
|
2382
|
+
|
|
2360
2383
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
2361
2384
|
var require_expandStyle_native = __commonJS({
|
|
2362
2385
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
|
|
@@ -2760,7 +2783,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
2760
2783
|
useSplitStyles: () => useSplitStyles
|
|
2761
2784
|
});
|
|
2762
2785
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
2763
|
-
var import_constants = require_index_native2(), import_helpers = require_index_native4(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), fontFamilyKey = "fontFamily", IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-", getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) => {
|
|
2786
|
+
var import_constants = require_index_native2(), import_helpers = require_index_native4(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), fontFamilyKey = "fontFamily", IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-", getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) => {
|
|
2764
2787
|
var _a, _b, _c, _e, _f, _g;
|
|
2765
2788
|
conf = conf || (0, import_config.getConfig)(), import_constants.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
2766
2789
|
let { shorthands } = conf, {
|
|
@@ -3880,7 +3903,7 @@ var require_createComponent_native = __commonJS({
|
|
|
3880
3903
|
spacedChildren: () => spacedChildren2
|
|
3881
3904
|
});
|
|
3882
3905
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
3883
|
-
var import_compose_refs = require_index_native5(), import_constants = require_index_native2(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react2 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_mergeProps = require_mergeProps_native(), import_proxyThemeVariables = require_proxyThemeVariables_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_jsx_runtime6 = require("react/jsx-runtime"), tamaguiConfig, AnimatedText, AnimatedView, initialTheme, mouseUps = /* @__PURE__ */ new Set();
|
|
3906
|
+
var import_compose_refs = require_index_native5(), import_constants = require_index_native2(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react2 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_proxyThemeVariables = require_proxyThemeVariables_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_jsx_runtime6 = require("react/jsx-runtime"), tamaguiConfig, AnimatedText, AnimatedView, initialTheme, mouseUps = /* @__PURE__ */ new Set();
|
|
3884
3907
|
if (typeof document < "u") {
|
|
3885
3908
|
let cancelTouches = () => {
|
|
3886
3909
|
mouseUps.forEach((x) => x()), mouseUps.clear();
|
|
@@ -4843,12 +4866,15 @@ ${runtimeStyles}`;
|
|
|
4843
4866
|
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), (defaultFontName == null ? void 0 : defaultFontName[0]) === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
4844
4867
|
let defaultFont = `$${defaultFontName}`, config = {
|
|
4845
4868
|
fonts: {},
|
|
4846
|
-
settings: {},
|
|
4847
4869
|
onlyAllowShorthands: !1,
|
|
4848
4870
|
fontLanguages: [],
|
|
4849
4871
|
animations: {},
|
|
4850
4872
|
media: {},
|
|
4851
4873
|
...configIn,
|
|
4874
|
+
settings: {
|
|
4875
|
+
webContainerType: "size",
|
|
4876
|
+
...configIn.settings
|
|
4877
|
+
},
|
|
4852
4878
|
tokens,
|
|
4853
4879
|
// vite made this into a function if it wasn't set
|
|
4854
4880
|
shorthands,
|
|
@@ -14817,7 +14843,7 @@ var require_Popover_native = __commonJS({
|
|
|
14817
14843
|
usePopoverContext: () => usePopoverContext
|
|
14818
14844
|
});
|
|
14819
14845
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
14820
|
-
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core13 = require_index_native15(), import_floating = require_index_native53(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native12(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core13.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
|
|
14846
|
+
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core13 = require_index_native15(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native12(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core13.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
|
|
14821
14847
|
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
14822
14848
|
return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
14823
14849
|
import_popper.PopperAnchor,
|
|
@@ -14932,7 +14958,6 @@ var require_Popover_native = __commonJS({
|
|
|
14932
14958
|
}
|
|
14933
14959
|
)), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
|
|
14934
14960
|
}
|
|
14935
|
-
let freeze = !!(isFullyHidden && freezeContentsWhenHidden);
|
|
14936
14961
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
14937
14962
|
import_animate.Animate,
|
|
14938
14963
|
{
|
|
@@ -14959,7 +14984,17 @@ var require_Popover_native = __commonJS({
|
|
|
14959
14984
|
style: {
|
|
14960
14985
|
display: "contents"
|
|
14961
14986
|
},
|
|
14962
|
-
children:
|
|
14987
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
14988
|
+
import_focus_scope.FocusScope,
|
|
14989
|
+
{
|
|
14990
|
+
loop: !0,
|
|
14991
|
+
enabled: disableFocusScope ? !1 : open,
|
|
14992
|
+
trapped: trapFocus,
|
|
14993
|
+
onMountAutoFocus: onOpenAutoFocus,
|
|
14994
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
14995
|
+
children: contents
|
|
14996
|
+
}
|
|
14997
|
+
)
|
|
14963
14998
|
}
|
|
14964
14999
|
)
|
|
14965
15000
|
},
|
|
@@ -14981,9 +15016,9 @@ var require_Popover_native = __commonJS({
|
|
|
14981
15016
|
)
|
|
14982
15017
|
}
|
|
14983
15018
|
);
|
|
14984
|
-
}), PopoverArrow =
|
|
14985
|
-
let { __scopePopover, ...rest } = props;
|
|
14986
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15019
|
+
}), PopoverArrow = import_popper.PopperArrow.styleable(function(props, forwardedRef) {
|
|
15020
|
+
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
15021
|
+
return useSheetBreakpointActive(context.sheetBreakpoint) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
14987
15022
|
import_popper.PopperArrow,
|
|
14988
15023
|
{
|
|
14989
15024
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|