@selfdecode/sd-component-library 2.43.1 → 2.43.2

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 (62) hide show
  1. package/lib/components/accordions/base-accordion/interfaces.d.ts +4 -0
  2. package/lib/components/animations/up-down-arrow/up-down-arrow.d.ts +1 -0
  3. package/lib/components/bicolor-badge/interfaces.d.ts +1 -0
  4. package/lib/components/checkboxes/checkbox/checkbox.d.ts +1 -0
  5. package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +1 -0
  6. package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +1 -0
  7. package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +1 -0
  8. package/lib/components/complex/footer/presentational/footer-presentational.d.ts +1 -0
  9. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +1 -0
  10. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +1 -0
  11. package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +1 -0
  12. package/lib/components/complex/navbar/presentational/constants-v2.d.ts +1 -1
  13. package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +1 -0
  14. package/lib/components/containers/max-width-container/max-width-container.d.ts +1 -0
  15. package/lib/components/containers/section-container/section-container.d.ts +1 -0
  16. package/lib/components/feature-explanation/feature-explanation.d.ts +1 -0
  17. package/lib/components/feedback/base-feedback-container/interfaces.d.ts +9 -0
  18. package/lib/components/feedback/multiple-options-feedback/interfaces.d.ts +1 -1
  19. package/lib/components/feedback/yes-no-feedback-block/interfaces.d.ts +1 -1
  20. package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +1 -0
  21. package/lib/components/labels/base-label/base-label.d.ts +1 -0
  22. package/lib/components/radio-button/radio-button.d.ts +1 -0
  23. package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +1 -0
  24. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +1 -0
  25. package/lib/components/selectors/primary-selector/primary-selector.d.ts +1 -0
  26. package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +1 -0
  27. package/lib/components/selectors/selector/selector.d.ts +1 -0
  28. package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -0
  29. package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -0
  30. package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +1 -0
  31. package/lib/components/slider/partials/step-circles/step-circles.d.ts +1 -0
  32. package/lib/components/slider/slider.d.ts +1 -0
  33. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +1 -0
  34. package/lib/components/tabs/tab-bar/tab-bar.d.ts +1 -0
  35. package/lib/components/tabs/tab-bar-v2/interfaces.d.ts +8 -0
  36. package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +5 -1
  37. package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +1 -0
  38. package/lib/components/tabs/tabbed-view-v2/interfaces.d.ts +1 -1
  39. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +1 -0
  40. package/lib/components/texts/base-text/base-text.d.ts +1 -0
  41. package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +1 -0
  42. package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +1 -0
  43. package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +1 -0
  44. package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +1 -0
  45. package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +1 -0
  46. package/lib/components/texts/fourty-bold/fourty-bold.d.ts +1 -0
  47. package/lib/components/texts/no-translate/no-translate.d.ts +1 -0
  48. package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +1 -0
  49. package/lib/components/texts/ten-sb/ten-sb.d.ts +1 -0
  50. package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +1 -0
  51. package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +1 -0
  52. package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +1 -0
  53. package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +1 -0
  54. package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +1 -0
  55. package/lib/components/texts/twelve-regular/twelve-regular.d.ts +1 -0
  56. package/lib/components/texts/twelve-sb/twelve-sb.d.ts +1 -0
  57. package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +1 -0
  58. package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +1 -0
  59. package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +1 -0
  60. package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +1 -0
  61. package/lib/index.js +1 -1
  62. package/package.json +1 -1
