@minimalstuff/ui 0.0.27 → 0.0.29
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 +5 -5
- package/dist/index.es.js +437 -435
- package/dist/index.umd.js +16 -16
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -199,9 +199,9 @@ theme?: Theme | undefined;
|
|
|
199
199
|
as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
|
|
200
200
|
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
201
201
|
|
|
202
|
-
declare type Option_2 = {
|
|
202
|
+
declare type Option_2<T> = {
|
|
203
203
|
label: string | number;
|
|
204
|
-
value:
|
|
204
|
+
value: T;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
export declare const RoundedImage: StyledComponent< {
|
|
@@ -228,9 +228,9 @@ declare interface SelectorProps<T> extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
228
228
|
value: T;
|
|
229
229
|
name: string;
|
|
230
230
|
errors?: string[];
|
|
231
|
-
options: Option_2[];
|
|
232
|
-
onChangeCallback?: (value:
|
|
233
|
-
formatOptionLabel?: (data: Option_2
|
|
231
|
+
options: Option_2<T>[];
|
|
232
|
+
onChangeCallback?: (value: T) => void;
|
|
233
|
+
formatOptionLabel?: (data: Option_2<T>, formatOptionLabelMeta: FormatOptionLabelMeta<Option_2<T>>) => ReactNode;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
declare type ShortcutOptions = {
|