sapo-components-ui-rn 1.0.68 → 1.0.69

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.
@@ -14,5 +14,5 @@ interface SearchInputProps {
14
14
  onChangeText?: (text: string) => void;
15
15
  height?: number;
16
16
  }
17
- declare const SearchInput: ({ value, disabled, rightIcon, clearButton, placeholder, onFocus, onBlur, onChangeText, style, height, textStyle, }: SearchInputProps) => React.JSX.Element;
17
+ declare const SearchInput: ({ value, disabled, rightIcon, clearButton, placeholder, onFocus, onBlur, onChangeText, style, height, }: SearchInputProps) => React.JSX.Element;
18
18
  export default SearchInput;
@@ -8,6 +8,7 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
8
8
  left?: React.ReactNode;
9
9
  right?: React.ReactNode;
10
10
  prefix?: string;
11
+ suffix?: string;
11
12
  textError?: string;
12
13
  maxValue?: number;
13
14
  type?: "integer" | "float";
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import type { ChildTextInputProps } from "./types";
3
- declare const TextInputDefault: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, outlineColor: customOutlineColor, activeOutlineColor, outlineStyle, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayout, left, right, placeholderTextColor, clearButton, contentStyle, value, textError, required, ...rest }: ChildTextInputProps) => React.JSX.Element;
3
+ declare const TextInputDefault: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, outlineColor: customOutlineColor, activeOutlineColor, outlineStyle, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayout, left, right, prefix, suffix, placeholderTextColor, clearButton, contentStyle, value, textError, required, ...rest }: ChildTextInputProps) => React.JSX.Element;
4
4
  export default TextInputDefault;
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import type { ChildTextInputProps } from "./types";
3
- declare const TextInputFlat: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, underlineColor, underlineStyle, activeUnderlineColor, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayoutAnimatedText, onLabelTextLayout, onLeftAffixLayoutChange, onRightAffixLayoutChange, onInputLayout, left, right, prefix, placeholderTextColor, clearButton, contentStyle, scaledLabel, outlineStyle, outlineColor, value, textError, required, ...rest }: ChildTextInputProps) => React.JSX.Element;
3
+ declare const TextInputFlat: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, underlineColor, underlineStyle, activeUnderlineColor, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayoutAnimatedText, onLabelTextLayout, onLeftAffixLayoutChange, onRightAffixLayoutChange, onInputLayout, left, right, prefix, suffix, placeholderTextColor, clearButton, contentStyle, scaledLabel, outlineStyle, outlineColor, value, textError, required, ...rest }: ChildTextInputProps) => React.JSX.Element;
4
4
  export default TextInputFlat;
@@ -10,6 +10,7 @@ export interface TextInputNumberProps extends TouchableOpacityProps {
10
10
  right?: React.ReactNode;
11
11
  disabled?: boolean;
12
12
  prefix?: string;
13
+ suffix?: string;
13
14
  onChangeText?: (value: string) => void;
14
15
  clearButton?: boolean;
15
16
  theme?: ThemeProp;
@@ -18,5 +19,5 @@ export interface TextInputNumberProps extends TouchableOpacityProps {
18
19
  formatDecimal?: 1 | 2 | 3;
19
20
  required?: boolean;
20
21
  }
21
- declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, clearButton, maxValue, type, formatDecimal, required, ...props }: TextInputNumberProps) => React.JSX.Element>;
22
+ declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, suffix, clearButton, maxValue, type, formatDecimal, required, ...props }: TextInputNumberProps) => React.JSX.Element>;
22
23
  export default _default;
@@ -94,6 +94,7 @@ export type ChildTextInputProps = {
94
94
  onRightAffixLayoutChange: (event: LayoutChangeEvent) => void;
95
95
  clearButton?: boolean;
96
96
  prefix?: string;
97
+ suffix?: string;
97
98
  textError?: string;
98
99
  required?: boolean;
99
100
  } & $Omit<TextInputTypesWithoutMode, "theme"> & {
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export * from "./styles/themes";
6
6
  export { default as shadow } from "./styles/shadow";
7
7
  export { default as overlay } from "./styles/overlay";
8
8
  export { default as configureFonts } from "./styles/fonts";
9
- export { default as ActivityIndicator } from "./components/ActivityIndicator";
10
9
  export { default as ProgressBar } from "./components/ProgressBar";
11
10
  export { default as Switch } from "./components/Switch/Switch";
12
11
  export { default as TextInput } from "./components/TextInput/TextInput";
@@ -27,7 +26,6 @@ export { default as SelectionField } from "./components/SelectionField";
27
26
  export { default as SearchInput } from "./components/SearchInput";
28
27
  export { default as Tag } from "./components/Tag";
29
28
  export { default as NumberKeyboard } from "./components/NumberKeyboard";
30
- export type { Props as ActivityIndicatorProps } from "./components/ActivityIndicator";
31
29
  export type { Props as SwitchProps } from "./components/Switch/Switch";
32
30
  export type { Props as TextInputProps } from "./components/TextInput/TextInput";
33
31
  export type { Props as TextInputAffixProps } from "./components/TextInput/Adornment/TextInputAffix";
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Platform, Dimensions, StyleSheet, useColorScheme, Animated, Easing, View as View$1, I18nManager, TouchableOpacity, Text as Text$2, Pressable, useWindowDimensions, TextInput as TextInput$1, Modal, ActivityIndicator as ActivityIndicator$1, ImageBackground, Image as Image$2 } from 'react-native';
1
+ import { Platform, Dimensions, StyleSheet, useColorScheme, Animated, I18nManager, View as View$1, TouchableOpacity, Text as Text$2, Pressable, useWindowDimensions, TextInput as TextInput$1, Modal, ActivityIndicator, ImageBackground, Image as Image$2 } from 'react-native';
2
2
  import * as React$3 from 'react';
3
3
  import React__default, { memo, useCallback, forwardRef as forwardRef$1, useMemo, useState, useEffect, useRef, useImperativeHandle } from 'react';
4
4
  import require$$1 from 'deepmerge';
@@ -1637,139 +1637,6 @@ var elevationOverlayTransparency = {
1637
1637
  24: 16,
1638
1638
  };
1639
1639
 
