@kbss-cvut/s-forms 0.7.0 → 0.7.1-alpha-b00a1cf.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.
Files changed (46) hide show
  1. package/dist/components/Answer.d.ts +1 -1
  2. package/dist/components/DefaultInput.d.ts +8 -8
  3. package/dist/components/FormManager.d.ts +2 -2
  4. package/dist/components/HelpIcon.d.ts +1 -1
  5. package/dist/components/IconOverlay.d.ts +1 -1
  6. package/dist/components/LinkIcon.d.ts +1 -1
  7. package/dist/components/MaskedInput.d.ts +1 -0
  8. package/dist/components/MediaContent.d.ts +2 -1
  9. package/dist/components/PrefixIcon.d.ts +1 -1
  10. package/dist/components/Question.d.ts +9 -9
  11. package/dist/components/QuestionStatic.d.ts +6 -6
  12. package/dist/components/answer/DateTimeAnswer.d.ts +1 -1
  13. package/dist/components/answer/MaskedInputAnswer.d.ts +1 -1
  14. package/dist/components/answer/OptimizedMenuList.d.ts +1 -1
  15. package/dist/components/answer/SelectAnswer.d.ts +1 -1
  16. package/dist/components/answer/TypeaheadAnswer.d.ts +2 -2
  17. package/dist/components/comment/CommentForm.d.ts +1 -1
  18. package/dist/components/comment/CommentList.d.ts +2 -1
  19. package/dist/components/comment/CommentView.d.ts +2 -2
  20. package/dist/components/comment/QuestionCommentIcon.d.ts +1 -1
  21. package/dist/components/wizard/HorizontalWizardNav.d.ts +1 -1
  22. package/dist/components/wizard/VerticalWizardNav.d.ts +1 -1
  23. package/dist/components/wizard/Wizard.d.ts +1 -1
  24. package/dist/components/wizard/WizardStep.d.ts +2 -2
  25. package/dist/contexts/ConfigurationContext.d.ts +1 -1
  26. package/dist/contexts/FormGenContext.d.ts +1 -1
  27. package/dist/contexts/FormQuestionsContext.d.ts +1 -1
  28. package/dist/contexts/IntlContextProvider.d.ts +1 -1
  29. package/dist/s-forms.cjs +1 -1
  30. package/dist/s-forms.cjs.map +1 -1
  31. package/dist/s-forms.js +1 -1
  32. package/dist/s-forms.js.map +1 -1
  33. package/dist/s-forms.modern.js +1 -1
  34. package/dist/s-forms.modern.js.map +1 -1
  35. package/dist/s-forms.umd.js +1 -1
  36. package/dist/s-forms.umd.js.map +1 -1
  37. package/dist/styles/icons/ArrowRight.d.ts +1 -1
  38. package/dist/styles/icons/CaretSquareDown.d.ts +1 -1
  39. package/dist/styles/icons/CaretSquareUp.d.ts +1 -1
  40. package/dist/styles/icons/Close.d.ts +1 -1
  41. package/dist/styles/icons/CommentBubble.d.ts +1 -1
  42. package/dist/styles/icons/ExternalLink.d.ts +1 -1
  43. package/dist/styles/icons/InfoCircle.d.ts +1 -1
  44. package/dist/styles/icons/QuestionCircle.d.ts +1 -1
  45. package/dist/styles/icons/RecycleBin.d.ts +1 -1
  46. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  export default Answer;
