@tamagui/core 3.0.0-beta.807.1 → 3.0.0-beta.831.1

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.
@@ -24,17 +24,66 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  //#endregion
25
25
  let react = require("react");
26
26
  react = __toESM(react, 1);
27
+ let _tamagui_size = require("@tamagui/size");
27
28
  let react_jsx_runtime = require("react/jsx-runtime");
28
29
  let react_native = require("react-native");
29
30
  react_native = __toESM(react_native, 1);
30
- let _tamagui_size = require("@tamagui/size");
31
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutPropertiesLoose.js
32
+ function _objectWithoutPropertiesLoose(r, e) {
33
+ if (null == r) return {};
34
+ var t = {};
35
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
36
+ if (e.includes(n)) continue;
37
+ t[n] = r[n];
38
+ }
39
+ return t;
40
+ }
41
+ //#endregion
42
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutProperties.js
43
+ function _objectWithoutProperties(e, t) {
44
+ if (null == e) return {};
45
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
46
+ if (Object.getOwnPropertySymbols) {
47
+ var s = Object.getOwnPropertySymbols(e);
48
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
49
+ }
50
+ return i;
51
+ }
52
+ //#endregion
53
+ //#region ../compose-refs/dist/esm/compose-refs.native.js
54
+ var _excluded$10 = ["ref"];
55
+ function setRef(ref, value) {
56
+ if (typeof ref === "function") ref(value);
57
+ else if (ref) ref.current = value;
58
+ }
59
+ function composeRefs() {
60
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
61
+ return function(node) {
62
+ return refs.forEach(function(ref) {
63
+ return setRef(ref, node);
64
+ });
65
+ };
66
+ }
67
+ function useComposedRefs() {
68
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
69
+ return react.useCallback(composeRefs(...refs), refs);
70
+ }
71
+ function createRefComponent(render) {
72
+ function RefComponent(props) {
73
+ var { ref } = props;
74
+ return render(_objectWithoutProperties(props, _excluded$10), ref);
75
+ }
76
+ RefComponent.displayName = render.name;
77
+ return RefComponent;
78
+ }
79
+ //#endregion
31
80
  //#region ../web/dist/esm/helpers/isObj.native.js
