@selfdecode/sd-component-library 2.43.12 → 2.43.13
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/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/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 +1 -0
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +1 -0
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +1 -0
- package/lib/components/selectors/selector/interfaces.d.ts +1 -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/tertiary-selector.d.ts +1 -0
- 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 +4 -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
|
*/
|
|
@@ -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
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionsTooltip } from "./actions-tooltip";
|