pollination-react-io 0.0.41 → 0.0.42

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 (34) hide show
  1. package/build/AuthUser/AuthUser.d.ts +3 -3
  2. package/build/CreateStudy/CreateStudy.d.ts +6 -0
  3. package/build/CreateStudy/CreateStudy.types.d.ts +2 -0
  4. package/build/PreviewBakeGeometry/PreviewBakeGeometry.d.ts +2 -2
  5. package/build/PreviewBakeModel/PreviewBakeModel.d.ts +2 -2
  6. package/build/RecipeInputsForm/RecipeInputsForm.d.ts +4 -0
  7. package/build/RecipeInputsForm/RecipeInputsForm.types.d.ts +4 -0
  8. package/build/RunCommand/RunCommand.d.ts +3 -3
  9. package/build/SelectAccount/SelectAccount.d.ts +6 -0
  10. package/build/SelectAccount/SelectAccount.types.d.ts +9 -0
  11. package/build/SelectProject/SelectProject.d.ts +6 -0
  12. package/build/SelectProject/SelectProject.types.d.ts +8 -0
  13. package/build/SelectRecipe/SelectRecipe.d.ts +4 -0
  14. package/build/SelectRecipe/SelectRecipe.types.d.ts +8 -0
  15. package/build/SendResults/SendResults.d.ts +3 -3
  16. package/build/atoms/Avatar/Avatar.d.ts +11 -0
  17. package/build/atoms/ComboBox/ComboBox.d.ts +6 -0
  18. package/build/atoms/ComboBox/Combobox.types.d.ts +17 -0
  19. package/build/atoms/Dropdown/Dropdown.d.ts +2 -1
  20. package/build/atoms/FileInput/FileInput.d.ts +5 -5
  21. package/build/atoms/Label/Label.d.ts +4 -0
  22. package/build/atoms/Label/Label.types.d.ts +4 -0
  23. package/build/atoms/Logo/index.d.ts +1 -1
  24. package/build/atoms/SettingsButton/index.d.ts +1 -1
  25. package/build/atoms/TextInput/TextInput.d.ts +5 -0
  26. package/build/atoms/TextInput/TextInput.types.d.ts +6 -0
  27. package/build/atoms/Tooltip/index.d.ts +2 -2
  28. package/build/atoms/index.d.ts +10 -0
  29. package/build/hooks/utilities.d.ts +1 -3
  30. package/build/index.esm.js +6012 -725
  31. package/build/index.esm.js.map +1 -1
  32. package/build/index.js +6010 -724
  33. package/build/index.js.map +1 -1
  34. package/package.json +19 -7
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { AuthUserProps } from "./AuthUser.types";
3
- import "./AuthUser.scss";
1
+ import React from 'react';
2
+ import { AuthUserProps } from './AuthUser.types';
3
+ import './AuthUser.scss';
4
4
  export declare const AuthUser: React.FC<AuthUserProps>;
5
5
  export default AuthUser;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import 'react-tabs/style/react-tabs.css';
3
+ import { CreateStudyProps } from './CreateStudy.types';
4
+ import './CreateStudy.scss';
5
+ declare const CreateStudy: React.FC<CreateStudyProps>;
6
+ export default CreateStudy;
@@ -0,0 +1,2 @@
1
+ import type { ConfigurationParameters } from '@pollination-solutions/pollination-sdk';
2
+ export declare type CreateStudyProps = ConfigurationParameters;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { PreviewBakeGeometryProps } from "./PreviewBakeGeometry.types";
1
+ import React from 'react';
2
+ import { PreviewBakeGeometryProps } from './PreviewBakeGeometry.types';
3
3
  export declare const PreviewBakeGeometry: React.FC<PreviewBakeGeometryProps>;
4
4
  export default PreviewBakeGeometry;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { PreviewBakeModelProps } from "./PreviewBakeModel.types";
1
+ import React from 'react';
2
+ import { PreviewBakeModelProps } from './PreviewBakeModel.types';
3
3
  export declare const PreviewBakeModel: React.FC<PreviewBakeModelProps>;
4
4
  export default PreviewBakeModel;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { RecipeInputsFormProps } from './RecipeInputsForm.types';
