pollination-react-io 1.37.0 → 1.38.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.
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './Card.scss';
3
+ export interface FileCardProps {
4
+ label: string;
5
+ path: string;
6
+ description: string;
7
+ file?: Blob | File | string;
8
+ onClicked?: (card: FileCardProps) => any;
9
+ }
10
+ export declare const FileCard: React.FC<FileCardProps>;
11
+ export default FileCard;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './Card.scss';
3
+ export interface FolderCardProps {
4
+ label: string;
5
+ path: string;
6
+ description: string;
7
+ onClicked?: (card: FolderCardProps) => any;
8
+ }
9
+ export declare const FolderCard: React.FC<FolderCardProps>;
10
+ export default FolderCard;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './Card.scss';
3
+ export interface ParamCardProps {
4
+ label: string;
5
+ value: string | any;
6
+ type: string;
7
+ description: string;
8
+ }
9
+ export declare const ParamCard: React.FC<ParamCardProps>;
10
+ export default ParamCard;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export declare const jsonSvg: () => JSX.Element;
3
+ export declare const jsonSvgFilled: () => JSX.Element;
4
+ export declare const csvSvg: () => JSX.Element;
5
+ export declare const csvSvgFilled: () => JSX.Element;
6
+ export declare const threeDimSvg: () => JSX.Element;
7
+ export declare const threeDimSvgFilled: () => JSX.Element;
8
+ export declare const xmlSvg: () => JSX.Element;
9
+ export declare const xmlSvgFilled: () => JSX.Element;
10
+ export declare const weatherSvg: () => JSX.Element;
11
+ export declare const weatherSvgFilled: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ /** Given a file type, returns any specialized icons. */
3
+ export declare const getFileIcon: (size: number, type: string) => React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { RunContentProps } from './RunContent.types';
3
- import './RunRecipe.scss';
3
+ import './RunContent.scss';
4
4
  export declare const RunContent: React.FC<RunContentProps>;
5
5
  export default RunContent;
@@ -1,9 +1,5 @@
1
1
  import { APIClient } from '../hooks';
2
- export interface FileCard {
3
- label: string;
4
- path: string;
5
- file?: Blob | File | string;
6
- }
2
+ import { FileCardProps } from './Cards/FileCard';
7
3
  export interface RunContentProps {
8
4
  inputData: any[];
9
5
  studyId?: string;
@@ -11,5 +7,5 @@ export interface RunContentProps {
11
7
  projectOwner?: string;
12
8
  projectName?: string;
13
9
  client?: APIClient;
14
- getCardValue?: (card: FileCard) => any;
10
+ getCardValue?: (card: FileCardProps) => any;
15
11
  }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RunDetailsProps } from './RunDetails.types';
3
+ import './RunDetails.scss';
4
+ export declare const RunDetails: React.FC<RunDetailsProps>;
5
+ export default RunDetails;
@@ -1,20 +1,18 @@
1
1
  import { Run, UserPrivate } from '@pollination-solutions/pollination-sdk';
2
- import { CSSProperties } from 'react';
3
2
  import { APIClient } from '../hooks';
4
- import { FileCard } from './RunContent.types';
3
+ import { FileCardProps } from './Cards/FileCard';
5
4
  export interface LocalRun {
6
5
  meta: any;
7
6
  status: any;
8
7
  recipe: any;
9
8
  id: string;
10
9
  }
11
- export interface RunRecipeProps {
10
+ export interface RunDetailsProps {
12
11
  projectOwner: string;
13
12
  projectName: string;
14
13
  run?: Run | LocalRun;
15
14
  runId?: string;
16
- style?: CSSProperties;
17
15
  authUser?: UserPrivate;
18
16
  client?: APIClient;
19
- getCardValue?: (card: FileCard) => any;
17
+ getCardValue?: (card: FileCardProps) => any;
20
18
  }
package/build/index.d.ts CHANGED
@@ -22,4 +22,4 @@ export * from './SendResults/SendResults';
22
22
  export * from './Cards/StudyCard';
23
23
  export * from './Cards/RunCard';
24
24
  export * from './FilePreview/FilePreview';
25
- export * from './RunRecipe/RunRecipe';
25
+ export * from './RunDetails/RunDetails';