@kbss-cvut/s-forms 0.8.1-beta-993f8ad.0 → 0.9.1

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.
@@ -0,0 +1,5 @@
1
+ export default OptimizedMenuList;
2
+ /**
3
+ * Uses react-window to optimize menu list in react-select in case it has a lot of options.
4
+ */
5
+ declare function OptimizedMenuList(props: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
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
+ validation: any;
11
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
12
+ disabled: any;
13
+ }, HTMLElement>;
14
+ }
15
+ declare namespace SelectAnswer {
16
+ export { ConfigurationContext as contextType };
17
+ export namespace propTypes {
18
+ let question: PropTypes.Validator<object>;
19
+ let label: PropTypes.Validator<object>;
20
+ let title: PropTypes.Requireable<string>;
21
+ let value: PropTypes.Requireable<string>;
22
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
23
+ let validation: PropTypes.Requireable<object>;
24
+ }
25
+ }
26
+ export default SelectAnswer;
27
+ import React from "react";
28
+ import { ConfigurationContext } from "../../contexts/ConfigurationContext";
29
+ import PropTypes from "prop-types";
@@ -0,0 +1,14 @@
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
+ let validation: PropTypes.Requireable<object>;
12
+ }
13
+ }
14
+ import PropTypes from "prop-types";