@minimalstuff/ui 0.0.29 → 0.0.31
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 +21 -3
- package/dist/index.es.js +456 -453
- package/dist/index.umd.js +15 -15
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,19 @@ export declare type FadedColor = {
|
|
|
111
111
|
darkest: string;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
+
declare type FadedColor_2 = {
|
|
115
|
+
lightest: string;
|
|
116
|
+
light: string;
|
|
117
|
+
default: string;
|
|
118
|
+
dark: string;
|
|
119
|
+
darkest: string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
declare interface FadedColorGenerator {
|
|
123
|
+
color: string;
|
|
124
|
+
fadeStep?: number;
|
|
125
|
+
}
|
|
126
|
+
|
|
114
127
|
declare type FontSizes = {
|
|
115
128
|
[key in SizeType]: string;
|
|
116
129
|
};
|
|
@@ -126,6 +139,8 @@ declare type FormFieldProps = {
|
|
|
126
139
|
reverse?: boolean;
|
|
127
140
|
};
|
|
128
141
|
|
|
142
|
+
export declare function generateFadedColors(props: FadedColorGenerator): FadedColor_2;
|
|
143
|
+
|
|
129
144
|
declare type GlobalHotkeysContext = {
|
|
130
145
|
globalHotkeysEnabled: boolean;
|
|
131
146
|
setGlobalHotkeysEnabled: (value: boolean) => void;
|
|
@@ -136,19 +151,20 @@ iGlobalHotkeysContextState
|
|
|
136
151
|
);
|
|
137
152
|
|
|
138
153
|
declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement> & FormFieldProps, 'onChange'> {
|
|
139
|
-
label: string;
|
|
140
154
|
name: string;
|
|
141
155
|
checked: boolean;
|
|
156
|
+
label?: string;
|
|
142
157
|
errors?: string[];
|
|
143
158
|
onChange?: (name: string, checked: boolean) => void;
|
|
144
159
|
}
|
|
145
160
|
|
|
146
161
|
declare interface InputProps_2 extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
147
|
-
label: string;
|
|
148
162
|
name: string;
|
|
163
|
+
label?: string;
|
|
149
164
|
value?: string;
|
|
150
165
|
errors?: string[];
|
|
151
166
|
onChange?: (name: string, value: string) => void;
|
|
167
|
+
formFieldClassname?: string;
|
|
152
168
|
}
|
|
153
169
|
|
|
154
170
|
declare const KEYS = {
|
|
@@ -204,6 +220,8 @@ declare type Option_2<T> = {
|
|
|
204
220
|
value: T;
|
|
205
221
|
};
|
|
206
222
|
|
|
223
|
+
export declare const rgba: (hex: string, alpha: number) => string;
|
|
224
|
+
|
|
207
225
|
export declare const RoundedImage: StyledComponent< {
|
|
208
226
|
theme?: Theme | undefined;
|
|
209
227
|
as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
|
|
@@ -275,7 +293,7 @@ export declare interface TabsProps {
|
|
|
275
293
|
tabs: Tab[];
|
|
276
294
|
}
|
|
277
295
|
|
|
278
|
-
export declare function Textbox({ name, label, value, errors, onChange, required, ...props }: InputProps_2): JSX.Element;
|
|
296
|
+
export declare function Textbox({ name, label, value, errors, onChange, required, formFieldClassname, ...props }: InputProps_2): JSX.Element;
|
|
279
297
|
|
|
280
298
|
export declare const TextEllipsis: StyledComponent< {
|
|
281
299
|
theme?: Theme | undefined;
|