@selfdecode/sd-component-library 2.44.0 → 2.44.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/interfaces.d.ts +11 -3
- 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 +5 -0
- 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/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/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/custom-scrollbar-box/interfaces.d.ts +25 -4
- package/lib/components/dividers/divider/interfaces.d.ts +5 -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/date-inputs/primary-date-range-input/index.d.ts +1 -0
- package/lib/components/inputs/date-inputs/primary-date-range-input/interfaces.d.ts +21 -0
- package/lib/components/inputs/date-inputs/primary-date-range-input/primary-date-range-input.d.ts +3 -0
- package/lib/components/inputs/input/interfaces.d.ts +2 -2
- package/lib/components/inputs/multi-row-secondary-text-input/index.d.ts +1 -0
- package/lib/components/inputs/multi-row-secondary-text-input/interfaces.d.ts +10 -0
- package/lib/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.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/secondary-text-input/interfaces.d.ts +6 -1
- package/lib/components/labels/base-label/base-label.d.ts +0 -1
- package/lib/components/meters/multi-option-discrete-outline-meter/interfaces.d.ts +1 -0
- 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/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-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/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-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/star-tooltip/partials/toltip-text-modal/interfaces.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 +6 -0
- package/lib/index.js +1 -1
- package/package.json +2 -1
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BaseInfoTooltipProps } from "../base-info-tooltip";
|
|
2
3
|
/**
|
|
3
4
|
* Additional props we want to add
|
|
@@ -7,6 +8,6 @@ export interface PrimaryInfoTooltipProps extends SameProps {
|
|
|
7
8
|
/**
|
|
8
9
|
* Only this prop is required
|
|
9
10
|
*/
|
|
10
|
-
tooltipText: string;
|
|
11
|
+
tooltipText: string | React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export {};
|
package/lib/core/theme.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ declare const _default: {
|
|
|
61
61
|
combined: {
|
|
62
62
|
display: string;
|
|
63
63
|
};
|
|
64
|
+
customSecondary: {
|
|
65
|
+
gap: string;
|
|
66
|
+
gridTemplateColumns: string;
|
|
67
|
+
};
|
|
68
|
+
customTertiary: {
|
|
69
|
+
gap: string;
|
|
70
|
+
};
|
|
64
71
|
};
|
|
65
72
|
};
|
|
66
73
|
_dropdowns: {
|
|
@@ -264,7 +271,6 @@ declare const _default: {
|
|
|
264
271
|
};
|
|
265
272
|
selectors: {
|
|
266
273
|
secondary: {
|
|
267
|
-
fontFamily: string;
|
|
268
274
|
fontSize: string[];
|
|
269
275
|
fontWeight: number;
|
|
270
276
|
letterSpacing: number;
|
|
@@ -272,7 +278,6 @@ declare const _default: {
|
|
|
272
278
|
color: string;
|
|
273
279
|
};
|
|
274
280
|
secondaryError: {
|
|
275
|
-
fontFamily: string;
|
|
276
281
|
width: string;
|
|
277
282
|
fontSize: string[];
|
|
278
283
|
fontWeight: number;
|
|
@@ -282,7 +287,6 @@ declare const _default: {
|
|
|
282
287
|
color: string;
|
|
283
288
|
};
|
|
284
289
|
tertiary: {
|
|
285
|
-
fontFamily: string;
|
|
286
290
|
width: string;
|
|
287
291
|
color: string;
|
|
288
292
|
fontSize: string[];
|
|
@@ -292,7 +296,6 @@ declare const _default: {
|
|
|
292
296
|
marginBottom: string[];
|
|
293
297
|
};
|
|
294
298
|
tertiaryError: {
|
|
295
|
-
fontFamily: string;
|
|
296
299
|
width: string;
|
|
297
300
|
fontSize: string[];
|
|
298
301
|
fontWeight: number;
|
|
@@ -302,13 +305,11 @@ declare const _default: {
|
|
|
302
305
|
color: string;
|
|
303
306
|
};
|
|
304
307
|
compact: {
|
|
305
|
-
fontFamily: string;
|
|
306
308
|
width: string;
|
|
307
309
|
color: string;
|
|
308
310
|
fontSize: string[];
|
|
309
311
|
};
|
|
310
312
|
secondaryV2: {
|
|
311
|
-
fontFamily: string;
|
|
312
313
|
color: string;
|
|
313
314
|
fontSize: string;
|
|
314
315
|
};
|
|
@@ -317,7 +318,6 @@ declare const _default: {
|
|
|
317
318
|
left: string;
|
|
318
319
|
top: string;
|
|
319
320
|
height: string;
|
|
320
|
-
fontFamily: string;
|
|
321
321
|
fontWeight: number;
|
|
322
322
|
color: string;
|
|
323
323
|
fontSize: string;
|
|
@@ -326,6 +326,19 @@ declare const _default: {
|
|
|
326
326
|
width: string;
|
|
327
327
|
bg: string;
|
|
328
328
|
px: string;
|
|
329
|
+
zIndex: number;
|
|
330
|
+
};
|
|
331
|
+
customSecondary: {
|
|
332
|
+
fontSize: string;
|
|
333
|
+
fontWeight: number;
|
|
334
|
+
color: string;
|
|
335
|
+
};
|
|
336
|
+
customTertiary: {
|
|
337
|
+
fontSize: string;
|
|
338
|
+
fontWeight: number;
|
|
339
|
+
letterSpacing: string;
|
|
340
|
+
textTransform: string;
|
|
341
|
+
color: string;
|
|
329
342
|
};
|
|
330
343
|
};
|
|
331
344
|
iconButton: {
|
package/lib/index.d.ts
CHANGED
|
@@ -86,12 +86,16 @@ export declare type BoxyNumberInputProps = BaseBoxyNumberInputProps;
|
|
|
86
86
|
export { SearchInput } from "./components/inputs/search-input";
|
|
87
87
|
export { AutocompleteInput } from "./components/inputs/autocomplete-input";
|
|
88
88
|
export type { AutocompleteInputProps, AutocompleteOption, } from "./components/inputs/autocomplete-input/interfaces";
|
|
89
|
+
export { SearchAutocompleteInput } from "./components/inputs/search-autocomplete-input";
|
|
90
|
+
export type { SearchAutocompleteOption } from "./components/inputs/search-autocomplete-input/interfaces";
|
|
89
91
|
export { PrimaryDateInput } from "./components/inputs/date-inputs/primary-date-input";
|
|
90
92
|
export { OutlinedDateInput } from "./components/inputs/date-inputs/outlined-date-input";
|
|
91
93
|
export { BaseDateRangeInput } from "./components/inputs/date-inputs/base-date-range-input";
|
|
92
94
|
export type { BaseDateRangeInputProps };
|
|
93
95
|
export { OutlinedDateRangeInput } from "./components/inputs/date-inputs/outlined-date-range-input";
|
|
94
96
|
export type { OutlinedDateRangeInputProps };
|
|
97
|
+
export { MultiRowSecondaryTextInput } from "./components/inputs/multi-row-secondary-text-input";
|
|
98
|
+
export { PrimaryDateRangeInput } from "./components/inputs/date-inputs/primary-date-range-input";
|
|
95
99
|
export { Link } from "./components/links/link";
|
|
96
100
|
export declare type LinkProps = BaseLinkProps;
|
|
97
101
|
export { PrimaryLink } from "./components/links/primary-link";
|
|
@@ -135,6 +139,8 @@ export { SecondarySelector } from "./components/selectors/secondary-selector";
|
|
|
135
139
|
export { CompactPrimarySelector } from "./components/selectors/compact-primary-selector";
|
|
136
140
|
export declare type CompactPrimarySelectorProps<T extends string = string> = BaseCompactSelectorProps<T>;
|
|
137
141
|
export { CustomSelector } from "./components/selectors/custom-selector";
|
|
142
|
+
export { SecondaryCustomSelector } from "./components/selectors/secondary-custom-selector";
|
|
143
|
+
export { TertiaryCustomSelector } from "./components/selectors/tertiary-custom-selector";
|
|
138
144
|
export { SelectorV2 } from "./components/selectors/selector-v2";
|
|
139
145
|
export type { SelectorV2Props, SelectorOptionV2, } from "./components/selectors/selector-v2";
|
|
140
146
|
export { TertiarySelectorV2 } from "./components/selectors/tertiary-selector-v2";
|