@selfdecode/sd-component-library 2.43.10 → 2.43.14

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 (102) hide show
  1. package/lib/components/animations/up-down-arrow/up-down-arrow.d.ts +1 -0
  2. package/lib/components/bicolor-badge/interfaces.d.ts +1 -0
  3. package/lib/components/breadcrumbs/breadcrumb/crumb/interfaces.d.ts +1 -0
  4. package/lib/components/breadcrumbs/secondary-breadcrumb/index.d.ts +1 -0
  5. package/lib/components/breadcrumbs/secondary-breadcrumb/interfaces.d.ts +2 -0
  6. package/lib/components/breadcrumbs/secondary-breadcrumb/secondary-breadcrumb.d.ts +3 -0
  7. package/lib/components/checkboxes/checkbox/checkbox.d.ts +1 -0
  8. package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +1 -0
  9. package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +1 -0
  10. package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +1 -0
  11. package/lib/components/complex/footer/presentational/footer-presentational.d.ts +1 -0
  12. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +1 -0
  13. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +1 -0
  14. package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +1 -0
  15. package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +1 -0
  16. package/lib/components/containers/max-width-container/max-width-container.d.ts +1 -0
  17. package/lib/components/containers/section-container/section-container.d.ts +1 -0
  18. package/lib/components/dividers/divider/interfaces.d.ts +2 -2
  19. package/lib/components/feature-explanation/feature-explanation.d.ts +1 -0
  20. package/lib/components/inputs/autocomplete-input/interfaces.d.ts +4 -0
  21. package/lib/components/inputs/autocomplete-input/partials/results-box/interfaces.d.ts +4 -0
  22. package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +1 -0
  23. package/lib/components/inputs/secondary-number-input/interfaces.d.ts +0 -2
  24. package/lib/components/inputs/secondary-text-input/interfaces.d.ts +6 -6
  25. package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/index.d.ts +1 -0
  26. package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/interfaces.d.ts +5 -0
  27. package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/secondary-input-labels.d.ts +3 -0
  28. package/lib/components/labels/base-label/base-label.d.ts +1 -0
  29. package/lib/components/meters/multi-option-discrete-outline-meter/constants.d.ts +1 -0
  30. package/lib/components/meters/multi-option-discrete-outline-meter/index.d.ts +2 -0
  31. package/lib/components/meters/multi-option-discrete-outline-meter/interfaces.d.ts +13 -0
  32. package/lib/components/meters/multi-option-discrete-outline-meter/multi-option-discrete-outline-meter.d.ts +3 -0
  33. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/discrete-meter-label-pointer.d.ts +3 -0
  34. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/index.d.ts +1 -0
  35. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/interfaces.d.ts +9 -0
  36. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/discrete-meter-needle.d.ts +3 -0
  37. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/index.d.ts +1 -0
  38. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/interfaces.d.ts +24 -0
  39. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/discrete-range.d.ts +3 -0
  40. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/index.d.ts +1 -0
  41. package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/interfaces.d.ts +10 -0
  42. package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/index.d.ts +1 -0
  43. package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/interfaces.d.ts +9 -0
  44. package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/matched-range-label-box.d.ts +3 -0
  45. package/lib/components/meters/multi-option-discrete-outline-meter/small-multi-option-discrete-outline-meter.d.ts +3 -0
  46. package/lib/components/meters/outline-meter/utils.d.ts +2 -1
  47. package/lib/components/pagination-bars/pagination-bar/interfaces.d.ts +2 -1
  48. package/lib/components/radio-button/radio-button.d.ts +1 -0
  49. package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +1 -0
  50. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +2 -1
  51. package/lib/components/selectors/compact-primary-selector/interfaces.d.ts +1 -1
  52. package/lib/components/selectors/primary-selector/interfaces.d.ts +1 -1
  53. package/lib/components/selectors/primary-selector/primary-selector.d.ts +2 -1
  54. package/lib/components/selectors/secondary-selector/interfaces.d.ts +1 -1
  55. package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +1 -0
  56. package/lib/components/selectors/selector/interfaces.d.ts +5 -0
  57. package/lib/components/selectors/selector/selector.d.ts +2 -0
  58. package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -0
  59. package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -0
  60. package/lib/components/selectors/tertiary-selector/interfaces.d.ts +1 -1
  61. package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +2 -1
  62. package/lib/components/slider/partials/step-circles/step-circles.d.ts +1 -0
  63. package/lib/components/slider/slider.d.ts +1 -0
  64. package/lib/components/tabs/tab-bar/interfaces.d.ts +8 -0
  65. package/lib/components/tabs/tab-bar/partials/tab/interfaces.d.ts +9 -1
  66. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +2 -1
  67. package/lib/components/tabs/tab-bar/tab-bar.d.ts +2 -1
  68. package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +1 -0
  69. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +1 -0
  70. package/lib/components/texts/base-text/base-text.d.ts +1 -0
  71. package/lib/components/texts/base-text-v2/interfaces.d.ts +5 -1
  72. package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +1 -0
  73. package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +1 -0
  74. package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +1 -0
  75. package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +1 -0
  76. package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +1 -0
  77. package/lib/components/texts/fourty-bold/fourty-bold.d.ts +1 -0
  78. package/lib/components/texts/no-translate/no-translate.d.ts +1 -0
  79. package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +1 -0
  80. package/lib/components/texts/ten-sb/ten-sb.d.ts +1 -0
  81. package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +1 -0
  82. package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +1 -0
  83. package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +1 -0
  84. package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +1 -0
  85. package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +1 -0
  86. package/lib/components/texts/twelve-regular/twelve-regular.d.ts +1 -0
  87. package/lib/components/texts/twelve-sb/twelve-sb.d.ts +1 -0
  88. package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +1 -0
  89. package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +1 -0
  90. package/lib/components/tooltips/actions-tooltip/actions-tooltip.d.ts +3 -0
  91. package/lib/components/tooltips/actions-tooltip/index.d.ts +1 -0
  92. package/lib/components/tooltips/actions-tooltip/interfaces.d.ts +10 -0
  93. package/lib/components/tooltips/actions-tooltip/partials/action-box/action-box.d.ts +3 -0
  94. package/lib/components/tooltips/actions-tooltip/partials/action-box/index.d.ts +1 -0
  95. package/lib/components/tooltips/actions-tooltip/partials/action-box/interfaces.d.ts +5 -0
  96. package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +1 -0
  97. package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +1 -0
  98. package/lib/core/custom-hooks.d.ts +10 -0
  99. package/lib/core/theme.d.ts +14 -0
  100. package/lib/index.d.ts +3 -0
  101. package/lib/index.js +1 -1
  102. package/package.json +1 -1
