@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.
- package/lib/components/animations/up-down-arrow/up-down-arrow.d.ts +1 -0
- package/lib/components/bicolor-badge/interfaces.d.ts +1 -0
- package/lib/components/breadcrumbs/breadcrumb/crumb/interfaces.d.ts +1 -0
- package/lib/components/breadcrumbs/secondary-breadcrumb/index.d.ts +1 -0
- package/lib/components/breadcrumbs/secondary-breadcrumb/interfaces.d.ts +2 -0
- package/lib/components/breadcrumbs/secondary-breadcrumb/secondary-breadcrumb.d.ts +3 -0
- package/lib/components/checkboxes/checkbox/checkbox.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +1 -0
- package/lib/components/complex/footer/presentational/footer-presentational.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +1 -0
- package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +1 -0
- package/lib/components/containers/max-width-container/max-width-container.d.ts +1 -0
- package/lib/components/containers/section-container/section-container.d.ts +1 -0
- package/lib/components/dividers/divider/interfaces.d.ts +2 -2
- package/lib/components/feature-explanation/feature-explanation.d.ts +1 -0
- package/lib/components/inputs/autocomplete-input/interfaces.d.ts +4 -0
- package/lib/components/inputs/autocomplete-input/partials/results-box/interfaces.d.ts +4 -0
- package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +1 -0
- package/lib/components/inputs/secondary-number-input/interfaces.d.ts +0 -2
- package/lib/components/inputs/secondary-text-input/interfaces.d.ts +6 -6
- package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/index.d.ts +1 -0
- package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/interfaces.d.ts +5 -0
- package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/secondary-input-labels.d.ts +3 -0
- package/lib/components/labels/base-label/base-label.d.ts +1 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/constants.d.ts +1 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/index.d.ts +2 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/interfaces.d.ts +13 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/multi-option-discrete-outline-meter.d.ts +3 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/discrete-meter-label-pointer.d.ts +3 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/index.d.ts +1 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/interfaces.d.ts +9 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/discrete-meter-needle.d.ts +3 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/index.d.ts +1 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/interfaces.d.ts +24 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/discrete-range.d.ts +3 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/index.d.ts +1 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/interfaces.d.ts +10 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/index.d.ts +1 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/interfaces.d.ts +9 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/matched-range-label-box.d.ts +3 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/small-multi-option-discrete-outline-meter.d.ts +3 -0
- package/lib/components/meters/outline-meter/utils.d.ts +2 -1
- package/lib/components/pagination-bars/pagination-bar/interfaces.d.ts +2 -1
- package/lib/components/radio-button/radio-button.d.ts +1 -0
- package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +1 -0
- package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +2 -1
- package/lib/components/selectors/compact-primary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/primary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +2 -1
- package/lib/components/selectors/secondary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +1 -0
- package/lib/components/selectors/selector/interfaces.d.ts +5 -0
- package/lib/components/selectors/selector/selector.d.ts +2 -0
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -0
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -0
- package/lib/components/selectors/tertiary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +2 -1
- package/lib/components/slider/partials/step-circles/step-circles.d.ts +1 -0
- package/lib/components/slider/slider.d.ts +1 -0
- package/lib/components/tabs/tab-bar/interfaces.d.ts +8 -0
- package/lib/components/tabs/tab-bar/partials/tab/interfaces.d.ts +9 -1
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +2 -1
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +2 -1
- package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +1 -0
- package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +1 -0
- package/lib/components/texts/base-text/base-text.d.ts +1 -0
- package/lib/components/texts/base-text-v2/interfaces.d.ts +5 -1
- package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +1 -0
- package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +1 -0
- package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +1 -0
- package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +1 -0
- package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +1 -0
- package/lib/components/texts/fourty-bold/fourty-bold.d.ts +1 -0
- package/lib/components/texts/no-translate/no-translate.d.ts +1 -0
- package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +1 -0
- package/lib/components/texts/ten-sb/ten-sb.d.ts +1 -0
- package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +1 -0
- package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +1 -0
- package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +1 -0
- package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +1 -0
- package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +1 -0
- package/lib/components/texts/twelve-regular/twelve-regular.d.ts +1 -0
- package/lib/components/texts/twelve-sb/twelve-sb.d.ts +1 -0
- package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +1 -0
- package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +1 -0
- package/lib/components/tooltips/actions-tooltip/actions-tooltip.d.ts +3 -0
- package/lib/components/tooltips/actions-tooltip/index.d.ts +1 -0
- package/lib/components/tooltips/actions-tooltip/interfaces.d.ts +10 -0
- package/lib/components/tooltips/actions-tooltip/partials/action-box/action-box.d.ts +3 -0
- package/lib/components/tooltips/actions-tooltip/partials/action-box/index.d.ts +1 -0
- package/lib/components/tooltips/actions-tooltip/partials/action-box/interfaces.d.ts +5 -0
- package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +1 -0
- package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +1 -0
- package/lib/core/custom-hooks.d.ts +10 -0
- package/lib/core/theme.d.ts +14 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SecondaryBreadcrumb } from "./secondary-breadcrumb";
|
|
@@ -3,11 +3,11 @@ export interface DividerProps extends BaseComponentProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* The divider's width
|
|
5
5
|
*/
|
|
6
|
-
width?:
|
|
6
|
+
width?: string | string[];
|
|
7
7
|
/**
|
|
8
8
|
* The divider's height
|
|
9
9
|
*/
|
|
10
|
-
height?:
|
|
10
|
+
height?: string | string[];
|
|
11
11
|
/**
|
|
12
12
|
* The color of the divider
|
|
13
13
|
*/
|
|
@@ -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
|
/**
|
|
@@ -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 {
|
|
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?:
|
|
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?:
|
|
24
|
+
mt?: ResponsiveTextV2Props["mt"];
|
|
25
25
|
/**
|
|
26
26
|
* Default value: "#9BA2B4", "cl_grey", "grey"
|
|
27
27
|
*/
|
|
28
|
-
color?:
|
|
28
|
+
color?: ResponsiveTextV2Props["color"];
|
|
29
29
|
/**
|
|
30
30
|
* Default value: [[10, "semi-bold"]]
|
|
31
31
|
*/
|
|
32
|
-
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";
|
package/lib/components/inputs/secondary-text-input/partials/secondary-input-labels/interfaces.d.ts
ADDED
|
@@ -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 @@
|
|
|
1
|
+
export declare const defaultPointerWidth = 1;
|
|
@@ -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 @@
|
|
|
1
|
+
export { DiscreteMeterLabelPointer } from "./discrete-meter-label-pointer";
|
|
@@ -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
|
+
}
|
package/lib/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/index.d.ts
ADDED
|
@@ -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
|
+
}
|
|
@@ -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,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"]
|
|
@@ -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,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;
|
|
@@ -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
|
|
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,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TextProps } from "rebass";
|
|
2
|
-
export
|
|
3
|
+
export interface BaseTextV2Props extends Omit<TextProps, "color"> {
|
|
4
|
+
color?: string | string[];
|
|
5
|
+
textTransform?: React.CSSProperties["textTransform"];
|
|
6
|
+
}
|