profinansy-ui-lib 3.1.60 → 3.1.62
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/common.types.d.ts +4 -0
- package/dist/components/uikit/Hint/Hint.d.ts +1 -1
- package/dist/components/uikit/Popup/Popup.d.ts +1 -1
- package/dist/hooks/useActivePage.d.ts +1 -1
- package/dist/index.js +14 -14
- package/dist/urls/products/investments/investments.d.ts +1 -0
- package/package.json +1 -1
package/dist/common.types.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export type HeaderLinkType = {
|
|
|
36
36
|
subPages: THeaderLinkSubPage[];
|
|
37
37
|
/** Страницы, которые не видны в шапке, но которые находятся в разделе **/
|
|
38
38
|
innerPages?: string[];
|
|
39
|
+
/** Нужно ли учитывать query при проверки активности. Иногда нужно, когда есть подстраницы с табами **/
|
|
40
|
+
withQuery?: boolean;
|
|
39
41
|
};
|
|
40
42
|
export type THeaderLinkSubPage = {
|
|
41
43
|
name: string;
|
|
@@ -48,4 +50,6 @@ export type THeaderLinkSubPage = {
|
|
|
48
50
|
subPages?: THeaderLinkSubPage[];
|
|
49
51
|
innerPages?: string[];
|
|
50
52
|
description?: string;
|
|
53
|
+
/** Нужно ли учитывать query при проверки активности. Иногда нужно, когда есть подстраницы с табами **/
|
|
54
|
+
withQuery?: boolean;
|
|
51
55
|
};
|
|
@@ -43,7 +43,7 @@ export declare function useHint({ placement }?: HintOptions): {
|
|
|
43
43
|
};
|
|
44
44
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
45
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
47
47
|
active?: boolean;
|
|
48
48
|
selected?: boolean;
|
|
49
49
|
}) => Record<string, unknown>;
|
|
@@ -47,7 +47,7 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
47
47
|
};
|
|
48
48
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
49
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
51
51
|
active?: boolean;
|
|
52
52
|
selected?: boolean;
|
|
53
53
|
}) => Record<string, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeaderLinkType, THeaderLinkSubPage } from '../common.types';
|
|
2
|
-
export declare const useActivePage: (href: string, subPages?: THeaderLinkSubPage[], innerPages?: HeaderLinkType['innerPages']) => {
|
|
2
|
+
export declare const useActivePage: (href: string, subPages?: THeaderLinkSubPage[], innerPages?: HeaderLinkType['innerPages'], withQuery?: boolean) => {
|
|
3
3
|
isActive: boolean;
|
|
4
4
|
currentPathname: any;
|
|
5
5
|
currentHref: any;
|