@tamagui/core 3.0.0-beta.1312.1 → 3.0.0-beta.1341.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.
package/dist/native.cjs CHANGED
@@ -33,7 +33,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  //#endregion
34
34
  let react = require("react");
35
35
  react = __toESM(react, 1);
36
- let _tamagui_size = require("@tamagui/size");
37
36
  let react_jsx_runtime = require("react/jsx-runtime");
38
37
  //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutPropertiesLoose.js
39
38
  function _objectWithoutPropertiesLoose(r, e) {
@@ -98,10 +97,13 @@ function isPlainObject(value) {
98
97
  var mergeProps = function(defaultProps, props) {
99
98
  var out = {};
100
99
  for (var key in defaultProps) {
101
- if (key in props) continue;
100
+ if (key in props && props[key] !== void 0) continue;
102
101
  out[key] = defaultProps[key];
103
102
  }
104
- for (var key1 in props) out[key1] = props[key1];
103
+ for (var key1 in props) {
104
+ if (props[key1] === void 0 && key1 in defaultProps) continue;
105
+ out[key1] = props[key1];
106
+ }
105
107
  return out;
106
108
  };
107
109
  var mergeComponentProps = function(defaultProps, contextProps, props) {
@@ -110,15 +112,16 @@ var mergeComponentProps = function(defaultProps, contextProps, props) {
110
112
  if (defaultProps && !contextProps) return [mergeProps(defaultProps, props), overriddenContext];
111
113
  var out = {};
112
114
  for (var key in defaultProps) {
113
- if (key in props) continue;
115
+ if (key in props && props[key] !== void 0) continue;
114
116
  out[key] = defaultProps[key];
115
117
  }
116
118
  for (var key1 in contextProps) {
117
- if (key1 in props) continue;
119
+ if (key1 in props && props[key1] !== void 0) continue;
118
120
  var contextValue = contextProps[key1];
119
121
  if (contextValue !== void 0) out[key1] = contextValue;
120
122
  }
121
123
  for (var key2 in props) {
124
+ if (props[key2] === void 0 && (defaultProps && key2 in defaultProps || contextProps && key2 in contextProps)) continue;
122
125
  out[key2] = props[key2];
123
126
  if (contextProps && key2 in contextProps) {
124
127
  overriddenContext || (overriddenContext = {});
@@ -210,6 +213,9 @@ var createStyledContext = function(defaultValues) {
210
213
  var ComponentContext = createStyledContext({
211
214
  disableSSR: void 0,
212
215
  inText: false,
216
+ parentFontSize: void 0,
217
+ parentLineHeight: void 0,
218
+ animatedText: null,
213
219
  language: null,
214
220
  animationDriver: null,
215
221
  setParentFocusState: null,
@@ -217,6 +223,11 @@ var ComponentContext = createStyledContext({
217
223
  }, { keys: [
218
224
  "disableSSR",
219
225
  "inText",
226
+ ...[
227
+ "parentFontSize",
228
+ "parentLineHeight",
229
+ "animatedText"
230
+ ],
220
231
  "language",
221
232
  "animationDriver",
222
233
  "setParentFocusState",
@@ -3593,7 +3604,7 @@ var useCreateElement = (component, props, options) => {
3593
3604
  }, [styles]);
3594
3605
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [element, styleTags] });
3595
3606
  };
3596
- var createElement = (component, props, options) => {
3607
+ var createElement$1 = (component, props, options) => {
3597
3608
  const { element, styles } = createElementAndStyles(component, props, options);
3598
3609
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [element, styles ? getStyleTags(styles) : null] });
3599
3610
  };
@@ -8354,7 +8365,7 @@ var Image = react.forwardRef((props, ref) => {
8354
8365
  const imageSizeStyle = resolveAssetDimensions(selectedSource);
8355
8366
  const backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null;
8356
8367
  const backgroundSize = getBackgroundSize();
8357
- const hiddenImage = displayImageUri ? createElement("img", {
8368
+ const hiddenImage = displayImageUri ? createElement$1("img", {
8358
8369
  alt: accessibilityLabel || "",
8359
8370
  style: styles$7.accessibilityImage$raw,
8360
8371
  draggable: draggable || false,
@@ -10353,7 +10364,7 @@ var esm_exports = /* @__PURE__ */ __exportAll({
10353
10364
  render: () => render,
10354
10365
  requireNativeComponent: () => requireNativeComponent,
10355
10366
  unstable_batchedUpdates: () => import_react_dom.unstable_batchedUpdates,
10356
- unstable_createElement: () => createElement,
10367
+ unstable_createElement: () => createElement$1,
10357
10368
  useColorScheme: () => useColorScheme,
10358
10369
  useEvent: () => useEvent$1,
10359
10370
  useHover: () => useHover,
@@ -13819,6 +13830,13 @@ function expandStyle(key, value) {
13819
13830
  switch (key) {
13820
13831
  case "objectFit": return [["resizeMode", resizeModeMap[value] || "cover"]];
13821
13832
  case "verticalAlign": return [["textAlignVertical", verticalAlignMap[value] || "auto"]];
13833
+ case "direction": return [["direction", value], ["writingDirection", directionMap[value] || "auto"]];
13834
+ case "gap":
13835
+ if (typeof value === "string") {
13836
+ var parts = splitComponents(value);
13837
+ if (parts.length === 2) return [["rowGap", parts[0]], ["columnGap", parts[1]]];
13838
+ }
13839
+ return;
13822
13840
  case "position":
13823
13841
  if (value === "fixed" || value === "sticky") return [["position", "absolute"]];
13824
13842
  return;
@@ -13864,6 +13882,11 @@ var verticalAlignMap = {
13864
13882
  bottom: "bottom",
13865
13883
  auto: "auto"
13866
13884
  };
13885
+ var directionMap = {
13886
+ ltr: "ltr",
13887
+ rtl: "rtl",
13888
+ inherit: "auto"
13889
+ };
13867
13890
  var all = [
13868
13891
  "Top",
13869
13892
  "Right",
@@ -14071,7 +14094,6 @@ function getDynamicEnv(styleState) {
14071
14094
  return styleState.flatDynamicEnv = {
14072
14095
  fonts,
14073
14096
  tokens: conf.tokensParsed,
14074
- sizes: conf.sizes,
14075
14097
  theme,
14076
14098
  get fontFamily() {
14077
14099
  return getVariableValue(styleState.fontFamily || props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
@@ -14185,15 +14207,76 @@ new Set([
14185
14207
  "translateX",
14186
14208
  "translateY"
14187
14209
  ].filter(function(key) {
14188
- return !stylePropsUnitless[key];
14210
+ return key !== "lineHeight" && !stylePropsUnitless[key];
14189
14211
  }));
14190
14212
  var pxStringRe = /^-?\d*\.?\d+px$/;
14191
14213
  function normalizeValueWithProperty(value) {
14192
- arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
14214
+ if ((arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "") === "lineHeight") return value;
14193
14215
  if (typeof value === "string" && pxStringRe.test(value)) return Number.parseFloat(value);
14194
14216
  return value;
14195
14217
  }
14196
14218
  //#endregion
14219
+ //#region ../web/dist/esm/helpers/resolveVariableValue.native.js
14220
+ function resolveVariableValue(key, valOrVar, resolveValues) {
14221
+ if (resolveValues === "none" || !isVariable(valOrVar)) return valOrVar;
14222
+ var value;
14223
+ if (resolveValues === "value") value = valOrVar.val;
14224
+ else {
14225
+ var get = valOrVar.get;
14226
+ value = !(key === "shadowColor" || key === "boxShadow" || key === "textShadow" || key === "backgroundImage") && typeof get === "function" ? get(resolveValues === "web" ? "web" : void 0) : valOrVar.val;
14227
+ }
14228
+ return key === "lineHeight" && typeof value === "number" ? `${value}px` : value;
14229
+ }
14230
+ //#endregion
14231
+ //#region ../web/dist/esm/helpers/nativeTextMetrics.native.js
14232
+ function resolveTextMetrics(style, lineHeight, parent) {
14233
+ var isStatic = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, apply = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : true;
14234
+ if (isVariable(lineHeight)) lineHeight = resolveVariableValue("lineHeight", lineHeight, "value");
14235
+ var fontSize = typeof style.fontSize === "number" ? style.fontSize : parent === null || parent === void 0 ? void 0 : parent.parentFontSize;
14236
+ var inheritsFontSize = style.fontSize == null && !!(parent === null || parent === void 0 ? void 0 : parent.animatedText);
14237
+ if (apply && style.fontSize == null && fontSize !== void 0 && !inheritsFontSize) style.fontSize = fontSize;
14238
+ var leading;
14239
+ if (lineHeight == null || lineHeight === "inherit" || lineHeight === "unset") leading = parent === null || parent === void 0 ? void 0 : parent.parentLineHeight;
14240
+ else if (lineHeight === "normal" || lineHeight === "initial") leading = "normal";
14241
+ else if (typeof lineHeight === "number") leading = lineHeight;
14242
+ else if (typeof lineHeight === "string") {
14243
+ if (/^(?:\d+\.?\d*|\.\d+)px$/.test(lineHeight)) leading = lineHeight;
14244
+ else if (lineHeight.trim() !== "" && Number.isFinite(+lineHeight)) leading = +lineHeight;
14245
+ }
14246
+ if (typeof leading === "number" && (!Number.isFinite(leading) || leading < 0)) {
14247
+ delete style.lineHeight;
14248
+ return _objectSpread2({ fontSize }, inheritsFontSize && { inheritsFontSize });
14249
+ }
14250
+ if (!apply) return _objectSpread2({
14251
+ fontSize,
14252
+ lineHeight: leading
14253
+ }, inheritsFontSize && { inheritsFontSize });
14254
+ if (typeof leading === "number") {
14255
+ if (fontSize === void 0 && !isStatic && !inheritsFontSize) {
14256
+ fontSize = 14;
14257
+ style.fontSize = fontSize;
14258
+ }
14259
+ if (inheritsFontSize || fontSize === void 0) delete style.lineHeight;
14260
+ else style.lineHeight = fontSize * leading;
14261
+ } else if (leading && leading !== "normal") style.lineHeight = Number.parseFloat(leading);
14262
+ else if (lineHeight != null || leading === "normal") delete style.lineHeight;
14263
+ return _objectSpread2({
14264
+ fontSize,
14265
+ lineHeight: leading
14266
+ }, inheritsFontSize && { inheritsFontSize });
14267
+ }
14268
+ //#endregion
14269
+ //#region ../web/dist/esm/helpers/isTamaguiComponent.native.js
14270
+ function isTamaguiComponent(comp) {
14271
+ var config = comp === null || comp === void 0 ? void 0 : comp["staticConfig"];
14272
+ return Boolean(config);
14273
+ }
14274
+ //#endregion
14275
+ //#region ../web/dist/esm/helpers/isTamaguiElement.native.js
14276
+ var isTamaguiElement = function(child) {
14277
+ return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
14278
+ };
14279
+ //#endregion
14197
14280
  //#region ../web/dist/esm/helpers/parseNativeStyle.native.js
14198
14281
  function parseNativeStyle(key, cssString, tokenMap) {
14199
14282
  switch (key) {
@@ -14540,23 +14623,10 @@ function resolveNativeUnits(key, value, styleState) {
14540
14623
  return resolveSingleUnit(trimmed, ctx);
14541
14624
  }
14542
14625
  //#endregion
14543
- //#region ../web/dist/esm/helpers/resolveVariableValue.native.js
14544
- function resolveVariableValue(key, valOrVar, resolveValues) {
14545
- if (resolveValues === "none") return valOrVar;
14546
- if (isVariable(valOrVar)) {
14547
- if (resolveValues === "value") return valOrVar.val;
14548
- var get = valOrVar === null || valOrVar === void 0 ? void 0 : valOrVar.get;
14549
- if (!(key === "shadowColor" || key === "boxShadow" || key === "textShadow" || key === "backgroundImage")) {
14550
- if (typeof get === "function") return get(resolveValues === "web" ? "web" : void 0);
14551
- }
14552
- return valOrVar.val;
14553
- }
14554
- return valOrVar;
14555
- }
14556
- //#endregion
14557
14626
  //#region ../web/dist/esm/helpers/webPropsToSkip.native.js
14558
- var { textOverflow: __ } = webOnlyStylePropsText, webOnlyStylePropsTextWithoutTextOverflow = _objectWithoutProperties(webOnlyStylePropsText, ["textOverflow"]);
14559
- var webPropsToSkip = _objectSpread2(_objectSpread2(_objectSpread2({}, webOnlyStylePropsView), webOnlyStylePropsTextWithoutTextOverflow), {}, {
14627
+ var { textOverflow: _textOverflow } = webOnlyStylePropsText, webOnlyStylePropsTextWithoutTextOverflow = _objectWithoutProperties(webOnlyStylePropsText, ["textOverflow"]);
14628
+ var { userSelect: _userSelect } = webOnlyStylePropsView;
14629
+ var webPropsToSkip = _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(webOnlyStylePropsView, ["userSelect"])), webOnlyStylePropsTextWithoutTextOverflow), {}, {
14560
14630
  onClick: 1,
14561
14631
  onDoubleClick: 1,
14562
14632
  onContextMenu: 1,
@@ -15095,11 +15165,12 @@ function contributeProp(pass, keyOg, valOg) {
15095
15165
  if (!isNativeInputColor && keyInit in skipProps && shouldSkipDirectProps && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) if (keyInit === "transition" && typeof valInit === "string") return;
15096
15166
  else return;
15097
15167
  var isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles);
15168
+ if (keyInit === "userSelect") {
15169
+ viewProps.selectable = valInit !== "none";
15170
+ return;
15171
+ }
15098
15172
  if (!isValidStyleKeyInit) {
15099
- if (keyInit === "userSelect") {
15100
- keyInit = "selectable";
15101
- valInit = valInit !== "none";
15102
- } else if (keyInit === "textOverflow") {
15173
+ if (keyInit === "textOverflow") {
15103
15174
  if (isText && valInit === "ellipsis") {
15104
15175
  var _viewProps, _viewProps1;
15105
15176
  var _numberOfLines;
@@ -15387,23 +15458,44 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15387
15458
  }
15388
15459
  }
15389
15460
  }
15461
+ var nativeTextMetrics;
15462
+ var _styleState_style2;
15390
15463
  if (viewProps.tabIndex === 0) {
15391
15464
  var _viewProps;
15392
15465
  var _accessible;
15393
15466
  (_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);
15394
15467
  }
15395
- var style = styleState.style;
15396
- if (style === null || style === void 0 ? void 0 : style.fontFamily) {
15468
+ if ((isText || isInput || staticConfig.isDOM) && !isHOC && (styleState.nativeLineHeight !== void 0 || ((_styleState_style2 = styleState.style) === null || _styleState_style2 === void 0 ? void 0 : _styleState_style2.fontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentFontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentLineHeight) !== void 0)) {
15469
+ var _parentSplitStyles_nativeTextMetrics;
15470
+ var _styleState2;
15471
+ var style = (_styleState2 = styleState).style || (_styleState2.style = {});
15472
+ var _styleState_nativeLineHeight;
15473
+ var lineHeight = (_styleState_nativeLineHeight = styleState.nativeLineHeight) !== null && _styleState_nativeLineHeight !== void 0 ? _styleState_nativeLineHeight : parentSplitStyles === null || parentSplitStyles === void 0 ? void 0 : (_parentSplitStyles_nativeTextMetrics = parentSplitStyles.nativeTextMetrics) === null || _parentSplitStyles_nativeTextMetrics === void 0 ? void 0 : _parentSplitStyles_nativeTextMetrics.lineHeight;
15474
+ if (typeof lineHeight === "string") {
15475
+ var length = resolveNativeUnits("lineHeight", lineHeight, styleState);
15476
+ if (typeof length === "number") lineHeight = `${length}px`;
15477
+ }
15478
+ nativeTextMetrics = resolveTextMetrics(style, lineHeight, componentContext, styleProps.isStatic, !staticConfig.isDOM && !(processedProps.asChild && isTamaguiElement(processedProps.children)));
15479
+ if (staticConfig.isDOM) viewProps.__textMetrics = nativeTextMetrics;
15480
+ var directText = styleState;
15481
+ var prevTextStyle = directText.flatPrevStyle;
15482
+ if (prevTextStyle && !directText.flatStyleChanged) {
15483
+ var resolvedTextStyle = styleState.style;
15484
+ if (resolvedTextStyle && (resolvedTextStyle.fontSize !== prevTextStyle.fontSize || resolvedTextStyle.lineHeight !== prevTextStyle.lineHeight)) directText.flatStyleChanged = true;
15485
+ }
15486
+ }
15487
+ var style1 = styleState.style;
15488
+ if (style1 === null || style1 === void 0 ? void 0 : style1.fontFamily) {
15397
15489
  var _getFont;
15398
- var faceInfo = (_getFont = getFont(style.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
15490
+ var faceInfo = (_getFont = getFont(style1.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
15399
15491
  if (faceInfo) {
15400
15492
  var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;
15401
- var overrideFace = (_faceInfo_style_fontWeight = faceInfo[style.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
15493
+ var overrideFace = (_faceInfo_style_fontWeight = faceInfo[style1.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style1.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
15402
15494
  if (overrideFace) {
15403
- style.fontFamily = overrideFace;
15495
+ style1.fontFamily = overrideFace;
15404
15496
  styleState.fontFamily = overrideFace;
15405
- delete style.fontWeight;
15406
- delete style.fontStyle;
15497
+ delete style1.fontWeight;
15498
+ delete style1.fontStyle;
15407
15499
  }
15408
15500
  }
15409
15501
  }
@@ -15434,6 +15526,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15434
15526
  mediaGroups,
15435
15527
  overriddenContextProps: styleState.overriddenContextProps
15436
15528
  };
15529
+ if (nativeTextMetrics) result.nativeTextMetrics = nativeTextMetrics;
15437
15530
  if (effectiveTransition != null) result.effectiveTransition = effectiveTransition;
15438
15531
  if (conditionalStates) result.programStates = conditionalStates;
15439
15532
  if (usesSafeArea) result.usesSafeArea = true;
@@ -15449,8 +15542,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15449
15542
  if (frontendContainerType !== void 0) result.frontendContainerType = frontendContainerType;
15450
15543
  if (!noMergeStyle) {
15451
15544
  if (!asChildExceptStyleLike) {
15452
- var style1 = styleState.style;
15453
- if (style1) viewProps.style = style1;
15545
+ var style2 = styleState.style;
15546
+ if (style2) viewProps.style = style2;
15454
15547
  }
15455
15548
  }
15456
15549
  return result;
@@ -15533,7 +15626,8 @@ function mergeStyle(styleState, key, val) {
15533
15626
  addTransformValue(styleState.transformAccumulator, key, val);
15534
15627
  } else {
15535
15628
  var out = val;
15536
- if (typeof out === "string") {
15629
+ if (key === "lineHeight") styleState.nativeLineHeight = typeof out === "number" && isVariable(originalVal) && typeof originalVal.val === "number" ? `${out}px` : out;
15630
+ else if (typeof out === "string") {
15537
15631
  if (out.includes("cqi") || out.includes("cqw")) {
15538
15632
  var _styleState2, _styleState3;
15539
15633
  ((_styleState2 = styleState).flatGroupKeys || (_styleState2.flatGroupKeys = /* @__PURE__ */ new Set())).add("@");
@@ -16045,7 +16139,7 @@ function emitResolved(state, property, raw, cursor, originalValue, contextOnly)
16045
16139
  }
16046
16140
  function resolveValue(state, property, raw, nativeColors) {
16047
16141
  var value = typeof raw === "string" ? configuredValue(state, property, raw, true, nativeColors) : raw;
16048
- if (typeof value === "string" && value !== "" && true) value = resolveNumericValue(value);
16142
+ if (typeof value === "string" && value !== "" && property !== "lineHeight") value = resolveNumericValue(value);
16049
16143
  return value;
16050
16144
  }
16051
16145
  function shadowUnit(part) {
@@ -16054,7 +16148,13 @@ function shadowUnit(part) {
16054
16148
  function emitValue(state, property, raw, cursor, originalValue, contextOnly) {
16055
16149
  var condition = cursor ? cursor[conditionValue] : 0;
16056
16150
  var grammar = getConfigRevisionState(state.conf);
16057
- if (isVariable(raw)) raw = resolveVariableValue(property, raw, state.styleProps.resolveValues);
16151
+ if (isVariable(raw)) {
16152
+ raw = resolveVariableValue(property, raw, state.styleProps.resolveValues);
16153
+ if (property === "lineHeight") {
16154
+ emitProperty(state, property, raw, cursor, originalValue, contextOnly);
16155
+ return;
16156
+ }
16157
+ }
16058
16158
  if (typeof raw === "string" && (property === "transition" || property === "transitionProperty")) raw = grammar.normalizeTransition(raw);
16059
16159
  if ((property === "borderWidth" || property === "borderTopWidth" || property === "borderRightWidth" || property === "borderBottomWidth" || property === "borderLeftWidth") && state.styleProps.noNormalize !== false) writeStyleRecord(state, "borderStyle", "solid", cursor, originalValue, recordDefault);
16060
16160
  if (grammar.propertyKind(property) === 5) {
@@ -16143,7 +16243,9 @@ function emitValue(state, property, raw, cursor, originalValue, contextOnly) {
16143
16243
  emitProperty(state, property, value3, cursor, originalValue, contextOnly);
16144
16244
  return;
16145
16245
  }
16146
- if (typeof raw === "string" && expanded.length > 1) {
16246
+ if (typeof raw === "string" && expanded.length > 1 && expanded.every(function(entry) {
16247
+ return entry[1] === expanded[0][1];
16248
+ })) {
16147
16249
  var parts1 = splitComponents(raw);
16148
16250
  if (parts1.length > 0 && parts1.length <= (expanded.length === 4 ? 4 : 2)) {
16149
16251
  for (var index1 = 0; index1 < expanded.length; index1++) {
@@ -16282,6 +16384,7 @@ function contributeValue(state, property, value, originalValue) {
16282
16384
  }
16283
16385
  function clearDirectStyle(state, property) {
16284
16386
  var _direct_flatAtomics;
16387
+ if (property === "lineHeight") state.nativeLineHeight = void 0;
16285
16388
  var direct = state;
16286
16389
  if (direct.flatDynamicColors) delete direct.flatDynamicColors[property];
16287
16390
  var propertyKind = getConfigRevisionState(state.conf).propertyKind(property);
@@ -16317,6 +16420,18 @@ function emitVariantStyle(state, key, value, original, condition, disabled) {
16317
16420
  pass[passParentCursor] = parent;
16318
16421
  }
16319
16422
  //#endregion
16423
+ //#region ../web/dist/esm/helpers/NativeTextBinding.native.js
16424
+ function NativeTextBinding(param) {
16425
+ var { element, useTextMetrics, inheritedText, lineHeight, isInput } = param;
16426
+ var binding = useTextMetrics({
16427
+ inheritedText,
16428
+ lineHeight
16429
+ });
16430
+ if (!binding.style) return element;
16431
+ var Host = isInput ? binding.TextInput : binding.Text;
16432
+ return /* @__PURE__ */ (0, react.createElement)(Host, _objectSpread2(_objectSpread2({}, element.props), {}, { style: [element.props.style, binding.style] }));
16433
+ }
16434
+ //#endregion
16320
16435
  //#region ../web/dist/esm/helpers/mergeSlotStyleProps.native.js
16321
16436
  var isEventHandler = /^on[A-Z]/;
16322
16437
  function mergeSlotStyleProps(base, overlay) {
@@ -17227,7 +17342,7 @@ function createComponent(staticConfig) {
17227
17342
  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;
17228
17343
  stateRef.current.prevPseudoState = extractPseudoState(updatedState);
17229
17344
  var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
17230
- useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo);
17345
+ useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
17231
17346
  };
17232
17347
  componentContext.mediaEmitListeners = componentContext.mediaEmitListeners || /* @__PURE__ */ new Set();
17233
17348
  if (!stateRef.current.mediaEmitCleanup) {
@@ -17306,9 +17421,11 @@ function createComponent(staticConfig) {
17306
17421
  if (typeof onTransition !== "undefined") viewProps.onTransition = onTransition;
17307
17422
  }
17308
17423
  var animationStyles;
17424
+ var animatedText = isText && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.nativeTextMetrics) && !splitStyles.nativeTextMetrics.inheritsFontSize ? null : componentContext.animatedText;
17309
17425
  var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
17310
17426
  var animatedRef;
17311
17427
  if (shouldUseAnimation) {
17428
+ var _splitStyles_nativeTextMetrics;
17312
17429
  var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
17313
17430
  stateRef.current.useStyleListener = listener;
17314
17431
  } : void 0;
@@ -17317,6 +17434,7 @@ function createComponent(staticConfig) {
17317
17434
  if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
17318
17435
  stateRef.current.prevPseudoState = extractPseudoState(state);
17319
17436
  var animations = useAnimations({
17437
+ inheritedText: (splitStyles === null || splitStyles === void 0 ? void 0 : (_splitStyles_nativeTextMetrics = splitStyles.nativeTextMetrics) === null || _splitStyles_nativeTextMetrics === void 0 ? void 0 : _splitStyles_nativeTextMetrics.inheritsFontSize) ? componentContext.animatedText : null,
17320
17438
  props: propsWithAnimation,
17321
17439
  style: isHydrated ? splitStylesStyle || {} : _objectSpread2({}, splitStylesStyle),
17322
17440
  styleState: splitStyles,
@@ -17331,6 +17449,7 @@ function createComponent(staticConfig) {
17331
17449
  onTransition
17332
17450
  });
17333
17451
  if (animations) {
17452
+ animatedText = animations.textChannel;
17334
17453
  if (animations.ref) animatedRef = animations.ref;
17335
17454
  if (isHydrated && animations) {
17336
17455
  animationStyles = animations.style;
@@ -17561,8 +17680,16 @@ function createComponent(staticConfig) {
17561
17680
  }
17562
17681
  }
17563
17682
  if (!content) {
17683
+ var _splitStyles_nativeTextMetrics1;
17564
17684
  if (isRenderPropString && elementType["acceptRenderProp"]) viewProps.render = renderProp;
17565
17685
  content = /* @__PURE__ */ react.default.createElement(elementType, viewProps, content || children);
17686
+ if (!shouldUseAnimation && !isHOC && !staticConfig.isDOM && !asChild && (splitStyles === null || splitStyles === void 0 ? void 0 : (_splitStyles_nativeTextMetrics1 = splitStyles.nativeTextMetrics) === null || _splitStyles_nativeTextMetrics1 === void 0 ? void 0 : _splitStyles_nativeTextMetrics1.inheritsFontSize) && componentContext.animatedText && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useTextMetrics)) content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NativeTextBinding, {
17687
+ element: content,
17688
+ useTextMetrics: animationDriver.useTextMetrics,
17689
+ inheritedText: componentContext.animatedText,
17690
+ lineHeight: splitStyles.nativeTextMetrics.lineHeight,
17691
+ isInput: staticConfig.isInput
17692
+ });
17566
17693
  }
17567
17694
  }
17568
17695
  content = wrapWithGestureDetector(content, pressGesture, stateRef, isHOC, !isHOC && Component && typeof Component !== "string", hasRealPressEvents);
@@ -17574,14 +17701,24 @@ function createComponent(staticConfig) {
17574
17701
  disabled: !needsReset,
17575
17702
  children: content
17576
17703
  });
17577
- if (conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within")) content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, componentContext), {}, {
17578
- setParentFocusState: setStateShallow,
17579
- children: content
17580
- }));
17581
17704
  if (groupName || isContainer) content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GroupContext.Provider, {
17582
17705
  value: allGroupContexts,
17583
17706
  children: content
17584
17707
  });
17708
+ var textMetrics = !staticConfig.isDOM && !isHOC && isText && !(asChild && isTamaguiElement(children)) ? splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.nativeTextMetrics : void 0;
17709
+ var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
17710
+ var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
17711
+ if (provideText || provideFocus) {
17712
+ var _textMetrics_fontSize;
17713
+ content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, componentContext), {}, {
17714
+ inText: provideText || componentContext.inText,
17715
+ parentFontSize: (_textMetrics_fontSize = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _textMetrics_fontSize !== void 0 ? _textMetrics_fontSize : componentContext.parentFontSize,
17716
+ parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
17717
+ animatedText,
17718
+ setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
17719
+ children: content
17720
+ }));
17721
+ }
17585
17722
  content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef);
17586
17723
  if (overriddenContextProps && contextForOverride) {
17587
17724
  var Provider = contextForOverride.Provider;
@@ -17692,17 +17829,6 @@ var getMutatedAutoVariableCSS = function() {
17692
17829
  return serializeVariables(mutatedAutoVariables);
17693
17830
  };
17694
17831
  //#endregion
17695
- //#region ../web/dist/esm/helpers/isTamaguiComponent.native.js
17696
- function isTamaguiComponent(comp) {
17697
- var config = comp === null || comp === void 0 ? void 0 : comp["staticConfig"];
17698
- return Boolean(config);
17699
- }
17700
- //#endregion
17701
- //#region ../web/dist/esm/helpers/isTamaguiElement.native.js
17702
- var isTamaguiElement = function(child) {
17703
- return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
17704
- };
17705
- //#endregion
17706
17832
  //#region ../web/dist/esm/helpers/splitStyleProps.native.js
17707
17833
  function splitStyleProps(props) {
17708
17834
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -19086,16 +19212,26 @@ var _excluded$1 = [
19086
19212
  "__tag",
19087
19213
  "ref"
19088
19214
  ];
19089
- var _excluded2 = ["__inheritedStyles", "onClick"];
19090
- var _excluded3 = ["__inheritedStyles", "onClick"];
19215
+ var _excluded2 = [
19216
+ "__inheritedStyles",
19217
+ "__textMetrics",
19218
+ "onClick"
19219
+ ];
19220
+ var _excluded3 = [
19221
+ "__inheritedStyles",
19222
+ "__textMetrics",
19223
+ "onClick"
19224
+ ];
19091
19225
  var _excluded4 = [
19092
19226
  "__inheritedStyles",
19227
+ "__textMetrics",
19093
19228
  "onClick",
19094
19229
  "onLoad",
19095
19230
  "onError"
19096
19231
  ];
19097
19232
  var _excluded5 = [
19098
19233
  "__inheritedStyles",
19234
+ "__textMetrics",
19099
19235
  "onChange",
19100
19236
  "onInput",
19101
19237
  "onKeyDown"
@@ -19334,10 +19470,12 @@ function hasInheritableStyle(style) {
19334
19470
  }
19335
19471
  return false;
19336
19472
  }
19337
- function resolveInheritedTextStyle(style, parent) {
19473
+ function resolveInheritedTextStyle(style, parent, context, authoredMetrics) {
19338
19474
  var values = (Array.isArray(style) ? style.flat(Infinity) : [style]).filter(Boolean);
19339
19475
  var inherited = _objectSpread2({}, parent.style);
19340
- var lineHeightMultiplier = parent.lineHeightMultiplier;
19476
+ if (context.parentFontSize !== void 0) inherited.fontSize = context.parentFontSize;
19477
+ var lineHeight;
19478
+ var ownsFontSize = false;
19341
19479
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
19342
19480
  try {
19343
19481
  for (var _iterator = values[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
@@ -19352,10 +19490,10 @@ function resolveInheritedTextStyle(style, parent) {
19352
19490
  if (!(property in parent.style)) inherited[property] = void 0;
19353
19491
  continue;
19354
19492
  }
19355
- if (property === "lineHeight" && typeof next === "number") lineHeightMultiplier = next;
19493
+ if (property === "lineHeight") lineHeight = typeof next === "number" ? `${next}px` : next;
19356
19494
  else {
19495
+ if (property === "fontSize") ownsFontSize = true;
19357
19496
  inherited[property] = typeof next === "string" && /^-?(?:\d+\.?\d*|\.\d+)px$/.test(next) ? Number(next.slice(0, -2)) : next;
19358
- if (property === "lineHeight") lineHeightMultiplier = void 0;
19359
19497
  }
19360
19498
  }
19361
19499
  } catch (err) {
@@ -19379,22 +19517,33 @@ function resolveInheritedTextStyle(style, parent) {
19379
19517
  if (_didIteratorError) throw _iteratorError;
19380
19518
  }
19381
19519
  }
19382
- if (lineHeightMultiplier !== void 0) inherited.lineHeight = typeof inherited.fontSize === "number" ? lineHeightMultiplier * inherited.fontSize : lineHeightMultiplier;
19520
+ if ((authoredMetrics === null || authoredMetrics === void 0 ? void 0 : authoredMetrics.fontSize) !== void 0 && !authoredMetrics.inheritsFontSize) {
19521
+ inherited.fontSize = authoredMetrics.fontSize;
19522
+ ownsFontSize = true;
19523
+ }
19524
+ if (!ownsFontSize && context.animatedText) delete inherited.fontSize;
19383
19525
  return {
19384
19526
  style: inherited,
19385
- lineHeightMultiplier
19527
+ metrics: resolveTextMetrics(inherited, authoredMetrics ? authoredMetrics.lineHeight : lineHeight, context)
19386
19528
  };
19387
19529
  }
19388
19530
  function DOMViewWithInheritedStyle(param) {
19389
19531
  var { props, style } = param;
19390
- var value = resolveInheritedTextStyle(style, (0, react.useContext)(inheritedTextStyleContext));
19391
- return (0, react_jsx_runtime.jsx)(inheritedTextStyleContext.Provider, {
19392
- value,
19393
- children: renderDOMView(props)
19394
- });
19532
+ var parent = (0, react.useContext)(inheritedTextStyleContext);
19533
+ var context = (0, react.useContext)(ComponentContext);
19534
+ var value = resolveInheritedTextStyle(style, parent, context, props.__textMetrics);
19535
+ return (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, context), {}, {
19536
+ parentFontSize: value.metrics.fontSize,
19537
+ parentLineHeight: value.metrics.lineHeight,
19538
+ animatedText: value.metrics.inheritsFontSize ? context.animatedText : null,
19539
+ children: (0, react_jsx_runtime.jsx)(inheritedTextStyleContext.Provider, {
19540
+ value,
19541
+ children: renderDOMView(props)
19542
+ })
19543
+ }));
19395
19544
  }
19396
19545
  function resolvedDOMView(props) {
19397
- if (!hasInheritableStyle(props.style) && !hasInheritableStyle(props.__inheritedStyles)) return renderDOMView(props);
19546
+ if (!props.__textMetrics && !hasInheritableStyle(props.style) && !hasInheritableStyle(props.__inheritedStyles)) return renderDOMView(props);
19398
19547
  return (0, react_jsx_runtime.jsx)(DOMViewWithInheritedStyle, {
19399
19548
  props,
19400
19549
  style: [props.style, props.__inheritedStyles]
@@ -19403,24 +19552,50 @@ function resolvedDOMView(props) {
19403
19552
  function DOMTextWithInheritedStyle(param) {
19404
19553
  var { props } = param;
19405
19554
  var parent = (0, react.useContext)(inheritedTextStyleContext);
19406
- var value = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent);
19407
- var resolved = _objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, value.style] });
19408
- return (0, react_jsx_runtime.jsx)(inheritedTextStyleContext.Provider, {
19409
- value,
19410
- children: renderDOMText(resolved)
19555
+ var context = (0, react.useContext)(ComponentContext);
19556
+ var value = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
19557
+ var content = renderDOMText(_objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, value.style] }));
19558
+ var _context_animationDriver;
19559
+ var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
19560
+ if (value.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) content = (0, react_jsx_runtime.jsx)(NativeTextBinding, {
19561
+ element: content,
19562
+ useTextMetrics: driver.useTextMetrics,
19563
+ inheritedText: context.animatedText,
19564
+ lineHeight: value.metrics.lineHeight
19411
19565
  });
19566
+ return (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, context), {}, {
19567
+ inText: true,
19568
+ parentFontSize: value.metrics.fontSize,
19569
+ parentLineHeight: value.metrics.lineHeight,
19570
+ animatedText: value.metrics.inheritsFontSize ? context.animatedText : null,
19571
+ children: (0, react_jsx_runtime.jsx)(inheritedTextStyleContext.Provider, {
19572
+ value,
19573
+ children: content
19574
+ })
19575
+ }));
19412
19576
  }
19413
19577
  function resolvedDOMText(props) {
19414
- return props.__inherit ? (0, react_jsx_runtime.jsx)(DOMTextWithInheritedStyle, { props: resolveDOMMetadata(props) }) : renderDOMText(resolveDOMMetadata(props));
19578
+ return props.__inherit || props.__textMetrics ? (0, react_jsx_runtime.jsx)(DOMTextWithInheritedStyle, { props: resolveDOMMetadata(props) }) : renderDOMText(resolveDOMMetadata(props));
19415
19579
  }
19416
19580
  function DOMTextInputWithInheritedStyle(param) {
19417
19581
  var { props } = param;
19418
19582
  var parent = (0, react.useContext)(inheritedTextStyleContext);
19419
- var inherited = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent);
19420
- return renderDOMTextInput(_objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, inherited.style] }));
19583
+ var context = (0, react.useContext)(ComponentContext);
19584
+ var inherited = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
19585
+ var resolved = _objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, inherited.style] });
19586
+ var _context_animationDriver;
19587
+ var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
19588
+ if (inherited.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) return (0, react_jsx_runtime.jsx)(NativeTextBinding, {
19589
+ element: renderDOMTextInput(resolved),
19590
+ useTextMetrics: driver.useTextMetrics,
19591
+ inheritedText: context.animatedText,
19592
+ lineHeight: inherited.metrics.lineHeight,
19593
+ isInput: true
19594
+ });
19595
+ return renderDOMTextInput(resolved);
19421
19596
  }
19422
19597
  function resolvedDOMTextInput(props) {
19423
- return props.__inherit ? (0, react_jsx_runtime.jsx)(DOMTextInputWithInheritedStyle, { props: resolveDOMMetadata(props) }) : renderDOMTextInput(resolveDOMMetadata(props));
19598
+ return props.__inherit || props.__textMetrics ? (0, react_jsx_runtime.jsx)(DOMTextInputWithInheritedStyle, { props: resolveDOMMetadata(props) }) : renderDOMTextInput(resolveDOMMetadata(props));
19424
19599
  }
19425
19600
  function withViewportRef(render, props) {
19426
19601
  var { scale } = useViewportScale_DO_NOT_USE();
@@ -19434,8 +19609,8 @@ function DOMViewWithViewportRef(props) {
19434
19609
  return withViewportRef(resolvedDOMView, props);
19435
19610
  }
19436
19611
  function renderDOMView(resolved) {
19437
- if (resolved.onClick === void 0 && !("__inheritedStyles" in resolved)) return (0, react_jsx_runtime.jsx)(View$2, resolved);
19438
- var { __inheritedStyles: _, onClick } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded2);
19612
+ if (resolved.onClick === void 0 && !("__inheritedStyles" in resolved) && !("__textMetrics" in resolved)) return (0, react_jsx_runtime.jsx)(View$2, resolved);
19613
+ var { __inheritedStyles: _, __textMetrics: _metrics, onClick } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded2);
19439
19614
  if (onClick === void 0) return (0, react_jsx_runtime.jsx)(View$2, hostProps);
19440
19615
  hostProps.onPress = clickFromPress(onClick);
19441
19616
  return (0, react_jsx_runtime.jsx)(PressableComponent, hostProps);
@@ -19448,8 +19623,8 @@ function DOMTextWithViewportRef(props) {
19448
19623
  return withViewportRef(resolvedDOMText, props);
19449
19624
  }
19450
19625
  function renderDOMText(resolved) {
19451
- if (resolved.onClick === void 0 && !("__inheritedStyles" in resolved)) return (0, react_jsx_runtime.jsx)(Text$2, resolved);
19452
- var { __inheritedStyles: _, onClick } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded3);
19626
+ if (resolved.onClick === void 0 && !("__inheritedStyles" in resolved) && !("__textMetrics" in resolved)) return (0, react_jsx_runtime.jsx)(Text$2, resolved);
19627
+ var { __inheritedStyles: _, __textMetrics: _metrics, onClick } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded3);
19453
19628
  if (onClick === void 0) return (0, react_jsx_runtime.jsx)(Text$2, hostProps);
19454
19629
  hostProps.onPress = clickFromPress(onClick);
19455
19630
  return (0, react_jsx_runtime.jsx)(Text$2, hostProps);
@@ -19462,8 +19637,8 @@ function DOMImageWithViewportRef(props) {
19462
19637
  return withViewportRef(renderDOMImage, props);
19463
19638
  }
19464
19639
  function renderDOMImage(resolved) {
19465
- if (resolved.onClick === void 0 && resolved.onLoad === void 0 && resolved.onError === void 0 && !("__inheritedStyles" in resolved)) return (0, react_jsx_runtime.jsx)(ImageWithStatics, resolved);
19466
- var { __inheritedStyles: _, onClick, onLoad, onError } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded4);
19640
+ if (resolved.onClick === void 0 && resolved.onLoad === void 0 && resolved.onError === void 0 && !("__inheritedStyles" in resolved) && !("__textMetrics" in resolved)) return (0, react_jsx_runtime.jsx)(ImageWithStatics, resolved);
19641
+ var { __inheritedStyles: _, __textMetrics: _metrics, onClick, onLoad, onError } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded4);
19467
19642
  if (onClick === void 0 && onLoad === void 0 && onError === void 0) return (0, react_jsx_runtime.jsx)(ImageWithStatics, hostProps);
19468
19643
  var next = hostProps;
19469
19644
  if (onClick) next.onPress = clickFromPress(onClick);
@@ -19479,8 +19654,8 @@ function DOMTextInputWithViewportRef(props) {
19479
19654
  return withViewportRef(resolvedDOMTextInput, props);
19480
19655
  }
19481
19656
  function renderDOMTextInput(resolved) {
19482
- if (resolved.onChange === void 0 && resolved.onInput === void 0 && resolved.onKeyDown === void 0 && !("__inheritedStyles" in resolved)) return (0, react_jsx_runtime.jsx)(TextInput, resolved);
19483
- var { __inheritedStyles: _, onChange, onInput, onKeyDown } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded5);
19657
+ if (resolved.onChange === void 0 && resolved.onInput === void 0 && resolved.onKeyDown === void 0 && !("__inheritedStyles" in resolved) && !("__textMetrics" in resolved)) return (0, react_jsx_runtime.jsx)(TextInput, resolved);
19658
+ var { __inheritedStyles: _, __textMetrics: _metrics, onChange, onInput, onKeyDown } = resolved, hostProps = _objectWithoutProperties(resolved, _excluded5);
19484
19659
  if (onChange === void 0 && onInput === void 0 && onKeyDown === void 0) return (0, react_jsx_runtime.jsx)(TextInput, hostProps);
19485
19660
  var next = hostProps;
19486
19661
  var change = textEntryChange(onChange, onInput);
@@ -19488,27 +19663,27 @@ function renderDOMTextInput(resolved) {
19488
19663
  if (onKeyDown) next.onKeyPress = keyFromKeyPress(onKeyDown);
19489
19664
  return (0, react_jsx_runtime.jsx)(TextInput, next);
19490
19665
  }
19491
- createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19666
+ createComponent(_objectSpread2(_objectSpread2({ isDOM: true }, viewStaticConfig), {}, {
19492
19667
  validStyles: _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles),
19493
19668
  neverSkipProps: domEventProps,
19494
19669
  Component: DOMView,
19495
19670
  neverFlatten: true,
19496
19671
  displayName: "DOMRuntimeView"
19497
19672
  }));
19498
- createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19673
+ createComponent(_objectSpread2(_objectSpread2({ isDOM: true }, textStaticConfig), {}, {
19499
19674
  neverSkipProps: domEventProps,
19500
19675
  Component: DOMText,
19501
19676
  neverFlatten: true,
19502
19677
  displayName: "DOMRuntimeText"
19503
19678
  }));
19504
- createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19679
+ createComponent(_objectSpread2(_objectSpread2({ isDOM: true }, viewStaticConfig), {}, {
19505
19680
  validStyles: _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles),
19506
19681
  neverSkipProps: domEventProps,
19507
19682
  Component: DOMImage,
19508
19683
  neverFlatten: true,
19509
19684
  displayName: "DOMRuntimeImage"
19510
19685
  }));
19511
- createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19686
+ createComponent(_objectSpread2(_objectSpread2({ isDOM: true }, textStaticConfig), {}, {
19512
19687
  neverSkipProps: domEventProps,
19513
19688
  Component: DOMTextInput,
19514
19689
  neverFlatten: true,
@@ -19763,6 +19938,7 @@ var primitive = function(component) {
19763
19938
  var html = {
19764
19939
  a: domTag("a", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19765
19940
  validStyles: domValidStyles,
19941
+ isDOM: true,
19766
19942
  neverSkipProps: domEventProps,
19767
19943
  Component: primitive(DOMText),
19768
19944
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19775,6 +19951,7 @@ var html = {
19775
19951
  }),
19776
19952
  article: domTag("article", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19777
19953
  validStyles: domValidStyles,
19954
+ isDOM: true,
19778
19955
  neverSkipProps: domEventProps,
19779
19956
  Component: primitive(DOMView),
19780
19957
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19791,6 +19968,7 @@ var html = {
19791
19968
  })), { wrapsLiteralText: true }),
19792
19969
  aside: domTag("aside", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19793
19970
  validStyles: domValidStyles,
19971
+ isDOM: true,
19794
19972
  neverSkipProps: domEventProps,
19795
19973
  Component: primitive(DOMView),
19796
19974
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19807,6 +19985,7 @@ var html = {
19807
19985
  })), { wrapsLiteralText: true }),
19808
19986
  b: domTag("b", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19809
19987
  validStyles: domValidStyles,
19988
+ isDOM: true,
19810
19989
  neverSkipProps: domEventProps,
19811
19990
  Component: primitive(DOMText),
19812
19991
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19817,6 +19996,7 @@ var html = {
19817
19996
  })), { inherits: true }),
19818
19997
  bdi: domTag("bdi", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19819
19998
  validStyles: domValidStyles,
19999
+ isDOM: true,
19820
20000
  neverSkipProps: domEventProps,
19821
20001
  Component: primitive(DOMText),
19822
20002
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19826,6 +20006,7 @@ var html = {
19826
20006
  })), { inherits: true }),
19827
20007
  bdo: domTag("bdo", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19828
20008
  validStyles: domValidStyles,
20009
+ isDOM: true,
19829
20010
  neverSkipProps: domEventProps,
19830
20011
  Component: primitive(DOMText),
19831
20012
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19835,6 +20016,7 @@ var html = {
19835
20016
  })), { inherits: true }),
19836
20017
  blockquote: domTag("blockquote", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19837
20018
  validStyles: domValidStyles,
20019
+ isDOM: true,
19838
20020
  neverSkipProps: domEventProps,
19839
20021
  Component: primitive(DOMView),
19840
20022
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19851,6 +20033,7 @@ var html = {
19851
20033
  })), { wrapsLiteralText: true }),
19852
20034
  br: domTag("br", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19853
20035
  validStyles: domValidStyles,
20036
+ isDOM: true,
19854
20037
  neverSkipProps: domEventProps,
19855
20038
  Component: primitive(DOMText),
19856
20039
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19860,6 +20043,7 @@ var html = {
19860
20043
  })), { inherits: true }),
19861
20044
  button: domTag("button", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19862
20045
  validStyles: domValidStyles,
20046
+ isDOM: true,
19863
20047
  neverSkipProps: domEventProps,
19864
20048
  Component: primitive(DOMView),
19865
20049
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19873,6 +20057,7 @@ var html = {
19873
20057
  }),
19874
20058
  code: domTag("code", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19875
20059
  validStyles: domValidStyles,
20060
+ isDOM: true,
19876
20061
  neverSkipProps: domEventProps,
19877
20062
  Component: primitive(DOMText),
19878
20063
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19883,6 +20068,7 @@ var html = {
19883
20068
  })), { inherits: true }),
19884
20069
  del: domTag("del", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19885
20070
  validStyles: domValidStyles,
20071
+ isDOM: true,
19886
20072
  neverSkipProps: domEventProps,
19887
20073
  Component: primitive(DOMText),
19888
20074
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19893,6 +20079,7 @@ var html = {
19893
20079
  })), { inherits: true }),
19894
20080
  div: domTag("div", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19895
20081
  validStyles: domValidStyles,
20082
+ isDOM: true,
19896
20083
  neverSkipProps: domEventProps,
19897
20084
  Component: primitive(DOMView),
19898
20085
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19909,6 +20096,7 @@ var html = {
19909
20096
  })), { wrapsLiteralText: true }),
19910
20097
  em: domTag("em", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19911
20098
  validStyles: domValidStyles,
20099
+ isDOM: true,
19912
20100
  neverSkipProps: domEventProps,
19913
20101
  Component: primitive(DOMText),
19914
20102
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19919,6 +20107,7 @@ var html = {
19919
20107
  })), { inherits: true }),
19920
20108
  fieldset: domTag("fieldset", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19921
20109
  validStyles: domValidStyles,
20110
+ isDOM: true,
19922
20111
  neverSkipProps: domEventProps,
19923
20112
  Component: primitive(DOMView),
19924
20113
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19935,6 +20124,7 @@ var html = {
19935
20124
  })), { wrapsLiteralText: true }),
19936
20125
  footer: domTag("footer", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19937
20126
  validStyles: domValidStyles,
20127
+ isDOM: true,
19938
20128
  neverSkipProps: domEventProps,
19939
20129
  Component: primitive(DOMView),
19940
20130
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19951,6 +20141,7 @@ var html = {
19951
20141
  })), { wrapsLiteralText: true }),
19952
20142
  form: domTag("form", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
19953
20143
  validStyles: domValidStyles,
20144
+ isDOM: true,
19954
20145
  neverSkipProps: domEventProps,
19955
20146
  Component: primitive(DOMView),
19956
20147
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -19967,6 +20158,7 @@ var html = {
19967
20158
  })), { wrapsLiteralText: true }),
19968
20159
  h1: domTag("h1", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19969
20160
  validStyles: domValidStyles,
20161
+ isDOM: true,
19970
20162
  neverSkipProps: domEventProps,
19971
20163
  Component: primitive(DOMText),
19972
20164
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -19988,6 +20180,7 @@ var html = {
19988
20180
  }),
19989
20181
  h2: domTag("h2", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
19990
20182
  validStyles: domValidStyles,
20183
+ isDOM: true,
19991
20184
  neverSkipProps: domEventProps,
19992
20185
  Component: primitive(DOMText),
19993
20186
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20009,6 +20202,7 @@ var html = {
20009
20202
  }),
20010
20203
  h3: domTag("h3", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20011
20204
  validStyles: domValidStyles,
20205
+ isDOM: true,
20012
20206
  neverSkipProps: domEventProps,
20013
20207
  Component: primitive(DOMText),
20014
20208
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20030,6 +20224,7 @@ var html = {
20030
20224
  }),
20031
20225
  h4: domTag("h4", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20032
20226
  validStyles: domValidStyles,
20227
+ isDOM: true,
20033
20228
  neverSkipProps: domEventProps,
20034
20229
  Component: primitive(DOMText),
20035
20230
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20051,6 +20246,7 @@ var html = {
20051
20246
  }),
20052
20247
  h5: domTag("h5", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20053
20248
  validStyles: domValidStyles,
20249
+ isDOM: true,
20054
20250
  neverSkipProps: domEventProps,
20055
20251
  Component: primitive(DOMText),
20056
20252
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20072,6 +20268,7 @@ var html = {
20072
20268
  }),
20073
20269
  h6: domTag("h6", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20074
20270
  validStyles: domValidStyles,
20271
+ isDOM: true,
20075
20272
  neverSkipProps: domEventProps,
20076
20273
  Component: primitive(DOMText),
20077
20274
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20093,6 +20290,7 @@ var html = {
20093
20290
  }),
20094
20291
  header: domTag("header", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20095
20292
  validStyles: domValidStyles,
20293
+ isDOM: true,
20096
20294
  neverSkipProps: domEventProps,
20097
20295
  Component: primitive(DOMView),
20098
20296
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20112,6 +20310,7 @@ var html = {
20112
20310
  }),
20113
20311
  hr: domTag("hr", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20114
20312
  validStyles: domValidStyles,
20313
+ isDOM: true,
20115
20314
  neverSkipProps: domEventProps,
20116
20315
  Component: primitive(DOMView),
20117
20316
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20130,6 +20329,7 @@ var html = {
20130
20329
  })), { wrapsLiteralText: true }),
20131
20330
  i: domTag("i", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20132
20331
  validStyles: domValidStyles,
20332
+ isDOM: true,
20133
20333
  neverSkipProps: domEventProps,
20134
20334
  Component: primitive(DOMText),
20135
20335
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20140,6 +20340,7 @@ var html = {
20140
20340
  })), { inherits: true }),
