indicator-ui 0.1.111 → 0.1.112
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.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/ts/src/types/mixins.d.ts +2 -2
- package/dist/ts/src/ui/Buttons/types/ButtonTypes.d.ts +2 -2
- package/dist/ts/src/ui/Buttons/ui/Button.d.ts +1 -2
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useFormPaginatedSelectField.d.ts +5 -5
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useSelectFieldState.d.ts +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export type Nullable<T> = {
|
|
|
18
18
|
[K in keyof T]: T[K] | null;
|
|
19
19
|
} | null;
|
|
20
20
|
export type Merge<A extends Record<any, any>, B extends Record<any, any>> = Omit<A, keyof B> & B;
|
|
21
|
-
export type AsProps<T extends ElementType> = Merge<React.
|
|
21
|
+
export type AsProps<T extends ElementType, P extends Record<string, any> = {}> = Merge<React.ComponentProps<T>, {
|
|
22
22
|
as?: T;
|
|
23
|
-
}>;
|
|
23
|
+
} & P>;
|
|
24
24
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
-
import { AsProps
|
|
2
|
+
import { AsProps } from "../../../types";
|
|
3
3
|
export type ButtonSizeType = 'small' | 'medium' | 'large' | 'ultra';
|
|
4
4
|
export type ButtonHierarchyType = 'primary' | 'secondary-color' | 'secondary-gray' | 'tertiary-white' | 'tertiary-color' | 'tertiary-gray' | 'link-color' | 'link-black' | 'link-gray' | 'tab-active' | 'tab' | 'link-dark-theme';
|
|
5
5
|
/**
|
|
6
6
|
* Компонент кнопки
|
|
7
7
|
*/
|
|
8
|
-
export type ButtonPropsType<T extends React.ElementType> =
|
|
8
|
+
export type ButtonPropsType<T extends React.ElementType> = AsProps<T, {
|
|
9
9
|
/** Размер кнопки (small, medium, large) */
|
|
10
10
|
size?: ButtonSizeType;
|
|
11
11
|
/** Иерархия (primary, secondary, etc.) */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonPropsType } from '../types';
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const Button: <T extends React.ElementType>(props: ButtonPropsType<T> & React.RefAttributes<React.ElementRef<T>>) => JSX.Element;
|
|
3
|
+
export declare const Button: <T extends React.ElementType = "button">(props: ButtonPropsType<T> & React.RefAttributes<React.ElementRef<T>>) => JSX.Element;
|
package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useFormPaginatedSelectField.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
|
|
|
28
28
|
canSearch: boolean;
|
|
29
29
|
canPaginate: boolean;
|
|
30
30
|
isLoading: boolean;
|
|
31
|
-
fieldState: "
|
|
31
|
+
fieldState: "view" | "search";
|
|
32
32
|
setIsFocus: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
33
|
isShow: boolean;
|
|
34
34
|
getIsShow: () => boolean;
|
|
@@ -40,15 +40,15 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
|
|
|
40
40
|
modalRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
41
41
|
targetRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
42
42
|
otherProps: {
|
|
43
|
-
id?: string | undefined | undefined;
|
|
44
43
|
ref?: React.LegacyRef<HTMLDivElement> | undefined;
|
|
44
|
+
slot?: string | undefined | undefined;
|
|
45
|
+
style?: React.CSSProperties | undefined;
|
|
46
|
+
title?: string | undefined | undefined;
|
|
47
|
+
id?: string | undefined | undefined;
|
|
45
48
|
color?: string | undefined | undefined;
|
|
46
49
|
content?: string | undefined | undefined;
|
|
47
50
|
translate?: "yes" | "no" | undefined | undefined;
|
|
48
51
|
hidden?: boolean | undefined | undefined;
|
|
49
|
-
slot?: string | undefined | undefined;
|
|
50
|
-
style?: React.CSSProperties | undefined;
|
|
51
|
-
title?: string | undefined | undefined;
|
|
52
52
|
key?: React.Key | null | undefined;
|
|
53
53
|
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
54
54
|
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|