react-native-better-html 1.0.22 → 1.0.23

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
@@ -1799,7 +1799,7 @@ var InputFieldComponent = (0, import_react14.forwardRef)(
1799
1799
  const readyPaddingHorizontal = paddingHorizontal ?? theme2.styles.space;
1800
1800
  const readyPaddingVertical = paddingVertical ? parseFloat(paddingVertical.toString()) : (theme2.styles.space + theme2.styles.gap) / 2;
1801
1801
  const readyHeight = height ?? isIOSDateTime ? void 0 : borderWidth + readyPaddingVertical + lineHeight + readyPaddingVertical + borderWidth + (import_react_native9.Platform.OS === "android" ? 2 : 0);
1802
- const onChangeRNDateTimePicker = (0, import_react14.useCallback)(
1802
+ const onValueChangeRNDateTimePicker = (0, import_react14.useCallback)(
1803
1803
  (event, data) => {
1804
1804
  setInternalDateValue(data);
1805
1805
  onChange?.(data?.toISOString() ?? "");
@@ -1826,13 +1826,13 @@ var InputFieldComponent = (0, import_react14.forwardRef)(
1826
1826
  label: "Cancel",
1827
1827
  textColor: theme2.colors.textSecondary
1828
1828
  },
1829
- onChange: onChangeRNDateTimePicker
1829
+ onValueChange: onValueChangeRNDateTimePicker
1830
1830
  });
1831
1831
  } else if (import_react_native9.Platform.OS === "ios") {
1832
1832
  }
1833
1833
  }
1834
1834
  },
1835
- [onPress, type, internalDateValue, onChangeRNDateTimePicker]
1835
+ [onPress, type, internalDateValue, onValueChangeRNDateTimePicker]
1836
1836
  );
1837
1837
  const onFocusElement = (0, import_react14.useCallback)((event) => {
1838
1838
  setIsFocused.setTrue();
@@ -1898,13 +1898,9 @@ var InputFieldComponent = (0, import_react14.forwardRef)(
1898
1898
  type === "date" ? date : internalDateValue ? `${hours.length === 1 ? `0${hours}` : hours}:${minutes.length === 1 ? `0${minutes}` : minutes}` : ""
1899
1899
  );
1900
1900
  }, [internalDateValue]);
1901
- (0, import_react14.useImperativeHandle)(
1902
- ref,
1903
- () => {
1904
- return textInputRef.current;
1905
- },
1906
- []
1907
- );
1901
+ (0, import_react14.useImperativeHandle)(ref, () => {
1902
+ return textInputRef.current;
1903
+ }, []);
1908
1904
  const withPressInputField = !!onPress || type === "date" || type === "time";
1909
1905
  const prefixSuffixBackgroundColor = colorTheme === "light" ? (0, import_react_better_core13.darkenColor)(theme2.colors.backgroundContent, 0.03) : (0, import_react_better_core13.lightenColor)(theme2.colors.backgroundContent, 0.1);
1910
1906
  const labelComponent = label && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(View_default, { isRow: true, alignItems: "center", gap: 2, children: [
@@ -1959,7 +1955,7 @@ var InputFieldComponent = (0, import_react14.forwardRef)(
1959
1955
  accentColor: theme2.colors.primary,
1960
1956
  themeVariant: colorTheme === "dark" ? "dark" : "light",
1961
1957
  style: rnDateTimePickerStyle,
1962
- onChange: onChangeRNDateTimePicker
1958
+ onValueChange: onValueChangeRNDateTimePicker
1963
1959
  }
1964
1960
  )
1965
1961
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -2129,13 +2125,9 @@ InputFieldComponent.password = (0, import_react14.forwardRef)(function Password(
2129
2125
  setShowPassword.toggle();
2130
2126
  inputFieldRef.current?.focus();
2131
2127
  }, []);
2132
- (0, import_react14.useImperativeHandle)(
2133
- ref,
2134
- () => {
2135
- return inputFieldRef.current;
2136
- },
2137
- []
2138
- );
2128
+ (0, import_react14.useImperativeHandle)(ref, () => {
2129
+ return inputFieldRef.current;
2130
+ }, []);
2139
2131
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2140
2132
  InputFieldComponent,
2141
2133
  {