20141
20341
  img: domTag("img", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20142
20342
  validStyles: domValidStyles,
20343
+ isDOM: true,
20143
20344
  neverSkipProps: domEventProps,
20144
20345
  Component: primitive(DOMImage),
20145
20346
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20150,6 +20351,7 @@ var html = {
20150
20351
  }))),
20151
20352
  input: domTag("input", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20152
20353
  validStyles: domValidStyles,
20354
+ isDOM: true,
20153
20355
  neverSkipProps: domEventProps,
20154
20356
  Component: primitive(DOMTextInput),
20155
20357
  isInput: true,
@@ -20164,6 +20366,7 @@ var html = {
20164
20366
  }),
20165
20367
  ins: domTag("ins", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20166
20368
  validStyles: domValidStyles,
20369
+ isDOM: true,
20167
20370
  neverSkipProps: domEventProps,
20168
20371
  Component: primitive(DOMText),
20169
20372
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20174,6 +20377,7 @@ var html = {
20174
20377
  })), { inherits: true }),
20175
20378
  kbd: domTag("kbd", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20176
20379
  validStyles: domValidStyles,
20380
+ isDOM: true,
20177
20381
  neverSkipProps: domEventProps,
20178
20382
  Component: primitive(DOMText),
20179
20383
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20184,6 +20388,7 @@ var html = {
20184
20388
  })), { inherits: true }),
