tamagui 1.75.6 → 1.75.7

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.
@@ -1682,65 +1682,6 @@ var require_createMediaStyle_native = __commonJS({
1682
1682
  }
1683
1683
  });
1684
1684
 
1685
- // ../web/dist/cjs/helpers/expandStyle.native.js
1686
- var require_expandStyle_native = __commonJS({
1687
- "../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
1688
- "use strict";
1689
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all2) => {
1690
- for (var name in all2)
1691
- __defProp2(target, name, { get: all2[name], enumerable: !0 });
1692
- }, __copyProps2 = (to, from, except, desc) => {
1693
- if (from && typeof from == "object" || typeof from == "function")
1694
- for (let key of __getOwnPropNames2(from))
1695
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1696
- return to;
1697
- }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), expandStyle_exports = {};
1698
- __export2(expandStyle_exports, {
1699
- expandStyle: () => expandStyle
1700
- });
1701
- module2.exports = __toCommonJS2(expandStyle_exports);
1702
- var import_constants = require_index_native2();
1703
- function expandStyle(key, value) {
1704
- if (!1)
1705
- switch (key) {
1706
- case "textAlignVertical":
1707
- case "writingDirection":
1708
- }
1709
- if (import_constants.isAndroid && key === "elevationAndroid")
1710
- return [["elevation", value]];
1711
- if (key in EXPANSIONS)
1712
- return EXPANSIONS[key].map((key2) => [key2, value]);
1713
- }
1714
- var all = ["Top", "Right", "Bottom", "Left"], horiz = ["Right", "Left"], vert = ["Top", "Bottom"], xy = ["X", "Y"], EXPANSIONS = {
1715
- borderColor: ["TopColor", "RightColor", "BottomColor", "LeftColor"],
1716
- borderRadius: [
1717
- "TopLeftRadius",
1718
- "TopRightRadius",
1719
- "BottomRightRadius",
1720
- "BottomLeftRadius"
1721
- ],
1722
- borderWidth: ["TopWidth", "RightWidth", "BottomWidth", "LeftWidth"],
1723
- margin: all,
1724
- marginHorizontal: horiz,
1725
- marginVertical: vert,
1726
- overscrollBehavior: xy,
1727
- padding: all,
1728
- paddingHorizontal: horiz,
1729
- paddingVertical: vert,
1730
- ...import_constants.isWeb && {
1731
- // react-native only supports borderStyle
1732
- borderStyle: ["TopStyle", "RightStyle", "BottomStyle", "LeftStyle"],
1733
- // react-native doesn't support X / Y
1734
- overflow: xy
1735
- }
1736
- }, _a;
1737
- for (let parent in EXPANSIONS) {
1738
- let prefix = parent.slice(0, ((_a = /[A-Z]/.exec(parent)) == null ? void 0 : _a.index) ?? parent.length);
1739
- EXPANSIONS[parent] = EXPANSIONS[parent].map((k) => `${prefix}${k}`);
1740
- }
1741
- }
1742
- });
1743
-
1744
1685
  // ../../node_modules/@react-native/normalize-color/index.js
