@selfdecode/sd-component-library 2.43.2 → 2.43.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/lib/c801ade937bddadb73cb5b241c151ab6.svg +13 -0
  2. package/lib/components/boxes/no-translate-box/index.d.ts +1 -0
  3. package/lib/components/boxes/no-translate-box/interfaces.d.ts +5 -0
  4. package/lib/components/boxes/no-translate-box/no-translate-box.d.ts +3 -0
  5. package/lib/components/complex/navbar/partials/navbar-v2/partials/interfaces.d.ts +8 -0
  6. package/lib/components/complex/navbar/presentational/constants-v3.d.ts +1 -1
  7. package/lib/components/complex/navbar/presentational/url-utils.d.ts +10 -0
  8. package/lib/components/containers/section-container/interfaces.d.ts +1 -1
  9. package/lib/components/meters/outline-meter/partials/base-meter-label-box/interfaces.d.ts +1 -1
  10. package/lib/components/meters/outline-meter/partials/outline-meter-label-box/interfaces.d.ts +1 -1
  11. package/lib/components/meters/outline-meter/partials/outline-meter-range/interfaces.d.ts +2 -1
  12. package/lib/components/meters/outline-meter/utils.d.ts +2 -1
  13. package/lib/components/meters/smiley-meter-v2/assets/index.d.ts +1 -0
  14. package/lib/components/meters/smiley-meter-v2/assets/neutral-smiley.svg +13 -0
  15. package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +3 -3
  16. package/lib/components/meters/smiley-meter-v2/partials/smiley-meter-ranges/interfaces.d.ts +0 -1
  17. package/lib/components/modals/modal/interfaces.d.ts +5 -0
  18. package/lib/components/modals/modal/modal.d.ts +1 -1
  19. package/lib/components/selectors/secondary-selector-v2/index.d.ts +1 -0
  20. package/lib/components/selectors/secondary-selector-v2/interfaces.d.ts +2 -0
  21. package/lib/components/selectors/secondary-selector-v2/secondary-selector-v2.d.ts +3 -0
  22. package/lib/components/selectors/selector/interfaces.d.ts +2 -2
  23. package/lib/components/selectors/selector-v2/interfaces.d.ts +4 -0
  24. package/lib/components/selectors/selector-v2/partials/base-selector-v2/interfaces.d.ts +4 -0
  25. package/lib/components/tabs/tab-bar/interfaces.d.ts +1 -1
  26. package/lib/components/tabs/tab-bar/partials/tab/interfaces.d.ts +4 -0
  27. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +3 -2
  28. package/lib/components/tabs/tabbed-view/assets/index.d.ts +1 -0
  29. package/lib/components/tabs/tabbed-view/assets/instagram.svg +3 -0
  30. package/lib/components/text-boxes/table-of-content/interfaces.d.ts +2 -1
  31. package/lib/components/text-boxes/table-of-content/table-of-content.d.ts +1 -1
  32. package/lib/components/texts/base-text/interfaces.d.ts +3 -1
  33. package/lib/components/texts/eighteen-bold/interfaces.d.ts +1 -1
  34. package/lib/components/texts/eighteen-regular/interfaces.d.ts +1 -1
  35. package/lib/components/texts/fifty-five-sb/interfaces.d.ts +1 -1
  36. package/lib/components/texts/fourteen-regular/interfaces.d.ts +1 -1
  37. package/lib/components/texts/fourteen-sb/interfaces.d.ts +1 -1
  38. package/lib/components/texts/fourty-bold/interfaces.d.ts +1 -1
  39. package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
  40. package/lib/components/texts/sixteen-regular/interfaces.d.ts +1 -1
  41. package/lib/components/texts/sixteen-sb/interfaces.d.ts +1 -1
  42. package/lib/components/texts/ten-sb/interfaces.d.ts +1 -1
  43. package/lib/components/texts/thirteen-bold/interfaces.d.ts +1 -1
  44. package/lib/components/texts/thirteen-regular/interfaces.d.ts +1 -1
  45. package/lib/components/texts/thirteen-sb/interfaces.d.ts +1 -1
  46. package/lib/components/texts/thirty-two-bold/interfaces.d.ts +1 -1
  47. package/lib/components/texts/thirty-two-regular/interfaces.d.ts +1 -1
  48. package/lib/components/texts/twelve-regular/interfaces.d.ts +1 -1
  49. package/lib/components/texts/twelve-sb/interfaces.d.ts +1 -1
  50. package/lib/components/texts/twenty-four-bold/interfaces.d.ts +1 -1
  51. package/lib/components/texts/twenty-four-regular/interfaces.d.ts +1 -1
  52. package/lib/components/tooltips/base-info-tooltip/interfaces.d.ts +1 -1
  53. package/lib/components/tooltips/base-tooltip/interfaces.d.ts +4 -0
  54. package/lib/core/theme.d.ts +31 -0
  55. package/lib/index.d.ts +3 -0
  56. package/lib/index.js +1 -1
  57. package/package.json +3 -1