32
- function _type_of$16(obj) {
81
+ function _type_of$17(obj) {
33
82
  "@swc/helpers - typeof";
34
83
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
35
84
  }
36
85
  var isObj = function(x) {
37
- return x && !Array.isArray(x) && (typeof x === "undefined" ? "undefined" : _type_of$16(x)) === "object";
86
+ return x && !Array.isArray(x) && (typeof x === "undefined" ? "undefined" : _type_of$17(x)) === "object";
38
87
  };
39
88
  function isPlainObject(value) {
40
89
  if (!isObj(value)) return false;
@@ -77,7 +126,7 @@ var mergeComponentProps = function(defaultProps, contextProps, props) {
77
126
  };
78
127
  //#endregion
79
128
  //#region ../web/dist/esm/helpers/objectIdentityKey.native.js
80
- function _type_of$15(obj) {
129
+ function _type_of$16(obj) {
81
130
  "@swc/helpers - typeof";
82
131
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
83
132
  }
@@ -86,7 +135,7 @@ function objectIdentityKey(obj) {
86
135
  for (var key in obj) {
87
136
  k += key;
88
137
  var arg = obj[key];
89
- var type = typeof arg === "undefined" ? "undefined" : _type_of$15(arg);
138
+ var type = typeof arg === "undefined" ? "undefined" : _type_of$16(arg);
90
139
  if (!arg || type !== "object" && type !== "function") k += type + arg;
91
140
  else if (cache$4.has(arg)) k += cache$4.get(arg);
92
141
  else {
@@ -99,30 +148,8 @@ function objectIdentityKey(obj) {
99
148
  }
100
149
  var cache$4 = /* @__PURE__ */ new WeakMap();
101
150
  //#endregion
102
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutPropertiesLoose.js
103
- function _objectWithoutPropertiesLoose(r, e) {
104
- if (null == r) return {};
105
- var t = {};
106
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
107
- if (e.includes(n)) continue;
108
- t[n] = r[n];
109
- }
110
- return t;
111
- }
112
- //#endregion
113
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutProperties.js
114
- function _objectWithoutProperties(e, t) {
115
- if (null == e) return {};
116
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
117
- if (Object.getOwnPropertySymbols) {
118
- var s = Object.getOwnPropertySymbols(e);
119
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
120
- }
121
- return i;
122
- }
123
- //#endregion
124
151
  //#region ../web/dist/esm/helpers/createStyledContext.native.js
125
- var _excluded$11 = [
152
+ var _excluded$9 = [
126
153
  "children",
127
154
  "scope",
128
155
  "__disableMergeDefaultValues"
@@ -152,7 +179,7 @@ var createStyledContext = function(defaultValues) {
152
179
  return namespace ? `${namespace}--${scope}` : scope;
153
180
  };
154
181
  var Provider = function(param) {
155
- var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$11);
182
+ var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$9);
156
183
  var scope = getNamespacedScope(scopeIn);
157
184
  var next = useReactMemo(function() {
158
185
  if (__disableMergeDefaultValues) return values;
@@ -329,7 +356,7 @@ function getPlatformDriver() {
329
356
  var MISSING_THEME_MESSAGE = `Missing theme.`;
330
357
  //#endregion
331
358
  //#region ../web/dist/esm/helpers/formatDiagnostic.native.js
332
- function _type_of$14(obj) {
359
+ function _type_of$15(obj) {
333
360
  "@swc/helpers - typeof";
334
361
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
335
362
  }
@@ -341,9 +368,9 @@ function formatDiagnosticValue(value) {
341
368
  return JSON.stringify(output);
342
369
  }
343
370
  if (value == null || typeof value === "number" || typeof value === "boolean") return String(value);
344
- if ((typeof value === "undefined" ? "undefined" : _type_of$14(value)) === "bigint") return `${value}n`;
371
+ if ((typeof value === "undefined" ? "undefined" : _type_of$15(value)) === "bigint") return `${value}n`;
345
372
  if (typeof value === "function") return `[Function ${value.name || "anonymous"}]`;
346
- if ((typeof value === "undefined" ? "undefined" : _type_of$14(value)) !== "object") return String(value);
373
+ if ((typeof value === "undefined" ? "undefined" : _type_of$15(value)) !== "object") return String(value);
347
374
  if (seen.has(value)) return "[Circular]";
348
375
  if (depth === 2) return Array.isArray(value) ? "[Array]" : "[Object]";
349
376
  seen.add(value);
@@ -355,7 +382,7 @@ function formatDiagnosticValue(value) {
355
382
  return `[${items.join(", ")}]`;
356
383
  }
357
384
  var keys = [];
358
- for (var key in value) if (Object.prototype.hasOwnProperty.call(value, key)) {
385
+ for (var key in value) {
359
386
  keys.push(key);
360
387
  if (keys.length === 6) break;
361
388
  }
@@ -464,7 +491,7 @@ function getThemeClassNames(name) {
464
491
  }
465
492
  //#endregion
466
493
  //#region ../helpers/dist/esm/composeEventHandlers.native.js
467
- function _type_of$13(obj) {
494
+ function _type_of$14(obj) {
468
495
  "@swc/helpers - typeof";
469
496
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
470
497
  }
@@ -473,7 +500,7 @@ function composeEventHandlers(og, next) {
473
500
  if (!og || !next) return next || og || void 0;
474
501
  return function(event) {
475
502
  og === null || og === void 0 || og(event);
476
- var isPrevented = !!event && (typeof event === "undefined" ? "undefined" : _type_of$13(event)) === "object" && ("defaultPrevented" in event && Boolean(event.defaultPrevented) || "isCanceled" in event && Boolean(event.isCanceled));
503
+ var isPrevented = !!event && (typeof event === "undefined" ? "undefined" : _type_of$14(event)) === "object" && ("defaultPrevented" in event && Boolean(event.defaultPrevented) || "isCanceled" in event && Boolean(event.isCanceled));
477
504
  if (!event || !checkDefaultPrevented || !isPrevented) return next === null || next === void 0 ? void 0 : next(event);
478
505
  };
479
506
  }
@@ -522,61 +549,156 @@ function resolvePlatformNames(nativeProp) {
522
549
  return set;
523
550
  }
524
551
  //#endregion
552
+ //#region ../style-grammar/dist/esm/tokenCategories.mjs
553
+ var tokenCategoryNames = [
554
+ "",
555
+ "space",
556
+ "size",
557
+ "radius",
558
+ "zIndex",
559
+ "color",
560
+ "fontFamily",
561
+ "fontSize",
562
+ "fontWeight",
563
+ "lineHeight",
564
+ "letterSpacing"
565
+ ];
566
+ var propToTokenCategoryCode = Object.freeze({
567
+ borderRadius: 3,
568
+ borderTopLeftRadius: 3,
569
+ borderTopRightRadius: 3,
570
+ borderBottomLeftRadius: 3,
571
+ borderBottomRightRadius: 3,
572
+ borderTopStartRadius: 3,
573
+ borderTopEndRadius: 3,
574
+ borderBottomStartRadius: 3,
575
+ borderBottomEndRadius: 3,
576
+ borderStartStartRadius: 3,
577
+ borderStartEndRadius: 3,
578
+ borderEndStartRadius: 3,
579
+ borderEndEndRadius: 3,
580
+ width: 2,
581
+ height: 2,
582
+ minWidth: 2,
583
+ minHeight: 2,
584
+ maxWidth: 2,
585
+ maxHeight: 2,
586
+ blockSize: 2,
587
+ minBlockSize: 2,
588
+ maxBlockSize: 2,
589
+ inlineSize: 2,
590
+ minInlineSize: 2,
591
+ maxInlineSize: 2,
592
+ shadowRadius: 2,
593
+ zIndex: 4,
594
+ backgroundColor: 5,
595
+ borderColor: 5,
596
+ borderBlockStartColor: 5,
597
+ borderBlockEndColor: 5,
598
+ borderBlockColor: 5,
599
+ borderBottomColor: 5,
600
+ borderInlineColor: 5,
601
+ borderInlineStartColor: 5,
602
+ borderInlineEndColor: 5,
603
+ borderTopColor: 5,
604
+ borderLeftColor: 5,
605
+ borderRightColor: 5,
606
+ borderEndColor: 5,
607
+ borderStartColor: 5,
608
+ shadowColor: 5,
609
+ color: 5,
610
+ textDecorationColor: 5,
611
+ textShadowColor: 5,
612
+ outlineColor: 5,
613
+ caretColor: 5,
614
+ x: 1,
615
+ y: 1,
616
+ borderWidth: 1,
617
+ borderTopWidth: 1,
618
+ borderRightWidth: 1,
619
+ borderBottomWidth: 1,
620
+ borderLeftWidth: 1,
621
+ borderBlockWidth: 1,
622
+ borderBlockStartWidth: 1,
623
+ borderBlockEndWidth: 1,
624
+ borderInlineWidth: 1,
625
+ borderInlineStartWidth: 1,
626
+ borderInlineEndWidth: 1,
627
+ outlineOffset: 1,
628
+ outlineWidth: 1,
629
+ gap: 1,
630
+ rowGap: 1,
631
+ columnGap: 1,
632
+ top: 1,
633
+ right: 1,
634
+ bottom: 1,
635
+ left: 1,
636
+ inset: 1,
637
+ insetBlock: 1,
638
+ insetBlockEnd: 1,
639
+ insetBlockStart: 1,
640
+ insetInline: 1,
641
+ insetInlineEnd: 1,
642
+ insetInlineStart: 1,
643
+ margin: 1,
644
+ marginBlock: 1,
645
+ marginBlockEnd: 1,
646
+ marginBlockStart: 1,
647
+ marginInline: 1,
648
+ marginInlineEnd: 1,
649
+ marginInlineStart: 1,
650
+ marginTop: 1,
651
+ marginRight: 1,
652
+ marginBottom: 1,
653
+ marginEnd: 1,
654
+ marginLeft: 1,
655
+ marginHorizontal: 1,
656
+ marginStart: 1,
657
+ marginVertical: 1,
658
+ padding: 1,
659
+ paddingBlock: 1,
660
+ paddingBlockEnd: 1,
661
+ paddingBlockStart: 1,
662
+ paddingInline: 1,
663
+ paddingInlineEnd: 1,
664
+ paddingInlineStart: 1,
665
+ paddingTop: 1,
666
+ paddingRight: 1,
667
+ paddingBottom: 1,
668
+ paddingEnd: 1,
669
+ paddingLeft: 1,
670
+ paddingHorizontal: 1,
671
+ paddingStart: 1,
672
+ paddingVertical: 1,
673
+ fontFamily: 6,
674
+ fontSize: 7,
675
+ fontWeight: 8,
676
+ lineHeight: 9,
677
+ letterSpacing: 10
678
+ });
679
+ //#endregion
525
680
  //#region ../helpers/dist/esm/tokenCategories.native.js
526
- var tokenCategories = {
527
- radius: {
528
- borderRadius: true,
529
- borderTopLeftRadius: true,
530
- borderTopRightRadius: true,
531
- borderBottomLeftRadius: true,
532
- borderBottomRightRadius: true,
533
- borderTopStartRadius: true,
534
- borderTopEndRadius: true,
535
- borderBottomStartRadius: true,
536
- borderBottomEndRadius: true,
537
- borderStartStartRadius: true,
538
- borderStartEndRadius: true,
539
- borderEndStartRadius: true,
540
- borderEndEndRadius: true
541
- },
542
- size: {
543
- width: true,
544
- height: true,
545
- minWidth: true,
546
- minHeight: true,
547
- maxWidth: true,
548
- maxHeight: true,
549
- blockSize: true,
550
- minBlockSize: true,
551
- maxBlockSize: true,
552
- inlineSize: true,
553
- minInlineSize: true,
554
- maxInlineSize: true,
555
- shadowRadius: true
556
- },
557
- zIndex: { zIndex: true },
558
- color: {
559
- backgroundColor: true,
560
- borderColor: true,
561
- borderBlockStartColor: true,
562
- borderBlockEndColor: true,
563
- borderBlockColor: true,
564
- borderBottomColor: true,
565
- borderInlineColor: true,
566
- borderInlineStartColor: true,
567
- borderInlineEndColor: true,
568
- borderTopColor: true,
569
- borderLeftColor: true,
570
- borderRightColor: true,
571
- borderEndColor: true,
572
- borderStartColor: true,
573
- shadowColor: true,
574
- color: true,
575
- textDecorationColor: true,
576
- textShadowColor: true,
577
- outlineColor: true
578
- }
681
+ var _loop$1 = function(_i2, _iter2) {
682
+ var category = _iter2[_i2];
683
+ var view = void 0;
684
+ Object.defineProperty(tokenCategories, category, {
685
+ enumerable: true,
686
+ get() {
687
+ if (view) return view;
688
+ view = {};
689
+ var code = tokenCategoryNames.indexOf(category);
690
+ for (var property in propToTokenCategoryCode) if (propToTokenCategoryCode[property] === code) view[property] = true;
691
+ return view;
692
+ }
693
+ });
579
694
  };
695
+ var tokenCategories = {};
696
+ for (var _i = 0, _iter = [
697
+ "radius",
698
+ "size",
699
+ "zIndex",
700
+ "color"
701
+ ]; _i < _iter.length; _i++) _loop$1(_i, _iter);
580
702
  //#endregion
581
703
  //#region ../helpers/dist/esm/validStyleProps.native.js
582
704
  var cssShorthandLonghands = {
@@ -605,11 +727,6 @@ var textColors = {
605
727
  textDecorationColor: true,
606
728
  textShadowColor: true
607
729
  };
608
- var _tokenCategories$colo = tokenCategories.color, { color: _textOnlyColor, textDecorationColor: _textOnlyDecoration, textShadowColor: _textOnlyShadow } = _tokenCategories$colo, viewColorCategoryProps = _objectWithoutProperties(_tokenCategories$colo, [
609
- "color",
610
- "textDecorationColor",
611
- "textShadowColor"
612
- ]);
613
730
  var nonAnimatableViewProps = {
614
731
  alignContent: true,
615
732
  alignItems: true,
@@ -708,7 +825,7 @@ var stylePropsTransform = {
708
825
  rotateX: true,
709
826
  rotateZ: true
710
827
  };
711
- var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, nonAnimatableViewProps), {}, {
828
+ var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, nonAnimatableViewProps), {}, {
712
829
  borderBottomWidth: true,
713
830
  borderLeftWidth: true,
714
831
  borderRightWidth: true,
@@ -771,8 +888,50 @@ var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
771
888
  insetInline: true,
772
889
  insetInlineEnd: true,
773
890
  insetInlineStart: true,
774
- shadowOffset: true
775
- }, viewColorCategoryProps), tokenCategories.radius), tokenCategories.size), stylePropsTransform), stylePropsUnitless), isAndroid ? { elevationAndroid: true } : {}), {}, {
891
+ shadowOffset: true,
892
+ backgroundColor: true,
893
+ borderColor: true,
894
+ borderBlockStartColor: true,
895
+ borderBlockEndColor: true,
896
+ borderBlockColor: true,
897
+ borderBottomColor: true,
898
+ borderInlineColor: true,
899
+ borderInlineStartColor: true,
900
+ borderInlineEndColor: true,
901
+ borderTopColor: true,
902
+ borderLeftColor: true,
903
+ borderRightColor: true,
904
+ borderEndColor: true,
905
+ borderStartColor: true,
906
+ shadowColor: true,
907
+ outlineColor: true,
908
+ borderRadius: true,
909
+ borderTopLeftRadius: true,
910
+ borderTopRightRadius: true,
911
+ borderBottomLeftRadius: true,
912
+ borderBottomRightRadius: true,
913
+ borderTopStartRadius: true,
914
+ borderTopEndRadius: true,
915
+ borderBottomStartRadius: true,
916
+ borderBottomEndRadius: true,
917
+ borderStartStartRadius: true,
918
+ borderStartEndRadius: true,
919
+ borderEndStartRadius: true,
920
+ borderEndEndRadius: true,
921
+ width: true,
922
+ height: true,
923
+ minWidth: true,
924
+ minHeight: true,
925
+ maxWidth: true,
926
+ maxHeight: true,
927
+ blockSize: true,
928
+ minBlockSize: true,
929
+ maxBlockSize: true,
930
+ inlineSize: true,
931
+ minInlineSize: true,
932
+ maxInlineSize: true,
933
+ shadowRadius: true
934
+ }, stylePropsTransform), stylePropsUnitless), isAndroid ? { elevationAndroid: true } : {}), {}, {
776
935
  boxShadow: true,
777
936
  border: true,
778
937
  borderBlock: true,
@@ -782,7 +941,6 @@ var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
782
941
  backgroundImage: true,
783
942
  experimental_backgroundImage: true,
784
943
  outline: true,
785
- outlineColor: true,
786
944
  outlineOffset: true,
787
945
  outlineWidth: true
788
946
  });
@@ -1350,7 +1508,7 @@ function forEachModifierName(source, visit) {
1350
1508
  }
1351
1509
  return;
1352
1510
  }
1353
- for (var name2 in source) if (Object.prototype.hasOwnProperty.call(source, name2)) visit(name2, rank++);
1511
+ for (var name2 in source) visit(name2, rank++);
1354
1512
  }
1355
1513
  function isRootThemeName(name) {
1356
1514
  return name.length > 0 && !name.includes("_");
@@ -1735,7 +1893,7 @@ var getThemes = function() {
1735
1893
  };
1736
1894
  var updateConfig = function(key, value) {
1737
1895
  var config = getConfigFromGlobalOrLocal();
1738
- if (!config || !Object.prototype.hasOwnProperty.call(config, key)) return;
1896
+ if (!config || key === "__proto__" || !(key in config)) return;
1739
1897
  Object.assign(config[key], value);
1740
1898
  prepareConfigRevision(config);
1741
1899
  };
@@ -1762,7 +1920,7 @@ function loadAnimationDriver(name, driver) {
1762
1920
  }
1763
1921
  //#endregion
1764
1922
  //#region ../web/dist/esm/createVariable.native.js
1765
- function _type_of$12(obj) {
1923
+ function _type_of$13(obj) {
1766
1924
  "@swc/helpers - typeof";
1767
1925
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1768
1926
  }
@@ -1790,7 +1948,7 @@ function variableToString(vrble) {
1790
1948
  return `${vrble || ""}`;
1791
1949
  }
1792
1950
  function isVariable(v) {
1793
- return v && (typeof v === "undefined" ? "undefined" : _type_of$12(v)) === "object" && "isVar" in v;
1951
+ return v && (typeof v === "undefined" ? "undefined" : _type_of$13(v)) === "object" && "isVar" in v;
1794
1952
  }
1795
1953
  function getVariable(nameOrVariable) {
1796
1954
  var group = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "size";
@@ -2789,9 +2947,9 @@ var useThemeWithState = function(props) {
2789
2947
  };
2790
2948
  //#endregion
2791
2949
  //#region ../web/dist/esm/_withStableStyle.native.js
2792
- var _excluded$10 = ["ref"];
2950
+ var _excluded$8 = ["ref"];
2793
2951
  var _excluded2$4 = ["_expressions"];
2794
- function _type_of$11(obj) {
2952
+ function _type_of$12(obj) {
2795
2953
  "@swc/helpers - typeof";
2796
2954
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
2797
2955
  }
@@ -2800,7 +2958,7 @@ var EMPTY_THEME = {};
2800
2958
  var FALLBACK_THEME_CACHE = /* @__PURE__ */ new WeakMap();
2801
2959
  var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKeys) {
2802
2960
  return /* @__PURE__ */ react.default.memo(function WithStableStyle(props) {
2803
- var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$10);
2961
+ var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$8);
2804
2962
  var { _expressions = EMPTY_EXPRESSIONS } = propsWithoutRef, rest = _objectWithoutProperties(propsWithoutRef, _excluded2$4);
2805
2963
  var parentId = (0, react.useContext)(ThemeStateContext);
2806
2964
  var theme = hasThemeKeys && parentId ? useTheme() : null;
@@ -2818,7 +2976,7 @@ var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKe
2818
2976
  if (!gettableTheme) {
2819
2977
  var _loop = function(key2) {
2820
2978
  var value = fallbackTheme[key2];
2821
- gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && (typeof value === "undefined" ? "undefined" : _type_of$11(value)) === "object" ? value : { val: value }), {}, { get: function() {
2979
+ gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && (typeof value === "undefined" ? "undefined" : _type_of$12(value)) === "object" ? value : { val: value }), {}, { get: function() {
2822
2980
  return getVariable(value);
2823
2981
  } });
2824
2982
  };
@@ -2837,33 +2995,6 @@ var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKe
2837
2995
  });
2838
2996
  };
2839
2997
  //#endregion
2840
- //#region ../compose-refs/dist/esm/compose-refs.native.js
2841
- var _excluded$9 = ["ref"];
2842
- function setRef(ref, value) {
2843
- if (typeof ref === "function") ref(value);
2844
- else if (ref) ref.current = value;
2845
- }
2846
- function composeRefs() {
2847
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
2848
- return function(node) {
2849
- return refs.forEach(function(ref) {
2850
- return setRef(ref, node);
2851
- });
2852
- };
2853
- }
2854
- function useComposedRefs() {
2855
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
2856
- return react.useCallback(composeRefs(...refs), refs);
2857
- }
2858
- function createRefComponent(render) {
2859
- function RefComponent(props) {
2860
- var { ref } = props;
2861
- return render(_objectWithoutProperties(props, _excluded$9), ref);
2862
- }
2863
- RefComponent.displayName = render.name;
2864
- return RefComponent;
2865
- }
2866
- //#endregion
2867
2998
  //#region ../web/dist/esm/helpers/nativeStyleEngine.native.js
2868
2999
  var engine = null;
2869
3000
  var scopeStates = /* @__PURE__ */ new Map();
@@ -3093,7 +3224,7 @@ function queueNativeViewState(entry) {
3093
3224
  }
3094
3225
  //#endregion
3095
3226
  //#region ../web/dist/esm/_withNativeStyle.native.js
3096
- var _excluded$8 = ["_scopeId"];
3227
+ var _excluded$7 = ["_scopeId"];
3097
3228
  var _excluded2$3 = ["ref", "_expressions"];
3098
3229
  var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
3099
3230
  var Fallback = _withStableStyle(Component, function(theme) {
@@ -3105,7 +3236,7 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
3105
3236
  return [baseStyle, themedStyle];
3106
3237
  }, true, false);
3107
3238
  var Native = /* @__PURE__ */ react.default.memo(function NativeStyleView(param) {
3108
- var { _scopeId } = param, props = _objectWithoutProperties(param, _excluded$8);
3239
+ var { _scopeId } = param, props = _objectWithoutProperties(param, _excluded$7);
3109
3240
  var { ref, _expressions: _ignoredExpressions } = props, rest = _objectWithoutProperties(props, _excluded2$3);
3110
3241
  var link = (0, react.useRef)(null);
3111
3242
  var themeState = getThemeState(_scopeId);
@@ -3670,45 +3801,9 @@ function wrapWithGestureDetector(content, gesture, _stateRef, isHOC, isComposite
3670
3801
  }, react.default.createElement(GestureDetector, { gesture }, content));
3671
3802
  }
3672
3803
  //#endregion
3673
- //#region ../web/dist/esm/helpers/getDefaultProps.native.js
3674
- var getDefaultProps = function(staticConfig) {
3675
- return staticConfig.defaultProps;
3676
- };
3677
- //#endregion
3678
3804
  //#region ../web/dist/esm/helpers/componentDisplayName.native.js
3679
3805
  var componentDisplayName = /* @__PURE__ */ Symbol.for("tamagui.componentDisplayName");
3680
- function setComponentDisplayName(component, displayName) {
3681
- if (displayName) {
3682
- component.displayName = displayName;
3683
- component[componentDisplayName] = displayName;
3684
- }
3685
- return component;
3686
- }
3687
- //#endregion
3688
- //#region ../web/dist/esm/types.native.js
3689
- var variantResolverNames = [
3690
- "Size",
3691
- "Space",
3692
- "Color",
3693
- "Radius",
3694
- "ZIndex",
3695
- "Theme",
3696
- "FontSize",
3697
- "FontStyle",
3698
- "FontTransform",
3699
- "FontLineHeight",
3700
- "FontLetterSpacing",
3701
- "number",
3702
- "string",
3703
- "boolean",
3704
- "any"
3705
- ];
3706
- function createVariantResolver(key, resolver) {
3707
- return resolver;
3708
- }
3709
- //#endregion
3710
- //#region ../web/dist/esm/helpers/warnOnce.native.js
3711
- function warnOnce(key) {
3806
+ function flushDirectStyles(_state) {
3712
3807
  arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
3713
3808
  }
3714
3809
  //#endregion
@@ -4298,73 +4393,273 @@ var borderDefaults = {
4298
4393
  borderLeftWidth: nativeStyle || "borderLeftStyle",
4299
4394
  borderRightWidth: nativeStyle || "borderRightStyle"
4300
4395
  };
4301
- function flushDirectStyles(_state) {
4302
- arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
4303
- }
4304
- _objectSpread2(_objectSpread2({}, stylePropsAll), {}, {
4305
- translateX: true,
4306
- translateY: true
4307
- });
4308
- var pxStringRe = /^-?\d*\.?\d+px$/;
4309
- function normalizeValueWithProperty(value) {
4310
- arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
4311
- if (typeof value === "string" && pxStringRe.test(value)) return Number.parseFloat(value);
4396
+ //#endregion
4397
+ //#region ../web/dist/esm/helpers/styleStaticConfig.native.js
4398
+ var styleStaticConfigCache = /* @__PURE__ */ new WeakMap();
4399
+ function getStyleStaticConfig(staticConfig, conf) {
4400
+ var _staticConfig_styleFrontend_normalizeStaticConfig, _staticConfig_styleFrontend, _staticConfig_context;
4401
+ var configCache = styleStaticConfigCache.get(staticConfig);
4402
+ var revision = getConfigRevisionState(conf).revision;
4403
+ var cached = configCache === null || configCache === void 0 ? void 0 : configCache.get(conf);
4404
+ if ((cached === null || cached === void 0 ? void 0 : cached.revision) === revision) return cached.value;
4405
+ var normalized = (_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : (_staticConfig_styleFrontend_normalizeStaticConfig = _staticConfig_styleFrontend.normalizeStaticConfig) === null || _staticConfig_styleFrontend_normalizeStaticConfig === void 0 ? void 0 : _staticConfig_styleFrontend_normalizeStaticConfig.call(_staticConfig_styleFrontend, staticConfig, conf);
4406
+ var variants = normalized ? normalized.variants : staticConfig.variants;
4407
+ var authoredBaseStyle = normalized ? normalized.baseStyle : staticConfig.baseStyle;
4408
+ var authoredDefaultProps = staticConfig.defaultProps;
4409
+ var baseStyle;
4410
+ var baseVariantProps;
4411
+ var defaultProps;
4412
+ if (authoredDefaultProps) {
4413
+ var validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);
4414
+ for (var key in authoredDefaultProps) {
4415
+ var isVariant = Boolean(variants === null || variants === void 0 ? void 0 : variants[key]);
4416
+ var isStyle = key !== "transition" && (key in validStyles$1 || key in conf.shorthands);
4417
+ if (isVariant || isStyle) (baseStyle || (baseStyle = authoredBaseStyle ? _objectSpread2({}, authoredBaseStyle) : {}))[key] = authoredDefaultProps[key];
4418
+ if (isVariant || !isStyle) (defaultProps || (defaultProps = {}))[key] = authoredDefaultProps[key];
4419
+ if (isVariant) (baseVariantProps || (baseVariantProps = {}))[key] = authoredDefaultProps[key];
4420
+ }
4421
+ }
4422
+ var keys = staticConfig.contextProps || ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.propKeys);
4423
+ var value = {
4424
+ baseStyle: baseStyle || authoredBaseStyle,
4425
+ baseVariantProps,
4426
+ defaultProps,
4427
+ styledContextKeys: keys ? new Set(keys) : null,
4428
+ variants,
4429
+ passthroughClassName: normalized ? normalized.passthroughClassName : staticConfig.passthroughClassName
4430
+ };
4431
+ if (!configCache) {
4432
+ configCache = /* @__PURE__ */ new WeakMap();
4433
+ styleStaticConfigCache.set(staticConfig, configCache);
4434
+ }
4435
+ configCache.set(conf, {
4436
+ revision,
4437
+ value
4438
+ });
4312
4439
  return value;
4313
4440
  }
4314
4441
  //#endregion
4315
- //#region ../web/dist/esm/helpers/styleOriginalValues.native.js
4316
- var styleOriginalValues = /* @__PURE__ */ new WeakMap();
4317
- //#endregion
4318
- //#region ../web/dist/esm/helpers/normalizeStyle.native.js
4319
- function normalizeStyle(style) {
4320
- var disableNormalize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, mergeTransforms = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
4321
- var res = {};
4322
- var originalValues = styleOriginalValues.get(style);
4323
- var nextOriginalValues;
4324
- var transformAccumulator;
4325
- for (var key in style) {
4326
- var prop = style[key];
4327
- if (prop == null) continue;
4328
- var originalValue = originalValues === null || originalValues === void 0 ? void 0 : originalValues[key];
4329
- if (mergeTransforms && (key === "transform" || key in stylePropsTransform)) {
4330
- transformAccumulator || (transformAccumulator = createTransformAccumulator());
4331
- addTransformValue(transformAccumulator, key, prop);
4332
- continue;
4442
+ //#region ../web/dist/esm/helpers/variantResolvers.native.js
4443
+ function _type_of$11(obj) {
4444
+ "@swc/helpers - typeof";
4445
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4446
+ }
4447
+ var variantResolverCache = /* @__PURE__ */ new WeakMap();
4448
+ function getCompiledVariantResolvers(variant) {
4449
+ var compiled = variantResolverCache.get(variant);
4450
+ if (!compiled) {
4451
+ var next = [];
4452
+ for (var key in variant) {
4453
+ var parts = parseVariantResolverKey(key);
4454
+ if (parts) next.push({
4455
+ key,
4456
+ parts
4457
+ });
4333
4458
  }
4334
- var value = disableNormalize ? prop : normalizeValueWithProperty(prop, key);
4335
- var out = mergeTransforms ? void 0 : expandStyle(key, value);
4336
- if (out) {
4337
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
4459
+ compiled = next;
4460
+ variantResolverCache.set(variant, compiled);
4461
+ }
4462
+ return compiled;
4463
+ }
4464
+ function parseVariantResolverKey(key) {
4465
+ if (!key) return null;
4466
+ return key.split("|").map(function(part) {
4467
+ return part.trim();
4468
+ });
4469
+ }
4470
+ function getVariantDefinition(variant, value, conf, param) {
4471
+ var { theme } = param;
4472
+ if (!variant) return;
4473
+ if (value === void 0) return;
4474
+ if (typeof variant === "function") return variant;
4475
+ if (value in variant) return variant[value];
4476
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
4477
+ try {
4478
+ for (var _iterator = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
4479
+ var { key, parts } = _step.value;
4480
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
4338
4481
  try {
4339
- for (var _iterator = out[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
4340
- var [nextKey, nextValue] = _step.value;
4341
- res[nextKey] = nextValue;
4342
- if (originalValue !== void 0) {
4343
- nextOriginalValues || (nextOriginalValues = {});
4344
- nextOriginalValues[nextKey] = originalValue;
4345
- }
4482
+ for (var _iterator1 = parts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
4483
+ var part = _step1.value;
4484
+ if (matchesVariantResolver(part, value, conf, theme)) return variant[key];
4346
4485
  }
4347
4486
  } catch (err) {
4348
- _didIteratorError = true;
4349
- _iteratorError = err;
4487
+ _didIteratorError1 = true;
4488
+ _iteratorError1 = err;
4350
4489
  } finally {
4351
4490
  try {
4352
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
4491
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
4353
4492
  } finally {
4354
- if (_didIteratorError) throw _iteratorError;
4493
+ if (_didIteratorError1) throw _iteratorError1;
4355
4494
  }
4356
4495
  }
4357
- } else {
4358
- res[key] = value;
4359
- if (originalValue !== void 0) {
4360
- nextOriginalValues || (nextOriginalValues = {});
4361
- nextOriginalValues[key] = originalValue;
4362
- }
4496
+ }
4497
+ } catch (err) {
4498
+ _didIteratorError = true;
4499
+ _iteratorError = err;
4500
+ } finally {
4501
+ try {
4502
+ if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
4503
+ } finally {
4504
+ if (_didIteratorError) throw _iteratorError;
4363
4505
  }
4364
4506
  }
4365
- if (transformAccumulator) res.transform = finalizeTransformAccumulator(transformAccumulator);
4366
- fixStyles(res);
4367
- if (nextOriginalValues) styleOriginalValues.set(res, nextOriginalValues);
4507
+ }
4508
+ function matchesVariantResolver(resolverName, value, conf, theme) {
4509
+ var string = typeof value === "string";
4510
+ var number = typeof value === "number";
4511
+ var rem = string && value.length > 3 && value.endsWith("rem") && Number.isFinite(Number(value.slice(0, -3)));
4512
+ switch (resolverName) {
4513
+ case "Size":
4514
+ case "Space":
4515
+ case "Radius":
4516
+ case "ZIndex": return value === true || number || string || resolverName !== "Size" && isVariable(value);
4517
+ case "Color": return string;
4518
+ case "Theme": return string && !!theme && value in theme;
4519
+ case "FontSize":
4520
+ var _conf_fontsParsed_body_size, _conf_fontsParsed_body;
4521
+ return value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;
4522
+ case "FontStyle":
4523
+ var _conf_fontsParsed_body_style, _conf_fontsParsed_body1;
4524
+ return !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === "normal" || value === "italic";
4525
+ case "FontTransform":
4526
+ var _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;
4527
+ return !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === "none" || value === "capitalize" || value === "uppercase" || value === "lowercase";
4528
+ case "FontLineHeight":
4529
+ var _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;
4530
+ return !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;
4531
+ case "FontLetterSpacing":
4532
+ var _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;
4533
+ return !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;
4534
+ case "number":
4535
+ case "string":
4536
+ case "boolean": return (typeof value === "undefined" ? "undefined" : _type_of$11(value)) === resolverName;
4537
+ case "any": return true;
4538
+ }
4539
+ }
4540
+ //#endregion
4541
+ //#region ../web/dist/esm/helpers/warnOnce.native.js
4542
+ function warnOnce(key) {
4543
+ arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
4544
+ }
4545
+ //#endregion
4546
+ //#region ../web/dist/esm/helpers/getVariantExtras.native.js
4547
+ var cache$1 = /* @__PURE__ */ new WeakMap();
4548
+ var getVariantExtras = function(styleState) {
4549
+ var cached = cache$1.get(styleState);
4550
+ if ((cached === null || cached === void 0 ? void 0 : cached.props) === styleState.props) return cached.value;
4551
+ var { props, conf, context, theme, styleProps } = styleState;
4552
+ var styledContext = styleProps.styledContext;
4553
+ var fonts = conf.fontsParsed;
4554
+ if (context === null || context === void 0 ? void 0 : context.language) fonts = getFontsForLanguage(conf.fontsParsed, context.language);
4555
+ var next = {
4556
+ fonts,
4557
+ tokens: conf.tokensParsed,
4558
+ theme,
4559
+ context: styledContext,
4560
+ get fontFamily() {
4561
+ return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
4562
+ },
4563
+ get font() {
4564
+ var found = fonts[this.fontFamily];
4565
+ if (found) return found;
4566
+ var className = props.className;
4567
+ if (typeof className === "string") {
4568
+ var start = 0;
4569
+ for (var index = 0; index <= className.length; index++) {
4570
+ if (index !== className.length && className.charCodeAt(index) > 32) continue;
4571
+ if (index - start > 5 && className.charCodeAt(start) === 102 && className.charCodeAt(start + 1) === 111 && className.charCodeAt(start + 2) === 110 && className.charCodeAt(start + 3) === 116 && className.charCodeAt(start + 4) === 95) {
4572
+ var name = className.slice(start + 5, index);
4573
+ if (fonts[name]) return fonts[name];
4574
+ }
4575
+ start = index + 1;
4576
+ }
4577
+ }
4578
+ return fonts[conf.defaultFontToken];
4579
+ },
4580
+ props
4581
+ };
4582
+ cache$1.set(styleState, {
4583
+ props,
4584
+ value: next
4585
+ });
4586
+ return next;
4587
+ };
4588
+ var fontLanguageCache = /* @__PURE__ */ new WeakMap();
4589
+ function getFontsForLanguage(fonts, language) {
4590
+ if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
4591
+ var next = _objectSpread2(_objectSpread2({}, fonts), Object.fromEntries(Object.entries(language).flatMap(function(param) {
4592
+ var [name, lang] = param;
4593
+ if (lang === "default") return [];
4594
+ return [[name, fonts[`${name}_${lang}`]]];
4595
+ })));
4596
+ fontLanguageCache.set(language, next);
4597
+ return next;
4598
+ }
4599
+ _objectSpread2(_objectSpread2({}, stylePropsAll), {}, {
4600
+ translateX: true,
4601
+ translateY: true
4602
+ });
4603
+ var pxStringRe = /^-?\d*\.?\d+px$/;
4604
+ function normalizeValueWithProperty(value) {
4605
+ arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
4606
+ if (typeof value === "string" && pxStringRe.test(value)) return Number.parseFloat(value);
4607
+ return value;
4608
+ }
4609
+ //#endregion
4610
+ //#region ../web/dist/esm/helpers/styleOriginalValues.native.js
4611
+ var styleOriginalValues = /* @__PURE__ */ new WeakMap();
4612
+ //#endregion
4613
+ //#region ../web/dist/esm/helpers/normalizeStyle.native.js
4614
+ function normalizeStyle(style) {
4615
+ var disableNormalize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, mergeTransforms = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
4616
+ var res = {};
4617
+ var originalValues = styleOriginalValues.get(style);
4618
+ var nextOriginalValues;
4619
+ var transformAccumulator;
4620
+ for (var key in style) {
4621
+ var prop = style[key];
4622
+ if (prop == null) continue;
4623
+ var originalValue = originalValues === null || originalValues === void 0 ? void 0 : originalValues[key];
4624
+ if (mergeTransforms && (key === "transform" || key in stylePropsTransform)) {
4625
+ transformAccumulator || (transformAccumulator = createTransformAccumulator());
4626
+ addTransformValue(transformAccumulator, key, prop);
4627
+ continue;
4628
+ }
4629
+ var value = disableNormalize ? prop : normalizeValueWithProperty(prop, key);
4630
+ var out = mergeTransforms ? void 0 : expandStyle(key, value);
4631
+ if (out) {
4632
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
4633
+ try {
4634
+ for (var _iterator = out[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
4635
+ var [nextKey, nextValue] = _step.value;
4636
+ res[nextKey] = nextValue;
4637
+ if (originalValue !== void 0) {
4638
+ nextOriginalValues || (nextOriginalValues = {});
4639
+ nextOriginalValues[nextKey] = originalValue;
4640
+ }
4641
+ }
4642
+ } catch (err) {
4643
+ _didIteratorError = true;
4644
+ _iteratorError = err;
4645
+ } finally {
4646
+ try {
4647
+ if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
4648
+ } finally {
4649
+ if (_didIteratorError) throw _iteratorError;
4650
+ }
4651
+ }
4652
+ } else {
4653
+ res[key] = value;
4654
+ if (originalValue !== void 0) {
4655
+ nextOriginalValues || (nextOriginalValues = {});
4656
+ nextOriginalValues[key] = originalValue;
4657
+ }
4658
+ }
4659
+ }
4660
+ if (transformAccumulator) res.transform = finalizeTransformAccumulator(transformAccumulator);
4661
+ fixStyles(res);
4662
+ if (nextOriginalValues) styleOriginalValues.set(res, nextOriginalValues);
4368
4663
  return res;
4369
4664
  }
4370
4665
  //#endregion
@@ -4562,60 +4857,6 @@ function parseNativeTransform(raw) {
4562
4857
  return end && !raw.slice(end).trim() ? out : null;
4563
4858
  }
4564
4859
  //#endregion
4565
- //#region ../web/dist/esm/helpers/getVariantExtras.native.js
4566
- var cache$1 = /* @__PURE__ */ new WeakMap();
4567
- var getVariantExtras = function(styleState) {
4568
- var cached = cache$1.get(styleState);
4569
- if ((cached === null || cached === void 0 ? void 0 : cached.props) === styleState.props) return cached.value;
4570
- var { props, conf, context, theme, styleProps } = styleState;
4571
- var styledContext = styleProps.styledContext;
4572
- var fonts = conf.fontsParsed;
4573
- if (context === null || context === void 0 ? void 0 : context.language) fonts = getFontsForLanguage(conf.fontsParsed, context.language);
4574
- var next = {
4575
- fonts,
4576
- tokens: conf.tokensParsed,
4577
- theme,
4578
- context: styledContext,
4579
- get fontFamily() {
4580
- return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
4581
- },
4582
- get font() {
4583
- var found = fonts[this.fontFamily];
4584
- if (found) return found;
4585
- var className = props.className;
4586
- if (typeof className === "string") {
4587
- var start = 0;
4588
- for (var index = 0; index <= className.length; index++) {
4589
- if (index !== className.length && className.charCodeAt(index) > 32) continue;
4590
- if (index - start > 5 && className.charCodeAt(start) === 102 && className.charCodeAt(start + 1) === 111 && className.charCodeAt(start + 2) === 110 && className.charCodeAt(start + 3) === 116 && className.charCodeAt(start + 4) === 95) {
4591
- var name = className.slice(start + 5, index);
4592
- if (fonts[name]) return fonts[name];
4593
- }
4594
- start = index + 1;
4595
- }
4596
- }
4597
- return fonts[conf.defaultFontToken];
4598
- },
4599
- props
4600
- };
4601
- cache$1.set(styleState, {
4602
- props,
4603
- value: next
4604
- });
4605
- return next;
4606
- };
4607
- var fontLanguageCache = /* @__PURE__ */ new WeakMap();
4608
- function getFontsForLanguage(fonts, language) {
4609
- if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
4610
- var next = _objectSpread2(_objectSpread2({}, fonts), Object.fromEntries(Object.entries(language).flatMap(function(param) {
4611
- var [name, lang] = param;
4612
- if (lang === "default") return [];
4613
- return [[name, fonts[`${name}_${lang}`]]];
4614
- })));
4615
- fontLanguageCache.set(language, next);
4616
- return next;
4617
- }
4618
- //#endregion
4619
4860
  //#region ../web/dist/esm/helpers/resolveRem.native.js
4620
4861
  var remRegex = /(-?[\d.]+)rem/g;
4621
4862
  function resolveRem(value) {
@@ -4773,98 +5014,6 @@ function resolveVariableValue(key, valOrVar, resolveValues) {
4773
5014
  return valOrVar;
4774
5015
  }
4775
5016
  //#endregion
4776
- //#region ../web/dist/esm/helpers/themeRef.native.js
4777
- function _type_of$9(obj) {
4778
- "@swc/helpers - typeof";
4779
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4780
- }
4781
- var THEME_REF_PREFIX = "theme:";
4782
- function themeRefKey(value) {
4783
- if (typeof value !== "string" || !value.startsWith("theme:")) return null;
4784
- var key = value.slice(THEME_REF_PREFIX.length);
4785
- return key && !key.includes("/") && !key.includes("theme:") ? key : null;
4786
- }
4787
- function containsThemeRef(value) {
4788
- if (typeof value === "string") return value.includes(THEME_REF_PREFIX);
4789
- if (Array.isArray(value)) return value.some(containsThemeRef);
4790
- if (value && (typeof value === "undefined" ? "undefined" : _type_of$9(value)) === "object") return Object.values(value).some(containsThemeRef);
4791
- return false;
4792
- }
4793
- //#endregion
4794
- //#region ../web/dist/esm/helpers/tokenCategories.native.js
4795
- function mapTokenCategory(keys, category) {
4796
- return Object.fromEntries(Object.keys(keys).map(function(key) {
4797
- return [key, category];
4798
- }));
4799
- }
4800
- var tokenCategoryByProperty = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, mapTokenCategory(tokenCategories.size, "size")), mapTokenCategory(tokenCategories.radius, "radius")), mapTokenCategory(tokenCategories.zIndex, "zIndex")), {}, {
4801
- x: "space",
4802
- y: "space",
4803
- fontSize: "fontSize",
4804
- borderWidth: "space",
4805
- borderTopWidth: "space",
4806
- borderRightWidth: "space",
4807
- borderBottomWidth: "space",
4808
- borderLeftWidth: "space",
4809
- borderBlockWidth: "space",
4810
- borderBlockStartWidth: "space",
4811
- borderBlockEndWidth: "space",
4812
- borderInlineWidth: "space",
4813
- borderInlineStartWidth: "space",
4814
- borderInlineEndWidth: "space",
4815
- outlineOffset: "space",
4816
- outlineWidth: "space",
4817
- gap: "space",
4818
- rowGap: "space",
4819
- columnGap: "space",
4820
- top: "space",
4821
- right: "space",
4822
- bottom: "space",
4823
- left: "space",
4824
- inset: "space",
4825
- insetBlock: "space",
4826
- insetBlockEnd: "space",
4827
- insetBlockStart: "space",
4828
- insetInline: "space",
4829
- insetInlineEnd: "space",
4830
- insetInlineStart: "space",
4831
- margin: "space",
4832
- marginBlock: "space",
4833
- marginBlockEnd: "space",
4834
- marginBlockStart: "space",
4835
- marginInline: "space",
4836
- marginInlineEnd: "space",
4837
- marginInlineStart: "space",
4838
- marginTop: "space",
4839
- marginRight: "space",
4840
- marginBottom: "space",
4841
- marginEnd: "space",
4842
- marginLeft: "space",
4843
- marginHorizontal: "space",
4844
- marginStart: "space",
4845
- marginVertical: "space",
4846
- padding: "space",
4847
- paddingBlock: "space",
4848
- paddingBlockEnd: "space",
4849
- paddingBlockStart: "space",
4850
- paddingInline: "space",
4851
- paddingInlineEnd: "space",
4852
- paddingInlineStart: "space",
4853
- paddingTop: "space",
4854
- paddingRight: "space",
4855
- paddingBottom: "space",
4856
- paddingEnd: "space",
4857
- paddingLeft: "space",
4858
- paddingHorizontal: "space",
4859
- paddingStart: "space",
4860
- paddingVertical: "space"
4861
- });
4862
- function getTokenCategoryForProperty(property) {
4863
- if (property === "fontFamily") return "fontFamily";
4864
- if (property === "fontSize" || property === "fontWeight" || property === "lineHeight" || property === "letterSpacing") return "font";
4865
- return tokenCategoryByProperty[property] || (property in tokenCategories.color ? "color" : void 0);
4866
- }
4867
- //#endregion
4868
5017
  //#region ../web/dist/esm/helpers/webPropsToSkip.native.js
4869
5018
  var { textOverflow: __ } = webOnlyStylePropsText, webOnlyStylePropsTextWithoutTextOverflow = _objectWithoutProperties(webOnlyStylePropsText, ["textOverflow"]);
4870
5019
  var webPropsToSkip = _objectSpread2(_objectSpread2(_objectSpread2({}, webOnlyStylePropsView), webOnlyStylePropsTextWithoutTextOverflow), {}, {
@@ -4938,54 +5087,47 @@ function setStyleTokenProvenance(style, provenance) {
4938
5087
  });
4939
5088
  }
4940
5089
  //#endregion
4941
- //#region ../web/dist/esm/helpers/getSplitStyles.native.js
4942
- function _type_of$8(obj) {
5090
+ //#region ../web/dist/esm/helpers/themeRef.native.js
5091
+ function _type_of$9(obj) {
4943
5092
  "@swc/helpers - typeof";
4944
5093
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4945
5094
  }
4946
- var TAMAGUI_CLASS_PROPS = "$$tamaguiClassProps";
4947
- var shouldTrackStyleTokenProvenance = false;
4948
- function compoundMatcherMatches(expected, actual) {
4949
- if (Array.isArray(expected)) {
4950
- for (var index = 0; index < expected.length; index++) if (expected[index] === actual) return true;
4951
- return false;
4952
- }
4953
- return expected === actual;
5095
+ var THEME_REF_PREFIX = "theme:";
5096
+ function themeRefKey(value) {
5097
+ if (typeof value !== "string" || !value.startsWith("theme:")) return null;
5098
+ var key = value.slice(THEME_REF_PREFIX.length);
5099
+ return key && !key.includes("/") && !key.includes("theme:") ? key : null;
4954
5100
  }
4955
- function compoundMatcherMatchesPayload(expected, source, start, end) {
4956
- if (Array.isArray(expected)) {
4957
- for (var index = 0; index < expected.length; index++) if (compoundMatcherMatchesPayload(expected[index], source, start, end)) return true;
4958
- return false;
4959
- }
4960
- var expectedValue = typeof expected === "string" ? expected : String(expected);
4961
- if (expectedValue.length !== end - start) return false;
4962
- for (var index1 = 0; index1 < expectedValue.length; index1++) if (expectedValue.charCodeAt(index1) !== source.charCodeAt(start + index1)) return false;
4963
- return true;
5101
+ function containsThemeRef(value) {
5102
+ if (typeof value === "string") return value.includes(THEME_REF_PREFIX);
5103
+ if (Array.isArray(value)) return value.some(containsThemeRef);
5104
+ if (value && (typeof value === "undefined" ? "undefined" : _type_of$9(value)) === "object") return Object.values(value).some(containsThemeRef);
5105
+ return false;
4964
5106
  }
4965
- var preparedCompoundsKey = /* @__PURE__ */ Symbol();
4966
- function prepareStaticConfigCompounds(staticConfig) {
4967
- var compoundVariants = staticConfig.compoundVariants;
4968
- var preparedConfig = staticConfig;
4969
- if (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {
4970
- preparedConfig[preparedCompoundsKey] = null;
4971
- return;
4972
- }
4973
- var selectorCounts = [];
4974
- var indexesByKey = /* @__PURE__ */ Object.create(null);
4975
- indexesByKey[preparedCompoundsKey] = selectorCounts;
4976
- for (var index = 0; index < compoundVariants.length; index++) {
4977
- var compoundVariant = compoundVariants[index];
4978
- var selectorCount = 0;
4979
- for (var key in compoundVariant) {
4980
- var _indexesByKey, _key;
4981
- if (key === "style") continue;
4982
- selectorCount++;
4983
- ((_indexesByKey = indexesByKey)[_key = key] || (_indexesByKey[_key] = [])).push(index);
4984
- }
4985
- selectorCounts[index] = selectorCount;
5107
+ //#endregion
5108
+ //#region ../web/dist/esm/helpers/tokenCategories.native.js
5109
+ function getTokenCategoryForProperty(property) {
5110
+ switch (propToTokenCategoryCode[property]) {
5111
+ case 1: return "space";
5112
+ case 2: return "size";
5113
+ case 3: return "radius";
5114
+ case 4: return "zIndex";
5115
+ case 5: return "color";
5116
+ case 6: return "fontFamily";
5117
+ case 7:
5118
+ case 8:
5119
+ case 9:
5120
+ case 10: return "font";
4986
5121
  }
4987
- preparedConfig[preparedCompoundsKey] = indexesByKey;
4988
5122
  }
5123
+ //#endregion
5124
+ //#region ../web/dist/esm/helpers/getSplitStyles.native.js
5125
+ function _type_of$8(obj) {
5126
+ "@swc/helpers - typeof";
5127
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5128
+ }
5129
+ var TAMAGUI_CLASS_PROPS = "$$tamaguiClassProps";
5130
+ var shouldTrackStyleTokenProvenance = false;
4989
5131
  var conditionWidth = 4;
4990
5132
  var conditionValueOffset = 0;
4991
5133
  var conditionFlagsOffset = 1;
@@ -5260,170 +5402,8 @@ function acquireConditionKeyCursor(state, key) {
5260
5402
  }
5261
5403
  return cursor;
5262
5404
  }
5263
- function combineConditionKeys(state, first, second) {
5264
- if (!first) return second;
5265
- if (!second || first === second) return first;
5266
- var watermark = conditionCursorTop;
5267
- var target2 = acquireConditionKeyCursor(state, first);
5268
- resolveConditionText(state, target2, second);
5269
- commitConditionCursor(state, target2);
5270
- var key = conditionTexts[target2 + conditionKeyOffset] || "";
5271
- releaseConditionCursors(watermark);
5272
- return key;
5273
- }
5274
- function freshCompoundState() {
5275
- return {
5276
- seen: 0,
5277
- failed: false,
5278
- matchedBase: false,
5279
- scanned: false,
5280
- pending: null,
5281
- combinations: null
5282
- };
5283
- }
5284
- function beginCompoundEdges(indexes, states) {
5285
- if (!indexes) return;
5286
- for (var index = 0; index < indexes.length; index++) {
5287
- var _states, _indexes_index;
5288
- var state = (_states = states)[_indexes_index = indexes[index]] || (_states[_indexes_index] = freshCompoundState());
5289
- state.pending = null;
5290
- state.matchedBase = false;
5291
- state.scanned = false;
5292
- }
5293
- }
5294
- function feedCompoundSegment(state, source, start, end, isBase, valid, conditionKey) {
5295
- if (state.flatCompoundOutputDepth) return;
5296
- var pass = state.flatPass;
5297
- var indexes = pass[passCompoundIndexes];
5298
- var states = pass[passCompoundStates];
5299
- var key = pass[passCompoundKey];
5300
- if (!indexes || !states || !key) return;
5301
- var compoundVariants = state.staticConfig.compoundVariants;
5302
- for (var index = 0; index < indexes.length; index++) {
5303
- var _states, _compoundIndex;
5304
- var compoundIndex = indexes[index];
5305
- var compoundState = (_states = states)[_compoundIndex = compoundIndex] || (_states[_compoundIndex] = freshCompoundState());
5306
- compoundState.scanned = true;
5307
- if (!valid || start === end || !compoundMatcherMatchesPayload(compoundVariants[compoundIndex][key], source, start, end)) continue;
5308
- if (isBase) compoundState.matchedBase = true;
5309
- else if (!compoundState.matchedBase) {
5310
- var _compoundState;
5311
- ((_compoundState = compoundState).pending || (_compoundState.pending = [])).push(conditionKey);
5312
- }
5313
- }
5314
- }
5315
- var compoundOnlyHandler = {
5316
- segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
5317
- if (isBase) {
5318
- feedCompoundSegment(state, source, start, end, true, valid, "");
5319
- return;
5320
- }
5321
- var cursor = state.flatScanCursor;
5322
- if (!chainValid || !cursor || !(conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) || !conditionNumbers[cursor + conditionValueOffset]) {
5323
- feedCompoundSegment(state, source, start, end, false, false, "");
5324
- return;
5325
- }
5326
- feedCompoundSegment(state, source, start, end, false, valid, conditionTexts[cursor + conditionKeyOffset] || "");
5327
- },
5328
- modifier(state, start, end, valid, first, source) {
5329
- var cursor = state.flatScanCursor;
5330
- if (!cursor) cursor = state.flatScanCursor = acquireConditionCursor();
5331
- else if (first) resetConditionCursor(cursor, 0);
5332
- if (!valid) {
5333
- setConditionUnresolved(cursor);
5334
- return;
5335
- }
5336
- if (conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) resolveConditionModifier(state, cursor, source.slice(start, end));
5337
- },
5338
- chain(state, _start, _end, valid) {
5339
- var cursor = state.flatScanCursor;
5340
- if (cursor) {
5341
- if (!valid) setConditionUnresolved(cursor);
5342
- if (conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) commitConditionCursor(state, cursor);
5343
- }
5344
- return true;
5345
- }
5346
- };
5347
- function finishCompoundEdges(pass, key, value, indexes, states) {
5348
- if (!indexes) return;
5349
- var state = pass[passStyleState];
5350
- pass[passCompoundIndexes] = indexes;
5351
- pass[passCompoundKey] = key;
5352
- pass[passCompoundStates] = states;
5353
- var needsScan = false;
5354
- for (var index = 0; index < indexes.length; index++) {
5355
- var _states, _indexes_index;
5356
- if (!((_states = states)[_indexes_index = indexes[index]] || (_states[_indexes_index] = freshCompoundState())).scanned) {
5357
- needsScan = true;
5358
- break;
5359
- }
5360
- }
5361
- if (needsScan) if (typeof value === "string") {
5362
- var watermark = conditionCursorTop;
5363
- var previousCursor = state.flatScanCursor;
5364
- state.flatScanCursor = null;
5365
- try {
5366
- scanFlatValue(value, compoundOnlyHandler, state);
5367
- } finally {
5368
- state.flatScanCursor = previousCursor;
5369
- releaseConditionCursors(watermark);
5370
- }
5371
- } else if (value && (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object" && !Array.isArray(value) && !isVariable(value) && Object.prototype.hasOwnProperty.call(value, "default")) for (var conditionKey in value) {
5372
- var payload = value[conditionKey];
5373
- if (conditionKey === "default") {
5374
- var payloadString = String(payload);
5375
- feedCompoundSegment(state, payloadString, 0, payloadString.length, true, true, "");
5376
- } else {
5377
- var watermark1 = conditionCursorTop;
5378
- var cursor = acquireConditionCursor();
5379
- resolveConditionText(state, cursor, conditionKey);
5380
- var condition = commitConditionCursor(state, cursor);
5381
- var payloadString1 = String(payload);
5382
- feedCompoundSegment(state, payloadString1, 0, payloadString1.length, false, Boolean(condition), condition ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
5383
- releaseConditionCursors(watermark1);
5384
- }
5385
- }
5386
- else {
5387
- var variants = state.staticConfig.compoundVariants;
5388
- for (var index1 = 0; index1 < indexes.length; index1++) {
5389
- var _states1, _compoundIndex;
5390
- var compoundIndex = indexes[index1];
5391
- var compoundState1 = (_states1 = states)[_compoundIndex = compoundIndex] || (_states1[_compoundIndex] = freshCompoundState());
5392
- compoundState1.scanned = true;
5393
- if (compoundMatcherMatches(variants[compoundIndex][key], value)) compoundState1.matchedBase = true;
5394
- }
5395
- }
5396
- var variants1 = state.staticConfig.compoundVariants;
5397
- var selectorCounts = state.staticConfig[preparedCompoundsKey][preparedCompoundsKey];
5398
- for (var index2 = 0; index2 < indexes.length; index2++) {
5399
- var compoundIndex1 = indexes[index2];
5400
- var compoundState2 = states[compoundIndex1];
5401
- if (compoundState2.failed) continue;
5402
- var branches = compoundState2.matchedBase ? [""] : compoundState2.pending;
5403
- if (!branches || !branches.length) {
5404
- compoundState2.failed = true;
5405
- continue;
5406
- }
5407
- if (!compoundState2.seen) compoundState2.combinations = branches;
5408
- else {
5409
- var previous = compoundState2.combinations;
5410
- var next = [];
5411
- for (var left = 0; left < previous.length; left++) for (var right = 0; right < branches.length; right++) {
5412
- var conditionKey1 = combineConditionKeys(state, previous[left], branches[right]);
5413
- if (!next.includes(conditionKey1)) next.push(conditionKey1);
5414
- }
5415
- compoundState2.combinations = next;
5416
- }
5417
- compoundState2.seen++;
5418
- if (compoundState2.seen !== selectorCounts[compoundIndex1]) continue;
5419
- var style = variants1[compoundIndex1].style;
5420
- if (!isPlainObject(style)) continue;
5421
- var combinations = compoundState2.combinations;
5422
- for (var combination = 0; combination < combinations.length; combination++) for (var styleKey in style) contributeProp(pass, styleKey, style[styleKey], void 0, states, combinations[combination]);
5423
- }
5424
- }
5425
5405
  function classifyConditionalObject(value, state, isChain, firstCursor) {
5426
- if (Object.prototype.hasOwnProperty.call(value, "default")) return -1;
5406
+ if ("default" in value) return -1;
5427
5407
  for (var key in value) {
5428
5408
  if (!key.length) return 0;
5429
5409
  if (!state) return (isChain === null || isChain === void 0 ? void 0 : isChain(key)) ? 1 : 0;
@@ -5446,9 +5426,6 @@ var passFrontendContainer = 27;
5446
5426
  var passFrontendContainerType = 28;
5447
5427
  var passHocMappedProperties = 29;
5448
5428
  var passHocMappedClasses = 30;
5449
- var passCompoundIndexes = 31;
5450
- var passCompoundKey = 32;
5451
- var passCompoundStates = 33;
5452
5429
  var passParentCursor = 35;
5453
5430
  var passMapSourceKey = 36;
5454
5431
  var passMapFlags = 37;
@@ -5460,96 +5437,23 @@ var passHocFlag = 16;
5460
5437
  var passTextFlag = 32;
5461
5438
  var passInputFlag = 64;
5462
5439
  var passAsChildStyleFlag = 128;
5463
- var styledDefaultsCache = /* @__PURE__ */ new WeakMap();
5464
- function getStyledDefaults(staticConfig, shorthands) {
5465
- var prepared = styledDefaultsCache.get(staticConfig);
5466
- if (prepared === void 0) {
5467
- var entries = null;
5468
- var defaults = staticConfig.defaultProps;
5469
- if (defaults) for (var key in defaults) {
5470
- if (!(key in stylePropsAll || key in shorthands)) continue;
5471
- var value = defaults[key];
5472
- if (maybeStyleProgram(value)) (entries || (entries = [])).push(key, value);
5473
- }
5474
- prepared = entries;
5475
- styledDefaultsCache.set(staticConfig, prepared);
5476
- }
5477
- return prepared;
5478
- }
5479
- var maybeStyleProgram = function(value) {
5480
- return typeof value === "string" ? value.indexOf(":") !== -1 : !!value && (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object" && !Array.isArray(value) && !isVariable(value);
5481
- };
5482
- function contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass) {
5483
- if (!styledDefaults) return;
5484
- for (var offset = 0; offset < styledDefaults.length; offset += 2) {
5485
- var key = styledDefaults[offset];
5486
- var value = styledDefaults[offset + 1];
5487
- var propValue = processedProps[key];
5488
- if (propValue !== void 0 && propValue !== value) contributeProp(pass, key, value);
5489
- }
5490
- }
5491
- function injectDisplacedStyledDefault(pass, key, value) {
5492
- var _pass__defaultProps;
5493
- var defaultValue = (_pass__defaultProps = pass[4].defaultProps) === null || _pass__defaultProps === void 0 ? void 0 : _pass__defaultProps[key];
5494
- if (defaultValue === void 0 || value === void 0 || value === defaultValue || maybeStyleProgram(defaultValue)) return;
5495
- var state = pass[passStyleState];
5496
- state.flatWeakContribution = true;
5497
- try {
5498
- contributeProp(pass, key, defaultValue);
5499
- } finally {
5500
- state.flatWeakContribution = false;
5501
- }
5502
- }
5503
5440
  function forEachPropInForwardOrder(pass) {
5504
- var _staticConfig_compoundVariants;
5505
5441
  var styleState = pass[passStyleState];
5506
- var staticConfig = styleState.staticConfig;
5507
5442
  var processedProps = styleState.props;
5508
- var shorthands = styleState.conf.shorthands;
5509
- var processedBaseStyle = staticConfig.baseStyle;
5510
- var styledDefaults = getStyledDefaults(staticConfig, shorthands);
5511
- var directState = styleState;
5512
- var preparedCompounds = staticConfig[preparedCompoundsKey];
5513
- if (preparedCompounds === void 0 && ((_staticConfig_compoundVariants = staticConfig.compoundVariants) === null || _staticConfig_compoundVariants === void 0 ? void 0 : _staticConfig_compoundVariants.length)) throw new Error("A component with compoundVariants reached style resolution before its static config was prepared.");
5443
+ var styleStaticConfig = styleState.flatStyleStaticConfig;
5444
+ var baseStyle = styleStaticConfig.baseStyle;
5445
+ var baseVariantProps = styleStaticConfig.baseVariantProps;
5514
5446
  var conditionWrapperBase = conditionWrapperTop;
5515
- if (!preparedCompounds) {
5516
- try {
5517
- if (processedBaseStyle) for (var key in processedBaseStyle) contributeProp(pass, key, processedBaseStyle[key]);
5518
- contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass);
5519
- for (var key1 in processedProps) {
5520
- var value = processedProps[key1];
5521
- directState.flatPropSawCondition = false;
5522
- contributeProp(pass, key1, value);
5523
- if (directState.flatPropSawCondition) injectDisplacedStyledDefault(pass, key1, value);
5524
- }
5525
- } finally {
5526
- releaseConditionPayloads(conditionWrapperBase);
5527
- }
5528
- return;
5529
- }
5530
- var compoundVariants = staticConfig.compoundVariants;
5531
- var compoundStates = new Array(compoundVariants.length);
5532
5447
  try {
5533
- if (processedBaseStyle) for (var key2 in processedBaseStyle) contributeProp(pass, key2, processedBaseStyle[key2]);
5534
- contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass);
5535
- var selectorCounts = preparedCompounds[preparedCompoundsKey];
5536
- for (var compoundIndex = 0; compoundIndex < compoundVariants.length; compoundIndex++) {
5537
- if (selectorCounts[compoundIndex]) continue;
5538
- var style = compoundVariants[compoundIndex].style;
5539
- if (!isPlainObject(style)) continue;
5540
- for (var key3 in style) contributeProp(pass, key3, style[key3]);
5541
- }
5542
- for (var key4 in processedProps) {
5543
- var compoundIndexes = preparedCompounds[key4];
5544
- var value1 = processedProps[key4];
5545
- beginCompoundEdges(compoundIndexes, compoundStates);
5546
- directState.flatPropSawCondition = false;
5547
- contributeProp(pass, key4, value1, compoundIndexes, compoundStates);
5548
- if (directState.flatPropSawCondition) injectDisplacedStyledDefault(pass, key4, value1);
5549
- finishCompoundEdges(pass, key4, value1, compoundIndexes, compoundStates);
5448
+ var appliesBaseStyle = baseStyle && !processedProps.asChild;
5449
+ if (appliesBaseStyle) for (var key in baseStyle) contributeProp(pass, key, baseVariantProps && Object.hasOwn(baseVariantProps, key) && Object.hasOwn(processedProps, key) ? processedProps[key] : baseStyle[key]);
5450
+ for (var key1 in processedProps) {
5451
+ if (appliesBaseStyle && baseVariantProps && Object.hasOwn(baseVariantProps, key1)) continue;
5452
+ contributeProp(pass, key1, processedProps[key1]);
5550
5453
  }
5551
- } finally {
5454
+ } catch (error) {
5552
5455
  releaseConditionPayloads(conditionWrapperBase);
5456
+ throw error;
5553
5457
  }
5554
5458
  }
5555
5459
  function isValidStyleKey(key, validStyles, accept) {
@@ -5632,13 +5536,8 @@ function mapContributedProp(styleState, key, val, originalVal, condition) {
5632
5536
  viewProps[key] = val;
5633
5537
  }
5634
5538
  }
5635
- function contributeProp(pass, keyOg, valOg, compoundIndexes, compoundStates, parentConditionKey) {
5539
+ function contributeProp(pass, keyOg, valOg, parentConditionKey) {
5636
5540
  var parentWatermark = conditionCursorTop;
5637
- if (compoundIndexes) {
5638
- pass[passCompoundIndexes] = compoundIndexes;
5639
- pass[passCompoundKey] = keyOg;
5640
- pass[passCompoundStates] = compoundStates;
5641
- } else if (pass[passCompoundIndexes]) pass[passCompoundIndexes] = void 0;
5642
5541
  if (parentConditionKey) pass[passParentCursor] = acquireConditionKeyCursor(pass[passStyleState], parentConditionKey);
5643
5542
  try {
5644
5543
  var [styleState, conf, props, viewProps, staticConfig, validStyles, accept, neverSkipProps, variants, inlineProps, parentVariants, styleFrontend, styledContext, styledContextKeys, flags, debug, parentStaticConfig, defaultProps, driverAnimations, driverOutputStyle, elementType] = pass;
@@ -5834,10 +5733,10 @@ function contributeProp(pass, keyOg, valOg, compoundIndexes, compoundStates, par
5834
5733
  releaseConditionCursors(parentWatermark);
5835
5734
  }
5836
5735
  }
5837
- var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {
5838
- var _staticConfig_styleFrontend, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_style;
5736
+ var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
5737
+ var _styleState_style;
5839
5738
  var conf = getConfig();
5840
- if ((_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : _staticConfig_styleFrontend.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);
5739
+ styleStaticConfig || (styleStaticConfig = getStyleStaticConfig(staticConfig, conf));
5841
5740
  var driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;
5842
5741
  var driverAnimations = driver === null || driver === void 0 ? void 0 : driver.animations;
5843
5742
  driver === null || driver === void 0 || driver.inputStyle;
@@ -5845,7 +5744,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
5845
5744
  var resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;
5846
5745
  if (props.passThrough) return null;
5847
5746
  var { shorthands } = conf;
5848
- var { isHOC, isText, isInput, variants, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;
5747
+ var { isHOC, isText, isInput, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;
5748
+ var variants = styleStaticConfig.variants;
5849
5749
  var viewProps = {};
5850
5750
  var mediaState$1 = styleProps.mediaState || mediaState;
5851
5751
  var shouldDoClasses = !process.env.TAMAGUI_DID_OUTPUT_CSS && acceptsClassName && false;
@@ -5877,129 +5777,82 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
5877
5777
  flatGroupContext: groupContext,
5878
5778
  animationDriver: resolvedDriver
5879
5779
  };
5780
+ styleState.flatStyleStaticConfig = styleStaticConfig;
5880
5781
  var { asChild } = props;
5881
5782
  var { accept, neverSkipProps } = staticConfig;
5882
- var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext, styledContextKeys } = styleProps;
5783
+ var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext } = styleProps;
5784
+ var styledContextKeys = styleStaticConfig.styledContextKeys;
5883
5785
  var styleFrontend = staticConfig.styleFrontend;
5884
5786
  var frontendGroup;
5885
5787
  var frontendContainer;
5886
5788
  var frontendContainerType;
5887
- var parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;
5888
- var defaultProps = asChild ? getDefaultProps(staticConfig) : void 0;
5789
+ var parentVariants = parentStaticConfig ? getStyleStaticConfig(parentStaticConfig, conf).variants : void 0;
5790
+ var defaultProps = asChild ? styleStaticConfig.defaultProps : void 0;
5889
5791
  var asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
5890
5792
  var containerValue;
5891
5793
  var containerName;
5892
5794
  var containerType;
5893
5795
  var hocMappedClassProperties;
5894
5796
  var hocMappedClasses;
5895
- var stylePassFlags = (noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0);
5896
5797
  var pass = [
5897
5798
  styleState,
5898
5799
  conf,
5899
5800
  props,
5900
- viewProps,
5901
- staticConfig,
5902
- validStyles$1,
5903
- accept,
5904
- neverSkipProps,
5905
- variants,
5906
- inlineProps,
5907
- parentVariants,
5908
- styleFrontend,
5909
- styledContext,
5910
- styledContextKeys,
5911
- stylePassFlags,
5912
- debug,
5913
- parentStaticConfig,
5914
- defaultProps,
5915
- driverAnimations,
5916
- driverOutputStyle,
5917
- elementType,
5918
- className,
5919
- shouldDoClasses,
5920
- containerValue,
5921
- containerName,
5922
- containerType,
5923
- frontendGroup,
5924
- frontendContainer,
5925
- frontendContainerType,
5926
- hocMappedClassProperties,
5927
- hocMappedClasses
5928
- ];
5929
- styleState.flatPass = pass;
5930
- forEachPropInForwardOrder(pass);
5931
- [, , , , , , , , , , , , , , , , , , , , , className, shouldDoClasses, containerValue, containerName, containerType, frontendGroup, frontendContainer, frontendContainerType, hocMappedClassProperties, hocMappedClasses] = pass;
5932
- var conditionalStates = styleState.flatStateKeys || null;
5933
- var usesSafeArea = !!styleState.flatUsesSafeArea;
5934
- if ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) {
5935
- if (!hasMedia) hasMedia = /* @__PURE__ */ new Set();
5936
- if (typeof hasMedia !== "boolean") {
5937
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
5938
- try {
5939
- for (var _iterator2 = styleState.flatMediaKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
5940
- var key = _step2.value;
5941
- hasMedia.add(key);
5942
- }
5943
- } catch (err) {
5944
- _didIteratorError2 = true;
5945
- _iteratorError2 = err;
5946
- } finally {
5947
- try {
5948
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
5949
- } finally {
5950
- if (_didIteratorError2) throw _iteratorError2;
5951
- }
5952
- }
5953
- }
5954
- }
5955
- if ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {
5956
- pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
5957
- var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
5958
- try {
5959
- for (var _iterator12 = styleState.flatGroupKeys[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
5960
- var key1 = _step12.value;
5961
- pseudoGroups.add(key1);
5962
- }
5963
- } catch (err) {
5964
- _didIteratorError12 = true;
5965
- _iteratorError12 = err;
5966
- } finally {
5967
- try {
5968
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
5969
- } finally {
5970
- if (_didIteratorError12) throw _iteratorError12;
5971
- }
5972
- }
5973
- }
5974
- if ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {
5975
- mediaGroups || (mediaGroups = /* @__PURE__ */ new Set());
5976
- var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;
5977
- try {
5978
- for (var _iterator22 = styleState.flatGroupMedia[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {
5979
- var key2 = _step22.value;
5980
- mediaGroups.add(key2);
5981
- }
5982
- } catch (err) {
5983
- _didIteratorError22 = true;
5984
- _iteratorError22 = err;
5985
- } finally {
5986
- try {
5987
- if (!_iteratorNormalCompletion22 && _iterator22.return != null) _iterator22.return();
5988
- } finally {
5989
- if (_didIteratorError22) throw _iteratorError22;
5990
- }
5991
- }
5992
- }
5993
- if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
5994
- shouldDoClasses = false;
5995
- styleState.flatShouldDoClasses = false;
5996
- if (styleState.transformAccumulator) {
5997
- mergeStyle(styleState, "transform", finalizeTransformAccumulator(styleState.transformAccumulator), 1, true);
5998
- styleState.transformAccumulator = void 0;
5999
- }
6000
- convertDeferredInline(styleState, mergeStyle);
5801
+ viewProps,
5802
+ staticConfig,
5803
+ validStyles$1,
5804
+ accept,
5805
+ neverSkipProps,
5806
+ variants,
5807
+ inlineProps,
5808
+ parentVariants,
5809
+ styleFrontend,
5810
+ styledContext,
5811
+ styledContextKeys,
5812
+ (noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0),
5813
+ debug,
5814
+ parentStaticConfig,
5815
+ defaultProps,
5816
+ driverAnimations,
5817
+ driverOutputStyle,
5818
+ elementType,
5819
+ className,
5820
+ shouldDoClasses,
5821
+ containerValue,
5822
+ containerName,
5823
+ containerType,
5824
+ frontendGroup,
5825
+ frontendContainer,
5826
+ frontendContainerType,
5827
+ hocMappedClassProperties,
5828
+ hocMappedClasses
5829
+ ];
5830
+ styleState.flatPass = pass;
5831
+ var conditionalStates = null;
5832
+ var usesSafeArea = false;
5833
+ var conditionWrapperBase = conditionWrapperTop;
5834
+ try {
5835
+ var _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia;
5836
+ forEachPropInForwardOrder(pass);
5837
+ [, , , , , , , , , , , , , , , , , , , , , className, shouldDoClasses, containerValue, containerName, containerType, frontendGroup, frontendContainer, frontendContainerType, hocMappedClassProperties, hocMappedClasses] = pass;
5838
+ conditionalStates = styleState.flatStateKeys || null;
5839
+ usesSafeArea = !!styleState.flatUsesSafeArea;
5840
+ hasMedia = ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) ? styleState.flatMediaKeys : false;
5841
+ pseudoGroups = ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) ? styleState.flatGroupKeys : void 0;
5842
+ mediaGroups = ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) ? styleState.flatGroupMedia : void 0;
5843
+ if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
5844
+ shouldDoClasses = false;
5845
+ styleState.flatShouldDoClasses = false;
5846
+ if (styleState.transformAccumulator) {
5847
+ mergeStyle(styleState, "transform", finalizeTransformAccumulator(styleState.transformAccumulator), true);
5848
+ styleState.transformAccumulator = void 0;
5849
+ }
5850
+ convertDeferredInline(styleState, mergeStyle);
5851
+ }
5852
+ completeStreaming(styleState, mergeStyle);
5853
+ } finally {
5854
+ releaseConditionPayloads(conditionWrapperBase);
6001
5855
  }
6002
- completeStreaming(styleState, mergeStyle);
6003
5856
  var effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;
6004
5857
  if (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;
6005
5858
  if (styleState.style) {
@@ -6017,11 +5870,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
6017
5870
  styleState.style.transform = finalizeTransformAccumulator(styleState.transformAccumulator);
6018
5871
  }
6019
5872
  if (parentSplitStyles) {
6020
- if (!shouldDoClasses) for (var key4 in parentSplitStyles.style) {
5873
+ if (!shouldDoClasses) for (var key1 in parentSplitStyles.style) {
6021
5874
  var _styleState1;
6022
- if (key4 in classNames || styleState.style && key4 in styleState.style) continue;
5875
+ if (key1 in classNames || styleState.style && key1 in styleState.style) continue;
6023
5876
  (_styleState1 = styleState).style || (_styleState1.style = {});
6024
- styleState.style[key4] = parentSplitStyles.style[key4];
5877
+ styleState.style[key1] = parentSplitStyles.style[key1];
6025
5878
  }
6026
5879
  }
6027
5880
  }
@@ -6048,9 +5901,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
6048
5901
  if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
6049
5902
  var provenance = {};
6050
5903
  var hasProvenance = false;
6051
- for (var key5 in styleState.tokenProvenance) {
6052
- provenance[key5] = {
6053
- token: styleState.tokenProvenance[key5],
5904
+ for (var key2 in styleState.tokenProvenance) {
5905
+ provenance[key2] = {
5906
+ token: styleState.tokenProvenance[key2],
6054
5907
  theme: themeName
6055
5908
  };
6056
5909
  hasProvenance = true;
@@ -6089,11 +5942,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
6089
5942
  }
6090
5943
  return result;
6091
5944
  };
6092
- function mergeStyle(styleState, key, val, _importance) {
6093
- arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
6094
- var originalVal = arguments.length > 5 ? arguments[5] : void 0;
5945
+ function mergeStyle(styleState, key, val) {
5946
+ arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
5947
+ var originalVal = arguments.length > 4 ? arguments[4] : void 0;
6095
5948
  var { viewProps, styleProps, staticConfig } = styleState;
6096
- var contextPropSet = getContextPropSet(staticConfig);
5949
+ var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
6097
5950
  if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
6098
5951
  var _styleState_originalContextPropValues;
6099
5952
  var _styleState;
@@ -6125,8 +5978,8 @@ function recordStyleTokenProvenance(styleState, key, originalVal) {
6125
5978
  var opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));
6126
5979
  if (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);
6127
5980
  }
6128
- if (tokenName !== "" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || ""]) || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some(function(category) {
6129
- return Object.prototype.hasOwnProperty.call(category, tokenName);
5981
+ if (tokenName !== "" && (tokenName in styleState.theme || tokenName in (((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || ""]) || {}) || Object.values(styleState.conf.tokensParsed).some(function(category) {
5982
+ return tokenName in category;
6130
5983
  }))) {
6131
5984
  var _styleState;
6132
5985
  ((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;
@@ -6150,7 +6003,7 @@ var resolveAcceptedStyle = function(styleState, styleIn) {
6150
6003
  childState.flatSingleEntries = void 0;
6151
6004
  childState.flatSlots = void 0;
6152
6005
  childState.flatBorderDefaultRequests = void 0;
6153
- var mergeAccepted = function(_state, key2, value2, _importance, disableNormalize, originalValue) {
6006
+ var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
6154
6007
  styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : normalizeValueWithProperty(value2, key2);
6155
6008
  var _styleInOriginalValues_key;
6156
6009
  var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
@@ -6180,12 +6033,9 @@ function streamWriteInline(state, property, value, cursor, merge, original) {
6180
6033
  var importance = condition ? Math.floor(condition / 256) + 1 : 0;
6181
6034
  var used = (_direct = direct).flatUsed || (_direct.flatUsed = {});
6182
6035
  var previous = used[property];
6183
- if (previous !== void 0) {
6184
- if (previous > importance) return;
6185
- if (direct.flatWeakContribution === true) return;
6186
- }
6036
+ if (previous !== void 0 && previous > importance) return;
6187
6037
  used[property] = importance;
6188
- merge(state, property, value, 1, !normalize, original);
6038
+ merge(state, property, value, !normalize, original);
6189
6039
  }
6190
6040
  function streamRetractInline(state, property, cursor) {
6191
6041
  var _direct;
@@ -6199,19 +6049,13 @@ function streamRetractInline(state, property, cursor) {
6199
6049
  if (state.style) delete state.style[property];
6200
6050
  }
6201
6051
  function convertDeferredInline(state, merge) {
6202
- var _direct;
6203
6052
  var direct = state;
6204
- var used = (_direct = direct).flatUsed || (_direct.flatUsed = {});
6205
6053
  var consume = function(entries) {
6206
6054
  for (var index = 0; index < entries.length; index++) {
6207
6055
  var entry = entries[index];
6208
- var condition = entry.condition;
6056
+ var condition = entry[2];
6209
6057
  if (condition && !(condition & 1)) continue;
6210
- var importance = condition ? Math.floor(condition / 256) + 1 : 0;
6211
- var previous = used[entry.property];
6212
- if (previous !== void 0 && previous > importance) continue;
6213
- used[entry.property] = importance;
6214
- merge(state, entry.property, entry.value, 1, true, entry.original !== void 0 ? entry.original : entry.value);
6058
+ streamWriteInline(state, entry[0], entry[1], null, merge, entry[8] !== void 0 ? entry[8] : entry[1], false, condition);
6215
6059
  }
6216
6060
  };
6217
6061
  var slots = direct.flatSlots;
@@ -6248,7 +6092,6 @@ function emitAtParentCondition(state, property, value, merge, originalValue, con
6248
6092
  }
6249
6093
  function emitUnderCondition(state, property, value, cursor, merge, originalValue, contextOnly, warnMode, warnSource) {
6250
6094
  var condition = conditionNumbers[cursor + conditionValueOffset];
6251
- if (merge && property && condition) state.flatPropSawCondition = true;
6252
6095
  if (!(conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag)) return 0;
6253
6096
  conditionTexts[cursor + conditionUnsupportedStateOffset];
6254
6097
  if (merge && property && condition & 2 && (condition & 1 || warnMode === 1 && conditionTexts[cursor + conditionThemeOffset] && supportsDynamicColorIOS && isColorStyleKey(property))) {
@@ -6265,10 +6108,8 @@ function emitUnderCondition(state, property, value, cursor, merge, originalValue
6265
6108
  }
6266
6109
  var directStyleHandler = {
6267
6110
  segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid, chainCount, _result, failure, failureIndex, property, merge, originalValue, contextOnly) {
6268
- var _directState_flatPass;
6269
6111
  if (isBase) {
6270
6112
  if (start === end) return;
6271
- feedCompoundSegment(state, source, start, end, true, valid || failure === "invalid-character" || failure === "stray-comment-close", "");
6272
6113
  if (!valid) {
6273
6114
  if (failure === "invalid-character" || failure === "stray-comment-close") return 16;
6274
6115
  return;
@@ -6284,10 +6125,8 @@ var directStyleHandler = {
6284
6125
  var right = Number(source.slice(start, end));
6285
6126
  if (chainStart < chainEnd && Number.isFinite(left) && left > 0 && Number.isFinite(right) && right > 0) return 12;
6286
6127
  }
6287
- var directState = state;
6288
- var cursor = directState.flatScanCursor;
6128
+ var cursor = state.flatScanCursor;
6289
6129
  var condition = valid ? emitUnderCondition(state, property, source.slice(start, end), cursor, merge, void 0, contextOnly, 1, source) : conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0;
6290
- feedCompoundSegment(directState, source, start, end, false, valid && Boolean(condition), condition && ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
6291
6130
  if (!condition) return;
6292
6131
  if (!valid) return;
6293
6132
  return 4 | (condition & 12 ? 2 : 0);
@@ -6463,17 +6302,6 @@ function tokenVariable(state, property, name) {
6463
6302
  var _state_conf_tokensParsed_category;
6464
6303
  var own = (_state_conf_tokensParsed_category = state.conf.tokensParsed[category]) === null || _state_conf_tokensParsed_category === void 0 ? void 0 : _state_conf_tokensParsed_category[lookupName];
6465
6304
  if (own) return fillTokenLookup(own, false, lookupName);
6466
- for (var _i = 0, _iter = [
6467
- "color",
6468
- "space",
6469
- "size",
6470
- "radius",
6471
- "zIndex"
6472
- ]; _i < _iter.length; _i++) {
6473
- var sibling = _iter[_i];
6474
- var _state_conf_tokensParsed_sibling;
6475
- if (sibling !== category && ((_state_conf_tokensParsed_sibling = state.conf.tokensParsed[sibling]) === null || _state_conf_tokensParsed_sibling === void 0 ? void 0 : _state_conf_tokensParsed_sibling[lookupName])) return;
6476
- }
6477
6305
  } else {
6478
6306
  var first = lookupName.charCodeAt(0);
6479
6307
  if (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;
@@ -6668,8 +6496,8 @@ function emitProperty(state, property, value, cursor, merge, originalValue, cont
6668
6496
  }
6669
6497
  if (contextOnly) {
6670
6498
  if (!condition || condition & 1) {
6671
- var _state2;
6672
- ((_state2 = state).overriddenContextProps || (_state2.overriddenContextProps = {}))[property] = originalValue;
6499
+ var _state3;
6500
+ ((_state3 = state).overriddenContextProps || (_state3.overriddenContextProps = {}))[property] = originalValue;
6673
6501
  }
6674
6502
  return;
6675
6503
  }
@@ -7087,14 +6915,11 @@ function contributeStyleObject(state, property, value, merge, contextOnly) {
7087
6915
  }
7088
6916
  function contributeStyleObjectInner(state, property, value, merge, contextOnly) {
7089
6917
  var _directState_flatPass;
7090
- var directState = state;
7091
- var parent = ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passParentCursor]) || null;
7092
- var hasDefault = Object.prototype.hasOwnProperty.call(value, "default");
6918
+ var parent = ((_directState_flatPass = state.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passParentCursor]) || null;
6919
+ var hasDefault = "default" in value;
7093
6920
  var hasBase = false;
7094
6921
  var base = hasDefault ? value.default : void 0;
7095
6922
  if (base != null) {
7096
- var baseString = String(base);
7097
- feedCompoundSegment(directState, baseString, 0, baseString.length, true, true, "");
7098
6923
  emitAtParentCondition(state, property, base, merge, base, contextOnly);
7099
6924
  hasBase = true;
7100
6925
  }
@@ -7114,12 +6939,7 @@ function contributeStyleObjectInner(state, property, value, merge, contextOnly)
7114
6939
  return false;
7115
6940
  }
7116
6941
  }
7117
- if (payload != null) {
7118
- var _directState_flatPass1;
7119
- conditions |= emitUnderCondition(state, property, payload, cursor, merge, payload, contextOnly, 1, payload);
7120
- var payloadString = String(payload);
7121
- feedCompoundSegment(directState, payloadString, 0, payloadString.length, false, Boolean(condition), condition && ((_directState_flatPass1 = directState.flatPass) === null || _directState_flatPass1 === void 0 ? void 0 : _directState_flatPass1[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
7122
- }
6942
+ if (payload != null) conditions |= emitUnderCondition(state, property, payload, cursor, merge, payload, contextOnly, 1, payload);
7123
6943
  releaseConditionCursors(watermark);
7124
6944
  }
7125
6945
  if (!hasDefault && firstCondition) return false;
@@ -7132,13 +6952,16 @@ function contributeStyleObjectInner(state, property, value, merge, contextOnly)
7132
6952
  function contributeValue(state, property, value, merge, originalValue) {
7133
6953
  var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false, condition = arguments.length > 6 ? arguments[6] : void 0;
7134
6954
  if (isConditionTransport(value)) {
7135
- if (value.hasBase) contributeValue(state, property, value.base, merge, value.base, contextOnly);
7136
- for (var offset = 0; offset < value.entries.length;) {
7137
- var entryValue = value.entries[offset];
6955
+ if (value[transportHasBase]) {
6956
+ var base = value[transportBase];
6957
+ contributeValue(state, property, base, merge, base, contextOnly);
6958
+ }
6959
+ for (var offset = transportEntries; offset < value.length;) {
6960
+ var entryValue = value[offset];
7138
6961
  var watermark = conditionCursorTop;
7139
6962
  try {
7140
6963
  var _state_flatPass;
7141
- emitUnderCondition(state, property, entryValue, acquireTransportCursor(state, value.entries, offset, ((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor]) || null), merge, entryValue, contextOnly, 2, entryValue);
6964
+ emitUnderCondition(state, property, entryValue, acquireTransportCursor(state, value, offset, ((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor]) || null), merge, entryValue, contextOnly, 2, entryValue);
7142
6965
  } finally {
7143
6966
  releaseConditionCursors(watermark);
7144
6967
  }
@@ -7164,7 +6987,7 @@ function contributeValue(state, property, value, merge, originalValue) {
7164
6987
  commitConditionCursor(state, effective);
7165
6988
  } else effective = condition;
7166
6989
  var isObjectValue = value && (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object" && !Array.isArray(value) && !isVariable(value);
7167
- var objectHasDefault = isObjectValue && Object.prototype.hasOwnProperty.call(value, "default");
6990
+ var objectHasDefault = isObjectValue && "default" in value;
7168
6991
  var firstChild = isObjectValue && !objectHasDefault ? acquireConditionCursor(effective) : null;
7169
6992
  if (isObjectValue && classifyConditionalObject(value, state, void 0, firstChild || void 0)) {
7170
6993
  var useFirstChild = firstChild !== null;
@@ -7232,17 +7055,20 @@ function clearDirectStyle(state, property) {
7232
7055
  if (state.style) delete state.style[atomicKey];
7233
7056
  delete state.classNames[atomicKey];
7234
7057
  }
7235
- var conditionTransports = /* @__PURE__ */ new WeakSet();
7058
+ var conditionTransportTag = /* @__PURE__ */ Symbol();
7059
+ var transportHasBase = 1;
7060
+ var transportBase = 2;
7061
+ var transportEntries = 3;
7062
+ var transportEntryWidth = 2;
7236
7063
  function isConditionTransport(value) {
7237
- return (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object" && value !== null && conditionTransports.has(value);
7064
+ return Array.isArray(value) && value[0] === conditionTransportTag;
7238
7065
  }
7239
- var transportEntryWidth = 2;
7240
- function appendConditionEntry(entries, cursor, value) {
7241
- entries.push(value, conditionTexts[cursor + conditionKeyOffset] || "");
7066
+ function appendConditionEntry(transport, cursor, value) {
7067
+ transport.push(value, conditionTexts[cursor + conditionKeyOffset] || "");
7242
7068
  }
7243
- function acquireTransportCursor(state, entries, offset, parent) {
7069
+ function acquireTransportCursor(state, transport, offset, parent) {
7244
7070
  var cursor = acquireConditionCursor(parent);
7245
- var key = entries[offset + 1];
7071
+ var key = transport[offset + 1];
7246
7072
  if (key) resolveConditionText(state, cursor, key);
7247
7073
  commitConditionCursor(state, cursor);
7248
7074
  return cursor;
@@ -7251,15 +7077,14 @@ function mergeConditionTransport(state, prev, cursor, value) {
7251
7077
  var transport;
7252
7078
  if (isConditionTransport(prev)) transport = prev;
7253
7079
  else {
7254
- transport = {
7255
- hasBase: false,
7256
- base: void 0,
7257
- entries: []
7258
- };
7259
- conditionTransports.add(transport);
7080
+ transport = [
7081
+ conditionTransportTag,
7082
+ false,
7083
+ void 0
7084
+ ];
7260
7085
  if (prev != null) {
7261
7086
  var isObjectValue = (typeof prev === "undefined" ? "undefined" : _type_of$8(prev)) === "object" && !Array.isArray(prev) && !isVariable(prev);
7262
- var objectHasDefault = isObjectValue && Object.prototype.hasOwnProperty.call(prev, "default");
7087
+ var objectHasDefault = isObjectValue && "default" in prev;
7263
7088
  var authoredWatermark = conditionCursorTop;
7264
7089
  try {
7265
7090
  var firstCursor = isObjectValue && !objectHasDefault ? acquireConditionCursor() : null;
@@ -7269,8 +7094,8 @@ function mergeConditionTransport(state, prev, cursor, value) {
7269
7094
  var payload = prev[key];
7270
7095
  if (payload == null) continue;
7271
7096
  if (key === "default") {
7272
- transport.hasBase = true;
7273
- transport.base = payload;
7097
+ transport[transportHasBase] = true;
7098
+ transport[transportBase] = payload;
7274
7099
  continue;
7275
7100
  }
7276
7101
  var watermark = conditionCursorTop;
@@ -7280,12 +7105,12 @@ function mergeConditionTransport(state, prev, cursor, value) {
7280
7105
  resolveConditionText(state, keyCursor, key);
7281
7106
  commitConditionCursor(state, keyCursor);
7282
7107
  }
7283
- appendConditionEntry(transport.entries, keyCursor, payload);
7108
+ appendConditionEntry(transport, keyCursor, payload);
7284
7109
  if (keyCursor !== firstCursor) releaseConditionCursors(watermark);
7285
7110
  }
7286
7111
  } else {
7287
- transport.hasBase = true;
7288
- transport.base = prev;
7112
+ transport[transportHasBase] = true;
7113
+ transport[transportBase] = prev;
7289
7114
  }
7290
7115
  } finally {
7291
7116
  releaseConditionCursors(authoredWatermark);
@@ -7293,30 +7118,25 @@ function mergeConditionTransport(state, prev, cursor, value) {
7293
7118
  }
7294
7119
  }
7295
7120
  var cursorKey = conditionTexts[cursor + conditionKeyOffset] || "";
7296
- for (var offset = 0; offset < transport.entries.length; offset += transportEntryWidth) if (transport.entries[offset + 1] === cursorKey) {
7297
- transport.entries.splice(offset, transportEntryWidth);
7121
+ for (var offset = transportEntries; offset < transport.length; offset += transportEntryWidth) if (transport[offset + 1] === cursorKey) {
7122
+ transport.splice(offset, transportEntryWidth);
7298
7123
  break;
7299
7124
  }
7300
- appendConditionEntry(transport.entries, cursor, value);
7125
+ appendConditionEntry(transport, cursor, value);
7301
7126
  return transport;
7302
7127
  }
7303
7128
  var variantValueHandler = {
7304
7129
  segment(ctx, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
7305
- var _directState_flatPass;
7306
7130
  var state = ctx[0];
7307
- var directState = state;
7308
7131
  if (start === end) return;
7309
7132
  if (isBase) {
7310
- feedCompoundSegment(directState, source, start, end, true, valid, "");
7311
7133
  if (!valid) return;
7312
7134
  emitResolvedVariant(ctx[1], source.slice(start, end), state, ctx[2], null);
7313
7135
  return;
7314
7136
  }
7315
7137
  if (!valid || !chainValid) return;
7316
- var cursor = directState.flatScanCursor;
7317
- var condition = cursor && conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0;
7318
- feedCompoundSegment(directState, source, start, end, false, Boolean(condition), condition && ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
7319
- if (!condition) return;
7138
+ var cursor = state.flatScanCursor;
7139
+ if (!(cursor && conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0)) return;
7320
7140
  emitResolvedVariant(ctx[1], source.slice(start, end), state, ctx[2], cursor);
7321
7141
  },
7322
7142
  modifier(ctx, start, end, valid, first, source) {
@@ -7339,80 +7159,6 @@ var variantValueHandler = {
7339
7159
  return true;
7340
7160
  }
7341
7161
  };
7342
- var contextPropSets = /* @__PURE__ */ new WeakMap();
7343
- function getContextPropSet(staticConfig) {
7344
- var _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _staticConfig_parentStaticConfig_context, _staticConfig_parentStaticConfig3;
7345
- var cached = contextPropSets.get(staticConfig);
7346
- if (cached !== void 0) return cached;
7347
- var contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);
7348
- var inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;
7349
- var contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;
7350
- var set = null;
7351
- if (contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props) {
7352
- set || (set = /* @__PURE__ */ new Set());
7353
- for (var key in contextConfig.props) set.add(key);
7354
- }
7355
- if (contextPropKeys) {
7356
- set || (set = /* @__PURE__ */ new Set());
7357
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
7358
- try {
7359
- for (var _iterator2 = contextPropKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
7360
- var key1 = _step2.value;
7361
- set.add(key1);
7362
- }
7363
- } catch (err) {
7364
- _didIteratorError2 = true;
7365
- _iteratorError2 = err;
7366
- } finally {
7367
- try {
7368
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
7369
- } finally {
7370
- if (_didIteratorError2) throw _iteratorError2;
7371
- }
7372
- }
7373
- }
7374
- if (contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.propKeys) {
7375
- set || (set = /* @__PURE__ */ new Set());
7376
- var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
7377
- try {
7378
- for (var _iterator12 = contextConfig.propKeys[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
7379
- var key2 = _step12.value;
7380
- set.add(key2);
7381
- }
7382
- } catch (err) {
7383
- _didIteratorError12 = true;
7384
- _iteratorError12 = err;
7385
- } finally {
7386
- try {
7387
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
7388
- } finally {
7389
- if (_didIteratorError12) throw _iteratorError12;
7390
- }
7391
- }
7392
- }
7393
- var parentPropKeys = (_staticConfig_parentStaticConfig3 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig3 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context = _staticConfig_parentStaticConfig3.context) === null || _staticConfig_parentStaticConfig_context === void 0 ? void 0 : _staticConfig_parentStaticConfig_context.propKeys;
7394
- if (parentPropKeys) {
7395
- set || (set = /* @__PURE__ */ new Set());
7396
- var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;
7397
- try {
7398
- for (var _iterator22 = parentPropKeys[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {
7399
- var key3 = _step22.value;
7400
- set.add(key3);
7401
- }
7402
- } catch (err) {
7403
- _didIteratorError22 = true;
7404
- _iteratorError22 = err;
7405
- } finally {
7406
- try {
7407
- if (!_iteratorNormalCompletion22 && _iterator22.return != null) _iterator22.return();
7408
- } finally {
7409
- if (_didIteratorError22) throw _iteratorError22;
7410
- }
7411
- }
7412
- }
7413
- contextPropSets.set(staticConfig, set);
7414
- return set;
7415
- }
7416
7162
  function emitMappedValue(styleState, key, value, originalValue, nestedCondition, parentCondition, fallbackOriginal) {
7417
7163
  var nested = nestedCondition;
7418
7164
  var parent = parentCondition;
@@ -7433,8 +7179,8 @@ function emitMappedValue(styleState, key, value, originalValue, nestedCondition,
7433
7179
  }
7434
7180
  var contributeMappedValue = function(key, value, styleState, disabled, parentCondition, fallbackOriginal) {
7435
7181
  if (disabled) return emitMappedValue(styleState, key, value, void 0, void 0, parentCondition, fallbackOriginal);
7436
- var { conf, styleProps, staticConfig } = styleState;
7437
- var { variants } = staticConfig;
7182
+ var { conf, styleProps } = styleState;
7183
+ var variants = styleState.flatStyleStaticConfig.variants;
7438
7184
  var { disableExpandShorthands, noExpand, resolveValues } = styleProps;
7439
7185
  var shorthands = conf.shorthands;
7440
7186
  if (value === "unset") {
@@ -7505,15 +7251,15 @@ var contributeMappedValue = function(key, value, styleState, disabled, parentCon
7505
7251
  }
7506
7252
  };
7507
7253
  function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
7508
- var _styleState_staticConfig_variants;
7509
- var variantDefinition = (_styleState_staticConfig_variants = styleState.staticConfig.variants) === null || _styleState_staticConfig_variants === void 0 ? void 0 : _styleState_staticConfig_variants[key];
7254
+ var _styleState_flatStyleStaticConfig_variants;
7255
+ var variantDefinition = (_styleState_flatStyleStaticConfig_variants = styleState.flatStyleStaticConfig.variants) === null || _styleState_flatStyleStaticConfig_variants === void 0 ? void 0 : _styleState_flatStyleStaticConfig_variants[key];
7510
7256
  if (isConditionTransport(value)) {
7511
- if (value.hasBase) emitResolvedVariant(key, value.base, styleState, parentVariantKey, null);
7512
- for (var offset = 0; offset < value.entries.length;) {
7513
- var entryValue = value.entries[offset];
7257
+ if (value[transportHasBase]) emitResolvedVariant(key, value[transportBase], styleState, parentVariantKey, null);
7258
+ for (var offset = transportEntries; offset < value.length;) {
7259
+ var entryValue = value[offset];
7514
7260
  var watermark = conditionCursorTop;
7515
7261
  try {
7516
- emitResolvedVariant(key, entryValue, styleState, parentVariantKey, acquireTransportCursor(styleState, value.entries, offset, null));
7262
+ emitResolvedVariant(key, entryValue, styleState, parentVariantKey, acquireTransportCursor(styleState, value, offset, null));
7517
7263
  } finally {
7518
7264
  releaseConditionCursors(watermark);
7519
7265
  }
@@ -7539,32 +7285,27 @@ function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
7539
7285
  return;
7540
7286
  }
7541
7287
  var isObjectValue = value && (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object" && !Array.isArray(value) && !isVariable(value);
7542
- var objectHasDefault = isObjectValue && Object.prototype.hasOwnProperty.call(value, "default");
7288
+ var objectHasDefault = isObjectValue && "default" in value;
7543
7289
  var objectWatermark = conditionCursorTop;
7544
7290
  try {
7545
7291
  var firstCursor = isObjectValue && !objectHasDefault ? acquireConditionCursor() : null;
7546
7292
  if (isObjectValue && classifyConditionalObject(value, styleState, void 0, firstCursor || void 0)) {
7547
7293
  var useFirstCursor = firstCursor !== null;
7548
7294
  for (var objKey in value) {
7549
- var _directState_flatPass;
7550
7295
  var payload = value[objKey];
7551
7296
  if (payload == null) continue;
7552
- var directState1 = styleState;
7553
- var payloadString = String(payload);
7554
7297
  if (objKey === "default") {
7555
- feedCompoundSegment(directState1, payloadString, 0, payloadString.length, true, true, "");
7556
7298
  emitResolvedVariant(key, payload, styleState, parentVariantKey, null);
7557
7299
  continue;
7558
7300
  }
7559
7301
  var watermark2 = conditionCursorTop;
7560
7302
  var cursor1 = useFirstCursor ? firstCursor : acquireConditionCursor();
7561
- var condition = conditionNumbers[cursor1 + conditionValueOffset];
7303
+ conditionNumbers[cursor1 + conditionValueOffset];
7562
7304
  if (useFirstCursor) useFirstCursor = false;
7563
7305
  else {
7564
7306
  resolveConditionText(styleState, cursor1, objKey);
7565
- condition = commitConditionCursor(styleState, cursor1);
7307
+ commitConditionCursor(styleState, cursor1);
7566
7308
  }
7567
- if ((_directState_flatPass = directState1.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) feedCompoundSegment(directState1, payloadString, 0, payloadString.length, false, Boolean(condition), condition ? conditionTexts[cursor1 + conditionKeyOffset] || "" : "");
7568
7309
  emitResolvedVariant(key, payload, styleState, parentVariantKey, cursor1);
7569
7310
  if (cursor1 !== firstCursor) releaseConditionCursors(watermark2);
7570
7311
  }
@@ -7576,46 +7317,32 @@ function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
7576
7317
  emitResolvedVariant(key, value, styleState, parentVariantKey, null);
7577
7318
  }
7578
7319
  function emitResolvedVariant(key, value, styleState, parentVariantKey, conditionCursor) {
7579
- var { staticConfig, conf, debug } = styleState;
7320
+ var { conf, debug } = styleState;
7580
7321
  var styleProps = styleState.styleProps;
7581
- var { variants } = staticConfig;
7322
+ var variants = styleState.flatStyleStaticConfig.variants;
7582
7323
  if (!variants) return;
7583
7324
  var variant = variants[key];
7584
7325
  var variantValue = getVariantDefinition(variant, value, conf, styleState);
7585
- if (!variantValue) {
7586
- if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1") {
7587
- if (typeof value !== "boolean") {
7588
- var name = styleState.styleProps.displayName || "[UnnamedComponent]";
7589
- console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value}"`);
7590
- }
7591
- }
7592
- return;
7593
- }
7326
+ if (!variantValue) return;
7594
7327
  if (typeof variantValue === "function") variantValue = variantValue(value, getVariantExtras(styleState));
7595
7328
  if (!isObj(variantValue)) return;
7596
7329
  var { noSkip } = styleProps;
7597
7330
  var originals = styleOriginalValues.get(variantValue);
7598
- var directState = styleState;
7599
- directState.flatCompoundOutputDepth = (directState.flatCompoundOutputDepth || 0) + 1;
7600
- try {
7601
- for (var outputKey in variantValue) {
7602
- if (!noSkip && outputKey in skipProps) continue;
7603
- var rawOutputValue = variantValue[outputKey];
7604
- var outputValue = styleProps.noNormalize ? rawOutputValue : normalizeValueWithProperty(rawOutputValue, conf.shorthands[outputKey] || outputKey);
7605
- var _originals_outputKey;
7606
- var originalValue = (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : rawOutputValue;
7607
- var contextPropSet = getContextPropSet(staticConfig);
7608
- if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(outputKey)) {
7609
- var _styleState, _styleState1;
7610
- (_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
7611
- styleState.overriddenContextProps[outputKey] = originalValue;
7612
- (_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});
7613
- styleState.originalContextPropValues[outputKey] = originalValue;
7614
- }
7615
- contributeMappedValue(outputKey, outputValue, styleState, parentVariantKey === key && outputKey === key, conditionCursor || void 0, originalValue);
7616
- }
7617
- } finally {
7618
- directState.flatCompoundOutputDepth--;
7331
+ for (var outputKey in variantValue) {
7332
+ if (!noSkip && outputKey in skipProps) continue;
7333
+ var rawOutputValue = variantValue[outputKey];
7334
+ var outputValue = styleProps.noNormalize ? rawOutputValue : normalizeValueWithProperty(rawOutputValue, conf.shorthands[outputKey] || outputKey);
7335
+ var _originals_outputKey;
7336
+ var originalValue = (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : rawOutputValue;
7337
+ var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
7338
+ if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(outputKey)) {
7339
+ var _styleState, _styleState1;
7340
+ (_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
7341
+ styleState.overriddenContextProps[outputKey] = originalValue;
7342
+ (_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});
7343
+ styleState.originalContextPropValues[outputKey] = originalValue;
7344
+ }
7345
+ contributeMappedValue(outputKey, outputValue, styleState, parentVariantKey === key && outputKey === key, conditionCursor || void 0, originalValue);
7619
7346
  }
7620
7347
  }
7621
7348
  function getFontFamilyFromNameOrVariable(input, conf) {
@@ -7632,127 +7359,6 @@ function getFontFamilyFromNameOrVariable(input, conf) {
7632
7359
  } else if (typeof input === "string" && input in conf.fontsParsed) return input;
7633
7360
  }
7634
7361
  var variableToFontNameCache = /* @__PURE__ */ new WeakMap();
7635
- function getVariantDefinition(variant, value, conf, param) {
7636
- var { theme } = param;
7637
- if (!variant) return;
7638
- if (value === void 0) return;
7639
- if (typeof variant === "function") return variant;
7640
- if (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];
7641
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
7642
- try {
7643
- for (var _iterator2 = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
7644
- var { key, parts } = _step2.value;
7645
- var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
7646
- try {
7647
- for (var _iterator12 = parts[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
7648
- var part3 = _step12.value;
7649
- if (matchesVariantResolver(part3, value, conf, theme)) return variant[key];
7650
- }
7651
- } catch (err) {
7652
- _didIteratorError12 = true;
7653
- _iteratorError12 = err;
7654
- } finally {
7655
- try {
7656
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
7657
- } finally {
7658
- if (_didIteratorError12) throw _iteratorError12;
7659
- }
7660
- }
7661
- }
7662
- } catch (err) {
7663
- _didIteratorError2 = true;
7664
- _iteratorError2 = err;
7665
- } finally {
7666
- try {
7667
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
7668
- } finally {
7669
- if (_didIteratorError2) throw _iteratorError2;
7670
- }
7671
- }
7672
- }
7673
- var variantResolverNameSet = new Set(variantResolverNames);
7674
- var variantResolverCache = /* @__PURE__ */ new WeakMap();
7675
- var preparedStyleStaticConfigs = /* @__PURE__ */ new WeakSet();
7676
- function prepareStyleStaticConfig(staticConfig) {
7677
- if (preparedStyleStaticConfigs.has(staticConfig)) return staticConfig;
7678
- preparedStyleStaticConfigs.add(staticConfig);
7679
- getContextPropSet(staticConfig);
7680
- prepareStaticConfigCompounds(staticConfig);
7681
- var variants = staticConfig.variants;
7682
- if (variants) for (var key in variants) {
7683
- var variant = variants[key];
7684
- if (variant && (typeof variant === "undefined" ? "undefined" : _type_of$8(variant)) === "object") getCompiledVariantResolvers(variant);
7685
- }
7686
- return staticConfig;
7687
- }
7688
- function getCompiledVariantResolvers(variant) {
7689
- var cached = variantResolverCache.get(variant);
7690
- if (cached) return cached;
7691
- var compiled = [];
7692
- for (var key in variant) {
7693
- var parts = parseVariantResolverKey(key);
7694
- if (parts) compiled.push({
7695
- key,
7696
- parts
7697
- });
7698
- }
7699
- variantResolverCache.set(variant, compiled);
7700
- return compiled;
7701
- }
7702
- function parseVariantResolverKey(key) {
7703
- if (!key) return null;
7704
- var parts = [];
7705
- var start = 0;
7706
- for (var index = 0; index <= key.length; index++) {
7707
- if (index !== key.length && key.charCodeAt(index) !== 124) continue;
7708
- var partStart = start;
7709
- var partEnd = index;
7710
- while (partStart < partEnd && key.charCodeAt(partStart) <= 32) partStart++;
7711
- while (partEnd > partStart && key.charCodeAt(partEnd - 1) <= 32) partEnd--;
7712
- if (partStart === partEnd) return null;
7713
- var part3 = key.slice(partStart, partEnd);
7714
- if (!variantResolverNameSet.has(part3)) return null;
7715
- parts.push(part3);
7716
- start = index + 1;
7717
- }
7718
- return parts;
7719
- }
7720
- function hasNumericPrefix(value, suffixLength) {
7721
- if (value.length <= suffixLength) return false;
7722
- return Number.isFinite(Number(value.slice(0, value.length - suffixLength)));
7723
- }
7724
- function matchesVariantResolver(resolverName, value, conf, theme) {
7725
- var string = typeof value === "string";
7726
- var number = typeof value === "number";
7727
- var rem = string && value.endsWith("rem") && hasNumericPrefix(value, 3);
7728
- switch (resolverName) {
7729
- case "Size":
7730
- case "Space":
7731
- case "Radius":
7732
- case "ZIndex": return value === true || number || string || resolverName !== "Size" && isVariable(value);
7733
- case "Color": return value != null && value in conf.tokensParsed.color || string;
7734
- case "Theme": return string && !!theme && value in theme;
7735
- case "FontSize":
7736
- var _conf_fontsParsed_body_size, _conf_fontsParsed_body;
7737
- return value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;
7738
- case "FontStyle":
7739
- var _conf_fontsParsed_body_style, _conf_fontsParsed_body1;
7740
- return !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === "normal" || value === "italic";
7741
- case "FontTransform":
7742
- var _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;
7743
- return !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === "none" || value === "capitalize" || value === "uppercase" || value === "lowercase";
7744
- case "FontLineHeight":
7745
- var _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;
7746
- return !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;
7747
- case "FontLetterSpacing":
7748
- var _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;
7749
- return !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;
7750
- case "number":
7751
- case "string":
7752
- case "boolean": return (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === resolverName;
7753
- case "any": return true;
7754
- }
7755
- }
7756
7362
  //#endregion
7757
7363
  //#region ../web/dist/esm/helpers/mergeSlotStyleProps.native.js
7758
7364
  var isEventHandler = /^on[A-Z]/;
@@ -8185,9 +7791,9 @@ var isDisabled = function(props) {
8185
7791
  var _props_accessibilityState;
8186
7792
  return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props["aria-disabled"] || props.accessibilityDisabled || false;
8187
7793
  };
8188
- var useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m) {
7794
+ var useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
8189
7795
  "use no memo";
8190
- var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
7796
+ var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m, n);
8191
7797
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS && false);
8192
7798
  return res;
8193
7799
  };
@@ -8199,9 +7805,9 @@ function setupHooks(next) {
8199
7805
  }
8200
7806
  //#endregion
8201
7807
  //#region ../web/dist/esm/views/Slot.native.js
8202
- var _excluded$7 = ["children"];
7808
+ var _excluded$6 = ["children"];
8203
7809
  var Slot = /* @__PURE__ */ (0, react.memo)(createRefComponent(function Slot2(props, forwardedRef) {
8204
- var { children } = props, slotProps = _objectWithoutProperties(props, _excluded$7);
7810
+ var { children } = props, slotProps = _objectWithoutProperties(props, _excluded$6);
8205
7811
  if (/* @__PURE__ */ (0, react.isValidElement)(children)) {
8206
7812
  var mergedProps = mergeSlotProps(children, slotProps);
8207
7813
  return /* @__PURE__ */ (0, react.cloneElement)(children, children.type["avoidForwardRef"] ? mergedProps : _objectSpread2(_objectSpread2({}, mergedProps), {}, { ref: composeRefs(forwardedRef, children.props.ref) }));
@@ -8292,7 +7898,7 @@ function getThemedChildren(themeState, children, props) {
8292
7898
  }
8293
7899
  //#endregion
8294
7900
  //#region ../web/dist/esm/createComponent.native.js
8295
- var _excluded$6 = [
7901
+ var _excluded$5 = [
8296
7902
  "group",
8297
7903
  "hasDynGroupChildren",
8298
7904
  "unmounted",
@@ -8352,24 +7958,30 @@ var hasSetupBaseViews = false;
8352
7958
  var lastInteractionWasKeyboard = { value: false };
8353
7959
  var lastInteractionWasTouch = { value: false };
8354
7960
  function createComponent(staticConfig) {
8355
- var _staticConfig_context;
8356
7961
  if (process.env.TAMAGUI_RUNTIME === "zero") throw new Error(`[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.`);
8357
- prepareStyleStaticConfig(staticConfig);
8358
7962
  var config = null;
8359
7963
  var resolvedDefaultProps;
8360
- var didResolveDefaultProps = false;
8361
- var styledContextPropKeys = staticConfig.contextProps || ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.propKeys);
8362
- var styledContextKeys = styledContextPropKeys ? new Set(styledContextPropKeys) : void 0;
7964
+ var resolvedStyleRevision = -1;
7965
+ var resolvedStyleStaticConfig;
8363
7966
  var { Component, isText, isHOC } = staticConfig;
8364
7967
  var res;
7968
+ var { displayName } = staticConfig;
8365
7969
  var component = function(propsInWithRef) {
8366
7970
  "use no memo";
8367
7971
  var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
8368
7972
  var _stateRef_current;
8369
- var displayName = res[componentDisplayName];
8370
7973
  var forwardedRef = propsInWithRef.ref;
8371
7974
  var propsIn = propsInWithRef;
8372
7975
  config = config || getConfig();
7976
+ var styleRevision = getConfigRevisionState(config).revision;
7977
+ if (resolvedStyleRevision !== styleRevision) {
7978
+ resolvedStyleRevision = styleRevision;
7979
+ var nextStyleStaticConfig = getStyleStaticConfig(staticConfig, config);
7980
+ resolvedStyleStaticConfig = nextStyleStaticConfig;
7981
+ resolvedDefaultProps = nextStyleStaticConfig.defaultProps;
7982
+ }
7983
+ var styleStaticConfig = resolvedStyleStaticConfig;
7984
+ styleStaticConfig.styledContextKeys;
8373
7985
  if (!hasSetupBaseViews) {
8374
7986
  var _hooks_getBaseViews;
8375
7987
  hasSetupBaseViews = true;
@@ -8393,10 +8005,6 @@ function createComponent(staticConfig) {
8393
8005
  var hasTextAncestor = false;
8394
8006
  var isInsideNativeMenu = isAndroid ? react.default.useContext(NativeMenuContext) : false;
8395
8007
  var props = propsIn;
8396
- if (!didResolveDefaultProps) {
8397
- didResolveDefaultProps = true;
8398
- resolvedDefaultProps = getDefaultProps(staticConfig);
8399
- }
8400
8008
  var [nextProps, overrides] = mergeComponentProps(resolvedDefaultProps, styledContextValue, propsIn);
8401
8009
  props = nextProps;
8402
8010
  overriddenContextProps = overrides;
@@ -8477,11 +8085,10 @@ function createComponent(staticConfig) {
8477
8085
  willBeAnimated,
8478
8086
  canPlatformPseudo: componentState.platformPseudo,
8479
8087
  displayName,
8480
- styledContext: styledContextValue,
8481
- styledContextKeys
8088
+ styledContext: styledContextValue
8482
8089
  };
8483
8090
  var themeName = (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "";
8484
- var splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver);
8091
+ var splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
8485
8092
  var finalizedComponentState = componentState.finalizeStyleFlags(!!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasEnterStyle), !!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.platformPseudo));
8486
8093
  hasEnterStyle = finalizedComponentState.hasEnterStyle;
8487
8094
  isAnimated = finalizedComponentState.isAnimated;
@@ -8592,7 +8199,7 @@ function createComponent(staticConfig) {
8592
8199
  return true;
8593
8200
  }
8594
8201
  var proxiedTheme = getThemeProxied(themeStateProps, nextTheme, { current: null }, { current: null });
8595
- var nextStyles = getSplitStyles(props, staticConfig, proxiedTheme, stateName, state, _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: getMedia() }), null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver);
8202
+ var nextStyles = getSplitStyles(props, staticConfig, proxiedTheme, stateName, state, _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: getMedia() }), null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
8596
8203
  if (!(nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style)) return false;
8597
8204
  pushViewState(stateName, nextStyles.style);
8598
8205
  return true;
@@ -8664,7 +8271,7 @@ function createComponent(staticConfig) {
8664
8271
  let updateGroupListeners2 = function() {
8665
8272
  var updatedState = stateRef.current.nextState;
8666
8273
  if (groupContext) {
8667
- var { group, hasDynGroupChildren, unmounted, transition } = updatedState, childrenGroupState = _objectWithoutProperties(updatedState, _excluded$6);
8274
+ var { group, hasDynGroupChildren, unmounted, transition } = updatedState, childrenGroupState = _objectWithoutProperties(updatedState, _excluded$5);
8668
8275
  notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
8669
8276
  }
8670
8277
  };
@@ -8678,7 +8285,7 @@ function createComponent(staticConfig) {
8678
8285
  }
8679
8286
  var updatedState = stateRef.current.nextState || state;
8680
8287
  var mediaState2 = stateRef.current.nextMedia;
8681
- var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver);
8288
+ var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
8682
8289
  var _nextStyles_effectiveTransition, _ref5;
8683
8290
  var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
8684
8291
  stateRef.current.prevPseudoState = extractPseudoState(updatedState);
@@ -9056,6 +8663,10 @@ function createComponent(staticConfig) {
9056
8663
  res = component;
9057
8664
  res = /* @__PURE__ */ react.default.memo(res);
9058
8665
  res.staticConfig = staticConfig;
8666
+ if (displayName) {
8667
+ res.displayName = displayName;
8668
+ res[componentDisplayName] = displayName;
8669
+ }
9059
8670
  return res;
9060
8671
  }
9061
8672
  var fromPx = function(val) {
@@ -9225,54 +8836,24 @@ var isTamaguiElement = function(child) {
9225
8836
  return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
9226
8837
  };
9227
8838
  //#endregion
9228
- //#region ../web/dist/esm/helpers/themeable.native.js
9229
- var _excluded$5 = [
9230
- "theme",
9231
- "themeReset",
9232
- "ref"
9233
- ];
9234
- function themeable(Component, staticConfig) {
9235
- var optimize = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
9236
- var withTheme = function WithTheme(props) {
9237
- "use no memo";
9238
- var userDefaults = getDefaultProps(staticConfig);
9239
- var defaultTheme = userDefaults === null || userDefaults === void 0 ? void 0 : userDefaults.theme;
9240
- var defaultResetTheme = userDefaults === null || userDefaults === void 0 ? void 0 : userDefaults.themeReset;
9241
- var { theme, themeReset, ref } = props, rest = _objectWithoutProperties(props, _excluded$5);
9242
- var overriddenContextProps;
9243
- var context = staticConfig === null || staticConfig === void 0 ? void 0 : staticConfig.context;
9244
- if (context) for (var key in context.props) {
9245
- var val = props[key];
9246
- if (val !== void 0) {
9247
- overriddenContextProps = overriddenContextProps || {};
9248
- overriddenContextProps[key] = val;
9249
- }
9250
- }
9251
- var element = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, _objectSpread2(_objectSpread2({ ref }, rest), {}, { "data-disable-theme": true }));
9252
- var filteredProps = null;
9253
- if ("debug" in props) {
9254
- filteredProps = filteredProps || {};
9255
- filteredProps.debug = props.debug;
9256
- }
9257
- if ("theme" in props || defaultTheme) {
9258
- filteredProps = filteredProps || {};
9259
- filteredProps.name = "theme" in props ? props.theme : defaultTheme;
9260
- }
9261
- if ("themeReset" in props || defaultResetTheme) {
9262
- filteredProps = filteredProps || {};
9263
- filteredProps.reset = "themeReset" in props ? themeReset : defaultResetTheme;
9264
- }
9265
- if (optimize && !filteredProps) return element;
9266
- var contents = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, _objectSpread2(_objectSpread2({ "disable-child-theme": true }, filteredProps), {}, { children: element }));
9267
- if (context) {
9268
- var Provider = context.Provider;
9269
- var contextValue = react.default.useContext(context);
9270
- contents = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Provider, _objectSpread2(_objectSpread2(_objectSpread2({}, contextValue), overriddenContextProps), {}, { children: contents }));
9271
- }
9272
- return contents;
9273
- };
9274
- withTheme.displayName = `Themed(${(Component === null || Component === void 0 ? void 0 : Component.displayName) || (Component === null || Component === void 0 ? void 0 : Component.name) || "Anonymous"})`;
9275
- return withTheme;
8839
+ //#region ../web/dist/esm/helpers/splitStyleProps.native.js
8840
+ function splitStyleProps(props) {
8841
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8842
+ var styleProps = {};
8843
+ var regularProps = {};
8844
+ var { expandShorthands = false, filter } = options;
8845
+ var shorthands = getConfig().shorthands;
8846
+ var filterIsFunction = typeof filter === "function";
8847
+ var propsRecord = props;
8848
+ for (var originalKey in props) {
8849
+ if (!Object.hasOwn(props, originalKey)) continue;
8850
+ var value = propsRecord[originalKey];
8851
+ var key = shorthands[originalKey] || originalKey;
8852
+ var isStyleProp = key in stylePropsAll;
8853
+ if (filter ? filterIsFunction ? filter(key, value, originalKey, isStyleProp) : Object.hasOwn(filter, key) : isStyleProp) styleProps[expandShorthands ? key : originalKey] = value;
8854
+ else regularProps[originalKey] = value;
8855
+ }
8856
+ return [styleProps, regularProps];
9276
8857
  }
9277
8858
  //#endregion
9278
8859
  //#region ../web/dist/esm/helpers/wrapStyleTags.native.js
@@ -9331,6 +8912,7 @@ function createChangeEventDetails(reason, event, trigger, extra) {
9331
8912
  //#endregion
9332
8913
  //#region ../web/dist/esm/createStyledHOC.native.js
9333
8914
  var _excluded$4 = ["ref"];
8915
+ var _excluded2$1 = ["theme"];
9334
8916
  function createStyledHOC(component, render, options) {
9335
8917
  var staticConfig = component.staticConfig;
9336
8918
  var extendedConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, staticConfig), options === null || options === void 0 ? void 0 : options.staticConfig), {}, {
@@ -9339,13 +8921,34 @@ function createStyledHOC(component, render, options) {
9339
8921
  isStyledHOC: false
9340
8922
  });
9341
8923
  var out = function StyledHOCComponent(props) {
9342
- var { ref } = props;
9343
- return render(_objectWithoutProperties(props, _excluded$4), ref);
8924
+ "use no memo";
8925
+ var _extendedConfig_defaultProps;
8926
+ var { ref } = props, rest = _objectWithoutProperties(props, _excluded$4);
8927
+ if (options === null || options === void 0 ? void 0 : options.disableTheme) return render(rest, ref);
8928
+ var defaultTheme = (_extendedConfig_defaultProps = extendedConfig.defaultProps) === null || _extendedConfig_defaultProps === void 0 ? void 0 : _extendedConfig_defaultProps.theme;
8929
+ var { theme: _ } = rest;
8930
+ var element = render(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(rest, _excluded2$1)), {}, { "data-disable-theme": true }), ref);
8931
+ var themeProps = null;
8932
+ if ("debug" in props) themeProps = { debug: props.debug };
8933
+ if ("theme" in props || defaultTheme) (themeProps || (themeProps = {})).name = "theme" in props ? props.theme : defaultTheme;
8934
+ if (!themeProps) return element;
8935
+ var context = extendedConfig.context;
8936
+ if (!context) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, _objectSpread2(_objectSpread2({ "disable-child-theme": true }, themeProps), {}, { children: element }));
8937
+ var contextValue = react.default.useContext(context);
8938
+ var overriddenContextProps;
8939
+ for (var key in context.props) {
8940
+ var value = props[key];
8941
+ if (value !== void 0) (overriddenContextProps || (overriddenContextProps = {}))[key] = value;
8942
+ }
8943
+ var Provider = context.Provider;
8944
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Provider, _objectSpread2(_objectSpread2(_objectSpread2({}, contextValue), overriddenContextProps), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, _objectSpread2(_objectSpread2({ "disable-child-theme": true }, themeProps), {}, { children: element })) }));
9344
8945
  };
9345
- out = (options === null || options === void 0 ? void 0 : options.disableTheme) ? out : themeable(out, extendedConfig, true);
9346
8946
  if (extendedConfig.memo || process.env.TAMAGUI_MEMOIZE_STYLED_HOC) out = /* @__PURE__ */ react.default.memo(out);
9347
8947
  var displayName = (options === null || options === void 0 ? void 0 : options.displayName) || component[componentDisplayName];
9348
- setComponentDisplayName(out, displayName);
8948
+ if (displayName) {
8949
+ out.displayName = displayName;
8950
+ out[componentDisplayName] = displayName;
8951
+ }
9349
8952
  out.staticConfig = extendedConfig;
9350
8953
  return out;
9351
8954
  }
@@ -10092,7 +9695,7 @@ function validateNoTrueTokenKeys(tokens) {
10092
9695
  for (var category in tokens) {
10093
9696
  var tokenSet = tokens[category];
10094
9697
  if (!tokenSet || (typeof tokenSet === "undefined" ? "undefined" : _type_of$1(tokenSet)) !== "object") continue;
10095
- if (Object.prototype.hasOwnProperty.call(tokenSet, "true")) throw new Error(`tokens.${category}.true is reserved because boolean values select component defaults. Use an explicit token name instead.`);
9698
+ if ("true" in tokenSet) throw new Error(`tokens.${category}.true is reserved because boolean values select component defaults. Use an explicit token name instead.`);
10096
9699
  }
10097
9700
  }
10098
9701
  //#endregion
@@ -10151,65 +9754,19 @@ var RNConfigs = {
10151
9754
  default: { isReactNative: true }
10152
9755
  };
10153
9756
  //#endregion
9757
+ //#region ../web/dist/esm/types.native.js
9758
+ function createVariantResolver(key, resolver) {
9759
+ return resolver;
9760
+ }
9761
+ //#endregion
10154
9762
  //#region ../web/dist/esm/styled.native.js
10155
9763
  var _excluded$2 = [
10156
- "variants",
10157
- "displayName",
10158
- "defaultVariants",
10159
- "context"
10160
- ];
10161
- var _excluded2$1 = [
10162
9764
  "variants",
10163
9765
  "displayName",
10164
9766
  "defaultVariants",
10165
9767
  "context",
10166
- "contextProps",
10167
- "compoundVariants"
9768
+ "contextProps"
10168
9769
  ];
10169
- var textLikeElements = /* @__PURE__ */ new Set([
10170
- "a",
10171
- "abbr",
10172
- "b",
10173
- "bdi",
10174
- "bdo",
10175
- "cite",
10176
- "code",
10177
- "data",
10178
- "del",
10179
- "dfn",
10180
- "em",
10181
- "i",
10182
- "ins",
10183
- "kbd",
10184
- "label",
10185
- "mark",
10186
- "q",
10187
- "s",
10188
- "samp",
10189
- "small",
10190
- "span",
10191
- "strong",
10192
- "sub",
10193
- "sup",
10194
- "time",
10195
- "u",
10196
- "var"
10197
- ]);
10198
- function styledHtml(tag, options) {
10199
- var isText = textLikeElements.has(tag);
10200
- var _ref = options || {}, { variants, displayName, defaultVariants, context } = _ref, defaultProps = _objectWithoutProperties(_ref, _excluded$2);
10201
- var conf = {
10202
- Component: tag,
10203
- variants,
10204
- defaultProps,
10205
- defaultVariants,
10206
- isText,
10207
- acceptsClassName: true,
10208
- context
10209
- };
10210
- if (defaultProps["children"] || context) conf.neverFlatten = true;
10211
- return setComponentDisplayName(createComponent(conf), displayName);
10212
- }
10213
9770
  function styled() {
10214
9771
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
10215
9772
  return styledImpl(void 0, ...args);
@@ -10229,11 +9786,10 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10229
9786
  var Component = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isStyledHOC) || isPlainStyledComponent ? ComponentIn : (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.Component) || ComponentIn;
10230
9787
  var reactNativeConfig = !parentStaticConfig ? getReactNativeConfig(Component) : void 0;
10231
9788
  var resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);
10232
- var component = setComponentDisplayName(createComponent((function() {
10233
- var _ref2 = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps, compoundVariants } = _ref2, defaultProps = _objectWithoutProperties(_ref2, _excluded2$1);
9789
+ var component = createComponent((function() {
9790
+ var _ref = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref, defaultProps = _objectWithoutProperties(_ref, _excluded$2);
10234
9791
  var parentDefaultVariants;
10235
9792
  var parentDefaultProps;
10236
- var parentCompoundVariants;
10237
9793
  var mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);
10238
9794
  if (parentStaticConfig) {
10239
9795
  if (!(parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC)) {
@@ -10254,10 +9810,8 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10254
9810
  }
10255
9811
  }
10256
9812
  if (parentStaticConfig.variants) variants = mergeVariants(parentStaticConfig.variants, variants);
10257
- parentCompoundVariants = parentStaticConfig.compoundVariants;
10258
9813
  }
10259
9814
  }
10260
- var mergedCompoundVariants = parentCompoundVariants || compoundVariants ? [...parentCompoundVariants || [], ...compoundVariants || []] : void 0;
10261
9815
  var mergedContext = context || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.context);
10262
9816
  var mergedContextProps = context ? contextProps : contextProps || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.contextProps);
10263
9817
  if (parentDefaultProps || defaultVariants || parentDefaultVariants) defaultProps = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentDefaultProps), parentDefaultVariants), defaultProps), defaultVariants);
@@ -10266,7 +9820,6 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10266
9820
  var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
10267
9821
  var conf = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentStaticConfig), config), !isPlainStyledComponent && { Component }), {}, {
10268
9822
  variants,
10269
- compoundVariants: mergedCompoundVariants,
10270
9823
  baseClassName: mergedBaseClassName,
10271
9824
  defaultProps,
10272
9825
  defaultVariants,
@@ -10277,11 +9830,12 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10277
9830
  contextProps: mergedContextProps
10278
9831
  }, reactNativeConfig), {}, {
10279
9832
  isStyledHOC: Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC),
10280
- parentStaticConfig
9833
+ parentStaticConfig,
9834
+ displayName: displayName || ComponentIn[componentDisplayName]
10281
9835
  }, frontend && { styleFrontend: frontend });
10282
9836
  if (defaultProps["children"] || !acceptsClassName || mergedContext) conf.neverFlatten = true;
10283
9837
  return conf;
10284
- })() || {}), displayName || ComponentIn[componentDisplayName]);
9838
+ })() || {});
10285
9839
  for (var key in ComponentIn) {
10286
9840
  if (key === "propTypes") continue;
10287
9841
  if (key in component) continue;
@@ -10289,12 +9843,6 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10289
9843
  }
10290
9844
  return component;
10291
9845
  }
10292
- var styledExport = new Proxy(styled, { get(target, prop) {
10293
- if (prop in target) return target[prop];
10294
- return function(options) {
10295
- return styledHtml(prop, options);
10296
- };
10297
- } });
10298
9846
  //#endregion
10299
9847
  //#region ../web/dist/esm/hooks/useIsTouchDevice.native.js
10300
9848
  var useIsTouchDevice = function() {
@@ -10325,95 +9873,6 @@ var useAnimatedNumberReaction = function(opts, onValue) {
10325
9873
  return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);
10326
9874
  };
10327
9875
  //#endregion
10328
- //#region ../web/dist/esm/views/View.native.js
10329
- var viewStaticConfig = {
10330
- acceptsClassName: true,
10331
- validStyles
10332
- };
10333
- var View$2 = setComponentDisplayName(createComponent(viewStaticConfig), "View");
10334
- //#endregion
10335
- //#region ../web/dist/esm/hooks/useProps.native.js
10336
- function useProps(props, opts) {
10337
- var [propsOut, styleOut] = usePropsAndStyle(props, _objectSpread2(_objectSpread2({}, opts), {}, {
10338
- noExpand: true,
10339
- noNormalize: true,
10340
- resolveValues: "none"
10341
- }));
10342
- return _objectSpread2(_objectSpread2({}, propsOut), styleOut);
10343
- }
10344
- function useStyle(props, opts) {
10345
- return usePropsAndStyle(props, opts)[1] || {};
10346
- }
10347
- function usePropsAndStyle(props, opts) {
10348
- var _opts_forComponent;
10349
- var _opts_forComponent_staticConfig;
10350
- var staticConfig = (_opts_forComponent_staticConfig = opts === null || opts === void 0 ? void 0 : (_opts_forComponent = opts.forComponent) === null || _opts_forComponent === void 0 ? void 0 : _opts_forComponent.staticConfig) !== null && _opts_forComponent_staticConfig !== void 0 ? _opts_forComponent_staticConfig : View$2.staticConfig;
10351
- var [theme, themeState] = useThemeWithState({
10352
- name: "theme" in props ? props.theme : void 0,
10353
- needsUpdate() {
10354
- return true;
10355
- }
10356
- });
10357
- var componentContext = react.default.useContext(ComponentContext);
10358
- var groupContext = react.default.useContext(GroupContext);
10359
- var componentState = useComponentState(props, componentContext.animationDriver, staticConfig, getConfig());
10360
- var { props: statefulProps, state, disabled, setState, setStateShallow } = componentState;
10361
- var mediaStateNow = (opts === null || opts === void 0 ? void 0 : opts.noMedia) ? mediaState : useMedia();
10362
- var splitStyles = useSplitStyles(statefulProps, staticConfig, theme, (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "", state, _objectSpread2({
10363
- isAnimated: false,
10364
- mediaState: mediaStateNow,
10365
- noSkip: true,
10366
- noMergeStyle: true,
10367
- noClass: true,
10368
- resolveValues: "auto"
10369
- }, opts), null, componentContext, groupContext);
10370
- componentState.finalizeStyleFlags(!!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasEnterStyle), !!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.platformPseudo));
10371
- var { mediaGroups, pseudoGroups } = splitStyles || {};
10372
- var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
10373
- useIsomorphicLayoutEffect(function() {
10374
- var disposeSafeArea;
10375
- if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
10376
- var updateSafeArea = function() {
10377
- setState(function(previous) {
10378
- return _objectSpread2({}, previous);
10379
- });
10380
- };
10381
- disposeSafeArea = subscribeToSafeArea(updateSafeArea);
10382
- updateSafeArea();
10383
- }
10384
- if (disabled) return disposeSafeArea;
10385
- if (state.unmounted) {
10386
- setStateShallow({ unmounted: false });
10387
- return disposeSafeArea;
10388
- }
10389
- if (groupContext) {
10390
- var disposeGroup = subscribeToContextGroup({
10391
- groupContext,
10392
- setStateShallow,
10393
- mediaGroups,
10394
- pseudoGroups
10395
- });
10396
- if (!disposeSafeArea) return disposeGroup;
10397
- return function() {
10398
- disposeSafeArea();
10399
- disposeGroup === null || disposeGroup === void 0 || disposeGroup();
10400
- };
10401
- }
10402
- return disposeSafeArea;
10403
- }, [
10404
- disabled,
10405
- groupContext,
10406
- splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea,
10407
- groupSetRevision
10408
- ]);
10409
- return [
10410
- (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.viewProps) || {},
10411
- (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.style) || {},
10412
- theme,
10413
- mediaState
10414
- ];
10415
- }
10416
- //#endregion
10417
9876
  //#region ../web/dist/esm/hooks/useThemeName.native.js
10418
9877
  var forceUpdateState = {
10419
9878
  forceClassName: true,
@@ -10456,7 +9915,14 @@ var textStaticConfig = {
10456
9915
  } } },
10457
9916
  validStyles: _objectSpread2(_objectSpread2({}, validStyles), stylePropsTextOnly)
10458
9917
  };
10459
- var Text$2 = setComponentDisplayName(createComponent(textStaticConfig), "Text");
9918
+ var Text$2 = createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, { displayName: "Text" }));
9919
+ //#endregion
9920
+ //#region ../web/dist/esm/views/View.native.js
9921
+ var viewStaticConfig = {
9922
+ acceptsClassName: true,
9923
+ validStyles
9924
+ };
9925
+ var View$2 = createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, { displayName: "View" }));
10460
9926
  //#endregion
10461
9927
  //#region ../web/dist/esm/dom/domEventProps.native.js
10462
9928
  var domEventProps = {
@@ -10988,28 +10454,32 @@ function renderDOMTextInput(resolved) {
10988
10454
  if (onKeyDown) next.onKeyPress = keyFromKeyPress(onKeyDown);
10989
10455
  return (0, react_jsx_runtime.jsx)(react_native.TextInput, next);
10990
10456
  }
10991
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
10457
+ createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
10992
10458
  validStyles: _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles),
10993
10459
  neverSkipProps: domEventProps,
10994
10460
  Component: DOMView,
10995
- neverFlatten: true
10996
- })), "DOMRuntimeView");
10997
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
10461
+ neverFlatten: true,
10462
+ displayName: "DOMRuntimeView"
10463
+ }));
10464
+ createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
10998
10465
  neverSkipProps: domEventProps,
10999
10466
  Component: DOMText,
11000
- neverFlatten: true
11001
- })), "DOMRuntimeText");
11002
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
10467
+ neverFlatten: true,
10468
+ displayName: "DOMRuntimeText"
10469
+ }));
10470
+ createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
11003
10471
  validStyles: _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles),
11004
10472
  neverSkipProps: domEventProps,
11005
10473
  Component: DOMImage,
11006
- neverFlatten: true
11007
- })), "DOMRuntimeImage");
11008
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
10474
+ neverFlatten: true,
10475
+ displayName: "DOMRuntimeImage"
10476
+ }));
10477
+ createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
11009
10478
  neverSkipProps: domEventProps,
11010
10479
  Component: DOMTextInput,
11011
- neverFlatten: true
11012
- })), "DOMRuntimeTextInput");
10480
+ neverFlatten: true,
10481
+ displayName: "DOMRuntimeTextInput"
10482
+ }));
11013
10483
  //#endregion