1745
1686
  var require_normalize_color = __commonJS({
1746
1687
  "../../node_modules/@react-native/normalize-color/index.js"(exports, module2) {
@@ -2371,26 +2312,10 @@ var require_expandStyles_native = __commonJS({
2371
2312
  return to;
2372
2313
  }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), expandStyles_exports = {};
2373
2314
  __export2(expandStyles_exports, {
2374
- expandStylesAndRemoveNullishValues: () => expandStylesAndRemoveNullishValues,
2375
2315
  fixStyles: () => fixStyles
2376
2316
  });
2377
2317
  module2.exports = __toCommonJS2(expandStyles_exports);
2378
- var import_constants = require_index_native2(), import_expandStyle = require_expandStyle_native(), import_normalizeShadow = require_normalizeShadow_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_pseudoDescriptors = require_pseudoDescriptors_native();
2379
- function expandStylesAndRemoveNullishValues(style) {
2380
- let res = {};
2381
- for (let key in style) {
2382
- let valIn = style[key];
2383
- if (valIn == null)
2384
- continue;
2385
- if (key in import_pseudoDescriptors.pseudoDescriptors) {
2386
- res[key] = expandStylesAndRemoveNullishValues(valIn);
2387
- continue;
2388
- }
2389
- let val = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(valIn, key), out = (0, import_expandStyle.expandStyle)(key, val);
2390
- out ? Object.assign(res, Object.fromEntries(out)) : res[key] = val;
2391
- }
2392
- return fixStyles(res), res;
2393
- }
2318
+ var import_constants = require_index_native2(), import_normalizeShadow = require_normalizeShadow_native();
2394
2319
  function fixStyles(style) {
2395
2320
  "elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius || style.shadowColor || style.shadowOpacity || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
2396
2321
  for (let key in borderDefaults)
@@ -2432,6 +2357,101 @@ var require_getStylesAtomic_native = __commonJS({
2432
2357
  }
2433
2358
  });
2434
2359
 
2360
+ // ../web/dist/cjs/helpers/expandStyle.native.js
2361
+ var require_expandStyle_native = __commonJS({
2362
+ "../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
2363
+ "use strict";
2364
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all2) => {
2365
+ for (var name in all2)
2366
+ __defProp2(target, name, { get: all2[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), expandStyle_exports = {};
2373
+ __export2(expandStyle_exports, {
2374
+ expandStyle: () => expandStyle
2375
+ });
2376
+ module2.exports = __toCommonJS2(expandStyle_exports);
2377
+ var import_constants = require_index_native2();
2378
+ function expandStyle(key, value) {
2379
+ if (!1)
2380
+ switch (key) {
2381
+ case "textAlignVertical":
2382
+ case "writingDirection":
2383
+ }
2384
+ if (import_constants.isAndroid && key === "elevationAndroid")
2385
+ return [["elevation", value]];
2386
+ if (key in EXPANSIONS)
2387
+ return EXPANSIONS[key].map((key2) => [key2, value]);
2388
+ }
2389
+ var all = ["Top", "Right", "Bottom", "Left"], horiz = ["Right", "Left"], vert = ["Top", "Bottom"], xy = ["X", "Y"], EXPANSIONS = {
2390
+ borderColor: ["TopColor", "RightColor", "BottomColor", "LeftColor"],
2391
+ borderRadius: [
2392
+ "TopLeftRadius",
2393
+ "TopRightRadius",
2394
+ "BottomRightRadius",
2395
+ "BottomLeftRadius"
2396
+ ],
2397
+ borderWidth: ["TopWidth", "RightWidth", "BottomWidth", "LeftWidth"],
2398
+ margin: all,
2399
+ marginHorizontal: horiz,
2400
+ marginVertical: vert,
2401
+ overscrollBehavior: xy,
2402
+ padding: all,
2403
+ paddingHorizontal: horiz,
2404
+ paddingVertical: vert,
2405
+ ...import_constants.isWeb && {
2406
+ // react-native only supports borderStyle
2407
+ borderStyle: ["TopStyle", "RightStyle", "BottomStyle", "LeftStyle"],
2408
+ // react-native doesn't support X / Y
2409
+ overflow: xy
2410
+ }
2411
+ }, _a;
2412
+ for (let parent in EXPANSIONS) {
2413
+ let prefix = parent.slice(0, ((_a = /[A-Z]/.exec(parent)) == null ? void 0 : _a.index) ?? parent.length);
2414
+ EXPANSIONS[parent] = EXPANSIONS[parent].map((k) => `${prefix}${k}`);
2415
+ }
2416
+ }
2417
+ });
2418
+
2419
+ // ../web/dist/cjs/helpers/expandStylesAndRemoveNullishValues.native.js
2420
+ var require_expandStylesAndRemoveNullishValues_native = __commonJS({
2421
+ "../web/dist/cjs/helpers/expandStylesAndRemoveNullishValues.native.js"(exports, module2) {
2422
+ "use strict";
2423
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
2424
+ for (var name in all)
2425
+ __defProp2(target, name, { get: all[name], enumerable: !0 });
2426
+ }, __copyProps2 = (to, from, except, desc) => {
2427
+ if (from && typeof from == "object" || typeof from == "function")
2428
+ for (let key of __getOwnPropNames2(from))
2429
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
2430
+ return to;
2431
+ }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), expandStylesAndRemoveNullishValues_exports = {};
2432
+ __export2(expandStylesAndRemoveNullishValues_exports, {
2433
+ expandStylesAndRemoveNullishValues: () => expandStylesAndRemoveNullishValues
2434
+ });
2435
+ module2.exports = __toCommonJS2(expandStylesAndRemoveNullishValues_exports);
2436
+ var import_expandStyle = require_expandStyle_native(), import_expandStyles = require_expandStyles_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_pseudoDescriptors = require_pseudoDescriptors_native();
2437
+ function expandStylesAndRemoveNullishValues(style, disableNormalize = !1) {
2438
+ let res = {};
2439
+ for (let key in style) {
2440
+ let prop = style[key];
2441
+ if (prop == null)
2442
+ continue;
2443
+ if (key in import_pseudoDescriptors.pseudoDescriptors) {
2444
+ res[key] = expandStylesAndRemoveNullishValues(prop, disableNormalize);
2445
+ continue;
2446
+ }
2447
+ let value = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value);
2448
+ out ? Object.assign(res, Object.fromEntries(out)) : res[key] = value;
2449
+ }
2450
+ return (0, import_expandStyles.fixStyles)(res), res;
2451
+ }
2452
+ }
2453
+ });
2454
+
2435
2455
  // ../web/dist/cjs/helpers/getVariantExtras.native.js
2436
2456
  var require_getVariantExtras_native = __commonJS({
2437
2457
  "../web/dist/cjs/helpers/getVariantExtras.native.js"(exports, module2) {
@@ -2538,7 +2558,7 @@ var require_propMapper_native = __commonJS({
2538
2558
  propMapper: () => propMapper
2539
2559
  });
2540
2560
  module2.exports = __toCommonJS2(propMapper_exports);
2541
- var import_constants = require_index_native2(), import_helpers = require_index_native4(), import_config = require_config_native(), import_isDevTools = require_isDevTools_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_expandStyles = require_expandStyles_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
2561
+ var import_constants = require_index_native2(), import_helpers = require_index_native4(), import_config = require_config_native(), import_isDevTools = require_isDevTools_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_expandStylesAndRemoveNullishValues = require_expandStylesAndRemoveNullishValues_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
2542
2562
  if (!import_constants.isAndroid && key === "elevationAndroid")
2543
2563
  return;
2544
2564
  let subProps = styleStateIn.styleProps.fallbackProps || subPropsIn, styleState = subProps ? new Proxy(styleStateIn, {
@@ -2585,7 +2605,10 @@ var require_propMapper_native = __commonJS({
2585
2605
  );
2586
2606
  }
2587
2607
  if (variantValue) {
2588
- let expanded = (0, import_expandStyles.expandStylesAndRemoveNullishValues)(variantValue), next = Object.entries(expanded);
2608
+ let expanded = (0, import_expandStylesAndRemoveNullishValues.expandStylesAndRemoveNullishValues)(
2609
+ variantValue,
2610
+ !!styleProps.noNormalize
2611
+ ), next = Object.entries(expanded);
2589
2612
  return fontFamilyResult && fontFamilyResult[0] === "$" && fontFamilyCache.set(next, (0, import_createVariable.getVariableValue)(fontFamilyResult)), next;
2590
2613
  }
2591
2614
  };
@@ -2739,7 +2762,7 @@ var require_getSplitStyles_native = __commonJS({
2739
2762
  module2.exports = __toCommonJS2(getSplitStyles_exports);
2740
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) => {
2741
2764
  var _a, _b, _c, _e, _f, _g;
2742
- conf = conf || (0, import_config.getConfig)();
2765
+ conf = conf || (0, import_config.getConfig)(), import_constants.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
2743
2766
  let { shorthands } = conf, {
2744
2767
  isHOC,
2745
2768
  isText,
@@ -2801,7 +2824,7 @@ var require_getSplitStyles_native = __commonJS({
2801
2824
  continue;
2802
2825
  }
2803
2826
  if (keyInit[0] === "_" && keyInit.startsWith("_style")) {
2804
- mergeStyleProp(styleState, valInit);
2827
+ mergeStylePropIntoStyle(styleState, valInit);
2805
2828
  continue;
2806
2829
  }
2807
2830
  if (!1 && !(keyInit in accessibilityDirectMap))
@@ -2994,7 +3017,7 @@ var require_getSplitStyles_native = __commonJS({
2994
3017
  }
2995
3018
  }
2996
3019
  }
2997
- if (props.style && mergeStyleProp(styleState, props.style), !styleProps.noNormalize && ((0, import_expandStyles.fixStyles)(style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(style), styleState.transforms && Object.entries(styleState.transforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
3020
+ if (props.style && mergeStylePropIntoStyle(styleState, props.style), styleProps.noNormalize !== !1 && ((0, import_expandStyles.fixStyles)(style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(style), styleState.transforms && Object.entries(styleState.transforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
2998
3021
  mergeTransform(style, key, val, !0);
2999
3022
  }), parentSplitStyles && !shouldDoClasses))
3000
3023
  for (let key in parentSplitStyles.style)
@@ -3026,14 +3049,14 @@ var require_getSplitStyles_native = __commonJS({
3026
3049
  }
3027
3050
  return result;
3028
3051
  };
3029
- function mergeStyle(styleState, key, val) {
3052
+ function mergeStyle(styleState, key, val, disableNormalize = !1) {
3030
3053
  let { classNames, viewProps, style, usedKeys, styleProps } = styleState;
3031
3054
  if (import_constants.isWeb && (val == null ? void 0 : val[0]) === "_")
3032
3055
  classNames[key] = val, usedKeys[key] ||= 1;
3033
3056
  else if (key in import_helpers.stylePropsTransform)
3034
3057
  styleState.transforms ||= {}, styleState.transforms[key] = val;
3035
3058
  else {
3036
- let out = import_constants.isWeb && !styleProps.noNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
3059
+ let out = import_constants.isWeb && !disableNormalize && !styleProps.noNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
3037
3060
  key in import_helpers.validStylesOnBaseProps ? viewProps[key] = out : style[key] = out;
3038
3061
  }
3039
3062
  }
@@ -3049,17 +3072,13 @@ var require_getSplitStyles_native = __commonJS({
3049
3072
  }
3050
3073
  return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
3051
3074
  };
3052
- function mergeStyleProp(styleState, val) {
3053
- if (!val)
3054
- return;
3055
- let styles = [].concat(val).flat();
3056
- for (let cur of styles)
3057
- if (cur)
3058
- if (cur.$$css)
3059
- Object.assign(styleState.classNames, cur);
3060
- else
3061
- for (let key in cur)
3062
- key in styleState.usedKeys || mergeStyle(styleState, key, cur[key]);
3075
+ function mergeStylePropIntoStyle(styleState, cur) {
3076
+ if (cur)
3077
+ if (cur.$$css)
3078
+ Object.assign(styleState.classNames, cur);
3079
+ else
3080
+ for (let key in cur)
3081
+ key in styleState.usedKeys || mergeStyle(styleState, key, cur[key]);
3063
3082
  }
3064
3083
  var useInsertEffectCompat = import_constants.isWeb ? import_react2.useInsertionEffect || import_constants.useIsomorphicLayoutEffect : () => {
3065
3084
  }, useSplitStyles = (...args) => {
@@ -4213,11 +4232,8 @@ var require_createComponent_native = __commonJS({
4213
4232
  }
4214
4233
  function styleable(Component2, options) {
4215
4234
  var _a2;
4216
- let ComponentForwardedRef = ((_a2 = Component2.render) == null ? void 0 : _a2.length) === 2 ? Component2 : (
4217
- // memo because theme changes otherwise would always re-render
4218
- (0, import_react2.memo)((0, import_react2.forwardRef)(Component2))
4219
- ), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig), out = options != null && options.disableTheme ? ComponentForwardedRef : (0, import_themeable.themeable)(ComponentForwardedRef, extendedConfig);
4220
- return out.staticConfig = extendedConfig, out.styleable = styleable, out;
4235
+ let out = ((_a2 = Component2.render) == null ? void 0 : _a2.length) === 2 ? Component2 : (0, import_react2.forwardRef)(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
4236
+ return out = options != null && options.disableTheme ? out : (0, import_themeable.themeable)(out, extendedConfig), process.env.TAMAGUI_MEMOIZE_STYLEABLE && (out = (0, import_react2.memo)(out)), out.staticConfig = extendedConfig, out.styleable = styleable, out;
4221
4237
  }
4222
4238
  return res.extractable = extractable, res.styleable = styleable, res;
4223
4239
  }
@@ -5694,6 +5710,7 @@ var require_index_native9 = __commonJS({
5694
5710
  __reExport2(src_exports2, require_ComponentContext_native(), module2.exports);
5695
5711
  __reExport2(src_exports2, require_createStyledContext_native(), module2.exports);
5696
5712
  __reExport2(src_exports2, require_expandStyles_native(), module2.exports);
5713
+ __reExport2(src_exports2, require_expandStylesAndRemoveNullishValues_native(), module2.exports);
5697
5714
  __reExport2(src_exports2, require_propMapper_native(), module2.exports);
5698
5715
  __reExport2(src_exports2, require_getExpandedShorthands_native(), module2.exports);
5699
5716
  __reExport2(src_exports2, require_getSplitStyles_native(), module2.exports);
@@ -15565,7 +15582,6 @@ var require_RadioGroup_native = __commonJS({
15565
15582
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15566
15583
  RadioGroupFrame,
15567
15584
  {
15568
- "aria-valuetext": value,
15569
15585
  role: "radiogroup",
15570
15586
  "aria-orientation": orientation,
15571
15587
  ref: forwardedRef,