@kbss-cvut/s-forms 0.7.1-beta-b00a1cf.0 → 0.7.1-beta-c22f5eb.0
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/dist/components/Answer.d.ts +13 -13
- package/dist/components/DefaultInput.d.ts +39 -39
- package/dist/components/FormManager.d.ts +23 -23
- package/dist/components/FormWindow.d.ts +3 -3
- package/dist/components/HelpIcon.d.ts +20 -20
- package/dist/components/IconOverlay.d.ts +17 -17
- package/dist/components/LinkIcon.d.ts +20 -20
- package/dist/components/MaskedInput.d.ts +41 -42
- package/dist/components/MediaContent.d.ts +5 -6
- package/dist/components/PrefixIcon.d.ts +21 -21
- package/dist/components/Question.d.ts +86 -86
- package/dist/components/QuestionStatic.d.ts +9 -9
- package/dist/components/SForms.d.ts +3 -3
- package/dist/components/answer/CheckboxAnswer.d.ts +23 -23
- package/dist/components/answer/DateTimeAnswer.d.ts +12 -12
- package/dist/components/answer/InputAnswer.d.ts +25 -25
- package/dist/components/answer/MaskedInputAnswer.d.ts +13 -13
- package/dist/components/answer/SelectAnswer.d.ts +27 -27
- package/dist/components/answer/TypeaheadAnswer.d.ts +13 -13
- package/dist/components/comment/CommentForm.d.ts +8 -8
- package/dist/components/comment/CommentList.d.ts +6 -7
- package/dist/components/comment/CommentView.d.ts +13 -13
- package/dist/components/comment/QuestionCommentIcon.d.ts +9 -9
- package/dist/components/wizard/HorizontalWizardNav.d.ts +14 -14
- package/dist/components/wizard/VerticalWizardNav.d.ts +14 -14
- package/dist/components/wizard/Wizard.d.ts +2 -2
- package/dist/components/wizard/WizardStep.d.ts +25 -25
- package/dist/constants/Constants.d.ts +127 -127
- package/dist/contexts/ConfigurationContext.d.ts +15 -15
- package/dist/contexts/FormGenContext.d.ts +13 -13
- package/dist/contexts/FormQuestionsContext.d.ts +12 -12
- package/dist/contexts/IntlContextProvider.d.ts +8 -8
- package/dist/model/DefaultFormGenerator.d.ts +8 -8
- package/dist/model/FormGenerator.d.ts +20 -20
- package/dist/model/QuestionAnswerProcessor.d.ts +44 -44
- package/dist/model/ValidatorFactory.d.ts +5 -5
- package/dist/s-forms.cjs +1 -1
- package/dist/s-forms.cjs.map +1 -1
- package/dist/s-forms.d.ts +16 -16
- package/dist/s-forms.js +1 -1
- package/dist/s-forms.js.map +1 -1
- package/dist/s-forms.modern.js +1 -1
- package/dist/s-forms.modern.js.map +1 -1
- package/dist/s-forms.umd.js +1 -1
- package/dist/s-forms.umd.js.map +1 -1
- package/dist/stories/Answer.stories.d.ts +12 -12
- package/dist/stories/CommentForm.stories.d.ts +3 -3
- package/dist/stories/HelpIcon.stories.d.ts +4 -4
- package/dist/stories/LinkIcon.stories.d.ts +3 -3
- package/dist/stories/PrefixIcon.stories.d.ts +3 -3
- package/dist/stories/Question.stories.d.ts +11 -11
- package/dist/stories/QuestionCommentIcon.stories.d.ts +4 -4
- package/dist/stories/SForms.stories.d.ts +8 -8
- package/dist/styles/icons/ArrowRight.d.ts +2 -2
- package/dist/styles/icons/CaretSquareDown.d.ts +4 -4
- package/dist/styles/icons/CaretSquareUp.d.ts +4 -4
- package/dist/styles/icons/Close.d.ts +2 -2
- package/dist/styles/icons/CommentBubble.d.ts +2 -2
- package/dist/styles/icons/ExternalLink.d.ts +2 -2
- package/dist/styles/icons/InfoCircle.d.ts +2 -2
- package/dist/styles/icons/QuestionCircle.d.ts +2 -2
- package/dist/styles/icons/RecycleBin.d.ts +2 -2
- package/dist/styles/icons/index.d.ts +4 -4
- package/dist/util/FormUtils.d.ts +40 -40
- package/dist/util/JsonLdFramingUtils.d.ts +16 -16
- package/dist/util/JsonLdObjectMap.d.ts +5 -5
- package/dist/util/JsonLdObjectUtils.d.ts +32 -32
- package/dist/util/Logger.d.ts +5 -5
- package/dist/util/MaskMapper.d.ts +12 -12
- package/dist/util/Utils.d.ts +15 -15
- package/package.json +5 -6
- package/dist/components/answer/OptimizedMenuList.d.ts +0 -5
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export default CheckboxAnswer;
|
|
2
|
-
declare function CheckboxAnswer(props: any): React.DetailedReactHTMLElement<{
|
|
3
|
-
type: string;
|
|
4
|
-
label: any;
|
|
5
|
-
title: any;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
-
disabled: any;
|
|
9
|
-
validation: string;
|
|
10
|
-
help: any;
|
|
11
|
-
}, HTMLElement>;
|
|
12
|
-
declare namespace CheckboxAnswer {
|
|
13
|
-
namespace propTypes {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
import React from "react";
|
|
23
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default CheckboxAnswer;
|
|
2
|
+
declare function CheckboxAnswer(props: any): React.DetailedReactHTMLElement<{
|
|
3
|
+
type: string;
|
|
4
|
+
label: any;
|
|
5
|
+
title: any;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
disabled: any;
|
|
9
|
+
validation: string;
|
|
10
|
+
help: any;
|
|
11
|
+
}, HTMLElement>;
|
|
12
|
+
declare namespace CheckboxAnswer {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let question: PropTypes.Validator<object>;
|
|
15
|
+
let label: PropTypes.Validator<object>;
|
|
16
|
+
let title: PropTypes.Requireable<string>;
|
|
17
|
+
let value: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
18
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
19
|
+
let mouseHover: PropTypes.Requireable<boolean>;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import React from "react";
|
|
23
|
+
import PropTypes from "prop-types";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export default DateTimeAnswer;
|
|
2
|
-
declare function DateTimeAnswer(props: any): JSX.Element;
|
|
3
|
-
declare namespace DateTimeAnswer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default DateTimeAnswer;
|
|
2
|
+
declare function DateTimeAnswer(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace DateTimeAnswer {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let question: PropTypes.Validator<object>;
|
|
6
|
+
let label: PropTypes.Validator<object>;
|
|
7
|
+
let title: PropTypes.Requireable<string>;
|
|
8
|
+
let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
9
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import PropTypes from "prop-types";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export default InputAnswer;
|
|
2
|
-
declare function InputAnswer(props: any): React.DetailedReactHTMLElement<{
|
|
3
|
-
label: any;
|
|
4
|
-
title: any;
|
|
5
|
-
value: any;
|
|
6
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
onFocus: (e: React.FocusEvent<HTMLInputElement, Element>) => void;
|
|
8
|
-
type: string;
|
|
9
|
-
rows: number;
|
|
10
|
-
disabled: any;
|
|
11
|
-
validation: string;
|
|
12
|
-
help: any;
|
|
13
|
-
}, HTMLElement>;
|
|
14
|
-
declare namespace InputAnswer {
|
|
15
|
-
namespace propTypes {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
import React from "react";
|
|
25
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default InputAnswer;
|
|
2
|
+
declare function InputAnswer(props: any): React.DetailedReactHTMLElement<{
|
|
3
|
+
label: any;
|
|
4
|
+
title: any;
|
|
5
|
+
value: any;
|
|
6
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
onFocus: (e: React.FocusEvent<HTMLInputElement, Element>) => void;
|
|
8
|
+
type: string;
|
|
9
|
+
rows: number;
|
|
10
|
+
disabled: any;
|
|
11
|
+
validation: string;
|
|
12
|
+
help: any;
|
|
13
|
+
}, HTMLElement>;
|
|
14
|
+
declare namespace InputAnswer {
|
|
15
|
+
namespace propTypes {
|
|
16
|
+
let question: PropTypes.Validator<object>;
|
|
17
|
+
let answer: PropTypes.Validator<object>;
|
|
18
|
+
let label: PropTypes.Validator<object>;
|
|
19
|
+
let title: PropTypes.Requireable<string>;
|
|
20
|
+
let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
21
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import React from "react";
|
|
25
|
+
import PropTypes from "prop-types";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export default MaskedInputAnswer;
|
|
2
|
-
declare function MaskedInputAnswer(props: any): JSX.Element;
|
|
3
|
-
declare namespace MaskedInputAnswer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default MaskedInputAnswer;
|
|
2
|
+
declare function MaskedInputAnswer(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace MaskedInputAnswer {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let question: PropTypes.Validator<object>;
|
|
6
|
+
let answer: PropTypes.Validator<object>;
|
|
7
|
+
let label: PropTypes.Validator<object>;
|
|
8
|
+
let title: PropTypes.Requireable<string>;
|
|
9
|
+
let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
10
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import PropTypes from "prop-types";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
declare class SelectAnswer extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
_generateSelectOptions(options: any): JSX.Element[];
|
|
5
|
-
render(): React.DetailedReactHTMLElement<{
|
|
6
|
-
type: string;
|
|
7
|
-
label: any;
|
|
8
|
-
value: any;
|
|
9
|
-
title: any;
|
|
10
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
disabled: any;
|
|
12
|
-
}, HTMLElement>;
|
|
13
|
-
}
|
|
14
|
-
declare namespace SelectAnswer {
|
|
15
|
-
export { ConfigurationContext as contextType };
|
|
16
|
-
export namespace propTypes {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export default SelectAnswer;
|
|
25
|
-
import React from "react";
|
|
26
|
-
import { ConfigurationContext } from "../../contexts/ConfigurationContext";
|
|
27
|
-
import PropTypes from "prop-types";
|
|
1
|
+
declare class SelectAnswer extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
constructor(props: any, context: any);
|
|
4
|
+
_generateSelectOptions(options: any): import("react/jsx-runtime").JSX.Element[];
|
|
5
|
+
render(): React.DetailedReactHTMLElement<{
|
|
6
|
+
type: string;
|
|
7
|
+
label: any;
|
|
8
|
+
value: any;
|
|
9
|
+
title: any;
|
|
10
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
disabled: any;
|
|
12
|
+
}, HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
declare namespace SelectAnswer {
|
|
15
|
+
export { ConfigurationContext as contextType };
|
|
16
|
+
export namespace propTypes {
|
|
17
|
+
let question: PropTypes.Validator<object>;
|
|
18
|
+
let label: PropTypes.Validator<object>;
|
|
19
|
+
let title: PropTypes.Requireable<string>;
|
|
20
|
+
let value: PropTypes.Requireable<string>;
|
|
21
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export default SelectAnswer;
|
|
25
|
+
import React from "react";
|
|
26
|
+
import { ConfigurationContext } from "../../contexts/ConfigurationContext";
|
|
27
|
+
import PropTypes from "prop-types";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export default TypeaheadAnswer;
|
|
2
|
-
declare function TypeaheadAnswer(props: any): JSX.Element;
|
|
3
|
-
declare namespace TypeaheadAnswer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default TypeaheadAnswer;
|
|
2
|
+
declare function TypeaheadAnswer(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace TypeaheadAnswer {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let question: PropTypes.Validator<object>;
|
|
6
|
+
let answer: PropTypes.Validator<object>;
|
|
7
|
+
let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
8
|
+
let title: PropTypes.Requireable<string>;
|
|
9
|
+
let value: PropTypes.Requireable<string>;
|
|
10
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import PropTypes from "prop-types";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default CommentForm;
|
|
2
|
-
declare function CommentForm(props: any): JSX.Element;
|
|
3
|
-
declare namespace CommentForm {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default CommentForm;
|
|
2
|
+
declare function CommentForm(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace CommentForm {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
import PropTypes from "prop-types";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default CommentList;
|
|
1
|
+
interface Props {
|
|
2
|
+
comments: Array<any>;
|
|
3
|
+
onDeleteCommentClick: (index: number) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const CommentList: ({ comments, onDeleteCommentClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CommentList;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export default CommentView;
|
|
2
|
-
declare function CommentView(props: any): JSX.Element;
|
|
3
|
-
declare namespace CommentView {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default CommentView;
|
|
2
|
+
declare function CommentView(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace CommentView {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let author: PropTypes.Requireable<object>;
|
|
6
|
+
let timestamp: PropTypes.Validator<string>;
|
|
7
|
+
let commentValue: PropTypes.Validator<string>;
|
|
8
|
+
let onDeleteQuestionComment: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
let onDeleteViewComment: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
let index: PropTypes.Validator<number>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import PropTypes from "prop-types";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default QuestionCommentIcon;
|
|
2
|
-
declare function QuestionCommentIcon(props: any): JSX.Element;
|
|
3
|
-
declare namespace QuestionCommentIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default QuestionCommentIcon;
|
|
2
|
+
declare function QuestionCommentIcon(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace QuestionCommentIcon {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let question: PropTypes.Validator<object>;
|
|
6
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
import PropTypes from "prop-types";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export default HorizontalWizardNav;
|
|
2
|
-
declare function HorizontalWizardNav({ steps, onNavigate, currentStep }: {
|
|
3
|
-
steps: any;
|
|
4
|
-
onNavigate: any;
|
|
5
|
-
currentStep: any;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
declare namespace HorizontalWizardNav {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default HorizontalWizardNav;
|
|
2
|
+
declare function HorizontalWizardNav({ steps, onNavigate, currentStep }: {
|
|
3
|
+
steps: any;
|
|
4
|
+
onNavigate: any;
|
|
5
|
+
currentStep: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace HorizontalWizardNav {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let currentStep: PropTypes.Validator<number>;
|
|
10
|
+
let steps: PropTypes.Validator<any[]>;
|
|
11
|
+
let onNavigate: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from "prop-types";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export default VerticalWizardNav;
|
|
2
|
-
declare function VerticalWizardNav({ steps, onNavigate, currentStep }: {
|
|
3
|
-
steps: any;
|
|
4
|
-
onNavigate: any;
|
|
5
|
-
currentStep: any;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
declare namespace VerticalWizardNav {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default VerticalWizardNav;
|
|
2
|
+
declare function VerticalWizardNav({ steps, onNavigate, currentStep }: {
|
|
3
|
+
steps: any;
|
|
4
|
+
onNavigate: any;
|
|
5
|
+
currentStep: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace VerticalWizardNav {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let currentStep: PropTypes.Validator<number>;
|
|
10
|
+
let steps: PropTypes.Validator<any[]>;
|
|
11
|
+
let onNavigate: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from "prop-types";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default Wizard;
|
|
2
|
-
declare function Wizard(): JSX.Element;
|
|
1
|
+
export default Wizard;
|
|
2
|
+
declare function Wizard(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
declare class WizardStep extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
onNextStep: () => void;
|
|
4
|
-
onPreviousStep: () => void;
|
|
5
|
-
_renderWizardStepButtons: () => JSX.Element;
|
|
6
|
-
onChange: (index: any, change: any) => void;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
declare namespace WizardStep {
|
|
10
|
-
export namespace propTypes {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export { FormQuestionsContext as contextType };
|
|
21
|
-
}
|
|
22
|
-
export default WizardStep;
|
|
23
|
-
import React from "react";
|
|
24
|
-
import PropTypes from "prop-types";
|
|
25
|
-
import { FormQuestionsContext } from "../../contexts/FormQuestionsContext";
|
|
1
|
+
declare class WizardStep extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
onNextStep: () => void;
|
|
4
|
+
onPreviousStep: () => void;
|
|
5
|
+
_renderWizardStepButtons: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
onChange: (index: any, change: any) => void;
|
|
7
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
declare namespace WizardStep {
|
|
10
|
+
export namespace propTypes {
|
|
11
|
+
let options: PropTypes.Validator<object>;
|
|
12
|
+
let question: PropTypes.Validator<object>;
|
|
13
|
+
let index: PropTypes.Validator<number>;
|
|
14
|
+
let onNextStep: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
let onPreviousStep: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
let mapComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
let isFirstStep: PropTypes.Requireable<boolean>;
|
|
18
|
+
let isLastStep: PropTypes.Requireable<boolean>;
|
|
19
|
+
}
|
|
20
|
+
export { FormQuestionsContext as contextType };
|
|
21
|
+
}
|
|
22
|
+
export default WizardStep;
|
|
23
|
+
import React from "react";
|
|
24
|
+
import PropTypes from "prop-types";
|
|
25
|
+
import { FormQuestionsContext } from "../../contexts/FormQuestionsContext";
|