@hoddy-ui/next 2.0.44 → 2.0.45

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
@@ -401,8 +401,8 @@ function themeReducer(state, { type, payload }) {
401
401
  var ConfigureSystemUI = () => {
402
402
  const theme = useTheme();
403
403
  const colors2 = useColors();
404
- const config2 = getConfig();
405
404
  (0, import_react3.useEffect)(() => {
405
+ const config2 = getConfig();
406
406
  if (colors2) {
407
407
  SystemUI.setBackgroundColorAsync(colors2.white[1]);
408
408
  if (import_react_native3.Platform.OS === "android" && !config2.EDGE_TO_EDGE) {
@@ -1603,13 +1603,14 @@ var TextField2 = import_react16.default.forwardRef(
1603
1603
  placeholder,
1604
1604
  end,
1605
1605
  options,
1606
+ multiline,
1606
1607
  ...props
1607
1608
  }, ref) => {
1608
1609
  const colors2 = useColors();
1609
1610
  const [focused, _setFocused] = (0, import_react16.useState)(false);
1610
1611
  const [showPassword, setShowPassword] = (0, import_react16.useState)(false);
1611
1612
  const height = (0, import_react_native_size_matters14.moderateScale)(
1612
- props.multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
1613
+ multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
1613
1614
  );
1614
1615
  const setFocused = (value2) => {
1615
1616
  _setFocused(value2);
@@ -1627,7 +1628,8 @@ var TextField2 = import_react16.default.forwardRef(
1627
1628
  borderWidth: error ? 1 : focused ? 2 : 1,
1628
1629
  width: "100%",
1629
1630
  borderRadius: rounded ? 30 : 10,
1630
- alignItems: "center",
1631
+ alignItems: multiline ? "flex-start" : "center",
1632
+ paddingVertical: multiline ? 10 : 0,
1631
1633
  ...inputStyles
1632
1634
  },
1633
1635
  input: {
@@ -1724,6 +1726,8 @@ var TextField2 = import_react16.default.forwardRef(
1724
1726
  placeholder,
1725
1727
  selectTextOnFocus: !disabled,
1726
1728
  onSubmitEditing,
1729
+ multiline,
1730
+ textAlignVertical: multiline ? "top" : "center",
1727
1731
  ...formProps,
1728
1732
  ...props,
1729
1733
  style: styles2.input