sapo-components-ui-rn 1.1.15 → 1.1.17

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
@@ -1,4 +1,4 @@
1
- import { useWindowDimensions, Platform, StyleSheet, Dimensions, useColorScheme, TouchableOpacity, View as View$1, Text as Text$2, Animated as Animated$1, Pressable, I18nManager, TextInput as TextInput$1, Modal, Keyboard, ActivityIndicator, ImageBackground, Image as Image$2 } from 'react-native';
1
+ import { Dimensions, Platform, StyleSheet, useColorScheme, TouchableOpacity, View as View$1, Text as Text$2, Animated as Animated$1, Pressable, I18nManager, useWindowDimensions, TextInput as TextInput$1, Modal, Keyboard, 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';
@@ -215,7 +215,8 @@ var yellow = {
215
215
  YELLOW_STATUS: YELLOW_STATUS,
216
216
  };
217
217
 
218
- var _a$1 = useWindowDimensions(), height = _a$1.height, width = _a$1.width;
218
+ var DEVICE_HEIGHT = Dimensions.get("window").height;
219
+ var DEVICE_WIDTH = Dimensions.get("window").width;
219
220
  var ref = {
220
221
  palette: {
221
222
  dark: {
@@ -572,8 +573,8 @@ var typescale = {
572
573
  };
573
574
  var ThemeColors = ref.palette;
574
575
  var CONSTANTS = {
575
- DEVICE_HEIGHT: height,
576
- DEVICE_WIDTH: width,
576
+ DEVICE_HEIGHT: DEVICE_HEIGHT,
577
+ DEVICE_WIDTH: DEVICE_WIDTH,
577
578
  HEADER_HEIGHT: 50,
578
579
  BUTTON_HEIGHT: 48,
579
580
  BUTTON_HEIGHT_SMALL: 36,
@@ -7256,7 +7257,7 @@ var styles$2 = StyleSheet.create(__assign(__assign({}, containerStyles), { disab
7256
7257
  var index$1 = React__default.memo(SelectionField);
7257
7258
 
7258
7259
  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;
7260
+ 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
7261
  var theme = useInternalTheme();
7261
7262
  var colors = theme.colors;
7262
7263
  var debouncedOnChangeText = useDebouncedCallback(function (text) {