@selfdecode/sd-component-library 2.44.0 → 2.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/lib/components/accordions/base-accordion/interfaces.d.ts +11 -3
  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/buttons/button/interfaces.d.ts +5 -0
  5. package/lib/components/buttons/cta/cta-button/interfaces.d.ts +1 -1
  6. package/lib/components/buttons/cta/primary-blue-button/interfaces.d.ts +1 -1
  7. package/lib/components/buttons/cta/secondary-blue-button/interfaces.d.ts +1 -1
  8. package/lib/components/checkboxes/checkbox/checkbox.d.ts +0 -1
  9. package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +0 -1
  10. package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +0 -1
  11. package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +0 -1
  12. package/lib/components/complex/footer/presentational/footer-presentational.d.ts +0 -1
  13. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +0 -1
  14. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +0 -1
  15. package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +0 -1
  16. package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +0 -1
  17. package/lib/components/containers/max-width-container/max-width-container.d.ts +0 -1
  18. package/lib/components/containers/section-container/section-container.d.ts +0 -1
  19. package/lib/components/custom-scrollbar-box/interfaces.d.ts +25 -4
  20. package/lib/components/dividers/divider/interfaces.d.ts +5 -0
  21. package/lib/components/dividers/horizontal-divider/interfaces.d.ts +1 -1
  22. package/lib/components/dividers/vertical-divider/interfaces.d.ts +1 -1
  23. package/lib/components/feature-explanation/feature-explanation.d.ts +0 -1
  24. package/lib/components/inputs/date-inputs/primary-date-range-input/index.d.ts +1 -0
  25. package/lib/components/inputs/date-inputs/primary-date-range-input/interfaces.d.ts +21 -0
  26. package/lib/components/inputs/date-inputs/primary-date-range-input/primary-date-range-input.d.ts +3 -0
  27. package/lib/components/inputs/input/interfaces.d.ts +2 -2
  28. package/lib/components/inputs/multi-row-secondary-text-input/index.d.ts +1 -0
  29. package/lib/components/inputs/multi-row-secondary-text-input/interfaces.d.ts +10 -0
  30. package/lib/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.d.ts +3 -0
  31. package/lib/components/inputs/search-autocomplete-input/index.d.ts +1 -0
  32. package/lib/components/inputs/search-autocomplete-input/interfaces.d.ts +26 -0
  33. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/index.d.ts +1 -0
  34. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/interfaces.d.ts +11 -0
  35. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/search-autocomplete-results-box.d.ts +6 -0
  36. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/index.d.ts +1 -0
  37. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/interfaces.d.ts +9 -0
  38. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/search-autocomplete-row.d.ts +6 -0
  39. package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.d.ts +6 -0
  40. package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +0 -1
  41. package/lib/components/inputs/secondary-text-input/interfaces.d.ts +6 -1
  42. package/lib/components/labels/base-label/base-label.d.ts +0 -1
  43. package/lib/components/meters/multi-option-discrete-outline-meter/interfaces.d.ts +1 -0
  44. package/lib/components/modals/modal/interfaces.d.ts +8 -4
  45. package/lib/components/modals/primary-modal/interfaces.d.ts +0 -4
  46. package/lib/components/radio-button/radio-button.d.ts +0 -1
  47. package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +0 -1
  48. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +0 -1
  49. package/lib/components/selectors/primary-selector/primary-selector.d.ts +0 -1
  50. package/lib/components/selectors/secondary-custom-selector/index.d.ts +1 -0
  51. package/lib/components/selectors/secondary-custom-selector/interfaces.d.ts +6 -0
  52. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/index.d.ts +1 -0
  53. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/interfaces.d.ts +5 -0
  54. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/secondary-custom-selector-option-row.d.ts +3 -0
  55. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/index.d.ts +1 -0
  56. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/interfaces.d.ts +5 -0
  57. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.d.ts +2 -0
  58. package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.d.ts +2 -0
  59. package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +0 -1
  60. package/lib/components/selectors/selector/selector.d.ts +0 -1
  61. package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +0 -1
  62. package/lib/components/selectors/selector-v2/selector-v2.d.ts +0 -1
  63. package/lib/components/selectors/tertiary-custom-selector/index.d.ts +1 -0
  64. package/lib/components/selectors/tertiary-custom-selector/interfaces.d.ts +3 -0
  65. package/lib/components/selectors/tertiary-custom-selector/tertiary-custom-selector.d.ts +3 -0
  66. package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +0 -1
  67. package/lib/components/slider/partials/step-circles/step-circles.d.ts +0 -1
  68. package/lib/components/slider/slider.d.ts +0 -1
  69. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +0 -1
  70. package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
  71. package/lib/components/tabs/tab-bar-v2/interfaces.d.ts +5 -0
  72. package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +3 -1
  73. package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +0 -1
  74. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
  75. package/lib/components/texts/base-text/base-text.d.ts +0 -1
  76. package/lib/components/texts/base-text-v2/interfaces.d.ts +4 -0
  77. package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +0 -1
  78. package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +0 -1
  79. package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +0 -1
  80. package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +0 -1
  81. package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +0 -1
  82. package/lib/components/texts/fourty-bold/fourty-bold.d.ts +0 -1
  83. package/lib/components/texts/no-translate/no-translate.d.ts +0 -1
  84. package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +0 -1
  85. package/lib/components/texts/ten-sb/ten-sb.d.ts +0 -1
  86. package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +0 -1
  87. package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +0 -1
  88. package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +0 -1
  89. package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +0 -1
  90. package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +0 -1
  91. package/lib/components/texts/twelve-regular/twelve-regular.d.ts +0 -1
  92. package/lib/components/texts/twelve-sb/twelve-sb.d.ts +0 -1
  93. package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +0 -1
  94. package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +0 -1
  95. package/lib/components/tooltips/base-tooltip/interfaces.d.ts +1 -1
  96. package/lib/components/tooltips/primary-info-tooltip/interfaces.d.ts +2 -1
  97. package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/interfaces.d.ts +2 -1
  98. package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +0 -1
  99. package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +0 -1
  100. package/lib/core/theme.d.ts +20 -7
  101. package/lib/index.d.ts +6 -0
  102. package/lib/index.js +1 -1
  103. package/package.json +2 -1
