ingeniuscliq-core 0.2.27 → 0.2.29

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.
@@ -1,3 +1,4 @@
1
+ import { InputExtendedProps } from '../../ui/input';
1
2
  import { BaseStyleProps } from '../../../types/ui/main';
2
3
  import { Control, FieldValues, Path } from 'react-hook-form';
3
4
  declare enum SUPPORTED_INPUT_TYPES {
@@ -11,6 +12,7 @@ interface FormInputProps<T extends FieldValues = FieldValues> extends BaseStyleP
11
12
  readonly name: Path<T>;
12
13
  readonly placeholder?: string;
13
14
  readonly type?: keyof typeof SUPPORTED_INPUT_TYPES;
15
+ readonly inputProps?: React.ComponentProps<"input"> & InputExtendedProps;
14
16
  }
15
- export declare function FormInput<T extends FieldValues = FieldValues>({ control, name, placeholder, type, className }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
17
+ export declare function FormInput<T extends FieldValues = FieldValues>({ control, name, placeholder, type, className, inputProps }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
16
18
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- interface InputExtendedProps {
2
+ export interface InputExtendedProps {
3
3
  withoutShadow?: boolean;
4
4
  outlined?: boolean;
5
5
  }
package/dist/index.js CHANGED
@@ -5695,15 +5695,15 @@ function mc({ className: e, type: t, withoutShadow: n = !1, outlined: r = !1, ..
5695
5695
  }
5696
5696
  );
5697
5697
  }
5698
- function It({ control: e, name: t, placeholder: n, type: r = "text", className: o = "" }) {
5699
- const { t: a } = kn(), s = () => n || (t ? a(`fields.${t}`) : "");
5698
+ function It({ control: e, name: t, placeholder: n, type: r = "text", className: o = "", inputProps: a = void 0 }) {
5699
+ const { t: s } = kn(), i = () => n || (t ? s(`fields.${t}`) : "");
5700
5700
  return /* @__PURE__ */ d(
5701
5701
  Nf,
5702
5702
  {
5703
5703
  control: e,
5704
5704
  className: o,
5705
5705
  name: t,
5706
- render: (i) => /* @__PURE__ */ d(mc, { placeholder: s(), type: r, ...i })
5706
+ render: (c) => /* @__PURE__ */ d(mc, { placeholder: i(), type: r, ...c, ...a })
5707
5707
  }
5708
5708
  );
5709
5709
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",