@selfdecode/sd-component-library 2.45.0 → 2.45.3
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/logos/logo/interfaces.d.ts +1 -1
- package/lib/components/buttons/logos/navbar-logo/interfaces.d.ts +1 -1
- package/lib/components/buttons/round-icon-button/interfaces.d.ts +4 -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-v1/partials/navbar-mobile-v1/partials/icon-buttons/icon-buttons.d.ts +3 -3
- package/lib/components/complex/navbar/partials/navbar-v2/partials/interfaces.d.ts +4 -0
- 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/complex/updated-navbar/constants.d.ts +59 -0
- package/lib/components/complex/updated-navbar/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/interfaces.d.ts +6 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/interfaces.d.ts +4 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/interfaces.d.ts +14 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/updated-menu-box.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/interfaces.d.ts +11 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/updated-menu-row.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/interfaces.d.ts +11 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/updated-navbar-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/interfaces.d.ts +4 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/v2-to-legacy-switch-desktop.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/updated-navbar-desktop.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/interfaces.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/interfaces.d.ts +5 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/unfolded-navbar-container.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/interfaces.d.ts +5 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/updated-navbar-folded.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/interfaces.d.ts +6 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/interfaces.d.ts +11 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/item-row.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/interfaces.d.ts +8 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/primary-folded-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/interfaces.d.ts +10 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/secondary-folded-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/interfaces.d.ts +9 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/unfolded-item.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/interfaces.d.ts +9 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/unfolded-item-row.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/updated-navbar-navigation.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/interfaces.d.ts +6 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/updated-navbar-search.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/index.d.ts +1 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/interfaces.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/v2-to-legacy-switch-mobile.d.ts +3 -0
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/updated-navbar-mobile.d.ts +3 -0
- package/lib/components/complex/updated-navbar/updated-navbar.d.ts +3 -0
- package/lib/components/containers/flex-center/flex-center.d.ts +3 -0
- package/lib/components/containers/flex-center/index.d.ts +1 -0
- package/lib/components/containers/max-width-container/max-width-container.d.ts +0 -1
- package/lib/components/containers/max-width-container-v2/index.d.ts +1 -0
- package/lib/components/containers/max-width-container-v2/interfaces.d.ts +2 -0
- package/lib/components/containers/max-width-container-v2/max-width-container-v2.d.ts +3 -0
- package/lib/components/containers/section-container/section-container.d.ts +0 -1
- package/lib/components/custom-scrollbar-box/interfaces.d.ts +4 -0
- package/lib/components/dividers/divider/interfaces.d.ts +9 -0
- package/lib/components/dividers/horizontal-divider/interfaces.d.ts +1 -1
- package/lib/components/dividers/vertical-divider/interfaces.d.ts +1 -1
- package/lib/components/feature-explanation/feature-explanation.d.ts +0 -1
- package/lib/components/inputs/multi-row-secondary-text-input/interfaces.d.ts +3 -0
- package/lib/components/inputs/search-autocomplete-input/index.d.ts +1 -0
- package/lib/components/inputs/search-autocomplete-input/interfaces.d.ts +26 -0
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/index.d.ts +1 -0
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/interfaces.d.ts +11 -0
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/search-autocomplete-results-box.d.ts +6 -0
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/index.d.ts +1 -0
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/interfaces.d.ts +9 -0
- package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/search-autocomplete-row.d.ts +6 -0
- package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.d.ts +6 -0
- package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +0 -1
- package/lib/components/inputs/search-input/presentational/interfaces.d.ts +22 -1
- package/lib/components/inputs/secondary-text-input/interfaces.d.ts +6 -1
- package/lib/components/interfaces.d.ts +5 -5
- package/lib/components/labels/base-label/base-label.d.ts +0 -1
- package/lib/components/links/link/interfaces.d.ts +6 -2
- package/lib/components/links/primary-link/interfaces.d.ts +1 -6
- package/lib/components/menus/actions-menu/actions-menu.d.ts +3 -0
- package/lib/components/menus/actions-menu/index.d.ts +1 -0
- package/lib/components/menus/actions-menu/interfaces.d.ts +16 -0
- package/lib/components/meters/outline-meter/interfaces.d.ts +5 -0
- package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +1 -1
- package/lib/components/modals/modal/interfaces.d.ts +8 -4
- package/lib/components/modals/primary-modal/interfaces.d.ts +0 -4
- 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/secondary-custom-selector/index.d.ts +1 -0
- package/lib/components/selectors/secondary-custom-selector/interfaces.d.ts +6 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/index.d.ts +1 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/interfaces.d.ts +5 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/secondary-custom-selector-option-row.d.ts +3 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/index.d.ts +1 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/interfaces.d.ts +5 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.d.ts +2 -0
- package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.d.ts +2 -0
- 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/interfaces.d.ts +1 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +0 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/interfaces.d.ts +4 -0
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +0 -1
- package/lib/components/selectors/tertiary-custom-selector/index.d.ts +1 -0
- package/lib/components/selectors/tertiary-custom-selector/interfaces.d.ts +3 -0
- package/lib/components/selectors/tertiary-custom-selector/tertiary-custom-selector.d.ts +3 -0
- 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/switches/toggle-switch/index.d.ts +1 -0
- package/lib/components/switches/toggle-switch/interfaces.d.ts +4 -0
- package/lib/components/switches/toggle-switch/toggle-switch.d.ts +3 -0
- 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 +5 -0
- package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +3 -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/base-text/interfaces.d.ts +2 -2
- package/lib/components/texts/base-text-v2/interfaces.d.ts +4 -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/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/tooltips/base-tooltip/interfaces.d.ts +1 -1
- package/lib/components/tooltips/primary-info-tooltip/interfaces.d.ts +2 -1
- package/lib/components/tooltips/radio-info-button-tooltip/interfaces.d.ts +4 -0
- package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/interfaces.d.ts +2 -1
- package/lib/components/utils/anchor/interfaces.d.ts +6 -1
- package/lib/components/utils/anchor/refs-manager.d.ts +2 -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/theme.d.ts +20 -7
- package/lib/index.d.ts +9 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SearchAutocompleteOption } from "../../interfaces";
|
|
2
|
+
export interface SearchAutocompleteResultsBoxProps<T extends {
|
|
3
|
+
id: string;
|
|
4
|
+
} = {
|
|
5
|
+
id: string;
|
|
6
|
+
}> {
|
|
7
|
+
results: SearchAutocompleteOption<T>[];
|
|
8
|
+
onSelect: (newValue: SearchAutocompleteOption<T>) => void;
|
|
9
|
+
rowsDisplayed: number;
|
|
10
|
+
rowHeight: number;
|
|
11
|
+
}
|
package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchAutocompleteRow } from "./search-autocomplete-row";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PrimaryTextInputProps } from "../../primary-text-input";
|
|
2
2
|
import { SearchResult } from "../partials/search-box/interfaces";
|
|
3
|
+
import { SxProps } from "rebass";
|
|
3
4
|
/**
|
|
4
5
|
* Defines SearchInput component's properties.
|
|
5
6
|
*/
|
|
@@ -26,12 +27,32 @@ export interface SearchInputProps extends BaseInputProps {
|
|
|
26
27
|
* should be placed when the X icon is not visible (hideX=true)
|
|
27
28
|
*/
|
|
28
29
|
searchRight?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Bottom offset of the search icon.
|
|
32
|
+
*/
|
|
33
|
+
searchBottom?: string;
|
|
29
34
|
/**
|
|
30
35
|
* The array of results
|
|
31
36
|
*/
|
|
32
|
-
searchResults?:
|
|
37
|
+
searchResults?: SearchResult[];
|
|
33
38
|
/**
|
|
34
39
|
* Whether to use react-router links.
|
|
35
40
|
*/
|
|
36
41
|
useRouterLinks?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Sx prop of the container.
|
|
44
|
+
*/
|
|
45
|
+
containerSx?: SxProps["sx"];
|
|
46
|
+
/**
|
|
47
|
+
* Color of the x icon.
|
|
48
|
+
*/
|
|
49
|
+
xColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Bottom offset of x icon.
|
|
52
|
+
*/
|
|
53
|
+
xBottom?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Container max width.
|
|
56
|
+
*/
|
|
57
|
+
maxWidth?: string | string[];
|
|
37
58
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ResponsiveTextV2Props } from "../../texts/responsive-text-v2";
|
|
2
2
|
import { PrimaryTextInputProps } from "../primary-text-input";
|
|
3
|
+
import { SxProps } from "rebass";
|
|
3
4
|
/**
|
|
4
5
|
* Defines the SecondaryTextInput component's properties.
|
|
5
6
|
*/
|
|
6
|
-
export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled"> & {
|
|
7
|
+
export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled" | "sx"> & {
|
|
7
8
|
/**
|
|
8
9
|
* The label for the text input
|
|
9
10
|
*/
|
|
@@ -36,4 +37,8 @@ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onCha
|
|
|
36
37
|
* Default value: ["0px"].
|
|
37
38
|
*/
|
|
38
39
|
labelMargin?: string | string[];
|
|
40
|
+
/**
|
|
41
|
+
* Padding of the input element.
|
|
42
|
+
*/
|
|
43
|
+
inputSx?: SxProps["sx"];
|
|
39
44
|
};
|
|
@@ -7,23 +7,23 @@ export interface BaseComponentProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* The margin property
|
|
9
9
|
*/
|
|
10
|
-
m?: string[];
|
|
10
|
+
m?: string | string[];
|
|
11
11
|
/**
|
|
12
12
|
* The margin property top
|
|
13
13
|
*/
|
|
14
|
-
mt?: string[];
|
|
14
|
+
mt?: string | string[];
|
|
15
15
|
/**
|
|
16
16
|
* The margin property right
|
|
17
17
|
*/
|
|
18
|
-
mr?: string[];
|
|
18
|
+
mr?: string | string[];
|
|
19
19
|
/**
|
|
20
20
|
* The margin property bottom
|
|
21
21
|
*/
|
|
22
|
-
mb?: string[];
|
|
22
|
+
mb?: string | string[];
|
|
23
23
|
/**
|
|
24
24
|
* The margin property left
|
|
25
25
|
*/
|
|
26
|
-
ml?: string[];
|
|
26
|
+
ml?: string | string[];
|
|
27
27
|
/**
|
|
28
28
|
* Z-index of the component
|
|
29
29
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface LinkProps extends
|
|
1
|
+
import { LinkProps as RebassLinkProps } from "rebass";
|
|
2
|
+
export interface LinkProps extends RebassLinkProps {
|
|
3
3
|
/**
|
|
4
4
|
* The text of the link
|
|
5
5
|
*/
|
|
@@ -18,4 +18,8 @@ export interface LinkProps extends BaseComponentProps {
|
|
|
18
18
|
* Color of the text in the link
|
|
19
19
|
*/
|
|
20
20
|
color?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to block auto-translation for link content.
|
|
23
|
+
*/
|
|
24
|
+
dontTranslate?: boolean;
|
|
21
25
|
}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { LinkProps } from "../link";
|
|
2
|
-
export declare type PrimaryLinkProps =
|
|
3
|
-
/**
|
|
4
|
-
* Default value: ["#9E1CB5"] (the same as ["purple"] and ["cl_purple"])
|
|
5
|
-
*/
|
|
6
|
-
color?: LinkProps["color"];
|
|
7
|
-
};
|
|
2
|
+
export declare type PrimaryLinkProps = Omit<LinkProps, "variant">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionsMenu } from "./actions-menu";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SxProps } from "rebass";
|
|
2
|
+
export interface ActionsMenuProps {
|
|
3
|
+
actions: ActionConfig[];
|
|
4
|
+
actionsBoxWidth?: string;
|
|
5
|
+
actionBoxPx?: string | string[];
|
|
6
|
+
actionBoxPy?: string | string[];
|
|
7
|
+
containerSx?: SxProps["sx"];
|
|
8
|
+
/**
|
|
9
|
+
* Whether to hide options box after selection.
|
|
10
|
+
*/
|
|
11
|
+
closeAfterSelection?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ActionConfig {
|
|
14
|
+
text: string;
|
|
15
|
+
onClick: () => void;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
1
2
|
export declare type OutlineMeterPosition = number;
|
|
2
3
|
export interface OutlineMeterProps {
|
|
3
4
|
/**
|
|
@@ -106,6 +107,10 @@ export interface OutlineMeterProps {
|
|
|
106
107
|
* Border radius of the mask.
|
|
107
108
|
*/
|
|
108
109
|
maskBorderRadius?: number;
|
|
110
|
+
/**
|
|
111
|
+
* Cursor for the gauge.
|
|
112
|
+
*/
|
|
113
|
+
cursor?: CSSProperties["cursor"];
|
|
109
114
|
}
|
|
110
115
|
export declare type SmallOutlineMeterProps = OutlineMeterProps;
|
|
111
116
|
export interface OutlineMeterRangeConfig {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OutlineMeterProps } from "../outline-meter";
|
|
2
|
-
export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "height" | "value" | "gaugeWidth" | "arc" | "marginTop" | "marginX" | "pointStrokeWidth" | "innerPointRadius" | "distanceBetweenRanges" | "distanceFromLabelToRanges" | "counterClockWise" | "maskBorderRadius"> {
|
|
2
|
+
export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "height" | "value" | "gaugeWidth" | "arc" | "marginTop" | "marginX" | "pointStrokeWidth" | "innerPointRadius" | "distanceBetweenRanges" | "distanceFromLabelToRanges" | "counterClockWise" | "maskBorderRadius" | "cursor"> {
|
|
3
3
|
/**
|
|
4
4
|
* Colors for smiley corresponding to state.
|
|
5
5
|
*/
|
|
@@ -32,7 +32,7 @@ export interface ModalProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* Width property of the modal.
|
|
34
34
|
*/
|
|
35
|
-
width?:
|
|
35
|
+
width?: string | string[];
|
|
36
36
|
/**
|
|
37
37
|
* Boolean to open up the pop up.
|
|
38
38
|
*/
|
|
@@ -40,19 +40,19 @@ export interface ModalProps {
|
|
|
40
40
|
/**
|
|
41
41
|
* Optional change to the container's borderRadius. Default value: ["5px"]
|
|
42
42
|
*/
|
|
43
|
-
borderRadius?:
|
|
43
|
+
borderRadius?: string | string[];
|
|
44
44
|
/**
|
|
45
45
|
* Optional change for the default padding. This padding is
|
|
46
46
|
* for the outer container, and not inside the popup itself.
|
|
47
47
|
* Default value: ["30px", "150px"],
|
|
48
48
|
*/
|
|
49
|
-
outerPadding?:
|
|
49
|
+
outerPadding?: string | string[];
|
|
50
50
|
/**
|
|
51
51
|
* Optional change for the default inner padding. This adds padding
|
|
52
52
|
* for the components inside the outer popup container.
|
|
53
53
|
* Default value: ["40px 20px", "50px"]
|
|
54
54
|
*/
|
|
55
|
-
innerPadding?:
|
|
55
|
+
innerPadding?: string | string[];
|
|
56
56
|
/**
|
|
57
57
|
* Optional ability to close the modal when clicking outside the content
|
|
58
58
|
* False by default
|
|
@@ -69,4 +69,8 @@ export interface ModalProps {
|
|
|
69
69
|
* Additional props for the modal outer container.
|
|
70
70
|
*/
|
|
71
71
|
containerSx?: SxProps["sx"];
|
|
72
|
+
/**
|
|
73
|
+
* Additional props for the modal inner container.
|
|
74
|
+
*/
|
|
75
|
+
innerSx?: SxProps["sx"];
|
|
72
76
|
}
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SecondaryCustomSelector } from "./secondary-custom-selector";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectorV2Props } from "../selector-v2";
|
|
2
|
+
import { SxProps } from "rebass";
|
|
3
|
+
export interface SecondaryCustomSelectorProps<T extends string = string> extends Pick<SelectorV2Props<T>, "options" | "value" | "onChange" | "width" | "variant"> {
|
|
4
|
+
label: string;
|
|
5
|
+
containerSx?: SxProps["sx"];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SecondaryCustomSelectorOptionRow } from "./secondary-custom-selector-option-row";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SecondaryCustomSelectorOptionsBox } from "./secondary-custom-selector-options-box";
|
|
@@ -8,7 +8,7 @@ export declare type SelectorOptionV2<T extends string | null = string> = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Defines the selector component's properties.
|
|
10
10
|
*/
|
|
11
|
-
export interface SelectorV2Props<T extends string = string> extends Omit<SelectorProps, "onChange" | "defaultValue" | "options">, Pick<BaseSelectorV2Props, "pl" | "containerVariant" | "labelContainerAlignItems"> {
|
|
11
|
+
export interface SelectorV2Props<T extends string = string> extends Omit<SelectorProps, "onChange" | "defaultValue" | "options">, Pick<BaseSelectorV2Props, "pl" | "containerVariant" | "labelContainerAlignItems" | "disabled"> {
|
|
12
12
|
/**
|
|
13
13
|
* Default value of the selector.
|
|
14
14
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TertiaryCustomSelector } from "./tertiary-custom-selector";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleSwitch } from "./toggle-switch";
|
|
@@ -39,6 +39,11 @@ export interface TabBarV2Props {
|
|
|
39
39
|
* Font size of the tab text.
|
|
40
40
|
*/
|
|
41
41
|
fontSize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Tab offsets. Padding = borderRadius + offset.
|
|
44
|
+
*/
|
|
45
|
+
tabTopAdditionalOffset?: number;
|
|
46
|
+
tabBottomAdditionalOffset?: number;
|
|
42
47
|
}
|
|
43
48
|
export interface TabV2Config {
|
|
44
49
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabBarV2Props, TabV2Config } from "../../interfaces";
|
|
2
|
-
export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "tabs" | "maxWidth" | "paddingX" | "selectedTabId" | "tabPx">> {
|
|
2
|
+
export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "tabs" | "maxWidth" | "paddingX" | "selectedTabId" | "tabPx" | "tabTopAdditionalOffset" | "tabBottomAdditionalOffset">> {
|
|
3
3
|
/**
|
|
4
4
|
* Index of the selected tab.
|
|
5
5
|
*/
|
|
@@ -25,4 +25,6 @@ export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "t
|
|
|
25
25
|
*/
|
|
26
26
|
px?: string | string[];
|
|
27
27
|
observer?: IntersectionObserver;
|
|
28
|
+
topAdditionalOffset: number;
|
|
29
|
+
bottomAdditionalOffset: number;
|
|
28
30
|
}
|
|
@@ -44,11 +44,11 @@ interface CommonBaseTextProps extends Pick<BaseComponentProps, "m" | "mt" | "mr"
|
|
|
44
44
|
/**
|
|
45
45
|
* Possible letter spacing
|
|
46
46
|
*/
|
|
47
|
-
letterSpacing?:
|
|
47
|
+
letterSpacing?: string | string[];
|
|
48
48
|
/**
|
|
49
49
|
* Possible line height adjustments
|
|
50
50
|
*/
|
|
51
|
-
lineHeight?:
|
|
51
|
+
lineHeight?: string | string[];
|
|
52
52
|
/**
|
|
53
53
|
* Possible bg color for the text
|
|
54
54
|
*/
|
|
@@ -3,4 +3,8 @@ import { TextProps } from "rebass";
|
|
|
3
3
|
export interface BaseTextV2Props extends Omit<TextProps, "color"> {
|
|
4
4
|
color?: string | string[];
|
|
5
5
|
textTransform?: React.CSSProperties["textTransform"];
|
|
6
|
+
/**
|
|
7
|
+
* Whether to apply "no-translate" class to text block.
|
|
8
|
+
*/
|
|
9
|
+
dontTranslate?: boolean;
|
|
6
10
|
}
|