20185
20389
  label: domTag("label", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20186
20390
  validStyles: domValidStyles,
20391
+ isDOM: true,
20187
20392
  neverSkipProps: domEventProps,
20188
20393
  Component: primitive(DOMText),
20189
20394
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20193,6 +20398,7 @@ var html = {
20193
20398
  })), { inherits: true }),
20194
20399
  li: domTag("li", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20195
20400
  validStyles: domValidStyles,
20401
+ isDOM: true,
20196
20402
  neverSkipProps: domEventProps,
20197
20403
  Component: primitive(DOMView),
20198
20404
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20212,6 +20418,7 @@ var html = {
20212
20418
  }),
20213
20419
  main: domTag("main", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20214
20420
  validStyles: domValidStyles,
20421
+ isDOM: true,
20215
20422
  neverSkipProps: domEventProps,
20216
20423
  Component: primitive(DOMView),
20217
20424
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20228,6 +20435,7 @@ var html = {
20228
20435
  })), { wrapsLiteralText: true }),
20229
20436
  mark: domTag("mark", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20230
20437
  validStyles: domValidStyles,
20438
+ isDOM: true,
20231
20439
  neverSkipProps: domEventProps,
20232
20440
  Component: primitive(DOMText),
20233
20441
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20239,6 +20447,7 @@ var html = {
20239
20447
  })), { inherits: true }),