2
- declare function Answer(props: any): import("react/jsx-runtime").JSX.Element | null;
2
+ declare function Answer(props: any): JSX.Element | null;
3
3
  declare namespace Answer {
4
4
  namespace propTypes {
5
5
  const answer: PropTypes.Validator<object>;
@@ -10,15 +10,15 @@ declare class DefaultInput extends React.Component<any, any, any> {
10
10
  fieldDidShrink(prevProps: any): boolean;
11
11
  updateFieldCursorPosition(): void;
12
12
  saveCursorPosition(e: any): void;
13
- render(): import("react/jsx-runtime").JSX.Element;
14
- _renderCheckbox(): import("react/jsx-runtime").JSX.Element;
13
+ render(): JSX.Element;
14
+ _renderCheckbox(): JSX.Element;
15
15
  input: any;
16
- _renderRadio(): import("react/jsx-runtime").JSX.Element;
17
- _renderSelect(): import("react/jsx-runtime").JSX.Element;
18
- _renderLabel(): import("react/jsx-runtime").JSX.Element | null;
19
- _renderTextArea(): import("react/jsx-runtime").JSX.Element;
20
- _renderHelp(): import("react/jsx-runtime").JSX.Element | null;
21
- _renderInput(): import("react/jsx-runtime").JSX.Element;
16
+ _renderRadio(): JSX.Element;
17
+ _renderSelect(): JSX.Element;
18
+ _renderLabel(): JSX.Element | null;
19
+ _renderTextArea(): JSX.Element;
20
+ _renderHelp(): JSX.Element | null;
21
+ _renderInput(): JSX.Element;
22
22
  }
23
23
  declare namespace DefaultInput {
24
24
  namespace propTypes {
@@ -7,14 +7,14 @@ declare class FormManager extends React.Component<any, any, any> {
7
7
  };
8
8
  getFormQuestionsData: () => any;
9
9
  handleStepChange: (question: any, index: any, change: any) => void;
10
- renderWizardlessForm: () => import("react/jsx-runtime").JSX.Element;
10
+ renderWizardlessForm: () => JSX.Element;
11
11
  _mapQuestion(question: any, index: any): React.DetailedReactHTMLElement<{
12
12
  key: any;
13
13
  question: any;
14
14
  onChange: (index: any, change: any) => void;
15
15
  index: any;
16
16
  }, HTMLElement>;
17
- render(): import("react/jsx-runtime").JSX.Element;
17
+ render(): JSX.Element;
18
18
  }
19
19
  declare namespace FormManager {
20
20
  export { FormQuestionsContext as contextType };
@@ -1,5 +1,5 @@
1
1
  export default HelpIcon;
2
- declare function HelpIcon(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function HelpIcon(props: any): JSX.Element;
3
3
  declare namespace HelpIcon {
4
4
  namespace propTypes {
5
5
  const text: PropTypes.Validator<string>;
@@ -1,5 +1,5 @@
1
1
  export default IconOverlay;
2
- declare function IconOverlay(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function IconOverlay(props: any): JSX.Element;
3
3
  declare namespace IconOverlay {
4
4
  namespace propTypes {
5
5
  const tooltipContent: PropTypes.Requireable<NonNullable<string | object>>;
@@ -1,5 +1,5 @@
1
1
  export default LinkIcon;
2
- declare function LinkIcon(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function LinkIcon(props: any): JSX.Element;
3
3
  declare namespace LinkIcon {
4
4
  namespace propTypes {
5
5
  const url: PropTypes.Requireable<NonNullable<string | object>>;
@@ -23,6 +23,7 @@ declare class MaskedInput extends React.Component<any, any, any> {
23
23
  size: any;
24
24
  value: any;
25
25
  type: string;
26
+ children?: React.ReactNode;
26
27
  }, React.Component<{}, any, any>>;
27
28
  input: Element | React.Component<{}, any, any> | Text | null | undefined;
28
29
  }
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  question: object;
3
4
  }
4
- declare const MediaContent: ({ question }: Props) => import("react/jsx-runtime").JSX.Element | null;
5
+ declare const MediaContent: ({ question }: Props) => JSX.Element | null;
5
6
  export default MediaContent;
@@ -4,7 +4,7 @@ declare class PrefixIcon extends React.Component<any, any, any> {
4
4
  state: {
5
5
  prefixes: any;
6
6
  };
7
- render(): import("react/jsx-runtime").JSX.Element;
7
+ render(): JSX.Element;
8
8
  }
9
9
  declare namespace PrefixIcon {
10
10
  namespace propTypes {
@@ -20,9 +20,9 @@ declare class Question extends React.Component<any, any, any> {
20
20
  _onMouseEnterHandler: () => void;
21
21
  _onMouseLeaveHandler: () => void;
22
22
  _getHeaderClassName: () => string[];
23
- render(): import("react/jsx-runtime").JSX.Element | null;
24
- renderQuestion(question: any): import("react/jsx-runtime").JSX.Element;
25
- _renderQuestionContent(): (import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | (React.CElement<{
23
+ render(): JSX.Element | null;
24
+ renderQuestion(question: any): JSX.Element;
25
+ _renderQuestionContent(): (JSX.Element | JSX.Element[] | (React.CElement<{
26
26
  key: string;
27
27
  question: any;
28
28
  onChange: (subQuestionIndex: any, change: any) => void;
@@ -33,10 +33,10 @@ declare class Question extends React.Component<any, any, any> {
33
33
  onChange: (subQuestionIndex: any, change: any) => void;
34
34
  index: number;
35
35
  }, any, any>> | null)[])[];
36
- renderQuestionIcons(): import("react/jsx-runtime").JSX.Element;
37
- renderAnswerableSection(): import("react/jsx-runtime").JSX.Element;
36
+ renderQuestionIcons(): JSX.Element;
37
+ renderAnswerableSection(): JSX.Element;
38
38
  getShowIrrelevantClassname(question: any): "" | "show-irrelevant";
39
- renderAnswers(): import("react/jsx-runtime").JSX.Element[];
39
+ renderAnswers(): JSX.Element[];
40
40
  _getAnswers(): any;
41
41
  _getAnswerWidthStyle(): {
42
42
  flexGrow?: undefined;
@@ -47,9 +47,9 @@ declare class Question extends React.Component<any, any, any> {
47
47
  maxWidth: string;
48
48
  width: string;
49
49
  };
50
- _renderCollapseToggle(): import("react/jsx-runtime").JSX.Element;
51
- _renderPrefixes(): import("react/jsx-runtime").JSX.Element | null;
52
- _renderUnits(): import("react/jsx-runtime").JSX.Element | null;
50
+ _renderCollapseToggle(): JSX.Element;
51
+ _renderPrefixes(): JSX.Element | null;
52
+ _renderUnits(): JSX.Element | null;
53
53
  renderSubQuestions(classname: any): (React.CElement<{
54
54
  key: string;
55
55
  question: any;
@@ -1,9 +1,9 @@
1
1
  export default class QuestionStatic {
2
- static renderIcons(question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element;
3
- static renderQuestionHelp(question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element | null | undefined;
4
- static renderQuestionComments: (question: any, options: any, onCommentChange: any, showIcon: any) => import("react/jsx-runtime").JSX.Element | null | undefined;
5
- static renderQuestionLink(question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element | null | undefined;
6
- static getIconComponentFromName(iconName: any, question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element | null | undefined;
2
+ static renderIcons(question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element;
3
+ static renderQuestionHelp(question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
4
+ static renderQuestionComments: (question: any, options: any, onCommentChange: any, showIcon: any) => JSX.Element | null | undefined;
5
+ static renderQuestionLink(question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
6
+ static getIconComponentFromName(iconName: any, question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
7
7
  static getIconFromIconList: (iconList: any, iconName: any) => any;
8
- static getIconComponent(icon: any, question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element | null | undefined;
8
+ static getIconComponent(icon: any, question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
9
9
  }
@@ -1,5 +1,5 @@
1
1
  export default DateTimeAnswer;
2
- declare function DateTimeAnswer(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function DateTimeAnswer(props: any): JSX.Element;
3
3
  declare namespace DateTimeAnswer {
4
4
  namespace propTypes {
5
5
  const question: PropTypes.Validator<object>;
@@ -1,5 +1,5 @@
1
1
  export default MaskedInputAnswer;
2
- declare function MaskedInputAnswer(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function MaskedInputAnswer(props: any): JSX.Element;
3
3
  declare namespace MaskedInputAnswer {
4
4
  namespace propTypes {
5
5
  const question: PropTypes.Validator<object>;
@@ -2,4 +2,4 @@ export default OptimizedMenuList;
2
2
  /**
3
3
  * Uses react-window to optimize menu list in react-select in case it has a lot of options.
4
4
  */
5
- declare function OptimizedMenuList(props: any): import("react/jsx-runtime").JSX.Element;
5
+ declare function OptimizedMenuList(props: any): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  declare class SelectAnswer extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  constructor(props: any, context: any);
4
- _generateSelectOptions(options: any): import("react/jsx-runtime").JSX.Element[];
4
+ _generateSelectOptions(options: any): JSX.Element[];
5
5
  render(): React.DetailedReactHTMLElement<{
6
6
  type: string;
7
7
  label: any;
@@ -1,10 +1,10 @@
1
1
  export default TypeaheadAnswer;
2
- declare function TypeaheadAnswer(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function TypeaheadAnswer(props: any): JSX.Element;
3
3
  declare namespace TypeaheadAnswer {
4
4
  namespace propTypes {
5
5
  const question: PropTypes.Validator<object>;
6
6
  const answer: PropTypes.Validator<object>;
7
- const label: PropTypes.Validator<object>;
7
+ const label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
8
8
  const title: PropTypes.Requireable<string>;
9
9
  const value: PropTypes.Requireable<string>;
10
10
  const onChange: PropTypes.Validator<(...args: any[]) => any>;
@@ -1,5 +1,5 @@
1
1
  export default CommentForm;
2
- declare function CommentForm(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function CommentForm(props: any): JSX.Element;
3
3
  declare namespace CommentForm {
4
4
  namespace propTypes {
5
5
  const onChange: PropTypes.Validator<(...args: any[]) => any>;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  comments: Array<any>;
3
4
  onDeleteCommentClick: (index: number) => void;
4
5
  }
5
- declare const CommentList: ({ comments, onDeleteCommentClick }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ declare const CommentList: ({ comments, onDeleteCommentClick }: Props) => JSX.Element;
6
7
  export default CommentList;
@@ -1,8 +1,8 @@
1
1
  export default CommentView;
2
- declare function CommentView(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function CommentView(props: any): JSX.Element;
3
3
  declare namespace CommentView {
4
4
  namespace propTypes {
5
- const author: PropTypes.Validator<object>;
5
+ const author: PropTypes.Requireable<object>;
6
6
  const timestamp: PropTypes.Validator<string>;
7
7
  const commentValue: PropTypes.Validator<string>;
8
8
  const onDeleteQuestionComment: PropTypes.Validator<(...args: any[]) => any>;
@@ -1,5 +1,5 @@
1
1
  export default QuestionCommentIcon;
2
- declare function QuestionCommentIcon(props: any): import("react/jsx-runtime").JSX.Element;
2
+ declare function QuestionCommentIcon(props: any): JSX.Element;
3
3
  declare namespace QuestionCommentIcon {
4
4
  namespace propTypes {
5
5
  const question: PropTypes.Validator<object>;
@@ -3,7 +3,7 @@ declare function HorizontalWizardNav({ steps, onNavigate, currentStep }: {
3
3
  steps: any;
4
4
  onNavigate: any;
5
5
  currentStep: any;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): JSX.Element;
7
7
  declare namespace HorizontalWizardNav {
8
8
  namespace propTypes {
9
9
  const currentStep: PropTypes.Validator<number>;
@@ -3,7 +3,7 @@ declare function VerticalWizardNav({ steps, onNavigate, currentStep }: {
3
3
  steps: any;
4
4
  onNavigate: any;
5
5
  currentStep: any;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): JSX.Element;
7
7
  declare namespace VerticalWizardNav {
8
8
  namespace propTypes {
9
9
  const currentStep: PropTypes.Validator<number>;
@@ -1,2 +1,2 @@
1
1
  export default Wizard;
2
- declare function Wizard(): import("react/jsx-runtime").JSX.Element;
2
+ declare function Wizard(): JSX.Element;
@@ -2,9 +2,9 @@ declare class WizardStep extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  onNextStep: () => void;
4
4
  onPreviousStep: () => void;
5
- _renderWizardStepButtons: () => import("react/jsx-runtime").JSX.Element;
5
+ _renderWizardStepButtons: () => JSX.Element;
6
6
  onChange: (index: any, change: any) => void;
7
- render(): import("react/jsx-runtime").JSX.Element;
7
+ render(): JSX.Element;
8
8
  }
9
9
  declare namespace WizardStep {
10
10
  export namespace propTypes {
@@ -2,7 +2,7 @@ export const ConfigurationContext: React.Context<{}>;
2
2
  export function ConfigurationContextProvider({ children, ...props }: {
3
3
  [x: string]: any;
4
4
  children: any;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): JSX.Element;
6
6
  export namespace ConfigurationContextProvider {
7
7
  namespace propTypes {
8
8
  const children: PropTypes.Validator<PropTypes.ReactElementLike>;
@@ -2,7 +2,7 @@ export const FormGenContext: React.Context<{}>;
2
2
  export function FormGenContextProvider({ children, ...props }: {
3
3
  [x: string]: any;
4
4
  children: any;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): JSX.Element;
6
6
  export namespace FormGenContextProvider {
7
7
  namespace propTypes {
8
8
  const children: PropTypes.Validator<PropTypes.ReactElementLike>;
@@ -1,5 +1,5 @@
1
1
  export const FormQuestionsContext: React.Context<{}>;
2
- export function FormQuestionsProvider(props: any): import("react/jsx-runtime").JSX.Element;
2
+ export function FormQuestionsProvider(props: any): JSX.Element;
3
3
  export namespace FormQuestionsProvider {
4
4
  namespace propTypes {
5
5
  const children: PropTypes.Validator<PropTypes.ReactElementLike>;
@@ -4,5 +4,5 @@ interface Props {
4
4
  children: ReactNode;
5
5
  locale?: string;
6
6
  }
7
- declare const IntlContextProvider: ({ children, locale, }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const IntlContextProvider: ({ children, locale, }: Props) => JSX.Element;
8
8
  export default IntlContextProvider;