@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/lib/index.js CHANGED
@@ -5515,6 +5515,8 @@ var getFonts = function getFonts(_ref) {
5515
5515
  lightItalic: "".concat(neutral, "-LightItalic"),
5516
5516
  regular: "".concat(neutral, "-Regular"),
5517
5517
  regularItalic: "".concat(neutral, "-RegularItalic"),
5518
+ medium: "".concat(neutral, "-Medium"),
5519
+ mediumItalic: "".concat(neutral, "-MediumItalic"),
5518
5520
  semiBold: "".concat(neutral, "-SemiBold"),
5519
5521
  semiBoldItalic: "".concat(neutral, "-SemiBoldItalic")
5520
5522
  },
@@ -5523,6 +5525,8 @@ var getFonts = function getFonts(_ref) {
5523
5525
  lightItalic: "".concat(playful, "-LightItalic"),
5524
5526
  regular: "".concat(playful, "-Regular"),
5525
5527
  regularItalic: "".concat(playful, "-RegularItalic"),
5528
+ medium: "".concat(playful, "-Regular"),
5529
+ mediumItalic: "".concat(playful, "-RegularItalic"),
5526
5530
  semiBold: "".concat(playful, "-Medium"),
5527
5531
  semiBoldItalic: "".concat(playful, "-MediumItalic")
5528
5532
  }
@@ -6018,6 +6022,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
6018
6022
  success: theme.colors.onSuccessSurface,
6019
6023
  warning: theme.colors.onWarningSurface,
6020
6024
  archived: theme.colors.onArchivedSurface,
6025
+ neutral: theme.colors.mutedOnDefaultGlobalSurface,
6021
6026
  text: theme.colors.onDarkGlobalSurface,
6022
6027
  border: theme.colors.defaultGlobalSurface,
6023
6028
  countText: theme.colors.onDarkGlobalSurface,
@@ -6027,7 +6032,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
6027
6032
  info: theme.colors.infoSurface,
6028
6033
  success: theme.colors.successSurface,
6029
6034
  warning: theme.colors.warningSurface,
6030
- archived: theme.colors.archivedSurface
6035
+ archived: theme.colors.archivedSurface,
6036
+ neutral: theme.colors.neutralGlobalSurface
6031
6037
  },
6032
6038
  stringText: {
6033
6039
  primary: theme.colors.primary,
@@ -6035,12 +6041,13 @@ var getBadgeTheme = function getBadgeTheme(theme) {
6035
6041
  info: theme.colors.onInfoSurface,
6036
6042
  success: theme.colors.onSuccessSurface,
6037
6043
  warning: theme.colors.onWarningSurface,
6038
- archived: theme.colors.onArchivedSurface
6044
+ archived: theme.colors.onArchivedSurface,
6045
+ neutral: theme.colors.onDefaultGlobalSurface
6039
6046
  }
6040
6047
  };
6041
6048
  var fonts = {
6042
- medium: theme.fonts.neutral.regular,
6043
- small: theme.fonts.neutral.semiBold
6049
+ medium: theme.fonts.neutral.medium,
6050
+ small: theme.fonts.neutral.medium
6044
6051
  };
6045
6052
  var fontSizes = {
6046
6053
  medium: theme.fontSizes.small,
@@ -7393,33 +7400,41 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
7393
7400
  asterisks: {
7394
7401
  "default": theme.colors.onErrorSurface,
7395
7402
  error: theme.colors.onErrorSurface,
7396
- disabled: theme.colors.disabledOnDefaultGlobalSurface,
7397
- readonly: theme.colors.inactiveOnDefaultGlobalSurface,
7403
+ disabled: theme.colors.onErrorSurface,
7404
+ readonly: theme.colors.onErrorSurface,
7398
7405
  filled: theme.colors.onErrorSurface
7399
7406
  },
7400
7407
  error: theme.colors.onErrorSurface,
7401
- text: theme.colors.onDefaultGlobalSurface,
7408
+ text: {
7409
+ "default": theme.colors.onDefaultGlobalSurface,
7410
+ filled: theme.colors.onDefaultGlobalSurface,
7411
+ error: theme.colors.onDefaultGlobalSurface,
7412
+ readonly: theme.colors.mutedOnDefaultGlobalSurface,
7413
+ disabled: theme.colors.mutedOnDefaultGlobalSurface
7414
+ },
7402
7415
  borders: {
7403
- "default": theme.colors.primaryOutline,
7416
+ "default": theme.colors.inactiveOutline,
7404
7417
  error: theme.colors.onErrorSurface,
7405
- disabled: theme.colors.disabledOutline,
7418
+ disabled: theme.colors.inactiveOutline,
7406
7419
  readonly: theme.colors.inactiveOutline,
7407
- filled: theme.colors.primaryOutline
7420
+ filled: theme.colors.inactiveOutline,
7421
+ focused: theme.colors.primaryOutline
7408
7422
  },
7409
7423
  labels: {
7410
- "default": theme.colors.onDefaultGlobalSurface,
7424
+ "default": theme.colors.mutedOnDefaultGlobalSurface,
7411
7425
  error: theme.colors.onDefaultGlobalSurface,
7412
7426
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
7413
7427
  readonly: theme.colors.mutedOnDefaultGlobalSurface,
7414
- filled: theme.colors.onDefaultGlobalSurface
7428
+ filled: theme.colors.mutedOnDefaultGlobalSurface
7415
7429
  },
7416
7430
  labelsInsideTextInput: {
7417
- "default": theme.colors.onDefaultGlobalSurface,
7431
+ "default": theme.colors.mutedOnDefaultGlobalSurface,
7418
7432
  error: theme.colors.onDefaultGlobalSurface,
7419
7433
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
7420
- readonly: theme.colors.inactiveOnDefaultGlobalSurface,
7421
- filled: theme.colors.onDefaultGlobalSurface
7434
+ readonly: theme.colors.mutedOnDefaultGlobalSurface,
7435
+ filled: theme.colors.mutedOnDefaultGlobalSurface
7422
7436
  },
7437
+ readonlyBackground: theme.colors.neutralGlobalSurface,
7423
7438
  maxLengthLabels: {
7424
7439
  "default": theme.colors.onDefaultGlobalSurface,
7425
7440
  error: theme.colors.onErrorSurface,
@@ -7436,19 +7451,21 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
7436
7451
  }
7437
7452
  };
