@functionalui/functionalui 0.1.2 → 0.1.4

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/main.d.ts CHANGED
@@ -8,6 +8,7 @@ import { HTMLAttributes } from 'react';
8
8
  import { JSX } from 'react';
9
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
10
10
  import { ReactNode } from 'react';
11
+ import { Ref } from 'react';
11
12
  import { RefAttributes } from 'react';
12
13
  import { RefObject } from 'react';
13
14
 
@@ -890,9 +891,9 @@ declare enum Icons {
890
891
  ZoomOut = "zoom-out"
891
892
  }
892
893
 
893
- export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, }: P_12) => JSX_2.Element;
894
+ export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, ref, ...props }: P_12) => JSX_2.Element;
894
895
 
895
- export declare const InputText: ({ id, name, type, value, modes, label, focus, required, width, fullWidth, helperText, placeholder, step, min, handleChange, handleFocus, handleBlur, handleCheck, size, inputStyle, inputColor, labelTextColor, transparent, ...props }: P_14) => JSX_2.Element;
896
+ export declare const InputText: ({ id, name, type, value, modes, label, focus, required, width, fullWidth, helperText, placeholder, step, min, handleChange, handleFocus, handleBlur, handleCheck, size, inputStyle, inputColor, labelTextColor, transparent, ref, ...props }: P_14) => JSX_2.Element;
896
897
 
897
898
  declare enum InputTextModes {
898
899
  Default = 1,
@@ -1029,7 +1030,7 @@ declare interface P_11 {
1029
1030
  modalBackground?: ColorPalettes;
1030
1031
  }
1031
1032
 
1032
- declare interface P_12 {
1033
+ declare interface P_12 extends HTMLAttributes<HTMLInputElement> {
1033
1034
  id: string;
1034
1035
  name: string;
1035
1036
  handleImageChange?: (v: File | undefined) => void;
@@ -1037,15 +1038,17 @@ declare interface P_12 {
1037
1038
  defaultValue?: string;
1038
1039
  width?: number | string;
1039
1040
  height?: number | string;
1041
+ ref?: Ref<HTMLInputElement> | undefined;
1040
1042
  }
1041
1043
 
1042
- declare interface P_13 {
1044
+ declare interface P_13 extends HTMLAttributes<HTMLInputElement> {
1043
1045
  checked: boolean;
1044
1046
  id: string;
1045
1047
  handleChange: (id: string, checked: boolean) => void;
1046
1048
  size?: Sizings;
1047
1049
  children: ReactNode;
1048
1050
  vertigo?: boolean;
1051
+ ref?: Ref<HTMLInputElement> | undefined;
1049
1052
  }
1050
1053
 
1051
1054
  /**
@@ -1082,6 +1085,7 @@ declare interface P_14 extends HTMLAttributes<HTMLInputElement> {
1082
1085
  */
1083
1086
  labelTextColor?: boolean | ColorPalettes;
1084
1087
  transparent?: boolean;
1088
+ ref?: RefObject<HTMLInputElement | null>;
1085
1089
  }
1086
1090
 
1087
1091
  declare interface P_15 extends HTMLAttributes<HTMLTextAreaElement> {
@@ -1106,6 +1110,7 @@ declare interface P_15 extends HTMLAttributes<HTMLTextAreaElement> {
1106
1110
  textAreaColor?: ColorSets;
1107
1111
  labelTextColor?: boolean | ColorPalettes;
1108
1112
  noLabel?: boolean;
1113
+ ref?: Ref<HTMLTextAreaElement> | undefined;
1109
1114
  }
1110
1115
 
1111
1116
  declare interface P_16 {
@@ -1520,7 +1525,7 @@ declare enum TextAligns {
1520
1525
  Justify = 4
1521
1526
  }
1522
1527
 
1523
- export declare const TextArea: ({ id, name, value, modes, label, required, rows, width, fullWidth, placeholder, onChange, handleBlur, handleFocus, handleCheck, size, textAreaStyle, textAreaColor, labelTextColor, noLabel, ...props }: P_15) => JSX_2.Element;
1528
+ export declare const TextArea: ({ id, name, value, modes, label, required, rows, width, fullWidth, placeholder, onChange, handleBlur, handleFocus, handleCheck, size, textAreaStyle, textAreaColor, labelTextColor, noLabel, ref, ...props }: P_15 & TextAreaProps) => JSX_2.Element;
1524
1529
 
1525
1530
  declare enum TextAreaModes {
1526
1531
  Default = 1,
@@ -1540,13 +1545,13 @@ declare interface TextAreaProp {
1540
1545
  step?: number | undefined;
1541
1546
  rows?: number | undefined;
1542
1547
  resize?: ElementResizes;
1543
- outlineStyle?: OutlineStyles;
1548
+ textOutlineStyle?: OutlineStyles;
1544
1549
  textAreaStyle?: TextAreaStyles;
1545
1550
  }
1546
1551
 
1547
1552
  declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaProp {
1548
1553
  children?: ReactNode;
1549
- ref?: RefObject<HTMLTextAreaElement | null>;
1554
+ ref?: Ref<HTMLTextAreaElement> | undefined;
1550
1555
  }
1551
1556
 
1552
1557
  declare enum TextAreaSizes {
@@ -1577,7 +1582,7 @@ declare interface TextInputProp {
1577
1582
 
1578
1583
  declare interface TextInputProps extends AnimatedProps<HTMLAttributes<HTMLInputElement>>, TextStyleProps, TextInputProp {
1579
1584
  children?: ReactNode;
1580
- ref?: RefObject<HTMLInputElement | null>;
1585
+ ref?: Ref<HTMLInputElement> | undefined;
1581
1586
  }
1582
1587
 
1583
1588
  declare interface TextStyleProps {