@tamagui/core 1.121.4 → 1.121.6

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 CHANGED
@@ -1247,6 +1247,7 @@ var require_concatClassName_native = __commonJS({
1247
1247
  focus: "focusStyle",
1248
1248
  press: "pressStyle",
1249
1249
  focusVisible: "focusVisibleStyle",
1250
+ focusWithin: "focusWithinStyle",
1250
1251
  disabled: "disabledStyle"
1251
1252
  };
1252
1253
  }
@@ -1821,7 +1822,8 @@ var require_validStyleProps_native = __commonJS({
1821
1822
  hoverStyle: !0,
1822
1823
  pressStyle: !0,
1823
1824
  focusStyle: !0,
1824
- disabledStyle: !0
1825
+ disabledStyle: !0,
1826
+ focusWithinStyle: !0
1825
1827
  }, validStyles = {
1826
1828
  ...validPseudoKeys,
1827
1829
  ...stylePropsView
@@ -2007,7 +2009,7 @@ var require_config_native = __commonJS({
2007
2009
  return getFont;
2008
2010
  },
2009
2011
  getSetting: function() {
2010
- return getSetting;
2012
+ return getSetting2;
2011
2013
  },
2012
2014
  getThemes: function() {
2013
2015
  return getThemes2;
@@ -2056,7 +2058,7 @@ Haven't called createTamagui yet.
2056
2058
  with the starter kits that you can call with "yarn upgrade:tamagui" to help with this.
2057
2059
 
2058
2060
  You may want to clear your node_modules as well and run a fresh install after ugprading.
2059
- ` : "\u274C Error 001", getSetting = function(key) {
2061
+ ` : "\u274C Error 001", getSetting2 = function(key) {
2060
2062
  if (process.env.NODE_ENV === "development" && !conf) throw new Error(haventCalledErrorMessage);
2061
2063
  var _conf_settings_key;
2062
2064
  return (_conf_settings_key = conf.settings[key]) !== null && _conf_settings_key !== void 0 ? _conf_settings_key : (
@@ -2734,6 +2736,11 @@ var require_pseudoDescriptors_native = __commonJS({
2734
2736
  name: "focus",
2735
2737
  priority: 3
2736
2738
  },
2739
+ focusWithinStyle: {
2740
+ name: "focus-within",
2741
+ priority: 3,
2742
+ stateKey: "focusWithin"
2743
+ },
2737
2744
  disabledStyle: {
2738
2745
  name: "disabled",
2739
2746
  priority: 4,
@@ -2744,6 +2751,7 @@ var require_pseudoDescriptors_native = __commonJS({
2744
2751
  press: 2,
2745
2752
  focus: 3,
2746
2753
  focusVisible: 3,
2754
+ focusWithin: 3,
2747
2755
  disabled: 4
2748
2756
  }, pseudoDescriptors = {
2749
2757
  ...pseudoDescriptorsBase,
@@ -4502,6 +4510,7 @@ var require_ComponentContext_native = __commonJS({
4502
4510
  inText: !1,
4503
4511
  language: null,
4504
4512
  animationDriver: null,
4513
+ setParentFocusState: null,
4505
4514
  groups: {
4506
4515
  emit: null,
4507
4516
  subscribe: null,
@@ -4566,6 +4575,7 @@ var require_defaultComponentState_native = __commonJS({
4566
4575
  pressIn: !1,
4567
4576
  focus: !1,
4568
4577
  focusVisible: !1,
4578
+ focusWithin: !1,
4569
4579
  unmounted: !0,
4570
4580
  disabled: !1
4571
4581
  }, defaultComponentStateMounted = {
@@ -4739,7 +4749,9 @@ var require_createMediaStyle_native = __commonJS({
4739
4749
  });
4740
4750
  module2.exports = __toCommonJS2(createMediaStyle_exports);
4741
4751
  var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native(), MEDIA_SEP = "_", prefixes = null, selectors = null, groupPseudoToPseudoCSSMap = {
4742
- press: "active"
4752
+ press: "active",
4753
+ focusVisible: "focus-visible",
4754
+ focusWithin: "focus-within"
4743
4755
  }, specificities = new Array(5).fill(0).map(function(_, i) {
4744
4756
  return new Array(i).fill(":root").join("");
4745
4757
  });
@@ -4751,7 +4763,7 @@ var require_createMediaStyle_native = __commonJS({
4751
4763
  ];
4752
4764
  }
4753
4765
  var createMediaStyle = function(styleObject, mediaKeyIn, mediaQueries, type, negate, priority) {
4754
- var [property, , identifier, pseudoIn, rules] = styleObject, enableMediaPropOrder = (0, import_config.getSetting)("mediaPropOrder"), isTheme = type === "theme", isPlatform = type === "platform", isGroup = type === "group", isNonWindowMedia = isTheme || isPlatform || isGroup, negKey = negate ? "0" : "", ogPrefix = identifier.slice(0, identifier.indexOf("-") + 1), id = `${ogPrefix}${MEDIA_SEP}${mediaKeyIn.replace("-", "")}${negKey}${MEDIA_SEP}`, styleRule = "", groupPriority = "", groupMediaKey, containerName, nextIdentifier = identifier.replace(ogPrefix, id), styleInner = rules.map(function(rule) {
4766
+ var [propertyIn, , identifier, pseudoIn, rules] = styleObject, property = propertyIn, enableMediaPropOrder = (0, import_config.getSetting)("mediaPropOrder"), isTheme = type === "theme", isPlatform = type === "platform", isGroup = type === "group", isNonWindowMedia = isTheme || isPlatform || isGroup, negKey = negate ? "0" : "", ogPrefix = identifier.slice(0, identifier.indexOf("-") + 1), id = `${ogPrefix}${MEDIA_SEP}${mediaKeyIn.replace("-", "")}${negKey}${MEDIA_SEP}`, styleRule = "", groupPriority = "", groupMediaKey, containerName, nextIdentifier = identifier.replace(ogPrefix, id), styleInner = rules.map(function(rule) {
4755
4767
  return rule.replace(identifier, nextIdentifier);
4756
4768
  }).join(";"), isHover = !1;
4757
4769
  if (isNonWindowMedia) {
@@ -7145,11 +7157,11 @@ var require_getSplitStyles_native = __commonJS({
7145
7157
  var _iteratorNormalCompletion12 = !0, _didIteratorError12 = !1, _iteratorError12 = void 0;
7146
7158
  try {
7147
7159
  for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = !0) {
7148
- var style3 = _step12.value, property = style3[0];
7149
- if (!(property[0] === "$" && !(0, import_isActivePlatform.isActivePlatform)(property))) {
7160
+ var style3 = _step12.value, property = style3[import_helpers.StyleObjectProperty], isSubStyle = property[0] === "$";
7161
+ if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
7150
7162
  var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
7151
7163
  process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
7152
- var fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
7164
+ var subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
7153
7165
  fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey1, out[import_helpers.StyleObjectIdentifier], !0, !0));
7154
7166
  }
7155
7167
  }
@@ -7200,15 +7212,15 @@ var require_getSplitStyles_native = __commonJS({
7200
7212
  importanceBump = priority1;
7201
7213
  }
7202
7214
  }
7203
- for (var subKey in mediaStyle1) {
7204
- if (subKey === "space") {
7215
+ for (var subKey1 in mediaStyle1) {
7216
+ if (subKey1 === "space") {
7205
7217
  space = valInit.space;
7206
7218
  continue;
7207
7219
  }
7208
- if (subKey[0] === "$") {
7209
- if (!(0, import_isActivePlatform.isActivePlatform)(subKey) || !(0, import_isActiveTheme.isActiveTheme)(subKey, themeName)) continue;
7210
- for (var subSubKey in mediaStyle1[subKey]) mergeMediaStyle2(subSubKey, mediaStyle1[subKey][subSubKey]);
7211
- } else mergeMediaStyle2(subKey, mediaStyle1[subKey]);
7220
+ if (subKey1[0] === "$") {
7221
+ if (!(0, import_isActivePlatform.isActivePlatform)(subKey1) || !(0, import_isActiveTheme.isActiveTheme)(subKey1, themeName)) continue;
7222
+ for (var subSubKey in mediaStyle1[subKey1]) mergeMediaStyle2(subSubKey, mediaStyle1[subKey1][subSubKey]);
7223
+ } else mergeMediaStyle2(subKey1, mediaStyle1[subKey1]);
7212
7224
  }
7213
7225
  }
7214
7226
  return "continue";
@@ -7257,8 +7269,14 @@ var require_getSplitStyles_native = __commonJS({
7257
7269
  if (0) var didUseKeyInit;
7258
7270
  var isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo1 = !!(isMedia || isPseudo);
7259
7271
  if (isMediaOrPseudo1 && keyInit.startsWith("$group-")) {
7260
- var name = keyInit.split("-")[1];
7261
- context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
7272
+ var parts = keyInit.split("-");
7273
+ if (
7274
+ // check if its actually a simple group selector to avoid breaking selectors
7275
+ parts.length === 2 || parts.length === 3 && import_pseudoDescriptors.pseudoPriorities[parts[parts.length - 1]]
7276
+ ) {
7277
+ var name = parts[1];
7278
+ context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
7279
+ }
7262
7280
  }
7263
7281
  var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
7264
7282
  if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
@@ -8092,11 +8110,11 @@ var require_wrapStyleTags_native = __commonJS({
8092
8110
  }
8093
8111
  });
8094
8112
 
8095
- // ../web/dist/cjs/hooks/useIsHydrated.native.js
8096
- var require_useIsHydrated_native = __commonJS({
8097
- "../web/dist/cjs/hooks/useIsHydrated.native.js"(exports2, module2) {
8113
+ // ../use-did-finish-ssr/dist/cjs/index.native.js
8114
+ var require_index_native7 = __commonJS({
8115
+ "../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
8098
8116
  "use strict";
8099
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
8117
+ var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
8100
8118
  for (var name in all) __defProp2(target, name, {
8101
8119
  get: all[name],
8102
8120
  enumerable: !0
@@ -8124,27 +8142,40 @@ var require_useIsHydrated_native = __commonJS({
8124
8142
  }
8125
8143
  }
8126
8144
  return to;
8145
+ }, __toESM2 = function(mod, isNodeMode, target) {
8146
+ return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
8147
+ // If the importer is in node compatibility mode or this is not an ESM
8148
+ // file that has been converted to a CommonJS file using a Babel-
8149
+ // compatible transform (i.e. "__esModule" has not been set), then set
8150
+ // "default" to the CommonJS "module.exports" for node compatibility.
8151
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
8152
+ value: mod,
8153
+ enumerable: !0
8154
+ }) : target,
8155
+ mod
8156
+ );
8127
8157
  }, __toCommonJS2 = function(mod) {
8128
8158
  return __copyProps2(__defProp2({}, "__esModule", {
8129
8159
  value: !0
8130
8160
  }), mod);
8131
- }, useIsHydrated_exports = {};
8132
- __export2(useIsHydrated_exports, {
8133
- useIsHydrated: function() {
8134
- return useIsHydrated;
8161
+ }, src_exports2 = {};
8162
+ __export2(src_exports2, {
8163
+ useClientValue: function() {
8164
+ return useClientValue;
8165
+ },
8166
+ useDidFinishSSR: function() {
8167
+ return useDidFinishSSR;
8135
8168
  }
8136
8169
  });
8137
- module2.exports = __toCommonJS2(useIsHydrated_exports);
8138
- var import_react3 = require("react"), nullSubscribe = function() {
8139
- return function() {
8140
- };
8141
- }, useIsHydrated = function() {
8142
- return (0, import_react3.useSyncExternalStore)(nullSubscribe, function() {
8143
- return !0;
8144
- }, function() {
8145
- return !1;
8146
- });
8147
- };
8170
+ module2.exports = __toCommonJS2(src_exports2);
8171
+ var React3 = __toESM2(require("react"));
8172
+ function useDidFinishSSR(value) {
8173
+ return value ?? !0;
8174
+ }
8175
+ function useClientValue(value) {
8176
+ var done = useDidFinishSSR();
8177
+ return done ? typeof value == "function" ? value() : value : void 0;
8178
+ }
8148
8179
  }
8149
8180
  });
8150
8181
 
@@ -8191,8 +8222,8 @@ var require_useComponentState_native = __commonJS({
8191
8222
  }
8192
8223
  });
8193
8224
  module2.exports = __toCommonJS2(useComponentState_exports);
8194
- var import_constants2 = require_index_native3(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_useIsHydrated = require_useIsHydrated_native(), useComponentState = function(props, param, staticConfig, config) {
8195
- var { animationDriver, groups } = param, _animationDriver_usePresence, isHydrated = (0, import_useIsHydrated.useIsHydrated)(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
8225
+ var import_constants2 = require_index_native3(), import_use_did_finish_ssr = require_index_native7(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
8226
+ var { animationDriver, groups } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
8196
8227
  stateRef.current || (stateRef.current = {});
8197
8228
  var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
8198
8229
  var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
@@ -8641,7 +8672,7 @@ var require_createComponent_native = __commonJS({
8641
8672
  if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = function() {
8642
8673
  return stateRef.current.isListeningToTheme;
8643
8674
  }), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
8644
- var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `${internalID} ${name}${dataIs ? ` ${dataIs}` : ""} ${type}`;
8675
+ var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `${internalID} ${name}${dataIs ? ` ${dataIs}` : ""} ${type}`;
8645
8676
  if (console.info(`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, "background: green; color: white;"), import_constants2.isServer) (0, import_log.log)({
8646
8677
  noClass,
8647
8678
  isAnimated,
@@ -8755,7 +8786,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8755
8786
  return stateRef.current.host = x;
8756
8787
  }, forwardedRef, import_setElementProps.setElementProps)), viewProps.ref = curStateRef.composedRef, process.env.NODE_ENV === "development" && !isReactNative && !isText && import_constants2.isWeb && !isHOC && import_react3.default.Children.toArray(props.children).forEach(function(item) {
8757
8788
  typeof item == "string" && item !== `
8758
- ` && console.error(`Unexpected text node: ${item}. A text node cannot be a child of a <View>.`);
8789
+ ` && console.error(`Unexpected text node: ${item}. A text node cannot be a child of a <${staticConfig.componentName || propsIn.tag || "View"}>.`, props);
8759
8790
  }), process.env.NODE_ENV === "development" && time2 && time2`events-hooks`;
8760
8791
  var { pseudoGroups, mediaGroups } = splitStyles, unPress = function() {
8761
8792
  return setStateShallow({
@@ -8812,7 +8843,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8812
8843
  ...mediaGroups
8813
8844
  ]).join("") : 0
8814
8845
  ]);
8815
- var runtimePressStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants2.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimePressStyle);
8846
+ var runtimePressStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur || componentContext.setParentFocusState), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants2.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimePressStyle);
8816
8847
  process.env.NODE_ENV === "development" && time2 && time2`events-setup`, process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)("\u{1FAA9} events()", {
8817
8848
  runtimeFocusStyle,
8818
8849
  runtimePressStyle,
@@ -8854,7 +8885,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8854
8885
  },
8855
8886
  ...attachFocus && {
8856
8887
  onFocus: function(e) {
8857
- pseudos != null && pseudos.focusVisibleStyle ? setTimeout(function() {
8888
+ componentContext.setParentFocusState && componentContext.setParentFocusState({
8889
+ focusWithin: !0
8890
+ }), pseudos != null && pseudos.focusVisibleStyle ? setTimeout(function() {
8858
8891
  setStateShallow({
8859
8892
  focus: !0,
8860
8893
  focusVisible: !!lastInteractionWasKeyboard.value
@@ -8865,7 +8898,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8865
8898
  }), onFocus == null || onFocus(e);
8866
8899
  },
8867
8900
  onBlur: function(e) {
8868
- setStateShallow({
8901
+ componentContext.setParentFocusState && componentContext.setParentFocusState({
8902
+ focusWithin: !1
8903
+ }), setStateShallow({
8869
8904
  focus: !1,
8870
8905
  focusVisible: !1
8871
8906
  }), onBlur == null || onBlur(e);
@@ -8935,9 +8970,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8935
8970
  }, [
8936
8971
  groupName
8937
8972
  ]);
8938
- if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
8973
+ if ((groupName && subGroupContext || propsIn.focusWithinStyle) && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
8939
8974
  ...componentContext,
8940
8975
  groups: subGroupContext,
8976
+ setParentFocusState: setStateShallow,
8941
8977
  children: content
8942
8978
  })), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, {
8943
8979
  themeState,
@@ -9884,28 +9920,11 @@ var require_createTamagui_native = __commonJS({
9884
9920
  ${JSON.stringify(variable, null, 2)}`);
9885
9921
  import_constants2.isWeb && ((0, import_registerCSSVariable.registerCSSVariable)(variable), declarations.push((0, import_registerCSSVariable.variableToCSS)(variable, key2 === "zIndex")));
9886
9922
  }
9887
- if (import_constants2.isWeb) {
9888
- var declarationsToRuleSet2 = function(decs) {
9889
- var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
9890
- return `:root${selector} {${sep}${[
9891
- ...decs
9892
- ].join(`;${sep}`)}${sep}}`;
9893
- }, declarationsToRuleSet = declarationsToRuleSet2;
9894
- for (var key1 in fontsParsed) {
9895
- var fontParsed = fontsParsed[key1], [name, language] = key1.includes("_") ? key1.split("_") : [
9896
- key1
9897
- ], fontVars = (0, import_insertFont.registerFontVariables)(fontParsed);
9898
- fontDeclarations[key1] = {
9899
- name: name.slice(1),
9900
- declarations: fontVars,
9901
- language
9902
- };
9903
- }
9904
- var sep = configIn.cssStyleSeparator || "";
9905
- if (cssRuleSets.push(declarationsToRuleSet2(declarations)), fontDeclarations) for (var key22 in fontDeclarations) {
9906
- var { name: name1, declarations: declarations1, language: language1 = "default" } = fontDeclarations[key22], fontSelector = `.font_${name1}`, langSelector = `:root .t_lang-${name1}-${language1} ${fontSelector}`, selectors = language1 === "default" ? ` ${fontSelector}, ${langSelector}` : langSelector, specificRuleSet = declarationsToRuleSet2(declarations1, selectors);
9907
- cssRuleSets.push(specificRuleSet);
9908
- }
9923
+ if (0) {
9924
+ var declarationsToRuleSet;
9925
+ for (var key1 in fontsParsed) var fontParsed, name, language, fontVars;
9926
+ var sep;
9927
+ if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
9909
9928
  }
9910
9929
  var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
9911
9930
  return {
@@ -9942,22 +9961,12 @@ ${JSON.stringify(variable, null, 2)}`);
9942
9961
  }
9943
9962
  };
9944
9963
  }(), shorthands = configIn.shorthands || {}, lastCSSInsertedRulesIndex = -1, getCSS = function() {
9945
- var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { separator = `
9946
- `, sinceLastCall, exclude } = opts;
9947
- if (sinceLastCall && lastCSSInsertedRulesIndex >= 0) {
9948
- var rules = (0, import_insertStyleRule.getAllRules)();
9949
- return lastCSSInsertedRulesIndex = rules.length, rules.slice(lastCSSInsertedRulesIndex).join(separator);
9950
- }
9951
- lastCSSInsertedRulesIndex = 0;
9952
- var runtimeStyles = (0, import_insertStyleRule.getAllRules)().join(separator);
9953
- if (exclude === "design-system") return runtimeStyles;
9954
- var designSystem = `._ovs-contain {overscroll-behavior:contain;}
9955
- .is_Text .is_Text {display:inline-flex;}
9956
- ._dsp_contents {display:contents;}
9957
- ${themeConfig.cssRuleSets.join(separator)}`;
9958
- return `${designSystem}
9959
- ${exclude ? "" : themeConfig.getThemeRulesSets().join(separator)}
9960
- ${runtimeStyles}`;
9964
+ var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9965
+ if (0) {
9966
+ var separator, sinceLastCall, exclude;
9967
+ if (sinceLastCall && lastCSSInsertedRulesIndex >= 0) var rules;
9968
+ var runtimeStyles, designSystem;
9969
+ } else return "";
9961
9970
  }, getNewCSS = function(opts) {
9962
9971
  return getCSS({
9963
9972
  ...opts,
@@ -10292,7 +10301,7 @@ var require_styled_native = __commonJS({
10292
10301
  var pdp = parentStaticConfig.defaultProps;
10293
10302
  for (var key2 in pdp) {
10294
10303
  var val = pdp[key2];
10295
- parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
10304
+ parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), !(key2 in defaultProps) && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
10296
10305
  }
10297
10306
  parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
10298
10307
  }
@@ -10794,76 +10803,6 @@ var require_useConfiguration_native = __commonJS({
10794
10803
  }
10795
10804
  });
10796
10805
 
10797
- // ../use-did-finish-ssr/dist/cjs/index.native.js
10798
- var require_index_native7 = __commonJS({
10799
- "../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
10800
- "use strict";
10801
- var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
10802
- for (var name in all) __defProp2(target, name, {
10803
- get: all[name],
10804
- enumerable: !0
10805
- });
10806
- }, __copyProps2 = function(to, from, except, desc) {
10807
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
10808
- if (from && typeof from == "object" || typeof from == "function") try {
10809
- for (var _loop = function() {
10810
- var key = _step.value;
10811
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
10812
- get: function() {
10813
- return from[key];
10814
- },
10815
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
10816
- });
10817
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
10818
- } catch (err) {
10819
- _didIteratorError = !0, _iteratorError = err;
10820
- } finally {
10821
- try {
10822
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
10823
- } finally {
10824
- if (_didIteratorError)
10825
- throw _iteratorError;
10826
- }
10827
- }
10828
- return to;
10829
- }, __toESM2 = function(mod, isNodeMode, target) {
10830
- return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
10831
- // If the importer is in node compatibility mode or this is not an ESM
10832
- // file that has been converted to a CommonJS file using a Babel-
10833
- // compatible transform (i.e. "__esModule" has not been set), then set
10834
- // "default" to the CommonJS "module.exports" for node compatibility.
10835
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
10836
- value: mod,
10837
- enumerable: !0
10838
- }) : target,
10839
- mod
10840
- );
10841
- }, __toCommonJS2 = function(mod) {
10842
- return __copyProps2(__defProp2({}, "__esModule", {
10843
- value: !0
10844
- }), mod);
10845
- }, src_exports2 = {};
10846
- __export2(src_exports2, {
10847
- useClientValue: function() {
10848
- return useClientValue;
10849
- },
10850
- useDidFinishSSR: function() {
10851
- return useDidFinishSSR;
10852
- }
10853
- });
10854
- module2.exports = __toCommonJS2(src_exports2);
10855
- var React3 = __toESM2(require("react"));
10856
- function useDidFinishSSR(value) {
10857
- return value ?? !0;
10858
- var cur, setCur;
10859
- }
10860
- function useClientValue(value) {
10861
- var done = useDidFinishSSR();
10862
- return done ? typeof value == "function" ? value() : value : void 0;
10863
- }
10864
- }
10865
- });
10866
-
10867
10806
  // ../web/dist/cjs/hooks/useIsTouchDevice.native.js
10868
10807
  var require_useIsTouchDevice_native = __commonJS({
10869
10808
  "../web/dist/cjs/hooks/useIsTouchDevice.native.js"(exports2, module2) {
@@ -11753,6 +11692,9 @@ var require_index_native9 = __commonJS({
11753
11692
  getMedia: function() {
11754
11693
  return import_useMedia.getMedia;
11755
11694
  },
11695
+ getSetting: function() {
11696
+ return import_config.getSetting;
11697
+ },
11756
11698
  getThemes: function() {
11757
11699
  return import_config.getThemes;
11758
11700
  },