@tamagui/web
Advanced tools
Comparing version 1.105.3 to 1.105.4
@@ -20,3 +20,3 @@ var __defProp = Object.defineProperty; | ||
module.exports = __toCommonJS(expandStyle_exports); | ||
var import_constants = require("@tamagui/constants"), import_config = require("../config"), import_webToNativeProps = require("../constants/webToNativeProps"); | ||
var import_constants = require("@tamagui/constants"), import_webToNativeProps = require("../constants/webToNativeProps"), import_config = require("../config"); | ||
const neg1Flex = [ | ||
@@ -32,3 +32,3 @@ ["flexGrow", 0], | ||
["flexShrink", 1], | ||
["flexBasis", (0, import_config.getSetting)("styleCompat") === "react-native" ? 0 : "auto"] | ||
["flexBasis", (0, import_config.getConfig)().settings.styleCompat === "react-native" ? 0 : "auto"] | ||
]; | ||
@@ -35,0 +35,0 @@ switch (key) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
module.exports = __toCommonJS(expandStyle_exports); | ||
var import_constants = require("@tamagui/constants"), import_config = require("../config"), import_webToNativeProps = require("../constants/webToNativeProps"); | ||
var import_constants = require("@tamagui/constants"), import_webToNativeProps = require("../constants/webToNativeProps"), import_config = require("../config"); | ||
function _define_property(obj, key, value) { | ||
@@ -24,0 +24,0 @@ return key in obj ? Object.defineProperty(obj, key, { |
@@ -483,3 +483,5 @@ var __defProp = Object.defineProperty; | ||
} | ||
if (!isReactNative && viewProps.tabIndex == null) { | ||
if (isReactNative) | ||
viewProps.tabIndex === 0 && (viewProps.accessible ??= !0); | ||
else if (viewProps.tabIndex == null) { | ||
const isFocusable = viewProps.focusable ?? viewProps.accessible; | ||
@@ -486,0 +488,0 @@ viewProps.focusable && delete viewProps.focusable; |
@@ -493,3 +493,6 @@ "use strict"; | ||
} | ||
if (!isReactNative && viewProps.tabIndex == null) | ||
if (isReactNative) { | ||
if (viewProps.tabIndex === 0) | ||
var _viewProps, _accessible; | ||
} else if (viewProps.tabIndex == null) | ||
var _viewProps_focusable, isFocusable, role; | ||
@@ -496,0 +499,0 @@ } |
@@ -124,3 +124,6 @@ var __defProp = Object.defineProperty; | ||
const { enabled, keys, prev = initialState } = componentState; | ||
return enabled === !1 || !keys || Object.keys(keys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
if (enabled === !1) | ||
return prev; | ||
const testKeys = keys ?? (enabled && keys) ?? null; | ||
return !testKeys || Object.keys(testKeys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
}; | ||
@@ -127,0 +130,0 @@ let state; |
@@ -210,3 +210,3 @@ "use strict"; | ||
return prev; | ||
var hasntUpdated = !keys || Object.keys(keys).every(function(key) { | ||
var _ref, testKeys = (_ref = (keys != null || enabled) && keys) !== null && _ref !== void 0 ? _ref : null, hasntUpdated = !testKeys || Object.keys(testKeys).every(function(key) { | ||
return mediaState[key] === prev[key]; | ||
@@ -213,0 +213,0 @@ }); |
import { isWeb } from "@tamagui/constants"; | ||
import { getSetting } from "../config"; | ||
import { | ||
@@ -7,2 +6,3 @@ webToNativeDynamicExpansion, | ||
} from "../constants/webToNativeProps"; | ||
import { getConfig } from "../config"; | ||
const neg1Flex = [ | ||
@@ -18,3 +18,3 @@ ["flexGrow", 0], | ||
["flexShrink", 1], | ||
["flexBasis", getSetting("styleCompat") === "react-native" ? 0 : "auto"] | ||
["flexBasis", getConfig().settings.styleCompat === "react-native" ? 0 : "auto"] | ||
]; | ||
@@ -21,0 +21,0 @@ switch (key) { |
import { isAndroid, isWeb } from "@tamagui/constants"; | ||
import { webToNativeDynamicExpansion, webToNativeExpansion } from "../constants/webToNativeProps"; | ||
import "../config"; | ||
import { webToNativeDynamicExpansion, webToNativeExpansion } from "../constants/webToNativeProps"; | ||
function _define_property(obj, key, value) { | ||
@@ -5,0 +5,0 @@ return key in obj ? Object.defineProperty(obj, key, { |
@@ -510,3 +510,5 @@ import { | ||
} | ||
if (!isReactNative && viewProps.tabIndex == null) { | ||
if (isReactNative) | ||
viewProps.tabIndex === 0 && (viewProps.accessible ??= !0); | ||
else if (viewProps.tabIndex == null) { | ||
const isFocusable = viewProps.focusable ?? viewProps.accessible; | ||
@@ -513,0 +515,0 @@ viewProps.focusable && delete viewProps.focusable; |
@@ -488,3 +488,6 @@ import { currentPlatform, isAndroid, isClient, isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
} | ||
if (!isReactNative && viewProps.tabIndex == null) | ||
if (isReactNative) { | ||
if (viewProps.tabIndex === 0) | ||
var _viewProps, _accessible; | ||
} else if (viewProps.tabIndex == null) | ||
var _viewProps_focusable, isFocusable, role; | ||
@@ -491,0 +494,0 @@ } |
@@ -95,3 +95,6 @@ import { isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
const { enabled, keys, prev = initialState } = componentState; | ||
return enabled === !1 || !keys || Object.keys(keys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
if (enabled === !1) | ||
return prev; | ||
const testKeys = keys ?? (enabled && keys) ?? null; | ||
return !testKeys || Object.keys(testKeys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
}; | ||
@@ -98,0 +101,0 @@ let state; |
@@ -180,3 +180,3 @@ import { isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
return prev; | ||
var hasntUpdated = !keys || Object.keys(keys).every(function(key) { | ||
var _ref, testKeys = (_ref = (keys != null || enabled) && keys) !== null && _ref !== void 0 ? _ref : null, hasntUpdated = !testKeys || Object.keys(testKeys).every(function(key) { | ||
return mediaState[key] === prev[key]; | ||
@@ -183,0 +183,0 @@ }); |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.105.3", | ||
"version": "1.105.4", | ||
"source": "src/index.ts", | ||
@@ -30,14 +30,14 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.105.3", | ||
"@tamagui/constants": "1.105.3", | ||
"@tamagui/helpers": "1.105.3", | ||
"@tamagui/normalize-css-color": "1.105.3", | ||
"@tamagui/timer": "1.105.3", | ||
"@tamagui/types": "1.105.3", | ||
"@tamagui/use-did-finish-ssr": "1.105.3", | ||
"@tamagui/use-event": "1.105.3", | ||
"@tamagui/use-force-update": "1.105.3" | ||
"@tamagui/compose-refs": "1.105.4", | ||
"@tamagui/constants": "1.105.4", | ||
"@tamagui/helpers": "1.105.4", | ||
"@tamagui/normalize-css-color": "1.105.4", | ||
"@tamagui/timer": "1.105.4", | ||
"@tamagui/types": "1.105.4", | ||
"@tamagui/use-did-finish-ssr": "1.105.4", | ||
"@tamagui/use-event": "1.105.4", | ||
"@tamagui/use-force-update": "1.105.4" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.105.3", | ||
"@tamagui/build": "1.105.4", | ||
"@testing-library/react": "^14.0.0", | ||
@@ -44,0 +44,0 @@ "csstype": "^3.0.10", |
@@ -8,3 +8,3 @@ /** | ||
import { getSetting } from '../config' | ||
import type { PropMappedValue } from '../types' | ||
import { | ||
@@ -14,3 +14,3 @@ webToNativeDynamicExpansion, | ||
} from '../constants/webToNativeProps' | ||
import type { PropMappedValue } from '../types' | ||
import { getConfig } from '../config' | ||
@@ -32,3 +32,3 @@ const neg1Flex = [ | ||
['flexShrink', 1], | ||
['flexBasis', getSetting('styleCompat') === 'react-native' ? 0 : 'auto'], | ||
['flexBasis', getConfig().settings.styleCompat === 'react-native' ? 0 : 'auto'], | ||
] | ||
@@ -35,0 +35,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2951182
47041
+ Added@tamagui/compose-refs@1.105.4(transitive)
+ Added@tamagui/constants@1.105.4(transitive)
+ Added@tamagui/helpers@1.105.4(transitive)
+ Added@tamagui/normalize-css-color@1.105.4(transitive)
+ Added@tamagui/simple-hash@1.105.4(transitive)
+ Added@tamagui/timer@1.105.4(transitive)
+ Added@tamagui/types@1.105.4(transitive)
+ Added@tamagui/use-did-finish-ssr@1.105.4(transitive)
+ Added@tamagui/use-event@1.105.4(transitive)
+ Added@tamagui/use-force-update@1.105.4(transitive)
- Removed@tamagui/compose-refs@1.105.3(transitive)
- Removed@tamagui/constants@1.105.3(transitive)
- Removed@tamagui/helpers@1.105.3(transitive)
- Removed@tamagui/normalize-css-color@1.105.3(transitive)
- Removed@tamagui/simple-hash@1.105.3(transitive)
- Removed@tamagui/timer@1.105.3(transitive)
- Removed@tamagui/types@1.105.3(transitive)
- Removed@tamagui/use-did-finish-ssr@1.105.3(transitive)
- Removed@tamagui/use-event@1.105.3(transitive)
- Removed@tamagui/use-force-update@1.105.3(transitive)
Updated@tamagui/constants@1.105.4
Updated@tamagui/helpers@1.105.4
Updated@tamagui/timer@1.105.4
Updated@tamagui/types@1.105.4
Updated@tamagui/use-event@1.105.4