11014
10484
  //#region ../web/dist/esm/dom/htmlRuntime.native.js
11015
10485
  function wrapLiteralText(children) {
@@ -11117,14 +10587,18 @@ function createDOMTagFactory(tables) {
11117
10587
  var Tag = function(props) {
11118
10588
  return (0, react_jsx_runtime.jsx)(Component, resolveDOMProps(props, tag, spec, tables));
11119
10589
  };
11120
- return setComponentDisplayName(Tag, tag);
10590
+ Tag.displayName = tag;
10591
+ Tag[componentDisplayName] = tag;
10592
+ return Tag;
11121
10593
  };
11122
10594
  }
11123
10595
  function unsupportedDOMTag(tag, note) {
11124
10596
  var Tag = function() {
11125
10597
  throw new Error(`html.${tag} is not supported on native: ${note}`);
11126
10598
  };
11127
- return setComponentDisplayName(Tag, tag);
10599
+ Tag.displayName = tag;
10600
+ Tag[componentDisplayName] = tag;
10601
+ return Tag;
11128
10602
  }
11129
10603
  //#endregion
11130
10604
  //#region ../web/dist/esm/dom/html.native.js
@@ -12095,10 +11569,6 @@ var LayoutMeasurementController = function(param) {
12095
11569
  var strategy = "async";
12096
11570
  var resumeLayoutLoop;
12097
11571
  var measureOnNextFrame;
12098
- function setOnLayoutStrategy(state) {
12099
- strategy = state;
12100
- resumeLayoutLoop === null || resumeLayoutLoop === void 0 || resumeLayoutLoop();
12101
- }
12102
11572
  var NodeRectCache = /* @__PURE__ */ new WeakMap();
12103
11573
  var avoidUpdates = true;
12104
11574
  var queuedUpdates = /* @__PURE__ */ new Map();
@@ -12738,7 +12208,6 @@ exports.formatDiagnostic = formatDiagnostic;
12738
12208
  exports.getAutoVariableCSS = getAutoVariableCSS;
12739
12209
  exports.getCSSStylesAtomic = getCSSStylesAtomic;
12740
12210
  exports.getConfig = getConfig;
12741
- exports.getDefaultProps = getDefaultProps;
12742
12211
  exports.getExpandedShorthand = getExpandedShorthand;
12743
12212
  exports.getMedia = getMedia;
12744
12213
  exports.getMutatedAutoVariableCSS = getMutatedAutoVariableCSS;
@@ -12747,6 +12216,7 @@ exports.getPlatformDriver = getPlatformDriver;
12747
12216
  exports.getSetting = getSetting;
12748
12217
  exports.getSplitStyles = getSplitStyles;
12749
12218
  exports.getStyleCompat = getStyleCompat;
12219
+ exports.getStyleStaticConfig = getStyleStaticConfig;
12750
12220
  exports.getStyleTags = getStyleTags;
12751
12221
  exports.getThemeClassNames = getThemeClassNames;
12752
12222
  exports.getThemeProviderChainSizes = getThemeProviderChainSizes;
@@ -12799,7 +12269,6 @@ exports.nonAnimatableWebTextProps = nonAnimatableWebTextProps;
12799
12269
  exports.nonAnimatableWebViewProps = nonAnimatableWebViewProps;
12800
12270
  exports.normalizeColor = normalizeColor;
12801
12271
  exports.normalizeStyle = normalizeStyle;
12802
- exports.prepareStyleStaticConfig = prepareStyleStaticConfig;
12803
12272
  exports.px = px;
12804
12273
  exports.registerLayoutNode = registerLayoutNode;
12805
12274
  exports.removeNativeStyleScope = removeNativeStyleScope;
@@ -12822,7 +12291,6 @@ exports.setMediaState = setMediaState;
12822
12291
  exports.setNativeStyleEngine = setNativeStyleEngine;
12823
12292
  exports.setNativeStyleEngineFlushListener = setNativeStyleEngineFlushListener;
12824
12293
  exports.setNonce = setNonce;
12825
- exports.setOnLayoutStrategy = setOnLayoutStrategy;
12826
12294
  exports.setRef = setRef;
12827
12295
  exports.setupDev = setupDev;
12828
12296
  exports.setupHooks = setupHooks;
@@ -12830,17 +12298,17 @@ exports.setupMatchMedia = setupMatchMedia;
12830
12298
  exports.setupPlatformDriver = setupPlatformDriver;
12831
12299
  exports.shouldRenderNativePlatform = shouldRenderNativePlatform;
12832
12300
  exports.simpleHash = simpleHash;
12301
+ exports.splitStyleProps = splitStyleProps;
12833
12302
  exports.stylePropsAll = stylePropsAll;
12834
12303
  exports.stylePropsText = stylePropsText;
12835
12304
  exports.stylePropsTextOnly = stylePropsTextOnly;
12836
12305
  exports.stylePropsTransform = stylePropsTransform;
12837
12306
  exports.stylePropsUnitless = stylePropsUnitless;
12838
12307
  exports.stylePropsView = stylePropsView;
12839
- exports.styled = styledExport;
12308
+ exports.styled = styled;
12840
12309
  exports.supportsDynamicColorIOS = supportsDynamicColorIOS;
12841
12310
  exports.textStaticConfig = textStaticConfig;
12842
12311
  exports.themeRefKey = themeRefKey;
12843
- exports.themeable = themeable;
12844
12312
  exports.tokenCategories = tokenCategories;
12845
12313
  exports.updateConfig = updateConfig;
12846
12314
  exports.updateFont = updateFont;
@@ -12863,9 +12331,6 @@ exports.useIsTouchDevice = useIsTouchDevice;
12863
12331
  exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
12864
12332
  exports.useMedia = useMedia;
12865
12333
  exports.usePortalThemeState = usePortalThemeState;
12866
- exports.useProps = useProps;
12867
- exports.usePropsAndStyle = usePropsAndStyle;
12868
- exports.useStyle = useStyle;
12869
12334
  exports.useTheme = useTheme;
12870
12335
  exports.useThemeName = useThemeName;
12871
12336
  exports.validStyles = validStyles;