@@ -0,0 +1,13 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ viewBox="0 0 27 27"
4
+ >
5
+ <g >
6
+ <path
7
+ d="M391,292.419H368a2.089,2.089,0,1,0,0,4.178h23a2.089,2.089,0,0,0,0-4.178Z"
8
+ transform="translate(-365.884 -271.09)"
9
+ />
10
+ <circle cx="3.758" cy="3.758" r="3.758" transform="translate(19.728 0.06)" />
11
+ <circle cx="3.758" cy="3.758" r="3.758" />
12
+ </g>
13
+ </svg>
@@ -0,0 +1 @@
1
+ export { NoTranslateBox } from "./no-translate-box";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from "rebass";
3
+ export interface NoTranslateBoxProps extends BoxProps {
4
+ children: React.ReactNode;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { NoTranslateBoxProps as Props } from "./interfaces";
3
+ export declare const NoTranslateBox: React.FC<Props>;
@@ -34,6 +34,10 @@ export declare type NavItem = {
34
34
  * Whether to include icon in mobile navbar menu
35
35
  */
36
36
  mobileShowIcon?: boolean;
37
+ /**
38
+ * Whether weglot should translate text
39
+ */
40
+ dontTranslate?: boolean;
37
41
  };
38
42
  export declare type NavMenuItem = {
39
43
  /**
@@ -75,4 +79,8 @@ export declare type NavMenuItem = {
75
79
  * Whether item is currenly selected (and hence should be highlighted)
76
80
  */
77
81
  isSelected?: boolean;
82
+ /**
83
+ * Whether weglot should translate text
84
+ */
85
+ dontTranslate?: boolean;
78
86
  };
@@ -1,5 +1,5 @@
1
1
  import { NavItem } from "../partials/navbar-v2/partials/interfaces";
2
- export declare const geneticsNavItem: NavItem;
2
+ export declare const getgeneticsNavItem: (isPractitioner: boolean) => NavItem;
3
3
  export declare const labsNavItem: NavItem;
4
4
  export declare const getMyAccountNavItem: (isPractitioner: boolean, onLogout?: (() => void) | undefined) => NavItem;
5
5
  export declare const getLanguageNavItem: (selectedLangCode: string, langCodes: string[], onLanguageSwitch: (langCode: string) => void) => NavItem;
@@ -0,0 +1,10 @@
1
+ export declare const useEnvironment: () => {
2
+ isDev: boolean;
3
+ isLocal: boolean;
4
+ isProd: boolean;
5
+ isQA: boolean;
6
+ };
7
+ export declare const getLabShopsUrlProps: () => {
8
+ url: string;
9
+ isInternal: boolean;
10
+ };
@@ -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
@@ -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" | "bounds">> {
4
4
  /**
5
5
  * Whether value is in the range to which label corresponds.
6
6
  */
@@ -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" | "bounds">> {
3
3
  distanceFromLabelToRanges: number;
4
4
  }