20240
20448
  nav: domTag("nav", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20241
20449
  validStyles: domValidStyles,
20450
+ isDOM: true,
20242
20451
  neverSkipProps: domEventProps,
20243
20452
  Component: primitive(DOMView),
20244
20453
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20255,6 +20464,7 @@ var html = {
20255
20464
  })), { wrapsLiteralText: true }),
20256
20465
  ol: domTag("ol", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20257
20466
  validStyles: domValidStyles,
20467
+ isDOM: true,
20258
20468
  neverSkipProps: domEventProps,
20259
20469
  Component: primitive(DOMView),
20260
20470
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20276,6 +20486,7 @@ var html = {
20276
20486
  option: unsupportedDOMTag("option", "native has no menu-based select control, so this tag is a native build error"),
20277
20487
  p: domTag("p", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20278
20488
  validStyles: domValidStyles,
20489
+ isDOM: true,
20279
20490
  neverSkipProps: domEventProps,
20280
20491
  Component: primitive(DOMText),
20281
20492
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20292,6 +20503,7 @@ var html = {
20292
20503
  })), { inherits: true }),
20293
20504
  pre: domTag("pre", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20294
20505
  validStyles: domValidStyles,
20506
+ isDOM: true,
20295
20507
  neverSkipProps: domEventProps,
20296
20508
  Component: primitive(DOMText),
20297
20509
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20309,6 +20521,7 @@ var html = {
20309
20521
  })), { inherits: true }),
