@selfdecode/sd-component-library 2.45.15 → 2.45.16
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/cta/cta-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/primary-blue-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/primary-blue-button/primary-blue-button.d.ts +2 -2
- package/lib/components/buttons/cta/primary-orange-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/primary-text-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/primary-text-button/primary-text-button.d.ts +2 -2
- package/lib/components/buttons/cta/secondary-blue-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/secondary-orange-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/index.d.ts +25 -0
- 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/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/navbar-presentational.d.ts +0 -1
- 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-autocomplete-input/partials/search-autocomplete-results-box/search-autocomplete-results-box.d.ts +0 -1
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/search-autocomplete-row.d.ts +0 -1
- package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.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/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/custom-scrollable-selector/custom-scrollable-selector.d.ts +0 -1
- package/lib/components/selectors/custom-scrollable-selector/partials/custom-scrollable-options-box/custom-scrollable-options-box.d.ts +0 -1
- package/lib/components/selectors/primary-custom-scrollable-selector/partials/custom-scrollable-options-box/custom-scrollable-options-box.d.ts +0 -1
- package/lib/components/selectors/primary-custom-scrollable-selector/partials/option-row/option-row.d.ts +0 -1
- package/lib/components/selectors/primary-custom-scrollable-selector/primary-custom-scrollable-selector.d.ts +0 -1
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +0 -1
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.d.ts +0 -1
- package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.d.ts +0 -1
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +0 -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/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/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/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/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 +1 -1
- package/lib/index.d.ts +2 -23
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 =
|
|
5
|
+
export declare type CtaButtonProps = Omit<ButtonProps, "variant" | "borderStyle" | "hoverBorderStyle">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CtaButtonProps } from "../cta-button";
|
|
2
|
-
export declare type PrimaryBlueButtonProps =
|
|
2
|
+
export declare type PrimaryBlueButtonProps = Omit<CtaButtonProps, "borderColor" | "color" | "bg" | "hoverBorderColor" | "hoverColor" | "hoverBg">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { PrimaryBlueButtonProps } from "./interfaces";
|
|
2
|
+
import { PrimaryBlueButtonProps as Props } from "./interfaces";
|
|
3
3
|
/**
|
|
4
4
|
* The primary button.
|
|
5
5
|
*/
|
|
6
|
-
export declare const PrimaryBlueButton: React.
|
|
6
|
+
export declare const PrimaryBlueButton: React.FC<Props>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CtaButtonProps } from "../cta-button";
|
|
2
|
-
export declare type PrimaryOrangeButtonProps =
|
|
2
|
+
export declare type PrimaryOrangeButtonProps = Omit<CtaButtonProps, "borderColor" | "color" | "bg" | "hoverBorderColor" | "hoverColor" | "hoverBg">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CtaButtonProps } from "../cta-button";
|
|
2
|
-
export declare type PrimaryTextButtonProps =
|
|
2
|
+
export declare type PrimaryTextButtonProps = Omit<CtaButtonProps, "borderWidth" | "bg" | "hoverBg">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { PrimaryTextButtonProps } from "./interfaces";
|
|
2
|
+
import { PrimaryTextButtonProps as Props } from "./interfaces";
|
|
3
3
|
/**
|
|
4
4
|
* The primary button.
|
|
5
5
|
*/
|
|
6
|
-
export declare const PrimaryTextButton: React.
|
|
6
|
+
export declare const PrimaryTextButton: React.FC<Props>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CtaButtonProps } from "../cta-button";
|
|
2
|
-
export declare type SecondaryBlueButtonProps =
|
|
2
|
+
export declare type SecondaryBlueButtonProps = Omit<CtaButtonProps, "borderColor" | "color" | "bg" | "hoverBorderColor" | "hoverBg">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CtaButtonProps } from "../cta-button";
|
|
2
|
-
export declare type SecondaryOrangeButtonProps =
|
|
2
|
+
export declare type SecondaryOrangeButtonProps = Omit<CtaButtonProps, "borderColor" | "color" | "bg" | "hoverBorderColor" | "hoverBg">;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ButtonProps } from "./button";
|
|
2
|
+
import { CtaButtonProps } from "./cta/cta-button";
|
|
3
|
+
import { TextCtaButtonProps } from "./cta/text-cta-button";
|
|
4
|
+
export { Button } from "../buttons/button";
|
|
5
|
+
export type { ButtonProps };
|
|
6
|
+
export { CtaButton } from "../buttons/cta/cta-button";
|
|
7
|
+
export type { CtaButtonProps };
|
|
8
|
+
export { TextCtaButton } from "../buttons/cta/text-cta-button";
|
|
9
|
+
export type { TextCtaButtonProps };
|
|
10
|
+
export { PrimaryBlueButton } from "../buttons/cta/primary-blue-button";
|
|
11
|
+
export { PrimaryOrangeButton } from "../buttons/cta/primary-orange-button";
|
|
12
|
+
export { SecondaryBlueButton } from "../buttons/cta/secondary-blue-button";
|
|
13
|
+
export { SecondaryOrangeButton } from "../buttons/cta/secondary-orange-button";
|
|
14
|
+
export { PrimaryTextButton } from "../buttons/cta/primary-text-button";
|
|
15
|
+
export { GoToButton } from "../buttons/partials/goto-button";
|
|
16
|
+
export { NextButton } from "../buttons/cta/next-button";
|
|
17
|
+
export { ShareButton } from "../buttons/cta/share-button";
|
|
18
|
+
export { IconButton } from "../buttons/partials/icon-button";
|
|
19
|
+
export { TickButton } from "../buttons/partials/tick-button";
|
|
20
|
+
export { CrossButton } from "../buttons/partials/cross-button";
|
|
21
|
+
export { PoweredByGreyLogoButton } from "../buttons/logos/powered-by-grey-logo";
|
|
22
|
+
export { PoweredByWhiteLogoButton } from "../buttons/logos/powered-by-white-logo";
|
|
23
|
+
export { RadioInfoButton } from "../buttons/radio-info-button";
|
|
24
|
+
export { RoundIconButton } from "../buttons/round-icon-button";
|
|
25
|
+
export { NavbarLogoButton } from "../buttons/logos/navbar-logo";
|
|
@@ -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" | "translateSelect">) => JSX.Element;
|
|
@@ -52,7 +52,7 @@ export declare function useBreakPoints(): {
|
|
|
52
52
|
* @param callback Function to process intersection changes.
|
|
53
53
|
*/
|
|
54
54
|
export declare function useIntersectionObserver(rootRef: RefObject<HTMLElement>, rootMargin: string, callback: IntersectionObserverCallback): IntersectionObserver | undefined;
|
|
55
|
-
export declare function useHover(): {
|
|
55
|
+
export declare function useHover(onHover?: (newState: boolean) => void): {
|
|
56
56
|
isHover: boolean;
|
|
57
57
|
hoverCallbacks: {
|
|
58
58
|
onMouseEnter: () => void;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseAccordionProps, BaseBadgeProps, BaseBaseGridContainerProps, BaseBaseOutlineMeterProps, BaseBicolorBadgeProps, BaseBoxyNumberInputProps, BaseBreadcrumbProps,
|
|
2
|
+
import { BaseAccordionProps, BaseBadgeProps, BaseBaseGridContainerProps, BaseBaseOutlineMeterProps, BaseBicolorBadgeProps, BaseBoxyNumberInputProps, BaseBreadcrumbProps, BaseCarouselSwitchProps, BaseDateRangeInputProps, BaseDropdownProps, BaseInputProps, BaseLinkProps, BaseListProps, BaseModalProps, BaseNumberInputProps, BasePaginationBarProps, BaseProgressBarProps, BaseResponsiveTextProps, BaseSublistAccordionProps, BaseTextInputProps, BaseTextPropsInterface, BaseTextSwitchProps, OutlinedDateRangeInputProps, SlideSettingsType } from "./interfaces";
|
|
3
3
|
export declare const ComponentLibThemeProvider: import("react").FC<import("./components/wrapper/interfaces").WrapperProps>;
|
|
4
4
|
export { Accordion } from "./components/accordions/base-accordion";
|
|
5
5
|
export declare type AccordionProps = BaseAccordionProps;
|
|
@@ -22,28 +22,7 @@ export { Breadcrumb } from "./components/breadcrumbs/breadcrumb";
|
|
|
22
22
|
export declare type BreadCrumbProps = BaseBreadcrumbProps;
|
|
23
23
|
export { PrimaryBreadcrumb } from "./components/breadcrumbs/primary-breadcrumb";
|
|
24
24
|
export { SecondaryBreadcrumb } from "./components/breadcrumbs/secondary-breadcrumb";
|
|
25
|
-
export
|
|
26
|
-
export declare type ButtonProps = BaseButtonProps;
|
|
27
|
-
export { CtaButton } from "./components/buttons/cta/cta-button";
|
|
28
|
-
export declare type CtaButtonProps = BaseCtaButtonProps;
|
|
29
|
-
export { TextCtaButton } from "./components/buttons/cta/text-cta-button";
|
|
30
|
-
export declare type TextCtaButtonProps = BaseTextCtaButtonProps;
|
|
31
|
-
export { PrimaryBlueButton } from "./components/buttons/cta/primary-blue-button";
|
|
32
|
-
export { PrimaryOrangeButton } from "./components/buttons/cta/primary-orange-button";
|
|
33
|
-
export { SecondaryBlueButton } from "./components/buttons/cta/secondary-blue-button";
|
|
34
|
-
export { SecondaryOrangeButton } from "./components/buttons/cta/secondary-orange-button";
|
|
35
|
-
export { PrimaryTextButton } from "./components/buttons/cta/primary-text-button";
|
|
36
|
-
export { GoToButton } from "./components/buttons/partials/goto-button";
|
|
37
|
-
export { NextButton } from "./components/buttons/cta/next-button";
|
|
38
|
-
export { ShareButton } from "./components/buttons/cta/share-button";
|
|
39
|
-
export { IconButton } from "./components/buttons/partials/icon-button";
|
|
40
|
-
export { TickButton } from "./components/buttons/partials/tick-button";
|
|
41
|
-
export { CrossButton } from "./components/buttons/partials/cross-button";
|
|
42
|
-
export { PoweredByGreyLogoButton } from "./components/buttons/logos/powered-by-grey-logo";
|
|
43
|
-
export { PoweredByWhiteLogoButton } from "./components/buttons/logos/powered-by-white-logo";
|
|
44
|
-
export { RadioInfoButton } from "./components/buttons/radio-info-button";
|
|
45
|
-
export { RoundIconButton } from "./components/buttons/round-icon-button";
|
|
46
|
-
export { NavbarLogoButton } from "./components/buttons/logos/navbar-logo";
|
|
25
|
+
export * from "./components/buttons";
|
|
47
26
|
export { RoundCard } from "./components/cards/round-card";
|
|
48
27
|
export { Checkbox } from "./components/checkboxes/checkbox";
|
|
49
28
|
export { PartialCheckbox } from "./components/checkboxes/partial-checkbox";
|