@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.
Files changed (103) hide show
  1. package/lib/components/accordions/base-accordion/interfaces.d.ts +11 -3
  2. package/lib/components/animations/up-down-arrow/up-down-arrow.d.ts +0 -1
  3. package/lib/components/bicolor-badge/interfaces.d.ts +0 -1
  4. package/lib/components/buttons/button/interfaces.d.ts +5 -0
  5. package/lib/components/buttons/cta/cta-button/interfaces.d.ts +1 -1
  6. package/lib/components/buttons/cta/primary-blue-button/interfaces.d.ts +1 -1
  7. package/lib/components/buttons/cta/secondary-blue-button/interfaces.d.ts +1 -1
  8. package/lib/components/checkboxes/checkbox/checkbox.d.ts +0 -1
  9. package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +0 -1
  10. package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +0 -1
  11. package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +0 -1
  12. package/lib/components/complex/footer/presentational/footer-presentational.d.ts +0 -1
  13. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +0 -1
  14. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +0 -1
  15. package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +0 -1
  16. package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +0 -1
  17. package/lib/components/containers/max-width-container/max-width-container.d.ts +0 -1
  18. package/lib/components/containers/section-container/section-container.d.ts +0 -1
  19. package/lib/components/custom-scrollbar-box/interfaces.d.ts +25 -4
  20. package/lib/components/dividers/divider/interfaces.d.ts +5 -0
  21. package/lib/components/dividers/horizontal-divider/interfaces.d.ts +1 -1
  22. package/lib/components/dividers/vertical-divider/interfaces.d.ts +1 -1
  23. package/lib/components/feature-explanation/feature-explanation.d.ts +0 -1
  24. package/lib/components/inputs/date-inputs/primary-date-range-input/index.d.ts +1 -0
  25. package/lib/components/inputs/date-inputs/primary-date-range-input/interfaces.d.ts +21 -0
  26. package/lib/components/inputs/date-inputs/primary-date-range-input/primary-date-range-input.d.ts +3 -0
  27. package/lib/components/inputs/input/interfaces.d.ts +2 -2
  28. package/lib/components/inputs/multi-row-secondary-text-input/index.d.ts +1 -0
  29. package/lib/components/inputs/multi-row-secondary-text-input/interfaces.d.ts +10 -0
  30. package/lib/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.d.ts +3 -0
  31. package/lib/components/inputs/search-autocomplete-input/index.d.ts +1 -0
  32. package/lib/components/inputs/search-autocomplete-input/interfaces.d.ts +26 -0
  33. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/index.d.ts +1 -0
  34. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/interfaces.d.ts +11 -0
  35. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-results-box/search-autocomplete-results-box.d.ts +6 -0
  36. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/index.d.ts +1 -0
  37. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/interfaces.d.ts +9 -0
  38. package/lib/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/search-autocomplete-row.d.ts +6 -0
  39. package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.d.ts +6 -0
  40. package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +0 -1
  41. package/lib/components/inputs/secondary-text-input/interfaces.d.ts +6 -1
  42. package/lib/components/labels/base-label/base-label.d.ts +0 -1
  43. package/lib/components/meters/multi-option-discrete-outline-meter/interfaces.d.ts +1 -0
  44. package/lib/components/modals/modal/interfaces.d.ts +8 -4
  45. package/lib/components/modals/primary-modal/interfaces.d.ts +0 -4
  46. package/lib/components/radio-button/radio-button.d.ts +0 -1
  47. package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +0 -1
  48. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +0 -1
  49. package/lib/components/selectors/primary-selector/primary-selector.d.ts +0 -1
  50. package/lib/components/selectors/secondary-custom-selector/index.d.ts +1 -0
  51. package/lib/components/selectors/secondary-custom-selector/interfaces.d.ts +6 -0
  52. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/index.d.ts +1 -0
  53. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/interfaces.d.ts +5 -0
  54. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/secondary-custom-selector-option-row.d.ts +3 -0
  55. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/index.d.ts +1 -0
  56. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/interfaces.d.ts +5 -0
  57. package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.d.ts +2 -0
  58. package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.d.ts +2 -0
  59. package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +0 -1
  60. package/lib/components/selectors/selector/selector.d.ts +0 -1
  61. package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +0 -1
  62. package/lib/components/selectors/selector-v2/selector-v2.d.ts +0 -1
  63. package/lib/components/selectors/tertiary-custom-selector/index.d.ts +1 -0
  64. package/lib/components/selectors/tertiary-custom-selector/interfaces.d.ts +3 -0
  65. package/lib/components/selectors/tertiary-custom-selector/tertiary-custom-selector.d.ts +3 -0
  66. package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +0 -1
  67. package/lib/components/slider/partials/step-circles/step-circles.d.ts +0 -1
  68. package/lib/components/slider/slider.d.ts +0 -1
  69. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +0 -1
  70. package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
  71. package/lib/components/tabs/tab-bar-v2/interfaces.d.ts +5 -0
  72. package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +3 -1
  73. package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +0 -1
  74. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
  75. package/lib/components/texts/base-text/base-text.d.ts +0 -1
  76. package/lib/components/texts/base-text-v2/interfaces.d.ts +4 -0
  77. package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +0 -1
  78. package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +0 -1
  79. package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +0 -1
  80. package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +0 -1
  81. package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +0 -1
  82. package/lib/components/texts/fourty-bold/fourty-bold.d.ts +0 -1
  83. package/lib/components/texts/no-translate/no-translate.d.ts +0 -1
  84. package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +0 -1
  85. package/lib/components/texts/ten-sb/ten-sb.d.ts +0 -1
  86. package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +0 -1
  87. package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +0 -1
  88. package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +0 -1
  89. package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +0 -1
  90. package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +0 -1
  91. package/lib/components/texts/twelve-regular/twelve-regular.d.ts +0 -1
  92. package/lib/components/texts/twelve-sb/twelve-sb.d.ts +0 -1
  93. package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +0 -1
  94. package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +0 -1
  95. package/lib/components/tooltips/base-tooltip/interfaces.d.ts +1 -1
  96. package/lib/components/tooltips/primary-info-tooltip/interfaces.d.ts +2 -1
  97. package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/interfaces.d.ts +2 -1
  98. package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +0 -1
  99. package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +0 -1
  100. package/lib/core/theme.d.ts +20 -7
  101. package/lib/index.d.ts +6 -0
  102. package/lib/index.js +1 -1
  103. 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
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TabbedViewProps } from "./interfaces";
3
2
  export declare function TabbedView({ tabs, color, activeColor, contentPadding, tabPadding, }: TabbedViewProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabsMenuProps } from "./interfaces";
