sapo-components-ui-rn 1.0.37 → 1.0.39

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.js CHANGED
@@ -5736,7 +5736,7 @@ var DefaultRenderer = function (props) { return React__default["default"].create
5736
5736
  * @extends TextInput props https://reactnative.dev/docs/textinput#props
5737
5737
  */
5738
5738
  var TextInput = forwardRef(function (_a, ref) {
5739
- 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, rest = __rest(_a, ["mode", "dense", "disabled", "error", "multiline", "editable", "contentStyle", "render", "theme", "placeholderTextColor", "clearButton"]);
5739
+ 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, textStyle = _a.textStyle, rest = __rest(_a, ["mode", "dense", "disabled", "error", "multiline", "editable", "contentStyle", "render", "theme", "placeholderTextColor", "clearButton", "textStyle"]);
5740
5740
  var theme = useInternalTheme();
5741
5741
  var isControlled = rest.value !== undefined;
5742
5742
  var validInputValue = isControlled ? rest.value : rest.defaultValue;
@@ -5935,7 +5935,7 @@ var TextInput = forwardRef(function (_a, ref) {
5935
5935
  inputContainerLayout: inputContainerLayout,
5936
5936
  }, innerRef: function (ref) {
5937
5937
  root.current = ref;
5938
- }, 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 })));
5938
+ }, onFocus: handleFocus, forceFocus: forceFocus, onBlur: handleBlur, allowFontScaling: false, onChangeText: handleChangeText, onLayoutAnimatedText: handleLayoutAnimatedText, onInputLayout: handleInputContainerLayout, onLabelTextLayout: handleLabelTextLayout, onLeftAffixLayoutChange: onLeftAffixLayoutChange, onRightAffixLayoutChange: onRightAffixLayoutChange, maxFontSizeMultiplier: maxFontSizeMultiplier, contentStyle: [contentStyle, textStyle], scaledLabel: scaledLabel })));
5939
5939
  }
5940
5940
  return (React__default["default"].createElement(TextInputFlat, __assign({ dense: dense, disabled: disabled, error: errorProp, editable: editable, clearButton: clearButton, render: render }, rest, { theme: theme, value: value, parentState: {
5941
5941
  labeled: labeled,
@@ -6850,11 +6850,11 @@ var styles$1 = reactNative.StyleSheet.create(__assign(__assign({}, containerStyl
6850
6850
  var index = React__default["default"].memo(SelectionField);
6851
6851
 
6852
6852
  var SearchInput = function (_a) {
6853
- 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;
6853
+ 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;
6854
6854
  var theme = useInternalTheme();
6855
6855
  var colors = theme.colors;
6856
6856
  return (React__default["default"].createElement(TextInput, { left: React__default["default"].createElement(View, { center: true },
6857
- React__default["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: [
6857
+ React__default["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: [
6858
6858
  {
6859
6859
  height: height || 40,
6860
6860
  },
@@ -6866,7 +6866,6 @@ var SearchInput = function (_a) {
6866
6866
  style,
6867
6867
  ] }));
6868
6868
  };
6869
- reactNative.StyleSheet.create(__assign({}, containerStyles));
6870
6869
 
6871
6870
  var Tag = function (_a) {
6872
6871
  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;
@@ -6881,7 +6880,7 @@ var Tag = function (_a) {
6881
6880
  setActive(isActive);
6882
6881
  }, [isActive]);
6883
6882
  return (React__default["default"].createElement(View, { row: true },
6884
- React__default["default"].createElement(View, { row: true, height: height, disabled: disabled, paddingHorizontal: CONSTANTS.SPACE_12, paddingVertical: CONSTANTS.SPACE_8, borderRadius: borderRadius, alignCenter: true, style: [
6883
+ React__default["default"].createElement(View, { row: true, height: height, disabled: disabled, paddingHorizontal: CONSTANTS.SPACE_12, paddingVertical: CONSTANTS.SPACE_8, borderRadius: borderRadius, center: true, style: [
6885
6884
  disabled && {
6886
6885
  backgroundColor: colors.surfaceSecondaryDefault,
6887
6886
  borderColor: colors.surfaceSecondaryDefault,
@@ -6900,7 +6899,7 @@ var Tag = function (_a) {
6900
6899
  textStyle,
6901
6900
  ] }, title)),
6902
6901
  rightIcon ? (React__default["default"].createElement(View, { paddingLeft: CONSTANTS.SPACE_4 }, rightIcon)) : hideRightIcon ? (React__default["default"].createElement(View, null)) : (React__default["default"].createElement(View, { paddingLeft: CONSTANTS.SPACE_4 },
6903
- React__default["default"].createElement(SvgIcon, { name: "IconClose" }))))));
6902
+ React__default["default"].createElement(Icon$1, { name: "IconClose", type: "Svg", size: 20, color: colors.iconBrandDefault }))))));
6904
6903
  };
6905
6904
  var styles = reactNative.StyleSheet.create(__assign({}, containerStyles));
6906
6905