pollination-react-io 1.7.0 → 1.8.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,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { AuthUserProps } from './AuthUser.types';
3
- import './AuthUser.scss';
4
3
  export declare const AuthUser: React.FC<AuthUserProps>;
5
4
  export default AuthUser;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ComboFileSelectorProps } from './ComboFileSelector.types';
3
+ export declare const ComboFileSelector: React.FC<ComboFileSelectorProps>;
4
+ export default ComboFileSelector;
@@ -0,0 +1,10 @@
1
+ import { HTMLProps } from 'react';
2
+ import { APIClient } from '../hooks';
3
+ export interface ComboFileSelectorProps {
4
+ projectOwner?: string;
5
+ projectName?: string;
6
+ defaultOption?: 'get_model' | 'get_file' | 'get_cloud';
7
+ onChange?: (...any: any) => void;
8
+ client: APIClient;
9
+ inputProps?: HTMLProps<HTMLInputElement>;
10
+ }
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import 'react-tabs/style/react-tabs.css';
3
2
  import { CreateStudyProps } from './CreateStudy.types';
4
- import './CreateStudy.scss';
5
- declare const CreateStudy: React.FC<CreateStudyProps>;
3
+ import 'react-tabs/style/react-tabs.css';
4
+ export declare const CreateStudy: React.FC<CreateStudyProps>;
6
5
  export default CreateStudy;
@@ -1,2 +1,8 @@
1
- import type { ConfigurationParameters } from '@pollination-solutions/pollination-sdk';
2
- export declare type CreateStudyProps = ConfigurationParameters;
1
+ import type { UserPrivate } from '@pollination-solutions/pollination-sdk';
2
+ import { CSSProperties } from 'react';
3
+ import { APIClient } from '../hooks';
4
+ export declare type CreateStudyProps = {
5
+ authUser?: UserPrivate;
6
+ client?: APIClient;
7
+ style?: CSSProperties;
8
+ };
@@ -1,7 +1,10 @@
1
1
  import { RecipeInterface } from '@pollination-solutions/pollination-sdk';
2
- import { Message } from '../hooks';
2
+ import { APIClient, Message } from '../hooks';
3
3
  export interface RecipeInputsFormProps {
4
4
  recipe: RecipeInterface;
5
5
  onSubmit?: (data: any) => Promise<void> | Promise<Message> | void;
6
6
  disabled?: boolean;
7
+ projectOwner?: string;
8
+ projectName?: string;
9
+ client?: APIClient;
7
10
  }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RunCommandProps } from './RunCommand.types';
3
- import './RunCommand.scss';
4
3
  declare const RunCommand: React.FC<RunCommandProps>;
5
4
  export default RunCommand;
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SelectAccountProps } from './SelectAccount.types';
3
- import '../styles/buttons-group.scss';
4
- import '../styles/variables.scss';
5
3
  export declare const SelectAccount: React.FC<SelectAccountProps>;
6
4
  export default SelectAccount;
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SelectProjectProps } from './SelectProject.types';
3
- import '../styles/buttons-group.scss';
4
- import '../styles/variables.scss';
5
3
  export declare const SelectProject: React.FC<SelectProjectProps>;
6
4
  export default SelectProject;
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SelectStudyProps } from './SelectStudy.types';
3
- import '../styles/buttons-group.scss';
4
- import '../styles/variables.scss';
5
3
  export declare const SelectStudy: React.FC<SelectStudyProps>;
6
4
  export default SelectStudy;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SendResultsProps } from './SendResults.types';
3
- import '../styles/buttons-group.scss';
4
3
  export declare const SendResults: React.FC<SendResultsProps>;
5
4
  export default SendResults;
@@ -1,6 +1,6 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { OptionGroup } from '../Dropdown/Dropdown';
3
- import '../../styles/buttons-group.scss';
3
+ import './SettingsButton.scss';
4
4
  export interface SettingsButtonProps {
5
5
  onClick: () => void;
6
6
  label: string | ReactNode;
@@ -1,7 +1,7 @@
1
- import { CSSProperties, HTMLProps, ReactNode } from 'react';
1
+ import { CSSProperties, HTMLProps, ReactElement } from 'react';
2
2
  export interface TextInputProps {
3
3
  inputProps?: HTMLProps<HTMLInputElement>;
4
- icon?: ReactNode;
4
+ icon?: ReactElement;
5
5
  style?: CSSProperties;
6
6
  reset?: any;
7
7
  }
package/build/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export * from './hooks';
2
2
  export * from './AuthUser/AuthUser';
3
+ export * from './CreateStudy/CreateStudy';
4
+ export * from './ComboFileSelector/ComboFileSelector';
3
5
  export * from './GetGeometry/GetGeometry';
4
6
  export * from './GetModel/GetModel';
5
- export * from './PreviewBakeGeometry/PreviewBakeGeometry';
6
- export * from './PreviewBakeModel/PreviewBakeModel';
7
7
  export * from './RunCommand/RunCommand';
8
8
  export * from './SelectAccount/SelectAccount';
9
9
  export * from './SelectStudy/SelectStudy';