repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 44.6 kB
JSON
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"disabled\", \"editable\", \"label\", \"error\", \"selectionColor\", \"cursorColor\", \"underlineColor\", \"outlineColor\", \"activeOutlineColor\", \"outlineStyle\", \"textColor\", \"dense\", \"style\", \"theme\", \"render\", \"multiline\", \"parentState\", \"innerRef\", \"onFocus\", \"forceFocus\", \"onBlur\", \"onChangeText\", \"onLayoutAnimatedText\", \"onLabelTextLayout\", \"onLeftAffixLayoutChange\", \"onRightAffixLayoutChange\", \"onInputLayout\", \"onLayout\", \"left\", \"right\", \"placeholderTextColor\", \"testID\", \"contentStyle\", \"scaledLabel\"],\n _excluded2 = [\"fontSize\", \"fontWeight\", \"lineHeight\", \"height\", \"backgroundColor\", \"textAlign\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nimport * as React from 'react';\nimport Animated from \"react-native-web/dist/exports/Animated\";\nimport View from \"react-native-web/dist/exports/View\";\nimport NativeTextInput from \"react-native-web/dist/exports/TextInput\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport I18nManager from \"react-native-web/dist/exports/I18nManager\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport { Outline } from \"./Addons/Outline\";\nimport { AdornmentType, AdornmentSide } from \"./Adornment/enums\";\nimport TextInputAdornment, { getAdornmentConfig, getAdornmentStyleAdjustmentForNativeInput } from \"./Adornment/TextInputAdornment\";\nimport { MAXIMIZED_LABEL_FONT_SIZE, MINIMIZED_LABEL_FONT_SIZE, LABEL_WIGGLE_X_OFFSET, ADORNMENT_SIZE, OUTLINE_MINIMIZED_LABEL_Y_OFFSET, LABEL_PADDING_TOP, MIN_DENSE_HEIGHT_OUTLINED, LABEL_PADDING_TOP_DENSE } from \"./constants\";\nimport { calculateLabelTopPosition, calculateInputHeight, calculatePadding, adjustPaddingOut, calculateOutlinedIconAndAffixTopPosition, getOutlinedInputColors, getConstants } from \"./helpers\";\nimport InputLabel from \"./Label/InputLabel\";\nimport LabelBackground from \"./Label/LabelBackground\";\nvar TextInputOutlined = function TextInputOutlined(_ref) {\n var _ref$disabled = _ref.disabled,\n disabled = _ref$disabled === void 0 ? false : _ref$disabled,\n _ref$editable = _ref.editable,\n editable = _ref$editable === void 0 ? true : _ref$editable,\n label = _ref.label,\n _ref$error = _ref.error,\n error = _ref$error === void 0 ? false : _ref$error,\n customSelectionColor = _ref.selectionColor,\n cursorColor = _ref.cursorColor,\n _underlineColor = _ref.underlineColor,\n customOutlineColor = _ref.outlineColor,\n activeOutlineColor = _ref.activeOutlineColor,\n outlineStyle = _ref.outlineStyle,\n textColor = _ref.textColor,\n dense = _ref.dense,\n style = _ref.style,\n theme = _ref.theme,\n _ref$render = _ref.render,\n render = _ref$render === void 0 ? function (props) {\n return React.createElement(NativeTextInput, props);\n } : _ref$render,\n _ref$multiline = _ref.multiline,\n multiline = _ref$multiline === void 0 ? false : _ref$multiline,\n parentState = _ref.parentState,\n innerRef = _ref.innerRef,\n onFocus = _ref.onFocus,\n forceFocus = _ref.forceFocus,\n onBlur = _ref.onBlur,\n onChangeText = _ref.onChangeText,\n onLayoutAnimatedText = _ref.onLayoutAnimatedText,\n onLabelTextLayout = _ref.onLabelTextLayout,\n onLeftAffixLayoutChange = _ref.onLeftAffixLayoutChange,\n onRightAffixLayoutChange = _ref.onRightAffixLayoutChange,\n onInputLayout = _ref.onInputLayout,\n onLayout = _ref.onLayout,\n left = _ref.left,\n right = _ref.right,\n placeholderTextColor = _ref.placeholderTextColor,\n _ref$testID = _ref.testID,\n testID = _ref$testID === void 0 ? 'text-input-outlined' : _ref$testID,\n contentStyle = _ref.contentStyle,\n scaledLabel = _ref.scaledLabel,\n rest = _objectWithoutProperties(_ref, _excluded);\n var adornmentConfig = getAdornmentConfig({\n left: left,\n right: right\n });\n var colors = theme.colors,\n isV3 = theme.isV3,\n roundness = theme.roundness;\n var font = isV3 ? theme.fonts.bodyLarge : theme.fonts.regular;\n var hasActiveOutline = parentState.focused || error;\n var _getConstants = getConstants(isV3),\n INPUT_PADDING_HORIZONTAL = _getConstants.INPUT_PADDING_HORIZONTAL,\n MIN_HEIGHT = _getConstants.MIN_HEIGHT,\n ADORNMENT_OFFSET = _getConstants.ADORNMENT_OFFSET,\n MIN_WIDTH = _getConstants.MIN_WIDTH;\n var _ref2 = StyleSheet.flatten(style) || {},\n fontSizeStyle = _ref2.fontSize,\n fontWeight = _ref2.fontWeight,\n lineHeightStyle = _ref2.lineHeight,\n height = _ref2.height,\n _ref2$backgroundColor = _ref2.backgroundColor,\n backgroundColor = _ref2$backgroundColor === void 0 ? colors === null || colors === void 0 ? void 0 : colors.background : _ref2$backgroundColor,\n textAlign = _ref2.textAlign,\n viewStyle = _objectWithoutProperties(_ref2, _excluded2);\n var fontSize = fontSizeStyle || MAXIMIZED_LABEL_FONT_SIZE;\n var lineHeight = lineHeightStyle || (Platform.OS === 'web' ? fontSize * 1.2 : undefined);\n var _getOutlinedInputColo = getOutlinedInputColors({\n activeOutlineColor: activeOutlineColor,\n customOutlineColor: customOutlineColor,\n customSelectionColor: customSelectionColor,\n textColor: textColor,\n disabled: disabled,\n error: error,\n theme: theme\n }),\n inputTextColor = _getOutlinedInputColo.inputTextColor,\n activeColor = _getOutlinedInputColo.activeColor,\n outlineColor = _getOutlinedInputColo.outlineColor,\n placeholderColor = _getOutlinedInputColo.placeholderColor,\n errorColor = _getOutlinedInputColo.errorColor,\n selectionColor = _getOutlinedInputColo.selectionColor;\n var densePaddingTop = label ? LABEL_PADDING_TOP_DENSE : 0;\n var paddingTop = label ? LABEL_PADDING_TOP : 0;\n var yOffset = label ? OUTLINE_MINIMIZED_LABEL_Y_OFFSET : 0;\n var labelScale = MINIMIZED_LABEL_FONT_SIZE / fontSize;\n var fontScale = MAXIMIZED_LABEL_FONT_SIZE / fontSize;\n var labelWidth = parentState.labelLayout.width;\n var labelHeight = parentState.labelLayout.height;\n var labelHalfWidth = labelWidth / 2;\n var labelHalfHeight = labelHeight / 2;\n var baseLabelTranslateX = (I18nManager.getConstants().isRTL ? 1 : -1) * (labelHalfWidth - labelScale * labelWidth / 2 - (fontSize - MINIMIZED_LABEL_FONT_SIZE) * labelScale);\n var labelTranslationXOffset = 0;\n var isAdornmentLeftIcon = adornmentConfig.some(function (_ref3) {\n var side = _ref3.side,\n type = _ref3.type;\n return side === AdornmentSide.Left && type === AdornmentType.Icon;\n });\n var isAdornmentRightIcon = adornmentConfig.some(function (_ref4) {\n var side = _ref4.side,\n type = _ref4.type;\n return side === AdornmentSide.Right && type === AdornmentType.Icon;\n });\n if (isAdornmentLeftIcon) {\n labelTranslationXOffset = (I18nManager.getConstants().isRTL ? -1 : 1) * (ADORNMENT_SIZE + ADORNMENT_OFFSET - (isV3 ? 0 : 8));\n }\n var minInputHeight = (dense ? MIN_DENSE_HEIGHT_OUTLINED : MIN_HEIGHT) - paddingTop;\n var inputHeight = calculateInputHeight(labelHeight, height, minInputHeight);\n var topPosition = calculateLabelTopPosition(labelHeight, inputHeight, paddingTop);\n if (height && typeof height !== 'number') {\n console.warn('Currently we support only numbers in height prop');\n }\n var paddingSettings = {\n height: height ? +height : null,\n labelHalfHeight: labelHalfHeight,\n offset: paddingTop,\n multiline: multiline ? multiline : null,\n dense: dense ? dense : null,\n topPosition: topPosition,\n fontSize: fontSize,\n lineHeight: lineHeight,\n label: label,\n scale: fontScale,\n isAndroid: Platform.OS === 'android',\n styles: StyleSheet.flatten(dense ? styles.inputOutlinedDense : styles.inputOutlined)\n };\n var pad = calculatePadding(paddingSettings);\n var paddingOut = adjustPaddingOut(_objectSpread(_objectSpread({}, paddingSettings), {}, {\n pad: pad\n }));\n var baseLabelTranslateY = -labelHalfHeight - (topPosition + yOffset);\n var _React$useRef = React.useRef([new Animated.Value(0), new Animated.Value(1)]),\n placeholderOpacityAnims = _React$useRef.current;\n var placeholderOpacity = hasActiveOutline ? parentState.labeled : placeholderOpacityAnims[parentState.labelLayout.measured ? 1 : 0];\n var placeholderStyle = {\n position: 'absolute',\n left: 0,\n paddingHorizontal: INPUT_PADDING_HORIZONTAL\n };\n var placeholderTextColorBasedOnState = parentState.displayPlaceholder ? placeholderTextColor != null ? placeholderTextColor : placeholderColor : 'transparent';\n var labelBackgroundColor = backgroundColor === 'transparent' ? theme.colors.background : backgroundColor;\n var labelProps = {\n label: label,\n onLayoutAnimatedText: onLayoutAnimatedText,\n onLabelTextLayout: onLabelTextLayout,\n placeholderOpacity: placeholderOpacity,\n labelError: error,\n placeholderStyle: placeholderStyle,\n baseLabelTranslateY: baseLabelTranslateY,\n baseLabelTranslateX: baseLabelTranslateX,\n font: font,\n fontSize: fontSize,\n lineHeight: lineHeight,\n fontWeight: fontWeight,\n labelScale: labelScale,\n wiggleOffsetX: LABEL_WIGGLE_X_OFFSET,\n topPosition: topPosition,\n hasActiveOutline: hasActiveOutline,\n activeColor: activeColor,\n placeholderColor: placeholderColor,\n backgroundColor: labelBackgroundColor,\n errorColor: errorColor,\n labelTranslationXOffset: labelTranslationXOffset,\n roundness: roundness,\n maxFontSizeMultiplier: rest.maxFontSizeMultiplier,\n testID: testID,\n contentStyle: contentStyle,\n inputContainerLayout: {\n width: parentState.inputContainerLayout.width + (isAdornmentRightIcon || isAdornmentLeftIcon ? INPUT_PADDING_HORIZONTAL : 0)\n },\n opacity: parentState.value || parentState.focused ? parentState.labelLayout.measured ? 1 : 0 : 1,\n isV3: isV3\n };\n var onLayoutChange = React.useCallback(function (e) {\n onInputLayout(e);\n onLayout === null || onLayout === void 0 || onLayout(e);\n }, [onLayout, onInputLayout]);\n var minHeight = height || (dense ? MIN_DENSE_HEIGHT_OUTLINED : MIN_HEIGHT);\n var outlinedHeight = inputHeight + (dense ? densePaddingTop / 2 : paddingTop);\n var leftLayout = parentState.leftLayout,\n rightLayout = parentState.rightLayout;\n var leftAffixTopPosition = calculateOutlinedIconAndAffixTopPosition({\n height: outlinedHeight,\n affixHeight: leftLayout.height || 0,\n labelYOffset: -yOffset\n });\n var rightAffixTopPosition = calculateOutlinedIconAndAffixTopPosition({\n height: outlinedHeight,\n affixHeight: rightLayout.height || 0,\n labelYOffset: -yOffset\n });\n var iconTopPosition = calculateOutlinedIconAndAffixTopPosition({\n height: outlinedHeight,\n affixHeight: ADORNMENT_SIZE,\n labelYOffset: -yOffset\n });\n var rightAffixWidth = right ? rightLayout.width || ADORNMENT_SIZE : ADORNMENT_SIZE;\n var leftAffixWidth = left ? leftLayout.width || ADORNMENT_SIZE : ADORNMENT_SIZE;\n var adornmentStyleAdjustmentForNativeInput = getAdornmentStyleAdjustmentForNativeInput({\n adornmentConfig: adornmentConfig,\n rightAffixWidth: rightAffixWidth,\n leftAffixWidth: leftAffixWidth,\n mode: 'outlined',\n isV3: isV3\n });\n var affixTopPosition = _defineProperty(_defineProperty({}, AdornmentSide.Left, leftAffixTopPosition), AdornmentSide.Right, rightAffixTopPosition);\n var onAffixChange = _defineProperty(_defineProperty({}, AdornmentSide.Left, onLeftAffixLayoutChange), AdornmentSide.Right, onRightAffixLayoutChange);\n var adornmentProps = {\n adornmentConfig: adornmentConfig,\n forceFocus: forceFocus,\n topPosition: _defineProperty(_defineProperty({}, AdornmentType.Icon, iconTopPosition), AdornmentType.Affix, affixTopPosition),\n onAffixChange: onAffixChange,\n isTextInputFocused: parentState.focused,\n maxFontSizeMultiplier: rest.maxFontSizeMultiplier,\n disabled: disabled\n };\n if (adornmentConfig.length) {\n adornmentProps = _objectSpread(_objectSpread({}, adornmentProps), {}, {\n left: left,\n right: right,\n textStyle: _objectSpread(_objectSpread({}, font), {}, {\n fontSize: fontSize,\n lineHeight: lineHeight,\n fontWeight: fontWeight\n }),\n visible: parentState.labeled\n });\n }\n return React.createElement(View, {\n style: viewStyle\n }, React.createElement(Outline, {\n isV3: isV3,\n style: outlineStyle,\n label: label,\n roundness: roundness,\n hasActiveOutline: hasActiveOutline,\n focused: parentState.focused,\n activeColor: activeColor,\n outlineColor: outlineColor,\n backgroundColor: backgroundColor\n }), React.createElement(View, {\n style: [styles.labelContainer, {\n paddingTop: paddingTop,\n minHeight: minHeight\n }]\n }, label ? React.createElement(InputLabel, _extends({\n labeled: parentState.labeled,\n error: parentState.error,\n focused: parentState.focused,\n scaledLabel: scaledLabel,\n wiggle: Boolean(parentState.value && labelProps.labelError),\n labelLayoutMeasured: parentState.labelLayout.measured,\n labelLayoutWidth: parentState.labelLayout.width,\n labelLayoutHeight: parentState.labelLayout.height\n }, labelProps, {\n labelBackground: LabelBackground,\n maxFontSizeMultiplier: rest.maxFontSizeMultiplier\n })) : null, render === null || render === void 0 ? void 0 : render(_objectSpread(_objectSpread({}, rest), {}, {\n ref: innerRef,\n onLayout: onLayoutChange,\n onChangeText: onChangeText,\n placeholder: rest.placeholder,\n editable: !disabled && editable,\n selectionColor: selectionColor,\n cursorColor: typeof cursorColor === 'undefined' ? activeColor : cursorColor,\n placeholderTextColor: placeholderTextColorBasedOnState,\n onFocus: onFocus,\n onBlur: onBlur,\n underlineColorAndroid: 'transparent',\n multiline: multiline,\n style: [styles.input, !multiline || multiline && height ? {\n height: inputHeight\n } : {}, paddingOut, _objectSpread(_objectSpread({}, font), {}, {\n fontSize: fontSize,\n lineHeight: lineHeight,\n fontWeight: fontWeight,\n color: inputTextColor,\n textAlignVertical: multiline ? 'top' : 'center',\n textAlign: textAlign ? textAlign : I18nManager.getConstants().isRTL ? 'right' : 'left',\n paddingHorizontal: INPUT_PADDING_HORIZONTAL,\n minWidth: Math.min(parentState.labelTextLayout.width + 2 * INPUT_PADDING_HORIZONTAL, MIN_WIDTH)\n }), Platform.OS === 'web' ? {\n outline: 'none'\n } : undefined, adornmentStyleAdjustmentForNativeInput, contentStyle],\n testID: testID\n }))), React.createElement(TextInputAdornment, adornmentProps));\n};\nexport default TextInputOutlined;\nvar styles = StyleSheet.create({\n labelContainer: {\n paddingBottom: 0,\n flexGrow: 1\n },\n input: {\n margin: 0,\n flexGrow: 1\n },\n inputOutlined: {\n paddingTop: 8,\n paddingBottom: 8\n },\n inputOutlinedDense: {\n paddingTop: 4,\n paddingBottom: 4\n }\n});","map":{"version":3,"names":["React","Animated","View","NativeTextInput","StyleSheet","I18nManager","Platform","Outline","AdornmentType","AdornmentSide","TextInputAdornment","getAdornmentConfig","getAdornmentStyleAdjustmentForNativeInput","MAXIMIZED_LABEL_FONT_SIZE","MINIMIZED_LABEL_FONT_SIZE","LABEL_WIGGLE_X_OFFSET","ADORNMENT_SIZE","OUTLINE_MINIMIZED_LABEL_Y_OFFSET","LABEL_PADDING_TOP","MIN_DENSE_HEIGHT_OUTLINED","LABEL_PADDING_TOP_DENSE","calculateLabelTopPosition","calculateInputHeight","calculatePadding","adjustPaddingOut","calculateOutlinedIconAndAffixTopPosition","getOutlinedInputColors","getConstants","InputLabel","LabelBackground","TextInputOutlined","_ref","_ref$disabled","disabled","_ref$editable","editable","label","_ref$error","error","customSelectionColor","selectionColor","cursorColor","_underlineColor","underlineColor","customOutlineColor","outlineColor","activeOutlineColor","outlineStyle","textColor","dense","style","theme","_ref$render","render","props","createElement","_ref$multiline","multiline","parentState","innerRef","onFocus","forceFocus","onBlur","onChangeText","onLayoutAnimatedText","onLabelTextLayout","onLeftAffixLayoutChange","onRightAffixLayoutChange","onInputLayout","onLayout","left","right","placeholderTextColor","_ref$testID","testID","contentStyle","scaledLabel","rest","_objectWithoutProperties","_excluded","adornmentConfig","colors","isV3","roundness","font","fonts","bodyLarge","regular","hasActiveOutline","focused","_getConstants","INPUT_PADDING_HORIZONTAL","MIN_HEIGHT","ADORNMENT_OFFSET","MIN_WIDTH","_ref2","flatten","fontSizeStyle","fontSize","fontWeight","lineHeightStyle","lineHeight","height","_ref2$backgroundColor","backgroundColor","background","textAlign","viewStyle","_excluded2","OS","undefined","_getOutlinedInputColo","inputTextColor","activeColor","placeholderColor","errorColor","densePaddingTop","paddingTop","yOffset","labelScale","fontScale","labelWidth","labelLayout","width","labelHeight","labelHalfWidth","labelHalfHeight","baseLabelTranslateX","isRTL","labelTranslationXOffset","isAdornmentLeftIcon","some","_ref3","side","type","Left","Icon","isAdornmentRightIcon","_ref4","Right","minInputHeight","inputHeight","topPosition","console","warn","paddingSettings","offset","scale","isAndroid","styles","inputOutlinedDense","inputOutlined","pad","paddingOut","_objectSpread","baseLabelTranslateY","_React$useRef","useRef","Value","placeholderOpacityAnims","current","placeholderOpacity","labeled","measured","placeholderStyle","position","paddingHorizontal","placeholderTextColorBasedOnState","displayPlaceholder","labelBackgroundColor","labelProps","labelError","wiggleOffsetX","maxFontSizeMultiplier","inputContainerLayout","opacity","value","onLayoutChange","useCallback","e","minHeight","outlinedHeight","leftLayout","rightLayout","leftAffixTopPosition","affixHeight","labelYOffset","rightAffixTopPosition","iconTopPosition","rightAffixWidth","leftAffixWidth","adornmentStyleAdjustmentForNativeInput","mode","affixTopPosition","_defineProperty","onAffixChange","adornmentProps","Affix","isTextInputFocused","length","textStyle","visible","labelContainer","_extends","wiggle","Boolean","labelLayoutMeasured","labelLayoutWidth","labelLayoutHeight","labelBackground","ref","placeholder","underlineColorAndroid","input","color","textAlignVertical","minWidth","Math","min","labelTextLayout","outline","create","paddingBottom","flexGrow","margin"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/TextInput/TextInputOutlined.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Animated,\n View,\n TextInput as NativeTextInput,\n StyleSheet,\n I18nManager,\n Platform,\n TextStyle,\n ColorValue,\n LayoutChangeEvent,\n} from 'react-native';\n\nimport { Outline } from './Addons/Outline';\nimport { AdornmentType, AdornmentSide } from './Adornment/enums';\nimport TextInputAdornment, {\n getAdornmentConfig,\n getAdornmentStyleAdjustmentForNativeInput,\n TextInputAdornmentProps,\n} from './Adornment/TextInputAdornment';\nimport {\n MAXIMIZED_LABEL_FONT_SIZE,\n MINIMIZED_LABEL_FONT_SIZE,\n LABEL_WIGGLE_X_OFFSET,\n ADORNMENT_SIZE,\n OUTLINE_MINIMIZED_LABEL_Y_OFFSET,\n LABEL_PADDING_TOP,\n MIN_DENSE_HEIGHT_OUTLINED,\n LABEL_PADDING_TOP_DENSE,\n} from './constants';\nimport {\n calculateLabelTopPosition,\n calculateInputHeight,\n calculatePadding,\n adjustPaddingOut,\n Padding,\n calculateOutlinedIconAndAffixTopPosition,\n getOutlinedInputColors,\n getConstants,\n} from './helpers';\nimport InputLabel from './Label/InputLabel';\nimport LabelBackground from './Label/LabelBackground';\nimport type { RenderProps, ChildTextInputProps } from './types';\n\nconst TextInputOutlined = ({\n disabled = false,\n editable = true,\n label,\n error = false,\n selectionColor: customSelectionColor,\n cursorColor,\n underlineColor: _underlineColor,\n outlineColor: customOutlineColor,\n activeOutlineColor,\n outlineStyle,\n textColor,\n dense,\n style,\n theme,\n render = (props: RenderProps) => <NativeTextInput {...props} />,\n multiline = false,\n parentState,\n innerRef,\n onFocus,\n forceFocus,\n onBlur,\n onChangeText,\n onLayoutAnimatedText,\n onLabelTextLayout,\n onLeftAffixLayoutChange,\n onRightAffixLayoutChange,\n onInputLayout,\n onLayout,\n left,\n right,\n placeholderTextColor,\n testID = 'text-input-outlined',\n contentStyle,\n scaledLabel,\n ...rest\n}: ChildTextInputProps) => {\n const adornmentConfig = getAdornmentConfig({ left, right });\n\n const { colors, isV3, roundness } = theme;\n const font = isV3 ? theme.fonts.bodyLarge : theme.fonts.regular;\n const hasActiveOutline = parentState.focused || error;\n\n const { INPUT_PADDING_HORIZONTAL, MIN_HEIGHT, ADORNMENT_OFFSET, MIN_WIDTH } =\n getConstants(isV3);\n\n const {\n fontSize: fontSizeStyle,\n fontWeight,\n lineHeight: lineHeightStyle,\n height,\n backgroundColor = colors?.background,\n textAlign,\n ...viewStyle\n } = (StyleSheet.flatten(style) || {}) as TextStyle;\n const fontSize = fontSizeStyle || MAXIMIZED_LABEL_FONT_SIZE;\n const lineHeight =\n lineHeightStyle || (Platform.OS === 'web' ? fontSize * 1.2 : undefined);\n\n const {\n inputTextColor,\n activeColor,\n outlineColor,\n placeholderColor,\n errorColor,\n selectionColor,\n } = getOutlinedInputColors({\n activeOutlineColor,\n customOutlineColor,\n customSelectionColor,\n textColor,\n disabled,\n error,\n theme,\n });\n\n const densePaddingTop = label ? LABEL_PADDING_TOP_DENSE : 0;\n const paddingTop = label ? LABEL_PADDING_TOP : 0;\n const yOffset = label ? OUTLINE_MINIMIZED_LABEL_Y_OFFSET : 0;\n\n const labelScale = MINIMIZED_LABEL_FONT_SIZE / fontSize;\n const fontScale = MAXIMIZED_LABEL_FONT_SIZE / fontSize;\n\n const labelWidth = parentState.labelLayout.width;\n const labelHeight = parentState.labelLayout.height;\n const labelHalfWidth = labelWidth / 2;\n const labelHalfHeight = labelHeight / 2;\n\n const baseLabelTranslateX =\n (I18nManager.getConstants().isRTL ? 1 : -1) *\n (labelHalfWidth -\n (labelScale * labelWidth) / 2 -\n (fontSize - MINIMIZED_LABEL_FONT_SIZE) * labelScale);\n\n let labelTranslationXOffset = 0;\n const isAdornmentLeftIcon = adornmentConfig.some(\n ({ side, type }) =>\n side === AdornmentSide.Left && type === AdornmentType.Icon\n );\n const isAdornmentRightIcon = adornmentConfig.some(\n ({ side, type }) =>\n side === AdornmentSide.Right && type === AdornmentType.Icon\n );\n\n if (isAdornmentLeftIcon) {\n labelTranslationXOffset =\n (I18nManager.getConstants().isRTL ? -1 : 1) *\n (ADORNMENT_SIZE + ADORNMENT_OFFSET - (isV3 ? 0 : 8));\n }\n\n const minInputHeight =\n (dense ? MIN_DENSE_HEIGHT_OUTLINED : MIN_HEIGHT) - paddingTop;\n\n const inputHeight = calculateInputHeight(labelHeight, height, minInputHeight);\n\n const topPosition = calculateLabelTopPosition(\n labelHeight,\n inputHeight,\n paddingTop\n );\n\n if (height && typeof height !== 'number') {\n // eslint-disable-next-line\n console.warn('Currently we support only numbers in height prop');\n }\n\n const paddingSettings = {\n height: height ? +height : null,\n labelHalfHeight,\n offset: paddingTop,\n multiline: multiline ? multiline : null,\n dense: dense ? dense : null,\n topPosition,\n fontSize,\n lineHeight,\n label,\n scale: fontScale,\n isAndroid: Platform.OS === 'android',\n styles: StyleSheet.flatten(\n dense ? styles.inputOutlinedDense : styles.inputOutlined\n ) as Padding,\n };\n\n const pad = calculatePadding(paddingSettings);\n\n const paddingOut = adjustPaddingOut({ ...paddingSettings, pad });\n\n const baseLabelTranslateY = -labelHalfHeight - (topPosition + yOffset);\n\n const { current: placeholderOpacityAnims } = React.useRef([\n new Animated.Value(0),\n new Animated.Value(1),\n ]);\n\n const placeholderOpacity = hasActiveOutline\n ? parentState.labeled\n : placeholderOpacityAnims[parentState.labelLayout.measured ? 1 : 0];\n\n const placeholderStyle = {\n position: 'absolute',\n left: 0,\n paddingHorizontal: INPUT_PADDING_HORIZONTAL,\n };\n\n const placeholderTextColorBasedOnState = parentState.displayPlaceholder\n ? placeholderTextColor ?? placeholderColor\n : 'transparent';\n\n const labelBackgroundColor: ColorValue =\n backgroundColor === 'transparent'\n ? theme.colors.background\n : backgroundColor;\n\n const labelProps = {\n label,\n onLayoutAnimatedText,\n onLabelTextLayout,\n placeholderOpacity,\n labelError: error,\n placeholderStyle,\n baseLabelTranslateY,\n baseLabelTranslateX,\n font,\n fontSize,\n lineHeight,\n fontWeight,\n labelScale,\n wiggleOffsetX: LABEL_WIGGLE_X_OFFSET,\n topPosition,\n hasActiveOutline,\n activeColor,\n placeholderColor,\n backgroundColor: labelBackgroundColor,\n errorColor,\n labelTranslationXOffset,\n roundness,\n maxFontSizeMultiplier: rest.maxFontSizeMultiplier,\n testID,\n contentStyle,\n inputContainerLayout: {\n width:\n parentState.inputContainerLayout.width +\n (isAdornmentRightIcon || isAdornmentLeftIcon\n ? INPUT_PADDING_HORIZONTAL\n : 0),\n },\n opacity:\n parentState.value || parentState.focused\n ? parentState.labelLayout.measured\n ? 1\n : 0\n : 1,\n isV3,\n };\n\n const onLayoutChange = React.useCallback(\n (e: LayoutChangeEvent) => {\n onInputLayout(e);\n onLayout?.(e);\n },\n [onLayout, onInputLayout]\n );\n\n const minHeight = (height ||\n (dense ? MIN_DENSE_HEIGHT_OUTLINED : MIN_HEIGHT)) as number;\n\n const outlinedHeight =\n inputHeight + (dense ? densePaddingTop / 2 : paddingTop);\n const { leftLayout, rightLayout } = parentState;\n\n const leftAffixTopPosition = calculateOutlinedIconAndAffixTopPosition({\n height: outlinedHeight,\n affixHeight: leftLayout.height || 0,\n labelYOffset: -yOffset,\n });\n\n const rightAffixTopPosition = calculateOutlinedIconAndAffixTopPosition({\n height: outlinedHeight,\n affixHeight: rightLayout.height || 0,\n labelYOffset: -yOffset,\n });\n const iconTopPosition = calculateOutlinedIconAndAffixTopPosition({\n height: outlinedHeight,\n affixHeight: ADORNMENT_SIZE,\n labelYOffset: -yOffset,\n });\n\n const rightAffixWidth = right\n ? rightLayout.width || ADORNMENT_SIZE\n : ADORNMENT_SIZE;\n\n const leftAffixWidth = left\n ? leftLayout.width || ADORNMENT_SIZE\n : ADORNMENT_SIZE;\n\n const adornmentStyleAdjustmentForNativeInput =\n getAdornmentStyleAdjustmentForNativeInput({\n adornmentConfig,\n rightAffixWidth,\n leftAffixWidth,\n mode: 'outlined',\n isV3,\n });\n const affixTopPosition = {\n [AdornmentSide.Left]: leftAffixTopPosition,\n [AdornmentSide.Right]: rightAffixTopPosition,\n };\n const onAffixChange = {\n [AdornmentSide.Left]: onLeftAffixLayoutChange,\n [AdornmentSide.Right]: onRightAffixLayoutChange,\n };\n\n let adornmentProps: TextInputAdornmentProps = {\n adornmentConfig,\n forceFocus,\n topPosition: {\n [AdornmentType.Icon]: iconTopPosition,\n [AdornmentType.Affix]: affixTopPosition,\n },\n onAffixChange,\n isTextInputFocused: parentState.focused,\n maxFontSizeMultiplier: rest.maxFontSizeMultiplier,\n disabled,\n };\n if (adornmentConfig.length) {\n adornmentProps = {\n ...adornmentProps,\n left,\n right,\n textStyle: { ...font, fontSize, lineHeight, fontWeight },\n visible: parentState.labeled,\n };\n }\n\n return (\n <View style={viewStyle}>\n {/*\n Render the outline separately from the container\n This is so that the label can overlap the outline\n Otherwise the border will cut off the label on Android\n */}\n <Outline\n isV3={isV3}\n style={outlineStyle}\n label={label}\n roundness={roundness}\n hasActiveOutline={hasActiveOutline}\n focused={parentState.focused}\n activeColor={activeColor}\n outlineColor={outlineColor}\n backgroundColor={backgroundColor}\n />\n <View\n style={[\n styles.labelContainer,\n {\n paddingTop,\n minHeight,\n },\n ]}\n >\n {label ? (\n <InputLabel\n labeled={parentState.labeled}\n error={parentState.error}\n focused={parentState.focused}\n scaledLabel={scaledLabel}\n wiggle={Boolean(parentState.value && labelProps.labelError)}\n labelLayoutMeasured={parentState.labelLayout.measured}\n labelLayoutWidth={parentState.labelLayout.width}\n labelLayoutHeight={parentState.labelLayout.height}\n {...labelProps}\n labelBackground={LabelBackground}\n maxFontSizeMultiplier={rest.maxFontSizeMultiplier}\n />\n ) : null}\n {render?.({\n ...rest,\n ref: innerRef,\n onLayout: onLayoutChange,\n onChangeText,\n placeholder: rest.placeholder,\n editable: !disabled && editable,\n selectionColor,\n cursorColor:\n typeof cursorColor === 'undefined' ? activeColor : cursorColor,\n placeholderTextColor: placeholderTextColorBasedOnState,\n onFocus,\n onBlur,\n underlineColorAndroid: 'transparent',\n multiline,\n style: [\n styles.input,\n !multiline || (multiline && height) ? { height: inputHeight } : {},\n paddingOut,\n {\n ...font,\n fontSize,\n lineHeight,\n fontWeight,\n color: inputTextColor,\n textAlignVertical: multiline ? 'top' : 'center',\n textAlign: textAlign\n ? textAlign\n : I18nManager.getConstants().isRTL\n ? 'right'\n : 'left',\n paddingHorizontal: INPUT_PADDING_HORIZONTAL,\n minWidth: Math.min(\n parentState.labelTextLayout.width +\n 2 * INPUT_PADDING_HORIZONTAL,\n MIN_WIDTH\n ),\n },\n Platform.OS === 'web' ? { outline: 'none' } : undefined,\n adornmentStyleAdjustmentForNativeInput,\n contentStyle,\n ],\n testID,\n } as RenderProps)}\n </View>\n <TextInputAdornment {...adornmentProps} />\n </View>\n );\n};\n\nexport default TextInputOutlined;\n\nconst styles = StyleSheet.create({\n labelContainer: {\n paddingBottom: 0,\n flexGrow: 1,\n },\n input: {\n margin: 0,\n flexGrow: 1,\n },\n inputOutlined: {\n paddingTop: 8,\n paddingBottom: 8,\n },\n inputOutlinedDense: {\n paddingTop: 4,\n paddingBottom: 4,\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAA,OAAAC,QAAA;AAAA,OAAAC,IAAA;AAAA,OAAAC,eAAA;AAAA,OAAAC,UAAA;AAAA,OAAAC,WAAA;AAAA,OAAAC,QAAA;AAa9B,SAASC,OAAO;AAChB,SAASC,aAAa,EAAEC,aAAa;AACrC,OAAOC,kBAAkB,IACvBC,kBAAkB,EAClBC,yCAAyC;AAG3C,SACEC,yBAAyB,EACzBC,yBAAyB,EACzBC,qBAAqB,EACrBC,cAAc,EACdC,gCAAgC,EAChCC,iBAAiB,EACjBC,yBAAyB,EACzBC,uBAAuB;AAEzB,SACEC,yBAAyB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