@selfdecode/sd-component-library 2.43.6 → 2.43.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.
- package/lib/components/animations/up-down-arrow/up-down-arrow.d.ts +0 -1
- package/lib/components/bicolor-badge/interfaces.d.ts +0 -1
- 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 +0 -1
- package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +0 -1
- package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +0 -1
- package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +0 -1
- package/lib/components/complex/footer/presentational/footer-presentational.d.ts +0 -1
- 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 +0 -1
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +0 -1
- package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +0 -1
- package/lib/components/complex/navbar/presentational/index.d.ts +1 -0
- package/lib/components/complex/navbar/presentational/interfaces.d.ts +0 -1
- package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +0 -1
- 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 +0 -1
- package/lib/components/containers/section-container/section-container.d.ts +0 -1
- package/lib/components/feature-explanation/feature-explanation.d.ts +0 -1
- package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +0 -1
- package/lib/components/labels/base-label/base-label.d.ts +0 -1
- 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 +0 -1
- package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +0 -1
- package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +0 -1
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +0 -1
- package/lib/components/selectors/primary-selector-v2/index.d.ts +1 -0
- package/lib/components/selectors/primary-selector-v2/interfaces.d.ts +2 -0
- package/lib/components/selectors/primary-selector-v2/primary-selector-v2.d.ts +3 -0
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +0 -1
- package/lib/components/selectors/secondary-selector-v2/interfaces.d.ts +1 -1
- package/lib/components/selectors/selector/selector.d.ts +0 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +0 -1
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +0 -1
- package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +0 -1
- package/lib/components/selectors/tertiary-selector-v2/interfaces.d.ts +1 -1
- package/lib/components/slider/partials/step-circles/step-circles.d.ts +0 -1
- package/lib/components/slider/slider.d.ts +0 -1
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +0 -1
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
- 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 +0 -1
- package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
- package/lib/components/texts/base-text/base-text.d.ts +0 -1
- package/lib/components/texts/base-text-v2/base-text-v2.d.ts +3 -0
- package/lib/components/texts/base-text-v2/index.d.ts +2 -0
- package/lib/components/texts/base-text-v2/interfaces.d.ts +2 -0
- package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +0 -1
- package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +0 -1
- package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +0 -1
- package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +0 -1
- package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +0 -1
- package/lib/components/texts/fourty-bold/fourty-bold.d.ts +0 -1
- package/lib/components/texts/no-translate/no-translate.d.ts +0 -1
- package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
- package/lib/components/texts/responsive-text-v2/index.d.ts +2 -0
- package/lib/components/texts/responsive-text-v2/interfaces.d.ts +5 -0
- package/lib/components/texts/responsive-text-v2/responsive-text-v2.d.ts +3 -0
- package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +0 -1
- package/lib/components/texts/ten-sb/ten-sb.d.ts +0 -1
- package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +0 -1
- package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +0 -1
- package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +0 -1
- package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +0 -1
- package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +0 -1
- package/lib/components/texts/twelve-regular/twelve-regular.d.ts +0 -1
- package/lib/components/texts/twelve-sb/twelve-sb.d.ts +0 -1
- package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +0 -1
- package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +0 -1
- package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +0 -1
- package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +0 -1
- package/lib/core/custom-hooks.d.ts +8 -0
- package/lib/core/theme.d.ts +25 -0
- package/lib/index.d.ts +6 -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,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CompactPrimarySelectorProps as Props } from "./interfaces";
|
|
3
2
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PrimarySelectorV2 } from "./primary-selector-v2";
|
|
@@ -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">;
|
|
@@ -6,7 +6,7 @@ declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "dis
|
|
|
6
6
|
/**
|
|
7
7
|
* SelfDecode's combinations of fontSize and fontWeight.
|
|
8
8
|
*/
|
|
9
|
-
declare type SDFontSizeWeight = [number, "semi-bold" | "regular" | "bold"];
|
|
9
|
+
export declare type SDFontSizeWeight = [number, "semi-bold" | "regular" | "bold"];
|
|
10
10
|
export interface ResponsiveTextProps extends PropsFromBaseText {
|
|
11
11
|
fontSizeWeight: SDFontSizeWeight[];
|
|
12
12
|
/**
|
|
@@ -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/core/theme.d.ts
CHANGED
|
@@ -309,6 +309,21 @@ declare const _default: {
|
|
|
309
309
|
color: string;
|
|
310
310
|
fontSize: string;
|
|
311
311
|
};
|
|
312
|
+
primaryV2: {
|
|
313
|
+
position: string;
|
|
314
|
+
left: string;
|
|
315
|
+
top: string;
|
|
316
|
+
height: string;
|
|
317
|
+
fontFamily: string;
|
|
318
|
+
fontWeight: number;
|
|
319
|
+
color: string;
|
|
320
|
+
fontSize: string;
|
|
321
|
+
letterSpacing: string;
|
|
322
|
+
textTransform: string;
|
|
323
|
+
width: string;
|
|
324
|
+
bg: string;
|
|
325
|
+
px: string;
|
|
326
|
+
};
|
|
312
327
|
};
|
|
313
328
|
iconButton: {
|
|
314
329
|
marginRight: string;
|
|
@@ -433,6 +448,16 @@ declare const _default: {
|
|
|
433
448
|
transform: string;
|
|
434
449
|
};
|
|
435
450
|
};
|
|
451
|
+
primaryV2: {
|
|
452
|
+
fontFamily: string;
|
|
453
|
+
fontSize: string;
|
|
454
|
+
color: string;
|
|
455
|
+
px: string;
|
|
456
|
+
py: string;
|
|
457
|
+
borderRadius: string;
|
|
458
|
+
borderColor: string;
|
|
459
|
+
outline: string;
|
|
460
|
+
};
|
|
436
461
|
};
|
|
437
462
|
};
|
|
438
463
|
text: {
|