pollination-react-io 1.1.2 → 1.3.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 (29) hide show
  1. package/build/GetGeometry/GetGeometry.types.d.ts +4 -1
  2. package/build/GetModel/GetModel.types.d.ts +6 -1
  3. package/build/RecipeInputsForm/RecipeInputsForm.d.ts +1 -0
  4. package/build/SelectAccount/SelectAccount.d.ts +1 -1
  5. package/build/SelectAccount/SelectAccount.types.d.ts +0 -1
  6. package/build/SelectProject/SelectProject.d.ts +1 -1
  7. package/build/SelectProject/SelectProject.types.d.ts +1 -2
  8. package/build/SelectStudy/SelectStudy.d.ts +1 -1
  9. package/build/SelectStudy/SelectStudy.types.d.ts +0 -1
  10. package/build/SendResults/SendResults.d.ts +1 -1
  11. package/build/atoms/ComboBox/ComboBox.types.d.ts +0 -1
  12. package/build/atoms/FileInput/FileInput.d.ts +0 -1
  13. package/build/atoms/FileInput/FileInput.types.d.ts +3 -0
  14. package/build/atoms/InputDescription/InputDescription.d.ts +4 -0
  15. package/build/atoms/InputDescription/InputDescriptionTypes.d.ts +4 -0
  16. package/build/atoms/NumberInput/NumberInput.d.ts +4 -0
  17. package/build/atoms/NumberInput/NumberInput.types.d.ts +6 -0
  18. package/build/atoms/RadioList/RadioList.d.ts +5 -0
  19. package/build/atoms/RadioList/RadioList.types.d.ts +7 -0
  20. package/build/atoms/SettingsButton/index.d.ts +1 -1
  21. package/build/atoms/TextInput/TextInput.types.d.ts +1 -1
  22. package/build/atoms/index.d.ts +3 -1
  23. package/build/index.esm.js +104 -50
  24. package/build/index.esm.js.map +1 -1
  25. package/build/index.js +104 -50
  26. package/build/index.js.map +1 -1
  27. package/package.json +8 -2
  28. package/build/atoms/InputLabel/InputLabel.d.ts +0 -4
  29. package/build/atoms/InputLabel/InputLabel.types.d.ts +0 -3
@@ -5,7 +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
  };
10
13
  buttonLabel?: string;
11
14
  }
@@ -1,3 +1,4 @@
1
+ import { HTMLProps } from 'react';
1
2
  export declare enum GetModelActions {
2
3
  selection = "selection",
3
4
  subscribe = "subscribe"
@@ -5,7 +6,11 @@ export declare enum GetModelActions {
5
6
  export interface GetModelProps {
6
7
  setParentState?: (data: any) => any;
7
8
  optionsConfig?: {
8
- [index in GetModelActions]: boolean;
9
+ [index in GetModelActions]: {
10
+ show?: boolean;
11
+ selected?: boolean;
12
+ };
9
13
  };
10
14
  buttonLabel?: string;
15
+ inputProps?: HTMLProps<HTMLInputElement>;
11
16
  }
@@ -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
  }
@@ -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,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
  }
@@ -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
+ }
@@ -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
+ }
@@ -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,9 +3,11 @@ export * from './ConditionalWrapper';
3
3
  export * from './ComboBox/ComboBox';
4
4
  export * from './Dropdown/Dropdown';
5
5
  export * from './FileInput/FileInput';
6
- export * from './InputLabel/InputLabel';
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';