@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.
- package/lib/components/buttons/button/interfaces.d.ts +7 -1
- package/lib/components/buttons/cta/text-cta-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/partials/icon-button/icon-button.d.ts +1 -1
- package/lib/components/buttons/partials/icon-button/interfaces.d.ts +1 -1
- package/lib/components/meters/dashed-meter/interfaces.d.ts +1 -0
- package/lib/components/progress-bars/line-progress-bar/interfaces.d.ts +2 -1
- package/lib/components/progress-bars/progress-bar/interfaces.d.ts +1 -1
- package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
- package/lib/components/texts/responsive-text-v2/interfaces.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -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">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonProps } from "../../button";
|
|
3
|
-
export declare type BaseButtonProps =
|
|
3
|
+
export declare type BaseButtonProps = Omit<ButtonProps, "variant">;
|
|
4
4
|
/**
|
|
5
5
|
* Defines the icon button component's properties.
|
|
6
6
|
*/
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ProgressBarProps } from "../progress-bar";
|
|
2
|
-
|
|
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
|
}
|