@selfdecode/sd-component-library 2.43.12 → 2.43.16
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/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/buttons/button/interfaces.d.ts +2 -0
- package/lib/components/buttons/cta/cta-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/primary-blue-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/secondary-blue-button/interfaces.d.ts +1 -1
- package/lib/components/complex/footer/presentational/interfaces.d.ts +3 -2
- package/lib/components/dividers/divider/interfaces.d.ts +2 -2
- package/lib/components/inputs/date-inputs/outlined-date-range-input/interfaces.d.ts +5 -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/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/selectors/primary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +1 -1
- package/lib/components/selectors/secondary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/selector/interfaces.d.ts +1 -0
- package/lib/components/selectors/selector/selector.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 +1 -1
- 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 +1 -1
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +1 -1
- package/lib/components/texts/base-text-v2/interfaces.d.ts +5 -1
- 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/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";
|
|
@@ -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">;
|
|
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">;
|
|
@@ -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">;
|
|
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">;
|
|
@@ -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">;
|
|
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">;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { History } from "history";
|
|
2
|
-
|
|
2
|
+
import { MaxWidthContainerProps } from "../../../containers/max-width-container/interfaces";
|
|
3
|
+
export interface FooterPresentationalProps extends Pick<MaxWidthContainerProps, "bgSx"> {
|
|
3
4
|
/**
|
|
4
5
|
* The history object
|
|
5
6
|
*/
|
|
6
|
-
history
|
|
7
|
+
history?: History;
|
|
7
8
|
}
|
|
@@ -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
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseDateRangeInputProps } from "../base-date-range-input";
|
|
2
|
+
import { SxProps } from "rebass";
|
|
2
3
|
export interface OutlinedDateRangeInputProps extends Omit<BaseDateRangeInputProps, "showCalendar" | "children" | "onClose"> {
|
|
3
4
|
/**
|
|
4
5
|
* Text to be displayed inside of button.
|
|
@@ -43,4 +44,8 @@ export interface OutlinedDateRangeInputProps extends Omit<BaseDateRangeInputProp
|
|
|
43
44
|
* Default value: **undefined**
|
|
44
45
|
*/
|
|
45
46
|
labelText?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Prop to apply styles for the container.
|
|
49
|
+
*/
|
|
50
|
+
containerSx?: SxProps["sx"];
|
|
46
51
|
}
|
|
@@ -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,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" | "translateSelect">;
|
|
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" | "translateDefaultOption">;
|
|
@@ -2,4 +2,4 @@ import { PrimarySelectorProps as Props } from "./interfaces";
|
|
|
2
2
|
/**
|
|
3
3
|
* The PrimarySelector.
|
|
4
4
|
*/
|
|
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" | "translateSelect">) => JSX.Element;
|
|
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" | "translateSelect" | "translateDefaultOption">) => 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" | "translateSelect"> & {
|
|
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" | "translateDefaultOption"> & {
|
|
3
3
|
/**
|
|
4
4
|
* Optional amount of spacing between the
|
|
5
5
|
* selectorLabel and the selectInput. Default value: ["3px"]
|
|
@@ -93,5 +93,6 @@ export declare type SelectorProps<T extends string = string> = BaseComponentProp
|
|
|
93
93
|
* Whether to translate content of selector.
|
|
94
94
|
*/
|
|
95
95
|
translateSelect?: boolean;
|
|
96
|
+
translateDefaultOption?: boolean;
|
|
96
97
|
};
|
|
97
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" | "translateSelect">;
|
|
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" | "translateDefaultOption">;
|
|
@@ -2,4 +2,4 @@ import { TertiarySelectorProps as Props } from "./interfaces";
|
|
|
2
2
|
/**
|
|
3
3
|
* The TertiarySelector.
|
|
4
4
|
*/
|
|
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" | "translateSelect">) => JSX.Element;
|
|
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" | "translateSelect" | "translateDefaultOption">) => 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
|
}
|
|
@@ -4,4 +4,4 @@ export declare const Ribbon: ({ active, activeColor, color, }: {
|
|
|
4
4
|
activeColor?: string | undefined;
|
|
5
5
|
color?: string | undefined;
|
|
6
6
|
}) => JSX.Element;
|
|
7
|
-
export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, elementId, }: TabProps<T>): JSX.Element;
|
|
7
|
+
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,2 @@
|
|
|
1
1
|
import { TabBarProps } from "./interfaces";
|
|
2
|
-
export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, }: TabBarProps<T>): JSX.Element;
|
|
2
|
+
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionsTooltip } from "./actions-tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionBox } from "./action-box";
|
|
@@ -38,8 +38,11 @@ export declare function useMediaQuery(query: string): boolean;
|
|
|
38
38
|
*/
|
|
39
39
|
export declare function useBreakPoints(): {
|
|
40
40
|
isMobile: boolean;
|
|
41
|
+
isLargeMobile: boolean;
|
|
41
42
|
isTab: boolean;
|
|
42
43
|
isDesktop: boolean;
|
|
44
|
+
isWiderThanMobile: boolean;
|
|
45
|
+
isWiderThanLargeMobile: boolean;
|
|
43
46
|
};
|
|
44
47
|
/**
|
|
45
48
|
* Provided intersection observer for the specified elements.
|
|
@@ -49,3 +52,10 @@ export declare function useBreakPoints(): {
|
|
|
49
52
|
* @param callback Function to process intersection changes.
|
|
50
53
|
*/
|
|
51
54
|
export declare function useIntersectionObserver(rootRef: RefObject<HTMLElement>, rootMargin: string, callback: IntersectionObserverCallback): IntersectionObserver | undefined;
|
|
55
|
+
export declare function useHover(): {
|
|
56
|
+
isHover: boolean;
|
|
57
|
+
hoverCallbacks: {
|
|
58
|
+
onMouseEnter: () => void;
|
|
59
|
+
onMouseLeave: () => void;
|
|
60
|
+
};
|
|
61
|
+
};
|
package/lib/core/theme.d.ts
CHANGED
|
@@ -476,6 +476,20 @@ declare const _default: {
|
|
|
476
476
|
color: string;
|
|
477
477
|
};
|
|
478
478
|
};
|
|
479
|
+
secondary: {
|
|
480
|
+
last: {
|
|
481
|
+
fontFamily: string;
|
|
482
|
+
fontSize: string;
|
|
483
|
+
fontWeight: number;
|
|
484
|
+
color: string;
|
|
485
|
+
};
|
|
486
|
+
normal: {
|
|
487
|
+
fontFamily: string;
|
|
488
|
+
fontSize: string;
|
|
489
|
+
fontWeight: number;
|
|
490
|
+
color: string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
479
493
|
};
|
|
480
494
|
_10SemiBold: {
|
|
481
495
|
fontFamily: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { NoTranslateBox } from "./components/boxes/no-translate-box";
|
|
|
21
21
|
export { Breadcrumb } from "./components/breadcrumbs/breadcrumb";
|
|
22
22
|
export declare type BreadCrumbProps = BaseBreadcrumbProps;
|
|
23
23
|
export { PrimaryBreadcrumb } from "./components/breadcrumbs/primary-breadcrumb";
|
|
24
|
+
export { SecondaryBreadcrumb } from "./components/breadcrumbs/secondary-breadcrumb";
|
|
24
25
|
export { Button } from "./components/buttons/button";
|
|
25
26
|
export declare type ButtonProps = BaseButtonProps;
|
|
26
27
|
export { CtaButton } from "./components/buttons/cta/cta-button";
|
|
@@ -110,6 +111,7 @@ export { GradientOutlineMeter, SmallGradientOutlineMeter, } from "./components/m
|
|
|
110
111
|
export { OutlineMeter, SmallOutlineMeter, } from "./components/meters/outline-meter";
|
|
111
112
|
export type { OutlineMeterPosition, Bounds, OutlineMeterLabelPosition, } from "./components/meters/outline-meter";
|
|
112
113
|
export { SmileyMeterV2, SmallSmileyMeterV2, } from "./components/meters/smiley-meter-v2";
|
|
114
|
+
export { MultiOptionDiscreteOutlineMeter, SmallMultiOptionDiscreteOutlineMeter, } from "./components/meters/multi-option-discrete-outline-meter";
|
|
113
115
|
export { Modal } from "./components/modals/modal";
|
|
114
116
|
export declare type ModalProps = BaseModalProps;
|
|
115
117
|
export { PrimaryModal } from "./components/modals/primary-modal";
|
|
@@ -182,6 +184,7 @@ export { PrimaryInfoTooltip } from "./components/tooltips/primary-info-tooltip";
|
|
|
182
184
|
export { StarTooltip } from "./components/tooltips/star-tooltip";
|
|
183
185
|
export { RadioInfoButtonTooltip } from "./components/tooltips/radio-info-button-tooltip";
|
|
184
186
|
export { ReactElementTooltip } from "./components/tooltips/react-element-tooltip";
|
|
187
|
+
export { ActionsTooltip } from "./components/tooltips/actions-tooltip";
|
|
185
188
|
export { Footer } from "./components/complex/footer";
|
|
186
189
|
export { Navbar, getLabShopsUrlProps } from "./components/complex/navbar";
|
|
187
190
|
export { Anchor } from "./components/utils/anchor";
|