@@ -85,4 +85,8 @@ export interface AccordionProps extends BaseComponentProps {
85
85
  * The callback to control open/close state of the accordion, required for a controlled component.
86
86
  */
87
87
  setIsOpen?: (value: React.SetStateAction<boolean>) => void;
88
+ /**
89
+ * disable CSS Flex if pdf flow.
90
+ */
91
+ isPDFflow?: boolean;
88
92
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { UpDownArrowProps } from "./interfaces";
2
3
  export declare function UpDownArrow(props: UpDownArrowProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface BicolorBadgeProps {
2
3
  /**
3
4
  * Color of the left section
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxProps } from "./interfaces";
2
3
  /**
3
4
  * Base checkbox component. Other checkbox components should be built from this.
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FooterLinkProps } from "./interfaces";
2
3
  export declare function FooterLink(props: FooterLinkProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FooterSectionProps } from "./interfaces";
2
3
  export declare function FooterSection(props: FooterSectionProps): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function FooterSocial(): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FooterPresentationalProps } from "./interfaces";
2
3
  export declare function FooterPresentational(props: FooterPresentationalProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuRowProps } from "./interfaces";
2
3
  export declare function MenuRow(props: MenuRowProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { NewAppsItemProps } from "./interfaces";
2
3
  export declare function NewAppsItem(props: NewAppsItemProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuBoxProps } from "./interfaces";
2
3
  export declare function MenuBox(props: MenuBoxProps): JSX.Element;
@@ -3,4 +3,4 @@ export declare const myLabsNavItem: NavMenuItem;
3
3
  export declare const getBetaNavItem: (isPractitioner: boolean) => NavItem;
4
4
  export declare const myGeneticsNavItem: NavMenuItem;
5
5
  export declare const legacyNavItem: NavItem;
6
- export declare const getMyAccountNavItem: (onLogout?: () => void) => NavItem;
6
+ export declare const getMyAccountNavItem: (isPractitioner: boolean, onLogout?: () => void) => NavItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NavbarProps } from "./interfaces";
2
3
  /**
3
4
  * Renders either navbar-v1 or navbar-v2, depeding on the v2 prop
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MaxWidthContainerProps } from "./interfaces";
2
3
  export declare const MaxWidthContainer: (props: MaxWidthContainerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SectionContainerProps } from "./interfaces";
2
3
  /**
3
4
  * The SectionContainer has responsive behavior
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FeatureExplanationProps } from "./interfaces";
2
3
  export declare const FeatureExplanation: (props: FeatureExplanationProps) => JSX.Element;
@@ -1,5 +1,14 @@
1
1
  /// <reference types="react" />
2
+ import { SxProps } from "rebass";
2
3
  export interface BaseFeedbackBlockProps {
4
+ /**
5
+ * Question box props.
6
+ */
3
7
  questionText: string;
8
+ questionTextFontSize?: number;
9
+ questionMarginBottom?: string;
10
+ containerSx?: SxProps["sx"];
11
+ iconContainerSx?: SxProps["sx"];
12
+ iconFontSize?: number;
4
13
  children: React.ReactNode;
5
14
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
2
- export interface MultipleOptionsFeedbackProps extends Pick<BaseFeedbackBlockProps, "questionText"> {
2
+ export interface MultipleOptionsFeedbackProps extends Omit<BaseFeedbackBlockProps, "children"> {
3
3
  options: FeedbackOption[];
4
4
  selectedOptionId?: string;
5
5
  onFeedback: (id: string) => void;
@@ -1,5 +1,5 @@
1
1
  import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
2
- export interface YesNoFeedbackBlockProps extends Pick<BaseFeedbackBlockProps, "questionText"> {
2
+ export interface YesNoFeedbackBlockProps extends Omit<BaseFeedbackBlockProps, "children"> {
3
3
  selectedOption?: YesNoOption;
4
4
  onFeedback: (option: YesNoOption) => void;
5
5
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SearchBoxProps } from "./interfaces";
2
3
  export declare const SearchBox: (props: SearchBoxProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BaseLabelProps } from "./interfaces";
2
3
  export declare const BaseLabel: (props: BaseLabelProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { RadioButtonProps } from "./interfaces";
2
3
  export declare const RadioButton: (props: RadioButtonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FiveStarsRatingProps } from "./interfaces";
2
3
  export declare const FiveStarsRating: (props: FiveStarsRatingProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { CompactPrimarySelectorProps as Props } from "./interfaces";
2
3
  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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PrimarySelectorProps as Props } from "./interfaces";
2
3
  /**
3
4
  * The PrimarySelector.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SecondarySelectorProps as Props } from "./interfaces";
2
3
  /**
3
4
  * The SecondarySelector.
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SelectorProps as Props } from "./interfaces";
2
3
  export declare const Selector: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BaseSelectorV2Props as Props } from "./interfaces";
2
3
  export declare const BaseSelectorV2: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SelectorV2Props as Props } from "./interfaces";
2
3
  export declare const SelectorV2: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TertiarySelectorProps as Props } from "./interfaces";
2
3
  /**
3
4
  * The TertiarySelector.
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { StepCirclesProps } from "./interfaces";
2
3
  export declare const StepCircles: (props: StepCirclesProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SliderProps } from "./interfaces";
2
3
  export declare const Slider: (props: SliderProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabProps } from "./interfaces";
2
3
  export declare const Ribbon: ({ active, activeColor }: {
3
4
  active?: boolean | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TabBarProps } from "./interfaces";
2
3
  export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, }: TabBarProps<T>): JSX.Element;
@@ -35,6 +35,14 @@ export interface TabBarV2Props {
35
35
  * Side padding of the tab bar.
36
36
  */
37
37
  paddingX?: string;
38
+ /**
39
+ * Side padding of the tab.
40
+ */
41
+ tabPx?: string | string[];
42
+ /**
43
+ * Font size of the tab text.
44
+ */
45
+ fontSize?: number;
38
46
  }
39
47
  export interface TabV2Config {
40
48
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { TabBarV2Props, TabV2Config } from "../../interfaces";
2
- export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "tabs" | "maxWidth" | "paddingX" | "selectedTabId">> {
2
+ export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "tabs" | "maxWidth" | "paddingX" | "selectedTabId" | "tabPx">> {
3
3
  /**
4
4
  * Index of the selected tab.
5
5
  */
@@ -16,4 +16,8 @@ export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "t
16
16
  * Height of the dash under selected tab.
17
17
  */
18
18
  dashHeight?: number;
19
+ /**
20
+ * Side padding of the tab
21
+ */
22
+ px?: string | string[];
19
23
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TabbedViewProps } from "./interfaces";
2
3
  export declare function TabbedView({ tabs, color, activeColor, contentPadding, tabPadding, }: TabbedViewProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TabBarV2Props, TabV2Config } from "../tab-bar-v2/interfaces";
3
- export interface TabbedViewV2Props extends Pick<TabBarV2Props, "color" | "activeColor" | "borderColor" | "borderWidth" | "borderRadius" | "selectedTabId" | "onSelect"> {
3
+ export interface TabbedViewV2Props extends Pick<TabBarV2Props, "color" | "activeColor" | "borderColor" | "borderWidth" | "borderRadius" | "selectedTabId" | "onSelect" | "tabPx" | "fontSize"> {
4
4
  tabs: TabViewTabV2[];
5
5
  }
6
6
  export interface TabViewTabV2 extends TabV2Config {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabsMenuProps } from "./interfaces";
2
3
  /**
3
4
  * TabsMenu component.
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BaseTextProps } from "./interfaces";
2
3
  export declare const BaseText: (props: BaseTextProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { EighteenBoldProps } from "./interfaces";
2
3
  export declare const EighteenBold: (props: EighteenBoldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { EighteenRegularProps } from "./interfaces";
2
3
  export declare const EighteenRegular: (props: EighteenRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FiftyFiveSbProps } from "./interfaces";
2
3
  export declare const FiftyFiveSb: (props: FiftyFiveSbProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FourteenRegularProps } from "./interfaces";
2
3
  export declare const FourteenRegular: (props: FourteenRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FourteenSbProps } from "./interfaces";
2
3
  export declare const FourteenSb: (props: FourteenSbProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FourtyBoldProps } from "./interfaces";
2
3
  export declare const FourtyBold: (props: FourtyBoldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TextProps } from "rebass";
2
3
  export declare const NoTranslate: (props: TextProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SixteenRegularProps } from "./interfaces";
2
3
  export declare const SixteenRegular: (props: SixteenRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TenSbProps } from "./interfaces";
2
3
  export declare const TenSb: (props: TenSbProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ThirteenBoldProps } from "./interfaces";
2
3
  export declare const ThirteenBold: (props: ThirteenBoldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ThirteenRegularProps } from "./interfaces";
2
3
  export declare const ThirteenRegular: (props: ThirteenRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ThirteenSbProps } from "./interfaces";
2
3
  export declare const ThirteenSb: (props: ThirteenSbProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ThirtyTwoBoldProps } from "./interfaces";
2
3
  export declare const ThirtyTwoBold: (props: ThirtyTwoBoldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ThirtyTwoRegularProps } from "./interfaces";
2
3
  export declare const ThirtyTwoRegular: (props: ThirtyTwoRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TwelveRegularProps } from "./interfaces";
2
3
  export declare const TwelveRegular: (props: TwelveRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TwelveSbProps } from "./interfaces";
2
3
  export declare const TwelveSb: (props: TwelveSbProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TwentyFourBoldProps } from "./interfaces";
2
3
  export declare const TwentyFourBold: (props: TwentyFourBoldProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TwentyFourRegularProps } from "./interfaces";
2
3
  export declare const TwentyFourRegular: (props: TwentyFourRegularProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ScrollToTopProps } from "./interfaces";
2
3
  export declare const ScrollToTop: (props: ScrollToTopProps) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ScrollToTopOnMount: () => JSX.Element;