@hero-design/rn-work-uikit 1.13.4 → 1.13.5

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/es/index.js CHANGED
@@ -5485,6 +5485,8 @@ var getFonts = function getFonts(_ref) {
5485
5485
  lightItalic: "".concat(neutral, "-LightItalic"),
5486
5486
  regular: "".concat(neutral, "-Regular"),
5487
5487
  regularItalic: "".concat(neutral, "-RegularItalic"),
5488
+ medium: "".concat(neutral, "-Medium"),
5489
+ mediumItalic: "".concat(neutral, "-MediumItalic"),
5488
5490
  semiBold: "".concat(neutral, "-SemiBold"),
5489
5491
  semiBoldItalic: "".concat(neutral, "-SemiBoldItalic")
5490
5492
  },
@@ -5493,6 +5495,8 @@ var getFonts = function getFonts(_ref) {
5493
5495
  lightItalic: "".concat(playful, "-LightItalic"),
5494
5496
  regular: "".concat(playful, "-Regular"),
5495
5497
  regularItalic: "".concat(playful, "-RegularItalic"),
5498
+ medium: "".concat(playful, "-Regular"),
5499
+ mediumItalic: "".concat(playful, "-RegularItalic"),
5496
5500
  semiBold: "".concat(playful, "-Medium"),
5497
5501
  semiBoldItalic: "".concat(playful, "-MediumItalic")
5498
5502
  }
@@ -7363,33 +7367,41 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
7363
7367
  asterisks: {
7364
7368
  "default": theme.colors.onErrorSurface,
7365
7369
  error: theme.colors.onErrorSurface,
7366
- disabled: theme.colors.disabledOnDefaultGlobalSurface,
7367
- readonly: theme.colors.inactiveOnDefaultGlobalSurface,
7370
+ disabled: theme.colors.onErrorSurface,
7371
+ readonly: theme.colors.onErrorSurface,
7368
7372
  filled: theme.colors.onErrorSurface
7369
7373
  },
7370
7374
  error: theme.colors.onErrorSurface,
7371
- text: theme.colors.onDefaultGlobalSurface,
7375
+ text: {
7376
+ "default": theme.colors.onDefaultGlobalSurface,
7377
+ filled: theme.colors.onDefaultGlobalSurface,
7378
+ error: theme.colors.onDefaultGlobalSurface,
7379
+ readonly: theme.colors.mutedOnDefaultGlobalSurface,
7380
+ disabled: theme.colors.mutedOnDefaultGlobalSurface
7381
+ },
7372
7382
  borders: {
7373
- "default": theme.colors.primaryOutline,
7383
+ "default": theme.colors.inactiveOutline,
7374
7384
  error: theme.colors.onErrorSurface,
7375
- disabled: theme.colors.disabledOutline,
7385
+ disabled: theme.colors.inactiveOutline,
7376
7386
  readonly: theme.colors.inactiveOutline,
7377
- filled: theme.colors.primaryOutline
7387
+ filled: theme.colors.inactiveOutline,
7388
+ focused: theme.colors.primaryOutline
7378
7389
  },
7379
7390
  labels: {
7380
- "default": theme.colors.onDefaultGlobalSurface,
7391
+ "default": theme.colors.mutedOnDefaultGlobalSurface,
7381
7392
  error: theme.colors.onDefaultGlobalSurface,
7382
7393
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
7383
7394
  readonly: theme.colors.mutedOnDefaultGlobalSurface,
7384
- filled: theme.colors.onDefaultGlobalSurface
7395
+ filled: theme.colors.mutedOnDefaultGlobalSurface
7385
7396
  },
7386
7397
  labelsInsideTextInput: {
7387
- "default": theme.colors.onDefaultGlobalSurface,
7398
+ "default": theme.colors.mutedOnDefaultGlobalSurface,
7388
7399
  error: theme.colors.onDefaultGlobalSurface,
7389
7400
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
7390
- readonly: theme.colors.inactiveOnDefaultGlobalSurface,
7391
- filled: theme.colors.onDefaultGlobalSurface
7401
+ readonly: theme.colors.mutedOnDefaultGlobalSurface,
7402
+ filled: theme.colors.mutedOnDefaultGlobalSurface
7392
7403
  },
7404
+ readonlyBackground: theme.colors.neutralGlobalSurface,
7393
7405
  maxLengthLabels: {
7394
7406
  "default": theme.colors.onDefaultGlobalSurface,
7395
7407
  error: theme.colors.onErrorSurface,
@@ -7406,19 +7418,21 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
7406
7418
  }
7407
7419
  };
7408
7420
  var space = {
7409
- containerPadding: theme.space.medium,
7421
+ containerHorizontalPadding: theme.space.medium,
7422
+ containerVerticalPadding: theme.space.small,
7410
7423
  labelLeft: theme.space.xlarge,
7411
7424
  labelTop: theme.space.xlarge / 3,
7412
7425
  labelPaddingBottom: theme.space.small,
7413
7426
  labelHorizontalPadding: theme.space.xsmall,
7414
- inputHorizontalMargin: theme.space.small,
7427
+ inputHorizontalMargin: theme.space.smallMedium,
7415
7428
  errorContainerMarginRight: theme.space.xsmall,
7416
7429
  errorAndHelpTextContainerMarginTop: theme.space.xxsmall,
7417
- errorMarginLeft: theme.space.xsmall,
7418
- errorAndHelpTextContainerHorizontalPadding: theme.space.medium,
7419
7430
  containerMarginTop: theme.space.small,
7420
- labelInsideTextInputMarginTop: -theme.space.xxsmall,
7421
- errorAndHelpTextContainerPaddingTop: theme.space.xxsmall
7431
+ labelInsideTextInputMarginTop: 0,
7432
+ errorAndHelpTextContainerPaddingTop: theme.space.xxsmall,
7433
+ inputAndLabelContainerPaddingTop: theme.lineHeights.medium,
7434
+ labelFocusedTranslateY: theme.space.xsmall * 2,
7435
+ textareaLabelIdleTranslateY: theme.space.large
7422
7436
  };
