profinansy-ui-lib 2.0.9 → 2.0.11

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.
Files changed (20) hide show
  1. package/dist/assets/king-icon.d.ts +1 -0
  2. package/dist/common.types.d.ts +2 -6
  3. package/dist/components/header/components/CreateArticle/CreateArticle.d.ts +9 -0
  4. package/dist/components/header/components/CreateArticle/CreateArticle.styled.d.ts +4 -0
  5. package/dist/components/header/components/Favourite/Favlourite.d.ts +8 -0
  6. package/dist/components/header/components/Favourite/Favourite.styled.d.ts +3 -0
  7. package/dist/components/header/components/UserAvatar/UserAvatar.d.ts +10 -0
  8. package/dist/components/header/components/UserAvatar/UserAvatar.styled.d.ts +9 -0
  9. package/dist/components/header/{header-link-item → components/header-link-item}/header-link-item.d.ts +1 -1
  10. package/dist/components/header/{header-link-item → components/header-link-item}/header-link-item.styled.d.ts +1 -7
  11. package/dist/components/header/{header-link-item → components/header-link-item}/header-sub-link.d.ts +1 -1
  12. package/dist/components/header/{user-dropdown-menu → components/user-dropdown-menu}/constants.d.ts +1 -1
  13. package/dist/components/header/{user-dropdown-menu → components/user-dropdown-menu}/user-dropdown-menu.d.ts +2 -0
  14. package/dist/components/header/{user-dropdown-menu → components/user-dropdown-menu}/user-dropdown-menu.styled.d.ts +0 -1
  15. package/dist/components/header/constants.d.ts +12 -2
  16. package/dist/components/header/header.styled.d.ts +0 -3
  17. package/dist/components/uikit/Modal/Modal.styled.d.ts +0 -3
  18. package/dist/images/createArticle.d.ts +1 -0
  19. package/dist/index.js +235 -187
  20. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export declare const KingIcon: () => JSX.Element;
@@ -19,19 +19,15 @@ export type HeaderLinkType = {
19
19
  locked?: boolean;
20
20
  subPages: {
21
21
  name: string;
22
- href: string;
22
+ href?: string;
23
23
  locked?: boolean;
24
24
  onlyMobile?: boolean;
25
25
  subLinks?: {
26
26
  name: string;
27
27
  href: string;
28
+ locked?: boolean;
28
29
  }[];
29
30
  }[];
30
31
  /** Страницы, которые не видны в шапке, но которые находятся в разделе **/
31
32
  innerPages?: string[];
32
33
  };
33
- export type SearchBoxTypes = {
34
- open: boolean;
35
- onClose: () => void;
36
- anchorEl: HTMLButtonElement | HTMLDivElement | null;
37
- };
@@ -0,0 +1,9 @@
1
+ import { UserRole } from '../../../../common.types';
2
+ interface IProps {
3
+ userRole: UserRole;
4
+ handleRouteChange: (val: string) => void;
5
+ profinansyHostname: string;
6
+ device: 'mobile' | 'desktop';
7
+ }
8
+ declare const CreateArticle: ({ profinansyHostname, userRole, handleRouteChange, device }: IProps) => JSX.Element;
9
+ export { CreateArticle };
@@ -0,0 +1,4 @@
1
+ export declare const DesktopWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const MobileWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const ModalContent: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const Text: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -0,0 +1,8 @@
1
+ import { UserRole } from '../../../../common.types';
2
+ interface IProps {
3
+ profinansyHostname: string;
4
+ handleRouteChange: (val: string) => void;
5
+ userRole: UserRole;
6
+ }
7
+ declare const Favourite: ({ profinansyHostname, handleRouteChange, userRole }: IProps) => JSX.Element;
8
+ export { Favourite };
@@ -0,0 +1,3 @@
1
+ export declare const FavoritesButton: import("styled-components").StyledComponent<"button", any, {
2
+ isActive: boolean;
3
+ }, never>;
@@ -0,0 +1,10 @@
1
+ import { UserRole } from '../../../../common.types';
2
+ interface IProps {
3
+ userRole: UserRole;
4
+ avatarUrl?: string;
5
+ profinansyHostname: string;
6
+ setOpened: (val: boolean) => void;
7
+ onRouteChange: (val: string) => void;
8
+ }
9
+ declare const UserAvatar: ({ profinansyHostname, avatarUrl, setOpened, onRouteChange, userRole }: IProps) => JSX.Element;
10
+ export { UserAvatar };
@@ -0,0 +1,9 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Avatar: import("styled-components").StyledComponent<"img", any, {}, never>;
3
+ export declare const Status: import("styled-components").StyledComponent<"div", any, {
4
+ isActive: boolean;
5
+ }, never>;
6
+ export declare const Text: import("styled-components").StyledComponent<"span", any, {
7
+ isActive: boolean;
8
+ }, never>;
9
+ export declare const Icon: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { HeaderLinkType } from '../../../common.types';
2
+ import { HeaderLinkType } from '../../../../common.types';
3
3
  type Props = HeaderLinkType & {
4
4
  onRouteChange: (path: string) => void;
5
5
  closeBurger: () => void;
@@ -11,6 +11,7 @@ export declare const HeaderDropdownItem: import("styled-components").StyledCompo
11
11
  blackVersion?: boolean;
12
12
  open: boolean;
13
13
  }, never>;
