sapo-components-ui-rn 1.1.14 → 1.1.16

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
@@ -5758,7 +5758,6 @@ var TextInputNumber = function (_a) {
5758
5758
  }
5759
5759
  setIsFirstInput(false);
5760
5760
  }
5761
- // Nếu type là float, không cho phép nhập "000" ở đầu
5762
5761
  }
5763
5762
  else if (key === ".") {
5764
5763
  if (!inputValue.includes(".")) {
@@ -5774,10 +5773,6 @@ var TextInputNumber = function (_a) {
5774
5773
  }
5775
5774
  else {
5776
5775
  if (isFirstInput) {
5777
- // Nếu type là float và key là "0", không cho phép nhập số 0 đầu tiên
5778
- if (type === "float" && (key === "0" || key === "000")) {
5779
- return;
5780
- }
5781
5776
  setInputValue(key);
5782
5777
  setIsFirstInput(false);
5783
5778
  }
@@ -7256,7 +7251,7 @@ var styles$2 = StyleSheet.create(__assign(__assign({}, containerStyles), { disab
7256
7251
  var index$1 = React__default.memo(SelectionField);
7257
7252
 
7258
7253
  var SearchInput = function (_a) {
7259
- 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, _f = _a.debounceTime, debounceTime = _f === void 0 ? 200 : _f, _g = _a.autoFocus, autoFocus = _g === void 0 ? false : _g;
7254
+ 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, _f = _a.debounceTime, debounceTime = _f === void 0 ? 500 : _f, _g = _a.autoFocus, autoFocus = _g === void 0 ? false : _g;
7260
7255
  var theme = useInternalTheme();
7261
7256
  var colors = theme.colors;
7262
7257
  var debouncedOnChangeText = useDebouncedCallback(function (text) {