7423
7437
  var fonts = {
7424
7438
  text: theme.fonts.neutral.regular
@@ -7434,19 +7448,21 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
7434
7448
  var borderWidths = {
7435
7449
  container: {
7436
7450
  normal: theme.borderWidths.base,
7437
- focused: theme.borderWidths.medium
7451
+ focused: theme.borderWidths.base
7438
7452
  }
7439
7453
  };
7440
7454
  var radii = {
7441
7455
  container: theme.radii.medium
7442
7456
  };
7443
7457
  var sizes = {
7444
- errorAndHelpTextContainerHeight: theme.sizes.medium,
7445
- textareaHeight: theme.sizes['15xlarge'],
7458
+ errorAndHelpTextContainerMinHeight: theme.space.large,
7459
+ containerMinHeight: scale(58),
7460
+ textareaHeight: scale(120),
7446
7461
  textInputMaxHeight: theme.sizes['15xlarge']
7447
7462
  };
7448
7463
  var lineHeights = {
7449
- topLabel: theme.lineHeights.large / 2
7464
+ topLabel: theme.lineHeights.large / 2,
7465
+ label: theme.lineHeights.large
7450
7466
  };
7451
7467
  return {
7452
7468
  colors: colors,
@@ -7697,11 +7713,13 @@ var getTypographyTheme = function getTypographyTheme(theme) {
7697
7713
  body: {
7698
7714
  neutral: {
7699
7715
  semiBold: 0.24,
7716
+ medium: 0.3,
7700
7717
  regular: 0.48,
7701
7718
  small: 0.48
7702
7719
  },
7703
7720
  playful: {
7704
7721
  semiBold: 0.54,
7722
+ medium: 0.54,
7705
7723
  regular: 0.54,
7706
7724
  small: 0.54
7707
7725
  }
@@ -9049,9 +9067,15 @@ var Text = function Text(_ref) {
9049
9067
  var FONTWEIGHT_MAP$1 = {
9050
9068
  light: 'light',
9051
9069
  regular: 'regular',
9070
+ medium: 'medium',
9052
9071
  'semi-bold': 'semiBold'
9053
9072
  };
9054
9073
 
9074
+ var LETTER_SPACING_MAP = {
9075
+ regular: 0.36,
9076
+ medium: 0.3,
9077
+ 'semi-bold': 0.24
9078
+ };
9055
9079
  var StyledCaption = index$c(Text$1)(function (_ref) {
9056
9080
  var themeFontWeight = _ref.themeFontWeight,
9057
9081
  themeIntent = _ref.themeIntent,
@@ -9059,10 +9083,11 @@ var StyledCaption = index$c(Text$1)(function (_ref) {
9059
9083
  themeIsItalic = _ref.themeIsItalic;
9060
9084
  var baseFontWeight = FONTWEIGHT_MAP$1[themeFontWeight];
9061
9085
  var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
9086
+ var letterSpacing = LETTER_SPACING_MAP[themeFontWeight];
9062
9087
  return {
9063
9088
  fontSize: theme.__hd__.typography.fontSizes.caption,
9064
9089
  lineHeight: theme.__hd__.typography.lineHeights.caption,
9065
- letterSpacing: themeFontWeight === 'regular' ? 0.36 : 0.24,
9090
+ letterSpacing: letterSpacing,
9066
9091
  color: theme.__hd__.typography.colors[themeIntent],
9067
9092
  fontFamily: fontFamily
9068
9093
  };
@@ -9172,10 +9197,10 @@ var Caption = function Caption(_ref) {
9172
9197
  var StyledLabel$2 = index$c(Text$1)(function (_ref) {
9173
9198
  var themeIntent = _ref.themeIntent,
9174
9199
  theme = _ref.theme,
9175
- themeIsItalic = _ref.themeIsItalic;
9176
- // For Label, we assume 'regular' weight for base font family
9177
- var baseFontWeight = 'regular';
9178
- var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
9200
+ themeIsItalic = _ref.themeIsItalic,
9201
+ _ref$themeFontWeight = _ref.themeFontWeight,
9202
+ themeFontWeight = _ref$themeFontWeight === void 0 ? 'regular' : _ref$themeFontWeight;
9203
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(themeFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[themeFontWeight];
9179
9204
  return {
9180
9205
  fontSize: theme.__hd__.typography.fontSizes.label,
9181
9206
  lineHeight: theme.__hd__.typography.lineHeights.label,
@@ -9185,7 +9210,7 @@ var StyledLabel$2 = index$c(Text$1)(function (_ref) {
9185
9210
  };
9186
9211
  });
9187
9212
 
9188
- var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
9213
+ var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
9189
9214
  var Label = function Label(_ref) {
9190
9215
  var children = _ref.children,
9191
9216
  _ref$intent = _ref.intent,
@@ -9194,6 +9219,8 @@ var Label = function Label(_ref) {
9194
9219
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
9195
9220
  _ref$fontStyle = _ref.fontStyle,
9196
9221
  fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
9222
+ _ref$fontWeight = _ref.fontWeight,
9223
+ fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
9197
9224
  style = _ref.style,
9198
9225
  testID = _ref.testID,
9199
9226
  nativeProps = _objectWithoutProperties(_ref, _excluded$M);
@@ -9201,6 +9228,7 @@ var Label = function Label(_ref) {
9201
9228
  var styledText = /*#__PURE__*/React__default.createElement(StyledLabel$2, _extends$1({}, nativeProps, {
9202
9229
  themeIntent: isAi ? 'body' : intent,
9203
9230
  themeIsItalic: fontStyle === 'italic',
9231
+ themeFontWeight: fontWeight,
9204
9232
  allowFontScaling: allowFontScaling,
9205
9233
  style: style,
9206
9234
  testID: testID
@@ -9261,12 +9289,16 @@ var Title = function Title(_ref) {
9261
9289
  var FONTWEIGHT_MAP = {
9262
9290
  regular: 'regular',
9263
9291
  small: 'regular',
9292
+ 'regular-medium': 'medium',
9293
+ 'small-medium': 'medium',
9264
9294
  'regular-bold': 'semiBold',
9265
9295
  'small-bold': 'semiBold'
9266
9296
  };
9267
9297
  var FONTSIZE_MAP = {
9268
9298
  regular: 'regular',
9269
9299
  small: 'small',
9300
+ 'regular-medium': 'regular',
9301
+ 'small-medium': 'small',
9270
9302
  'regular-bold': 'regular',
9271
9303
  'small-bold': 'small'
9272
9304
  };
@@ -9276,12 +9308,12 @@ var StyledBody$2 = index$c(Text$1)(function (_ref) {
9276
9308
  themeTypeface = _ref.themeTypeface,
9277
9309
  themeVariant = _ref.themeVariant,
9278
9310
  themeIsItalic = _ref.themeIsItalic;
9279
- var baseFontWeight = FONTWEIGHT_MAP[themeVariant];
9280
- var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts[themeTypeface]["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts[themeTypeface][baseFontWeight];
9311
+ var fontWeight = FONTWEIGHT_MAP[themeVariant];
9312
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts[themeTypeface]["".concat(fontWeight, "Italic")] : theme.__hd__.typography.fonts[themeTypeface][fontWeight];
9281
9313
  return {
9282
9314
  fontSize: theme.__hd__.typography.fontSizes.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
9283
9315
  lineHeight: theme.__hd__.typography.lineHeights.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
9284
- letterSpacing: theme.__hd__.typography.letterSpacings.body[themeTypeface][FONTWEIGHT_MAP[themeVariant]],
9316
+ letterSpacing: theme.__hd__.typography.letterSpacings.body[themeTypeface][fontWeight],
9285
9317
  fontFamily: fontFamily,
9286
9318
  color: theme.__hd__.typography.colors[themeIntent]
9287
9319
  };
@@ -10314,6 +10346,24 @@ var Box = function Box(_ref) {
10314
10346
  }), children);
10315
10347
  };
10316
10348
 
10349
+ var genBorderWidth = function genBorderWidth(theme, themeState, themeFocused) {
10350
+ if (themeState === 'readonly') return 0;
10351
+ return themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal;
10352
+ };
10353
+ var genBorderColor = function genBorderColor(theme, themeState, themeFocused, themeFilled) {
10354
+ var _theme$__hd__$textInp2;
10355
+ if (themeState === 'error' && !themeFilled) {
10356
+ return theme.__hd__.textInput.colors.borders["default"];
10357
+ }
10358
+ if (themeState === 'error' && themeFilled) {
10359
+ return theme.__hd__.textInput.colors.borders.error;
10360
+ }
10361
+ if (themeFocused) {
10362
+ var _theme$__hd__$textInp;
10363
+ return (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders.focused) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"];
10364
+ }
10365
+ return (_theme$__hd__$textInp2 = theme.__hd__.textInput.colors.borders[themeState]) !== null && _theme$__hd__$textInp2 !== void 0 ? _theme$__hd__$textInp2 : theme.__hd__.textInput.colors.borders["default"];
10366
+ };
10317
10367
  var StyledContainer$b = index$c(View)(function (_ref) {
10318
10368
  var theme = _ref.theme;
10319
10369
  return {
@@ -10323,16 +10373,15 @@ var StyledContainer$b = index$c(View)(function (_ref) {
10323
10373
  });
10324
10374
  var StyledLabelContainerInsideTextInput = index$c(Animated.View)(function (_ref2) {
10325
10375
  var themeVariant = _ref2.themeVariant,
10326
- themeHasPrefix = _ref2.themeHasPrefix,
10327
10376
  theme = _ref2.theme;
10328
10377
  return {
10329
10378
  flexDirection: 'row',
10330
10379
  alignItems: themeVariant === 'text' ? 'center' : 'flex-start',
10331
10380
  position: 'absolute',
10332
10381
  zIndex: 1,
10333
- left: themeHasPrefix ? theme.space.xxlarge : theme.space.medium + theme.space.small,
10382
+ left: 0,
10334
10383
  right: theme.space.medium,
10335
- top: -theme.__hd__.textInput.space.labelTop
10384
+ top: 0
10336
10385
  };
10337
10386
  });
10338
10387
  var StyledLabelInsideTextInput = index$c(View)(function (_ref3) {
@@ -10367,8 +10416,7 @@ var StyledErrorContainer$2 = index$c(View)(function (_ref5) {
10367
10416
  var StyledError$1 = index$c(Typography.Caption)(function (_ref6) {
10368
10417
  var theme = _ref6.theme;
10369
10418
  return {
10370
- color: theme.__hd__.textInput.colors.error,
10371
- marginLeft: theme.__hd__.textInput.space.errorMarginLeft
10419
+ color: theme.__hd__.textInput.colors.error
10372
10420
  };
10373
10421
  });
10374
10422
  var StyledMaxLengthMessage = index$c(Typography.Caption)(function (_ref7) {
@@ -10390,7 +10438,7 @@ var StyledTextInput$1 = index$c(TextInput$2)(function (_ref8) {
10390
10438
  fontSize: theme.__hd__.textInput.fontSizes.text,
10391
10439
  alignSelf: 'stretch',
10392
10440
  flexGrow: 2,
10393
- marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin,
10441
+ marginHorizontal: 0,
10394
10442
  paddingVertical: 0,
10395
10443
  maxHeight: theme.__hd__.textInput.sizes.textInputMaxHeight,
10396
10444
  height: themeVariant === 'text' ? undefined : theme.__hd__.textInput.sizes.textareaHeight,
@@ -10398,45 +10446,66 @@ var StyledTextInput$1 = index$c(TextInput$2)(function (_ref8) {
10398
10446
  };
10399
10447
  });
10400
10448
  var StyledBorderBackDrop = index$c(View)(function (_ref9) {
10401
- var _theme$__hd__$textInp;
10402
10449
  var theme = _ref9.theme,
10403
10450
  themeFocused = _ref9.themeFocused,
10404
- themeState = _ref9.themeState;
10451
+ themeState = _ref9.themeState,
10452
+ themeFilled = _ref9.themeFilled;
10405
10453
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
10406
- borderWidth: themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
10454
+ borderWidth: genBorderWidth(theme, themeState, themeFocused),
10407
10455
  borderRadius: theme.__hd__.textInput.radii.container,
10408
- borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeState]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
10456
+ borderColor: genBorderColor(theme, themeState, themeFocused, themeFilled)
10409
10457
  });
10410
10458
  });
10411
10459
  var StyledTextInputContainer = index$c(View)(function (_ref10) {
10412
- var theme = _ref10.theme;
10413
- return {
10460
+ var theme = _ref10.theme,
10461
+ themeVariant = _ref10.themeVariant,
10462
+ themeState = _ref10.themeState;
10463
+ return _objectSpread2(_objectSpread2(_objectSpread2({
10414
10464
  flexDirection: 'row',
10415
10465
  alignItems: 'center',
10416
- padding: theme.__hd__.textInput.space.containerPadding,
10417
- backgroundColor: theme.__hd__.textInput.colors.containerBackground,
10466
+ paddingHorizontal: theme.__hd__.textInput.space.containerHorizontalPadding,
10467
+ paddingVertical: theme.__hd__.textInput.space.containerVerticalPadding,
10418
10468
  borderRadius: theme.__hd__.textInput.radii.container
10419
- };
10469
+ }, themeVariant === 'text' && {
10470
+ minHeight: theme.__hd__.textInput.sizes.containerMinHeight
10471
+ }), themeState === 'disabled' && {
10472
+ opacity: 0.5
10473
+ }), {}, {
10474
+ gap: theme.space.smallMedium
10475
+ });
10420
10476
  });
10421
- var StyledTextInputAndLabelContainer = index$c(View)(function () {
10477
+
10478
+ // Outer wrapper that owns flex-grow/shrink and provides the positioning context
10479
+ // for StyledLabelContainerInsideTextInput (position: absolute).
10480
+ var StyledInputContentContainer = index$c(View)(function (_ref11) {
10481
+ var themeHasLabel = _ref11.themeHasLabel;
10422
10482
  return {
10423
- flexDirection: 'row',
10424
- alignItems: 'center',
10425
- alignSelf: 'stretch',
10426
10483
  flexGrow: 2,
10427
- flexShrink: 1
10484
+ flexShrink: 1,
10485
+ alignSelf: 'stretch',
10486
+ justifyContent: themeHasLabel ? 'flex-start' : 'center'
10428
10487
  };
10429
10488
  });
10430
- var StyledErrorAndHelpTextContainer = index$c(View)(function (_ref11) {
10431
- var theme = _ref11.theme;
10489
+ var StyledTextInputAndLabelContainer = index$c(View)(function (_ref12) {
10490
+ var theme = _ref12.theme,
10491
+ themeHasLabel = _ref12.themeHasLabel;
10492
+ return _objectSpread2({
10493
+ flexDirection: 'row',
10494
+ alignItems: 'center',
10495
+ alignSelf: 'stretch'
10496
+ }, themeHasLabel && {
10497
+ paddingTop: theme.__hd__.textInput.space.inputAndLabelContainerPaddingTop
10498
+ });
10499
+ });
10500
+ var StyledErrorAndHelpTextContainer = index$c(View)(function (_ref13) {
10501
+ var theme = _ref13.theme;
10432
10502
  return {
10433
- paddingHorizontal: theme.__hd__.textInput.space.errorAndHelpTextContainerHorizontalPadding,
10434
- minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight,
10503
+ minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerMinHeight,
10435
10504
  paddingTop: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingTop
10436
10505
  };
10437
10506
  });
10438
- var StyledErrorAndMaxLengthContainer = index$c(View)(function (_ref12) {
10439
- var theme = _ref12.theme;
10507
+ var StyledErrorAndMaxLengthContainer = index$c(View)(function (_ref14) {
10508
+ var theme = _ref14.theme;
10440
10509
  return {
10441
10510
  flexDirection: 'row',
10442
10511
  justifyContent: 'space-between',
@@ -10474,12 +10543,7 @@ var LABEL_ANIMATION_DURATION$1 = 150;
10474
10543
  var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
10475
10544
  var error = _ref2.error,
10476
10545
  helpText = _ref2.helpText;
10477
- return error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(Icon, {
10478
- testID: "input-error-icon",
10479
- icon: "circle-info",
10480
- size: "xsmall",
10481
- intent: "danger"
10482
- }), /*#__PURE__*/React__default.createElement(StyledError$1, {
10546
+ return error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(StyledError$1, {
10483
10547
  testID: "input-error-message"
10484
10548
  }, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText$1, null, helpText);
10485
10549
  };
@@ -10509,7 +10573,7 @@ var renderSuffix$1 = function renderSuffix(_ref4) {
10509
10573
  suffix = _ref4.suffix;
10510
10574
  var actualSuffix = loading ? 'loading' : suffix;
10511
10575
  return typeof actualSuffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
10512
- intent: state === 'disabled' ? 'disabled-text' : 'text',
10576
+ intent: state === 'disabled' ? 'disabled-text' : 'muted',
10513
10577
  testID: "input-suffix",
10514
10578
  icon: actualSuffix,
10515
10579
  spin: actualSuffix === 'loading',
@@ -10520,10 +10584,10 @@ var renderPrefix$1 = function renderPrefix(_ref5) {
10520
10584
  var state = _ref5.state,
10521
10585
  prefix = _ref5.prefix;
10522
10586
  return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
10523
- intent: state === 'disabled' ? 'disabled-text' : 'text',
10587
+ intent: state === 'disabled' ? 'disabled-text' : 'muted',
10524
10588
  testID: "input-prefix",
10525
10589
  icon: prefix,
10526
- size: "xsmall"
10590
+ size: "medium"
10527
10591
  }) : prefix;
10528
10592
  };
10529
10593
  var renderMaxLengthMessage = function renderMaxLengthMessage(_ref6) {
@@ -10570,13 +10634,10 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10570
10634
  nativeProps = _objectWithoutProperties(_ref8, _excluded$G);
10571
10635
  var displayText = getDisplayText(value, defaultValue);
10572
10636
  var isEmptyValue = displayText.length === 0;
10573
- var _React$useState = React__default.useState({
10574
- height: 0,
10575
- width: 0
10576
- }),
10637
+ var _React$useState = React__default.useState(0),
10577
10638
  _React$useState2 = _slicedToArray(_React$useState, 2),
10578
- inputSize = _React$useState2[0],
10579
- setInputSize = _React$useState2[1];
10639
+ containerHeight = _React$useState2[0],
10640
+ setContainerHeight = _React$useState2[1];
10580
10641
  var _React$useState3 = React__default.useState(false),
10581
10642
  _React$useState4 = _slicedToArray(_React$useState3, 2),
10582
10643
  isFocused = _React$useState4[0],
@@ -10598,18 +10659,14 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10598
10659
  useNativeDriver: true
10599
10660
  }).start();
10600
10661
  }, [focusAnimation, isEmptyValue, isFocused]);
10601
- var onLayout = useCallback(function (event) {
10602
- var _event$nativeEvent$la = event.nativeEvent.layout,
10603
- height = _event$nativeEvent$la.height,
10604
- width = _event$nativeEvent$la.width;
10605
- setInputSize(function (prev) {
10606
- return _objectSpread2(_objectSpread2({}, prev), {}, {
10607
- height: height,
10608
- width: width
10609
- });
10610
- });
10611
- }, []);
10612
10662
  var innerTextInput = React__default.useRef(null);
10663
+ var focusInnerTextInput = useCallback(function () {
10664
+ var _innerTextInput$curre;
10665
+ return (_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 ? void 0 : _innerTextInput$curre.focus();
10666
+ }, []);
10667
+ var onContentLayout = useCallback(function (e) {
10668
+ setContainerHeight(e.nativeEvent.layout.height);
10669
+ }, []);
10613
10670
  React__default.useImperativeHandle(ref, function () {
10614
10671
  return {
10615
10672
  // we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
@@ -10617,24 +10674,24 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10617
10674
  return innerTextInput.current;
10618
10675
  },
10619
10676
  focus: function focus() {
10620
- var _innerTextInput$curre;
10621
- (_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 || _innerTextInput$curre.focus();
10677
+ var _innerTextInput$curre2;
10678
+ (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 || _innerTextInput$curre2.focus();
10622
10679
  },
10623
10680
  clear: function clear() {
10624
- var _innerTextInput$curre2;
10625
- return (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 ? void 0 : _innerTextInput$curre2.clear();
10681
+ var _innerTextInput$curre3;
10682
+ return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.clear();
10626
10683
  },
10627
10684
  setNativeProps: function setNativeProps(args) {
10628
- var _innerTextInput$curre3;
10629
- return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.setNativeProps(args);
10685
+ var _innerTextInput$curre4;
10686
+ return (_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.setNativeProps(args);
10630
10687
  },
10631
10688
  isFocused: function isFocused() {
10632
- var _innerTextInput$curre4;
10633
- return ((_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.isFocused()) || false;
10689
+ var _innerTextInput$curre5;
10690
+ return ((_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.isFocused()) || false;
10634
10691
  },
10635
10692
  blur: function blur() {
10636
- var _innerTextInput$curre5;
10637
- return (_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.blur();
10693
+ var _innerTextInput$curre6;
10694
+ return (_innerTextInput$curre6 = innerTextInput.current) === null || _innerTextInput$curre6 === void 0 ? void 0 : _innerTextInput$curre6.blur();
10638
10695
  }
10639
10696
  };
10640
10697
  }, [innerTextInput]);
@@ -10653,26 +10710,28 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10653
10710
  }, [textStyle]),
10654
10711
  borderStyle = _useMemo.borderStyle,
10655
10712
  textStyleWithoutBorderStyle = _useMemo.textStyleWithoutBorderStyle;
10713
+ var readonlyBackground = hexToRgba(theme.__hd__.textInput.colors.readonlyBackground, 0.7);
10656
10714
  var _useMemo2 = useMemo(function () {
10657
10715
  var _flattenTextStyle$bac;
10716
+ var defaultBackground = state === 'readonly' ? readonlyBackground : theme.__hd__.textInput.colors.containerBackground;
10658
10717
  if (!style) {
10659
10718
  return {
10660
- backgroundColor: theme.__hd__.textInput.colors.containerBackground
10719
+ backgroundColor: defaultBackground
10661
10720
  };
10662
10721
  }
10663
10722
  var flattenTextStyle = StyleSheet$1.flatten(style);
10664
10723
  return {
10665
- backgroundColor: (_flattenTextStyle$bac = flattenTextStyle.backgroundColor) !== null && _flattenTextStyle$bac !== void 0 ? _flattenTextStyle$bac : theme.__hd__.textInput.colors.containerBackground,
10724
+ backgroundColor: (_flattenTextStyle$bac = flattenTextStyle.backgroundColor) !== null && _flattenTextStyle$bac !== void 0 ? _flattenTextStyle$bac : defaultBackground,
10666
10725
  styleWithoutBackgroundColor: omit(['backgroundColor'], flattenTextStyle)
10667
10726
  };
10668
- }, [style, theme]),
10727
+ }, [style, theme, state, readonlyBackground]),
10669
10728
  backgroundColor = _useMemo2.backgroundColor,
10670
10729
  styleWithoutBackgroundColor = _useMemo2.styleWithoutBackgroundColor;
10671
10730
  var nativeInputTestIDSuffix = testID ? "-".concat(testID) : '';
10672
10731
  var nativeInputProps = _objectSpread2(_objectSpread2({
10673
10732
  style: StyleSheet$1.flatten([{
10674
10733
  backgroundColor: backgroundColor,
10675
- color: theme.__hd__.textInput.colors.text
10734
+ color: theme.__hd__.textInput.colors.text[state]
10676
10735
  }, textStyleWithoutBorderStyle]),
10677
10736
  testID: "text-input".concat(nativeInputTestIDSuffix),
10678
10737
  accessibilityState: {
@@ -10705,22 +10764,30 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10705
10764
  });
10706
10765
  return /*#__PURE__*/React__default.createElement(StyledContainer$b, {
10707
10766
  style: styleWithoutBackgroundColor,
10708
- pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
10767
+ pointerEvents: state === 'disabled' || state === 'readonly' || loading ? 'none' : 'auto',
10709
10768
  testID: testID
10769
+ }, /*#__PURE__*/React__default.createElement(Pressable, {
10770
+ onPress: focusInnerTextInput,
10771
+ accessible: false,
10772
+ importantForAccessibility: "no"
10710
10773
  }, /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
10711
- onLayout: onLayout
10774
+ themeVariant: variant,
10775
+ themeState: state
10712
10776
  }, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
10713
10777
  themeFocused: isFocused,
10714
10778
  themeState: state,
10779
+ themeFilled: !isEmptyValue,
10715
10780
  testID: "text-input-border",
10716
10781
  style: [{
10717
10782
  backgroundColor: backgroundColor
10718
10783
  }, borderStyle]
10719
- }), /*#__PURE__*/React__default.createElement(View, null, renderPrefix$1({
10784
+ }), prefix !== undefined && /*#__PURE__*/React__default.createElement(View, null, renderPrefix$1({
10720
10785
  state: state,
10721
10786
  prefix: prefix
10722
- })), /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
10723
- themeHasPrefix: !!prefix,
10787
+ })), /*#__PURE__*/React__default.createElement(StyledInputContentContainer, {
10788
+ themeHasLabel: !!label,
10789
+ onLayout: onContentLayout
10790
+ }, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
10724
10791
  themeVariant: variant,
10725
10792
  pointerEvents: "none",
10726
10793
  style: [{
@@ -10729,7 +10796,7 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10729
10796
  transform: [{
10730
10797
  translateY: focusAnimation.interpolate({
10731
10798
  inputRange: [0, 1],
10732
- outputRange: [variant !== 'textarea' ? inputSize.height / 2 : theme.space.large, theme.space.xsmall]
10799
+ outputRange: [variant !== 'textarea' ? Math.max(0, (containerHeight - theme.__hd__.textInput.lineHeights.label) / 2) : theme.__hd__.textInput.space.textareaLabelIdleTranslateY, 0]
10733
10800
  })
10734
10801
  }, {
10735
10802
  scale: focusAnimation.interpolate({
@@ -10753,8 +10820,11 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10753
10820
  testID: "input-label-asterisk"
10754
10821
  }, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, {
10755
10822
  testID: "input-label-text".concat(nativeInputTestIDSuffix),
10756
- numberOfLines: 1
10757
- }, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
10823
+ numberOfLines: 1,
10824
+ intent: "muted"
10825
+ }, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, {
10826
+ themeHasLabel: !!label
10827
+ }, renderInput$1({
10758
10828
  variant: variant,
10759
10829
  nativeInputProps: nativeInputProps,
10760
10830
  renderInputValue: renderInputValue,
@@ -10763,11 +10833,11 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10763
10833
  },
10764
10834
  theme: theme,
10765
10835
  state: state
10766
- })), renderSuffix$1({
10836
+ }))), renderSuffix$1({
10767
10837
  state: state,
10768
10838
  loading: loading,
10769
10839
  suffix: suffix
10770
- })), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
10840
+ }))), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
10771
10841
  error: error,
10772
10842
  helpText: helpText
10773
10843
  }), renderMaxLengthMessage({
@@ -41468,13 +41538,10 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41468
41538
  }
41469
41539
  return 'default';
41470
41540
  }, [isFocused, error, isEmptyValue]);
41471
- var _React$useState = React__default.useState({
41472
- height: 0,
41473
- width: 0
41474
- }),
41541
+ var _React$useState = React__default.useState(0),
41475
41542
  _React$useState2 = _slicedToArray(_React$useState, 2),
41476
- inputSize = _React$useState2[0],
41477
- setInputSize = _React$useState2[1];
41543
+ containerHeight = _React$useState2[0],
41544
+ setContainerHeight = _React$useState2[1];
41478
41545
  var focusAnimation = useRef(new Animated.Value(0)).current;
41479
41546
  useEffect(function () {
41480
41547
  Animated.timing(focusAnimation, {
@@ -41485,16 +41552,9 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41485
41552
  }).start();
41486
41553
  }, [focusAnimation, isEmptyValue, isFocused]);
41487
41554
  var onLayout = useCallback(function (event) {
41488
- var _event$nativeEvent$la = event.nativeEvent.layout,
41489
- height = _event$nativeEvent$la.height,
41490
- width = _event$nativeEvent$la.width;
41491
- setInputSize(function (prev) {
41492
- return _objectSpread2(_objectSpread2({}, prev), {}, {
41493
- height: height,
41494
- width: width
41495
- });
41496
- });
41555
+ setContainerHeight(event.nativeEvent.layout.height);
41497
41556
  }, []);
41557
+ var backgroundColor = theme.__hd__.textInput.colors.containerBackground;
41498
41558
  var handleEditorFocus = useCallback(function () {
41499
41559
  onFocus === null || onFocus === void 0 || onFocus();
41500
41560
  setIsFocused(true);
@@ -41505,8 +41565,20 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41505
41565
  }, [onBlur]);
41506
41566
  return /*#__PURE__*/React__default.createElement(StyledContainer$b, {
41507
41567
  testID: testID
41568
+ }, /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
41569
+ onLayout: onLayout,
41570
+ themeVariant: "text",
41571
+ themeState: state
41572
+ }, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
41573
+ themeState: state,
41574
+ themeFocused: isFocused,
41575
+ themeFilled: !isEmptyValue,
41576
+ style: {
41577
+ backgroundColor: backgroundColor
41578
+ }
41579
+ }), /*#__PURE__*/React__default.createElement(StyledInputContentContainer, {
41580
+ themeHasLabel: !!label
41508
41581
  }, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
41509
- themeHasPrefix: false,
41510
41582
  themeVariant: "text",
41511
41583
  pointerEvents: "none",
41512
41584
  testID: "input-label-container",
@@ -41516,7 +41588,7 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41516
41588
  transform: [{
41517
41589
  translateY: focusAnimation.interpolate({
41518
41590
  inputRange: [0, 1],
41519
- outputRange: [inputSize.height / 2, theme.space.xsmall]
41591
+ outputRange: [Math.max(0, (containerHeight - theme.__hd__.textInput.lineHeights.label) / 2), theme.__hd__.textInput.space.labelFocusedTranslateY]
41520
41592
  })
41521
41593
  }, {
41522
41594
  scale: focusAnimation.interpolate({
@@ -41537,13 +41609,11 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41537
41609
  },
41538
41610
  themeState: state
41539
41611
  }, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, {
41612
+ intent: "muted",
41540
41613
  numberOfLines: 1
41541
- }, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
41542
- onLayout: onLayout
41543
- }, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
41544
- themeState: state,
41545
- themeFocused: isFocused
41546
- }), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, /*#__PURE__*/React__default.createElement(RichTextEditorInput$1, {
41614
+ }, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, {
41615
+ themeHasLabel: !!label
41616
+ }, /*#__PURE__*/React__default.createElement(RichTextEditorInput$1, {
41547
41617
  name: name,
41548
41618
  value: value,
41549
41619
  style: [style, {
@@ -41557,12 +41627,7 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41557
41627
  onBlur: handleEditorBlur,
41558
41628
  onFocus: handleEditorFocus,
41559
41629
  onCursorChange: onCursorChange
41560
- }))), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(Icon, {
41561
- testID: "input-error-icon",
41562
- icon: "circle-info",
41563
- size: "xsmall",
41564
- intent: "danger"
41565
- }), /*#__PURE__*/React__default.createElement(StyledError$1, {
41630
+ })))), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(StyledError$1, {
41566
41631
  testID: "input-error-message"
41567
41632
  }, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText$1, null, helpText))));
41568
41633
  };
@@ -41808,7 +41873,7 @@ var StyledInput = index$c(TextInput$2)(function (_ref4) {
41808
41873
  return {
41809
41874
  textAlignVertical: 'center',
41810
41875
  fontSize: theme.__hd__.search.fontSizes.text,
41811
- color: theme.__hd__.textInput.colors.text,
41876
+ color: theme.__hd__.textInput.colors.text["default"],
41812
41877
  alignSelf: 'stretch',
41813
41878
  flexGrow: 1,
41814
41879
  flexShrink: 1,
@@ -42820,7 +42885,13 @@ var getTextInputTheme = function getTextInputTheme(theme) {
42820
42885
  // Override specific values here as needed
42821
42886
  var colors = _objectSpread2(_objectSpread2({}, baseTextInputTheme.colors), {}, {
42822
42887
  // Example: override specific colors
42823
- // text: theme.colors.customTextColor,
42888
+ asterisks: {
42889
+ "default": theme.colors.onErrorSurface,
42890
+ error: theme.colors.onErrorSurface,
42891
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
42892
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
42893
+ filled: theme.colors.onErrorSurface
42894
+ },
42824
42895
  borders: {
42825
42896
  "default": theme.colors.secondaryOutline,
42826
42897
  error: theme.colors.onErrorSurface,
@@ -42837,6 +42908,13 @@ var getTextInputTheme = function getTextInputTheme(theme) {
42837
42908
  filled: theme.colors.inactiveOnDefaultGlobalSurface,
42838
42909
  focused: theme.colors.onDefaultGlobalSurface
42839
42910
  },
42911
+ labelsInsideTextInput: {
42912
+ "default": theme.colors.onDefaultGlobalSurface,
42913
+ error: theme.colors.onDefaultGlobalSurface,
42914
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
42915
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
42916
+ filled: theme.colors.onDefaultGlobalSurface
42917
+ },
42840
42918
  maxLengthLabels: {
42841
42919
  "default": theme.colors.onDefaultGlobalSurface,
42842
42920
  error: theme.colors.onErrorSurface,
@@ -42848,22 +42926,20 @@ var getTextInputTheme = function getTextInputTheme(theme) {
42848
42926
  });
42849
42927
  var space = _objectSpread2(_objectSpread2({}, baseTextInputTheme.space), {}, {
42850
42928
  // Example: override specific spacing
42851
- // containerPadding: theme.space.large,
42929
+ containerPadding: theme.space.medium,
42930
+ errorMarginLeft: theme.space.xsmall,
42852
42931
  inputWrapperMarginVertical: theme.space.small,
42853
42932
  prefixAndInputContainerGap: theme.space.xsmall
42854
42933
  });
42855
42934
  var fonts = _objectSpread2({}, baseTextInputTheme.fonts);
42856
42935
  var fontSizes = _objectSpread2({}, baseTextInputTheme.fontSizes);
42857
- var borderWidths = _objectSpread2(_objectSpread2({}, baseTextInputTheme.borderWidths), {}, {
42858
- container: _objectSpread2(_objectSpread2({}, baseTextInputTheme.borderWidths.container), {}, {
42859
- normal: theme.borderWidths.medium
42860
- })
42861
- });
42936
+ var borderWidths = _objectSpread2({}, baseTextInputTheme.borderWidths);
42862
42937
  var radii = _objectSpread2({}, baseTextInputTheme.radii);
42863
42938
  var sizes = _objectSpread2(_objectSpread2({}, baseTextInputTheme.sizes), {}, {
42864
42939
  containerMinHeight: theme.sizes.xxxxlarge,
42865
42940
  errorAndHelpTextContainerHeight: 0,
42866
- textInputMinHeight: baseTextInputTheme.fontSizes.text + theme.space.small
42941
+ textInputMinHeight: baseTextInputTheme.fontSizes.text + theme.space.small,
42942
+ textareaHeight: theme.sizes['15xlarge']
42867
42943
  });
42868
42944
  var lineHeights = _objectSpread2({}, baseTextInputTheme.lineHeights);
42869
42945
  return {
@@ -43556,7 +43632,7 @@ var InternalTextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
43556
43632
  var nativeInputProps = _objectSpread2(_objectSpread2({
43557
43633
  style: StyleSheet$1.flatten([{
43558
43634
  backgroundColor: backgroundColor,
43559
- color: theme.__hd__.textInput.colors.text
43635
+ color: theme.__hd__.textInput.colors.text["default"]
43560
43636
  }, textInputStyle]),
43561
43637
  testID: "text-input".concat(nativeInputTestIDSuffix),
43562
43638
  accessibilityState: {