@minimalstuff/ui 0.0.26 → 0.0.28
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 +8 -8
- package/package.json +2 -2
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< {
|
|
@@ -221,16 +221,16 @@ declare type ScreenType =
|
|
|
221
221
|
| 'large_desktop'
|
|
222
222
|
| 'xlarge_desktop';
|
|
223
223
|
|
|
224
|
-
export declare function Selector({ name, label, value, options, onChangeCallback, formatOptionLabel, required, ...props }: SelectorProps): JSX.Element;
|
|
224
|
+
export declare function Selector<T = string | number>({ name, label, value, options, onChangeCallback, formatOptionLabel, required, ...props }: SelectorProps<T>): JSX.Element;
|
|
225
225
|
|
|
226
|
-
declare interface SelectorProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
226
|
+
declare interface SelectorProps<T> extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
227
227
|
label: string;
|
|
228
|
-
value:
|
|
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 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minimalstuff/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "Minimal UI lib for React built on top of Emotion",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test-watch": "vitest",
|
|
32
32
|
"test:ui": "vitest --ui",
|
|
33
33
|
"test:staged": "vitest related --run",
|
|
34
|
-
"release": "release-it",
|
|
34
|
+
"release": "release-it --ci --only-version",
|
|
35
35
|
"storybook": "storybook dev -p 6006",
|
|
36
36
|
"build-storybook": "storybook build"
|
|
37
37
|
},
|