1640
- var DURATION = 2400;
1641
- var ActivityIndicator = function (_a) {
1642
- var _b;
1643
- var _c = _a.animating, animating = _c === void 0 ? true : _c, indicatorColor = _a.color, _d = _a.hidesWhenStopped, hidesWhenStopped = _d === void 0 ? true : _d, _e = _a.size, indicatorSize = _e === void 0 ? "small" : _e, style = _a.style; _a.theme; var rest = __rest(_a, ["animating", "color", "hidesWhenStopped", "size", "style", "theme"]);
1644
- var theme = useInternalTheme();
1645
- var timer = React$3.useRef(new Animated.Value(0)).current;
1646
- var fade = React$3.useRef(new Animated.Value(!animating && hidesWhenStopped ? 0 : 1)).current;
1647
- var rotation = React$3.useRef(undefined);
1648
- var scale = theme.animation.scale;
1649
- var startRotation = React$3.useCallback(function () {
1650
- // Show indicator
1651
- Animated.timing(fade, {
1652
- duration: 200 * scale,
1653
- toValue: 1,
1654
- isInteraction: false,
1655
- useNativeDriver: true,
1656
- }).start();
1657
- // Circular animation in loop
1658
- if (rotation.current) {
1659
- timer.setValue(0);
1660
- // $FlowFixMe
1661
- Animated.loop(rotation.current).start();
1662
- }
1663
- }, [scale, fade, timer]);
1664
- var stopRotation = function () {
1665
- if (rotation.current) {
1666
- rotation.current.stop();
1667
- }
1668
- };
1669
- React$3.useEffect(function () {
1670
- if (rotation.current === undefined) {
1671
- // Circular animation in loop
1672
- rotation.current = Animated.timing(timer, {
1673
- duration: DURATION,
1674
- easing: Easing.linear,
1675
- // Animated.loop does not work if useNativeDriver is true on web
1676
- useNativeDriver: Platform.OS !== "web",
1677
- toValue: 1,
1678
- isInteraction: false,
1679
- });
1680
- }
1681
- if (animating) {
1682
- startRotation();
1683
- }
1684
- else if (hidesWhenStopped) {
1685
- // Hide indicator first and then stop rotation
1686
- Animated.timing(fade, {
1687
- duration: 200 * scale,
1688
- toValue: 0,
1689
- useNativeDriver: true,
1690
- isInteraction: false,
1691
- }).start(stopRotation);
1692
- }
1693
- else {
1694
- stopRotation();
1695
- }
1696
- }, [animating, fade, hidesWhenStopped, startRotation, scale, timer]);
1697
- var color = indicatorColor || ((_b = theme.colors) === null || _b === void 0 ? void 0 : _b.surfaceBrandDefault);
1698
- var size = typeof indicatorSize === "string"
1699
- ? indicatorSize === "small"
1700
- ? 24
1701
- : 48
1702
- : indicatorSize
1703
- ? indicatorSize
1704
- : 24;
1705
- var frames = (60 * DURATION) / 1000;
1706
- var easing = Easing.bezier(0.4, 0.0, 0.7, 1.0);
1707
- var containerStyle = {
1708
- width: size,
1709
- height: size / 2,
1710
- overflow: "hidden",
1711
- };
1712
- return (React$3.createElement(View$1, __assign({ style: [styles$k.container, style] }, rest, { accessible: true, accessibilityRole: "progressbar", accessibilityState: { busy: animating } }),
1713
- React$3.createElement(Animated.View, { style: [{ width: size, height: size, opacity: fade }], collapsable: false }, [0, 1].map(function (index) {
1714
- // Thanks to https://github.com/n4kz/react-native-indicators for the great work
1715
- var inputRange = Array.from(new Array(frames), function (_, frameIndex) { return frameIndex / (frames - 1); });
1716
- var outputRange = Array.from(new Array(frames), function (_, frameIndex) {
1717
- var progress = (2 * frameIndex) / (frames - 1);
1718
- var rotation = index ? +(360 - 15) : -(180 - 15);
1719
- if (progress > 1.0) {
1720
- progress = 2.0 - progress;
1721
- }
1722
- var direction = index ? -1 : +1;
1723
- return "".concat(direction * (180 - 30) * easing(progress) + rotation, "deg");
1724
- });
1725
- var layerStyle = {
1726
- width: size,
1727
- height: size,
1728
- transform: [
1729
- {
1730
- rotate: timer.interpolate({
1731
- inputRange: [0, 1],
1732
- outputRange: ["".concat(0 + 30 + 15, "deg"), "".concat(2 * 360 + 30 + 15, "deg")],
1733
- }),
1734
- },
1735
- ],
1736
- };
1737
- var viewportStyle = {
1738
- width: size,
1739
- height: size,
1740
- transform: [
1741
- {
1742
- translateY: index ? -size / 2 : 0,
1743
- },
1744
- {
1745
- rotate: timer.interpolate({ inputRange: inputRange, outputRange: outputRange }),
1746
- },
1747
- ],
1748
- };
1749
- var offsetStyle = index ? { top: size / 2 } : null;
1750
- var lineStyle = {
1751
- width: size,
1752
- height: size,
1753
- borderColor: color,
1754
- borderWidth: size / 10,
1755
- borderRadius: size / 2,
1756
- };
1757
- return (React$3.createElement(Animated.View, { key: index, style: [styles$k.layer] },
1758
- React$3.createElement(Animated.View, { style: layerStyle },
1759
- React$3.createElement(Animated.View, { style: [containerStyle, offsetStyle], collapsable: false },
1760
- React$3.createElement(Animated.View, { style: viewportStyle },
1761
- React$3.createElement(Animated.View, { style: containerStyle, collapsable: false },
1762
- React$3.createElement(Animated.View, { style: lineStyle })))))));
1763
- }))));
1764
- };
1765
- var styles$k = StyleSheet.create({
1766
- container: {
1767
- justifyContent: "center",
1768
- alignItems: "center",
1769
- },
1770
- layer: __assign(__assign({}, StyleSheet.absoluteFillObject), { justifyContent: "center", alignItems: "center" }),
1771
- });
1772
-
1773
1640
  var INDETERMINATE_DURATION = 2000;
1774
1641
  var INDETERMINATE_MAX_WIDTH = 0.6;
1775
1642
  var isRTL = I18nManager.isRTL;
