@selfdecode/sd-component-library 3.0.1 → 3.0.4
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/accordions/base-accordion/index.d.ts +1 -2
- package/lib/components/accordions/index.d.ts +3 -0
- package/lib/components/accordions/sublist-accordion/index.d.ts +1 -2
- package/lib/components/badges/badge/index.d.ts +1 -2
- package/lib/components/badges/index.d.ts +4 -0
- package/lib/components/bicolor-badge/index.d.ts +1 -2
- package/lib/components/boolean-feedback/index.d.ts +2 -0
- package/lib/components/breadcrumbs/breadcrumb/crumb/index.d.ts +1 -2
- package/lib/components/breadcrumbs/breadcrumb/index.d.ts +2 -2
- package/lib/components/breadcrumbs/index.d.ts +3 -0
- package/lib/components/buttons/button/interfaces.d.ts +8 -0
- package/lib/components/buttons/cta/text-cta-button/index.d.ts +1 -2
- package/lib/components/buttons/index.d.ts +3 -9
- package/lib/components/cards/index.d.ts +1 -0
- package/lib/components/carousels/index.d.ts +1 -0
- package/lib/components/checkboxes/index.d.ts +2 -0
- package/lib/components/checkboxes/partial-checkbox/index.d.ts +1 -0
- package/lib/components/complex/index.d.ts +2 -0
- package/lib/components/containers/index.d.ts +4 -4
- package/lib/components/containers/max-width-container/index.d.ts +1 -0
- package/lib/components/containers/max-width-container-v2/max-width-container-v2.d.ts +1 -1
- package/lib/components/containers/section-container/index.d.ts +1 -0
- package/lib/components/custom-scrollbar-box/index.d.ts +1 -2
- package/lib/components/dividers/index.d.ts +2 -0
- package/lib/components/dropdowns/dropdown/index.d.ts +1 -2
- package/lib/components/dropdowns/index.d.ts +2 -0
- package/lib/components/feedback/index.d.ts +2 -0
- package/lib/components/feedback/multiple-options-feedback/index.d.ts +1 -0
- package/lib/components/feedback/yes-no-feedback-block/index.d.ts +1 -0
- package/lib/components/inputs/autocomplete-input/index.d.ts +1 -0
- package/lib/components/inputs/boxy-number-input/index.d.ts +1 -2
- package/lib/components/inputs/date-inputs/base-date-range-input/utils.d.ts +4 -4
- package/lib/components/inputs/date-inputs/index.d.ts +6 -0
- package/lib/components/inputs/index.d.ts +14 -0
- package/lib/components/inputs/number-input/index.d.ts +1 -2
- package/lib/components/inputs/search-autocomplete-input/index.d.ts +1 -0
- package/lib/components/inputs/search-input/index.d.ts +1 -0
- package/lib/components/inputs/search-input/partials/index.d.ts +1 -0
- package/lib/components/inputs/search-input/partials/search-box/index.d.ts +1 -0
- package/lib/components/inputs/secondary-text-input/index.d.ts +1 -2
- package/lib/components/links/index.d.ts +2 -0
- package/lib/components/links/link/index.d.ts +1 -2
- package/lib/components/lists/index.d.ts +2 -0
- package/lib/components/lists/list/index.d.ts +1 -2
- package/lib/components/lists/primary-list/index.d.ts +1 -2
- package/lib/components/menus/actions-menu/index.d.ts +1 -0
- package/lib/components/menus/index.d.ts +1 -0
- package/lib/components/meters/people-meter/index.d.ts +1 -0
- package/lib/components/modals/index.d.ts +2 -0
- package/lib/components/modals/modal/index.d.ts +1 -2
- package/lib/components/page-selectors/index.d.ts +1 -0
- package/lib/components/page-selectors/page-selector/index.d.ts +1 -2
- package/lib/components/pagination-bars/index.d.ts +1 -0
- package/lib/components/pagination-bars/pagination-bar/index.d.ts +1 -2
- package/lib/components/progress-bars/index.d.ts +4 -0
- package/lib/components/progress-bars/line-progress-bar/index.d.ts +1 -2
- package/lib/components/progress-bars/progress-bar/index.d.ts +1 -2
- package/lib/components/progress-steps/index.d.ts +1 -2
- package/lib/components/ratings/five-stars-rating/index.d.ts +1 -2
- package/lib/components/ratings/index.d.ts +1 -0
- package/lib/components/selectors/index.d.ts +18 -21
- package/lib/components/slider/index.d.ts +1 -2
- package/lib/components/switches/index.d.ts +3 -0
- package/lib/components/switches/text-switch/index.d.ts +1 -2
- package/lib/components/switches/text-switch/interfaces.d.ts +1 -1
- package/lib/components/tabs/index.d.ts +5 -0
- package/lib/components/tabs/tab-bar/index.d.ts +1 -0
- package/lib/components/tabs/tab-bar-v2/index.d.ts +1 -0
- package/lib/components/text-boxes/index.d.ts +2 -0
- package/lib/components/texts/index.d.ts +23 -0
- package/lib/components/texts/responsive-text/index.d.ts +1 -2
- package/lib/components/tooltips/tooltip-with-pointer/interfaces.d.ts +1 -0
- package/lib/components/utils/anchor/index.d.ts +1 -0
- package/lib/components/utils/index.d.ts +4 -0
- package/lib/components/utils/page-tracker/index.d.ts +1 -2
- package/lib/index.d.ts +32 -127
- package/lib/index.js +1 -1
- package/package.json +5 -3
- package/lib/components/complex/updated-navbar/constants.d.ts +0 -60
- package/lib/components/complex/updated-navbar/index.d.ts +0 -2
- package/lib/components/complex/updated-navbar/interfaces.d.ts +0 -6
- package/lib/components/complex/updated-navbar/partials/index.d.ts +0 -2
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/interfaces.d.ts +0 -4
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/interfaces.d.ts +0 -14
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/updated-menu-box.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/interfaces.d.ts +0 -11
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/updated-menu-row.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/interfaces.d.ts +0 -11
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/updated-navbar-item.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/interfaces.d.ts +0 -4
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/v2-to-legacy-switch-desktop.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/updated-navbar-desktop.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/index.d.ts +0 -2
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/interfaces.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/index.d.ts +0 -4
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/interfaces.d.ts +0 -5
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/unfolded-navbar-container.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/interfaces.d.ts +0 -5
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/updated-navbar-folded.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/index.d.ts +0 -2
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/interfaces.d.ts +0 -6
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/index.d.ts +0 -5
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/interfaces.d.ts +0 -11
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/item-row.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/interfaces.d.ts +0 -11
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/primary-folded-item.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/interfaces.d.ts +0 -10
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/secondary-folded-item.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/interfaces.d.ts +0 -9
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/unfolded-item.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/interfaces.d.ts +0 -8
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/unfolded-item-row.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/updated-navbar-navigation.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/interfaces.d.ts +0 -7
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/updated-navbar-search.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/index.d.ts +0 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/interfaces.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/v2-to-legacy-switch-mobile.d.ts +0 -3
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/updated-navbar-mobile.d.ts +0 -3
- package/lib/components/complex/updated-navbar/updated-navbar.d.ts +0 -3
|
@@ -101,6 +101,10 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
101
101
|
* The background css property
|
|
102
102
|
*/
|
|
103
103
|
bg?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Stroke of the icon.
|
|
106
|
+
*/
|
|
107
|
+
stroke?: string;
|
|
104
108
|
/**
|
|
105
109
|
* The border style to apply to the button on hover.
|
|
106
110
|
*/
|
|
@@ -125,6 +129,10 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
125
129
|
* The background css property on hover
|
|
126
130
|
*/
|
|
127
131
|
hoverBg?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Stroke of icon on hover.
|
|
134
|
+
*/
|
|
135
|
+
hoverStroke?: string;
|
|
128
136
|
/**
|
|
129
137
|
* This prop is used for the main cta buttons (primary/secondary blue/orange). When true, the button will have zero border radius
|
|
130
138
|
*/
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 };
|
|
1
|
+
export * from "../buttons/button";
|
|
2
|
+
export * from "../buttons/cta/cta-button";
|
|
3
|
+
export * from "../buttons/cta/text-cta-button";
|
|
10
4
|
export { PrimaryBlueButton } from "../buttons/cta/primary-blue-button";
|
|
11
5
|
export { PrimaryOrangeButton } from "../buttons/cta/primary-orange-button";
|
|
12
6
|
export { SecondaryBlueButton } from "../buttons/cta/secondary-blue-button";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./round-card";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./carousel-section-container";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./flex-center";
|
|
2
2
|
export * from "./grid-containers";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export * from "./layout-independend-max-width-container";
|
|
4
|
+
export * from "./max-width-container";
|
|
5
5
|
export { MaxWidthContainerV2 as MaxWidth } from "./max-width-container-v2";
|
|
6
|
-
export
|
|
6
|
+
export * from "./section-container";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const MaxWidthContainerV2: React.ForwardRefExoticComponent<import("../max-width-container
|
|
2
|
+
export declare const MaxWidthContainerV2: React.ForwardRefExoticComponent<import("../max-width-container").MaxWidthContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -17,17 +17,17 @@ export declare const getCalendarProps: (props: BaseDateRangeInputMobileProps) =>
|
|
|
17
17
|
zIndex?: number | undefined;
|
|
18
18
|
width?: string | string[] | undefined;
|
|
19
19
|
onSelect: (range: Range) => void;
|
|
20
|
+
showCalendar: boolean;
|
|
21
|
+
alignCalendar?: "left" | "right" | undefined;
|
|
22
|
+
maxDate?: Date | undefined;
|
|
23
|
+
minDate?: Date | undefined;
|
|
20
24
|
onClose: () => void;
|
|
21
25
|
initialRange: Range | null;
|
|
22
26
|
onCancel?: (() => void) | undefined;
|
|
23
27
|
showMonthAndYearPickers?: boolean | undefined;
|
|
24
|
-
showCalendar: boolean;
|
|
25
28
|
dateDisplayFormat?: string | undefined;
|
|
26
29
|
dayDisplayFormat?: string | undefined;
|
|
27
30
|
monthDisplayFormat?: string | undefined;
|
|
28
|
-
alignCalendar?: "left" | "right" | undefined;
|
|
29
|
-
minDate?: Date | undefined;
|
|
30
|
-
maxDate?: Date | undefined;
|
|
31
31
|
quickSelectionLabel?: string | undefined;
|
|
32
32
|
useMobileStyles?: boolean | undefined;
|
|
33
33
|
selectedRange: Range | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./autocomplete-input";
|
|
2
|
+
export * from "./boxy-number-input";
|
|
3
|
+
export * from "./date-inputs";
|
|
4
|
+
export * from "./decody-question-input";
|
|
5
|
+
export * from "./input";
|
|
6
|
+
export * from "./multi-row-secondary-text-input";
|
|
7
|
+
export * from "./number-input";
|
|
8
|
+
export * from "./primary-number-input";
|
|
9
|
+
export * from "./primary-text-input";
|
|
10
|
+
export * from "./search-autocomplete-input";
|
|
11
|
+
export * from "./search-input";
|
|
12
|
+
export * from "./secondary-number-input";
|
|
13
|
+
export * from "./secondary-text-input";
|
|
14
|
+
export * from "./text-input";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./search-box";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./actions-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./page-selector";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./pagination-bar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./five-stars-rating";
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectorOptionType } from "../../interfaces";
|
|
2
2
|
export type { SelectorOptionType as SelectorOption };
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export { CustomScrollableSelector } from "./custom-scrollable-selector";
|
|
21
|
-
export { PrimaryCustomScrollableSelector } from "./primary-custom-scrollable-selector";
|
|
22
|
-
export { UpdatedSecondarySelectorV2 } from "./updated-secondary-selector-v2";
|
|
3
|
+
export * from "./selector";
|
|
4
|
+
export * from "./tertiary-selector";
|
|
5
|
+
export * from "./primary-selector";
|
|
6
|
+
export * from "./secondary-selector";
|
|
7
|
+
export * from "./compact-primary-selector";
|
|
8
|
+
export * from "./custom-selector";
|
|
9
|
+
export * from "./secondary-custom-selector";
|
|
10
|
+
export * from "./tertiary-custom-selector";
|
|
11
|
+
export * from "./combined-secondary-custom-selector";
|
|
12
|
+
export * from "./selector-v2";
|
|
13
|
+
export * from "./tertiary-selector-v2";
|
|
14
|
+
export * from "./secondary-selector-v2";
|
|
15
|
+
export * from "./primary-selector-v2";
|
|
16
|
+
export * from "./combined-secondary-selector-v2";
|
|
17
|
+
export * from "./custom-scrollable-selector";
|
|
18
|
+
export * from "./primary-custom-scrollable-selector";
|
|
19
|
+
export * from "./updated-secondary-selector-v2";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./base-text";
|
|
2
|
+
export * from "./base-text-v2";
|
|
3
|
+
export * from "./eighteen-bold";
|
|
4
|
+
export * from "./eighteen-regular";
|
|
5
|
+
export * from "./fifty-five-sb";
|
|
6
|
+
export * from "./fourteen-regular";
|
|
7
|
+
export * from "./fourteen-sb";
|
|
8
|
+
export * from "./fourty-bold";
|
|
9
|
+
export * from "./no-translate";
|
|
10
|
+
export * from "./responsive-text";
|
|
11
|
+
export * from "./responsive-text-v2";
|
|
12
|
+
export * from "./sixteen-regular";
|
|
13
|
+
export * from "./sixteen-sb";
|
|
14
|
+
export * from "./ten-sb";
|
|
15
|
+
export * from "./thirteen-bold";
|
|
16
|
+
export * from "./thirteen-regular";
|
|
17
|
+
export * from "./thirteen-sb";
|
|
18
|
+
export * from "./thirty-two-bold";
|
|
19
|
+
export * from "./thirty-two-regular";
|
|
20
|
+
export * from "./twelve-regular";
|
|
21
|
+
export * from "./twelve-sb";
|
|
22
|
+
export * from "./twenty-four-bold";
|
|
23
|
+
export * from "./twenty-four-regular";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type ResponsiveTextProps = BaseResponsiveTextProps;
|
|
1
|
+
export type { ResponsiveTextProps, SDFontSizeWeight } from "./interfaces";
|
|
3
2
|
export { ResponsiveText } from "./responsive-text";
|
|
@@ -3,6 +3,7 @@ import { SxProps } from "rebass";
|
|
|
3
3
|
export interface TooltipWithPointerProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
tooltipText: string | React.ReactNode;
|
|
6
|
+
mobileTitle?: string | React.ReactNode;
|
|
6
7
|
tooltipWidth?: string | string[];
|
|
7
8
|
placement?: "left" | "right";
|
|
8
9
|
tooltipOffset?: number;
|