@@ -4,7 +4,7 @@ export interface AccordionProps extends BaseComponentProps {
4
4
  /**
5
5
  * The button's width
6
6
  */
7
- width?: Array<string>;
7
+ width?: string | string[];
8
8
  /**
9
9
  * Text that will be shown when the accordion is closed.
10
10
  */
@@ -53,7 +53,7 @@ export interface AccordionProps extends BaseComponentProps {
53
53
  /**
54
54
  * paddingX of wrapper.
55
55
  */
56
- px?: Array<string>;
56
+ px?: string | string[];
57
57
  /**
58
58
  * paddingY of wrapper.
59
59
  */
@@ -61,7 +61,7 @@ export interface AccordionProps extends BaseComponentProps {
61
61
  /**
62
62
  * padding of wrapper.
63
63
  */
64
- p?: Array<string>;
64
+ p?: string | string[];
65
65
  /**
66
66
  * Should the arrow be hidden?
67
67
  */
@@ -89,4 +89,12 @@ export interface AccordionProps extends BaseComponentProps {
89
89
  * disable CSS Flex if pdf flow.
90
90
  */
91
91
  isPDFflow?: boolean;
92
+ /**
93
+ * Accordion arrow color. Defaults to blue.
94
+ */
95
+ arrowColor?: string;
96
+ /**
97
+ * Accordion arrow color in the opened state.
98
+ */
99
+ openedArrowColor?: string;
92
100
  }
@@ -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
@@ -2,6 +2,7 @@ import { ReactNode } from "react";
2
2
  import { History } from "history";
3
3
  import { BaseComponentProps } from "../../interfaces";
4
4
  import { LoadingSpinnerProps as LoadingIconProps } from "../../animations/loading-spinner/interfaces";
5
+ import { SxProps } from "rebass";
5
6
  /**
6
7
  * Defines the button component's properties. You cannot pass
7
8
  * both onClick and link props at the same time
@@ -164,4 +165,8 @@ export interface ButtonProps extends BaseComponentProps {
164
165
  * Style props passed to the loadingIcon when loading is true
165
166
  */
166
167
  loadingIconProps?: LoadingIconProps;
168
+ /**
169
+ * Button component sx.
170
+ */
171
+ sx?: SxProps["sx"];
167
172
  }
@@ -2,4 +2,4 @@ import { ButtonProps } from "../../button";
2
2
  /**
3
3
  * Additional props we want to add
4
4
  */
5
- export declare type CtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "height" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "borderWidth" | "borderRadius" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "v1" | "transition" | "m" | "mt" | "mr" | "mb" | "ml" | "padding" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight" | "letterSpacing">;
5
+ export declare type CtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "height" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "borderWidth" | "borderRadius" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "v1" | "transition" | "m" | "mt" | "mr" | "mb" | "ml" | "padding" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight" | "letterSpacing" | "sx">;
@@ -1,2 +1,2 @@
1
1
  import { CtaButtonProps } from "../cta-button";
2
- export declare type PrimaryBlueButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "height" | "borderRadius" | "v1" | "m" | "mt" | "mr" | "mb" | "ml" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight">;
2
+ export declare type PrimaryBlueButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "height" | "borderRadius" | "v1" | "m" | "mt" | "mr" | "mb" | "ml" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight" | "sx">;
@@ -1,2 +1,2 @@
1
1
  import { CtaButtonProps } from "../cta-button";
2
- export declare type SecondaryBlueButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "height" | "borderRadius" | "v1" | "m" | "mt" | "mr" | "mb" | "ml" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight">;
2
+ export declare type SecondaryBlueButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "height" | "borderRadius" | "v1" | "m" | "mt" | "mr" | "mb" | "ml" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight" | "sx">;
@@ -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,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
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MaxWidthContainerProps } from "./interfaces";
3
2
  export declare const MaxWidthContainer: (props: MaxWidthContainerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SectionContainerProps } from "./interfaces";
3
2
  /**
4
3
  * The SectionContainer has responsive behavior
@@ -1,4 +1,5 @@
1
- import React from "react";
1
+ import React, { CSSProperties } from "react";
2
+ import { SxProps } from "rebass";
2
3
  export interface CustomScrollbarBoxProps {
3
4
  /**
4
5
  * Content inside the scroll box
@@ -11,11 +12,11 @@ export interface CustomScrollbarBoxProps {
11
12
  /**
12
13
  * Height of the box
13
14
  */
14
- height: Array<string>;
15
+ height: string | string[];
15
16
  /**
16
17
  * Width of the box
17
18
  */
18
- width: Array<string>;
19
+ width: string | string[];
19
20
  /**
20
21
  * Color of the background of the scrollbar
21
22
  */
@@ -31,5 +32,25 @@ export interface CustomScrollbarBoxProps {
31
32
  /**
32
33
  * Padding around the content
33
34
  */
34
- p?: Array<string>;
35
+ p?: string | string[];
36
+ /**
37
+ * Y-overflow of the content
38
+ */
39
+ overflowY?: CSSProperties["overflowY"];
40
+ /**
41
+ * Max height of the content
42
+ */
43
+ maxHeight?: string | string[];
44
+ /**
45
+ * Sx prop to customize inner container
46
+ */
47
+ sx?: SxProps["sx"];
48
+ /**
49
+ * Whether scrollbar should appear only on hover.
50
+ */
51
+ makeVisibleOnHoverOnly?: boolean;
52
+ /**
53
+ * Hover with of the scroll bar.
54
+ */
55
+ hoverScrollbarWidth?: string | string[];
35
56
  }
@@ -1,4 +1,5 @@
1
1
  import { BaseComponentProps } from "../../interfaces";
2
+ import { SxProps } from "rebass";
2
3
  export interface DividerProps extends BaseComponentProps {
3
4
  /**
4
5
  * The divider's width
@@ -16,4 +17,8 @@ export interface DividerProps extends BaseComponentProps {
16
17
  * The opacity of the divider
17
18
  */
18
19
  opacity?: string;
20
+ /**
21
+ * Prop to customize divider.
22
+ */
23
+ sx?: SxProps["sx"];
19
24
  }
@@ -1,2 +1,2 @@
1
1
  import { DividerProps } from "../divider";
2
- export declare type HorizontalDividerProps = Pick<DividerProps, "height" | "width" | "color" | "m" | "mt" | "mr" | "mb" | "ml" | "opacity">;
2
+ export declare type HorizontalDividerProps = Omit<DividerProps, "variant">;
@@ -1,2 +1,2 @@
1
1
  import { DividerProps } from "../divider";
2
- export declare type VerticalDividerProps = Pick<DividerProps, "height" | "width" | "color" | "m" | "mt" | "mr" | "mb" | "ml">;
2
+ export declare type VerticalDividerProps = Omit<DividerProps, "variant">;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FeatureExplanationProps } from "./interfaces";
3
2
  export declare const FeatureExplanation: (props: FeatureExplanationProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { PrimaryDateRangeInput } from "./primary-date-range-input";
@@ -0,0 +1,21 @@
1
+ import { BaseDateRangeInputProps } from "../base-date-range-input";
2
+ export interface PrimaryDateRangeInputProps extends Omit<BaseDateRangeInputProps, "showCalendar" | "children" | "onClose"> {
3
+ width?: string | string[];
4
+ /**
5
+ * Label props.
6
+ */
7
+ label?: string;
8
+ labelColor?: string;
9
+ /**
10
+ * Text to be displayed inside of input.
11
+ */
12
+ text?: string;
13
+ /**
14
+ * Placeholder to be displayed inside of input if text isn't specified.
15
+ */
16
+ placeholder?: string;
17
+ /**
18
+ * Distance between label and input.
19
+ */
20
+ gap?: string | string[];
21
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { PrimaryDateRangeInputProps as Props } from "./interfaces";
3
+ export declare const PrimaryDateRangeInput: React.FC<Props>;
@@ -16,7 +16,7 @@ export declare type InputProps = BaseComponentProps & {
16
16
  /**
17
17
  * The padding to apply to the input.
18
18
  */
19
- padding?: Array<string>;
19
+ padding?: string | string[];
20
20
  /**
21
21
  * The text alignment to use for the input
22
22
  */
@@ -24,7 +24,7 @@ export declare type InputProps = BaseComponentProps & {
24
24
  /**
25
25
  * The width of the input element
26
26
  */
27
- width?: Array<string>;
27
+ width?: string | string[];
28
28
  /**
29
29
  * The input's placeholder
30
30
  */
@@ -0,0 +1 @@
1
+ export { MultiRowSecondaryTextInput } from "./multi-row-secondary-text-input";
@@ -0,0 +1,10 @@
1
+ import { SecondaryTextInputProps } from "../secondary-text-input";
2
+ export interface MultiRowSecondaryTextInputProps extends Omit<SecondaryTextInputProps, "value" | "onChange"> {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ fontSize?: number;
6
+ fontWeight?: number;
7
+ rows?: number;
8
+ lineHeight?: number;
9
+ underlineColor?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { MultiRowSecondaryTextInputProps as Props } from "./interfaces";
3
+ export declare const MultiRowSecondaryTextInput: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { SearchAutocompleteInput } from "./search-autocomplete-input";
@@ -0,0 +1,26 @@
1
+ import { SxProps } from "rebass";
2
+ import { SecondaryTextInputProps } from "../secondary-text-input";
3
+ export interface SearchAutocompleteInputProps<T extends {
4
+ id: string;
5
+ } = {
6
+ id: string;
7
+ }> extends Omit<SecondaryTextInputProps, "sx"> {
8
+ searchValue: string;
9
+ onSearch: (newSearchValue: string) => void;
10
+ onSelect: (newValue: SearchAutocompleteOption<T>) => void;
11
+ hasSelection: boolean;
12
+ results: SearchAutocompleteOption<T>[];
13
+ rowsDisplayed?: number;
14
+ rowHeight?: number;
15
+ containerSx?: SxProps["sx"];
16
+ inputSx?: SxProps["sx"];
17
+ }
18
+ export interface SearchAutocompleteOption<T extends {
19
+ id: string;
20
+ } = {
21
+ id: string;
22
+ }> {
23
+ id: string;
24
+ title: string;
25
+ value: T;
26
+ }
@@ -0,0 +1 @@
1
+ export { SearchAutocompleteResultsBox } from "./search-autocomplete-results-box";
@@ -0,0 +1,11 @@
1
+ import { SearchAutocompleteOption } from "../../interfaces";
2
+ export interface SearchAutocompleteResultsBoxProps<T extends {
3
+ id: string;
4
+ } = {
5
+ id: string;
6
+ }> {
7
+ results: SearchAutocompleteOption<T>[];
8
+ onSelect: (newValue: SearchAutocompleteOption<T>) => void;
9
+ rowsDisplayed: number;
10
+ rowHeight: number;
11
+ }
@@ -0,0 +1,6 @@
1
+ import { SearchAutocompleteResultsBoxProps as Props } from "./interfaces";
2
+ export declare const SearchAutocompleteResultsBox: <T extends {
3
+ id: string;
4
+ } = {
5
+ id: string;
6
+ }>(props: Props<T>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { SearchAutocompleteRow } from "./search-autocomplete-row";
@@ -0,0 +1,9 @@
1
+ export interface SearchAutocompleteRowProps<T extends {
2
+ id: string;
3
+ } = {
4
+ id: string;
5
+ }> {
6
+ onClick: () => void;
7
+ title: string;
8
+ height: number;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { SearchAutocompleteRowProps as Props } from "./interfaces";
2
+ export declare const SearchAutocompleteRow: <T extends {
3
+ id: string;
4
+ } = {
5
+ id: string;
6
+ }>(props: Props<T>) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { SearchAutocompleteInputProps as Props } from "./interfaces";
2
+ export declare const SearchAutocompleteInput: <T extends {
3
+ id: string;
4
+ } = {
5
+ id: string;
6
+ }>(props: Props<T>) => 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,9 +1,10 @@
1
1
  import { ResponsiveTextV2Props } from "../../texts/responsive-text-v2";
2
2
  import { PrimaryTextInputProps } from "../primary-text-input";
3
+ import { SxProps } from "rebass";
3
4
  /**
4
5
  * Defines the SecondaryTextInput component's properties.
5
6
  */
6
- export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled"> & {
7
+ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled" | "sx"> & {
7
8
  /**
8
9
  * The label for the text input
9
10
  */
@@ -36,4 +37,8 @@ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onCha
36
37
  * Default value: ["0px"].
37
38
  */
38
39
  labelMargin?: string | string[];
40
+ /**
41
+ * Padding of the input element.
42
+ */
43
+ inputSx?: SxProps["sx"];
39
44
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { BaseLabelProps } from "./interfaces";
3
2
  export declare const BaseLabel: (props: BaseLabelProps) => JSX.Element;
@@ -9,5 +9,6 @@ export interface MultiOptionDiscreteOutlineMeterProps<T> extends Omit<OutlineMet
9
9
  export interface DiscreteOutlineMeterOption<T> {
10
10
  label?: string;
11
11
  value: T;
12
+ labelColor?: string;
12
13
  }
13
14
  export declare type SmallMultiOptionDiscreteOutlineMeterProps<T> = MultiOptionDiscreteOutlineMeterProps<T>;
@@ -32,7 +32,7 @@ export interface ModalProps {
32
32
  /**
33
33
  * Width property of the modal.
34
34
  */
35
- width?: Array<string>;
35
+ width?: string | string[];
36
36
  /**
37
37
  * Boolean to open up the pop up.
38
38
  */
@@ -40,19 +40,19 @@ export interface ModalProps {
40
40
  /**
41
41
  * Optional change to the container's borderRadius. Default value: ["5px"]
42
42
  */
43
- borderRadius?: Array<string>;
43
+ borderRadius?: string | string[];
44
44
  /**
45
45
  * Optional change for the default padding. This padding is
46
46
  * for the outer container, and not inside the popup itself.
47
47
  * Default value: ["30px", "150px"],
48
48
  */
49
- outerPadding?: Array<string>;
49
+ outerPadding?: string | string[];
50
50
  /**
51
51
  * Optional change for the default inner padding. This adds padding
52
52
  * for the components inside the outer popup container.
53
53
  * Default value: ["40px 20px", "50px"]
54
54
  */
55
- innerPadding?: Array<string>;
55
+ innerPadding?: string | string[];
56
56
  /**
57
57
  * Optional ability to close the modal when clicking outside the content
58
58
  * False by default
@@ -69,4 +69,8 @@ export interface ModalProps {
69
69
  * Additional props for the modal outer container.
70
70
  */
71
71
  containerSx?: SxProps["sx"];
72
+ /**
73
+ * Additional props for the modal inner container.
74
+ */
75
+ innerSx?: SxProps["sx"];
72
76
  }
@@ -8,8 +8,4 @@ export interface PrimaryModalProps extends ModalProps {
8
8
  * text content of the modal
9
9
  */
10
10
  text: string;
11
- /**
12
- * Display close button
13
- */
14
- showXIcon?: boolean;
15
11
  }
@@ -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" | "translateSelect">) => 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 { SecondaryCustomSelector } from "./secondary-custom-selector";
@@ -0,0 +1,6 @@
1
+ import { SelectorV2Props } from "../selector-v2";
2
+ import { SxProps } from "rebass";
3
+ export interface SecondaryCustomSelectorProps<T extends string = string> extends Pick<SelectorV2Props<T>, "options" | "value" | "onChange" | "width" | "variant"> {
4
+ label: string;
5
+ containerSx?: SxProps["sx"];
6
+ }
@@ -0,0 +1 @@
1
+ export { SecondaryCustomSelectorOptionRow } from "./secondary-custom-selector-option-row";
@@ -0,0 +1,5 @@
1
+ export interface SecondaryCustomSelectorOptionRowProps {
2
+ title: string;
3
+ onClick: () => void;
4
+ isLast?: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SecondaryCustomSelectorOptionRowProps as Props } from "./interfaces";
3
+ export declare const SecondaryCustomSelectorOptionRow: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { SecondaryCustomSelectorOptionsBox } from "./secondary-custom-selector-options-box";
@@ -0,0 +1,5 @@
1
+ import { SelectorOptionV2 } from "../../../selector-v2";
2
+ export interface SecondaryCustomSelectorOptionsBoxProps<T extends string = string> {
3
+ options: SelectorOptionV2<T>[];
4
+ onSelect: (option: SelectorOptionV2<T>) => void;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { SecondaryCustomSelectorOptionsBoxProps as Props } from "./interfaces";
2
+ export declare const SecondaryCustomSelectorOptionsBox: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SecondaryCustomSelectorProps as Props } from "./interfaces";
2
+ export declare const SecondaryCustomSelector: <T extends string = string>(props: Props<T>) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SecondarySelectorProps as Props } from "./interfaces";
3
2
  /**
4
3
  * The SecondarySelector.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectorProps as Props } from "./interfaces";
3
2
  export declare const getNoTranslateClass: (flag: boolean) => "no-translate" | undefined;
4
3
  export declare const Selector: <T extends string = string>(props: Props<T>) => JSX.Element;
@@ -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;
@@ -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;
@@ -0,0 +1 @@
1
+ export { TertiaryCustomSelector } from "./tertiary-custom-selector";
@@ -0,0 +1,3 @@
1
+ import { SecondaryCustomSelectorProps } from "../secondary-custom-selector/interfaces";
2
+ export interface TertiaryCustomSelectorProps<T extends string = string> extends Omit<SecondaryCustomSelectorProps, "variant"> {
3
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { TertiaryCustomSelectorProps as Props } from "./interfaces";
3
+ export declare const TertiaryCustomSelector: React.FC<Props>;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabProps } from "./interfaces";
3
2
  export declare const Ribbon: ({ active, activeColor, color, }: {
4
3
  active?: boolean | undefined;
@@ -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, tabHeight, tabMaxWidth, }: TabBarProps<T>): JSX.Element;