hiver-ui-kit-extended 1.0.1 → 1.0.2

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/env.hui.d.ts CHANGED
@@ -6,6 +6,7 @@ import { DataTableProps as DataTableProps_2 } from 'primereact/datatable';
6
6
  import { DialogProps as DialogProps_2 } from 'primereact/dialog';
7
7
  import { ElementType } from 'react';
8
8
  import { HTMLAttributes } from 'react';
9
+ import { InputHTMLAttributes } from 'react';
9
10
  import { JSX as JSX_2 } from 'react/jsx-runtime';
10
11
  import { MouseEvent as MouseEvent_2 } from 'react';
11
12
  import { ReactNode } from 'react';
@@ -110,6 +111,8 @@ export declare interface DialogProps {
110
111
  rest?: DialogProps_2;
111
112
  }
112
113
 
114
+ declare type ExtraHTMLAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
115
+
113
116
  export declare const HUITheme: {
114
117
  palette: {
115
118
  primary: {
@@ -227,7 +230,7 @@ export declare type TabsVariant = 'standard' | 'scrollable' | 'fullWidth';
227
230
 
228
231
  export declare const TextField: (props: TextFieldProps) => JSX_2.Element;
229
232
 
230
- export declare interface TextFieldProps {
233
+ export declare interface TextFieldProps extends ExtraHTMLAttributes {
231
234
  value?: string;
232
235
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
233
236
  placeholder?: string;
package/dist/env.hui.js CHANGED
@@ -178,7 +178,8 @@ const TextField = (props) => {
178
178
  fullWidth = true,
179
179
  size = "medium",
180
180
  icon,
181
- iconPosition = "left"
181
+ iconPosition = "left",
182
+ ...extraProps
182
183
  } = props;
183
184
  const TextFieldComponent = le;
184
185
  const inputElement = /* @__PURE__ */ jsx(
@@ -199,7 +200,8 @@ const TextField = (props) => {
199
200
  helperText,
200
201
  label,
201
202
  fullWidth,
202
- size
203
+ size,
204
+ ...extraProps
203
205
  }
204
206
  );
205
207
  if (!icon) {