7438
7453
  var space = {
7439
- containerPadding: theme.space.medium,
7454
+ containerHorizontalPadding: theme.space.medium,
7455
+ containerVerticalPadding: theme.space.small,
7440
7456
  labelLeft: theme.space.xlarge,
7441
7457
  labelTop: theme.space.xlarge / 3,
7442
7458
  labelPaddingBottom: theme.space.small,
7443
7459
  labelHorizontalPadding: theme.space.xsmall,
7444
- inputHorizontalMargin: theme.space.small,
7460
+ inputHorizontalMargin: theme.space.smallMedium,
7445
7461
  errorContainerMarginRight: theme.space.xsmall,
7446
7462
  errorAndHelpTextContainerMarginTop: theme.space.xxsmall,
7447
- errorMarginLeft: theme.space.xsmall,
7448
- errorAndHelpTextContainerHorizontalPadding: theme.space.medium,
7449
7463
  containerMarginTop: theme.space.small,
7450
- labelInsideTextInputMarginTop: -theme.space.xxsmall,
7451
- errorAndHelpTextContainerPaddingTop: theme.space.xxsmall
7464
+ labelInsideTextInputMarginTop: 0,
7465
+ errorAndHelpTextContainerPaddingTop: theme.space.xxsmall,
7466
+ inputAndLabelContainerPaddingTop: theme.lineHeights.medium,
7467
+ labelFocusedTranslateY: theme.space.xsmall * 2,
7468
+ textareaLabelIdleTranslateY: theme.space.large
7452
7469
  };