20310
20522
  s: domTag("s", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20311
20523
  validStyles: domValidStyles,
20524
+ isDOM: true,
20312
20525
  neverSkipProps: domEventProps,
20313
20526
  Component: primitive(DOMText),
20314
20527
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20319,6 +20532,7 @@ var html = {
20319
20532
  })), { inherits: true }),
20320
20533
  section: domTag("section", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20321
20534
  validStyles: domValidStyles,
20535
+ isDOM: true,
20322
20536
  neverSkipProps: domEventProps,
20323
20537
  Component: primitive(DOMView),
20324
20538
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -20336,6 +20550,7 @@ var html = {
20336
20550
  select: unsupportedDOMTag("select", "native has no menu-based select control, so this tag is a native build error"),
20337
20551
  span: domTag("span", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20338
20552
  validStyles: domValidStyles,
20553
+ isDOM: true,
20339
20554
  neverSkipProps: domEventProps,
20340
20555
  Component: primitive(DOMText),
20341
20556
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20345,6 +20560,7 @@ var html = {
20345
20560
  })), { inherits: true }),
20346
20561
  strong: domTag("strong", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20347
20562
  validStyles: domValidStyles,
20563
+ isDOM: true,
20348
20564
  neverSkipProps: domEventProps,
20349
20565
  Component: primitive(DOMText),
20350
20566
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20355,6 +20571,7 @@ var html = {
20355
20571
  })), { inherits: true }),