@@ -1,7 +1,8 @@
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" | "counterClockWise">>, OutlineMeterRangeConfig, Pick<OutlineMeterLabelPointerProps, "distanceFromRanges"> {
3
+ export interface OutlineMeterRangeProps extends Required<Pick<OutlineMeterProps, "value" | "arc" | "distanceBetweenRanges" | "gaugeWidth" | "innerPointRadius" | "pointStrokeWidth" | "hideLabels">>, OutlineMeterRangeConfig, Pick<OutlineMeterLabelPointerProps, "distanceFromRanges"> {
4
4
  segmented?: boolean;
5
+ connected?: boolean;
5
6
  /**
6
7
  * Meter diameter.
7
8
  */
@@ -23,5 +23,6 @@ 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, ccw?: boolean | undefined) => boolean;
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;
27
28
  export declare const flipBounds: (bounds: Bounds) => Bounds;
@@ -1,2 +1,3 @@
1
1
  export { ReactComponent as HappySmileyIcon } from "./happy-smiley.svg";
2
2
  export { ReactComponent as SadSmileyIcon } from "./sad-smiley.svg";
3
+ export { ReactComponent as NeutralSmileyIcon } from "./neutral-smiley.svg";
@@ -0,0 +1,13 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ viewBox="0 0 27 27"
4
+ >
5
+ <g >
6
+ <path
7
+ d="M391,292.419H368a2.089,2.089,0,1,0,0,4.178h23a2.089,2.089,0,0,0,0-4.178Z"
8
+ transform="translate(-365.884 -271.09)"
9
+ />
10
+ <circle cx="3.758" cy="3.758" r="3.758" transform="translate(19.728 0.06)" />
11
+ <circle cx="3.758" cy="3.758" r="3.758" />
12
+ </g>
13
+ </svg>
@@ -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, string];
7
7
  /**
8
8
  * Colors for labels.
9
9
  */
10
- labelsMap?: [string, string];
10
+ labelsMap?: [string, 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
- splitValue?: number;
18
+ splitValues?: [number, number];
19
19
  /**
20
20
  * Smiley width.
21
21
  */
@@ -2,5 +2,4 @@ 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;
6
5
  }
@@ -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
  }
@@ -3,4 +3,4 @@ import { ModalProps } from "./interfaces";
3
3
  /**
4
4
  * The modal container.
5
5
  */
6
- export declare const Modal: React.FunctionComponent<ModalProps>;
6
+ export declare const Modal: React.FC<ModalProps>;
@@ -0,0 +1 @@
1
+ export { SecondarySelectorV2 } from "./secondary-selector-v2";
@@ -0,0 +1,2 @@
1
+ import { SelectorV2Props } from "../selector-v2";
2
+ export declare type SecondarySelectorV2Props = Omit<SelectorV2Props, "variant" | "labelContainerAlignItems">;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SecondarySelectorV2Props as Props } from "./interfaces";
3
+ export declare const SecondarySelectorV2: React.FC<Props>;
@@ -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?: Array<string>;
20
+ width?: string | 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 | string[];
44
44
  /**
45
45
  * text to be shown inside the selector when no options are provided
46
46
  * Default value: 'No options'
@@ -24,4 +24,8 @@ 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;
27
31
  }
@@ -18,4 +18,8 @@ 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;
21
25
  }
@@ -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" | "elementId">;
6
6
  /**
7
7
  * Props for TabBar
8
8
  */
