@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.
- package/lib/components/buttons/cta/cta-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/cta/primary-text-button/interfaces.d.ts +1 -1
- package/lib/components/feedback/base-feedback-button/interfaces.d.ts +1 -1
- package/lib/components/feedback/multiple-options-feedback/interfaces.d.ts +1 -0
- package/lib/components/feedback/yes-no-feedback-block/interfaces.d.ts +1 -0
- package/lib/components/selectors/combined-secondary-selector-v2/combined-secondary-selector-v2.d.ts +3 -0
- package/lib/components/selectors/combined-secondary-selector-v2/index.d.ts +1 -0
- package/lib/components/selectors/combined-secondary-selector-v2/interfaces.d.ts +5 -0
- package/lib/components/selectors/selector-v2/interfaces.d.ts +2 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/interfaces.d.ts +8 -0
- package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +4 -0
- package/lib/components/tooltips/tooltip-with-pointer/index.d.ts +1 -0
- package/lib/components/tooltips/tooltip-with-pointer/interfaces.d.ts +10 -0
- package/lib/components/tooltips/tooltip-with-pointer/tooltip-with-pointer.d.ts +3 -0
- package/lib/core/theme.d.ts +3 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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 @@
|
|
|
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
|
}
|
|
@@ -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
|
+
}
|
package/lib/core/theme.d.ts
CHANGED
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";
|