sapo-components-ui-rn 1.1.101 → 1.1.102

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.
@@ -10,7 +10,7 @@ export interface NumberKeyboardProps {
10
10
  /** Giá trị tối đa cho phép */
11
11
  maxValue?: number;
12
12
  /** Giá trị tối thiểu cho phép */
13
- minValue?: number;
13
+ minValue?: number | null;
14
14
  /** Loại input: integer hoặc float */
15
15
  type?: "integer" | "float";
16
16
  /** Số chữ số thập phân cho phép */
@@ -11,7 +11,7 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
11
11
  suffix?: string;
12
12
  textError?: string;
13
13
  maxValue?: number;
14
- minValue?: number;
14
+ minValue?: number | null;
15
15
  type?: "integer" | "float";
16
16
  keyboardStyle?: StyleProp<ViewStyle>;
17
17
  formatDecimal?: 1 | 2 | 3;
@@ -16,7 +16,7 @@ export interface TextInputNumberProps extends TouchableOpacityProps {
16
16
  clearButton?: boolean;
17
17
  theme?: ThemeProp;
18
18
  maxValue?: number;
19
- minValue?: number;
19
+ minValue?: number | null;
20
20
  type?: "integer" | "float";
21
21
  formatDecimal?: 1 | 2 | 3;
22
22
  required?: boolean;
package/dist/index.esm.js CHANGED
@@ -5881,7 +5881,8 @@ var TextInputNumber = function (_a) {
5881
5881
  React__default.createElement(Text$1, { style: [styles$c.modalTitle, styles$c.text18] }, label),
5882
5882
  React__default.createElement(View, { width: "100%", style: styles$c.valueRow },
5883
5883
  React__default.createElement(View, { style: styles$c.valueTextContainer },
5884
- React__default.createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "\u00A0")),
5884
+ React__default.createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) ||
5885
+ (minValue === null ? "\u00A0" : "0"))),
5885
5886
  React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_modal_btn_clear") : 'number_input_btn_clear', accessible: true, accessibilityRole: "button", accessibilityLabel: "X\u00F3a h\u1EBFt", onPress: handleClear, style: styles$c.clearButton },
5886
5887
  React__default.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
5887
5888
  React__default.createElement(View, { style: styles$c.keyboardGrid }, [
@@ -7657,7 +7658,8 @@ var NumberKeyboard = function (_a) {
7657
7658
  React__default.createElement(Text$1, { style: [styles.text18, styles.modalTitle] }, label),
7658
7659
  React__default.createElement(View, { width: "100%", style: styles.valueRow },
7659
7660
  React__default.createElement(View, { style: styles.valueTextContainer },
7660
- React__default.createElement(Text$1, { numberOfLines: 1, style: [styles.text30, styles.valueText] }, formatNumberInput(inputValue, formatDecimal) || "\u00A0")),
7661
+ React__default.createElement(Text$1, { numberOfLines: 1, style: [styles.text30, styles.valueText] }, formatNumberInput(inputValue, formatDecimal) ||
7662
+ (minValue === null ? "\u00A0" : "0"))),
7661
7663
  React__default.createElement(TouchableOpacity, { testID: testID ? "".concat(testID, "_btn_clear") : 'keyboard_btn_clear', accessible: true, accessibilityRole: "button", accessibilityLabel: "X\u00F3a h\u1EBFt", onPress: handleClear, style: styles.clearButton },
7662
7664
  React__default.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
7663
7665
  React__default.createElement(View, { style: styles.keyboardGrid }, [