@@ -60,4 +60,8 @@ export interface TabProps<T> {
60
60
  * Provide a custom component to render instead of label/icon
61
61
  */
62
62
  tabHeaderComponent?: React.ReactNode;
63
+ /**
64
+ * Optional string to be used as `id` on the tab's html element
65
+ */
66
+ elementId?: string;
63
67
  }
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { TabProps } from "./interfaces";
3
- export declare const Ribbon: ({ active, activeColor }: {
3
+ export declare const Ribbon: ({ active, activeColor, color, }: {
4
4
  active?: boolean | undefined;
5
5
  activeColor?: string | undefined;
6
+ color?: string | undefined;
6
7
  }) => JSX.Element;
7
- export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, }: TabProps<T>): JSX.Element;
8
+ export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, elementId, }: TabProps<T>): JSX.Element;
@@ -0,0 +1 @@
1
+ export { ReactComponent as InstagramIcon } from "./instagram.svg";
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23">
2
+ <path d="M3060.99,3222.39a2.661,2.661,0,0,0-2.66-2.39h-17.66a2.592,2.592,0,0,0-.48.04,2.649,2.649,0,0,0-2.19,2.66v17.59a3.4,3.4,0,0,0,.03.45,2.643,2.643,0,0,0,2.59,2.26h17.76c0.1,0,.2-0.01.31-0.02a2.641,2.641,0,0,0,2.31-2.6v-17.76A1.848,1.848,0,0,0,3060.99,3222.39Zm-11.49,4.69a4.42,4.42,0,1,1-4.42,4.42A4.415,4.415,0,0,1,3049.5,3227.08Zm8.85,2.77v9.53a0.891,0.891,0,0,1-.96.97h-15.8a0.882,0.882,0,0,1-.93-0.93c-0.01-3.19,0-6.39,0-9.58v-0.1h1.99a7.072,7.072,0,0,0,3.39,7.94,7.059,7.059,0,0,0,7.44-.33,7.064,7.064,0,0,0,2.87-7.61h2v0.11Zm0-3.68a0.883,0.883,0,0,1-.91.91h-2.61a0.873,0.873,0,0,1-.9-0.88c-0.01-.89-0.01-1.78,0-2.66a0.868,0.868,0,0,1,.9-0.88c0.87-.01,1.75-0.01,2.62,0a0.878,0.878,0,0,1,.9.9v2.61Z" transform="translate(-3038 -3220)"/>
3
+ </svg>
@@ -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: Array<linkObject>;
19
+ textItems: linkObject[];
19
20
  /**
20
21
  * Should the title of table be responsive.
21
22
  */
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { TableOfContentProps } from "./interfaces";
3
- export declare const TableOfContent: React.FunctionComponent<TableOfContentProps>;
3
+ export declare const TableOfContent: React.FC<TableOfContentProps>;
@@ -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">;
@@ -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.
@@ -28,4 +28,8 @@ export interface BaseTooltipProps extends BaseComponentProps {
28
28
  * Placement of tooltip content box.
29
29
  */
30
30
  placement?: "left" | "right";
31
+ /**
32
+ * Whether weglot should translate
33
+ */
34
+ dontTranslate?: boolean;
31
35
  }
@@ -53,6 +53,11 @@ 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
+ };
56
61
  };
57
62
  };
58
63
  _dropdowns: {
@@ -299,6 +304,11 @@ declare const _default: {
299
304
  color: string;
300
305
  fontSize: string[];
301
306
  };
307
+ secondaryV2: {
308
+ fontFamily: string;
309
+ color: string;
310
+ fontSize: string;
311
+ };
302
312
  };
303
313
  iconButton: {
304
314
  marginRight: string;
@@ -402,6 +412,27 @@ declare const _default: {
402
412
  transform: string;
403
413
  };
404
414
  };
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
+ };
405
436
  };
406
437
  };
407
438
  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,6 +134,7 @@ 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";
137
+ export { SecondarySelectorV2 } from "./components/selectors/secondary-selector-v2";
136
138
  export { Slider } from "./components/slider";
137
139
  export declare type SlideSettings = SlideSettingsType;
138
140
  export { TextSwitch } from "./components/switches/text-switch";
@@ -166,6 +168,7 @@ export { ThirtyTwoRegular } from "./components/texts/thirty-two-regular";
166
168
  export { ThirtyTwoBold } from "./components/texts/thirty-two-bold";
167
169
  export { FourtyBold } from "./components/texts/fourty-bold";
168
170
  export { FiftyFiveSb } from "./components/texts/fifty-five-sb";
171
+ export { NoTranslate } from "./components/texts/no-translate";
169
172
  export { DividedTextBox } from "./components/text-boxes/divided-text-box";
170
173
  export { TableOfContent } from "./components/text-boxes/table-of-content";
171
174
  export { BaseTooltip } from "./components/tooltips/base-tooltip";