3
+ declare const RecipeInputsForm: React.FC<RecipeInputsFormProps>;
4
+ export default RecipeInputsForm;
@@ -0,0 +1,4 @@
1
+ import { RecipeInterface } from '@pollination-solutions/pollination-sdk';
2
+ export interface RecipeInputsFormProps {
3
+ recipe: RecipeInterface;
4
+ }
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { RunCommandProps } from "./RunCommand.types";
3
- import "./RunCommand.scss";
1
+ import React from 'react';
2
+ import { RunCommandProps } from './RunCommand.types';
3
+ import './RunCommand.scss';
4
4
  declare const RunCommand: React.FC<RunCommandProps>;
5
5
  export default RunCommand;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { SelectAccountProps } from './SelectAccount.types';
3
+ import '../styles/buttons.scss';
4
+ import '../styles/variables.scss';
5
+ declare const SelectAccount: React.FC<SelectAccountProps>;
6
+ export default SelectAccount;
@@ -0,0 +1,9 @@
1
+ import { Organization, UserPrivate } from "@pollination-solutions/pollination-sdk";
2
+ import { CSSProperties } from "react";
3
+ import { APIClient } from "../hooks";
4
+ export interface SelectAccountProps {
5
+ authUser?: UserPrivate;
6
+ client?: APIClient;
7
+ style?: CSSProperties;
8
+ setSelAccount?: (account: UserPrivate | Organization) => void;
9
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { SelectProjectProps } from './SelectProject.types';
3
+ import '../styles/buttons.scss';
4
+ import '../styles/variables.scss';
5
+ declare const SelectProject: React.FC<SelectProjectProps>;
6
+ export default SelectProject;
@@ -0,0 +1,8 @@
1
+ import { Project, ProjectsApiListProjectsRequest, UserPrivate } from "@pollination-solutions/pollination-sdk";
2
+ import { APIClient } from "../hooks";
3
+ export interface SelectProjectProps {
4
+ authUser?: UserPrivate;
5
+ client?: APIClient;
6
+ setSelProject?: (project: Project) => void;
7
+ queryConfig?: Partial<ProjectsApiListProjectsRequest>;
8
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SelectRecipeProps } from './SelectRecipe.types';
3
+ declare const SelectRecipe: React.FC<SelectRecipeProps>;
4
+ export default SelectRecipe;
@@ -0,0 +1,8 @@
1
+ import { RecipeInterface, UserPrivate } from '@pollination-solutions/pollination-sdk';
2
+ import { APIClient } from '../hooks';
3
+ export interface SelectRecipeProps {
4
+ projectName?: string;
5
+ authUser?: UserPrivate;
6
+ client?: APIClient;
7
+ setSelRecipe?: (recipe: RecipeInterface) => void;
8
+ }
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { SendResultsProps } from "./SendResults.types";
3
- import '../buttons.scss';
1
+ import React from 'react';
2
+ import { SendResultsProps } from './SendResults.types';
3
+ import '../styles/buttons.scss';
4
4
  export declare const SendResults: React.FC<SendResultsProps>;
5
5
  export default SendResults;
@@ -0,0 +1,11 @@
1
+ import React, { CSSProperties } from 'react';
2
+ interface AvatarProps {
3
+ alt?: string;
4
+ fallback?: string;
5
+ href?: string;
6
+ src?: string;
7
+ size?: number;
8
+ style?: CSSProperties;
9
+ }
10
+ export declare const Avatar: React.FC<AvatarProps>;
11
+ export default Avatar;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ComboBoxProps } from './Combobox.types';
3
+ import 'react-perfect-scrollbar/dist/css/styles.css';
4
+ import './ComboBox.scss';
5
+ export declare const ComboBox: React.ForwardRefExoticComponent<ComboBoxProps>;
6
+ export default ComboBox;
@@ -0,0 +1,17 @@
1
+ import { CSSProperties, HTMLProps, ReactNode, Ref } from 'react';
2
+ export interface ComboBoxProps {
3
+ items: {
4
+ id: string;
5
+ name: string;
6
+ }[];
7
+ renderItem?: (item: any) => ReactNode;
8
+ setSelected?: (item: any) => void;
9
+ loading?: boolean;
10
+ disabled?: boolean;
11
+ inputStyle?: CSSProperties;
12
+ menuStyle?: CSSProperties;
13
+ inputProps?: HTMLProps<HTMLInputElement>;
14
+ footer?: string | ReactNode;
15
+ noMatchText?: string;
16
+ ref?: Ref<any>;
17
+ }
@@ -1,6 +1,6 @@
1
1
  import React, { FC } from 'react';
