@selfdecode/sd-component-library 2.43.16 → 2.43.17

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.
@@ -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 = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "height" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "borderWidth" | "borderRadius" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "v1" | "transition" | "m" | "mt" | "mr" | "mb" | "ml" | "padding" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight">;
5
+ export declare type CtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "height" | "history" | "onClick" | "children" | "disabled" | "color" | "bg" | "borderColor" | "borderWidth" | "borderRadius" | "hoverBorderColor" | "hoverColor" | "hoverBg" | "v1" | "transition" | "m" | "mt" | "mr" | "mb" | "ml" | "padding" | "loading" | "loadingIconProps" | "minWidth" | "maxWidth" | "minHeight" | "maxHeight" | "letterSpacing">;
@@ -1,2 +1,2 @@
1
1
  import { CtaButtonProps } from "../cta-button";
2
- export declare type PrimaryTextButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "color" | "borderRadius" | "m" | "mt" | "mr" | "mb" | "ml" | "height" | "padding" | "loading" | "loadingIconProps">;
2
+ export declare type PrimaryTextButtonProps = Pick<CtaButtonProps, "children" | "disabled" | "history" | "link" | "isInternal" | "onClick" | "scrollTo" | "width" | "color" | "borderRadius" | "m" | "mt" | "mr" | "mb" | "ml" | "height" | "padding" | "loading" | "loadingIconProps" | "letterSpacing">;
@@ -1,4 +1,4 @@
1
1
  import { ButtonProps } from "../../buttons/button";
2
- export interface BaseFeedbackButtonProps extends Pick<ButtonProps, "children" | "onClick"> {
2
+ export interface BaseFeedbackButtonProps extends Pick<ButtonProps, "children" | "onClick" | "disabled"> {
3
3
  active?: boolean;
4
4
  }
@@ -3,6 +3,7 @@ export interface MultipleOptionsFeedbackProps extends Omit<BaseFeedbackBlockProp
3
3
  options: FeedbackOption[];
4
4
  selectedOptionId?: string;
5
5
  onFeedback: (id: string) => void;
6
+ disabled?: boolean;
6
7
  }
7
8
  export interface FeedbackOption {
8
9
  id: string;
@@ -2,5 +2,6 @@ import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
2
2
  export interface YesNoFeedbackBlockProps extends Omit<BaseFeedbackBlockProps, "children"> {
3
3
  selectedOption?: YesNoOption;
4
4
  onFeedback: (option: YesNoOption) => void;
5
+ disabled?: boolean;
5
6
  }
6
7
  export declare type YesNoOption = "yes" | "no";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { CombinedSecondarySelectorV2Props as Props } from "./interfaces";
3
+ export declare const CombinedSecondarySelectorV2: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { CombinedSecondarySelectorV2 } from "./combined-secondary-selector-v2";
@@ -0,0 +1,5 @@
1
+ import { SelectorV2Props } from "../selector-v2";
2
+ export interface CombinedSecondarySelectorV2Props extends Omit<SelectorV2Props, "variant" | "selectorLabel" | "labelMargin" | "labelContainerAlignItems" | "secondLabel" | "gap"> {
3
+ selectorLabel: string;
4
+ gap?: number;
5
+ }
@@ -1,4 +1,5 @@
1
1
  import { SelectorProps } from "../selector";
2
+ import { BaseSelectorV2Props } from "./partials/base-selector-v2";
2
3
  export declare type SelectorOptionV2<T extends string | null = string> = {
3
4
  id: string;
4
5
  title: string;
@@ -7,7 +8,7 @@ export declare type SelectorOptionV2<T extends string | null = string> = {
7
8
  /**
8
9
  * Defines the selector component's properties.
9
10
  */
10
- export interface SelectorV2Props<T extends string = string> extends Omit<SelectorProps, "onChange" | "defaultValue" | "options"> {
11
+ export interface SelectorV2Props<T extends string = string> extends Omit<SelectorProps, "onChange" | "defaultValue" | "options">, Pick<BaseSelectorV2Props, "pl" | "containerVariant" | "labelContainerAlignItems"> {
11
12
  /**
12
13
  * Default value of the selector.
13
14
  */
@@ -22,4 +22,12 @@ export interface BaseSelectorV2Props<T extends string = string> extends Omit<Sel
22
22
  * How to align items in label container.
23
23
  */
24
24
  labelContainerAlignItems?: string;
25
+ /**
26
+ * Left padding of the select element.
27
+ */
28
+ pl?: string | string[];
29
+ /**
30
+ * Variant for the selector container.
31
+ */
32
+ containerVariant?: string;
25
33
  }
@@ -8,6 +8,10 @@ export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "t
8
8
  * Index of the current tab.
9
9
  */
10
10
  idx: number;
11
+ /**
12
+ * Total number of tabs.
13
+ */
14
+ totalTabs: number;
11
15
  /**
12
16
  * Width of the dash under selected tab.
13
17
  */
@@ -0,0 +1 @@
1
+ export { TooltipWithPointer } from "./tooltip-with-pointer";
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export interface TooltipWithPointerProps {
3
+ children: React.ReactNode;
4
+ tooltipText: string;
5
+ placement?: "left" | "right";
6
+ tooltipOffset?: number;
7
+ pointerSize?: number;
8
+ tooltipPx?: string | string[];
9
+ tooltipPy?: string | string[];
10
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { TooltipWithPointerProps as Props } from "./interfaces";
3
+ export declare const TooltipWithPointer: React.FC<Props>;
@@ -58,6 +58,9 @@ declare const _default: {
58
58
  gridTemplateColumns: string;
59
59
  alignItems: string;
60
60
  };
61
+ combined: {
62
+ display: string;
63
+ };
61
64
  };
62
65
  };
63
66
  _dropdowns: {
package/lib/index.d.ts CHANGED
@@ -140,6 +140,7 @@ export type { SelectorV2Props, SelectorOptionV2, } from "./components/selectors/
140
140
  export { TertiarySelectorV2 } from "./components/selectors/tertiary-selector-v2";
141
141
  export { SecondarySelectorV2 } from "./components/selectors/secondary-selector-v2";
142
142
  export { PrimarySelectorV2 } from "./components/selectors/primary-selector-v2";
143
+ export { CombinedSecondarySelectorV2 } from "./components/selectors/combined-secondary-selector-v2";
143
144
  export { Slider } from "./components/slider";
144
145
  export declare type SlideSettings = SlideSettingsType;
145
146
  export { TextSwitch } from "./components/switches/text-switch";
@@ -185,6 +186,7 @@ export { StarTooltip } from "./components/tooltips/star-tooltip";
185
186
  export { RadioInfoButtonTooltip } from "./components/tooltips/radio-info-button-tooltip";
186
187
  export { ReactElementTooltip } from "./components/tooltips/react-element-tooltip";
187
188
  export { ActionsTooltip } from "./components/tooltips/actions-tooltip";
189
+ export { TooltipWithPointer } from "./components/tooltips/tooltip-with-pointer";
188
190
  export { Footer } from "./components/complex/footer";
189
191
  export { Navbar, getLabShopsUrlProps } from "./components/complex/navbar";
190
192
  export { Anchor } from "./components/utils/anchor";