pollination-react-io 1.1.0 → 1.2.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.
@@ -5,6 +5,10 @@ export declare enum GetModelActions {
5
5
  export interface GetGeometryProps {
6
6
  setParentState?: (data: any) => void;
7
7
  optionsConfig?: {
8
- [index in GetModelActions]: boolean;
8
+ [index in GetModelActions]: {
9
+ show?: boolean;
10
+ selected?: boolean;
11
+ };
9
12
  };
13
+ buttonLabel?: string;
10
14
  }
@@ -5,6 +5,10 @@ export declare enum GetModelActions {
5
5
  export interface GetModelProps {
6
6
  setParentState?: (data: any) => any;
7
7
  optionsConfig?: {
8
- [index in GetModelActions]: boolean;
8
+ [index in GetModelActions]: {
9
+ show?: boolean;
10
+ selected?: boolean;
11
+ };
9
12
  };
13
+ buttonLabel?: string;
10
14
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { RecipeInputsFormProps } from './RecipeInputsForm.types';
3
+ import './RecipeInputsForm.scss';
3
4
  declare const RecipeInputsForm: React.FC<RecipeInputsFormProps>;
4
5
  export default RecipeInputsForm;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SelectAccountProps } from './SelectAccount.types';
3
- import '../styles/buttons.scss';
3
+ import '../styles/buttons-group.scss';
4
4
  import '../styles/variables.scss';
5
5
  export declare const SelectAccount: React.FC<SelectAccountProps>;
6
6
  export default SelectAccount;
@@ -5,5 +5,4 @@ export interface SelectAccountProps {
5
5
  authUser?: UserPrivate;
6
6
  client?: APIClient;
7
7
  setSelAccount?: (account: Account) => void;
8
- environment: Window;
9
8
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SelectProjectProps } from './SelectProject.types';
3
- import '../styles/buttons.scss';
3
+ import '../styles/buttons-group.scss';
4
4
  import '../styles/variables.scss';
5
5
  export declare const SelectProject: React.FC<SelectProjectProps>;
6
6
  export default SelectProject;
@@ -3,7 +3,6 @@ import { APIClient } from '../hooks';
3
3
  export interface SelectProjectProps {
4
4
  authUser?: UserPrivate;
5
5
  client?: APIClient;
6
- projectOwner: string[];
6
+ projectOwner: string;
7
7
  setSelProject?: (project: Project) => void;
8
- environment?: Window;
9
8
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SelectStudyProps } from './SelectStudy.types';
3
- import '../styles/buttons.scss';
3
+ import '../styles/buttons-group.scss';
4
4
  import '../styles/variables.scss';
5
5
  export declare const SelectStudy: React.FC<SelectStudyProps>;
6
6
  export default SelectStudy;
@@ -7,5 +7,4 @@ export interface SelectStudyProps {
7
7
  client?: APIClient;
8
8
  setSelStudy?: (project: Project) => void;
9
9
  queryConfig?: Partial<ProjectsApiListProjectsRequest>;
10
- environment?: Window;
11
10
  }
@@ -12,4 +12,5 @@ export interface SendGeometryProps {
12
12
  optionsConfig?: {
13
13
  [index in Action]: boolean;
14
14
  };
15
+ buttonLabel?: string;
15
16
  }
@@ -12,4 +12,5 @@ export interface SendModelProps {
12
12
  optionsConfig?: {
13
13
  [index in Action]: boolean;
14
14
  };
15
+ buttonLabel?: string;
15
16
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { SendResultsProps } from './SendResults.types';
3
- import '../styles/buttons.scss';
3
+ import '../styles/buttons-group.scss';
4
4
  export declare const SendResults: React.FC<SendResultsProps>;
5
5
  export default SendResults;
@@ -14,6 +14,5 @@ export interface ComboBoxProps {
14
14
  footer?: string | ReactNode;
15
15
  noMatchText?: string;
16
16
  ref?: Ref<any>;
17
- environment?: Window;
18
17
  onScrollReachEnd?: (...args: any) => void;
19
18
  }
@@ -1,5 +1,7 @@
1
- export declare const ConditionalWrapper: ({ condition, wrapper, children }: {
2
- condition: any;
3
- wrapper: any;
4
- children: any;
5
- }) => any;
1
+ import { FC, ReactNode } from 'react';
2
+ interface ConditionalWrapperProps {
3
+ condition: boolean;
4
+ wrapper: (children: ReactNode) => any;
5
+ }
6
+ export declare const ConditionalWrapper: FC<ConditionalWrapperProps>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { InputDescriptionProps } from './InputDescriptionTypes';
3
+ export declare const InputDescription: FC<InputDescriptionProps>;
4
+ export default InputDescription;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export interface InputDescriptionProps {
3
+ helpText: ReactNode;
4
+ }
@@ -1,6 +1,6 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { OptionGroup } from '../Dropdown/Dropdown';
3
- import '../../styles/buttons.scss';
3
+ import '../../styles/buttons-group.scss';
4
4
  export interface SettingsButtonProps {
5
5
  onClick: () => void;
6
6
  label: string | ReactNode;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, HTMLProps, ReactNode } from "react";
1
+ import { CSSProperties, HTMLProps, ReactNode } from 'react';
2
2
  export interface TextInputProps {
3
3
  inputProps?: HTMLProps<HTMLInputElement>;
4
4
  icon?: ReactNode;
@@ -3,6 +3,7 @@ export * from './ConditionalWrapper';
3
3
  export * from './ComboBox/ComboBox';
4
4
  export * from './Dropdown/Dropdown';
5
5
  export * from './FileInput/FileInput';
6
+ export * from './InputDescription/InputDescription';
6
7
  export * from './Label/Label';
7
8
  export * from './Logo';
8
9
  export * from './SettingsButton';