@minimalstuff/ui 0.0.23 → 0.0.24

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.d.ts CHANGED
@@ -42,7 +42,7 @@ declare type ButtonProps = {
42
42
  secondary?: boolean;
43
43
  };
44
44
 
45
- export declare function Checkbox({ name, label, checked, errors, onChange, required, ...props }: InputProps): JSX.Element;
45
+ export declare function Checkbox({ name, label, checked, errors, onChange, required, reverse, inline, ...props }: InputProps): JSX.Element;
46
46
 
47
47
  export declare type Colors = {
48
48
  font: string;
@@ -122,6 +122,12 @@ theme?: Theme | undefined;
122
122
  as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
123
123
  }, DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
124
124
 
125
+ declare type FormFieldProps = {
126
+ required?: boolean;
127
+ inline?: boolean;
128
+ reverse?: boolean;
129
+ };
130
+
125
131
  declare type GlobalHotkeysContext = {
126
132
  globalHotkeysEnabled: boolean;
127
133
  setGlobalHotkeysEnabled: (value: boolean) => void;
@@ -131,7 +137,7 @@ declare const GlobalHotkeysContext = createContext<GlobalHotkeysContext>(
131
137
  iGlobalHotkeysContextState
132
138
  );
133
139
 
134
- declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
140
+ declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & FormFieldProps, 'onChange'> {
135
141
  label: string;
136
142
  name: string;
137
143
  checked: boolean;