@selfdecode/sd-component-library 2.43.2 → 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.
Files changed (28) hide show
  1. package/lib/components/complex/navbar/partials/navbar-v2/partials/interfaces.d.ts +8 -0
  2. package/lib/components/modals/modal/interfaces.d.ts +5 -0
  3. package/lib/components/modals/modal/modal.d.ts +1 -1
  4. package/lib/components/texts/base-text/interfaces.d.ts +3 -1
  5. package/lib/components/texts/eighteen-bold/interfaces.d.ts +1 -1
  6. package/lib/components/texts/eighteen-regular/interfaces.d.ts +1 -1
  7. package/lib/components/texts/fifty-five-sb/interfaces.d.ts +1 -1
  8. package/lib/components/texts/fourteen-regular/interfaces.d.ts +1 -1
  9. package/lib/components/texts/fourteen-sb/interfaces.d.ts +1 -1
  10. package/lib/components/texts/fourty-bold/interfaces.d.ts +1 -1
  11. package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
  12. package/lib/components/texts/sixteen-regular/interfaces.d.ts +1 -1
  13. package/lib/components/texts/sixteen-sb/interfaces.d.ts +1 -1
  14. package/lib/components/texts/ten-sb/interfaces.d.ts +1 -1
  15. package/lib/components/texts/thirteen-bold/interfaces.d.ts +1 -1
  16. package/lib/components/texts/thirteen-regular/interfaces.d.ts +1 -1
  17. package/lib/components/texts/thirteen-sb/interfaces.d.ts +1 -1
  18. package/lib/components/texts/thirty-two-bold/interfaces.d.ts +1 -1
  19. package/lib/components/texts/thirty-two-regular/interfaces.d.ts +1 -1
  20. package/lib/components/texts/twelve-regular/interfaces.d.ts +1 -1
  21. package/lib/components/texts/twelve-sb/interfaces.d.ts +1 -1
  22. package/lib/components/texts/twenty-four-bold/interfaces.d.ts +1 -1
  23. package/lib/components/texts/twenty-four-regular/interfaces.d.ts +1 -1
  24. package/lib/components/tooltips/base-info-tooltip/interfaces.d.ts +1 -1
  25. package/lib/components/tooltips/base-tooltip/interfaces.d.ts +4 -0
  26. package/lib/index.d.ts +1 -0
  27. package/lib/index.js +1 -1
  28. package/package.json +3 -1
@@ -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,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>;
@@ -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
  }
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";