@@ -5379,7 +5246,7 @@ var Icon = function (_a) {
5379
5246
  var Icon$1 = React__default.memo(Icon);
5380
5247
 
5381
5248
  var TextInputFlat = function (_a) {
5382
- var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.editable, editable = _c === void 0 ? true : _c, label = _a.label, _d = _a.error, error = _d === void 0 ? false : _d, customSelectionColor = _a.selectionColor, cursorColor = _a.cursorColor, underlineColor = _a.underlineColor; _a.underlineStyle; var activeUnderlineColor = _a.activeUnderlineColor, textColor = _a.textColor, dense = _a.dense, style = _a.style, theme = _a.theme, _e = _a.render, render = _e === void 0 ? function (props) { return React$3.createElement(TextInput$1, __assign({}, props)); } : _e, _f = _a.multiline, multiline = _f === void 0 ? false : _f, parentState = _a.parentState, innerRef = _a.innerRef, onFocus = _a.onFocus; _a.forceFocus; var onBlur = _a.onBlur, onChangeText = _a.onChangeText, onLayoutAnimatedText = _a.onLayoutAnimatedText, onLabelTextLayout = _a.onLabelTextLayout; _a.onLeftAffixLayoutChange; _a.onRightAffixLayoutChange; var onInputLayout = _a.onInputLayout, left = _a.left, right = _a.right, prefix = _a.prefix, placeholderTextColor = _a.placeholderTextColor, clearButton = _a.clearButton, contentStyle = _a.contentStyle, scaledLabel = _a.scaledLabel, outlineStyle = _a.outlineStyle, outlineColor = _a.outlineColor, value = _a.value, textError = _a.textError, required = _a.required, rest = __rest(_a, ["disabled", "editable", "label", "error", "selectionColor", "cursorColor", "underlineColor", "underlineStyle", "activeUnderlineColor", "textColor", "dense", "style", "theme", "render", "multiline", "parentState", "innerRef", "onFocus", "forceFocus", "onBlur", "onChangeText", "onLayoutAnimatedText", "onLabelTextLayout", "onLeftAffixLayoutChange", "onRightAffixLayoutChange", "onInputLayout", "left", "right", "prefix", "placeholderTextColor", "clearButton", "contentStyle", "scaledLabel", "outlineStyle", "outlineColor", "value", "textError", "required"]);
5249
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.editable, editable = _c === void 0 ? true : _c, label = _a.label, _d = _a.error, error = _d === void 0 ? false : _d, customSelectionColor = _a.selectionColor, cursorColor = _a.cursorColor, underlineColor = _a.underlineColor; _a.underlineStyle; var activeUnderlineColor = _a.activeUnderlineColor, textColor = _a.textColor, dense = _a.dense, style = _a.style, theme = _a.theme, _e = _a.render, render = _e === void 0 ? function (props) { return React$3.createElement(TextInput$1, __assign({}, props)); } : _e, _f = _a.multiline, multiline = _f === void 0 ? false : _f, parentState = _a.parentState, innerRef = _a.innerRef, onFocus = _a.onFocus; _a.forceFocus; var onBlur = _a.onBlur, onChangeText = _a.onChangeText, onLayoutAnimatedText = _a.onLayoutAnimatedText, onLabelTextLayout = _a.onLabelTextLayout; _a.onLeftAffixLayoutChange; _a.onRightAffixLayoutChange; var onInputLayout = _a.onInputLayout, left = _a.left, right = _a.right, prefix = _a.prefix, suffix = _a.suffix, placeholderTextColor = _a.placeholderTextColor, clearButton = _a.clearButton, contentStyle = _a.contentStyle, scaledLabel = _a.scaledLabel, outlineStyle = _a.outlineStyle, outlineColor = _a.outlineColor, value = _a.value, textError = _a.textError, required = _a.required, rest = __rest(_a, ["disabled", "editable", "label", "error", "selectionColor", "cursorColor", "underlineColor", "underlineStyle", "activeUnderlineColor", "textColor", "dense", "style", "theme", "render", "multiline", "parentState", "innerRef", "onFocus", "forceFocus", "onBlur", "onChangeText", "onLayoutAnimatedText", "onLabelTextLayout", "onLeftAffixLayoutChange", "onRightAffixLayoutChange", "onInputLayout", "left", "right", "prefix", "suffix", "placeholderTextColor", "clearButton", "contentStyle", "scaledLabel", "outlineStyle", "outlineColor", "value", "textError", "required"]);
5383
5250
  var _g = React$3.useState(value || ""), inputValue = _g[0], setInputValue = _g[1];
5384
5251
  React$3.useEffect(function () {
5385
5252
  setInputValue(value || "");
@@ -5533,6 +5400,25 @@ var TextInputFlat = function (_a) {
5533
5400
  return theme.colors.borderPrimaryDefault;
5534
5401
  }
5535
5402
  };
5403
+ var renderSuffix = function () {
5404
+ var _a;
5405
+ if (parentState.focused) {
5406
+ return (React$3.createElement(View$1, { style: {
5407
+ paddingBottom: Platform.OS === "ios" ? 9 : 14,
5408
+ } },
5409
+ React$3.createElement(Text$1, { color: theme.colors.textSecondary }, " ",
5410
+ suffix)));
5411
+ }
5412
+ else if (parentState.value !== undefined &&
5413
+ ((_a = parentState.value) === null || _a === void 0 ? void 0 : _a.toString()) !== "") {
5414
+ return (React$3.createElement(View$1, { style: {
5415
+ paddingBottom: Platform.OS === "ios" ? 9 : 14,
5416
+ } },
5417
+ React$3.createElement(Text$1, { color: theme.colors.textSecondary }, " ",
5418
+ suffix)));
5419
+ }
5420
+ return React$3.createElement(View$1, null);
5421
+ };
5536
5422
  var renderPrefix = function () {
5537
5423
  var _a;
5538
5424
  if (parentState.focused) {
@@ -5565,7 +5451,12 @@ var TextInputFlat = function (_a) {
5565
5451
  ? theme.colors.surfacePrimaryDisabled
5566
5452
  : theme.colors.surfacePrimaryDefault,
5567
5453
  } },
5568
- React$3.createElement(View$1, { style: { flexDirection: "row", height: "100%" } },
5454
+ React$3.createElement(View$1, { style: {
5455
+ flexDirection: "row",
5456
+ height: "100%",
5457
+ alignItems: "center",
5458
+ justifyContent: "center",
5459
+ } },
5569
5460
  left && React$3.createElement(View$1, { style: { paddingLeft: SPACE_12 } }, left),
5570
5461
  left ? React$3.createElement(Spacer, { width: SPACE_8 }) : React$3.createElement(Spacer, { width: SPACE_12 })),
5571
5462
  React$3.createElement(Outline, { style: outlineStyle, label: label, roundness: roundness, hasActiveOutline: hasActiveOutline, focused: parentState.focused, activeColor: activeColor, outlineColor: outlineColor, backgroundColor: backgroundColor }),
@@ -5578,7 +5469,10 @@ var TextInputFlat = function (_a) {
5578
5469
  ] },
5579
5470
  label ? (React$3.createElement(InputLabel$1, __assign({ labeled: parentState.labeled, error: parentState.error, focused: parentState.focused, scaledLabel: scaledLabel, wiggle: Boolean(parentState.value && labelProps.labelError), labelLayoutMeasured: parentState.labelLayout.measured, labelLayoutWidth: parentState.labelLayout.width, labelLayoutHeight: parentState.labelLayout.height, required: required }, labelProps))) : null,
5580
5471
  React$3.createElement(View$1, { style: { flexDirection: "row", alignItems: "flex-end" } },
5581
- renderPrefix(), render === null || render === void 0 ? void 0 :
5472
+ !multiline &&
5473
+ prefix &&
5474
+ (prefix === null || prefix === void 0 ? void 0 : prefix.toString()) !== "" &&
5475
+ renderPrefix(), render === null || render === void 0 ? void 0 :
5582
5476
  render(__assign(__assign({}, rest), { ref: innerRef, onChangeText: handleChangeText, value: inputValue, placeholder: rest.placeholder, editable: !disabled && editable, selectionColor: selectionColor, cursorColor: typeof cursorColor === "undefined" ? activeColor : cursorColor, placeholderTextColor: placeholderTextColorBasedOnState, onFocus: onFocus, onBlur: onBlur, underlineColorAndroid: "transparent", multiline: multiline, style: [
5583
5477
  styles$d.input,
5584
5478
  __assign(__assign({ paddingLeft: paddingLeft, paddingRight: paddingRight, paddingTop: parentState.focused || parentState.value ? SPACE_12 : 0 }, font), { fontSize: fontSize, lineHeight: lineHeight, fontWeight: fontWeight, color: inputTextColor, textAlignVertical: multiline ? "top" : "center", textAlign: textAlign
@@ -5587,13 +5481,18 @@ var TextInputFlat = function (_a) {
5587
5481
  ? "right"
5588
5482
  : "left", marginTop: Platform.OS === "android" ? SPACE_8 : SPACE_2 }),
5589
5483
  contentStyle,
5590
- ] })))),
5484
+ ] })),
5485
+ renderSuffix())),
5591
5486
  !disabled && clearButton && inputValue ? (React$3.createElement(TouchableOpacity, { onPress: handleClear, style: styles$d.clearButton },
5592
5487
  React$3.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))) : (React$3.createElement(Spacer, { width: SPACE_12 })),
