@selfdecode/sd-component-library 2.43.3 → 2.43.7

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 (94) hide show
  1. package/lib/c801ade937bddadb73cb5b241c151ab6.svg +13 -0
  2. package/lib/components/animations/up-down-arrow/up-down-arrow.d.ts +0 -1
  3. package/lib/components/bicolor-badge/interfaces.d.ts +0 -1
  4. package/lib/components/boxes/no-translate-box/index.d.ts +1 -0
  5. package/lib/components/boxes/no-translate-box/interfaces.d.ts +5 -0
  6. package/lib/components/boxes/no-translate-box/no-translate-box.d.ts +3 -0
  7. package/lib/components/checkboxes/checkbox/checkbox.d.ts +0 -1
  8. package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +0 -1
  9. package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +0 -1
  10. package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +0 -1
  11. package/lib/components/complex/footer/presentational/footer-presentational.d.ts +0 -1
  12. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +0 -1
  13. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +0 -1
  14. package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +0 -1
  15. package/lib/components/complex/navbar/presentational/constants-v3.d.ts +1 -1
  16. package/lib/components/complex/navbar/presentational/interfaces.d.ts +0 -1
  17. package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +0 -1
  18. package/lib/components/complex/navbar/presentational/url-utils.d.ts +10 -0
  19. package/lib/components/containers/max-width-container/max-width-container.d.ts +0 -1
  20. package/lib/components/containers/section-container/interfaces.d.ts +1 -1
  21. package/lib/components/containers/section-container/section-container.d.ts +0 -1
  22. package/lib/components/feature-explanation/feature-explanation.d.ts +0 -1
  23. package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +0 -1
  24. package/lib/components/labels/base-label/base-label.d.ts +0 -1
  25. package/lib/components/meters/outline-meter/partials/base-meter-label-box/interfaces.d.ts +1 -1
  26. package/lib/components/meters/outline-meter/partials/outline-meter-label-box/interfaces.d.ts +1 -1
  27. package/lib/components/meters/outline-meter/partials/outline-meter-range/interfaces.d.ts +2 -1
  28. package/lib/components/meters/outline-meter/utils.d.ts +2 -1
  29. package/lib/components/meters/smiley-meter-v2/assets/index.d.ts +1 -0
  30. package/lib/components/meters/smiley-meter-v2/assets/neutral-smiley.svg +13 -0
  31. package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +3 -3
  32. package/lib/components/meters/smiley-meter-v2/partials/smiley-meter-ranges/interfaces.d.ts +0 -1
  33. package/lib/components/radio-button/radio-button.d.ts +0 -1
  34. package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +0 -1
  35. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +0 -1
  36. package/lib/components/selectors/primary-selector/primary-selector.d.ts +0 -1
  37. package/lib/components/selectors/primary-selector-v2/index.d.ts +1 -0
  38. package/lib/components/selectors/primary-selector-v2/interfaces.d.ts +2 -0
  39. package/lib/components/selectors/primary-selector-v2/primary-selector-v2.d.ts +3 -0
  40. package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +0 -1
  41. package/lib/components/selectors/secondary-selector-v2/index.d.ts +1 -0
  42. package/lib/components/selectors/secondary-selector-v2/interfaces.d.ts +2 -0
  43. package/lib/components/selectors/secondary-selector-v2/secondary-selector-v2.d.ts +3 -0
  44. package/lib/components/selectors/selector/interfaces.d.ts +2 -2
  45. package/lib/components/selectors/selector/selector.d.ts +0 -1
  46. package/lib/components/selectors/selector-v2/interfaces.d.ts +4 -0
  47. package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +0 -1
  48. package/lib/components/selectors/selector-v2/partials/base-selector-v2/interfaces.d.ts +4 -0
  49. package/lib/components/selectors/selector-v2/selector-v2.d.ts +0 -1
  50. package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +0 -1
  51. package/lib/components/slider/partials/step-circles/step-circles.d.ts +0 -1
  52. package/lib/components/slider/slider.d.ts +0 -1
  53. package/lib/components/tabs/tab-bar/interfaces.d.ts +1 -1
  54. package/lib/components/tabs/tab-bar/partials/tab/interfaces.d.ts +4 -0
  55. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +3 -3
  56. package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
  57. package/lib/components/tabs/tabbed-view/assets/index.d.ts +1 -0
  58. package/lib/components/tabs/tabbed-view/assets/instagram.svg +3 -0
  59. package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +0 -1
  60. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
  61. package/lib/components/text-boxes/table-of-content/interfaces.d.ts +2 -1
  62. package/lib/components/text-boxes/table-of-content/table-of-content.d.ts +1 -1
  63. package/lib/components/texts/base-text/base-text.d.ts +0 -1
  64. package/lib/components/texts/base-text-v2/base-text-v2.d.ts +3 -0
  65. package/lib/components/texts/base-text-v2/index.d.ts +2 -0
  66. package/lib/components/texts/base-text-v2/interfaces.d.ts +2 -0
  67. package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +0 -1
  68. package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +0 -1
  69. package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +0 -1
  70. package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +0 -1
  71. package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +0 -1
  72. package/lib/components/texts/fourty-bold/fourty-bold.d.ts +0 -1
  73. package/lib/components/texts/no-translate/no-translate.d.ts +0 -1
  74. package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
  75. package/lib/components/texts/responsive-text-v2/index.d.ts +2 -0
  76. package/lib/components/texts/responsive-text-v2/interfaces.d.ts +5 -0
  77. package/lib/components/texts/responsive-text-v2/responsive-text-v2.d.ts +3 -0
  78. package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +0 -1
  79. package/lib/components/texts/ten-sb/ten-sb.d.ts +0 -1
  80. package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +0 -1
  81. package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +0 -1
  82. package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +0 -1
  83. package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +0 -1
  84. package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +0 -1
  85. package/lib/components/texts/twelve-regular/twelve-regular.d.ts +0 -1
  86. package/lib/components/texts/twelve-sb/twelve-sb.d.ts +0 -1
  87. package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +0 -1
  88. package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +0 -1
  89. package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +0 -1
  90. package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +0 -1
  91. package/lib/core/theme.d.ts +56 -0
  92. package/lib/index.d.ts +5 -0
  93. package/lib/index.js +1 -1
  94. package/package.json +1 -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>
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { UpDownArrowProps } from "./interfaces";
3
2
  export declare function UpDownArrow(props: UpDownArrowProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface BicolorBadgeProps {
3
2
  /**
4
3
  * Color of the left section
@@ -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>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxProps } from "./interfaces";
3
2
  /**
4
3
  * Base checkbox component. Other checkbox components should be built from this.
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FooterLinkProps } from "./interfaces";
3
2
  export declare function FooterLink(props: FooterLinkProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FooterSectionProps } from "./interfaces";
3
2
  export declare function FooterSection(props: FooterSectionProps): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function FooterSocial(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FooterPresentationalProps } from "./interfaces";
3
2
  export declare function FooterPresentational(props: FooterPresentationalProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuRowProps } from "./interfaces";
3
2
  export declare function MenuRow(props: MenuRowProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { NewAppsItemProps } from "./interfaces";
3
2
  export declare function NewAppsItem(props: NewAppsItemProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuBoxProps } from "./interfaces";
3
2
  export declare function MenuBox(props: MenuBoxProps): JSX.Element;
@@ -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;
@@ -82,7 +82,6 @@ export declare type NavbarProps = {
82
82
  * What to do when the logout button has been pressed.
83
83
  *
84
84
  * Default value: () => {
85
- * window.localStorage.setItem("hideDecody", "false");
86
85
  * window.location.href = "/account/logout";
87
86
  * }
88
87
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NavbarProps } from "./interfaces";
3
2
  /**
4
3
  * Renders either navbar-v1 or navbar-v2, depeding on the v2 prop
@@ -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
+ };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MaxWidthContainerProps } from "./interfaces";
3
2
  export declare const MaxWidthContainer: (props: MaxWidthContainerProps) => JSX.Element;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SectionContainerProps } from "./interfaces";
3
2
  /**
4
3
  * The SectionContainer has responsive behavior
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FeatureExplanationProps } from "./interfaces";
3
2
  export declare const FeatureExplanation: (props: FeatureExplanationProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SearchBoxProps } from "./interfaces";
3
2
  export declare const SearchBox: (props: SearchBoxProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { BaseLabelProps } from "./interfaces";
3
2
  export declare const BaseLabel: (props: BaseLabelProps) => JSX.Element;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { RadioButtonProps } from "./interfaces";
3
2
  export declare const RadioButton: (props: RadioButtonProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FiveStarsRatingProps } from "./interfaces";
3
2
  export declare const FiveStarsRating: (props: FiveStarsRatingProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { CompactPrimarySelectorProps as Props } from "./interfaces";
3
2
  export declare const CompactPrimarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "textTransform" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin">) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PrimarySelectorProps as Props } from "./interfaces";
3
2
  /**
4
3
  * The PrimarySelector.
@@ -0,0 +1 @@
1
+ export { PrimarySelectorV2 } from "./primary-selector-v2";
@@ -0,0 +1,2 @@
1
+ import { SelectorV2Props } from "../selector-v2";
2
+ export declare type PrimarySelectorV2Props = Omit<SelectorV2Props, "variant">;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { PrimarySelectorV2Props as Props } from "./interfaces";
3
+ export declare const PrimarySelectorV2: React.FC<Props>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SecondarySelectorProps as Props } from "./interfaces";
3
2
  /**
4
3
  * The SecondarySelector.
@@ -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'
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SelectorProps as Props } from "./interfaces";
3
2
  export declare const Selector: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -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
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { BaseSelectorV2Props as Props } from "./interfaces";
3
2
  export declare const BaseSelectorV2: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -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
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SelectorV2Props as Props } from "./interfaces";
3
2
  export declare const SelectorV2: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TertiarySelectorProps as Props } from "./interfaces";
3
2
  /**
4
3
  * The TertiarySelector.
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { StepCirclesProps } from "./interfaces";
3
2
  export declare const StepCircles: (props: StepCirclesProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SliderProps } from "./interfaces";
3
2
  export declare const Slider: (props: SliderProps) => JSX.Element;
@@ -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,7 @@
1
- /// <reference types="react" />
2
1
  import { TabProps } from "./interfaces";
3
- export declare const Ribbon: ({ active, activeColor }: {
2
+ export declare const Ribbon: ({ active, activeColor, color, }: {
4
3
  active?: boolean | undefined;
5
4
  activeColor?: string | undefined;
5
+ color?: string | undefined;
6
6
  }) => 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;
7
+ 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;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TabBarProps } from "./interfaces";
3
2
  export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, }: TabBarProps<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>
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TabbedViewProps } from "./interfaces";
3
2
  export declare function TabbedView({ tabs, color, activeColor, contentPadding, tabPadding, }: TabbedViewProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabsMenuProps } from "./interfaces";
3
2
  /**
4
3
  * TabsMenu component.
@@ -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>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { BaseTextProps } from "./interfaces";
3
2
  export declare const BaseText: (props: BaseTextProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { BaseTextV2Props as Props } from "./interfaces";
3
+ export declare const BaseTextV2: React.FC<Props>;
@@ -0,0 +1,2 @@
1
+ export { BaseTextV2 } from "./base-text-v2";
2
+ export type { BaseTextV2Props } from "./interfaces";
@@ -0,0 +1,2 @@
1
+ import { TextProps } from "rebass";
2
+ export declare type BaseTextV2Props = TextProps;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { EighteenBoldProps } from "./interfaces";
3
2
  export declare const EighteenBold: (props: EighteenBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { EighteenRegularProps } from "./interfaces";
3
2
  export declare const EighteenRegular: (props: EighteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FiftyFiveSbProps } from "./interfaces";
3
2
  export declare const FiftyFiveSb: (props: FiftyFiveSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FourteenRegularProps } from "./interfaces";
3
2
  export declare const FourteenRegular: (props: FourteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FourteenSbProps } from "./interfaces";
3
2
  export declare const FourteenSb: (props: FourteenSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FourtyBoldProps } from "./interfaces";
3
2
  export declare const FourtyBold: (props: FourtyBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TextProps } from "rebass";
3
2
  export declare const NoTranslate: (props: TextProps) => JSX.Element;
@@ -6,7 +6,7 @@ declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "dis
6
6
  /**
7
7
  * SelfDecode's combinations of fontSize and fontWeight.
8
8
  */
9
- declare type SDFontSizeWeight = [number, "semi-bold" | "regular" | "bold"];
9
+ export declare type SDFontSizeWeight = [number, "semi-bold" | "regular" | "bold"];
10
10
  export interface ResponsiveTextProps extends PropsFromBaseText {
11
11
  fontSizeWeight: SDFontSizeWeight[];
12
12
  /**
@@ -0,0 +1,2 @@
1
+ export { ResponsiveTextV2 } from "./responsive-text-v2";
2
+ export type { ResponsiveTextV2Props } from "./interfaces";
@@ -0,0 +1,5 @@
1
+ import { BaseTextV2Props } from "../base-text-v2";
2
+ import { SDFontSizeWeight } from "../responsive-text/interfaces";
3
+ export interface ResponsiveTextV2Props extends Omit<BaseTextV2Props, "variant"> {
4
+ fontSizeWeight: SDFontSizeWeight[];
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ResponsiveTextV2Props as Props } from "./interfaces";
3
+ export declare const ResponsiveTextV2: React.FC<Props>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SixteenRegularProps } from "./interfaces";
3
2
  export declare const SixteenRegular: (props: SixteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TenSbProps } from "./interfaces";
3
2
  export declare const TenSb: (props: TenSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirteenBoldProps } from "./interfaces";
3
2
  export declare const ThirteenBold: (props: ThirteenBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirteenRegularProps } from "./interfaces";
3
2
  export declare const ThirteenRegular: (props: ThirteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirteenSbProps } from "./interfaces";
3
2
  export declare const ThirteenSb: (props: ThirteenSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirtyTwoBoldProps } from "./interfaces";
3
2
  export declare const ThirtyTwoBold: (props: ThirtyTwoBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirtyTwoRegularProps } from "./interfaces";
3
2
  export declare const ThirtyTwoRegular: (props: ThirtyTwoRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwelveRegularProps } from "./interfaces";
3
2
  export declare const TwelveRegular: (props: TwelveRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwelveSbProps } from "./interfaces";
3
2
  export declare const TwelveSb: (props: TwelveSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwentyFourBoldProps } from "./interfaces";
3
2
  export declare const TwentyFourBold: (props: TwentyFourBoldProps) => JSX.Element;