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.mjs CHANGED
@@ -1775,7 +1775,7 @@ var InputFieldComponent = forwardRef(
1775
1775
  const readyPaddingHorizontal = paddingHorizontal ?? theme2.styles.space;
1776
1776
  const readyPaddingVertical = paddingVertical ? parseFloat(paddingVertical.toString()) : (theme2.styles.space + theme2.styles.gap) / 2;
1777
1777
  const readyHeight = height ?? isIOSDateTime ? void 0 : borderWidth + readyPaddingVertical + lineHeight + readyPaddingVertical + borderWidth + (Platform5.OS === "android" ? 2 : 0);
1778
- const onChangeRNDateTimePicker = useCallback6(
1778
+ const onValueChangeRNDateTimePicker = useCallback6(
1779
1779
  (event, data) => {
1780
1780
  setInternalDateValue(data);
1781
1781
  onChange?.(data?.toISOString() ?? "");
@@ -1802,13 +1802,13 @@ var InputFieldComponent = forwardRef(
1802
1802
  label: "Cancel",
1803
1803
  textColor: theme2.colors.textSecondary
1804
1804
  },
1805
- onChange: onChangeRNDateTimePicker
1805
+ onValueChange: onValueChangeRNDateTimePicker
1806
1806
  });
1807
1807
  } else if (Platform5.OS === "ios") {
1808
1808
  }
1809
1809
  }
1810
1810
  },
1811
- [onPress, type, internalDateValue, onChangeRNDateTimePicker]
1811
+ [onPress, type, internalDateValue, onValueChangeRNDateTimePicker]
1812
1812
  );
1813
1813
  const onFocusElement = useCallback6((event) => {
1814
1814
  setIsFocused.setTrue();
@@ -1874,13 +1874,9 @@ var InputFieldComponent = forwardRef(
1874
1874
  type === "date" ? date : internalDateValue ? `${hours.length === 1 ? `0${hours}` : hours}:${minutes.length === 1 ? `0${minutes}` : minutes}` : ""
1875
1875
  );
1876
1876
  }, [internalDateValue]);
1877
- useImperativeHandle(
1878
- ref,
1879
- () => {
1880
- return textInputRef.current;
1881
- },
1882
- []
1883
- );
1877
+ useImperativeHandle(ref, () => {
1878
+ return textInputRef.current;
1879
+ }, []);
1884
1880
  const withPressInputField = !!onPress || type === "date" || type === "time";
1885
1881
  const prefixSuffixBackgroundColor = colorTheme === "light" ? darkenColor(theme2.colors.backgroundContent, 0.03) : lightenColor(theme2.colors.backgroundContent, 0.1);
1886
1882
  const labelComponent = label && /* @__PURE__ */ jsxs6(View_default, { isRow: true, alignItems: "center", gap: 2, children: [
@@ -1935,7 +1931,7 @@ var InputFieldComponent = forwardRef(
1935
1931
  accentColor: theme2.colors.primary,
1936
1932
  themeVariant: colorTheme === "dark" ? "dark" : "light",
1937
1933
  style: rnDateTimePickerStyle,
1938
- onChange: onChangeRNDateTimePicker
1934
+ onValueChange: onValueChangeRNDateTimePicker
1939
1935
  }
1940
1936
  )
1941
1937
  ] }) : /* @__PURE__ */ jsx12(
@@ -2105,13 +2101,9 @@ InputFieldComponent.password = forwardRef(function Password(props, ref) {
2105
2101
  setShowPassword.toggle();
2106
2102
  inputFieldRef.current?.focus();
2107
2103
  }, []);
2108
- useImperativeHandle(
2109
- ref,
2110
- () => {
2111
- return inputFieldRef.current;
2112
- },
2113
- []
2114
- );
2104
+ useImperativeHandle(ref, () => {
2105
+ return inputFieldRef.current;
2106
+ }, []);
2115
2107
  return /* @__PURE__ */ jsx12(
2116
2108
  InputFieldComponent,
2117
2109
  {