@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.
@@ -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?: Array<SearchResult>;
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
  */
@@ -30,4 +30,8 @@ export interface AnchorProps {
30
30
  * Children of Anchor component.
31
31
  */
32
32
  children: React.ReactNode;
33
+ /**
34
+ * Scroll behavior for the anchor.
35
+ */
36
+ scrollBehavior?: "auto" | "smooth";
33
37
  }
@@ -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 {};
@@ -326,6 +326,7 @@ declare const _default: {
326
326
  width: string;
327
327
  bg: string;
328
328
  px: string;
329
+ zIndex: number;
329
330
  };
330
331
  customSecondary: {
331
332
  fontSize: string;