@selfdecode/sd-component-library 2.42.35 → 2.43.3
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/269d4dbd2027234c18668478378a32a4.svg +3 -0
- package/lib/components/complex/navbar/partials/navbar-v2/partials/interfaces.d.ts +24 -0
- package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-mobile-v2/partials/navbar-mobile-unfolded-navigation/interfaces.d.ts +1 -1
- package/lib/components/complex/navbar/partials/navbar-v2/presentational/interfaces.d.ts +4 -0
- package/lib/components/complex/navbar/presentational/constants-v3.d.ts +1 -0
- package/lib/components/complex/navbar/presentational/interfaces.d.ts +12 -0
- package/lib/components/complex/navbar/presentational/language-mapping.d.ts +1 -0
- package/lib/components/icons/globe-icon/globe.svg +3 -0
- package/lib/components/icons/globe-icon/index.d.ts +1 -0
- package/lib/components/icons/index.d.ts +7 -6
- package/lib/components/modals/modal/interfaces.d.ts +5 -0
- package/lib/components/modals/modal/modal.d.ts +1 -1
- package/lib/components/texts/base-text/interfaces.d.ts +3 -1
- package/lib/components/texts/eighteen-bold/interfaces.d.ts +1 -1
- package/lib/components/texts/eighteen-regular/interfaces.d.ts +1 -1
- package/lib/components/texts/fifty-five-sb/interfaces.d.ts +1 -1
- package/lib/components/texts/fourteen-regular/interfaces.d.ts +1 -1
- package/lib/components/texts/fourteen-sb/interfaces.d.ts +1 -1
- package/lib/components/texts/fourty-bold/interfaces.d.ts +1 -1
- package/lib/components/texts/no-translate/index.d.ts +1 -0
- package/lib/components/texts/no-translate/no-translate.d.ts +3 -0
- package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
- package/lib/components/texts/sixteen-regular/interfaces.d.ts +1 -1
- package/lib/components/texts/sixteen-sb/interfaces.d.ts +1 -1
- package/lib/components/texts/ten-sb/interfaces.d.ts +1 -1
- package/lib/components/texts/thirteen-bold/interfaces.d.ts +1 -1
- package/lib/components/texts/thirteen-regular/interfaces.d.ts +1 -1
- package/lib/components/texts/thirteen-sb/interfaces.d.ts +1 -1
- package/lib/components/texts/thirty-two-bold/interfaces.d.ts +1 -1
- package/lib/components/texts/thirty-two-regular/interfaces.d.ts +1 -1
- package/lib/components/texts/twelve-regular/interfaces.d.ts +1 -1
- package/lib/components/texts/twelve-sb/interfaces.d.ts +1 -1
- package/lib/components/texts/twenty-four-bold/interfaces.d.ts +1 -1
- package/lib/components/texts/twenty-four-regular/interfaces.d.ts +1 -1
- package/lib/components/tooltips/base-info-tooltip/interfaces.d.ts +1 -1
- package/lib/components/tooltips/base-tooltip/interfaces.d.ts +4 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
2
|
+
<path id="Icon_material-language" data-name="Icon material-language" d="M12.99,3A10,10,0,1,0,23,13,10,10,0,0,0,12.99,3Zm6.93,6H16.97a15.649,15.649,0,0,0-1.38-3.56A8.03,8.03,0,0,1,19.92,9ZM13,5.04A14.087,14.087,0,0,1,14.91,9H11.09A14.087,14.087,0,0,1,13,5.04ZM5.26,15a7.822,7.822,0,0,1,0-4H8.64a16.515,16.515,0,0,0-.14,2,16.515,16.515,0,0,0,.14,2Zm.82,2H9.03a15.649,15.649,0,0,0,1.38,3.56A7.987,7.987,0,0,1,6.08,17ZM9.03,9H6.08a7.987,7.987,0,0,1,4.33-3.56A15.649,15.649,0,0,0,9.03,9ZM13,20.96A14.087,14.087,0,0,1,11.09,17h3.82A14.087,14.087,0,0,1,13,20.96ZM15.34,15H10.66a14.713,14.713,0,0,1-.16-2,14.585,14.585,0,0,1,.16-2h4.68a14.585,14.585,0,0,1,.16,2A14.713,14.713,0,0,1,15.34,15Zm.25,5.56A15.649,15.649,0,0,0,16.97,17h2.95a8.03,8.03,0,0,1-4.33,3.56ZM17.36,15a16.515,16.515,0,0,0,.14-2,16.515,16.515,0,0,0-.14-2h3.38a7.822,7.822,0,0,1,0,4Z" transform="translate(-3 -3)" />
|
|
3
|
+
</svg>
|
|
@@ -4,6 +4,10 @@ export declare type NavItem = {
|
|
|
4
4
|
* The text to be shown in the link
|
|
5
5
|
*/
|
|
6
6
|
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional mobile title
|
|
9
|
+
*/
|
|
10
|
+
mobileTitle?: string;
|
|
7
11
|
/**
|
|
8
12
|
* The links that should be displayed when:
|
|
9
13
|
* - in desktop view, the user hovers this NavItem
|
|
@@ -22,6 +26,18 @@ export declare type NavItem = {
|
|
|
22
26
|
* An SVG Component to be placed to the left of the title
|
|
23
27
|
*/
|
|
24
28
|
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
29
|
+
/**
|
|
30
|
+
* Whether or not to hide arrow
|
|
31
|
+
*/
|
|
32
|
+
hideArrow?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to include icon in mobile navbar menu
|
|
35
|
+
*/
|
|
36
|
+
mobileShowIcon?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether weglot should translate text
|
|
39
|
+
*/
|
|
40
|
+
dontTranslate?: boolean;
|
|
25
41
|
};
|
|
26
42
|
export declare type NavMenuItem = {
|
|
27
43
|
/**
|
|
@@ -59,4 +75,12 @@ export declare type NavMenuItem = {
|
|
|
59
75
|
* What to do instead of redirecting to a url.
|
|
60
76
|
*/
|
|
61
77
|
onClick?: () => void;
|
|
78
|
+
/**
|
|
79
|
+
* Whether item is currenly selected (and hence should be highlighted)
|
|
80
|
+
*/
|
|
81
|
+
isSelected?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whether weglot should translate text
|
|
84
|
+
*/
|
|
85
|
+
dontTranslate?: boolean;
|
|
62
86
|
};
|
|
@@ -2,7 +2,7 @@ import { NavbarMobileV2PresentationalProps } from "../../presentational/interfac
|
|
|
2
2
|
/**
|
|
3
3
|
* Defines the NavigationUnfolded component's properties.
|
|
4
4
|
*/
|
|
5
|
-
export declare type NavbarMobileUnfoldedNavigationProps = Pick<NavbarMobileV2PresentationalProps, "itemsInCart" | "onClickCartIcon" | "unsubscribedUser" | "accountNavItem" | "navItems" | "hideSearch"> & {
|
|
5
|
+
export declare type NavbarMobileUnfoldedNavigationProps = Pick<NavbarMobileV2PresentationalProps, "itemsInCart" | "onClickCartIcon" | "unsubscribedUser" | "accountNavItem" | "navItems" | "hideSearch" | "languageNavItem"> & {
|
|
6
6
|
/**
|
|
7
7
|
* Callback function to be called when the X icon button is clicked
|
|
8
8
|
*/
|
|
@@ -2,3 +2,4 @@ import { NavItem } from "../partials/navbar-v2/partials/interfaces";
|
|
|
2
2
|
export declare const geneticsNavItem: NavItem;
|
|
3
3
|
export declare const labsNavItem: NavItem;
|
|
4
4
|
export declare const getMyAccountNavItem: (isPractitioner: boolean, onLogout?: (() => void) | undefined) => NavItem;
|
|
5
|
+
export declare const getLanguageNavItem: (selectedLangCode: string, langCodes: string[], onLanguageSwitch: (langCode: string) => void) => NavItem;
|
|
@@ -87,4 +87,16 @@ export declare type NavbarProps = {
|
|
|
87
87
|
* }
|
|
88
88
|
*/
|
|
89
89
|
onLogout?: () => void;
|
|
90
|
+
/**
|
|
91
|
+
* User current selected language code
|
|
92
|
+
*/
|
|
93
|
+
selectedLangCode: string;
|
|
94
|
+
/**
|
|
95
|
+
* List of selectable language codes
|
|
96
|
+
*/
|
|
97
|
+
langCodes: string[];
|
|
98
|
+
/**
|
|
99
|
+
* What to do on language switch
|
|
100
|
+
*/
|
|
101
|
+
onLanguageSwitch: (langCode: string) => void;
|
|
90
102
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getNativeLanguageName: (langCode: string) => string | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
2
|
+
<path id="Icon_material-language" data-name="Icon material-language" d="M12.99,3A10,10,0,1,0,23,13,10,10,0,0,0,12.99,3Zm6.93,6H16.97a15.649,15.649,0,0,0-1.38-3.56A8.03,8.03,0,0,1,19.92,9ZM13,5.04A14.087,14.087,0,0,1,14.91,9H11.09A14.087,14.087,0,0,1,13,5.04ZM5.26,15a7.822,7.822,0,0,1,0-4H8.64a16.515,16.515,0,0,0-.14,2,16.515,16.515,0,0,0,.14,2Zm.82,2H9.03a15.649,15.649,0,0,0,1.38,3.56A7.987,7.987,0,0,1,6.08,17ZM9.03,9H6.08a7.987,7.987,0,0,1,4.33-3.56A15.649,15.649,0,0,0,9.03,9ZM13,20.96A14.087,14.087,0,0,1,11.09,17h3.82A14.087,14.087,0,0,1,13,20.96ZM15.34,15H10.66a14.713,14.713,0,0,1-.16-2,14.585,14.585,0,0,1,.16-2h4.68a14.585,14.585,0,0,1,.16,2A14.713,14.713,0,0,1,15.34,15Zm.25,5.56A15.649,15.649,0,0,0,16.97,17h2.95a8.03,8.03,0,0,1-4.33,3.56ZM17.36,15a16.515,16.515,0,0,0,.14-2,16.515,16.515,0,0,0-.14-2h3.38a7.822,7.822,0,0,1,0,4Z" transform="translate(-3 -3)" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReactComponent as GlobeIcon } from "./globe.svg";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
export { BorderedPlainWarningCircleIcon } from "./bordered-plain-warning-circle-icon";
|
|
1
2
|
export { CartIcon } from "./cart-icon";
|
|
2
3
|
export { CrossIcon } from "./cross-icon";
|
|
3
4
|
export { GeneticsIcon } from "./genetics-icon";
|
|
5
|
+
export { GlobeIcon } from "./globe-icon";
|
|
4
6
|
export { HamburgerIcon } from "./hamburger-icon";
|
|
7
|
+
export { PlainWarningCircleIcon } from "./plain-warning-circle-icon";
|
|
5
8
|
export { ProfileIcon } from "./profile-icon";
|
|
9
|
+
export { RescanIcon } from "./rescan-icon";
|
|
10
|
+
export { RoundBorderedStar } from "./round-bordered-star";
|
|
6
11
|
export { SDLogoNoTextIcon } from "./sd-logo-no-text-icon";
|
|
7
12
|
export { SDLogoWhiteIcon } from "./sd-logo-white-icon";
|
|
13
|
+
export { SDNavbarIcon } from "./sd-navbar-icon";
|
|
8
14
|
export { SearchIcon } from "./search-icon";
|
|
9
15
|
export { ShortDownArrowIcon } from "./short-dropdown-arrow-icon";
|
|
10
|
-
export { VialIcon } from "./vial-icon";
|
|
11
|
-
export { RescanIcon } from "./rescan-icon";
|
|
12
|
-
export { SDNavbarIcon } from "./sd-navbar-icon";
|
|
13
16
|
export { StarIcon } from "./star-icon";
|
|
17
|
+
export { VialIcon } from "./vial-icon";
|
|
14
18
|
export { WarningCircleIcon } from "./warning-circle-icon";
|
|
15
|
-
export { BorderedPlainWarningCircleIcon } from "./bordered-plain-warning-circle-icon";
|
|
16
|
-
export { PlainWarningCircleIcon } from "./plain-warning-circle-icon";
|
|
17
|
-
export { RoundBorderedStar } from "./round-bordered-star";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "rebass";
|
|
2
3
|
export interface ModalProps {
|
|
3
4
|
/**
|
|
4
5
|
* The theme variant to use for the modal's styles.
|
|
@@ -64,4 +65,8 @@ export interface ModalProps {
|
|
|
64
65
|
* content is shown at the top
|
|
65
66
|
*/
|
|
66
67
|
popUpHeight?: string | string[];
|
|
68
|
+
/**
|
|
69
|
+
* Additional props for the modal outer container.
|
|
70
|
+
*/
|
|
71
|
+
containerSx?: SxProps["sx"];
|
|
67
72
|
}
|
|
@@ -85,5 +85,7 @@ interface Variant {
|
|
|
85
85
|
withFontProperties?: false;
|
|
86
86
|
variant: BaseComponentProps["variant"];
|
|
87
87
|
}
|
|
88
|
-
export declare type BaseTextProps = CommonBaseTextProps & (FontProperties | Variant)
|
|
88
|
+
export declare type BaseTextProps = CommonBaseTextProps & (FontProperties | Variant) & {
|
|
89
|
+
dontTranslate?: boolean;
|
|
90
|
+
};
|
|
89
91
|
export {};
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type EighteenBoldProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type EighteenBoldProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type EighteenRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type EighteenRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type FiftyFiveSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type FiftyFiveSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type FourteenRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type FourteenRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type FourteenSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type FourteenSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type FourtyBoldProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type FourtyBoldProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NoTranslate } from "./no-translate";
|
|
@@ -2,7 +2,7 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "backgroundColor" | "width" | "height" | "onClick" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "backgroundColor" | "width" | "height" | "onClick" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
6
6
|
/**
|
|
7
7
|
* SelfDecode's combinations of fontSize and fontWeight.
|
|
8
8
|
*/
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type SixteenRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type SixteenRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type SixteenSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type SixteenSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type TenSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type TenSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type ThirteenBoldProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type ThirteenBoldProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type ThirteenRegularProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type ThirteenRegularProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type ThirteenSbProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type ThirteenSbProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type ThirtyTwoBoldProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type ThirtyTwoBoldProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type ThirtyTwoRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type ThirtyTwoRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type TwelveRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type TwelveRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type TwelveSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type TwelveSbProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type TwentyFourBoldProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "display" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type TwentyFourBoldProps = Pick<BaseTextProps, "children" | "color" | "cursor" | "display" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,4 +2,4 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
export declare type TwentyFourRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
export declare type TwentyFourRegularProps = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "dontTranslate">;
|
|
@@ -2,7 +2,7 @@ import { BaseTooltipProps } from "../base-tooltip";
|
|
|
2
2
|
/**
|
|
3
3
|
* Additional props BaseInfoTooltipProps
|
|
4
4
|
*/
|
|
5
|
-
declare type CommonProps = Pick<BaseTooltipProps, "m" | "mt" | "mr" | "mb" | "ml" | "bg" | "color" | "width" | "tooltipText" | "placement">;
|
|
5
|
+
declare type CommonProps = Pick<BaseTooltipProps, "m" | "mt" | "mr" | "mb" | "ml" | "bg" | "color" | "width" | "tooltipText" | "placement" | "dontTranslate">;
|
|
6
6
|
export interface BaseInfoTooltipProps extends CommonProps {
|
|
7
7
|
/**
|
|
8
8
|
* Color of the info icon. Should be a hex value.
|
package/lib/index.d.ts
CHANGED
|
@@ -166,6 +166,7 @@ export { ThirtyTwoRegular } from "./components/texts/thirty-two-regular";
|
|
|
166
166
|
export { ThirtyTwoBold } from "./components/texts/thirty-two-bold";
|
|
167
167
|
export { FourtyBold } from "./components/texts/fourty-bold";
|
|
168
168
|
export { FiftyFiveSb } from "./components/texts/fifty-five-sb";
|
|
169
|
+
export { NoTranslate } from "./components/texts/no-translate";
|
|
169
170
|
export { DividedTextBox } from "./components/text-boxes/divided-text-box";
|
|
170
171
|
export { TableOfContent } from "./components/text-boxes/table-of-content";
|
|
171
172
|
export { BaseTooltip } from "./components/tooltips/base-tooltip";
|