@selfdecode/sd-component-library 2.44.3 → 2.44.6-react-17
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/inputs/search-input/presentational/interfaces.d.ts +8 -1
- package/lib/components/meters/outline-meter/interfaces.d.ts +5 -0
- package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +1 -1
- package/lib/components/utils/anchor/interfaces.d.ts +4 -0
- package/lib/components/utils/anchor/refs-manager.d.ts +2 -1
- package/lib/core/theme.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PrimaryTextInputProps } from "../../primary-text-input";
|
|
2
2
|
import { SearchResult } from "../partials/search-box/interfaces";
|
|
3
|
+
import { SxProps } from "rebass";
|
|
3
4
|
/**
|
|
4
5
|
* Defines SearchInput component's properties.
|
|
5
6
|
*/
|
|
@@ -29,9 +30,15 @@ export interface SearchInputProps extends BaseInputProps {
|
|
|
29
30
|
/**
|
|
30
31
|
* The array of results
|
|
31
32
|
*/
|
|
32
|
-
searchResults?:
|
|
33
|
+
searchResults?: SearchResult[];
|
|
33
34
|
/**
|
|
34
35
|
* Whether to use react-router links.
|
|
35
36
|
*/
|
|
36
37
|
useRouterLinks?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Sx prop of the container.
|
|
40
|
+
*/
|
|
41
|
+
containerSx?: SxProps["sx"];
|
|
42
|
+
searchIconBottom?: string;
|
|
43
|
+
xIconBottom?: string;
|
|
37
44
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
1
2
|
export declare type OutlineMeterPosition = number;
|
|
2
3
|
export interface OutlineMeterProps {
|
|
3
4
|
/**
|
|
@@ -106,6 +107,10 @@ export interface OutlineMeterProps {
|
|
|
106
107
|
* Border radius of the mask.
|
|
107
108
|
*/
|
|
108
109
|
maskBorderRadius?: number;
|
|
110
|
+
/**
|
|
111
|
+
* Cursor for the gauge.
|
|
112
|
+
*/
|
|
113
|
+
cursor?: CSSProperties["cursor"];
|
|
109
114
|
}
|
|
110
115
|
export declare type SmallOutlineMeterProps = OutlineMeterProps;
|
|
111
116
|
export interface OutlineMeterRangeConfig {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OutlineMeterProps } from "../outline-meter";
|
|
2
|
-
export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "height" | "value" | "gaugeWidth" | "arc" | "marginTop" | "marginX" | "pointStrokeWidth" | "innerPointRadius" | "distanceBetweenRanges" | "distanceFromLabelToRanges" | "counterClockWise" | "maskBorderRadius"> {
|
|
2
|
+
export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "height" | "value" | "gaugeWidth" | "arc" | "marginTop" | "marginX" | "pointStrokeWidth" | "innerPointRadius" | "distanceBetweenRanges" | "distanceFromLabelToRanges" | "counterClockWise" | "maskBorderRadius" | "cursor"> {
|
|
3
3
|
/**
|
|
4
4
|
* Colors for smiley corresponding to state.
|
|
5
5
|
*/
|
|
@@ -27,8 +27,9 @@ declare class RefsManager {
|
|
|
27
27
|
* Scroll the component with provided ID into the view.
|
|
28
28
|
*
|
|
29
29
|
* @param id ID for the component.
|
|
30
|
+
* @param behavior Scroll behavior.
|
|
30
31
|
*/
|
|
31
|
-
scrollToRef(id: string): void;
|
|
32
|
+
scrollToRef(id: string, behavior?: "smooth" | "auto"): void;
|
|
32
33
|
}
|
|
33
34
|
export declare const refsManager: RefsManager;
|
|
34
35
|
export {};
|