7453
7470
  var fonts = {
7454
7471
  text: theme.fonts.neutral.regular
@@ -7464,19 +7481,21 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
7464
7481
  var borderWidths = {
7465
7482
  container: {
7466
7483
  normal: theme.borderWidths.base,
7467
- focused: theme.borderWidths.medium
7484
+ focused: theme.borderWidths.base
7468
7485
  }
7469
7486
  };
7470
7487
  var radii = {
7471
7488
  container: theme.radii.medium
7472
7489
  };
7473
7490
  var sizes = {
7474
- errorAndHelpTextContainerHeight: theme.sizes.medium,
7475
- textareaHeight: theme.sizes['15xlarge'],
7491
+ errorAndHelpTextContainerMinHeight: theme.space.large,
7492
+ containerMinHeight: scale(58),
7493
+ textareaHeight: scale(120),
7476
7494
  textInputMaxHeight: theme.sizes['15xlarge']
7477
7495
  };
7478
7496
  var lineHeights = {
7479
- topLabel: theme.lineHeights.large / 2
7497
+ topLabel: theme.lineHeights.large / 2,
7498
+ label: theme.lineHeights.large
7480
7499
  };
7481
7500
  return {
7482
7501
  colors: colors,
@@ -7727,11 +7746,13 @@ var getTypographyTheme = function getTypographyTheme(theme) {
7727
7746
  body: {
7728
7747
  neutral: {
7729
7748
  semiBold: 0.24,
7749
+ medium: 0.3,
7730
7750
  regular: 0.48,
7731
7751
  small: 0.48
7732
7752
  },
7733
7753
  playful: {
7734
7754
  semiBold: 0.54,
7755
+ medium: 0.54,
7735
7756
  regular: 0.54,
7736
7757
  small: 0.54
7737
7758
  }
@@ -9079,9 +9100,15 @@ var Text = function Text(_ref) {
9079
9100
  var FONTWEIGHT_MAP$1 = {
9080
9101
  light: 'light',
9081
9102
  regular: 'regular',
9103
+ medium: 'medium',
9082
9104
  'semi-bold': 'semiBold'
9083
9105
  };
9084
9106
 
9107
+ var LETTER_SPACING_MAP = {
9108
+ regular: 0.36,
9109
+ medium: 0.3,
9110
+ 'semi-bold': 0.24
9111
+ };
9085
9112
  var StyledCaption = index$c(reactNative.Text)(function (_ref) {
9086
9113
  var themeFontWeight = _ref.themeFontWeight,
9087
9114
  themeIntent = _ref.themeIntent,
@@ -9089,10 +9116,11 @@ var StyledCaption = index$c(reactNative.Text)(function (_ref) {
9089
9116
  themeIsItalic = _ref.themeIsItalic;
9090
9117
  var baseFontWeight = FONTWEIGHT_MAP$1[themeFontWeight];
9091
9118
  var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
9119
+ var letterSpacing = LETTER_SPACING_MAP[themeFontWeight];
9092
9120
  return {
9093
9121
  fontSize: theme.__hd__.typography.fontSizes.caption,
9094
9122
  lineHeight: theme.__hd__.typography.lineHeights.caption,
9095
- letterSpacing: themeFontWeight === 'regular' ? 0.36 : 0.24,
9123
+ letterSpacing: letterSpacing,
9096
9124
  color: theme.__hd__.typography.colors[themeIntent],
9097
9125
  fontFamily: fontFamily
9098
9126
  };
@@ -9202,10 +9230,10 @@ var Caption = function Caption(_ref) {
9202
9230
  var StyledLabel$2 = index$c(reactNative.Text)(function (_ref) {
9203
9231
  var themeIntent = _ref.themeIntent,
9204
9232
  theme = _ref.theme,
9205
- themeIsItalic = _ref.themeIsItalic;
9206
- // For Label, we assume 'regular' weight for base font family
9207
- var baseFontWeight = 'regular';
9208
- var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
9233
+ themeIsItalic = _ref.themeIsItalic,
9234
+ _ref$themeFontWeight = _ref.themeFontWeight,
9235
+ themeFontWeight = _ref$themeFontWeight === void 0 ? 'regular' : _ref$themeFontWeight;
9236
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(themeFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[themeFontWeight];
9209
9237
  return {
9210
9238
  fontSize: theme.__hd__.typography.fontSizes.label,
9211
9239
  lineHeight: theme.__hd__.typography.lineHeights.label,
@@ -9215,7 +9243,7 @@ var StyledLabel$2 = index$c(reactNative.Text)(function (_ref) {
9215
9243
  };
9216
9244
  });
9217
9245
 
9218
- var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
9246
+ var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
9219
9247
  var Label = function Label(_ref) {
9220
9248
  var children = _ref.children,
9221
9249
  _ref$intent = _ref.intent,
@@ -9224,6 +9252,8 @@ var Label = function Label(_ref) {
9224
9252
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
9225
9253
  _ref$fontStyle = _ref.fontStyle,
9226
9254
  fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
9255
+ _ref$fontWeight = _ref.fontWeight,
9256
+ fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
9227
9257
  style = _ref.style,
9228
9258
  testID = _ref.testID,
9229
9259
  nativeProps = _objectWithoutProperties(_ref, _excluded$M);
@@ -9231,6 +9261,7 @@ var Label = function Label(_ref) {
9231
9261
  var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledLabel$2, _extends$1({}, nativeProps, {
9232
9262
  themeIntent: isAi ? 'body' : intent,
9233
9263
  themeIsItalic: fontStyle === 'italic',
9264
+ themeFontWeight: fontWeight,
9234
9265
  allowFontScaling: allowFontScaling,
9235
9266
  style: style,
9236
9267
  testID: testID
@@ -9291,12 +9322,16 @@ var Title = function Title(_ref) {
9291
9322
  var FONTWEIGHT_MAP = {
9292
9323
  regular: 'regular',
9293
9324
  small: 'regular',
9325
+ 'regular-medium': 'medium',
9326
+ 'small-medium': 'medium',
9294
9327
  'regular-bold': 'semiBold',
9295
9328
  'small-bold': 'semiBold'
9296
9329
  };
9297
9330
  var FONTSIZE_MAP = {
9298
9331
  regular: 'regular',
9299
9332
  small: 'small',
9333
+ 'regular-medium': 'regular',
9334
+ 'small-medium': 'small',
9300
9335
  'regular-bold': 'regular',
9301
9336
  'small-bold': 'small'
9302
9337
  };
@@ -9306,12 +9341,12 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
9306
9341
  themeTypeface = _ref.themeTypeface,
9307
9342
  themeVariant = _ref.themeVariant,
9308
9343
  themeIsItalic = _ref.themeIsItalic;
9309
- var baseFontWeight = FONTWEIGHT_MAP[themeVariant];
9310
- var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts[themeTypeface]["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts[themeTypeface][baseFontWeight];
9344
+ var fontWeight = FONTWEIGHT_MAP[themeVariant];
9345
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts[themeTypeface]["".concat(fontWeight, "Italic")] : theme.__hd__.typography.fonts[themeTypeface][fontWeight];
9311
9346
  return {
9312
9347
  fontSize: theme.__hd__.typography.fontSizes.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
9313
9348
  lineHeight: theme.__hd__.typography.lineHeights.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
9314
- letterSpacing: theme.__hd__.typography.letterSpacings.body[themeTypeface][FONTWEIGHT_MAP[themeVariant]],
9349
+ letterSpacing: theme.__hd__.typography.letterSpacings.body[themeTypeface][fontWeight],
9315
9350
  fontFamily: fontFamily,
9316
9351
  color: theme.__hd__.typography.colors[themeIntent]
9317
9352
  };
@@ -10344,6 +10379,24 @@ var Box = function Box(_ref) {
10344
10379
  }), children);
10345
10380
  };
10346
10381
 
10382
+ var genBorderWidth = function genBorderWidth(theme, themeState, themeFocused) {
10383
+ if (themeState === 'readonly') return 0;
10384
+ return themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal;
10385
+ };
10386
+ var genBorderColor = function genBorderColor(theme, themeState, themeFocused, themeFilled) {
10387
+ var _theme$__hd__$textInp2;
10388
+ if (themeState === 'error' && !themeFilled) {
10389
+ return theme.__hd__.textInput.colors.borders["default"];
10390
+ }
10391
+ if (themeState === 'error' && themeFilled) {
10392
+ return theme.__hd__.textInput.colors.borders.error;
10393
+ }
10394
+ if (themeFocused) {
10395
+ var _theme$__hd__$textInp;
10396
+ 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"];
10397
+ }
10398
+ 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"];
10399
+ };
10347
10400
  var StyledContainer$b = index$c(reactNative.View)(function (_ref) {
10348
10401
  var theme = _ref.theme;
10349
10402
  return {
@@ -10353,16 +10406,15 @@ var StyledContainer$b = index$c(reactNative.View)(function (_ref) {
10353
10406
  });
10354
10407
  var StyledLabelContainerInsideTextInput = index$c(reactNative.Animated.View)(function (_ref2) {
10355
10408
  var themeVariant = _ref2.themeVariant,
10356
- themeHasPrefix = _ref2.themeHasPrefix,
10357
10409
  theme = _ref2.theme;
10358
10410
  return {
10359
10411
  flexDirection: 'row',
10360
10412
  alignItems: themeVariant === 'text' ? 'center' : 'flex-start',
10361
10413
  position: 'absolute',
10362
10414
  zIndex: 1,
10363
- left: themeHasPrefix ? theme.space.xxlarge : theme.space.medium + theme.space.small,
10415
+ left: 0,
10364
10416
  right: theme.space.medium,
10365
- top: -theme.__hd__.textInput.space.labelTop
10417
+ top: 0
10366
10418
  };
10367
10419
  });
10368
10420
  var StyledLabelInsideTextInput = index$c(reactNative.View)(function (_ref3) {
@@ -10397,8 +10449,7 @@ var StyledErrorContainer$2 = index$c(reactNative.View)(function (_ref5) {
10397
10449
  var StyledError$1 = index$c(Typography.Caption)(function (_ref6) {
10398
10450
  var theme = _ref6.theme;
10399
10451
  return {
10400
- color: theme.__hd__.textInput.colors.error,
10401
- marginLeft: theme.__hd__.textInput.space.errorMarginLeft
10452
+ color: theme.__hd__.textInput.colors.error
10402
10453
  };
10403
10454
  });
10404
10455
  var StyledMaxLengthMessage = index$c(Typography.Caption)(function (_ref7) {
@@ -10420,7 +10471,7 @@ var StyledTextInput$1 = index$c(reactNative.TextInput)(function (_ref8) {
10420
10471
  fontSize: theme.__hd__.textInput.fontSizes.text,
10421
10472
  alignSelf: 'stretch',
10422
10473
  flexGrow: 2,
10423
- marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin,
10474
+ marginHorizontal: 0,
10424
10475
  paddingVertical: 0,
10425
10476
  maxHeight: theme.__hd__.textInput.sizes.textInputMaxHeight,
10426
10477
  height: themeVariant === 'text' ? undefined : theme.__hd__.textInput.sizes.textareaHeight,
@@ -10428,45 +10479,66 @@ var StyledTextInput$1 = index$c(reactNative.TextInput)(function (_ref8) {
10428
10479
  };
10429
10480
  });
10430
10481
  var StyledBorderBackDrop = index$c(reactNative.View)(function (_ref9) {
10431
- var _theme$__hd__$textInp;
10432
10482
  var theme = _ref9.theme,
10433
10483
  themeFocused = _ref9.themeFocused,
10434
- themeState = _ref9.themeState;
10484
+ themeState = _ref9.themeState,
10485
+ themeFilled = _ref9.themeFilled;
10435
10486
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
10436
- borderWidth: themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
10487
+ borderWidth: genBorderWidth(theme, themeState, themeFocused),
10437
10488
  borderRadius: theme.__hd__.textInput.radii.container,
10438
- 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"]
10489
+ borderColor: genBorderColor(theme, themeState, themeFocused, themeFilled)
10439
10490
  });
10440
10491
  });
10441
10492
  var StyledTextInputContainer = index$c(reactNative.View)(function (_ref10) {
10442
- var theme = _ref10.theme;
10443
- return {
10493
+ var theme = _ref10.theme,
10494
+ themeVariant = _ref10.themeVariant,
10495
+ themeState = _ref10.themeState;
10496
+ return _objectSpread2(_objectSpread2(_objectSpread2({
10444
10497
  flexDirection: 'row',
10445
10498
  alignItems: 'center',
10446
- padding: theme.__hd__.textInput.space.containerPadding,
10447
- backgroundColor: theme.__hd__.textInput.colors.containerBackground,
10499
+ paddingHorizontal: theme.__hd__.textInput.space.containerHorizontalPadding,
10500
+ paddingVertical: theme.__hd__.textInput.space.containerVerticalPadding,
10448
10501
  borderRadius: theme.__hd__.textInput.radii.container
10449
- };
10502
+ }, themeVariant === 'text' && {
10503
+ minHeight: theme.__hd__.textInput.sizes.containerMinHeight
10504
+ }), themeState === 'disabled' && {
10505
+ opacity: 0.5
10506
+ }), {}, {
10507
+ gap: theme.space.smallMedium
10508
+ });
10450
10509
  });
10451
- var StyledTextInputAndLabelContainer = index$c(reactNative.View)(function () {
10510
+
10511
+ // Outer wrapper that owns flex-grow/shrink and provides the positioning context
10512
+ // for StyledLabelContainerInsideTextInput (position: absolute).
10513
+ var StyledInputContentContainer = index$c(reactNative.View)(function (_ref11) {
10514
+ var themeHasLabel = _ref11.themeHasLabel;
10452
10515
  return {
10453
- flexDirection: 'row',
10454
- alignItems: 'center',
10455
- alignSelf: 'stretch',
10456
10516
  flexGrow: 2,
10457
- flexShrink: 1
10517
+ flexShrink: 1,
10518
+ alignSelf: 'stretch',
10519
+ justifyContent: themeHasLabel ? 'flex-start' : 'center'
10458
10520
  };
10459
10521
  });
10460
- var StyledErrorAndHelpTextContainer = index$c(reactNative.View)(function (_ref11) {
10461
- var theme = _ref11.theme;
10522
+ var StyledTextInputAndLabelContainer = index$c(reactNative.View)(function (_ref12) {
10523
+ var theme = _ref12.theme,
10524
+ themeHasLabel = _ref12.themeHasLabel;
10525
+ return _objectSpread2({
10526
+ flexDirection: 'row',
10527
+ alignItems: 'center',
10528
+ alignSelf: 'stretch'
10529
+ }, themeHasLabel && {
10530
+ paddingTop: theme.__hd__.textInput.space.inputAndLabelContainerPaddingTop
10531
+ });
10532
+ });
10533
+ var StyledErrorAndHelpTextContainer = index$c(reactNative.View)(function (_ref13) {
10534
+ var theme = _ref13.theme;
10462
10535
  return {
10463
- paddingHorizontal: theme.__hd__.textInput.space.errorAndHelpTextContainerHorizontalPadding,
10464
- minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight,
10536
+ minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerMinHeight,
10465
10537
  paddingTop: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingTop
10466
10538
  };
10467
10539
  });
10468
- var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref12) {
10469
- var theme = _ref12.theme;
10540
+ var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref14) {
10541
+ var theme = _ref14.theme;
10470
10542
  return {
10471
10543
  flexDirection: 'row',
10472
10544
  justifyContent: 'space-between',
@@ -10504,12 +10576,7 @@ var LABEL_ANIMATION_DURATION$1 = 150;
10504
10576
  var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
10505
10577
  var error = _ref2.error,
10506
10578
  helpText = _ref2.helpText;
10507
- return error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
10508
- testID: "input-error-icon",
10509
- icon: "circle-info",
10510
- size: "xsmall",
10511
- intent: "danger"
10512
- }), /*#__PURE__*/React__namespace.default.createElement(StyledError$1, {
10579
+ return error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(StyledError$1, {
10513
10580
  testID: "input-error-message"
10514
10581
  }, error)) : !!helpText && /*#__PURE__*/React__namespace.default.createElement(StyledHelperText$1, null, helpText);
10515
10582
  };
@@ -10539,7 +10606,7 @@ var renderSuffix$1 = function renderSuffix(_ref4) {
10539
10606
  suffix = _ref4.suffix;
10540
10607
  var actualSuffix = loading ? 'loading' : suffix;
10541
10608
  return typeof actualSuffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
10542
- intent: state === 'disabled' ? 'disabled-text' : 'text',
10609
+ intent: state === 'disabled' ? 'disabled-text' : 'muted',
10543
10610
  testID: "input-suffix",
10544
10611
  icon: actualSuffix,
10545
10612
  spin: actualSuffix === 'loading',
@@ -10550,10 +10617,10 @@ var renderPrefix$1 = function renderPrefix(_ref5) {
10550
10617
  var state = _ref5.state,
10551
10618
  prefix = _ref5.prefix;
10552
10619
  return typeof prefix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
10553
- intent: state === 'disabled' ? 'disabled-text' : 'text',
10620
+ intent: state === 'disabled' ? 'disabled-text' : 'muted',
10554
10621
  testID: "input-prefix",
10555
10622
  icon: prefix,
10556
- size: "xsmall"
10623
+ size: "medium"
10557
10624
  }) : prefix;
10558
10625
  };
10559
10626
  var renderMaxLengthMessage = function renderMaxLengthMessage(_ref6) {
@@ -10600,13 +10667,10 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10600
10667
  nativeProps = _objectWithoutProperties(_ref8, _excluded$G);
10601
10668
  var displayText = getDisplayText(value, defaultValue);
10602
10669
  var isEmptyValue = displayText.length === 0;
10603
- var _React$useState = React__namespace.default.useState({
10604
- height: 0,
10605
- width: 0
10606
- }),
10670
+ var _React$useState = React__namespace.default.useState(0),
10607
10671
  _React$useState2 = _slicedToArray(_React$useState, 2),
10608
- inputSize = _React$useState2[0],
10609
- setInputSize = _React$useState2[1];
10672
+ containerHeight = _React$useState2[0],
10673
+ setContainerHeight = _React$useState2[1];
10610
10674
  var _React$useState3 = React__namespace.default.useState(false),
10611
10675
  _React$useState4 = _slicedToArray(_React$useState3, 2),
10612
10676
  isFocused = _React$useState4[0],
@@ -10628,18 +10692,14 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10628
10692
  useNativeDriver: true
10629
10693
  }).start();
10630
10694
  }, [focusAnimation, isEmptyValue, isFocused]);
10631
- var onLayout = React.useCallback(function (event) {
10632
- var _event$nativeEvent$la = event.nativeEvent.layout,
10633
- height = _event$nativeEvent$la.height,
10634
- width = _event$nativeEvent$la.width;
10635
- setInputSize(function (prev) {
10636
- return _objectSpread2(_objectSpread2({}, prev), {}, {
10637
- height: height,
10638
- width: width
10639
- });
10640
- });
10641
- }, []);
10642
10695
  var innerTextInput = React__namespace.default.useRef(null);
10696
+ var focusInnerTextInput = React.useCallback(function () {
10697
+ var _innerTextInput$curre;
10698
+ return (_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 ? void 0 : _innerTextInput$curre.focus();
10699
+ }, []);
10700
+ var onContentLayout = React.useCallback(function (e) {
10701
+ setContainerHeight(e.nativeEvent.layout.height);
10702
+ }, []);
10643
10703
  React__namespace.default.useImperativeHandle(ref, function () {
10644
10704
  return {
10645
10705
  // we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
@@ -10647,24 +10707,24 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10647
10707
  return innerTextInput.current;
10648
10708
  },
10649
10709
  focus: function focus() {
10650
- var _innerTextInput$curre;
10651
- (_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 || _innerTextInput$curre.focus();
10710
+ var _innerTextInput$curre2;
10711
+ (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 || _innerTextInput$curre2.focus();
10652
10712
  },
10653
10713
  clear: function clear() {
10654
- var _innerTextInput$curre2;
10655
- return (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 ? void 0 : _innerTextInput$curre2.clear();
10714
+ var _innerTextInput$curre3;
10715
+ return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.clear();
10656
10716
  },
10657
10717
  setNativeProps: function setNativeProps(args) {
10658
- var _innerTextInput$curre3;
10659
- return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.setNativeProps(args);
10718
+ var _innerTextInput$curre4;
10719
+ return (_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.setNativeProps(args);
10660
10720
  },
10661
10721
  isFocused: function isFocused() {
10662
- var _innerTextInput$curre4;
10663
- return ((_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.isFocused()) || false;
10722
+ var _innerTextInput$curre5;
10723
+ return ((_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.isFocused()) || false;
10664
10724
  },
10665
10725
  blur: function blur() {
10666
- var _innerTextInput$curre5;
10667
- return (_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.blur();
10726
+ var _innerTextInput$curre6;
10727
+ return (_innerTextInput$curre6 = innerTextInput.current) === null || _innerTextInput$curre6 === void 0 ? void 0 : _innerTextInput$curre6.blur();
10668
10728
  }
10669
10729
  };
10670
10730
  }, [innerTextInput]);
@@ -10683,26 +10743,28 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10683
10743
  }, [textStyle]),
10684
10744
  borderStyle = _useMemo.borderStyle,
10685
10745
  textStyleWithoutBorderStyle = _useMemo.textStyleWithoutBorderStyle;
10746
+ var readonlyBackground = hexToRgba(theme.__hd__.textInput.colors.readonlyBackground, 0.7);
10686
10747
  var _useMemo2 = React.useMemo(function () {
10687
10748
  var _flattenTextStyle$bac;
10749
+ var defaultBackground = state === 'readonly' ? readonlyBackground : theme.__hd__.textInput.colors.containerBackground;
10688
10750
  if (!style) {
10689
10751
  return {
10690
- backgroundColor: theme.__hd__.textInput.colors.containerBackground
10752
+ backgroundColor: defaultBackground
10691
10753
  };
10692
10754
  }
10693
10755
  var flattenTextStyle = reactNative.StyleSheet.flatten(style);
10694
10756
  return {
10695
- backgroundColor: (_flattenTextStyle$bac = flattenTextStyle.backgroundColor) !== null && _flattenTextStyle$bac !== void 0 ? _flattenTextStyle$bac : theme.__hd__.textInput.colors.containerBackground,
10757
+ backgroundColor: (_flattenTextStyle$bac = flattenTextStyle.backgroundColor) !== null && _flattenTextStyle$bac !== void 0 ? _flattenTextStyle$bac : defaultBackground,
10696
10758
  styleWithoutBackgroundColor: omit(['backgroundColor'], flattenTextStyle)
10697
10759
  };
10698
- }, [style, theme]),
10760
+ }, [style, theme, state, readonlyBackground]),
10699
10761
  backgroundColor = _useMemo2.backgroundColor,
10700
10762
  styleWithoutBackgroundColor = _useMemo2.styleWithoutBackgroundColor;
10701
10763
  var nativeInputTestIDSuffix = testID ? "-".concat(testID) : '';
10702
10764
  var nativeInputProps = _objectSpread2(_objectSpread2({
10703
10765
  style: reactNative.StyleSheet.flatten([{
10704
10766
  backgroundColor: backgroundColor,
10705
- color: theme.__hd__.textInput.colors.text
10767
+ color: theme.__hd__.textInput.colors.text[state]
10706
10768
  }, textStyleWithoutBorderStyle]),
10707
10769
  testID: "text-input".concat(nativeInputTestIDSuffix),
10708
10770
  accessibilityState: {
@@ -10735,22 +10797,30 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10735
10797
  });
10736
10798
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$b, {
10737
10799
  style: styleWithoutBackgroundColor,
10738
- pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
10800
+ pointerEvents: state === 'disabled' || state === 'readonly' || loading ? 'none' : 'auto',
10739
10801
  testID: testID
10802
+ }, /*#__PURE__*/React__namespace.default.createElement(reactNative.Pressable, {
10803
+ onPress: focusInnerTextInput,
10804
+ accessible: false,
10805
+ importantForAccessibility: "no"
10740
10806
  }, /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
10741
- onLayout: onLayout
10807
+ themeVariant: variant,
10808
+ themeState: state
10742
10809
  }, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
10743
10810
  themeFocused: isFocused,
10744
10811
  themeState: state,
10812
+ themeFilled: !isEmptyValue,
10745
10813
  testID: "text-input-border",
10746
10814
  style: [{
10747
10815
  backgroundColor: backgroundColor
10748
10816
  }, borderStyle]
10749
- }), /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, renderPrefix$1({
10817
+ }), prefix !== undefined && /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, renderPrefix$1({
10750
10818
  state: state,
10751
10819
  prefix: prefix
10752
- })), /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
10753
- themeHasPrefix: !!prefix,
10820
+ })), /*#__PURE__*/React__namespace.default.createElement(StyledInputContentContainer, {
10821
+ themeHasLabel: !!label,
10822
+ onLayout: onContentLayout
10823
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
10754
10824
  themeVariant: variant,
10755
10825
  pointerEvents: "none",
10756
10826
  style: [{
@@ -10759,7 +10829,7 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10759
10829
  transform: [{
10760
10830
  translateY: focusAnimation.interpolate({
10761
10831
  inputRange: [0, 1],
10762
- outputRange: [variant !== 'textarea' ? inputSize.height / 2 : theme.space.large, theme.space.xsmall]
10832
+ outputRange: [variant !== 'textarea' ? Math.max(0, (containerHeight - theme.__hd__.textInput.lineHeights.label) / 2) : theme.__hd__.textInput.space.textareaLabelIdleTranslateY, 0]
10763
10833
  })
10764
10834
  }, {
10765
10835
  scale: focusAnimation.interpolate({
@@ -10783,8 +10853,11 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10783
10853
  testID: "input-label-asterisk"
10784
10854
  }, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
10785
10855
  testID: "input-label-text".concat(nativeInputTestIDSuffix),
10786
- numberOfLines: 1
10787
- }, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
10856
+ numberOfLines: 1,
10857
+ intent: "muted"
10858
+ }, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, {
10859
+ themeHasLabel: !!label
10860
+ }, renderInput$1({
10788
10861
  variant: variant,
10789
10862
  nativeInputProps: nativeInputProps,
10790
10863
  renderInputValue: renderInputValue,
@@ -10793,11 +10866,11 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10793
10866
  },
10794
10867
  theme: theme,
10795
10868
  state: state
10796
- })), renderSuffix$1({
10869
+ }))), renderSuffix$1({
10797
10870
  state: state,
10798
10871
  loading: loading,
10799
10872
  suffix: suffix
10800
- })), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
10873
+ }))), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
10801
10874
  error: error,
10802
10875
  helpText: helpText
10803
10876
  }), renderMaxLengthMessage({
@@ -41498,13 +41571,10 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41498
41571
  }
41499
41572
  return 'default';
41500
41573
  }, [isFocused, error, isEmptyValue]);
41501
- var _React$useState = React__namespace.default.useState({
41502
- height: 0,
41503
- width: 0
41504
- }),
41574
+ var _React$useState = React__namespace.default.useState(0),
41505
41575
  _React$useState2 = _slicedToArray(_React$useState, 2),
41506
- inputSize = _React$useState2[0],
41507
- setInputSize = _React$useState2[1];
41576
+ containerHeight = _React$useState2[0],
41577
+ setContainerHeight = _React$useState2[1];
41508
41578
  var focusAnimation = React.useRef(new reactNative.Animated.Value(0)).current;
41509
41579
  React.useEffect(function () {
41510
41580
  reactNative.Animated.timing(focusAnimation, {
@@ -41515,16 +41585,9 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41515
41585
  }).start();
41516
41586
  }, [focusAnimation, isEmptyValue, isFocused]);
41517
41587
  var onLayout = React.useCallback(function (event) {
41518
- var _event$nativeEvent$la = event.nativeEvent.layout,
41519
- height = _event$nativeEvent$la.height,
41520
- width = _event$nativeEvent$la.width;
41521
- setInputSize(function (prev) {
41522
- return _objectSpread2(_objectSpread2({}, prev), {}, {
41523
- height: height,
41524
- width: width
41525
- });
41526
- });
41588
+ setContainerHeight(event.nativeEvent.layout.height);
41527
41589
  }, []);
41590
+ var backgroundColor = theme.__hd__.textInput.colors.containerBackground;
41528
41591
  var handleEditorFocus = React.useCallback(function () {
41529
41592
  onFocus === null || onFocus === void 0 || onFocus();
41530
41593
  setIsFocused(true);
@@ -41535,8 +41598,20 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41535
41598
  }, [onBlur]);
41536
41599
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$b, {
41537
41600
  testID: testID
41601
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
41602
+ onLayout: onLayout,
41603
+ themeVariant: "text",
41604
+ themeState: state
41605
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
41606
+ themeState: state,
41607
+ themeFocused: isFocused,
41608
+ themeFilled: !isEmptyValue,
41609
+ style: {
41610
+ backgroundColor: backgroundColor
41611
+ }
41612
+ }), /*#__PURE__*/React__namespace.default.createElement(StyledInputContentContainer, {
41613
+ themeHasLabel: !!label
41538
41614
  }, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
41539
- themeHasPrefix: false,
41540
41615
  themeVariant: "text",
41541
41616
  pointerEvents: "none",
41542
41617
  testID: "input-label-container",
@@ -41546,7 +41621,7 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41546
41621
  transform: [{
41547
41622
  translateY: focusAnimation.interpolate({
41548
41623
  inputRange: [0, 1],
41549
- outputRange: [inputSize.height / 2, theme.space.xsmall]
41624
+ outputRange: [Math.max(0, (containerHeight - theme.__hd__.textInput.lineHeights.label) / 2), theme.__hd__.textInput.space.labelFocusedTranslateY]
41550
41625
  })
41551
41626
  }, {
41552
41627
  scale: focusAnimation.interpolate({
@@ -41567,13 +41642,11 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41567
41642
  },
41568
41643
  themeState: state
41569
41644
  }, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
41645
+ intent: "muted",
41570
41646
  numberOfLines: 1
41571
- }, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
41572
- onLayout: onLayout
41573
- }, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
41574
- themeState: state,
41575
- themeFocused: isFocused
41576
- }), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, /*#__PURE__*/React__namespace.default.createElement(RichTextEditorInput$1, {
41647
+ }, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, {
41648
+ themeHasLabel: !!label
41649
+ }, /*#__PURE__*/React__namespace.default.createElement(RichTextEditorInput$1, {
41577
41650
  name: name,
41578
41651
  value: value,
41579
41652
  style: [style, {
@@ -41587,12 +41660,7 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41587
41660
  onBlur: handleEditorBlur,
41588
41661
  onFocus: handleEditorFocus,
41589
41662
  onCursorChange: onCursorChange
41590
- }))), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
41591
- testID: "input-error-icon",
41592
- icon: "circle-info",
41593
- size: "xsmall",
41594
- intent: "danger"
41595
- }), /*#__PURE__*/React__namespace.default.createElement(StyledError$1, {
41663
+ })))), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(StyledError$1, {
41596
41664
  testID: "input-error-message"
41597
41665
  }, error)) : !!helpText && /*#__PURE__*/React__namespace.default.createElement(StyledHelperText$1, null, helpText))));
41598
41666
  };
@@ -41838,7 +41906,7 @@ var StyledInput = index$c(reactNative.TextInput)(function (_ref4) {
41838
41906
  return {
41839
41907
  textAlignVertical: 'center',
41840
41908
  fontSize: theme.__hd__.search.fontSizes.text,
41841
- color: theme.__hd__.textInput.colors.text,
41909
+ color: theme.__hd__.textInput.colors.text["default"],
41842
41910
  alignSelf: 'stretch',
41843
41911
  flexGrow: 1,
41844
41912
  flexShrink: 1,
@@ -42850,7 +42918,13 @@ var getTextInputTheme = function getTextInputTheme(theme) {
42850
42918
  // Override specific values here as needed
42851
42919
  var colors = _objectSpread2(_objectSpread2({}, baseTextInputTheme.colors), {}, {
42852
42920
  // Example: override specific colors
42853
- // text: theme.colors.customTextColor,
42921
+ asterisks: {
42922
+ "default": theme.colors.onErrorSurface,
42923
+ error: theme.colors.onErrorSurface,
42924
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
42925
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
42926
+ filled: theme.colors.onErrorSurface
42927
+ },
42854
42928
  borders: {
42855
42929
  "default": theme.colors.secondaryOutline,
42856
42930
  error: theme.colors.onErrorSurface,
@@ -42867,6 +42941,13 @@ var getTextInputTheme = function getTextInputTheme(theme) {
42867
42941
  filled: theme.colors.inactiveOnDefaultGlobalSurface,
42868
42942
  focused: theme.colors.onDefaultGlobalSurface
42869
42943
  },
42944
+ labelsInsideTextInput: {
42945
+ "default": theme.colors.onDefaultGlobalSurface,
42946
+ error: theme.colors.onDefaultGlobalSurface,
42947
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
42948
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
42949
+ filled: theme.colors.onDefaultGlobalSurface
42950
+ },
42870
42951
  maxLengthLabels: {
42871
42952
  "default": theme.colors.onDefaultGlobalSurface,
42872
42953
  error: theme.colors.onErrorSurface,
@@ -42878,22 +42959,20 @@ var getTextInputTheme = function getTextInputTheme(theme) {
42878
42959
  });
42879
42960
  var space = _objectSpread2(_objectSpread2({}, baseTextInputTheme.space), {}, {
42880
42961
  // Example: override specific spacing
42881
- // containerPadding: theme.space.large,
42962
+ containerPadding: theme.space.medium,
42963
+ errorMarginLeft: theme.space.xsmall,
42882
42964
  inputWrapperMarginVertical: theme.space.small,
42883
42965
  prefixAndInputContainerGap: theme.space.xsmall
42884
42966
  });
42885
42967
  var fonts = _objectSpread2({}, baseTextInputTheme.fonts);
42886
42968
  var fontSizes = _objectSpread2({}, baseTextInputTheme.fontSizes);
42887
- var borderWidths = _objectSpread2(_objectSpread2({}, baseTextInputTheme.borderWidths), {}, {
42888
- container: _objectSpread2(_objectSpread2({}, baseTextInputTheme.borderWidths.container), {}, {
42889
- normal: theme.borderWidths.medium
42890
- })
42891
- });
42969
+ var borderWidths = _objectSpread2({}, baseTextInputTheme.borderWidths);
42892
42970
  var radii = _objectSpread2({}, baseTextInputTheme.radii);
42893
42971
  var sizes = _objectSpread2(_objectSpread2({}, baseTextInputTheme.sizes), {}, {
42894
42972
  containerMinHeight: theme.sizes.xxxxlarge,
42895
42973
  errorAndHelpTextContainerHeight: 0,
42896
- textInputMinHeight: baseTextInputTheme.fontSizes.text + theme.space.small
42974
+ textInputMinHeight: baseTextInputTheme.fontSizes.text + theme.space.small,
42975
+ textareaHeight: theme.sizes['15xlarge']
42897
42976
  });
42898
42977
  var lineHeights = _objectSpread2({}, baseTextInputTheme.lineHeights);
42899
42978
  return {
@@ -43586,7 +43665,7 @@ var InternalTextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
43586
43665
  var nativeInputProps = _objectSpread2(_objectSpread2({
43587
43666
  style: reactNative.StyleSheet.flatten([{
43588
43667
  backgroundColor: backgroundColor,
43589
- color: theme.__hd__.textInput.colors.text
43668
+ color: theme.__hd__.textInput.colors.text["default"]
43590
43669
  }, textInputStyle]),
43591
43670
  testID: "text-input".concat(nativeInputTestIDSuffix),
43592
43671
  accessibilityState: {