@selfdecode/sd-component-library 2.43.7 → 2.43.11
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/animations/up-down-arrow/up-down-arrow.d.ts +1 -0
- package/lib/components/bicolor-badge/interfaces.d.ts +1 -0
- package/lib/components/buttons/button/interfaces.d.ts +7 -5
- package/lib/components/buttons/cta/cta-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/secondary-blue-button/interfaces.d.ts +1 -1
- package/lib/components/checkboxes/checkbox/checkbox.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +1 -0
- package/lib/components/complex/footer/presentational/footer-presentational.d.ts +1 -0
- package/lib/components/complex/navbar/index.d.ts +1 -1
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +1 -0
- package/lib/components/complex/navbar/presentational/index.d.ts +1 -0
- package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +1 -0
- package/lib/components/containers/grid-containers/grid-container-v2/grid-container-v2.d.ts +3 -0
- package/lib/components/containers/grid-containers/grid-container-v2/index.d.ts +1 -0
- package/lib/components/containers/grid-containers/grid-container-v2/interfaces.d.ts +15 -0
- package/lib/components/containers/max-width-container/max-width-container.d.ts +1 -0
- package/lib/components/containers/section-container/section-container.d.ts +1 -0
- package/lib/components/feature-explanation/feature-explanation.d.ts +1 -0
- package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +1 -0
- package/lib/components/labels/base-label/base-label.d.ts +1 -0
- package/lib/components/progress-bars/progress-bar/interfaces.d.ts +2 -2
- package/lib/components/progress-bars/rounded-progress-bar/index.d.ts +1 -0
- package/lib/components/progress-bars/rounded-progress-bar/interfaces.d.ts +24 -0
- package/lib/components/progress-bars/rounded-progress-bar/rounded-progress-bar.d.ts +3 -0
- package/lib/components/radio-button/radio-button.d.ts +1 -0
- package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +1 -0
- package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +1 -0
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +1 -0
- package/lib/components/selectors/primary-selector-v2/interfaces.d.ts +1 -1
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +1 -0
- package/lib/components/selectors/secondary-selector-v2/interfaces.d.ts +1 -1
- package/lib/components/selectors/selector/selector.d.ts +1 -0
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -0
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -0
- package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +1 -0
- package/lib/components/selectors/tertiary-selector-v2/interfaces.d.ts +1 -1
- package/lib/components/slider/partials/step-circles/step-circles.d.ts +1 -0
- package/lib/components/slider/slider.d.ts +1 -0
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +1 -0
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +1 -0
- package/lib/components/tabs/tab-bar-v2/interfaces.d.ts +0 -4
- package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +1 -0
- package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +1 -0
- package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +1 -0
- package/lib/components/texts/base-text/base-text.d.ts +1 -0
- package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +1 -0
- package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +1 -0
- package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +1 -0
- package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +1 -0
- package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +1 -0
- package/lib/components/texts/fourty-bold/fourty-bold.d.ts +1 -0
- package/lib/components/texts/no-translate/no-translate.d.ts +1 -0
- package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +1 -0
- package/lib/components/texts/ten-sb/ten-sb.d.ts +1 -0
- package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +1 -0
- package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +1 -0
- package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +1 -0
- package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +1 -0
- package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +1 -0
- package/lib/components/texts/twelve-regular/twelve-regular.d.ts +1 -0
- package/lib/components/texts/twelve-sb/twelve-sb.d.ts +1 -0
- package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +1 -0
- package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +1 -0
- package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +1 -0
- package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +1 -0
- package/lib/core/custom-hooks.d.ts +8 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
14
14
|
*/
|
|
15
15
|
link?: string;
|
|
16
16
|
/**
|
|
17
|
-
* Indicates
|
|
17
|
+
* Indicates whether the url provided in the link prop can be
|
|
18
18
|
* handled by React-Router or not.
|
|
19
19
|
*
|
|
20
20
|
* Default value: true
|
|
@@ -47,7 +47,7 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
47
47
|
/**
|
|
48
48
|
* padding for the button
|
|
49
49
|
*/
|
|
50
|
-
padding?:
|
|
50
|
+
padding?: string | string[];
|
|
51
51
|
/**
|
|
52
52
|
* The font-size css property
|
|
53
53
|
*/
|
|
@@ -57,9 +57,9 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
57
57
|
*/
|
|
58
58
|
fontWeight?: string;
|
|
59
59
|
/**
|
|
60
|
-
* The
|
|
60
|
+
* The letter-spacing css property
|
|
61
61
|
*/
|
|
62
|
-
letterSpacing?:
|
|
62
|
+
letterSpacing?: string | string[];
|
|
63
63
|
/**
|
|
64
64
|
* The border radius for the button.
|
|
65
65
|
*/
|
|
@@ -68,10 +68,12 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
68
68
|
* The button's width
|
|
69
69
|
*/
|
|
70
70
|
width?: string | string[];
|
|
71
|
+
minWidth?: string | string[];
|
|
72
|
+
maxWidth?: string | string[];
|
|
71
73
|
/**
|
|
72
74
|
* The button's height
|
|
73
75
|
*/
|
|
74
|
-
height?:
|
|
76
|
+
height?: string | string[];
|
|
75
77
|
/**
|
|
76
78
|
* The border style to apply to the button.
|
|
77
79
|
*/
|
|
@@ -2,4 +2,4 @@ import { ButtonProps } from "../../button";
|
|
|
2
2
|
/**
|
|
3
3
|
* Additional props we want to add
|
|
4
4
|
*/
|
|
5
|
-
export declare type CtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "height" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "borderWidth" | "borderRadius" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "v1" | "transition" | "m" | "mt" | "mr" | "mb" | "ml" | "padding" | "loading" | "loadingIconProps">;
|
|
5
|
+
export declare type CtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "height" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "borderWidth" | "borderRadius" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "v1" | "transition" | "m" | "mt" | "mr" | "mb" | "ml" | "padding" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CtaButtonProps } from "../cta-button";
|
|
2
|
-
export declare type SecondaryBlueButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "height" | "borderRadius" | "v1" | "m" | "mt" | "mr" | "mb" | "ml" | "loading" | "loadingIconProps">;
|
|
2
|
+
export declare type SecondaryBlueButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "height" | "borderRadius" | "v1" | "m" | "mt" | "mr" | "mb" | "ml" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { NavbarPresentational as Navbar } from "./presentational";
|
|
1
|
+
export { NavbarPresentational as Navbar, getLabShopsUrlProps, } from "./presentational";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GridContainerV2 } from "./grid-container-v2";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BoxProps } from "rebass";
|
|
2
|
+
export interface GridContainerV2Props extends Omit<BoxProps, "display"> {
|
|
3
|
+
/**
|
|
4
|
+
* Grid columns template.
|
|
5
|
+
*/
|
|
6
|
+
gridTemplateColumns?: string | string[];
|
|
7
|
+
/**
|
|
8
|
+
* Grid rows template.
|
|
9
|
+
*/
|
|
10
|
+
gridTemplateRows?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* Gap between elements.
|
|
13
|
+
*/
|
|
14
|
+
gap?: string | string[];
|
|
15
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseComponentProps } from "../../interfaces";
|
|
2
2
|
/**
|
|
3
|
-
* Defines the
|
|
3
|
+
* Defines the ProgressBar component's properties.
|
|
4
4
|
*/
|
|
5
|
-
interface CommonProgressBarProps extends BaseComponentProps {
|
|
5
|
+
export interface CommonProgressBarProps extends BaseComponentProps {
|
|
6
6
|
/**
|
|
7
7
|
* The total amount of steps in our total progress
|
|
8
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RoundedProgressBar } from "./rounded-progress-bar";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SxProps } from "rebass";
|
|
2
|
+
import { CommonProgressBarProps } from "../progress-bar/interfaces";
|
|
3
|
+
export interface RoundedProgressBarProps extends Pick<CommonProgressBarProps, "currentStep" | "totalSteps"> {
|
|
4
|
+
/**
|
|
5
|
+
* Bar height.
|
|
6
|
+
*/
|
|
7
|
+
height?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* Border radius of the bars.
|
|
10
|
+
*/
|
|
11
|
+
borderRadius?: string | string[];
|
|
12
|
+
/**
|
|
13
|
+
* Color of the not active part.
|
|
14
|
+
*/
|
|
15
|
+
baseColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Color of the active part.
|
|
18
|
+
*/
|
|
19
|
+
activeColor?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Sx prop to customize container.
|
|
22
|
+
*/
|
|
23
|
+
containerSx?: SxProps["sx"];
|
|
24
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CompactPrimarySelectorProps as Props } from "./interfaces";
|
|
2
3
|
export declare const CompactPrimarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "textTransform" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin">) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SelectorV2Props } from "../selector-v2";
|
|
2
|
-
export declare type PrimarySelectorV2Props = Omit<SelectorV2Props
|
|
2
|
+
export declare type PrimarySelectorV2Props<T extends string = string> = Omit<SelectorV2Props<T>, "variant">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SelectorV2Props } from "../selector-v2";
|
|
2
|
-
export declare type SecondarySelectorV2Props = Omit<SelectorV2Props
|
|
2
|
+
export declare type SecondarySelectorV2Props<T extends string = string> = Omit<SelectorV2Props<T>, "variant" | "labelContainerAlignItems">;
|
|
@@ -41,3 +41,11 @@ export declare function useBreakPoints(): {
|
|
|
41
41
|
isTab: boolean;
|
|
42
42
|
isDesktop: boolean;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Provided intersection observer for the specified elements.
|
|
46
|
+
*
|
|
47
|
+
* @param rootRef Ref for the root element.
|
|
48
|
+
* @param rootMargin Margin for the root element area.
|
|
49
|
+
* @param callback Function to process intersection changes.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useIntersectionObserver(rootRef: RefObject<HTMLElement>, rootMargin: string, callback: IntersectionObserverCallback): IntersectionObserver | undefined;
|
package/lib/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export { MaxFrContainer } from "./components/containers/grid-containers/max-fr-c
|
|
|
53
53
|
export { MaxMaxContainer } from "./components/containers/grid-containers/max-max-container";
|
|
54
54
|
export { SectionContainer } from "./components/containers/section-container";
|
|
55
55
|
export { MaxWidthContainer } from "./components/containers/max-width-container";
|
|
56
|
+
export { GridContainerV2 as Grid } from "./components/containers/grid-containers/grid-container-v2";
|
|
56
57
|
export { CarouselSectionContainer } from "./components/carousels/carousel-section-container";
|
|
57
58
|
export { ResponsiveGridContainerT1 } from "./components/containers/responsive-containers/responsive-container-t1";
|
|
58
59
|
export { ResponsiveGridContainerT2 } from "./components/containers/responsive-containers/responsive-container-t2";
|
|
@@ -119,6 +120,7 @@ export { ProgressBar } from "./components/progress-bars/progress-bar";
|
|
|
119
120
|
export declare type ProgressBarProps = BaseProgressBarProps;
|
|
120
121
|
export { LineProgressBar } from "./components/progress-bars/line-progress-bar";
|
|
121
122
|
export { StripedLineProgressBar } from "./components/progress-bars/striped-line-progress-bar";
|
|
123
|
+
export { RoundedProgressBar } from "./components/progress-bars/rounded-progress-bar";
|
|
122
124
|
export { ProgressSteps } from "./components/progress-steps";
|
|
123
125
|
export { RadioButton } from "./components/radio-button";
|
|
124
126
|
export { FiveStarsRating } from "./components/ratings/five-stars-rating";
|
|
@@ -181,7 +183,7 @@ export { StarTooltip } from "./components/tooltips/star-tooltip";
|
|
|
181
183
|
export { RadioInfoButtonTooltip } from "./components/tooltips/radio-info-button-tooltip";
|
|
182
184
|
export { ReactElementTooltip } from "./components/tooltips/react-element-tooltip";
|
|
183
185
|
export { Footer } from "./components/complex/footer";
|
|
184
|
-
export { Navbar } from "./components/complex/navbar";
|
|
186
|
+
export { Navbar, getLabShopsUrlProps } from "./components/complex/navbar";
|
|
185
187
|
export { Anchor } from "./components/utils/anchor";
|
|
186
188
|
export { PageTracker } from "./components/utils/page-tracker";
|
|
187
189
|
export { ScrollToTop } from "./components/utils/scroll-to-top";
|