20356
20572
  sub: domTag("sub", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20357
20573
  validStyles: domValidStyles,
20574
+ isDOM: true,
20358
20575
  neverSkipProps: domEventProps,
20359
20576
  Component: primitive(DOMText),
20360
20577
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20364,6 +20581,7 @@ var html = {
20364
20581
  })), { inherits: true }),
20365
20582
  sup: domTag("sup", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20366
20583
  validStyles: domValidStyles,
20584
+ isDOM: true,
20367
20585
  neverSkipProps: domEventProps,
20368
20586
  Component: primitive(DOMText),
20369
20587
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20373,6 +20591,7 @@ var html = {
20373
20591
  })), { inherits: true }),
20374
20592
  textarea: domTag("textarea", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20375
20593
  validStyles: domValidStyles,
20594
+ isDOM: true,
20376
20595
  neverSkipProps: domEventProps,
20377
20596
  Component: primitive(DOMTextInput),
20378
20597
  isInput: true,
@@ -20388,6 +20607,7 @@ var html = {
20388
20607
  }),
20389
20608
  u: domTag("u", createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20390
20609
  validStyles: domValidStyles,
20610
+ isDOM: true,
20391
20611
  neverSkipProps: domEventProps,
20392
20612
  Component: primitive(DOMText),
20393
20613
  defaultProps: _objectSpread2(_objectSpread2({}, textStaticConfig.defaultProps), {}, {
@@ -20398,6 +20618,7 @@ var html = {
20398
20618
  })), { inherits: true }),
