@minimalstuff/ui 0.0.23 → 0.0.25
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 +9 -4
- package/dist/index.es.js +1963 -836
- package/dist/index.umd.js +35 -10
- package/package.json +1 -1
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
|
|
140
|
+
declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & FormFieldProps, 'onChange'> {
|
|
135
141
|
label: string;
|
|
136
142
|
name: string;
|
|
137
143
|
checked: boolean;
|
|
@@ -217,14 +223,13 @@ declare type ScreenType =
|
|
|
217
223
|
| 'large_desktop'
|
|
218
224
|
| 'xlarge_desktop';
|
|
219
225
|
|
|
220
|
-
export declare function Selector({ name, label,
|
|
226
|
+
export declare function Selector({ name, label, options, onChangeCallback, formatOptionLabel, required, ...props }: SelectorProps): JSX.Element;
|
|
221
227
|
|
|
222
228
|
declare interface SelectorProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
223
229
|
label: string;
|
|
224
230
|
name: string;
|
|
225
231
|
errors?: string[];
|
|
226
232
|
options: OptionsOrGroups<Option_2, GroupBase<Option_2>>;
|
|
227
|
-
value: number | string;
|
|
228
233
|
onChangeCallback?: (value: number | string) => void;
|
|
229
234
|
formatOptionLabel?: (data: Option_2, formatOptionLabelMeta: FormatOptionLabelMeta<Option_2>) => ReactNode;
|
|
230
235
|
}
|