@selfdecode/sd-component-library 2.45.18 → 2.45.19

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,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { CSSProperties, ReactNode } from "react";
2
2
  import { History } from "history";
3
3
  import { SxProps } from "rebass";
4
4
  import { LoadingSpinnerProps as LoadingIconProps } from "../../animations/loading-spinner/interfaces";
@@ -169,4 +169,10 @@ export interface ButtonProps extends BaseComponentProps {
169
169
  * Button component sx.
170
170
  */
171
171
  sx?: SxProps["sx"];
172
+ /**
173
+ * The cursor when the button is hovered
174
+ *
175
+ * Default value: "pointer"
176
+ */
177
+ cursor?: CSSProperties["cursor"];
172
178
  }
@@ -1,2 +1,2 @@
1
1
  import { ButtonProps } from "../../button";
2
- export declare type TextCtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "history" | "onClick" | "children" | "disabled" | "color" | "hoverFontWeight" | "hoverTextDecoration" | "letterSpacing" | "textDecoration" | "textTransform" | "fontWeight" | "fontSize" | "m" | "mt" | "mr" | "mb" | "ml">;
2
+ export declare type TextCtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "history" | "onClick" | "children" | "disabled" | "color" | "hoverFontWeight" | "hoverTextDecoration" | "letterSpacing" | "textDecoration" | "textTransform" | "fontWeight" | "fontSize" | "m" | "mt" | "mr" | "mb" | "ml" | "cursor">;
@@ -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
  */
@@ -14,4 +14,5 @@ export interface DashedMeterProps extends BaseComponentProps, Pick<BaseGridConta
14
14
  dashHeight?: string;
15
15
  verticalDashHeight?: string;
16
16
  dashBorderRadius?: string;
17
+ activeColor?: string;
17
18
  }
@@ -1,2 +1,3 @@
1
1
  import { ProgressBarProps } from "../progress-bar";
2
- export declare type LineProgressBarProps = Pick<ProgressBarProps, "totalSteps" | "currentStep" | "m" | "mt" | "mr" | "mb" | "ml">;
2
+ import { BackgroundColorProps } from "../progress-bar/interfaces";
3
+ export declare type LineProgressBarProps = Pick<ProgressBarProps, "totalSteps" | "currentStep" | "m" | "mt" | "mr" | "mb" | "ml"> & Pick<BackgroundColorProps, "completedColor" | "reaminsColor">;
@@ -31,7 +31,7 @@ interface BackgroundProps {
31
31
  * The following props are used if we just want to provide some color to the
32
32
  * background of progress bar and don't want additional effects.
33
33
  */
34
- interface BackgroundColorProps {
34
+ export interface BackgroundColorProps {
35
35
  withBackgroundProps?: false;
36
36
  /**
37
37
  * The color of the completed part of our progress.
@@ -8,7 +8,7 @@ declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "dis
8
8
  */
9
9
  export declare type SDFontSizeWeight = [number, "semi-bold" | "regular" | "bold"];
10
10
  export interface ResponsiveTextProps extends PropsFromBaseText {
11
- fontSizeWeight: SDFontSizeWeight[];
11
+ fontSizeWeight: SDFontSizeWeight[] | SDFontSizeWeight;
12
12
  /**
13
13
  * Optional font family
14
14
  */
@@ -1,5 +1,5 @@
1
1
  import { BaseTextV2Props } from "../base-text-v2";
2
2
  import { SDFontSizeWeight } from "../responsive-text/interfaces";
3
3
  export interface ResponsiveTextV2Props extends Omit<BaseTextV2Props, "variant"> {
4
- fontSizeWeight: SDFontSizeWeight[];
4
+ fontSizeWeight: SDFontSizeWeight[] | SDFontSizeWeight;
5
5
  }