20399
20619
  ul: domTag("ul", createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20400
20620
  validStyles: domValidStyles,
20621
+ isDOM: true,
20401
20622
  neverSkipProps: domEventProps,
20402
20623
  Component: primitive(DOMView),
20403
20624
  defaultProps: _objectSpread2(_objectSpread2({}, viewStaticConfig.defaultProps), {}, {
@@ -21017,12 +21238,6 @@ exports.Configuration = Configuration;
21017
21238
  exports.FontLanguage = FontLanguage;
21018
21239
  exports.GroupContext = GroupContext;
21019
21240
  exports.LayoutMeasurementController = LayoutMeasurementController;
21020
- Object.defineProperty(exports, "SizeContext", {
21021
- enumerable: true,
21022
- get: function() {
21023
- return _tamagui_size.SizeContext;
21024
- }
21025
- });
21026
21241
  exports.Slot = Slot;
21027
21242
  exports.Slottable = Slottable;
21028
21243
  exports.StyleObjectIdentifier = StyleObjectIdentifier;
@@ -21053,12 +21268,6 @@ exports.createComponent = createComponent;
21053
21268
  exports.createFont = createFont;
21054
21269
  exports.createRefComponent = createRefComponent;
21055
21270
  exports.createShorthands = createShorthands;
21056
- Object.defineProperty(exports, "createSizeContext", {
21057
- enumerable: true,
21058
- get: function() {
21059
- return _tamagui_size.createSizeContext;
21060
- }
21061
- });
21062
21271
  exports.createStyledContext = createStyledContext;
21063
21272
  exports.createStyledHOC = createStyledHOC;
21064
21273
  exports.createTamagui = createTamagui;
@@ -21131,22 +21340,11 @@ exports.nonAnimatableWebTextProps = nonAnimatableWebTextProps;
21131
21340
  exports.nonAnimatableWebViewProps = nonAnimatableWebViewProps;
21132
21341
  exports.normalizeColor = normalizeColor;
21133
21342
  exports.normalizeStyle = normalizeStyle;
21134
- Object.defineProperty(exports, "oneSizeSmaller", {
21135
- enumerable: true,
21136
- get: function() {
21137
- return _tamagui_size.oneSizeSmaller;
21138
- }
21139
- });
21140
21343
  exports.px = px;
21141
21344
  exports.registerLayoutNode = registerLayoutNode;
21142
21345
  exports.removeNativeStyleScope = removeNativeStyleScope;
21143
21346
  exports.reservedThemeProps = reservedThemeProps;
21144
- Object.defineProperty(exports, "resolveSize", {
21145
- enumerable: true,
21146
- get: function() {
21147
- return _tamagui_size.resolveSize;
21148
- }
21149
- });
21347
+ exports.resolveTextMetrics = resolveTextMetrics;
21150
21348
  exports.resolveThemeName = resolveThemeName;
21151
21349
  exports.setConfig = setConfig;
21152
21350
  exports.setMediaState = setMediaState;