@selfdecode/sd-component-library 4.0.38-test6 → 4.0.39
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/meters/outline-meter/interfaces.d.ts +2 -1
- package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +1 -1
- package/lib/components/utils/anchor/interfaces.d.ts +1 -1
- package/lib/components/utils/anchor/refs-manager.d.ts +1 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
+
import { BoxProps } from "rebass";
|
|
2
3
|
export declare type OutlineMeterPosition = number;
|
|
3
|
-
export interface OutlineMeterProps {
|
|
4
|
+
export interface OutlineMeterProps extends Pick<BoxProps, "sx"> {
|
|
4
5
|
/**
|
|
5
6
|
* Meter container margins.
|
|
6
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OutlineMeterProps, OutlineMeterRangeConfig } from "../outline-meter";
|
|
2
2
|
import { SmileyGaugeColor } from "./utils";
|
|
3
|
-
export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "height" | "value" | "gaugeWidth" | "arc" | "marginTop" | "marginX" | "pointStrokeWidth" | "innerPointRadius" | "distanceBetweenRanges" | "distanceFromLabelToRanges" | "maskBorderRadius" | "cursor" | "ranges" | "segmented" | "counterClockWise"> {
|
|
3
|
+
export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "height" | "value" | "gaugeWidth" | "arc" | "marginTop" | "marginX" | "pointStrokeWidth" | "innerPointRadius" | "distanceBetweenRanges" | "distanceFromLabelToRanges" | "maskBorderRadius" | "cursor" | "ranges" | "segmented" | "counterClockWise" | "sx"> {
|
|
4
4
|
/**
|
|
5
5
|
* Whether to hide labels.
|
|
6
6
|
*/
|
|
@@ -4,7 +4,7 @@ import { BoxProps } from "rebass";
|
|
|
4
4
|
* Type for the refsMap to be stored in reference manager.
|
|
5
5
|
*/
|
|
6
6
|
export declare type refsMap = {
|
|
7
|
-
[key: string]: React.MutableRefObject<HTMLElement | undefined
|
|
7
|
+
[key: string]: React.MutableRefObject<HTMLElement | undefined>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* Interface for Anchor props.
|
|
@@ -5,7 +5,6 @@ import { refsMap } from "./interfaces";
|
|
|
5
5
|
*/
|
|
6
6
|
declare class RefsManager {
|
|
7
7
|
refRegistry: refsMap;
|
|
8
|
-
getRef(id: string): React.MutableRefObject<HTMLElement | null | undefined>;
|
|
9
8
|
/**
|
|
10
9
|
* Check if ref is registered for a component with provided ID.
|
|
11
10
|
* @param id ID for the component.
|
|
@@ -17,7 +16,7 @@ declare class RefsManager {
|
|
|
17
16
|
* @param id ID for the component.
|
|
18
17
|
* @param ref React Ref object for the component. Used for scrolling.
|
|
19
18
|
*/
|
|
20
|
-
addRef(id: string, ref: React.MutableRefObject<HTMLDivElement | undefined
|
|
19
|
+
addRef(id: string, ref: React.MutableRefObject<HTMLDivElement | undefined>): void;
|
|
21
20
|
/**
|
|
22
21
|
* Remove a ref from registry.
|
|
23
22
|
*
|