14
+ export declare const HeaderDropdownText: import("styled-components").StyledComponent<"div", any, {}, never>;
14
15
  export declare const HeaderDropdownItemLink: import("styled-components").StyledComponent<"button", any, {
15
16
  locked?: boolean;
16
17
  active?: boolean;
@@ -19,13 +20,6 @@ export declare const HeaderDropdownItemLink: import("styled-components").StyledC
19
20
  activeColor?: string;
20
21
  open: boolean;
21
22
  }, never>;
22
- export declare const HeaderSubLink: import("styled-components").StyledComponent<"button", any, {
23
- locked?: boolean;
24
- active?: boolean;
25
- mainColor?: string;
26
- blackVersion?: boolean;
27
- activeColor?: string;
28
- }, never>;
29
23
  export declare const HeaderLink: import("styled-components").StyledComponent<"button", any, {
30
24
  active?: boolean;
31
25
  sm?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  type TProps = {
3
3
  name: string;
4
- href: string;
4
+ href?: string;
5
5
  locked?: boolean;
6
6
  onlyMobile?: boolean;
7
7
  subLinks?: {
@@ -1,5 +1,5 @@
1
1
  export declare const getDropdownLinks: (profinansyHostname: string) => {
2
2
  name: string;
3
3
  href: string;
4
- Icon: import("react").FC<import("../../../common.types").IconsInterface>;
4
+ Icon: import("react").FC<import("../../../../common.types").IconsInterface>;
5
5
  }[];
@@ -1,5 +1,7 @@
1
1
  import { FC } from 'react';
2
+ import { UserRole } from '../../../../common.types';
2
3
  type UserDropdownMenuProps = {
4
+ userRole: UserRole;
3
5
  avatarUrl?: string;
4
6
  profinansyHostname: string;
5
7
  onRouteChange: (path: string) => void;
@@ -1,5 +1,4 @@
1
1
  export declare const UserDropdownRoot: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const UserAvatar: import("styled-components").StyledComponent<"img", any, {}, never>;
3
2
  export declare const UserMenuWrapper: import("styled-components").StyledComponent<"nav", any, {}, never>;
4
3
  export declare const UserMenu: import("styled-components").StyledComponent<"nav", any, {
5
4
  blackVersion?: boolean;
@@ -22,11 +22,21 @@ export declare const getClubLinks: (access: boolean, profinansyHostname: string)
22
22
  width: number;
23
23
  height: number;
24
24
  };
25
- subPages: {
25
+ subPages: ({
26
26
  name: string;
27
27
  href: string;
28
28
  locked: boolean;
29
- }[];
29
+ subLinks?: undefined;
30
+ } | {
31
+ name: string;
32
+ locked: boolean;
33
+ subLinks: {
34
+ name: string;
35
+ href: string;
36
+ locked: boolean;
37
+ }[];
38
+ href?: undefined;
39
+ })[];
30
40
  };
31
41
  export declare const guestLinks: (profinansyHostname: string) => HeaderLinkType[];
32
42
  export declare const authorizedLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => ({
@@ -7,9 +7,6 @@ export declare const LinkList: import("styled-components").StyledComponent<"div"
7
7
  }, never>;
8
8
  export declare const HeaderLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
9
9
  export declare const HeaderRight: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const CreateBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const MobileCreateBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- export declare const FavoritesButton: import("styled-components").StyledComponent<"button", any, {}, never>;
13
10
  export declare const SearchBoxWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
14
11
  export declare const BurgerBtn: import("styled-components").StyledComponent<"button", any, {}, never>;
15
12
  export declare const LogoBtn: import("styled-components").StyledComponent<"button", any, {}, never>;
@@ -8,9 +8,6 @@ export declare const Content: import("styled-components").StyledComponent<"div",
8
8
  export declare const Header: import("styled-components").StyledComponent<"div", any, {
9
9
  borderHeader: boolean;
10
10
  }, never>;
11
- export declare const HeaderFirstLine: import("styled-components").StyledComponent<"div", any, {
12
- onlyCloseIcon: boolean;
13
- }, never>;
14
11
  export declare const Title: import("styled-components").StyledComponent<"h2", any, {
15
12
  theme: 'light' | 'dark';
16
13
  titlePosition: 'left' | 'center';
@@ -0,0 +1 @@
1
+ export declare const CreateArticleImage: () => JSX.Element;