@tamagui/core 1.74.13 → 1.74.14

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.
@@ -1758,7 +1758,19 @@ var require_useMedia_native = __commonJS({
1758
1758
  useMediaListeners: () => useMediaListeners
1759
1759
  });
1760
1760
  module2.exports = __toCommonJS2(useMedia_exports);
1761
- var import_constants2 = require_index_native2(), import_react = require("react"), import_config = require_config_native(), import_createProxy = require_createProxy_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDisableSSR = require_useDisableSSR_native(), mediaState2 = {}, mediaQueryConfig2 = {}, getMedia2 = () => mediaState2, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = (key) => mediaKeys.has(key) || key[0] === "$" && (key.startsWith("$platform-") || key.startsWith("$theme-") || key.startsWith("$group-")), initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = (key) => (0, import_config.getConfig)().settings.mediaPropOrder ? defaultMediaImportance : mediaKeysOrdered.indexOf(key) + 100, dispose = /* @__PURE__ */ new Set(), mediaVersion = 0, configureMedia2 = (config) => {
1761
+ var import_constants2 = require_index_native2(), import_react = require("react"), import_config = require_config_native(), import_createProxy = require_createProxy_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDisableSSR = require_useDisableSSR_native(), mediaState2 = {}, mediaQueryConfig2 = {}, getMedia2 = () => mediaState2, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = (key) => {
1762
+ if (mediaKeys.has(key))
1763
+ return !0;
1764
+ if (key[0] === "$") {
1765
+ if (key.startsWith("$platform-"))
1766
+ return "platform";
1767
+ if (key.startsWith("$theme-"))
1768
+ return "theme";
1769
+ if (key.startsWith("$group-"))
1770
+ return "group";
1771
+ }
1772
+ return !1;
1773
+ }, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = (key) => (0, import_config.getConfig)().settings.mediaPropOrder ? defaultMediaImportance : mediaKeysOrdered.indexOf(key) + 100, dispose = /* @__PURE__ */ new Set(), mediaVersion = 0, configureMedia2 = (config) => {
1762
1774
  let { media, mediaQueryDefaultActive } = config;
1763
1775
  if (media) {
1764
1776
  mediaVersion++;
@@ -2237,11 +2249,11 @@ var require_createMediaStyle_native = __commonJS({
2237
2249
  module2.exports = __toCommonJS2(createMediaStyle_exports);
2238
2250
  var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native(), MEDIA_SEP = "_", prefixes = null, selectors = null, groupPseudoToPseudoCSSMap = {
2239
2251
  press: "active"
2240
- }, createMediaStyle = (styleObject, mediaKeyIn, mediaQueries, negate, priority) => {
2241
- let { property, identifier, rules } = styleObject, conf = (0, import_config.getConfig)(), enableMediaPropOrder = conf.settings.mediaPropOrder, isThemeMedia = mediaKeyIn.startsWith("theme-"), isPlatformMedia = !isThemeMedia && mediaKeyIn.startsWith("platform-"), isGroup = !isThemeMedia && !isPlatformMedia && mediaKeyIn.startsWith("group-"), isNonWindowMedia = isThemeMedia || isPlatformMedia || isGroup, negKey = negate ? "0" : "", ogPrefix = identifier.slice(0, identifier.indexOf("-") + 1), id = `${ogPrefix}${MEDIA_SEP}${mediaKeyIn.replace("-", "")}${negKey}${MEDIA_SEP}`, styleRule = "", groupMediaKey, containerName, nextIdentifier = identifier.replace(ogPrefix, id), styleInner = rules.map((rule) => rule.replace(identifier, nextIdentifier)).join(";");
2252
+ }, createMediaStyle = (styleObject, mediaKeyIn, mediaQueries, type, negate, priority) => {
2253
+ let { property, identifier, rules } = styleObject, conf = (0, import_config.getConfig)(), enableMediaPropOrder = conf.settings.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 = "", groupMediaKey, containerName, nextIdentifier = identifier.replace(ogPrefix, id), styleInner = rules.map((rule) => rule.replace(identifier, nextIdentifier)).join(";");
2242
2254
  if (isNonWindowMedia) {
2243
2255
  let precedenceImportancePrefix = new Array((priority || 0) + (isGroup ? 1 : 0)).fill(":root").join("");
2244
- if (isThemeMedia || isGroup) {
2256
+ if (isTheme || isGroup) {
2245
2257
  let groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyIn), mediaName = groupInfo == null ? void 0 : groupInfo.name;
2246
2258
  groupMediaKey = groupInfo == null ? void 0 : groupInfo.media, isGroup && (containerName = mediaName);
2247
2259
  let name = (isGroup ? "group_" : "") + mediaName, selectorStart = styleInner.indexOf(":root"), selectorEnd = styleInner.lastIndexOf("{"), selector = styleInner.slice(selectorStart, selectorEnd), precedenceSpace = conf.themeClassNameOnRoot ? "" : " ", pseudoSelectorName = groupInfo.pseudo ? groupPseudoToPseudoCSSMap[groupInfo.pseudo] || groupInfo.pseudo : void 0, pseudoSelector = pseudoSelectorName ? `:${pseudoSelectorName}` : "", presedencePrefix = `:root${precedenceImportancePrefix}${precedenceSpace}`, mediaSelector = `.t_${name}${pseudoSelector}`, nextSelector = `${presedencePrefix}${mediaSelector} ${selector.replace(
@@ -3414,7 +3426,7 @@ var require_getSplitStyles_native = __commonJS({
3414
3426
  case "accessibilityRequired":
3415
3427
  default:
3416
3428
  }
3417
- let isValidStyleKeyInit = keyInit in validStyleProps, 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), isMediaOrPseudo = isMedia || isPseudo, isStyleProp = isMediaOrPseudo || isVariant && !styleProps.noExpand || isValidStyleKeyInit || isShorthand;
3429
+ let isValidStyleKeyInit = keyInit in validStyleProps, 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), isMediaOrPseudo = !!(isMedia || isPseudo), isStyleProp = isMediaOrPseudo || isVariant && !styleProps.noExpand || isValidStyleKeyInit || isShorthand;
3418
3430
  if (isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))
3419
3431
  continue;
3420
3432
  let shouldPassProp = !isStyleProp || // is in parent variants
@@ -3433,7 +3445,7 @@ var require_getSplitStyles_native = __commonJS({
3433
3445
  if (expanded) {
3434
3446
  for (let [key, val] of expanded)
3435
3447
  if (!(val == null || key in usedKeys)) {
3436
- if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo = isMedia || isPseudo, isVariant = variants && key in variants, (inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) && (viewProps[key] = props[key] ?? val), styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || ((_b = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _b[keyInit]))) {
3448
+ if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key in variants, (inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) && (viewProps[key] = props[key] ?? val), styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || ((_b = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _b[keyInit]))) {
3437
3449
  passDownProp(viewProps, key, val, isMediaOrPseudo);
3438
3450
  continue;
3439
3451
  }
@@ -3482,8 +3494,7 @@ var require_getSplitStyles_native = __commonJS({
3482
3494
  } else if (isMedia) {
3483
3495
  if (!val)
3484
3496
  continue;
3485
- let isPlatformMedia = key.startsWith("$platform-");
3486
- if (isPlatformMedia) {
3497
+ if (isMedia === "platform") {
3487
3498
  let platform = key.slice(10);
3488
3499
  if (
3489
3500
  // supports web, ios, android
@@ -3517,14 +3528,15 @@ var require_getSplitStyles_native = __commonJS({
3517
3528
  style2,
3518
3529
  mediaKeyShort,
3519
3530
  import_useMedia.mediaQueryConfig,
3531
+ isMedia,
3520
3532
  !1,
3521
3533
  priority
3522
3534
  );
3523
3535
  `${style2.property}${PROP_SPLIT}${mediaKeyShort}` in usedKeys || out.identifier;
3524
3536
  }
3525
3537
  } else {
3526
- let isThemeMedia = !isPlatformMedia && mediaKeyShort.startsWith("theme-"), isGroupMedia = !isPlatformMedia && !isThemeMedia && mediaKeyShort.startsWith("group-");
3527
- if (!isThemeMedia && !isPlatformMedia && !isGroupMedia && !mediaState2[mediaKeyShort])
3538
+ let isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group";
3539
+ if (!isThemeMedia && isMedia !== "platform" && !isGroupMedia && !mediaState2[mediaKeyShort])
3528
3540
  continue;
3529
3541
  let importanceBump = 0;
3530
3542
  if (isThemeMedia) {
@@ -4230,6 +4242,7 @@ var require_Theme_native = __commonJS({
4230
4242
  )), __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), Theme_exports = {};
4231
4243
  __export2(Theme_exports, {
4232
4244
  Theme: () => Theme,
4245
+ getThemeCNStyle: () => getThemeCNStyle,
4233
4246
  useThemedChildren: () => useThemedChildren,
4234
4247
  wrapThemeElements: () => wrapThemeElements
4235
4248
  });
@@ -4252,7 +4265,7 @@ var require_Theme_native = __commonJS({
4252
4265
  return useThemedChildren(themeState, children, props, isRoot);
4253
4266
  });
4254
4267
  Theme.avoidForwardRef = !0;
4255
- function useThemedChildren(themeState, children, props, isRoot = !1) {
4268
+ function useThemedChildren(themeState, children, props, isRoot = !1, avoidWrap = !1) {
4256
4269
  let { themeManager, isNewTheme } = themeState, { shallow, forceClassName } = props, hasEverThemed = (0, import_react.useRef)(!1);
4257
4270
  if (isNewTheme && (hasEverThemed.current = !0), !(isNewTheme || props.inverse || hasEverThemed.current || forceClassName || isRoot))
4258
4271
  return children;
@@ -4263,32 +4276,37 @@ var require_Theme_native = __commonJS({
4263
4276
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, { name: themeManager.state.parentName, children: child.props.children })
4264
4277
  ) : child));
4265
4278
  let elementsWithContext = themeManager ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerContext.Provider, { value: themeManager, children: next }) : next;
4266
- return forceClassName === !1 ? elementsWithContext : import_constants2.isWeb ? wrapThemeElements({
4279
+ return forceClassName === !1 ? elementsWithContext : import_constants2.isWeb && !avoidWrap ? wrapThemeElements({
4267
4280
  children: elementsWithContext,
4268
4281
  themeState,
4269
4282
  forceClassName,
4270
4283
  isRoot
4271
4284
  }) : elementsWithContext;
4272
4285
  }
4286
+ function getThemeCNStyle(themeState, isRoot = !1) {
4287
+ var _a, _b;
4288
+ if (!themeState.isNewTheme)
4289
+ return;
4290
+ let themeColor = (_a = themeState.state) != null && _a.theme && themeState.isNewTheme ? (0, import_createVariable.variableToString)(themeState.state.theme.color) : "", style = themeColor ? {
4291
+ color: themeColor
4292
+ } : void 0, className = ((_b = themeState.state) == null ? void 0 : _b.className) || "";
4293
+ return isRoot && (className = className.replace("t_sub_theme", "")), { style, className };
4294
+ }
4273
4295
  function wrapThemeElements({
4274
4296
  children,
4275
4297
  themeState,
4276
4298
  forceClassName,
4277
4299
  isRoot
4278
4300
  }) {
4279
- var _a, _b, _c, _d;
4301
+ var _a, _b;
4280
4302
  if (isRoot && forceClassName === !1)
4281
4303
  return children;
4282
4304
  let inverse = (_a = themeState.state) == null ? void 0 : _a.inverse;
4283
4305
  if (!themeState.isNewTheme && !inverse && !forceClassName)
4284
4306
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "_dsp_contents is_Theme", children });
4285
- let themeColor = (_b = themeState.state) != null && _b.theme && themeState.isNewTheme ? (0, import_createVariable.variableToString)(themeState.state.theme.color) : "", colorStyle = themeColor ? {
4286
- color: themeColor
4287
- } : void 0, className = ((_c = themeState.state) == null ? void 0 : _c.className) || "";
4288
- isRoot && (className = className.replace("t_sub_theme", ""));
4289
- let themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${className} _dsp_contents is_Theme`, style: colorStyle, children });
4307
+ let { className, style } = getThemeCNStyle(themeState, isRoot), themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${className} _dsp_contents is_Theme`, style, children });
4290
4308
  if (inverse != null || forceClassName) {
4291
- let name = ((_d = themeState.state) == null ? void 0 : _d.name) || "";
4309
+ let name = ((_b = themeState.state) == null ? void 0 : _b.name) || "";
4292
4310
  themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
4293
4311
  "span",
4294
4312
  {
@@ -4306,7 +4324,7 @@ var require_Theme_native = __commonJS({
4306
4324
  var require_themeable_native = __commonJS({
4307
4325
  "../web/dist/cjs/helpers/themeable.native.js"(exports, module2) {
4308
4326
  "use strict";
4309
- var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
4327
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
4310
4328
  for (var name in all)
4311
4329
  __defProp2(target, name, { get: all[name], enumerable: !0 });
4312
4330
  }, __copyProps2 = (to, from, except, desc) => {
@@ -4314,26 +4332,15 @@ var require_themeable_native = __commonJS({
4314
4332
  for (let key of __getOwnPropNames2(from))
4315
4333
  !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
4316
4334
  return to;
4317
- }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
4318
- // If the importer is in node compatibility mode or this is not an ESM
4319
- // file that has been converted to a CommonJS file using a Babel-
4320
- // compatible transform (i.e. "__esModule" has not been set), then set
4321
- // "default" to the CommonJS "module.exports" for node compatibility.
4322
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: !0 }) : target,
4323
- mod
4324
- )), __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), themeable_exports = {};
4335
+ }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), themeable_exports = {};
4325
4336
  __export2(themeable_exports, {
4326
4337
  themeable: () => themeable
4327
4338
  });
4328
4339
  module2.exports = __toCommonJS2(themeable_exports);
4329
- var import_react = __toESM2(require("react")), import_Theme = require_Theme_native(), import_jsx_runtime = require("react/jsx-runtime");
4330
- function themeable(component, staticConfig) {
4340
+ var import_react = require("react"), import_Theme = require_Theme_native(), import_jsx_runtime = require("react/jsx-runtime");
4341
+ function themeable(Component, staticConfig) {
4331
4342
  let withTheme = (0, import_react.forwardRef)(function(props, ref) {
4332
- let { themeInverse, theme, componentName, themeReset, ...rest } = props, element = import_react.default.createElement(component, {
4333
- ...rest,
4334
- ref,
4335
- "data-disable-theme": !0
4336
- });
4343
+ let { themeInverse, theme, componentName, themeReset, ...rest } = props, element = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref, ...rest, "data-disable-theme": !0 });
4337
4344
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
4338
4345
  import_Theme.Theme,
4339
4346
  {
@@ -4347,7 +4354,7 @@ var require_themeable_native = __commonJS({
4347
4354
  }
4348
4355
  );
4349
4356
  });
4350
- return withTheme.displayName = `Themed(${(component == null ? void 0 : component.displayName) || (component == null ? void 0 : component.name) || "Anonymous"})`, withTheme;
4357
+ return withTheme.displayName = `Themed(${(Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "Anonymous"})`, withTheme;
4351
4358
  }
4352
4359
  }
4353
4360
  });
@@ -4623,6 +4630,8 @@ var require_createComponent_native = __commonJS({
4623
4630
  onMouseDown,
4624
4631
  onMouseEnter,
4625
4632
  onMouseLeave,
4633
+ onFocus,
4634
+ onBlur,
4626
4635
  separator,
4627
4636
  // ignore from here on out
4628
4637
  forceStyle: _forceStyle,
@@ -4695,7 +4704,7 @@ var require_createComponent_native = __commonJS({
4695
4704
  fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
4696
4705
  let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = avoidAnimationStyle ? splitStyles.style : animationStyles || splitStyles.style, className;
4697
4706
  viewProps.style = style;
4698
- let runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants2.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), handlesPressEvents = !(import_constants2.isWeb || asChild), events = !!(attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle) && !isDisabled && !props.asChild ? {
4707
+ let runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants2.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), handlesPressEvents = !(import_constants2.isWeb || asChild), events = !!(attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle) && !isDisabled && !props.asChild ? {
4699
4708
  onPressOut: attachPress ? (e) => {
4700
4709
  unPress(), onPressOut == null || onPressOut(e), onMouseUp == null || onMouseUp(e);
4701
4710
  } : void 0,
@@ -4718,9 +4727,11 @@ var require_createComponent_native = __commonJS({
4718
4727
  onPress: attachPress ? (e) => {
4719
4728
  unPress(), import_constants2.isWeb && (onClick == null || onClick(e)), onPress == null || onPress(e);
4720
4729
  } : void 0,
4721
- onLongPress: attachPress && onLongPress ? (e) => {
4722
- unPress(), onLongPress == null || onLongPress(e);
4723
- } : void 0
4730
+ ...attachPress && onLongPress && {
4731
+ onLongPress: (e) => {
4732
+ unPress(), onLongPress == null || onLongPress(e);
4733
+ }
4734
+ }
4724
4735
  } : null;
4725
4736
  events && !asChild && Object.assign(events, {
4726
4737
  cancelable: !viewProps.rejectResponderTermination,
@@ -4760,7 +4771,7 @@ var require_createComponent_native = __commonJS({
4760
4771
  }
4761
4772
  };
4762
4773
  }, [groupName]);
4763
- if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { groups: subGroupContext, children: content })), content = disableThemeProp ? content : (0, import_Theme.useThemedChildren)(themeState, content, themeStateProps), staticConfig.context) {
4774
+ if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { groups: subGroupContext, children: content })), content = disableThemeProp ? content : (0, import_Theme.useThemedChildren)(themeState, content, themeStateProps, !1), staticConfig.context) {
4764
4775
  let contextProps = staticConfig.context.props;
4765
4776
  for (let key in contextProps)
4766
4777
  (key in style || key in viewProps) && (overriddenContextProps ||= {}, overriddenContextProps[key] = style[key] ?? viewProps[key]);
@@ -4790,12 +4801,12 @@ var require_createComponent_native = __commonJS({
4790
4801
  function extractable(Component2, extended) {
4791
4802
  return Component2.staticConfig = extendStyledConfig(extended), Component2.styleable = styleable, Component2;
4792
4803
  }
4793
- function styleable(Component2, extended) {
4804
+ function styleable(Component2, options) {
4794
4805
  var _a2;
4795
4806
  let ComponentForwardedRef = ((_a2 = Component2.render) == null ? void 0 : _a2.length) === 2 ? Component2 : (
4796
4807
  // memo because theme changes otherwise would always re-render
4797
4808
  (0, import_react.memo)((0, import_react.forwardRef)(Component2))
4798
- ), extendedConfig = extendStyledConfig(extended), out = (0, import_themeable.themeable)(ComponentForwardedRef, extendedConfig);
4809
+ ), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig), out = options != null && options.disableTheme ? ComponentForwardedRef : (0, import_themeable.themeable)(ComponentForwardedRef, extendedConfig);
4799
4810
  return out.staticConfig = extendedConfig, out.styleable = styleable, out;
4800
4811
  }
4801
4812
  return res.extractable = extractable, res.styleable = styleable, res;
@@ -5932,6 +5943,7 @@ var require_useProps_native = __commonJS({
5932
5943
  mediaState: media,
5933
5944
  noSkip: !0,
5934
5945
  noClassNames: !0,
5946
+ resolveValues: "auto",
5935
5947
  ...opts
5936
5948
  },
5937
5949
  null,