pollination-react-io 1.16.8 → 1.18.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.
@@ -3,6 +3,8 @@ import { APIClient } from '../hooks';
3
3
  export interface ComboFileSelectorProps {
4
4
  projectOwner?: string;
5
5
  projectName?: string;
6
+ defaultValue?: string;
7
+ hidden?: boolean;
6
8
  defaultOption?: 'get_model' | 'get_file' | 'get_cloud' | 'get_local';
7
9
  mode?: 'local' | 'cloud';
8
10
  onChange?: (...any: any) => void;
@@ -2,6 +2,12 @@ import { RecipeInterface } from '@pollination-solutions/pollination-sdk';
2
2
  import { APIClient, PanelMessageOut } from '../hooks';
3
3
  export interface RecipeInputsFormProps {
4
4
  recipe: RecipeInterface;
5
+ controlledValues?: {
6
+ [index: string]: {
7
+ value: string;
8
+ hidden?: boolean;
9
+ };
10
+ };
5
11
  onSubmit?: (name: string, jobArguments: any[], description?: string) => Promise<void> | Promise<PanelMessageOut>;
6
12
  projectOwner?: string;
7
13
  projectName?: string;
@@ -7,6 +7,8 @@ export interface SelectCloudArtifactsProps {
7
7
  projectOwner?: string;
8
8
  projectName?: string;
9
9
  jobId?: string;
10
+ defaultValue?: string;
11
+ hidden?: boolean;
10
12
  fileNameMatch?: string;
11
13
  onChange?: (artifact: CloudFileMeta) => void;
12
14
  client?: APIClient;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from './Button.types';
3
3
  import './Button.scss';
4
- declare const Button: React.FC<ButtonProps>;
4
+ export declare const Button: React.FC<ButtonProps>;
5
5
  export default Button;
@@ -21,6 +21,7 @@ export interface ComboBoxProps {
21
21
  }>>;
22
22
  loading?: boolean;
23
23
  disabled?: boolean;
24
+ hidden?: boolean;
24
25
  icon?: ReactElement;
25
26
  inputStyle?: CSSProperties;
26
27
  menuStyle?: CSSProperties;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { FormInputProps } from './FormInput.types';
3
+ import './FormInput.scss';
4
+ export declare const FormInput: React.FC<FormInputProps>;
5
+ export default FormInput;
@@ -0,0 +1,6 @@
1
+ export interface FormInputProps {
2
+ name: string;
3
+ description?: string;
4
+ errorMessage?: any;
5
+ hidden?: boolean;
6
+ }
@@ -2,6 +2,7 @@ import { CSSProperties, HTMLProps, ReactNode } from 'react';
2
2
  export interface NumberInputProps {
3
3
  inputProps?: HTMLProps<HTMLInputElement>;
4
4
  icon?: ReactNode;
5
+ hidden?: boolean;
5
6
  style?: CSSProperties;
6
7
  reset?: any;
7
8
  }
@@ -2,6 +2,7 @@ import { CSSProperties, HTMLProps, ReactElement } from 'react';
2
2
  export interface TextInputProps {
3
3
  inputProps?: HTMLProps<HTMLInputElement>;
4
4
  icon?: ReactElement;
5
+ hidden?: boolean;
5
6
  style?: CSSProperties;
6
7
  reset?: any;
7
8
  }
@@ -5,6 +5,7 @@ export * from './ComboBox/ComboBox';
5
5
  export * from './ConditionalWrapper';
6
6
  export * from './Dropdown/Dropdown';
7
7
  export * from './FileInput/FileInput';
8
+ export * from './FormInput/FormInput';
8
9
  export * from './InputDescription/InputDescription';
9
10
  export * from './Label/Label';
10
11
  export * from './LoadingIcon/LoadingIcon';