3
2
  /**
4
3
  * TabsMenu component.
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { BaseTextProps } from "./interfaces";
3
2
  export declare const BaseText: (props: BaseTextProps) => JSX.Element;
@@ -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,2 @@
1
- /// <reference types="react" />
2
1
  import { EighteenBoldProps } from "./interfaces";
3
2
  export declare const EighteenBold: (props: EighteenBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { EighteenRegularProps } from "./interfaces";
3
2
  export declare const EighteenRegular: (props: EighteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FiftyFiveSbProps } from "./interfaces";
3
2
  export declare const FiftyFiveSb: (props: FiftyFiveSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FourteenRegularProps } from "./interfaces";
3
2
  export declare const FourteenRegular: (props: FourteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FourteenSbProps } from "./interfaces";
3
2
  export declare const FourteenSb: (props: FourteenSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FourtyBoldProps } from "./interfaces";
3
2
  export declare const FourtyBold: (props: FourtyBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TextProps } from "rebass";
3
2
  export declare const NoTranslate: (props: TextProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SixteenRegularProps } from "./interfaces";
3
2
  export declare const SixteenRegular: (props: SixteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TenSbProps } from "./interfaces";
3
2
  export declare const TenSb: (props: TenSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirteenBoldProps } from "./interfaces";
3
2
  export declare const ThirteenBold: (props: ThirteenBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirteenRegularProps } from "./interfaces";
3
2
  export declare const ThirteenRegular: (props: ThirteenRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirteenSbProps } from "./interfaces";
3
2
  export declare const ThirteenSb: (props: ThirteenSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirtyTwoBoldProps } from "./interfaces";
3
2
  export declare const ThirtyTwoBold: (props: ThirtyTwoBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ThirtyTwoRegularProps } from "./interfaces";
3
2
  export declare const ThirtyTwoRegular: (props: ThirtyTwoRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwelveRegularProps } from "./interfaces";
3
2
  export declare const TwelveRegular: (props: TwelveRegularProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwelveSbProps } from "./interfaces";
3
2
  export declare const TwelveSb: (props: TwelveSbProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwentyFourBoldProps } from "./interfaces";
3
2
  export declare const TwentyFourBold: (props: TwentyFourBoldProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TwentyFourRegularProps } from "./interfaces";
3
2
  export declare const TwentyFourRegular: (props: TwentyFourRegularProps) => JSX.Element;
@@ -7,7 +7,7 @@ export interface BaseTooltipProps extends BaseComponentProps {
7
7
  /**
8
8
  * Text to be displayed in the tooltip.
9
9
  */
10
- tooltipText: string;
10
+ tooltipText: string | React.ReactNode;
11
11
  /**
12
12
  * Color of text to be displayed in the tooltip.
13
13
  */
@@ -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 {};
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  export interface TooltipTextModalProps {
2
3
  isOpen: boolean;
3
4
  onClose: () => void;
4
- text: string;
5
+ text: string | React.ReactNode;
5
6
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ScrollToTopProps } from "./interfaces";
3
2
  export declare const ScrollToTop: (props: ScrollToTopProps) => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ScrollToTopOnMount: () => JSX.Element;
@@ -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";