2
2
  import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
3
- import "./Dropdown.scss";
3
+ import './Dropdown.scss';
4
4
  export declare type Option = {
5
5
  type: 'checkbox' | 'radio' | 'button' | 'label' | 'link';
6
6
  id: string;
@@ -18,6 +18,7 @@ export declare type OptionGroup = {
18
18
  interface DropdownProps {
19
19
  optionGroups: OptionGroup[];
20
20
  trigger: React.ReactNode;
21
+ open?: boolean;
21
22
  contentProps?: DropdownMenu.DropdownMenuContentProps;
22
23
  itemProps?: DropdownMenu.DropdownMenuItemProps;
23
24
  arrow?: boolean;
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- import { FileInputProps } from "./FileInput.types";
3
- import "./FileInput.scss";
4
- import "../../typography.scss";
5
- declare const FileInput: React.FC<FileInputProps>;
1
+ import React from 'react';
2
+ import { FileInputProps } from './FileInput.types';
3
+ import './FileInput.scss';
4
+ import '../../styles/typography.scss';
5
+ export declare const FileInput: React.FC<FileInputProps>;
6
6
  export default FileInput;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { LabelProps } from './Label.types';
3
+ export declare const Label: FC<LabelProps>;
4
+ export default Label;
@@ -0,0 +1,4 @@
1
+ export interface LabelProps {
2
+ label: string;
3
+ name?: string;
4
+ }
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare function Logo(): JSX.Element;
2
+ export declare const Logo: () => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { OptionGroup } from '../Dropdown/Dropdown';
3
- import '../../buttons.scss';
3
+ import '../../styles/buttons.scss';
4
4
  export interface SettingsButtonProps {
5
5
  onClick: () => void;
6
6
  label: string | ReactNode;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { TextInputProps } from './TextInput.types';
3
+ import './TextInput.scss';
4
+ export declare const TextInput: React.FC<TextInputProps>;
5
+ export default TextInput;
@@ -0,0 +1,6 @@
1
+ import { CSSProperties, HTMLProps, ReactNode } from "react";
2
+ export interface TextInputProps {
3
+ inputProps?: HTMLProps<HTMLInputElement>;
4
+ icon?: ReactNode;
5
+ style?: CSSProperties;
6
+ }
@@ -1,8 +1,8 @@
1
- import React, { CSSProperties, FC } from "react";
1
+ import React, { CSSProperties, FC } from 'react';
2
2
  import './Tooltip.scss';
3
3
  interface TooltipProps {
4
4
  content: React.ReactNode | string;
5
- side?: "top" | "right" | "bottom" | "left";
5
+ side?: 'top' | 'right' | 'bottom' | 'left';
6
6
  children?: React.ReactNode;
7
7
  style?: CSSProperties;
8
8
  }
@@ -0,0 +1,10 @@
1
+ export * from './Avatar/Avatar';
2
+ export * from './ConditionalWrapper';
3
+ export * from './ComboBox/ComboBox';
4
+ export * from './Dropdown/Dropdown';
5
+ export * from './FileInput/FileInput';
6
+ export * from './Label/Label';
7
+ export * from './Logo';
8
+ export * from './SettingsButton';
9
+ export * from './TextInput/TextInput';
10
+ export * from './Tooltip';
@@ -1,8 +1,6 @@
1
- /// <reference types="node" />
2
- import { Message } from './types';
1
+ import type { Message } from './types';
3
2
  export declare function checkDotNet(): boolean;
4
3
  export declare function checkRuby(): boolean;
5
4
  export declare function sendMessageDotNet(message: Message): Message;
6
5
  export declare function sendMessageRuby(message: Message): Message;
7
- export declare function subscribeDotNet(interval?: number): (setState: any) => NodeJS.Timer;
8
6
  export declare function getHost(key?: string, defaultValue?: string): any;