@selfdecode/sd-component-library 2.44.6 → 2.44.9
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/lib/components/buttons/logos/logo/interfaces.d.ts +1 -1
- package/lib/components/buttons/logos/navbar-logo/interfaces.d.ts +1 -1
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-mobile-v1/partials/icon-buttons/icon-buttons.d.ts +3 -3
- package/lib/components/complex/navbar/partials/navbar-v2/partials/interfaces.d.ts +4 -0
- package/lib/components/complex/updated-navbar/constants.d.ts +59 -0
- package/lib/components/complex/updated-navbar/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/interfaces.d.ts +6 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/interfaces.d.ts +4 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/interfaces.d.ts +14 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/updated-menu-box.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/interfaces.d.ts +11 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/updated-menu-row.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/interfaces.d.ts +11 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/updated-navbar-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/interfaces.d.ts +4 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/v2-to-legacy-switch-desktop.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/updated-navbar-desktop.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/interfaces.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/interfaces.d.ts +5 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/unfolded-navbar-container.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/interfaces.d.ts +5 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/updated-navbar-folded.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/interfaces.d.ts +6 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/interfaces.d.ts +11 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/item-row.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/interfaces.d.ts +8 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/primary-folded-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/interfaces.d.ts +10 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/secondary-folded-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/interfaces.d.ts +9 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/unfolded-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/interfaces.d.ts +9 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/unfolded-item-row.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/updated-navbar-navigation.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/interfaces.d.ts +6 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/updated-navbar-search.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/interfaces.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/v2-to-legacy-switch-mobile.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/updated-navbar-mobile.d.ts +3 -0
- package/lib/components/complex/updated-navbar/updated-navbar.d.ts +3 -0
- package/lib/components/dividers/divider/interfaces.d.ts +4 -0
- package/lib/components/inputs/search-input/presentational/interfaces.d.ts +16 -2
- package/lib/components/interfaces.d.ts +5 -5
- package/lib/components/links/link/interfaces.d.ts +6 -2
- package/lib/components/links/primary-link/interfaces.d.ts +1 -6
- package/lib/components/switches/toggle-switch/index.d.ts +1 -0
- package/lib/components/switches/toggle-switch/interfaces.d.ts +4 -0
- package/lib/components/switches/toggle-switch/toggle-switch.d.ts +3 -0
- package/lib/components/texts/base-text/interfaces.d.ts +2 -2
- package/lib/components/utils/anchor/interfaces.d.ts +2 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "../../button";
|
|
2
|
-
export declare type BaseButtonProps = Pick<ButtonProps, "variant" | "children" | "bg" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
2
|
+
export declare type BaseButtonProps = Pick<ButtonProps, "variant" | "children" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "minWidth">;
|
|
3
3
|
export interface LogoProps extends BaseButtonProps {
|
|
4
4
|
}
|
|
5
5
|
export declare type WrapperLogoProps = Pick<LogoProps, "bg" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LogoProps } from "../logo";
|
|
2
|
-
export declare type NavbarLogoProps = Pick<LogoProps, "bg" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
2
|
+
export declare type NavbarLogoProps = Pick<LogoProps, "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "minWidth">;
|
|
@@ -4,6 +4,6 @@ export declare const IconButton: React.FC<IconButtonProps>;
|
|
|
4
4
|
export declare const ShortArrowIconButton: React.FC<ShortArrowIconButtonProps>;
|
|
5
5
|
export declare const DropDownIconButton: React.FC<BasicButtonProps>;
|
|
6
6
|
export declare const DropUpIconButton: React.FC<BasicButtonProps>;
|
|
7
|
-
export declare const SearchIconButton: React.FC<
|
|
8
|
-
export declare const CrossIconButton: React.FC<
|
|
9
|
-
export declare const HamburgerIconButton: React.FC<
|
|
7
|
+
export declare const SearchIconButton: React.FC<Omit<IconButtonProps, "IconComponent">>;
|
|
8
|
+
export declare const CrossIconButton: React.FC<Omit<IconButtonProps, "IconComponent" | "iconHeight">>;
|
|
9
|
+
export declare const HamburgerIconButton: React.FC<Omit<IconButtonProps, "IconComponent">>;
|
|
@@ -8,6 +8,10 @@ export declare type NavItem = {
|
|
|
8
8
|
* Optional mobile title
|
|
9
9
|
*/
|
|
10
10
|
mobileTitle?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional title in toggled state.
|
|
13
|
+
*/
|
|
14
|
+
toggledTitle?: string;
|
|
11
15
|
/**
|
|
12
16
|
* The links that should be displayed when:
|
|
13
17
|
* - in desktop view, the user hovers this NavItem
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const professionalToolsItem: {
|
|
3
|
+
title: string;
|
|
4
|
+
items: {
|
|
5
|
+
title: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
export declare const legacyToolsItem: {
|
|
10
|
+
title: string;
|
|
11
|
+
items: ({
|
|
12
|
+
title: string;
|
|
13
|
+
url: string;
|
|
14
|
+
isInternal: boolean;
|
|
15
|
+
} | {
|
|
16
|
+
title: string;
|
|
17
|
+
url: string;
|
|
18
|
+
items?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
title: string;
|
|
21
|
+
items: {
|
|
22
|
+
title: string;
|
|
23
|
+
url: string;
|
|
24
|
+
isInternal: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
url?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
export declare const myAccountItem: {
|
|
30
|
+
Icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
mobileTitle: string;
|
|
34
|
+
items: ({
|
|
35
|
+
title: string;
|
|
36
|
+
url: string;
|
|
37
|
+
isInternal?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
title: string;
|
|
40
|
+
url: string;
|
|
41
|
+
isInternal: boolean;
|
|
42
|
+
})[];
|
|
43
|
+
};
|
|
44
|
+
export declare const regularUserItems: ({
|
|
45
|
+
title: string;
|
|
46
|
+
url: string;
|
|
47
|
+
items?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
title: string;
|
|
50
|
+
items: ({
|
|
51
|
+
title: string;
|
|
52
|
+
url: string;
|
|
53
|
+
} | {
|
|
54
|
+
url: string;
|
|
55
|
+
isInternal: boolean;
|
|
56
|
+
title: string;
|
|
57
|
+
})[];
|
|
58
|
+
url?: undefined;
|
|
59
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbar } from "./updated-navbar";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavbarProps } from "../navbar/presentational/interfaces";
|
|
2
|
+
export interface UpdatedNavbarProps extends Pick<NavbarProps, "history" | "searchValue" | "onSearch" | "searchResults" | "onClickSearch" | "langCodes" | "selectedLangCode" | "onLanguageSwitch" | "hideSearch"> {
|
|
3
|
+
isProfessional?: boolean;
|
|
4
|
+
isV2User?: boolean;
|
|
5
|
+
isOnLegacy?: boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbarDesktop } from "./updated-navbar-desktop";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedMenuBox } from "./updated-menu-box";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UpdatedMenuRowProps } from "../updated-menu-row/interfaces";
|
|
2
|
+
export interface ProMenuBoxProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
isSubmenu?: boolean;
|
|
5
|
+
rows: UpdatedMenuRowProps[];
|
|
6
|
+
width?: string | string[];
|
|
7
|
+
maxWidth?: string | string[];
|
|
8
|
+
minWidth?: string | string[];
|
|
9
|
+
/**
|
|
10
|
+
* Position props.
|
|
11
|
+
*/
|
|
12
|
+
top?: string | string[];
|
|
13
|
+
right?: string | string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedMenuRow } from "./updated-menu-row";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbarItem } from "./updated-navbar-item";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UpdatedMenuRowProps } from "../updated-menu-row/interfaces";
|
|
2
|
+
import { FC, SVGProps } from "react";
|
|
3
|
+
export interface ProNavbarItemProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
6
|
+
items?: UpdatedMenuRowProps[];
|
|
7
|
+
isLast?: boolean;
|
|
8
|
+
menuBoxRight?: string | string[];
|
|
9
|
+
menuBoxWidth?: string | string[];
|
|
10
|
+
menuBoxMaxWidth?: string | string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { V2ToLegacySwitchDesktop } from "./v2-to-legacy-switch-desktop";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbarMobile } from "./updated-navbar-mobile";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UnfoldedNavbarContainer } from "./unfolded-navbar-container";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbarFolded } from "./updated-navbar-folded";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbarNavigation } from "./updated-navbar-navigation";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UpdatedNavbarMobileProps } from "../../interfaces";
|
|
2
|
+
import { UnfoldedNavbarContainerProps } from "../unfolded-navbar-container/interfaces";
|
|
3
|
+
export interface UpdatedNavbarNavigationProps extends Pick<UpdatedNavbarMobileProps, "isOnLegacy" | "onSwitchClick" | "isProfessional" | "isV2User" | "selectedLangCode" | "langCodes" | "onLanguageSwitch" | "hideSearch">, Pick<UnfoldedNavbarContainerProps, "onMaskClick"> {
|
|
4
|
+
hideNavigation: () => void;
|
|
5
|
+
showSearch: () => void;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ItemRow } from "./item-row";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SxProps } from "rebass";
|
|
2
|
+
import { FC, SVGProps } from "react";
|
|
3
|
+
export interface ItemRowProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
iconDirection?: "up" | "down";
|
|
10
|
+
sx?: SxProps["sx"];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PrimaryFoldedItem } from "./primary-folded-item";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
|
|
2
|
+
export interface PrimaryFoldedItemProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
isInternal?: boolean;
|
|
6
|
+
items?: UpdatedMenuRowProps[];
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SecondaryFoldedItem } from "./secondary-folded-item";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, SVGProps } from "react";
|
|
2
|
+
import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
|
|
3
|
+
export interface SecondaryFoldedItemProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
7
|
+
items?: UpdatedMenuRowProps[];
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
mt?: string | string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UnfoldedItem } from "./unfolded-item";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
|
|
2
|
+
import { FC, SVGProps } from "react";
|
|
3
|
+
export interface UnfoldedItemProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
toggledTitle?: string;
|
|
6
|
+
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
7
|
+
items?: UpdatedMenuRowProps[];
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UnfoldedItemRow } from "./unfolded-item-row";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
|
|
2
|
+
export interface UnfoldedItemRowProps {
|
|
3
|
+
title: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
isInternal?: boolean;
|
|
6
|
+
items?: UpdatedMenuRowProps[];
|
|
7
|
+
isUnfolded?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdatedNavbarSearch } from "./updated-navbar-search";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavbarProps } from "../../../../../navbar/presentational/interfaces";
|
|
2
|
+
import { UnfoldedNavbarContainerProps } from "../unfolded-navbar-container/interfaces";
|
|
3
|
+
export interface UpdatedNavbarSearchProps extends Pick<NavbarProps, "searchResults" | "searchValue" | "onSearch">, Pick<UnfoldedNavbarContainerProps, "onMaskClick"> {
|
|
4
|
+
hideSearch: () => void;
|
|
5
|
+
showNavigation: () => void;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { V2ToLegacySwitchMobile } from "./v2-to-legacy-switch-mobile";
|
|
@@ -27,6 +27,10 @@ export interface SearchInputProps extends BaseInputProps {
|
|
|
27
27
|
* should be placed when the X icon is not visible (hideX=true)
|
|
28
28
|
*/
|
|
29
29
|
searchRight?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Bottom offset of the search icon.
|
|
32
|
+
*/
|
|
33
|
+
searchBottom?: string;
|
|
30
34
|
/**
|
|
31
35
|
* The array of results
|
|
32
36
|
*/
|
|
@@ -39,6 +43,16 @@ export interface SearchInputProps extends BaseInputProps {
|
|
|
39
43
|
* Sx prop of the container.
|
|
40
44
|
*/
|
|
41
45
|
containerSx?: SxProps["sx"];
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Color of the x icon.
|
|
48
|
+
*/
|
|
49
|
+
xColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Bottom offset of x icon.
|
|
52
|
+
*/
|
|
53
|
+
xBottom?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Container max width.
|
|
56
|
+
*/
|
|
57
|
+
maxWidth?: string | string[];
|
|
44
58
|
}
|
|
@@ -7,23 +7,23 @@ export interface BaseComponentProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* The margin property
|
|
9
9
|
*/
|
|
10
|
-
m?: string[];
|
|
10
|
+
m?: string | string[];
|
|
11
11
|
/**
|
|
12
12
|
* The margin property top
|
|
13
13
|
*/
|
|
14
|
-
mt?: string[];
|
|
14
|
+
mt?: string | string[];
|
|
15
15
|
/**
|
|
16
16
|
* The margin property right
|
|
17
17
|
*/
|
|
18
|
-
mr?: string[];
|
|
18
|
+
mr?: string | string[];
|
|
19
19
|
/**
|
|
20
20
|
* The margin property bottom
|
|
21
21
|
*/
|
|
22
|
-
mb?: string[];
|
|
22
|
+
mb?: string | string[];
|
|
23
23
|
/**
|
|
24
24
|
* The margin property left
|
|
25
25
|
*/
|
|
26
|
-
ml?: string[];
|
|
26
|
+
ml?: string | string[];
|
|
27
27
|
/**
|
|
28
28
|
* Z-index of the component
|
|
29
29
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface LinkProps extends
|
|
1
|
+
import { LinkProps as RebassLinkProps } from "rebass";
|
|
2
|
+
export interface LinkProps extends RebassLinkProps {
|
|
3
3
|
/**
|
|
4
4
|
* The text of the link
|
|
5
5
|
*/
|
|
@@ -18,4 +18,8 @@ export interface LinkProps extends BaseComponentProps {
|
|
|
18
18
|
* Color of the text in the link
|
|
19
19
|
*/
|
|
20
20
|
color?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to block auto-translation for link content.
|
|
23
|
+
*/
|
|
24
|
+
dontTranslate?: boolean;
|
|
21
25
|
}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { LinkProps } from "../link";
|
|
2
|
-
export declare type PrimaryLinkProps =
|
|
3
|
-
/**
|
|
4
|
-
* Default value: ["#9E1CB5"] (the same as ["purple"] and ["cl_purple"])
|
|
5
|
-
*/
|
|
6
|
-
color?: LinkProps["color"];
|
|
7
|
-
};
|
|
2
|
+
export declare type PrimaryLinkProps = Omit<LinkProps, "variant">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleSwitch } from "./toggle-switch";
|
|
@@ -44,11 +44,11 @@ interface CommonBaseTextProps extends Pick<BaseComponentProps, "m" | "mt" | "mr"
|
|
|
44
44
|
/**
|
|
45
45
|
* Possible letter spacing
|
|
46
46
|
*/
|
|
47
|
-
letterSpacing?:
|
|
47
|
+
letterSpacing?: string | string[];
|
|
48
48
|
/**
|
|
49
49
|
* Possible line height adjustments
|
|
50
50
|
*/
|
|
51
|
-
lineHeight?:
|
|
51
|
+
lineHeight?: string | string[];
|
|
52
52
|
/**
|
|
53
53
|
* Possible bg color for the text
|
|
54
54
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from "rebass";
|
|
2
3
|
/**
|
|
3
4
|
* Type for the refsMap to be stored in reference manager.
|
|
4
5
|
*/
|
|
@@ -8,7 +9,7 @@ export declare type refsMap = {
|
|
|
8
9
|
/**
|
|
9
10
|
* Interface for Anchor props.
|
|
10
11
|
*/
|
|
11
|
-
export interface AnchorProps {
|
|
12
|
+
export interface AnchorProps extends BoxProps {
|
|
12
13
|
/**
|
|
13
14
|
* Hash id of the component.
|
|
14
15
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export { TextSwitch } from "./components/switches/text-switch";
|
|
|
153
153
|
export declare type TextSwitchProps = BaseTextSwitchProps;
|
|
154
154
|
export { CarouselSwitch } from "./components/switches/carousel-switch";
|
|
155
155
|
export declare type CarouselSwitchProps = BaseCarouselSwitchProps;
|
|
156
|
+
export { ToggleSwitch } from "./components/switches/toggle-switch";
|
|
156
157
|
export { TabsMenu } from "./components/tabs/tabs-menu";
|
|
157
158
|
export { TabBar } from "./components/tabs/tab-bar";
|
|
158
159
|
export { TabbedView } from "./components/tabs/tabbed-view";
|
|
@@ -195,6 +196,7 @@ export { ActionsTooltip } from "./components/tooltips/actions-tooltip";
|
|
|
195
196
|
export { TooltipWithPointer } from "./components/tooltips/tooltip-with-pointer";
|
|
196
197
|
export { Footer } from "./components/complex/footer";
|
|
197
198
|
export { Navbar, getLabShopsUrlProps } from "./components/complex/navbar";
|
|
199
|
+
export { UpdatedNavbar } from "./components/complex/updated-navbar";
|
|
198
200
|
export { Anchor } from "./components/utils/anchor";
|
|
199
201
|
export { PageTracker } from "./components/utils/page-tracker";
|
|
200
202
|
export { ScrollToTop } from "./components/utils/scroll-to-top";
|