pollination-react-io 1.2.1 → 1.5.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.
@@ -1,9 +1,11 @@
1
+ import { HTMLProps } from 'react';
1
2
  export declare enum GetModelActions {
2
3
  selection = "selection",
3
4
  subscribe = "subscribe"
4
5
  }
5
6
  export interface GetModelProps {
6
- setParentState?: (data: any) => any;
7
+ onChange?: (event: any) => void;
8
+ setHbjson?: (data: any) => any;
7
9
  optionsConfig?: {
8
10
  [index in GetModelActions]: {
9
11
  show?: boolean;
@@ -11,4 +13,5 @@ export interface GetModelProps {
11
13
  };
12
14
  };
13
15
  buttonLabel?: string;
16
+ inputProps?: HTMLProps<HTMLInputElement>;
14
17
  }
@@ -1,4 +1,6 @@
1
1
  import { RecipeInterface } from '@pollination-solutions/pollination-sdk';
2
2
  export interface RecipeInputsFormProps {
3
3
  recipe: RecipeInterface;
4
+ onSubmit?: (data: any) => Promise<void>;
5
+ disabled?: boolean;
4
6
  }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ButtonProps } from './Button.types';
3
+ import './Button.scss';
4
+ declare const Button: React.FC<ButtonProps>;
5
+ export default Button;
@@ -0,0 +1,4 @@
1
+ import { ButtonHTMLAttributes, DetailedHTMLProps } from 'react';
2
+ export declare type ButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
3
+ loading?: boolean;
4
+ };
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { FileInputProps } from './FileInput.types';
3
3
  import './FileInput.scss';
4
- import '../../styles/typography.scss';
5
4
  export declare const FileInput: React.FC<FileInputProps>;
6
5
  export default FileInput;
@@ -1,4 +1,7 @@
1
+ import { HTMLProps } from 'react';
1
2
  export interface FileInputProps {
2
3
  onChange?: (event: any) => void;
3
4
  disabled?: boolean;
5
+ accept?: string[];
6
+ inputProps?: HTMLProps<HTMLInputElement>;
4
7
  }
@@ -1,4 +1,6 @@
1
+ import { CSSProperties, ReactNode } from 'react';
1
2
  export interface LabelProps {
2
- label: string;
3
+ label: string | ReactNode;
3
4
  name?: string;
5
+ style?: CSSProperties;
4
6
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NumberInputProps } from './NumberInput.types';
3
+ export declare const NumberInput: React.FC<NumberInputProps>;
4
+ export default NumberInput;
@@ -0,0 +1,6 @@
1
+ import { CSSProperties, HTMLProps, ReactNode } from 'react';
2
+ export interface NumberInputProps {
3
+ inputProps?: HTMLProps<HTMLInputElement>;
4
+ icon?: ReactNode;
5
+ style?: CSSProperties;
6
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RadioListProps } from './RadioList.types';
3
+ import './RadioList.scss';
4
+ export declare const RadioList: React.FC<RadioListProps>;
5
+ export default RadioList;
@@ -0,0 +1,7 @@
1
+ export interface RadioListProps {
2
+ items: string[];
3
+ name: string;
4
+ form: string;
5
+ defaultValue: string;
6
+ onChange: (any: any) => void;
7
+ }
@@ -4,8 +4,10 @@ export * from './ComboBox/ComboBox';
4
4
  export * from './Dropdown/Dropdown';
5
5
  export * from './FileInput/FileInput';
6
6
  export * from './InputDescription/InputDescription';
7
+ export * from './RadioList/RadioList';
7
8
  export * from './Label/Label';
8
9
  export * from './Logo';
10
+ export * from './NumberInput/NumberInput';
9
11
  export * from './SettingsButton';
10
12
  export * from './TextInput/TextInput';
11
13
  export * from './Tooltip';
@@ -7,4 +7,5 @@ export * from './useSendGeometry';
7
7
  export * from './useRunCommand';
8
8
  export * from './useManageSettings';
9
9
  export * from './useHbjsontoVTK';
10
+ export * from './useArtifacts';
10
11
  export * from './utilities';
@@ -0,0 +1,9 @@
1
+ import { FileMeta } from '@pollination-solutions/pollination-sdk';
2
+ import { FileWithPath } from 'react-dropzone';
3
+ import { APIClient } from './useAPIClient';
4
+ export declare const useArtifacts: (owner: string, name: string, client: APIClient) => {
5
+ listArtifacts: (path: string | undefined) => Promise<FileMeta[]>;
6
+ deleteArtifact: (path: string) => Promise<void>;
7
+ downloadArtifact: (path: string) => Promise<any>;
8
+ uploadArtifact: (folderRoot: FileMeta | undefined, file: FileWithPath) => Promise<import("@pollination-solutions/pollination-sdk").S3UploadRequest>;
9
+ };