@selfdecode/sd-component-library 2.46.9 → 2.46.10

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.
@@ -3,4 +3,4 @@ import { IconButtonProps } from "./interfaces";
3
3
  /**
4
4
  * The icon button.
5
5
  */
6
- export declare const IconButton: React.FunctionComponent<IconButtonProps>;
6
+ export declare const IconButton: React.FC<IconButtonProps>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ButtonProps } from "../../button";
3
- export declare type BaseButtonProps = Pick<ButtonProps, "link" | "scrollTo" | "borderStyle" | "borderColor" | "borderWidth" | "borderRadius" | "width" | "height" | "history" | "variant" | "onClick" | "children" | "padding" | "disabled" | "fontSize" | "fontWeight" | "letterSpacing" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "zIndex">;
3
+ export declare type BaseButtonProps = Omit<ButtonProps, "variant">;
4
4
  /**
5
5
  * Defines the icon button component's properties.
6
6
  */
@@ -5,4 +5,6 @@ export interface MatchedRangeLabelBoxProps {
5
5
  label?: string;
6
6
  pointerLength: number;
7
7
  horizontal?: boolean;
8
+ round?: boolean;
9
+ pointY?: number;
8
10
  }
@@ -1,6 +1,6 @@
1
1
  import { MatchedRangeLabelBoxProps as BaseProps } from "../../../common-outline-meter-partials";
2
2
  import { MultiOptionDiscreteOutlineMeterProps } from "../../interfaces";
3
- export interface MatchedRangeLabelBoxProps<T = string> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "distanceBetweenRanges" | "arc">>, Omit<BaseProps, "alpha"> {
3
+ export interface MatchedRangeLabelBoxProps<T = string> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "distanceBetweenRanges" | "arc">>, Omit<BaseProps, "alpha" | "round"> {
4
4
  idx: number;
5
5
  totalRanges: number;
6
6
  }
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { OutlineMeterRangeProps as Props } from "./interfaces";
3
- export declare const OutlineMeterRange: React.FC<Props>;
3
+ export declare const OutlineMeterRange: React.ForwardRefExoticComponent<Props & React.RefAttributes<SVGCircleElement>>;
@@ -1,8 +1,11 @@
1
1
  import { MatchedRangeLabelBoxProps as BaseProps } from "../../../common-outline-meter-partials";
2
2
  import { SmileyMeterRange, SmileyMeterV2Props } from "../../interfaces";
3
3
  export interface MatchedRangeBoxProps extends Required<Pick<SmileyMeterV2Props, "arc" | "distanceBetweenRanges">>, Omit<BaseProps, "alpha" | "color" | "label" | "radius"> {
4
+ segmented?: boolean;
4
5
  diameter: number;
5
6
  totalRanges: number;
6
7
  idx: number;
7
8
  range: SmileyMeterRange;
9
+ pointX: number;
10
+ pointY: number;
8
11
  }
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { SmileyMeterRangeProps as Props } from "./interfaces";
3
- export declare const SmileyMeterRange: React.FC<Props>;
3
+ export declare const SmileyMeterRange: React.ForwardRefExoticComponent<Props & React.RefAttributes<SVGCircleElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { SmileyMeterRangesProps as Props } from "./interfaces";
3
- export declare const SmileyMeterRanges: React.FC<Props>;
3
+ export declare const SmileyMeterRanges: React.ForwardRefExoticComponent<Props & React.RefAttributes<SVGCircleElement>>;
@@ -59,7 +59,7 @@ export declare function useHover(onHover?: (newState: boolean) => void): {
59
59
  onMouseLeave: () => void;
60
60
  };
61
61
  };
62
- export default function useContentSize<T extends Element = HTMLElement>(settings?: {
62
+ export declare function useContentSize<T extends Element = HTMLElement>(settings?: {
63
63
  listenForResize?: boolean;
64
64
  debounceDelay?: number;
65
65
  checkEachRender?: boolean;
@@ -68,3 +68,8 @@ export default function useContentSize<T extends Element = HTMLElement>(settings
68
68
  contentWidth: number;
69
69
  contentHeight: number;
70
70
  };
71
+ export declare function useElementCoordinates<T extends Element = HTMLElement>(): {
72
+ ref: RefObject<T>;
73
+ x: number;
74
+ y: number;
75
+ };