@selfdecode/sd-component-library 2.42.41 → 2.43.4
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/boxes/no-translate-box/index.d.ts +1 -0
- package/lib/components/boxes/no-translate-box/interfaces.d.ts +5 -0
- package/lib/components/boxes/no-translate-box/no-translate-box.d.ts +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 +2 -1
- 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/containers/section-container/interfaces.d.ts +1 -1
- 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/meters/outline-meter/partials/base-meter-label-box/interfaces.d.ts +1 -1
- package/lib/components/meters/outline-meter/partials/outline-meter-label-box/interfaces.d.ts +1 -1
- package/lib/components/meters/outline-meter/partials/outline-meter-range/interfaces.d.ts +1 -2
- package/lib/components/meters/outline-meter/utils.d.ts +1 -2
- package/lib/components/meters/smiley-meter-v2/assets/index.d.ts +0 -1
- package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +3 -3
- package/lib/components/meters/smiley-meter-v2/partials/smiley-meter-ranges/interfaces.d.ts +1 -0
- package/lib/components/selectors/selector/interfaces.d.ts +2 -2
- package/lib/components/selectors/selector-v2/interfaces.d.ts +0 -4
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/interfaces.d.ts +0 -4
- package/lib/components/tabs/tab-bar/interfaces.d.ts +1 -1
- package/lib/components/tabs/tab-bar/partials/tab/interfaces.d.ts +0 -4
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +2 -3
- package/lib/components/text-boxes/table-of-content/interfaces.d.ts +2 -1
- package/lib/components/text-boxes/table-of-content/table-of-content.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 +2 -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/core/theme.d.ts +0 -31
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/c801ade937bddadb73cb5b241c151ab6.svg +0 -13
- package/lib/components/meters/smiley-meter-v2/assets/neutral-smiley.svg +0 -13
- package/lib/components/selectors/secondary-selector-v2/index.d.ts +0 -1
- package/lib/components/selectors/secondary-selector-v2/interfaces.d.ts +0 -2
- package/lib/components/selectors/secondary-selector-v2/secondary-selector-v2.d.ts +0 -3
- package/lib/components/tabs/tabbed-view/assets/index.d.ts +0 -1
- package/lib/components/tabs/tabbed-view/assets/instagram.svg +0 -3
|
@@ -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 { NoTranslateBox } from "./no-translate-box";
|
|
@@ -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
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NavItem } from "../partials/navbar-v2/partials/interfaces";
|
|
2
|
-
export declare const
|
|
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;
|
|
@@ -8,7 +8,7 @@ export interface SectionContainerProps extends BaseComponentProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* The title of the section
|
|
10
10
|
*/
|
|
11
|
-
title: string;
|
|
11
|
+
title: string | React.ReactNode;
|
|
12
12
|
/**
|
|
13
13
|
* Used for displaying content (like a short information
|
|
14
14
|
* or notification) to the right of the title in desktop
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import { OutlineMeterLabelBoxProps } from "../outline-meter-label-box/interfaces";
|
|
2
2
|
import { OutlineMeterLabelPosition } from "../../interfaces";
|
|
3
|
-
export interface BaseMeterLabelBoxProps extends Required<Omit<OutlineMeterLabelBoxProps, "value" | "start" | "end" | "idx" | "totalRanges"
|
|
3
|
+
export interface BaseMeterLabelBoxProps extends Required<Omit<OutlineMeterLabelBoxProps, "value" | "start" | "end" | "idx" | "totalRanges">> {
|
|
4
4
|
/**
|
|
5
5
|
* Whether value is in the range to which label corresponds.
|
|
6
6
|
*/
|
package/lib/components/meters/outline-meter/partials/outline-meter-label-box/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { OutlineMeterRangeProps } from "../outline-meter-range/interfaces";
|
|
2
|
-
export interface OutlineMeterLabelBoxProps extends Required<Pick<OutlineMeterRangeProps, "diameter" | "label" | "color" | "idx" | "value" | "start" | "end" | "totalRanges"
|
|
2
|
+
export interface OutlineMeterLabelBoxProps extends Required<Pick<OutlineMeterRangeProps, "diameter" | "label" | "color" | "idx" | "value" | "start" | "end" | "totalRanges">> {
|
|
3
3
|
distanceFromLabelToRanges: number;
|
|
4
4
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OutlineMeterLabelPosition, OutlineMeterProps, OutlineMeterRangeConfig } from "../../interfaces";
|
|
2
2
|
import { OutlineMeterLabelPointerProps } from "../outline-meter-label-pointer/interfaces";
|
|
3
|
-
export interface OutlineMeterRangeProps extends Required<Pick<OutlineMeterProps, "value" | "arc" | "distanceBetweenRanges" | "gaugeWidth" | "innerPointRadius" | "pointStrokeWidth" | "hideLabels">>, OutlineMeterRangeConfig, Pick<OutlineMeterLabelPointerProps, "distanceFromRanges"> {
|
|
3
|
+
export interface OutlineMeterRangeProps extends Required<Pick<OutlineMeterProps, "value" | "arc" | "distanceBetweenRanges" | "gaugeWidth" | "innerPointRadius" | "pointStrokeWidth" | "hideLabels" | "counterClockWise">>, OutlineMeterRangeConfig, Pick<OutlineMeterLabelPointerProps, "distanceFromRanges"> {
|
|
4
4
|
segmented?: boolean;
|
|
5
|
-
connected?: boolean;
|
|
6
5
|
/**
|
|
7
6
|
* Meter diameter.
|
|
8
7
|
*/
|
|
@@ -23,6 +23,5 @@ export declare const getInnerX: (x: number, alpha: number, delta: number) => num
|
|
|
23
23
|
* @param delta Distance between points
|
|
24
24
|
*/
|
|
25
25
|
export declare const getInnerY: (y: number, alpha: number, delta: number) => number;
|
|
26
|
-
export declare const isValueInRange: (value: number, start: number, end: number, bounds: Bounds) => boolean;
|
|
27
|
-
export declare const inValueHigherThanRange: (value: number, end: number, bounds: Bounds) => boolean;
|
|
26
|
+
export declare const isValueInRange: (value: number, start: number, end: number, bounds: Bounds, ccw?: boolean | undefined) => boolean;
|
|
28
27
|
export declare const flipBounds: (bounds: Bounds) => Bounds;
|
|
@@ -3,11 +3,11 @@ export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "h
|
|
|
3
3
|
/**
|
|
4
4
|
* Colors for smiley corresponding to state.
|
|
5
5
|
*/
|
|
6
|
-
colorsMap?: [string, string
|
|
6
|
+
colorsMap?: [string, string];
|
|
7
7
|
/**
|
|
8
8
|
* Colors for labels.
|
|
9
9
|
*/
|
|
10
|
-
labelsMap?: [string, string
|
|
10
|
+
labelsMap?: [string, string];
|
|
11
11
|
/**
|
|
12
12
|
* Whether to hide labels.
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@ export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "h
|
|
|
15
15
|
/**
|
|
16
16
|
* Value that splits smiley meter outline.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
splitValue?: number;
|
|
19
19
|
/**
|
|
20
20
|
* Smiley width.
|
|
21
21
|
*/
|
|
@@ -2,4 +2,5 @@ import { OutlineMeterRangeConfig } from "../../../outline-meter";
|
|
|
2
2
|
import { OutlineMeterRangeProps } from "../../../outline-meter/partials/outline-meter-range/interfaces";
|
|
3
3
|
export interface SmileyMeterRangesProps extends Pick<OutlineMeterRangeProps, "value" | "diameter" | "innerPointRadius" | "pointStrokeWidth" | "distanceFromRanges" | "arc" | "gaugeWidth" | "distanceBetweenRanges" | "hideLabels"> {
|
|
4
4
|
ranges: OutlineMeterRangeConfig[];
|
|
5
|
+
counterClockWise: boolean;
|
|
5
6
|
}
|
|
@@ -17,7 +17,7 @@ export declare type SelectorProps<T extends string = string> = BaseComponentProp
|
|
|
17
17
|
/**
|
|
18
18
|
* this is the width of the component
|
|
19
19
|
*/
|
|
20
|
-
width?: string
|
|
20
|
+
width?: Array<string>;
|
|
21
21
|
/**
|
|
22
22
|
* this is the name prop which we use as a form of an id for this selector. It needs to be unique, given more name based form components in the same app.
|
|
23
23
|
*/
|
|
@@ -40,7 +40,7 @@ export declare type SelectorProps<T extends string = string> = BaseComponentProp
|
|
|
40
40
|
* this is an optional amount of spacing between the
|
|
41
41
|
* selectorLabel and the selectInput. Default value: ["20px"]
|
|
42
42
|
*/
|
|
43
|
-
gap?: string
|
|
43
|
+
gap?: string[];
|
|
44
44
|
/**
|
|
45
45
|
* text to be shown inside the selector when no options are provided
|
|
46
46
|
* Default value: 'No options'
|
|
@@ -24,8 +24,4 @@ export interface SelectorV2Props<T extends string = string> extends Omit<Selecto
|
|
|
24
24
|
* List of available selector's options.
|
|
25
25
|
*/
|
|
26
26
|
options: SelectorOptionV2<T>[];
|
|
27
|
-
/**
|
|
28
|
-
* How to align items in label container.
|
|
29
|
-
*/
|
|
30
|
-
labelContainerAlignItems?: string;
|
|
31
27
|
}
|
|
@@ -18,8 +18,4 @@ export interface BaseSelectorV2Props<T extends string = string> extends Omit<Sel
|
|
|
18
18
|
* List of available selector's options.
|
|
19
19
|
*/
|
|
20
20
|
options: SelectorOptionV2<T | null>[];
|
|
21
|
-
/**
|
|
22
|
-
* How to align items in label container.
|
|
23
|
-
*/
|
|
24
|
-
labelContainerAlignItems?: string;
|
|
25
21
|
}
|
|
@@ -2,7 +2,7 @@ import { TabProps } from "./partials/tab/interfaces";
|
|
|
2
2
|
/**
|
|
3
3
|
* Configuration describing each tab
|
|
4
4
|
*/
|
|
5
|
-
export declare type TabConfig<T> = Pick<TabProps<T>, "id" | "label" | "secondaryText" | "icon" | "bg" | "activeBg"
|
|
5
|
+
export declare type TabConfig<T> = Pick<TabProps<T>, "id" | "label" | "secondaryText" | "icon" | "bg" | "activeBg">;
|
|
6
6
|
/**
|
|
7
7
|
* Props for TabBar
|
|
8
8
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TabProps } from "./interfaces";
|
|
2
|
-
export declare const Ribbon: ({ active, activeColor
|
|
2
|
+
export declare const Ribbon: ({ active, activeColor }: {
|
|
3
3
|
active?: boolean | undefined;
|
|
4
4
|
activeColor?: string | undefined;
|
|
5
|
-
color?: string | undefined;
|
|
6
5
|
}) => JSX.Element;
|
|
7
|
-
export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent,
|
|
6
|
+
export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, }: TabProps<T>): JSX.Element;
|
|
@@ -3,6 +3,7 @@ declare type linkObject = {
|
|
|
3
3
|
text: string;
|
|
4
4
|
link?: string;
|
|
5
5
|
target?: string;
|
|
6
|
+
translate?: boolean;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
9
|
* Text Box props.
|
|
@@ -15,7 +16,7 @@ export interface TableOfContentProps extends BaseComponentProps {
|
|
|
15
16
|
/**
|
|
16
17
|
* Text items to be listed.
|
|
17
18
|
*/
|
|
18
|
-
textItems:
|
|
19
|
+
textItems: linkObject[];
|
|
19
20
|
/**
|
|
20
21
|
* Should the title of table be responsive.
|
|
21
22
|
*/
|
|
@@ -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/core/theme.d.ts
CHANGED
|
@@ -53,11 +53,6 @@ declare const _default: {
|
|
|
53
53
|
gridTemplateColumns: string;
|
|
54
54
|
alignItems: string;
|
|
55
55
|
};
|
|
56
|
-
secondaryV2: {
|
|
57
|
-
display: string;
|
|
58
|
-
gridTemplateColumns: string;
|
|
59
|
-
alignItems: string;
|
|
60
|
-
};
|
|
61
56
|
};
|
|
62
57
|
};
|
|
63
58
|
_dropdowns: {
|
|
@@ -304,11 +299,6 @@ declare const _default: {
|
|
|
304
299
|
color: string;
|
|
305
300
|
fontSize: string[];
|
|
306
301
|
};
|
|
307
|
-
secondaryV2: {
|
|
308
|
-
fontFamily: string;
|
|
309
|
-
color: string;
|
|
310
|
-
fontSize: string;
|
|
311
|
-
};
|
|
312
302
|
};
|
|
313
303
|
iconButton: {
|
|
314
304
|
marginRight: string;
|
|
@@ -412,27 +402,6 @@ declare const _default: {
|
|
|
412
402
|
transform: string;
|
|
413
403
|
};
|
|
414
404
|
};
|
|
415
|
-
secondaryV2: {
|
|
416
|
-
fontFamily: string;
|
|
417
|
-
fontWeight: string;
|
|
418
|
-
fontSize: string;
|
|
419
|
-
letterSpacing: number;
|
|
420
|
-
color: string;
|
|
421
|
-
outline: string;
|
|
422
|
-
border: string;
|
|
423
|
-
borderRadius: number;
|
|
424
|
-
borderBottomColor: string;
|
|
425
|
-
borderBottomStyle: string;
|
|
426
|
-
borderBottomWidth: number;
|
|
427
|
-
pb: string;
|
|
428
|
-
pl: number;
|
|
429
|
-
pt: number;
|
|
430
|
-
pr: string;
|
|
431
|
-
"& + svg": {
|
|
432
|
-
fill: string;
|
|
433
|
-
transform: string;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
405
|
};
|
|
437
406
|
};
|
|
438
407
|
text: {
|
package/lib/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { DesktopHiddenBox } from "./components/boxes/desktop-hidden-box";
|
|
|
17
17
|
export { MobileHiddenBox } from "./components/boxes/mobile-hidden-box";
|
|
18
18
|
export { OutsideClickBox } from "./components/boxes/outside-click-box";
|
|
19
19
|
export { ScrollOnHoverBox } from "./components/boxes/scroll-on-hover-box";
|
|
20
|
+
export { NoTranslateBox } from "./components/boxes/no-translate-box";
|
|
20
21
|
export { Breadcrumb } from "./components/breadcrumbs/breadcrumb";
|
|
21
22
|
export declare type BreadCrumbProps = BaseBreadcrumbProps;
|
|
22
23
|
export { PrimaryBreadcrumb } from "./components/breadcrumbs/primary-breadcrumb";
|
|
@@ -133,7 +134,6 @@ export { CustomSelector } from "./components/selectors/custom-selector";
|
|
|
133
134
|
export { SelectorV2 } from "./components/selectors/selector-v2";
|
|
134
135
|
export type { SelectorV2Props, SelectorOptionV2, } from "./components/selectors/selector-v2";
|
|
135
136
|
export { TertiarySelectorV2 } from "./components/selectors/tertiary-selector-v2";
|
|
136
|
-
export { SecondarySelectorV2 } from "./components/selectors/secondary-selector-v2";
|
|
137
137
|
export { Slider } from "./components/slider";
|
|
138
138
|
export declare type SlideSettings = SlideSettingsType;
|
|
139
139
|
export { TextSwitch } from "./components/switches/text-switch";
|
|
@@ -167,6 +167,7 @@ export { ThirtyTwoRegular } from "./components/texts/thirty-two-regular";
|
|
|
167
167
|
export { ThirtyTwoBold } from "./components/texts/thirty-two-bold";
|
|
168
168
|
export { FourtyBold } from "./components/texts/fourty-bold";
|
|
169
169
|
export { FiftyFiveSb } from "./components/texts/fifty-five-sb";
|
|
170
|
+
export { NoTranslate } from "./components/texts/no-translate";
|
|
170
171
|
export { DividedTextBox } from "./components/text-boxes/divided-text-box";
|
|
171
172
|
export { TableOfContent } from "./components/text-boxes/table-of-content";
|
|
172
173
|
export { BaseTooltip } from "./components/tooltips/base-tooltip";
|