@@ -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,6 +1,7 @@
1
1
  import { CSSProperties } from "react";
2
2
  export declare type CrumbType = {
3
3
  title: string;
4
+ dontTranslate?: boolean;
4
5
  onClick?: () => void;
5
6
  };
6
7
  /**
@@ -0,0 +1 @@
1
+ export { SecondaryBreadcrumb } from "./secondary-breadcrumb";
@@ -0,0 +1,2 @@
1
+ import { BreadCrumbProps } from "../breadcrumb";
2
+ export declare type SecondaryBreadcrumbProps = Omit<BreadCrumbProps, "variant">;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SecondaryBreadcrumbProps as Props } from "./interfaces";
3
+ export declare const SecondaryBreadcrumb: React.FC<Props>;
@@ -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;
@@ -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
@@ -3,11 +3,11 @@ export interface DividerProps extends BaseComponentProps {
3
3
  /**
4
4
  * The divider's width
5
5
  */
6
- width?: Array<string>;
6
+ width?: string | string[];
7
7
  /**
8
8
  * The divider's height
9
9
  */
10
- height?: Array<string>;
10
+ height?: string | string[];
11
11
  /**
12
12
  * The color of the divider
13
13
  */
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FeatureExplanationProps } from "./interfaces";
2
3
  export declare const FeatureExplanation: (props: FeatureExplanationProps) => JSX.Element;
