@lendi/navbar 7.15.13 → 7.16.0-alpha.0
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/navbar.cjs.d.ts +11 -1
- package/dist/navbar.cjs.js +15 -6
- package/dist/navbar.esm.js +15 -3838
- package/package.json +3 -3
- package/dist/declarations/src/CustomerCommPanel/SidePanel/ChatLink/ChatIcon/index.d.ts +0 -4
- package/dist/declarations/src/CustomerCommPanel/SidePanel/ChatLink/ChatIcon/style.d.ts +0 -2
- package/dist/declarations/src/CustomerCommPanel/SidePanel/ChatLink/index.d.ts +0 -8
- package/dist/declarations/src/CustomerCommPanel/SidePanel/ChatLink/style.d.ts +0 -10
- package/dist/declarations/src/CustomerCommPanel/SidePanel/FullViewChatHeader/ChatHeaderTeamMemberAvatar/index.d.ts +0 -6
- package/dist/declarations/src/CustomerCommPanel/SidePanel/FullViewChatHeader/ChatHeaderTeamMemberAvatar/style.d.ts +0 -10
- package/dist/declarations/src/CustomerCommPanel/SidePanel/FullViewChatHeader/index.d.ts +0 -7
- package/dist/declarations/src/CustomerCommPanel/SidePanel/FullViewChatHeader/style.d.ts +0 -4
- package/dist/declarations/src/CustomerCommPanel/SidePanel/PanelLinks/index.d.ts +0 -7
- package/dist/declarations/src/CustomerCommPanel/SidePanel/TeamMemberInfo/index.d.ts +0 -7
- package/dist/declarations/src/CustomerCommPanel/SidePanel/TeamMemberInfo/style.d.ts +0 -16
- package/dist/declarations/src/CustomerCommPanel/SidePanel/index.d.ts +0 -7
- package/dist/declarations/src/CustomerCommPanel/SidePanel/interface.d.ts +0 -3
- package/dist/declarations/src/CustomerCommPanel/SidePanel/style.d.ts +0 -5
- package/dist/declarations/src/CustomerCommPanel/WithChatView/index.d.ts +0 -9
- package/dist/declarations/src/CustomerCommPanel/WithChatView/style.d.ts +0 -1
- package/dist/declarations/src/CustomerCommPanel/index.d.ts +0 -2
- package/dist/declarations/src/CustomerCommPanel/style.d.ts +0 -1
- package/dist/declarations/src/CustomerCommPanel/types.d.ts +0 -8
- package/dist/declarations/src/GuestNavbar/index.d.ts +0 -2
- package/dist/declarations/src/Header/Dropdown.d.ts +0 -10
- package/dist/declarations/src/Header/Header.d.ts +0 -14
- package/dist/declarations/src/Header/HeaderBase.d.ts +0 -9
- package/dist/declarations/src/Header/MenuLink.d.ts +0 -26
- package/dist/declarations/src/Header/Nav.d.ts +0 -35
- package/dist/declarations/src/Header/NavButtons.d.ts +0 -15
- package/dist/declarations/src/Header/NavDropdown.d.ts +0 -10
- package/dist/declarations/src/Header/PrimaryCTA.d.ts +0 -6
- package/dist/declarations/src/Header/SlideoutMenu.d.ts +0 -29
- package/dist/declarations/src/Header/aussie/AccountMenu.d.ts +0 -16
- package/dist/declarations/src/Header/aussie/ApplyNow.d.ts +0 -10
- package/dist/declarations/src/Header/aussie/CtaNav.d.ts +0 -2
- package/dist/declarations/src/Header/aussie/HamburgerMenu.d.ts +0 -7
- package/dist/declarations/src/Header/aussie/TalkToExpert.d.ts +0 -6
- package/dist/declarations/src/Header/index.d.ts +0 -1
- package/dist/declarations/src/Header/shared.styles.d.ts +0 -21
- package/dist/declarations/src/MultiNavbar/components/HamBurgerMenu/index.d.ts +0 -7
- package/dist/declarations/src/MultiNavbar/components/LeftSidabar/Content/index.d.ts +0 -2
- package/dist/declarations/src/MultiNavbar/components/LeftSidabar/Content/index.style.d.ts +0 -21
- package/dist/declarations/src/MultiNavbar/components/LeftSidabar/FooterCTA/index.d.ts +0 -9
- package/dist/declarations/src/MultiNavbar/components/LeftSidabar/index.d.ts +0 -14
- package/dist/declarations/src/MultiNavbar/components/MultiOptions/index.d.ts +0 -7
- package/dist/declarations/src/MultiNavbar/components/MultiOptions/index.style.d.ts +0 -22
- package/dist/declarations/src/MultiNavbar/index.d.ts +0 -3
- package/dist/declarations/src/MultiNavbar/menuData.d.ts +0 -12
- package/dist/declarations/src/SimpleNavbar/components/CTA/index.d.ts +0 -6
- package/dist/declarations/src/SimpleNavbar/components/CTA/index.style.d.ts +0 -2
- package/dist/declarations/src/SimpleNavbar/components/DesktopAction/index.d.ts +0 -4
- package/dist/declarations/src/SimpleNavbar/components/MobileAction/index.d.ts +0 -4
- package/dist/declarations/src/SimpleNavbar/index.d.ts +0 -3
- package/dist/declarations/src/hooks/useDisableChat.d.ts +0 -1
- package/dist/declarations/src/index.d.ts +0 -6
- package/dist/declarations/src/shared/CommPanelProvider/index.d.ts +0 -18
- package/dist/declarations/src/shared/ErrorProvider/context.d.ts +0 -6
- package/dist/declarations/src/shared/ErrorProvider/provider.d.ts +0 -3
- package/dist/declarations/src/shared/RestrictionProvider/index.d.ts +0 -11
- package/dist/declarations/src/shared/SlideoutMenuBase/SlideoutMenuBase.d.ts +0 -16
- package/dist/declarations/src/shared/components/CTA/DesktopActions/index.d.ts +0 -3
- package/dist/declarations/src/shared/components/CTA/DesktopActions/style.d.ts +0 -1
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/context.d.ts +0 -4
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/index.d.ts +0 -1
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/provider.d.ts +0 -3
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/state.d.ts +0 -6
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/style.d.ts +0 -5
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/index.d.ts +0 -1
- package/dist/declarations/src/shared/components/CTA/LogoutComponent/style.d.ts +0 -1
- package/dist/declarations/src/shared/components/CTA/MobileActions/index.d.ts +0 -3
- package/dist/declarations/src/shared/components/CTA/MobileActions/style.d.ts +0 -1
- package/dist/declarations/src/shared/components/CTA/index.d.ts +0 -15
- package/dist/declarations/src/shared/components/CTA/style.d.ts +0 -7
- package/dist/declarations/src/shared/components/Logo/index.d.ts +0 -7
- package/dist/declarations/src/shared/components/Logo/style.d.ts +0 -10
- package/dist/declarations/src/shared/constants/index.d.ts +0 -20
- package/dist/declarations/src/shared/hooks/useApplication/api/index.d.ts +0 -7
- package/dist/declarations/src/shared/hooks/useApplication/index.d.ts +0 -4
- package/dist/declarations/src/shared/hooks/useApplication/types.d.ts +0 -5
- package/dist/declarations/src/shared/hooks/useDomain.d.ts +0 -3
- package/dist/declarations/src/shared/hooks/withErrorProvider.d.ts +0 -3
- package/dist/declarations/src/shared/hooks/withRestrictionProvider.d.ts +0 -2
- package/dist/declarations/src/shared/styles.d.ts +0 -24
- package/dist/declarations/src/shared/types.d.ts +0 -86
- package/dist/declarations/src/shared/utils/getEnvFromHostname/index.d.ts +0 -2
- package/dist/declarations/src/shared/utils/getURLWithReturn/index.d.ts +0 -2
- package/dist/declarations/src/types.d.ts +0 -37
- package/dist/declarations/src/utils/Analytics/index.d.ts +0 -5
- package/dist/declarations/src/utils/theming.d.ts +0 -1
- package/dist/navbar.cjs.dev.js +0 -3882
- package/dist/navbar.cjs.prod.js +0 -2639
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/navbar",
|
|
3
3
|
"access": "restricted",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.16.0-alpha.0",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"source": "src/index.tsx",
|
|
7
7
|
"main": "dist/navbar.cjs.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@lendi-ui/typography": "^5.13.11-beta.0",
|
|
41
41
|
"@lendi-ui/utils": "^6.0.2-beta.1",
|
|
42
42
|
"@lendi/analytics": "^4.0.0",
|
|
43
|
-
"@lendi/chat": "
|
|
43
|
+
"@lendi/chat": "1.1.0-beta.0",
|
|
44
44
|
"@lendi/lala-utils": "^9.15.1",
|
|
45
45
|
"@lendi/launchdarkly": "0.1.4",
|
|
46
46
|
"@lendi/lendigroup-leads-library": "^2.12.0",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"react": "^17.0.2",
|
|
57
57
|
"styled-components": "^4"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const UnReadDot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const StyledChatIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TeamMember } from '../../../types';
|
|
2
|
-
import { ChatIconProps } from './ChatIcon';
|
|
3
|
-
import { ChatLinKWrapperProps } from './style';
|
|
4
|
-
export interface ChatLinkProps extends ChatIconProps, ChatLinKWrapperProps {
|
|
5
|
-
onChatLinkClick: () => void;
|
|
6
|
-
teamMember?: TeamMember;
|
|
7
|
-
}
|
|
8
|
-
export declare const ChatLink: ({ disabled, onChatLinkClick, teamMember, hasNew, isChatOpen }: ChatLinkProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import KeyboardArrowDown from '@lendi-ui/icon/KeyboardArrowDown';
|
|
2
|
-
import KeyboardArrowRight from '@lendi-ui/icon/KeyboardArrowRight';
|
|
3
|
-
import { ChatOpenProps } from '../interface';
|
|
4
|
-
export interface ChatLinKWrapperProps extends ChatOpenProps {
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ChatLinKWrapper: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, ChatLinKWrapperProps, never>;
|
|
8
|
-
export declare const ChevronUpDownIcon: import("styled-components").StyledComponent<typeof KeyboardArrowDown, import("styled-components").DefaultTheme, ChatOpenProps, never>;
|
|
9
|
-
export declare const ChevronRightIcon: import("styled-components").StyledComponent<typeof KeyboardArrowRight, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
export declare const StyledChevronRightIcon: import("styled-components").StyledComponent<typeof KeyboardArrowRight, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TeamMember } from '../../../../types';
|
|
2
|
-
export interface ChatHeaderTeamMemberAvatarProps {
|
|
3
|
-
teamMember?: TeamMember;
|
|
4
|
-
isBrokerOnline: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const ChatHeaderTeamMemberAvatar: ({ teamMember, isBrokerOnline }: ChatHeaderTeamMemberAvatarProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Face from '@lendi-ui/icon/Face';
|
|
2
|
-
export declare const MobileBrokerInfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const FaceWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const BrokerFace: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
interface StausIconProps {
|
|
6
|
-
isOnline: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const StatusIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, StausIconProps, never>;
|
|
9
|
-
export declare const StyledFace: import("styled-components").StyledComponent<typeof Face, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TeamMember } from '../../../types';
|
|
2
|
-
export interface FullViewChatHeaderProps {
|
|
3
|
-
teamMember?: TeamMember;
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
isOtherUserOnline: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const FullViewChatHeader: ({ onClick, teamMember, isOtherUserOnline }: FullViewChatHeaderProps) => JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import KeyboardArrowLeft from '@lendi-ui/icon/KeyboardArrowLeft';
|
|
2
|
-
export declare const StickyHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const TeamMemberBodyWrapper: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("@lendi-ui/typography").BodyOptions, never>;
|
|
4
|
-
export declare const ChevronLeftIcon: import("styled-components").StyledComponent<typeof KeyboardArrowLeft, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TeamMember } from '../../../types';
|
|
3
|
-
export interface TeamMemberInfoProps {
|
|
4
|
-
teamMember?: TeamMember;
|
|
5
|
-
isOtherUserOnline: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const TeamMemberInfo: React.MemoExoticComponent<({ teamMember, isOtherUserOnline }: TeamMemberInfoProps) => JSX.Element>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Face from '@lendi-ui/icon/Face';
|
|
3
|
-
export declare const HeadWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const BrokerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const BrokerImgWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const BrokerFace: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const BrokerDetail: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const BrokerName: import("styled-components").StyledComponent<import("react").FC<import("@lendi-ui/typography").HeadingProps>, import("styled-components").DefaultTheme, import("@lendi-ui/typography").HeadingProps, never>;
|
|
9
|
-
export declare const StyledFace: import("styled-components").StyledComponent<typeof Face, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
interface StausIconProps {
|
|
11
|
-
isOnline: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const StatusIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StausIconProps, never>;
|
|
14
|
-
export declare const StyledBrokerFaces: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
-
export declare const StyledBody: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("@lendi-ui/typography").BodyOptions, never>;
|
|
16
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TeamMemberInfoProps } from './TeamMemberInfo';
|
|
2
|
-
import { PanelLinksProps } from './PanelLinks';
|
|
3
|
-
import { ChatLinkProps } from './ChatLink';
|
|
4
|
-
export interface SidePanelProps extends TeamMemberInfoProps, PanelLinksProps, ChatLinkProps {
|
|
5
|
-
hasChat: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const SidePanel: ({ teamMember, broker, store, hasChat, isChatOpen, onChatLinkClick, disabled, isOtherUserOnline, hasNew, }: SidePanelProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const ULOptions: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const ItemWrapper: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const LinkWrapper: import("styled-components").StyledComponent<(props: import("@lendi-ui/typography").LinkProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const BodyWrapper: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("@lendi-ui/typography").BodyOptions, never>;
|
|
5
|
-
export declare const ChatBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UserType } from '../../types';
|
|
2
|
-
export interface WithChatViewProps {
|
|
3
|
-
legacySupport: boolean;
|
|
4
|
-
userType: UserType;
|
|
5
|
-
isOtherUserOnline: boolean;
|
|
6
|
-
hasNew: boolean;
|
|
7
|
-
onException: (e: Error) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const WithChatView: ({ legacySupport, userType, isOtherUserOnline, hasNew, onException, }: WithChatViewProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledClose: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CommPanelWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
export interface DropdownProps extends GlobalProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
align?: 'left' | 'right';
|
|
6
|
-
minWidth?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const DropdownComponent: ({ children, align, minWidth, className, ...props }: DropdownProps, ref: React.Ref<HTMLDivElement>) => JSX.Element;
|
|
10
|
-
export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NavElements } from './Nav';
|
|
3
|
-
import { ChatProps } from '../shared/CommPanelProvider';
|
|
4
|
-
export interface HeaderProps {
|
|
5
|
-
/** Handler for apply now button clicks */
|
|
6
|
-
handleApplyNow: () => void;
|
|
7
|
-
/** Handler for logout */
|
|
8
|
-
onLogout: () => void;
|
|
9
|
-
/** Structure for building out the nav.
|
|
10
|
-
* See canvas tab for full structure
|
|
11
|
-
* */
|
|
12
|
-
navOptions?: NavElements[];
|
|
13
|
-
}
|
|
14
|
-
export declare const Header: React.FC<HeaderProps & Pick<ChatProps, "topOffset"> & (import("..").SimpleNavbarProps | import("..").MultiNavbarProps)>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
export declare const HeaderPaddingSmall = 10;
|
|
4
|
-
export declare const HeaderPaddingLarge = 24;
|
|
5
|
-
export interface HeaderBaseProps extends GlobalProps {
|
|
6
|
-
navSlot: React.ReactNode;
|
|
7
|
-
ctaSlot: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const HeaderBase: ({ navSlot, ctaSlot, ...props }: HeaderBaseProps) => JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
interface MenuLinkProps extends GlobalProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
href: string;
|
|
6
|
-
background?: 'dark' | 'darker';
|
|
7
|
-
/** Use when indicating if the user is on the current page */
|
|
8
|
-
isActive?: boolean;
|
|
9
|
-
/** When the link is external this adds the appropriate icon and attributes */
|
|
10
|
-
isExternal?: boolean;
|
|
11
|
-
/** Used for analytics purposes */
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @todo Line-height: prefer to use token but the current one is not accessible here
|
|
16
|
-
* @todo Helper functions: getTypography you have to specify each property of the font you need should this be simpler
|
|
17
|
-
* @todo Colors: Access the color palette or update to semantic values
|
|
18
|
-
*/
|
|
19
|
-
export declare const MenuItemStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
|
-
export declare const MenuLink: ({ children, href, background, isActive, isExternal, onClick, ...props }: MenuLinkProps) => JSX.Element;
|
|
21
|
-
export interface MenuButtonProps extends GlobalProps {
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
onClick: (event: React.MouseEvent) => void;
|
|
24
|
-
}
|
|
25
|
-
export declare const MenuButton: ({ children, onClick, ...props }: MenuButtonProps) => JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
export interface NavCommonProps {
|
|
4
|
-
hasRestriction?: boolean;
|
|
5
|
-
isActive?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface NavItemProps extends NavCommonProps {
|
|
8
|
-
label: string;
|
|
9
|
-
link?: string | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface NavElements extends NavItemProps {
|
|
12
|
-
children?: NavSubItems[];
|
|
13
|
-
minDropdownWidth?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface NavSubItems extends NavCommonProps {
|
|
16
|
-
label: string;
|
|
17
|
-
link: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const NAV_MENU_ITEMS: NavElements[];
|
|
20
|
-
interface NavTypes {
|
|
21
|
-
isSlideout?: boolean;
|
|
22
|
-
isRestricted?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare type NavProps = GlobalProps & NavTypes & {
|
|
25
|
-
navOptions: NavElements[];
|
|
26
|
-
};
|
|
27
|
-
export interface MenuItemProps {
|
|
28
|
-
label: string;
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
}
|
|
31
|
-
export declare const StyledChildrenWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
32
|
-
isOpen?: boolean | undefined;
|
|
33
|
-
}, never>;
|
|
34
|
-
export declare const Nav: ({ navOptions, isSlideout, isRestricted, ...props }: NavProps) => JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
export interface NavButtonProps extends GlobalProps {
|
|
4
|
-
children: string;
|
|
5
|
-
isOpen?: boolean;
|
|
6
|
-
onClick: (event: React.MouseEvent) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const NavButton: ({ children, isOpen, onClick, ...props }: NavButtonProps) => JSX.Element;
|
|
9
|
-
export interface NavLinkProps extends GlobalProps {
|
|
10
|
-
children: string;
|
|
11
|
-
href: string;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
isActive?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const NavLink: ({ children, href, onClick, isActive, ...props }: NavLinkProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
export interface NavDropdownProps extends GlobalProps {
|
|
4
|
-
label: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
onClick?: (e: React.MouseEvent, isOpen: boolean) => void;
|
|
7
|
-
align?: 'left' | 'right';
|
|
8
|
-
minDropdownWidth?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const NavDropdown: ({ label, children, onClick, minDropdownWidth, align, ...props }: NavDropdownProps) => JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Application } from '../shared/hooks/useApplication';
|
|
2
|
-
export interface PrimaryCTAProps {
|
|
3
|
-
handleApplyNowClick: () => void;
|
|
4
|
-
application?: Application;
|
|
5
|
-
}
|
|
6
|
-
export declare const PrimaryCTA: ({ application, handleApplyNowClick }: PrimaryCTAProps) => JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { GlobalProps } from '@lendi-ui/commons/utils';
|
|
3
|
-
export { useSlideoutMenu } from '../shared/SlideoutMenuBase/SlideoutMenuBase';
|
|
4
|
-
export declare const headerTokens: {
|
|
5
|
-
size: {
|
|
6
|
-
height: {
|
|
7
|
-
navbar: {
|
|
8
|
-
default: {
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
sm: {
|
|
12
|
-
value: string;
|
|
13
|
-
};
|
|
14
|
-
md: {
|
|
15
|
-
value: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export interface SlideoutMenuProps extends GlobalProps {
|
|
22
|
-
title: string;
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
isOpen: boolean;
|
|
25
|
-
handleClose: () => void;
|
|
26
|
-
hasTitleDivider?: boolean;
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const SlideoutMenu: ({ title, children, className, isOpen, hasTitleDivider, handleClose, ...props }: SlideoutMenuProps) => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PrimaryCTAProps } from '../PrimaryCTA';
|
|
2
|
-
import { SessionState } from '@lendi/lala-react';
|
|
3
|
-
import { TalkToExpertProps } from './TalkToExpert';
|
|
4
|
-
export interface RestrictionProps {
|
|
5
|
-
isRestricted: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface AuthenticationProps {
|
|
8
|
-
session?: SessionState;
|
|
9
|
-
}
|
|
10
|
-
interface SignOutProps {
|
|
11
|
-
onLogout: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare type AccountProps = AuthenticationProps & RestrictionProps & PrimaryCTAProps & TalkToExpertProps & SignOutProps;
|
|
14
|
-
export declare const AccountDropdown: ({ isRestricted, application, session, handleApplyNowClick, teamMember, openCommPanel, onLogout, }: AccountProps) => JSX.Element;
|
|
15
|
-
export declare const AccountSlideoutMenu: ({ isRestricted, session, application, teamMember, handleApplyNowClick, openCommPanel, onLogout, }: AccountProps) => JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @todo size: connect this to the button size type in UI folder
|
|
3
|
-
*/
|
|
4
|
-
interface ApplyNowProps {
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
width?: string;
|
|
7
|
-
size?: 'lg' | 'md' | 'sm' | 'xs';
|
|
8
|
-
}
|
|
9
|
-
export declare const ApplyNowButton: ({ onClick, width, size }: ApplyNowProps) => JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TalkToExpertProps } from './TalkToExpert';
|
|
2
|
-
import { NavProps } from '../Nav';
|
|
3
|
-
import { PrimaryCTAProps } from '../PrimaryCTA';
|
|
4
|
-
import { AuthenticationProps, RestrictionProps } from './AccountMenu';
|
|
5
|
-
declare type HamburgerMenuProps = PrimaryCTAProps & TalkToExpertProps & AuthenticationProps;
|
|
6
|
-
export declare const HamburgerMenu: ({ isRestricted, navOptions, ...props }: HamburgerMenuProps & RestrictionProps & NavProps) => JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Header';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const LargeTweakpoint = "67rem";
|
|
2
|
-
export declare const Px: import("styled-components").FlattenSimpleInterpolation;
|
|
3
|
-
export declare const Py: import("styled-components").FlattenSimpleInterpolation;
|
|
4
|
-
export declare const MenuPadding: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const MenuPaddingAlt: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const listReset: import("styled-components").FlattenSimpleInterpolation;
|
|
7
|
-
export declare const buttonReset: import("styled-components").FlattenSimpleInterpolation;
|
|
8
|
-
export declare const insetFocusVisible: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
9
|
-
export declare const focusVisible: import("styled-components").FlattenSimpleInterpolation;
|
|
10
|
-
export declare const StyledHR: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
export declare const HideFromLarge: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
-
export declare const HideFromTweakLarge: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export declare const ShowFromTweakLarge: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
-
export declare const ShowFromLarge: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
-
export declare const HideFromMedium: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const ShowFromMedium: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const ShowFromSmall: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
-
export declare const HideFromSmall: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
-
export declare const ShowAtSmallOnly: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
-
export declare const ShowAtMediumOnly: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
-
export declare const SrOnlySpan: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface HamBurgerMenuProps {
|
|
2
|
-
toggleSidebar: (leftSidebarState: boolean) => void;
|
|
3
|
-
leftSidebarState: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const HamBurgerMenu: ({ toggleSidebar, leftSidebarState }: HamBurgerMenuProps) => JSX.Element;
|
|
6
|
-
export declare const HamBurgerWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export default HamBurgerMenu;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ArrowDropDown from '@lendi-ui/icon/ArrowDropDown';
|
|
3
|
-
export declare const ITEM_HEIGHT = "40px";
|
|
4
|
-
interface RightArrowProps {
|
|
5
|
-
shouldRotate: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface AccordionProps {
|
|
8
|
-
isVisible: boolean;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare const ItemsWrapper: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
-
export declare const Item: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export declare const RightArrow: import("styled-components").StyledComponent<typeof ArrowDropDown, import("styled-components").DefaultTheme, {
|
|
14
|
-
color: "secondary.500";
|
|
15
|
-
} & RightArrowProps, "color">;
|
|
16
|
-
export declare const Accordion: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, AccordionProps, never>;
|
|
17
|
-
export declare const SubItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
-
export declare const ItemLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
-
export declare const SubItemLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
-
export declare const ListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface FooterCTAProps {
|
|
2
|
-
isAuthenticated: boolean;
|
|
3
|
-
continueURL: string;
|
|
4
|
-
onLogout: () => void;
|
|
5
|
-
showContinueAction?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const FooterCTA: ({ isAuthenticated, continueURL, onLogout, showContinueAction, }: FooterCTAProps) => JSX.Element;
|
|
8
|
-
export declare const FooterAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
|
|
9
|
-
export default FooterCTA;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from '../../menuData';
|
|
2
|
-
export interface LeftSidebarProps {
|
|
3
|
-
openSidebar: boolean;
|
|
4
|
-
closeSidebar: () => void;
|
|
5
|
-
isAuthenticated: boolean;
|
|
6
|
-
onLogout: () => void;
|
|
7
|
-
continueURL: string;
|
|
8
|
-
showContinueAction?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface MenuProps {
|
|
11
|
-
menuOptions: MenuItem[];
|
|
12
|
-
}
|
|
13
|
-
declare const LeftSidebar: ({ openSidebar, closeSidebar, isAuthenticated, onLogout, continueURL, showContinueAction, menuOptions, }: LeftSidebarProps & MenuProps) => JSX.Element;
|
|
14
|
-
export default LeftSidebar;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import ExpandMore from '@lendi-ui/icon/ExpandMore';
|
|
2
|
-
export interface TransparentProps {
|
|
3
|
-
isTransparent?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface ExpandMoreProps {
|
|
6
|
-
isSelected: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const PanelLink: import("styled-components").StyledComponent<(props: import("@lendi-ui/typography").LinkProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
export declare const PanelButton: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
|
|
10
|
-
export declare const LinksGroup: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
export declare const LinkItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
-
export declare const HeadingWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export declare const HeadingLink: import("styled-components").StyledComponent<(props: import("@lendi-ui/typography").LinkProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
-
export declare const DisplayPanel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
-
export declare const Bar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TransparentProps & ExpandMoreProps, never>;
|
|
16
|
-
export declare const UnOrderedList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const ListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
-
export declare const LinkOption: import("styled-components").StyledComponent<(props: import("@lendi-ui/typography").LinkProps) => JSX.Element, import("styled-components").DefaultTheme, TransparentProps, never>;
|
|
19
|
-
export declare const ExpandMoreWrapper: import("styled-components").StyledComponent<typeof ExpandMore, import("styled-components").DefaultTheme, TransparentProps & ExpandMoreProps, never>;
|
|
20
|
-
export declare const BarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
-
export declare const Label: any;
|
|
22
|
-
export declare const OptionsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface LinkProps {
|
|
2
|
-
label: string;
|
|
3
|
-
link?: string | undefined;
|
|
4
|
-
}
|
|
5
|
-
export interface MenuItem extends LinkProps {
|
|
6
|
-
children: MenuSubItem[];
|
|
7
|
-
}
|
|
8
|
-
export interface MenuSubItem {
|
|
9
|
-
label: string;
|
|
10
|
-
link: string | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare const MULTI_MENU_OPTIONS: MenuItem[];
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const TalkExpertAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
|
|
2
|
-
export declare const ContinueAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CTAProps } from '../../../shared/components/CTA';
|
|
2
|
-
import { UnReadProp } from '../CTA';
|
|
3
|
-
declare const RenderDesktopAction: ({ dashboardVariant, isAuthenticated, continueURL, showContinueAction, showTalkToExpertCta, showBookanAppointmentCta, openCommPanel, teamMember, hasUnreadMessages, utmCampaign, }: CTAProps & UnReadProp) => JSX.Element;
|
|
4
|
-
export default RenderDesktopAction;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CTAProps } from '../../../shared/components/CTA';
|
|
2
|
-
import { UnReadProp } from '../CTA';
|
|
3
|
-
declare const RenderMobileAction: ({ isAuthenticated, continueURL, teamMember, openCommPanel, showContinueAction, showTalkToExpertCta, hasUnreadMessages, utmCampaign, }: CTAProps & UnReadProp) => JSX.Element;
|
|
4
|
-
export default RenderMobileAction;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useDisableChat: () => boolean;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './SimpleNavbar';
|
|
2
|
-
export * from './GuestNavbar';
|
|
3
|
-
export * from './MultiNavbar';
|
|
4
|
-
export * from './Header';
|
|
5
|
-
export * from './shared/types';
|
|
6
|
-
export { CustomerChatBootstrapperProvider as CommPanelProvider, useBootstrappedChatState as useCommPanel, } from '@lendi/chat';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BreakpointValueMap, BreakpointValue } from '@lendi-ui/breakpoint';
|
|
3
|
-
import { TeamMember } from '../types';
|
|
4
|
-
import { SlideoutMenuProps } from '../SlideoutMenuBase/SlideoutMenuBase';
|
|
5
|
-
export interface ChatProps {
|
|
6
|
-
isCommPanelOpen: boolean;
|
|
7
|
-
hasUnread: boolean;
|
|
8
|
-
closeCommPanel: () => void;
|
|
9
|
-
openCommPanel: () => void;
|
|
10
|
-
latestTeamMember?: TeamMember;
|
|
11
|
-
topOffset?: BreakpointValue<string> | BreakpointValueMap<string>;
|
|
12
|
-
}
|
|
13
|
-
export interface CommPanelWrapperProps extends SlideoutMenuProps {
|
|
14
|
-
toTheTop?: boolean;
|
|
15
|
-
isCommPanelOpen?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const CommPanelWrapper: import("styled-components").StyledComponent<({ children, className, isOpen, handleClose, topOffset, ...props }: SlideoutMenuProps) => JSX.Element, import("styled-components").DefaultTheme, CommPanelWrapperProps, never>;
|
|
18
|
-
export declare const withCommPanel: <P extends object>(Component: React.ComponentType<P>) => React.FC<P>;
|