@selfdecode/sd-component-library 2.42.34 → 2.42.35
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 +4 -0
- package/lib/components/feedback/base-feedback-container/interfaces.d.ts +9 -0
- package/lib/components/feedback/multiple-options-feedback/interfaces.d.ts +1 -1
- package/lib/components/feedback/yes-no-feedback-block/interfaces.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -85,4 +85,8 @@ export interface AccordionProps extends BaseComponentProps {
|
|
|
85
85
|
* The callback to control open/close state of the accordion, required for a controlled component.
|
|
86
86
|
*/
|
|
87
87
|
setIsOpen?: (value: React.SetStateAction<boolean>) => void;
|
|
88
|
+
/**
|
|
89
|
+
* disable CSS Flex if pdf flow.
|
|
90
|
+
*/
|
|
91
|
+
isPDFflow?: boolean;
|
|
88
92
|
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "rebass";
|
|
2
3
|
export interface BaseFeedbackBlockProps {
|
|
4
|
+
/**
|
|
5
|
+
* Question box props.
|
|
6
|
+
*/
|
|
3
7
|
questionText: string;
|
|
8
|
+
questionTextFontSize?: number;
|
|
9
|
+
questionMarginBottom?: string;
|
|
10
|
+
containerSx?: SxProps["sx"];
|
|
11
|
+
iconContainerSx?: SxProps["sx"];
|
|
12
|
+
iconFontSize?: number;
|
|
4
13
|
children: React.ReactNode;
|
|
5
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
|
|
2
|
-
export interface MultipleOptionsFeedbackProps extends
|
|
2
|
+
export interface MultipleOptionsFeedbackProps extends Omit<BaseFeedbackBlockProps, "children"> {
|
|
3
3
|
options: FeedbackOption[];
|
|
4
4
|
selectedOptionId?: string;
|
|
5
5
|
onFeedback: (id: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
|
|
2
|
-
export interface YesNoFeedbackBlockProps extends
|
|
2
|
+
export interface YesNoFeedbackBlockProps extends Omit<BaseFeedbackBlockProps, "children"> {
|
|
3
3
|
selectedOption?: YesNoOption;
|
|
4
4
|
onFeedback: (option: YesNoOption) => void;
|
|
5
5
|
}
|