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

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