sapo-components-ui-rn 1.0.25 → 1.0.27
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 +3 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SearchInput/index.tsx +1 -0
- package/src/components/Tag/index.tsx +0 -1
- package/src/components/TextInput/TextInputDefault.tsx +1 -1
- package/src/components/View/index.tsx +1 -8
package/dist/index.esm.js
CHANGED
|
@@ -1921,8 +1921,6 @@ var styles$h = StyleSheet.create({
|
|
|
1921
1921
|
|
|
1922
1922
|
var ViewCustom = function (_a) {
|
|
1923
1923
|
var row = _a.row, full = _a.full, justifyCenter = _a.justifyCenter, justifyBetween = _a.justifyBetween, alignCenter = _a.alignCenter, center = _a.center, color = _a.color, backgroundColor = _a.backgroundColor, width = _a.width, height = _a.height, padding = _a.padding, paddingHorizontal = _a.paddingHorizontal, paddingVertical = _a.paddingVertical, marginHorizontal = _a.marginHorizontal, marginVertical = _a.marginVertical, paddingLeft = _a.paddingLeft, paddingRight = _a.paddingRight, paddingTop = _a.paddingTop, alignEnd = _a.alignEnd, wrap = _a.wrap, borderBottomWidth = _a.borderBottomWidth, borderBottomColor = _a.borderBottomColor, borderRadius = _a.borderRadius, borderWidth = _a.borderWidth, borderColor = _a.borderColor, style = _a.style, onPress = _a.onPress, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.8 : _b, children = _a.children, disabled = _a.disabled, paddingBottom = _a.paddingBottom;
|
|
1924
|
-
var theme = useInternalTheme();
|
|
1925
|
-
var colors = theme.colors;
|
|
1926
1924
|
var getStyle = function () {
|
|
1927
1925
|
var styleCustom = {};
|
|
1928
1926
|
if (row) {
|
|
@@ -2008,11 +2006,7 @@ var ViewCustom = function (_a) {
|
|
|
2008
2006
|
};
|
|
2009
2007
|
var defaultStyle = getStyle();
|
|
2010
2008
|
var Component = onPress ? TouchableOpacity : View$1;
|
|
2011
|
-
return (React__default.createElement(Component, { activeOpacity: activeOpacity, onPress: onPress, disabled: disabled, style: [
|
|
2012
|
-
{ backgroundColor: colors.backgroundPrimary },
|
|
2013
|
-
defaultStyle,
|
|
2014
|
-
style,
|
|
2015
|
-
] }, children));
|
|
2009
|
+
return (React__default.createElement(Component, { activeOpacity: activeOpacity, onPress: onPress, disabled: disabled, style: [defaultStyle, style] }, children));
|
|
2016
2010
|
};
|
|
2017
2011
|
var View = React__default.memo(ViewCustom);
|
|
2018
2012
|
|
|
@@ -5646,7 +5640,7 @@ var TextInputDefault = function (_a) {
|
|
|
5646
5640
|
? multiline
|
|
5647
5641
|
? CONSTANTS.SPACE_2
|
|
5648
5642
|
: CONSTANTS.SPACE_8
|
|
5649
|
-
:
|
|
5643
|
+
: 0 }),
|
|
5650
5644
|
contentStyle,
|
|
5651
5645
|
] }))),
|
|
5652
5646
|
!disabled && clearButton && inputValue ? (React$3.createElement(TouchableOpacity, { onPress: handleClear, style: multiline ? styles$b.clearButtonMultiline : styles$b.clearButton },
|
|
@@ -6837,7 +6831,7 @@ var index = React__default.memo(SelectionField);
|
|
|
6837
6831
|
var SearchInput = function (_a) {
|
|
6838
6832
|
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;
|
|
6839
6833
|
return (React__default.createElement(TextInput, { left: React__default.createElement(View, { paddingRight: SPACE_8 },
|
|
6840
|
-
React__default.createElement(Icon$1, { name: "IconSearch", type: "Svg", size: 24 })), disabled: disabled, value: value, clearButton: clearButton, mode: "default", placeholder: placeholder, right: rightIcon, onFocus: onFocus, onBlur: onBlur, allowFontScaling: false, onChangeText: onChangeText, style: [
|
|
6834
|
+
React__default.createElement(Icon$1, { name: "IconSearch", type: "Svg", size: 24 })), disabled: disabled, value: value, clearButton: clearButton, mode: "default", label: placeholder, placeholder: placeholder, right: rightIcon, onFocus: onFocus, onBlur: onBlur, allowFontScaling: false, onChangeText: onChangeText, style: [
|
|
6841
6835
|
{
|
|
6842
6836
|
height: height || 40,
|
|
6843
6837
|
},
|