@@ -21,6 +21,10 @@ export interface AutocompleteInputProps<T> extends Pick<SecondaryTextInputProps,
21
21
  * One possible use case is if you want don't want search/select text on the text field to dissapear, when switching between mobile to desktop layout.
22
22
  */
23
23
  initialValue?: string;
24
+ /**
25
+ * Whether to translate input and options.
26
+ */
27
+ translateContent?: boolean;
24
28
  }
25
29
  export interface AutocompleteOption<T> {
26
30
  /**
@@ -9,4 +9,8 @@ export interface ResultsBoxProps<T> {
9
9
  * Callback to be executed when option is selected.
10
10
  */
11
11
  onSelect: (option: string) => void;
12
+ /**
13
+ * Whether to allow translation of box content.
14
+ */
15
+ translateContent?: boolean;
12
16
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SearchBoxProps } from "./interfaces";
2
3
  export declare const SearchBox: (props: SearchBoxProps) => JSX.Element;
@@ -5,8 +5,6 @@ import { SecondaryTextInputProps } from "../secondary-text-input";
5
5
  */
6
6
  export interface SecondaryNumberInputProps extends NumberInputProps {
7
7
  label?: string;
8
- min?: number;
9
- max?: number;
10
8
  inputPadding?: string[];
11
9
  labelMargin?: string[];
12
10
  errorMessage?: string;
@@ -1,4 +1,4 @@
1
- import { ResponsiveTextProps } from "../../texts/responsive-text";
1
+ import { ResponsiveTextV2Props } from "../../texts/responsive-text-v2";
2
2
  import { PrimaryTextInputProps } from "../primary-text-input";
3
3
  /**
4
4
  * Defines the SecondaryTextInput component's properties.
@@ -16,24 +16,24 @@ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onCha
16
16
  /**
17
17
  * Default value: ["3px"]
18
18
  */
19
- ml?: ResponsiveTextProps["ml"];
19
+ ml?: ResponsiveTextV2Props["ml"];
20
20
  /**
21
21
  * You can use negative values to show the content
22
22
  * a little bit above the label. Default value: undefined
23
23
  */
24
- mt?: ResponsiveTextProps["mt"];
24
+ mt?: ResponsiveTextV2Props["mt"];
25
25
  /**
26
26
  * Default value: "#9BA2B4", "cl_grey", "grey"
27
27
  */
28
- color?: ResponsiveTextProps["color"];
28
+ color?: ResponsiveTextV2Props["color"];
29
29
  /**
30
30
  * Default value: [[10, "semi-bold"]]
31
31
  */
32
- fontSizeWeight?: ResponsiveTextProps["fontSizeWeight"];
32
+ fontSizeWeight?: ResponsiveTextV2Props["fontSizeWeight"];
33
33
  };
34
34
  /**
35
35
  * Distance between the label and the input.
36
36
  * Default value: ["0px"].
37
37
  */
38
- labelMargin?: string[];
38
+ labelMargin?: string | string[];
39
39
  };