5488
+ !multiline && right && (React$3.createElement(Spacer, { width: 1, height: 30, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5489
+ marginRight: SPACE_8,
5490
+ } })),
5593
5491
  React$3.createElement(View$1, { style: {
5594
5492
  flexDirection: "row",
5595
5493
  height: "100%",
5596
- paddingBottom: SPACE_6,
5494
+ alignItems: "center",
5495
+ justifyContent: "center",
5597
5496
  } },
5598
5497
  right && !clearButton && React$3.createElement(Spacer, { width: SPACE_8 }),
5599
5498
  right && (React$3.createElement(View$1, { style: {
@@ -5634,7 +5533,7 @@ var styles$d = StyleSheet.create({
5634
5533
  zIndex: 2,
5635
5534
  },
5636
5535
  clearButton: {
5637
- padding: SPACE_8,
5536
+ padding: SPACE_6,
5638
5537
  },
5639
5538
  vError: {
5640
5539
  paddingTop: SPACE_4,
@@ -5643,14 +5542,14 @@ var styles$d = StyleSheet.create({
5643
5542
  });
5644
5543
 
5645
5544
  var TextInputDefault = function (_a) {
5646
- var _b;
5647
- var _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.editable, editable = _d === void 0 ? true : _d, label = _a.label, _e = _a.error, error = _e === void 0 ? false : _e, customSelectionColor = _a.selectionColor, cursorColor = _a.cursorColor, customOutlineColor = _a.outlineColor, activeOutlineColor = _a.activeOutlineColor; _a.outlineStyle; var textColor = _a.textColor; _a.dense; var style = _a.style, theme = _a.theme, _f = _a.render, render = _f === void 0 ? function (props) { return React$3.createElement(TextInput$1, __assign({}, props)); } : _f, _g = _a.multiline, multiline = _g === void 0 ? false : _g, parentState = _a.parentState, innerRef = _a.innerRef, onFocus = _a.onFocus; _a.forceFocus; var onBlur = _a.onBlur, onChangeText = _a.onChangeText; _a.onLayout; var left = _a.left, right = _a.right, placeholderTextColor = _a.placeholderTextColor, _h = _a.clearButton, clearButton = _h === void 0 ? false : _h, contentStyle = _a.contentStyle, _j = _a.value, value = _j === void 0 ? "" : _j, textError = _a.textError, required = _a.required, rest = __rest(_a, ["disabled", "editable", "label", "error", "selectionColor", "cursorColor", "outlineColor", "activeOutlineColor", "outlineStyle", "textColor", "dense", "style", "theme", "render", "multiline", "parentState", "innerRef", "onFocus", "forceFocus", "onBlur", "onChangeText", "onLayout", "left", "right", "placeholderTextColor", "clearButton", "contentStyle", "value", "textError", "required"]);
5545
+ var _b, _c;
5546
+ var _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.editable, editable = _e === void 0 ? true : _e, label = _a.label, _f = _a.error, error = _f === void 0 ? false : _f, customSelectionColor = _a.selectionColor, cursorColor = _a.cursorColor, customOutlineColor = _a.outlineColor, activeOutlineColor = _a.activeOutlineColor; _a.outlineStyle; var textColor = _a.textColor; _a.dense; var style = _a.style, theme = _a.theme, _g = _a.render, render = _g === void 0 ? function (props) { return React$3.createElement(TextInput$1, __assign({}, props)); } : _g, _h = _a.multiline, multiline = _h === void 0 ? false : _h, parentState = _a.parentState, innerRef = _a.innerRef, onFocus = _a.onFocus; _a.forceFocus; var onBlur = _a.onBlur, onChangeText = _a.onChangeText; _a.onLayout; var left = _a.left, right = _a.right, prefix = _a.prefix, suffix = _a.suffix, placeholderTextColor = _a.placeholderTextColor, _j = _a.clearButton, clearButton = _j === void 0 ? false : _j, contentStyle = _a.contentStyle, _k = _a.value, value = _k === void 0 ? "" : _k, textError = _a.textError, required = _a.required, rest = __rest(_a, ["disabled", "editable", "label", "error", "selectionColor", "cursorColor", "outlineColor", "activeOutlineColor", "outlineStyle", "textColor", "dense", "style", "theme", "render", "multiline", "parentState", "innerRef", "onFocus", "forceFocus", "onBlur", "onChangeText", "onLayout", "left", "right", "prefix", "suffix", "placeholderTextColor", "clearButton", "contentStyle", "value", "textError", "required"]);
5648
5547
  var colors = theme.colors;
5649
5548
  var font = theme.fonts.bodyLarge;
5650
- var _k = (StyleSheet.flatten(style) || {}), fontSizeStyle = _k.fontSize, fontWeight = _k.fontWeight, lineHeightStyle = _k.lineHeight, height = _k.height, _l = _k.backgroundColor; _l === void 0 ? colors === null || colors === void 0 ? void 0 : colors.backgroundPrimary : _l; var textAlign = _k.textAlign; _k.minHeight; var viewStyle = __rest(_k, ["fontSize", "fontWeight", "lineHeight", "height", "backgroundColor", "textAlign", "minHeight"]);
5549
+ var _l = (StyleSheet.flatten(style) || {}), fontSizeStyle = _l.fontSize, fontWeight = _l.fontWeight, lineHeightStyle = _l.lineHeight, height = _l.height, _m = _l.backgroundColor; _m === void 0 ? colors === null || colors === void 0 ? void 0 : colors.backgroundPrimary : _m; var textAlign = _l.textAlign; _l.minHeight; var viewStyle = __rest(_l, ["fontSize", "fontWeight", "lineHeight", "height", "backgroundColor", "textAlign", "minHeight"]);
5651
5550
  var fontSize = fontSizeStyle || MAXIMIZED_LABEL_FONT_SIZE;
5652
5551
  var lineHeight = lineHeightStyle || (Platform.OS === "web" ? fontSize * 1.2 : undefined);
5653
- var _m = getOutlinedInputColors({
5552
+ var _o = getOutlinedInputColors({
5654
5553
  activeOutlineColor: activeOutlineColor,
5655
5554
  customOutlineColor: customOutlineColor,
5656
5555
  customSelectionColor: customSelectionColor,
@@ -5658,8 +5557,8 @@ var TextInputDefault = function (_a) {
5658
5557
  disabled: disabled,
5659
5558
  error: error,
5660
5559
  theme: theme,
5661
- }), inputTextColor = _m.inputTextColor, activeColor = _m.activeColor, selectionColor = _m.selectionColor;
5662
- var _o = React$3.useState(value || ""), inputValue = _o[0], setInputValue = _o[1];
5560
+ }), inputTextColor = _o.inputTextColor, activeColor = _o.activeColor, selectionColor = _o.selectionColor;
5561
+ var _p = React$3.useState(value || ""), inputValue = _p[0], setInputValue = _p[1];
5663
5562
  React$3.useEffect(function () {
5664
5563
  setInputValue(value || "");
5665
5564
  }, [value]);
@@ -5729,11 +5628,46 @@ var TextInputDefault = function (_a) {
5729
5628
  }
5730
5629
  return 0;
5731
5630
  };
5631
+ var renderPrefix = function () {
5632
+ var _a;
5633
+ if (parentState.focused) {
5634
+ return (React$3.createElement(View, { center: true, style: {
5635
+ height: "100%",
5636
+ } },
5637
+ React$3.createElement(Text$1, { color: theme.colors.textSecondary },
5638
+ prefix, " ")));
5639
+ }
5640
+ else if (parentState.value !== undefined &&
5641
+ ((_a = parentState.value) === null || _a === void 0 ? void 0 : _a.toString()) !== "") {
5642
+ return (React$3.createElement(View, { center: true, style: {
5643
+ height: "100%",
5644
+ } },
5645
+ React$3.createElement(Text$1, { color: theme.colors.textSecondary },
5646
+ prefix, " ")));
5647
+ }
5648
+ return React$3.createElement(View, null);
5649
+ };
5650
+ var renderSuffix = function () {
5651
+ var _a;
5652
+ if (parentState.focused) {
5653
+ return (React$3.createElement(View, { center: true, style: {
5654
+ height: "100%",
5655
+ } },
5656
+ React$3.createElement(Text$1, { color: theme.colors.textSecondary }, " ",
5657
+ suffix)));
5658
+ }
5659
+ else if (parentState.value !== undefined &&
5660
+ ((_a = parentState.value) === null || _a === void 0 ? void 0 : _a.toString()) !== "") {
5661
+ return (React$3.createElement(View, { center: true, style: {
5662
+ height: "100%",
5663
+ } },
5664
+ React$3.createElement(Text$1, { color: theme.colors.textSecondary }, " ",
5665
+ suffix)));
5666
+ }
5667
+ return React$3.createElement(View, null);
5668
+ };
5732
5669
  return (React$3.createElement(View, { style: viewStyle },
5733
- React$3.createElement(View, { row: true,
5734
- // full
5735
- // alignCenter
5736
- justifyCenter: true, style: [
5670
+ React$3.createElement(View, { row: true, alignCenter: !multiline, justifyCenter: true, style: [
5737
5671
  {
5738
5672
  borderRadius: CONSTANTS.BORDER_RADIUS_6,
5739
5673
  borderWidth: 1,
@@ -5745,15 +5679,15 @@ var TextInputDefault = function (_a) {
5745
5679
  },
5746
5680
  contentStyle,
5747
5681
  ] },
5748
- React$3.createElement(View, { center: true, paddingLeft: CONSTANTS.SPACE_12 }, left),
5682
+ React$3.createElement(View, { center: !multiline, paddingLeft: CONSTANTS.SPACE_12, paddingTop: multiline ? CONSTANTS.SPACE_12 : 0 }, left),
5749
5683
  left && React$3.createElement(Spacer, { width: CONSTANTS.SPACE_8 }),
5750
5684
  React$3.createElement(View, { full: true, style: [
5751
5685
  {
5752
5686
  height: height || 48,
5753
5687
  },
5754
5688
  ] },
5755
- multiline && renderLabel(), render === null || render === void 0 ? void 0 :
5756
- render(__assign(__assign({}, rest), { ref: innerRef, onChangeText: handleChangeText, value: inputValue, placeholder: ((_b = parentState.value) === null || _b === void 0 ? void 0 : _b.toString()) == ""
5689
+ multiline && renderLabel(),
5690
+ multiline ? (render === null || render === void 0 ? void 0 : render(__assign(__assign({}, rest), { ref: innerRef, onChangeText: handleChangeText, value: inputValue, placeholder: ((_b = parentState.value) === null || _b === void 0 ? void 0 : _b.toString()) == ""
5757
5691
  ? parentState.focused
5758
5692
  ? rest.placeholder
5759
5693
  : label
@@ -5765,13 +5699,38 @@ var TextInputDefault = function (_a) {
5765
5699
  ? "right"
5766
5700
  : "left", height: height ? height : 48, paddingTop: getPaddingTopValue(), paddingBottom: multiline ? CONSTANTS.SPACE_4 : 0 }),
5767
5701
  contentStyle,
5768
- ] }))),
5702
+ ] }))) : (React$3.createElement(View, { style: {
5703
+ flexDirection: "row",
5704
+ } },
5705
+ !multiline &&
5706
+ prefix &&
5707
+ (prefix === null || prefix === void 0 ? void 0 : prefix.toString()) !== "" &&
5708
+ renderPrefix(), render === null || render === void 0 ? void 0 :
5709
+ render(__assign(__assign({}, rest), { ref: innerRef, onChangeText: handleChangeText, value: inputValue, placeholder: ((_c = parentState.value) === null || _c === void 0 ? void 0 : _c.toString()) == ""
5710
+ ? parentState.focused
5711
+ ? rest.placeholder
5712
+ : label
5713
+ : rest.placeholder, editable: !disabled && editable, selectionColor: selectionColor, cursorColor: typeof cursorColor === "undefined"
5714
+ ? activeColor
5715
+ : cursorColor, placeholderTextColor: placeholderTextColorBasedOnState, onFocus: onFocus, onBlur: onBlur, underlineColorAndroid: "transparent", multiline: multiline, style: [
5716
+ styles$c.input,
5717
+ __assign(__assign({}, font), { fontSize: fontSize, lineHeight: lineHeight, fontWeight: fontWeight, color: inputTextColor, textAlignVertical: multiline ? "top" : "center", textAlign: textAlign
5718
+ ? textAlign
5719
+ : I18nManager.getConstants().isRTL
5720
+ ? "right"
5721
+ : "left", height: height ? height : 48, paddingTop: getPaddingTopValue(), paddingBottom: multiline ? CONSTANTS.SPACE_4 : 0 }),
5722
+ contentStyle,
5723
+ ] })),
5724
+ !multiline && renderSuffix()))),
5769
5725
  !disabled && clearButton && inputValue ? (React$3.createElement(TouchableOpacity, { onPress: handleClear, style: multiline ? styles$c.clearButtonMultiline : styles$c.clearButton },
5770
5726
  React$3.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))) : (React$3.createElement(Spacer, { width: CONSTANTS.SPACE_12 })),
5727
+ !multiline && right && (React$3.createElement(Spacer, { width: 1, height: 30, backgroundColor: colors.borderPrimaryDefault, style: {
5728
+ marginRight: CONSTANTS.SPACE_8,
5729
+ } })),
5771
5730
  right && !clearButton && React$3.createElement(Spacer, { width: CONSTANTS.SPACE_2 }),
5772
- right && (React$3.createElement(View, { style: {
5773
- height: "100%",
5731
+ right && (React$3.createElement(View, { center: !multiline, style: {
5774
5732
  paddingRight: CONSTANTS.SPACE_12,
5733
+ paddingTop: multiline ? CONSTANTS.SPACE_12 : 0,
5775
5734
  } }, right))),
5776
5735
  error && (textError === null || textError === void 0 ? void 0 : textError.toString()) !== "" && (React$3.createElement(View, { style: styles$c.vError },
5777
5736
  React$3.createElement(Text$1, { size: 12, numberOfLines: 1, color: theme.colors.textErrorDefault }, textError)))));
@@ -5782,7 +5741,6 @@ var styles$c = StyleSheet.create({
5782
5741
  flex: 1,
5783
5742
  height: 48,
5784
5743
  paddingLeft: 0,
5785
- // paddingTop: Platform.OS === "ios" ? CONSTANTS.SPACE_4 : CONSTANTS.SPACE_2,
5786
5744
  },
5787
5745
  clearButtonMultiline: {
5788
5746
  paddingRight: CONSTANTS.SPACE_12,
@@ -5947,12 +5905,12 @@ function formatNumberInput$1(value, formatDecimal) {
5947
5905
  return result;
5948
5906
  }
5949
5907
  var TextInputNumber = function (_a) {
5950
- var style = _a.style, _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, _d = _a.textError, textError = _d === void 0 ? "" : _d, left = _a.left, right = _a.right, onChangeText = _a.onChangeText, _e = _a.disabled, disabled = _e === void 0 ? false : _e; _a.theme; var _f = _a.prefix, prefix = _f === void 0 ? "" : _f, _g = _a.clearButton, clearButton = _g === void 0 ? false : _g, _h = _a.maxValue, maxValue = _h === void 0 ? 999999999 : _h, _j = _a.type, type = _j === void 0 ? "integer" : _j, _k = _a.formatDecimal, formatDecimal = _k === void 0 ? 3 : _k, _l = _a.required, required = _l === void 0 ? false : _l, props = __rest(_a, ["style", "value", "label", "textError", "left", "right", "onChangeText", "disabled", "theme", "prefix", "clearButton", "maxValue", "type", "formatDecimal", "required"]);
5908
+ var style = _a.style, _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, _d = _a.textError, textError = _d === void 0 ? "" : _d, left = _a.left, right = _a.right, onChangeText = _a.onChangeText, _e = _a.disabled, disabled = _e === void 0 ? false : _e; _a.theme; var _f = _a.prefix, prefix = _f === void 0 ? "" : _f, _g = _a.suffix, suffix = _g === void 0 ? "" : _g, _h = _a.clearButton, clearButton = _h === void 0 ? false : _h, _j = _a.maxValue, maxValue = _j === void 0 ? 999999999 : _j, _k = _a.type, type = _k === void 0 ? "integer" : _k, _l = _a.formatDecimal, formatDecimal = _l === void 0 ? 3 : _l, _m = _a.required, required = _m === void 0 ? false : _m, props = __rest(_a, ["style", "value", "label", "textError", "left", "right", "onChangeText", "disabled", "theme", "prefix", "suffix", "clearButton", "maxValue", "type", "formatDecimal", "required"]);
5951
5909
  var theme = useInternalTheme();
5952
5910
  var colors = theme.colors;
5953
- var _m = useState(false), isShowModalKeyboard = _m[0], setIsShowModalKeyboard = _m[1];
5954
- var _o = useState((value === null || value === void 0 ? void 0 : value.toString()) || ""), inputValue = _o[0], setInputValue = _o[1];
5955
- var _p = useState((value === null || value === void 0 ? void 0 : value.toString()) || ""), numberValue = _p[0], setNumberValue = _p[1];
5911
+ var _o = useState(false), isShowModalKeyboard = _o[0], setIsShowModalKeyboard = _o[1];
5912
+ var _p = useState((value === null || value === void 0 ? void 0 : value.toString()) || ""), inputValue = _p[0], setInputValue = _p[1];
5913
+ var _q = useState((value === null || value === void 0 ? void 0 : value.toString()) || ""), numberValue = _q[0], setNumberValue = _q[1];
5956
5914
  var disabledTextStyle = {
5957
5915
  color: colors.textSecondary,
5958
5916
  };
@@ -6068,8 +6026,8 @@ var TextInputNumber = function (_a) {
6068
6026
  style,
6069
6027
  ] },
6070
6028
  React__default.createElement(Spacer, { width: SPACE_12 }),
6071
- left && (React__default.createElement(View, { paddingRight: SPACE_8, height: "100%" }, left)),
6072
- React__default.createElement(View, { full: true },
6029
+ left && (React__default.createElement(View, { center: true, paddingRight: SPACE_8, height: "100%" }, left)),
6030
+ React__default.createElement(View, { full: true, paddingRight: SPACE_4 },
6073
6031
  !checkValueEmpty() && !checkLabelEmpty() && (React__default.createElement(Text$1, { size: 12, color: colors.textSecondary, style: [
6074
6032
  disabled && {
6075
6033
  color: colors.textPlaceholder,
@@ -6088,10 +6046,15 @@ var TextInputNumber = function (_a) {
6088
6046
  checkValueEmpty()
6089
6047
  ? label
6090
6048
  : formatNumberInput$1(numberValue, formatDecimal),
6091
- checkValueEmpty() && required && (React__default.createElement(Text$1, { color: colors.textErrorDefault }, " *")))))),
6049
+ checkValueEmpty() && required && (React__default.createElement(Text$1, { color: colors.textErrorDefault }, " *")))),
6050
+ !checkValueEmpty() && suffix.toString() !== "" && (React__default.createElement(Text$1, { numberOfLines: 1, color: colors.textSecondary, style: [disabled && disabledTextStyle] }, " ",
6051
+ suffix)))),
6092
6052
  clearButton && !checkValueEmpty() && (React__default.createElement(TouchableOpacity, { activeOpacity: 0.8, onPress: handleClearInput },
6093
6053
  React__default.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))),
6094
- right && (React__default.createElement(View, { paddingLeft: SPACE_8, height: "100%" }, right)),
6054
+ right && (React__default.createElement(Spacer, { width: 1, height: 30, backgroundColor: theme.colors.borderPrimaryDefault, style: {
6055
+ marginLeft: SPACE_4,
6056
+ } })),
6057
+ right && (React__default.createElement(View, { center: true, paddingLeft: SPACE_8, height: "100%" }, right)),
6095
6058
  React__default.createElement(Spacer, { width: SPACE_12 }))),
6096
6059
  !disabled && textError.length > 0 && (React__default.createElement(View, { paddingHorizontal: SPACE_12, paddingVertical: SPACE_4 },
6097
6060
  React__default.createElement(Text$1, { size: 12, numberOfLines: 1, color: theme.colors.textErrorDefault }, textError))),
@@ -6229,7 +6192,7 @@ var DefaultRenderer = function (props) { return React__default.createElement(Tex
6229
6192
  * @extends TextInput props https://reactnative.dev/docs/textinput#props
6230
6193
  */
6231
6194
  var TextInput = forwardRef(function (_a, ref) {
6232
- var _b = _a.mode, mode = _b === void 0 ? "flat" : _b, _c = _a.dense, dense = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.error, errorProp = _e === void 0 ? false : _e, _f = _a.multiline, multiline = _f === void 0 ? false : _f, _g = _a.editable, editable = _g === void 0 ? true : _g, contentStyle = _a.contentStyle, _h = _a.render, render = _h === void 0 ? DefaultRenderer : _h; _a.theme; var placeholderTextColor = _a.placeholderTextColor, clearButton = _a.clearButton, textError = _a.textError, prefix = _a.prefix, maxValue = _a.maxValue, type = _a.type, _j = _a.required, required = _j === void 0 ? false : _j, rest = __rest(_a, ["mode", "dense", "disabled", "error", "multiline", "editable", "contentStyle", "render", "theme", "placeholderTextColor", "clearButton", "textError", "prefix", "maxValue", "type", "required"]);
6195
+ var _b = _a.mode, mode = _b === void 0 ? "flat" : _b, _c = _a.dense, dense = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.error, errorProp = _e === void 0 ? false : _e, _f = _a.multiline, multiline = _f === void 0 ? false : _f, _g = _a.editable, editable = _g === void 0 ? true : _g, contentStyle = _a.contentStyle, _h = _a.render, render = _h === void 0 ? DefaultRenderer : _h; _a.theme; var placeholderTextColor = _a.placeholderTextColor, clearButton = _a.clearButton, textError = _a.textError, prefix = _a.prefix, suffix = _a.suffix, maxValue = _a.maxValue, type = _a.type, _j = _a.required, required = _j === void 0 ? false : _j, rest = __rest(_a, ["mode", "dense", "disabled", "error", "multiline", "editable", "contentStyle", "render", "theme", "placeholderTextColor", "clearButton", "textError", "prefix", "suffix", "maxValue", "type", "required"]);
6233
6196
  var theme = useInternalTheme();
6234
6197
  var isControlled = rest.value !== undefined;
6235
6198
  var validInputValue = isControlled ? rest.value : rest.defaultValue;
@@ -6415,7 +6378,7 @@ var TextInput = forwardRef(function (_a, ref) {
6415
6378
  var _t = rest.maxFontSizeMultiplier, maxFontSizeMultiplier = _t === void 0 ? 1.5 : _t;
6416
6379
  var scaledLabel = !!(value || focused);
6417
6380
  if (mode === "default") {
6418
- return (React__default.createElement(TextInputDefault, __assign({ dense: dense, disabled: disabled, error: errorProp, textError: textError, required: required, multiline: multiline, editable: editable, render: render }, rest, { theme: theme, value: value, placeholderTextColor: placeholderTextColor, clearButton: clearButton, parentState: {
6381
+ return (React__default.createElement(TextInputDefault, __assign({ dense: dense, disabled: disabled, error: errorProp, textError: textError, required: required, multiline: multiline, editable: editable, prefix: prefix, suffix: suffix, render: render }, rest, { theme: theme, value: value, placeholderTextColor: placeholderTextColor, clearButton: clearButton, parentState: {
6419
6382
  labeled: labeled,
6420
6383
  error: error,
6421
6384
  focused: focused,
@@ -6431,9 +6394,9 @@ var TextInput = forwardRef(function (_a, ref) {
6431
6394
  }, onFocus: handleFocus, forceFocus: forceFocus, onBlur: handleBlur, allowFontScaling: false, onChangeText: handleChangeText, onLayoutAnimatedText: handleLayoutAnimatedText, onInputLayout: handleInputContainerLayout, onLabelTextLayout: handleLabelTextLayout, onLeftAffixLayoutChange: onLeftAffixLayoutChange, onRightAffixLayoutChange: onRightAffixLayoutChange, maxFontSizeMultiplier: maxFontSizeMultiplier, contentStyle: contentStyle, scaledLabel: scaledLabel })));
6432
6395
  }
6433
6396
  if (mode === "number") {
6434
- return (React__default.createElement(TextInputNumber$1, { textError: textError, disabled: disabled, prefix: prefix, value: value, right: rest.right, left: rest.left, required: required, label: rest.label, clearButton: clearButton, onChangeText: handleChangeText, maxValue: maxValue, formatDecimal: rest.formatDecimal, type: type }));
6397
+ return (React__default.createElement(TextInputNumber$1, { textError: textError, disabled: disabled, prefix: prefix, suffix: suffix, value: value, right: rest.right, left: rest.left, required: required, label: rest.label, clearButton: clearButton, onChangeText: handleChangeText, maxValue: maxValue, formatDecimal: rest.formatDecimal, type: type }));
6435
6398
  }
6436
- return (React__default.createElement(TextInputFlat, __assign({ dense: dense, disabled: disabled, error: errorProp, textError: textError, editable: editable, clearButton: clearButton, required: required, render: render }, rest, { theme: theme, value: value, parentState: {
6399
+ return (React__default.createElement(TextInputFlat, __assign({ dense: dense, disabled: disabled, error: errorProp, textError: textError, editable: editable, prefix: prefix, suffix: suffix, clearButton: clearButton, required: required, render: render }, rest, { theme: theme, value: value, parentState: {
6437
6400
  labeled: labeled,
6438
6401
  error: error,
6439
6402
  focused: focused,
@@ -6530,7 +6493,7 @@ var Button = function (_a) {
6530
6493
  React__default.createElement(Spacer, { width: left ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 }),
6531
6494
  !isLoading && left,
6532
6495
  left && React__default.createElement(Spacer, { width: CONSTANTS.SPACE_8 }),
6533
- isLoading ? (React__default.createElement(ActivityIndicator$1, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || renderTextColor() })) : (React__default.createElement(Text$1, __assign({ numberOfLines: 1, color: textColor || renderTextColor(), size: size, bold: bold, medium: medium, style: [disabled && disabledTextStyle, textStyle] }, textProps), title)),
6496
+ isLoading ? (React__default.createElement(ActivityIndicator, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || renderTextColor() })) : (React__default.createElement(Text$1, __assign({ numberOfLines: 1, color: textColor || renderTextColor(), size: size, bold: bold, medium: medium, style: [disabled && disabledTextStyle, textStyle] }, textProps), title)),
6534
6497
  right && React__default.createElement(Spacer, { width: CONSTANTS.SPACE_8 }),
6535
6498
  !isLoading && right,
6536
6499
  React__default.createElement(Spacer, { width: right ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 })))));
@@ -6582,7 +6545,7 @@ var FloatingButton = function (_a) {
6582
6545
  backgroundColor: colors.surfaceBrandDisabled,
6583
6546
  },
6584
6547
  style,
6585
- ] }, props), isLoading ? React__default.createElement(ActivityIndicator$1, { size: "small" }) : children)));
6548
+ ] }, props), isLoading ? React__default.createElement(ActivityIndicator, { size: "small" }) : children)));
6586
6549
  };
6587
6550
  var styles$9 = StyleSheet.create({
6588
6551
  btn: {
@@ -7201,11 +7164,11 @@ var styles$2 = StyleSheet.create(__assign(__assign({}, containerStyles), { disab
7201
7164
  var index$1 = React__default.memo(SelectionField);
7202
7165
 
7203
7166
  var SearchInput = function (_a) {
7204
- var _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, rightIcon = _a.rightIcon, _d = _a.clearButton, clearButton = _d === void 0 ? false : _d, _e = _a.placeholder, placeholder = _e === void 0 ? "Tìm kiếm" : _e, onFocus = _a.onFocus, onBlur = _a.onBlur, onChangeText = _a.onChangeText, style = _a.style, height = _a.height, textStyle = _a.textStyle;
7167
+ var _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, rightIcon = _a.rightIcon, _d = _a.clearButton, clearButton = _d === void 0 ? false : _d, _e = _a.placeholder, placeholder = _e === void 0 ? "Tìm kiếm" : _e, onFocus = _a.onFocus, onBlur = _a.onBlur, onChangeText = _a.onChangeText, style = _a.style, height = _a.height;
7205
7168
  var theme = useInternalTheme();
7206
7169
  var colors = theme.colors;
7207
- return (React__default.createElement(TextInput, { left: React__default.createElement(View, { center: true },
7208
- React__default.createElement(Icon$1, { name: "IconSearch", type: "Svg", size: 18 })), disabled: disabled, value: value, clearButton: clearButton, mode: "default", label: placeholder, placeholder: placeholder, right: rightIcon, onFocus: onFocus, onBlur: onBlur, allowFontScaling: false, onChangeText: onChangeText, textStyle: textStyle, style: [
7170
+ return (React__default.createElement(TextInput, { left: React__default.createElement(View, null,
7171
+ React__default.createElement(Icon$1, { name: "IconSearch", type: "Svg", size: 18 })), disabled: disabled, value: value, clearButton: clearButton, mode: "default", label: placeholder, placeholder: placeholder, right: rightIcon, onFocus: onFocus, onBlur: onBlur, allowFontScaling: false, onChangeText: onChangeText, style: [
7209
7172
  {
7210
7173
  height: height || 36,
7211
7174
  },
@@ -7218,6 +7181,7 @@ var SearchInput = function (_a) {
7218
7181
  style,
7219
7182
  ] }));
7220
7183
  };
7184
+ StyleSheet.create(__assign({}, containerStyles));
7221
7185
 
7222
7186
  var Tag = function (_a) {
7223
7187
  var style = _a.style, _b = _a.borderRadius, borderRadius = _b === void 0 ? CONSTANTS.BORDER_RADIUS_ROUNDED : _b, _c = _a.title, title = _c === void 0 ? "content" : _c, textStyle = _a.textStyle, onPress = _a.onPress, _d = _a.disabled, disabled = _d === void 0 ? false : _d, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _e = _a.isActive, isActive = _e === void 0 ? false : _e, _f = _a.ellipsizeMode, ellipsizeMode = _f === void 0 ? "tail" : _f, _g = _a.numberOfLines, numberOfLines = _g === void 0 ? 1 : _g, _h = _a.hideRightIcon, hideRightIcon = _h === void 0 ? false : _h, _j = _a.height, height = _j === void 0 ? 32 : _j;
@@ -7489,5 +7453,5 @@ var ToastProvider = forwardRef$1(function (_a, ref) {
7489
7453
  renderToast()));
7490
7454
  });
7491
7455
 
7492
- export { ActivityIndicator, Avatar, Badge, index$3 as Button, CONSTANTS, Checkbox, ChipBar, CountingDot, DarkTheme, DefaultTheme, index$2 as FloatingButton, Image$1 as Image, LightTheme, index as NumberKeyboard, ProgressBar, RadioButton, SearchInput, index$1 as SelectionField, Spacer, Switch, Tag, Text$1 as Text, TextInput, ThemeColors, ThemeProvider, Toast, ToastProvider, View, adaptNavigationTheme, configureFonts, overlay, shadow, showToast, toastRef, useTheme };
7456
+ export { Avatar, Badge, index$3 as Button, CONSTANTS, Checkbox, ChipBar, CountingDot, DarkTheme, DefaultTheme, index$2 as FloatingButton, Image$1 as Image, LightTheme, index as NumberKeyboard, ProgressBar, RadioButton, SearchInput, index$1 as SelectionField, Spacer, Switch, Tag, Text$1 as Text, TextInput, ThemeColors, ThemeProvider, Toast, ToastProvider, View, adaptNavigationTheme, configureFonts, overlay, shadow, showToast, toastRef, useTheme };
7493
7457
  //# sourceMappingURL=index.esm.js.map