sapo-components-ui-rn 1.0.34 → 1.0.35
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/dist/index.esm.js
CHANGED
|
@@ -5621,6 +5621,7 @@ var TextInputDefault = function (_a) {
|
|
|
5621
5621
|
? theme.colors.surfacePrimaryDisabled
|
|
5622
5622
|
: theme.colors.surfacePrimaryDefault,
|
|
5623
5623
|
},
|
|
5624
|
+
contentStyle,
|
|
5624
5625
|
] },
|
|
5625
5626
|
React$3.createElement(View, { paddingLeft: CONSTANTS.SPACE_12 }, left),
|
|
5626
5627
|
left && React$3.createElement(Spacer, { width: CONSTANTS.SPACE_8 }),
|
|
@@ -6802,12 +6803,19 @@ var index = React__default.memo(SelectionField);
|
|
|
6802
6803
|
|
|
6803
6804
|
var SearchInput = function (_a) {
|
|
6804
6805
|
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;
|
|
6806
|
+
var theme = useInternalTheme();
|
|
6807
|
+
var colors = theme.colors;
|
|
6805
6808
|
return (React__default.createElement(TextInput, { left: React__default.createElement(View, { center: true },
|
|
6806
6809
|
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: [
|
|
6807
6810
|
{
|
|
6808
6811
|
height: height || 40,
|
|
6809
6812
|
},
|
|
6810
6813
|
style,
|
|
6814
|
+
], contentStyle: [
|
|
6815
|
+
{
|
|
6816
|
+
backgroundColor: colors.surfaceSecondaryDefault,
|
|
6817
|
+
},
|
|
6818
|
+
style,
|
|
6811
6819
|
] }));
|
|
6812
6820
|
};
|
|
6813
6821
|
StyleSheet.create(__assign({}, containerStyles));
|