@@ -0,0 +1 @@
1
+ export { SecondaryInputLabels } from "./secondary-input-labels";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SecondaryTextInputProps } from "../../interfaces";
3
+ export interface SecondaryInputLabelsProps extends Pick<SecondaryTextInputProps, "label" | "secondLabel" | "labelMargin" | "errorMessage"> {
4
+ secondLabelTextTransform?: React.CSSProperties["textTransform"];
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SecondaryInputLabelsProps as Props } from "./interfaces";
3
+ export declare const SecondaryInputLabels: React.FC<Props>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BaseLabelProps } from "./interfaces";
2
3
  export declare const BaseLabel: (props: BaseLabelProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const defaultPointerWidth = 1;
@@ -0,0 +1,2 @@
1
+ export { MultiOptionDiscreteOutlineMeter } from "./multi-option-discrete-outline-meter";
2
+ export { SmallMultiOptionDiscreteOutlineMeter } from "./small-multi-option-discrete-outline-meter";
@@ -0,0 +1,13 @@
1
+ import { OutlineMeterProps } from "../outline-meter";
2
+ export interface MultiOptionDiscreteOutlineMeterProps<T> extends Omit<OutlineMeterProps, "ranges" | "value" | "segmented" | "innerPointRadius" | "pointStrokeWidth"> {
3
+ value: T;
4
+ options: DiscreteOutlineMeterOption<T>[];
5
+ matchedRangeColor?: string;
6
+ notMatchedRangeColor?: string;
7
+ pointerWidth?: number;
8
+ }
9
+ export interface DiscreteOutlineMeterOption<T> {
10
+ label?: string;
11
+ value: T;
12
+ }
13
+ export declare type SmallMultiOptionDiscreteOutlineMeterProps<T> = MultiOptionDiscreteOutlineMeterProps<T>;
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { MultiOptionDiscreteOutlineMeterProps as Props } from "./interfaces";
3
+ export declare function MultiOptionDiscreteOutlineMeter<T>(props: PropsWithChildren<Props<T>>): JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { DiscreteMeterLabelPointerProps as Props } from "./interfaces";
3
+ export declare const DiscreteMeterLabelPointer: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { DiscreteMeterLabelPointer } from "./discrete-meter-label-pointer";
@@ -0,0 +1,9 @@
1
+ export interface DiscreteMeterLabelPointerProps {
2
+ pointerLength: number;
3
+ pointerWidth: number;
4
+ radius: number;
5
+ alpha: number;
6
+ color: string;
7
+ label?: string;
8
+ textBottomMargin: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { DiscreteMeterNeedleProps as Props } from "./interfaces";
3
+ export declare function DiscreteMeterNeedle<T>(props: PropsWithChildren<Props<T>>): JSX.Element;
@@ -0,0 +1 @@
1
+ export { DiscreteMeterNeedle } from "./discrete-meter-needle";
@@ -0,0 +1,24 @@
1
+ import { MultiOptionDiscreteOutlineMeterProps } from "../../interfaces";
2
+ export interface DiscreteMeterNeedleProps<T> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "value" | "options" | "arc" | "distanceBetweenRanges" | "gaugeWidth">> {
3
+ /**
4
+ * Needle circle stroke width.
5
+ */
6
+ innerCircleStrokeWidth: number;
7
+ /**
8
+ * Needle circle radius.
9
+ */
10
+ innerCircleRadius: number;
11
+ /**
12
+ * Distance from range edge to needle.
13
+ */
14
+ distanceFromRange: number;
15
+ /**
16
+ * Thickness of the needle pointer.
17
+ */
18
+ needleWidth: number;
19
+ /**
20
+ * Needle color.
21
+ */
22
+ needleColor: string;
23
+ diameter: number;
24
+ }
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { DiscreteRangeProps as Props } from "./interfaces";
3
+ export declare function DiscreteRange<T>(props: PropsWithChildren<Props<T>>): JSX.Element;
@@ -0,0 +1 @@
1
+ export { DiscreteRange } from "./discrete-range";
@@ -0,0 +1,10 @@
1
+ import { DiscreteOutlineMeterOption, MultiOptionDiscreteOutlineMeterProps } from "../../interfaces";
2
+ export interface DiscreteRangeProps<T> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "gaugeWidth" | "arc" | "distanceBetweenRanges" | "pointerWidth">>, Pick<DiscreteOutlineMeterOption<T>, "label"> {
3
+ idx: number;
4
+ color: string;
5
+ diameter: number;
6
+ totalRanges: number;
7
+ showLabel: boolean;
8
+ isMatchedRange: boolean;
9
+ pointerLength: number;
10
+ }
@@ -0,0 +1 @@
1
+ export { MatchedRangeLabelBox } from "./matched-range-label-box";
@@ -0,0 +1,9 @@
1
+ import { MultiOptionDiscreteOutlineMeterProps } from "../../interfaces";
2
+ export interface MatchedRangeLabelBoxProps<T = string> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "distanceBetweenRanges" | "arc">> {
3
+ color: string;
4
+ radius: number;
5
+ label?: string;
6
+ idx: number;
7
+ totalRanges: number;
8
+ pointerLength: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { MatchedRangeLabelBoxProps as Props } from "./interfaces";
3
+ export declare const MatchedRangeLabelBox: React.FC<Props>;
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { SmallMultiOptionDiscreteOutlineMeterProps as Props } from "./interfaces";
3
+ export declare function SmallMultiOptionDiscreteOutlineMeter<T>(props: PropsWithChildren<Props<T>>): JSX.Element;
@@ -4,8 +4,9 @@ export declare const degToRad: (deg: number) => number;
4
4
  * Returns coordinates of the point on the arc
5
5
  * @param r Circle radius.
6
6
  * @param alpha Angle between horizontal axis and radius to the point on the arc.
7
+ * @param baseRadius radius of the reference circle.
7
8
  */
8
- export declare const getCoordinateForArc: (r: number, alpha: number) => {
9
+ export declare const getCoordinateForArc: (r: number, alpha: number, baseRadius?: number) => {
9
10
  x: number;
10
11
  y: number;
11
12
  };
@@ -1,4 +1,5 @@
1
- export interface PaginationBarProps {
1
+ import { MaxWidthContainerProps } from "../../containers/max-width-container/interfaces";
2
+ export interface PaginationBarProps extends Pick<MaxWidthContainerProps, "bgSx" | "innerSx"> {
2
3
  /**
3
4
  * The number of current page
4
5
  */
@@ -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
- 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;
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" | "translateSelect">) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { SelectorProps } from "../selector";
2
- export declare type CompactPrimarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin" | "textTransform">;
2
+ export declare type CompactPrimarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin" | "textTransform" | "translateSelect">;
@@ -1,2 +1,2 @@
1
1
  import { SelectorProps } from "../selector";
2
- export declare type PrimarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "disabledTextValue" | "hideDefaultOnSelect" | "selectElementHeight" | "textTransform">;
2
+ export declare type PrimarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "disabledTextValue" | "hideDefaultOnSelect" | "selectElementHeight" | "textTransform" | "translateSelect">;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { PrimarySelectorProps as Props } from "./interfaces";
2
3
  /**
3
4
  * The PrimarySelector.
4
5
  */
5
- export declare const PrimarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "textTransform" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "selectElementHeight">) => JSX.Element;
6
+ export declare const PrimarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "textTransform" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "selectElementHeight" | "translateSelect">) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { SelectorProps } from "../selector";
2
- export declare type SecondarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "disabledTextValue" | "hideDefaultOnSelect" | "secondLabel" | "selectElementHeight" | "errorMessage" | "hideErrorText" | "textTransform"> & {
2
+ export declare type SecondarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "disabledTextValue" | "hideDefaultOnSelect" | "secondLabel" | "selectElementHeight" | "errorMessage" | "hideErrorText" | "textTransform" | "translateSelect"> & {
3
3
  /**
4
4
  * Optional amount of spacing between the
5
5
  * selectorLabel and the selectInput. Default value: ["3px"]
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SecondarySelectorProps as Props } from "./interfaces";
2
3
  /**
3
4
  * The SecondarySelector.
@@ -89,5 +89,10 @@ export declare type SelectorProps<T extends string = string> = BaseComponentProp
89
89
  * By default Selector checks the title property of the SelectorOption object. With this prop you can change this behaviour to check the value property instead.
90
90
  */
91
91
  useValueInsteadOfTitle?: boolean;
92
+ /**
93
+ * Whether to translate content of selector.
94
+ */
95
+ translateSelect?: boolean;
96
+ translateDefaultOption?: boolean;
92
97
  };
93
98
  export declare type CurrentSelection<T extends string = string> = SelectorOption<T> | undefined;
@@ -1,2 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectorProps as Props } from "./interfaces";
3
+ export declare const getNoTranslateClass: (flag: boolean) => "no-translate" | undefined;
2
4
  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,2 +1,2 @@
1
1
  import { SelectorProps } from "../selector";
2
- export declare type TertiarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "gap" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin" | "selectElementHeight" | "errorMessage" | "hideErrorText" | "textTransform" | "secondLabel" | "defaultOptionColor" | "selectedOptionColor" | "errorBackground" | "onFocus" | "id">;
2
+ export declare type TertiarySelectorProps<T extends string = string> = Pick<SelectorProps<T>, "name" | "defaultValue" | "options" | "selectorLabel" | "onChange" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "gap" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin" | "selectElementHeight" | "errorMessage" | "hideErrorText" | "textTransform" | "secondLabel" | "defaultOptionColor" | "selectedOptionColor" | "errorBackground" | "onFocus" | "id" | "translateSelect">;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { TertiarySelectorProps as Props } from "./interfaces";
2
3
  /**
3
4
  * The TertiarySelector.
4
5
  */
5
- export declare const TertiarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "id" | "onFocus" | "textTransform" | "gap" | "errorBackground" | "errorMessage" | "hideErrorText" | "secondLabel" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin" | "selectElementHeight" | "defaultOptionColor" | "selectedOptionColor">) => JSX.Element;
6
+ export declare const TertiarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "id" | "onFocus" | "textTransform" | "gap" | "errorBackground" | "errorMessage" | "hideErrorText" | "secondLabel" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin" | "selectElementHeight" | "defaultOptionColor" | "selectedOptionColor" | "translateSelect">) => JSX.Element;
@@ -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;
@@ -41,4 +41,12 @@ export interface TabBarProps<T> {
41
41
  * Width of each tab.
42
42
  */
43
43
  tabWidth?: string | string[];
44
+ /**
45
+ * Height of each tab.
46
+ */
47
+ tabHeight?: string | string[];
48
+ /**
49
+ * Max width of each tab.
50
+ */
51
+ tabMaxWidth?: string | string[];
44
52
  }
@@ -4,6 +4,10 @@ export interface TabProps<T> {
4
4
  * Tab width.
5
5
  */
6
6
  width?: string | string[];
7
+ /**
8
+ * Tab height.
9
+ */
10
+ height?: string | string[];
7
11
  /**
8
12
  * This is the text to be displayed on the tab
9
13
  */
@@ -39,7 +43,7 @@ export interface TabProps<T> {
39
43
  /**
40
44
  * Padding of each tab to be set up externally
41
45
  */
42
- tabPadding: string[];
46
+ tabPadding?: string | string[];
43
47
  /**
44
48
  * Tab background.
45
49
  */
@@ -64,4 +68,8 @@ export interface TabProps<T> {
64
68
  * Optional string to be used as `id` on the tab's html element
65
69
  */
66
70
  elementId?: string;
71
+ /**
72
+ * Tab container max width.
73
+ */
74
+ maxWidth?: string | string[];
67
75
  }
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { TabProps } from "./interfaces";
2
3
  export declare const Ribbon: ({ active, activeColor, color, }: {
3
4
  active?: boolean | undefined;
4
5
  activeColor?: string | undefined;
5
6
  color?: string | undefined;
6
7
  }) => JSX.Element;
7
- export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, elementId, }: TabProps<T>): JSX.Element;
8
+ export declare function Tab<T>({ width, height, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, elementId, maxWidth, }: TabProps<T>): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { TabBarProps } from "./interfaces";
2
- export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, }: TabBarProps<T>): JSX.Element;
3
+ export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, tabHeight, tabMaxWidth, }: TabBarProps<T>): JSX.Element;
@@ -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,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,6 @@
1
+ /// <reference types="react" />
1
2
  import { TextProps } from "rebass";
2
- export declare type BaseTextV2Props = TextProps;
3
+ export interface BaseTextV2Props extends Omit<TextProps, "color"> {
4
+ color?: string | string[];
5
+ textTransform?: React.CSSProperties["textTransform"];
6
+ }
@@ -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;