@agilekit/ui 0.0.508-alpha.0 → 0.0.511-alpha.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.
- package/lib/index.js +1 -1
- package/lib/src/components/FileUpload/FileUpload.d.ts +17 -0
- package/lib/src/components/FileUpload/FileUpload.stories.d.ts +14 -0
- package/lib/src/components/FileUpload/index.d.ts +2 -0
- package/lib/src/components/Loader/Loader.d.ts +5 -0
- package/lib/src/components/PaymentProcessing/PaymentProcessing.d.ts +8 -0
- package/lib/src/components/PaymentProcessing/index.d.ts +1 -0
- package/lib/src/components/PaymentProcessing/tests/PaymentProcessing.test.d.ts +0 -0
- package/lib/src/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FileUploadItemProps {
|
|
3
|
+
fileName: string;
|
|
4
|
+
fileSize: string;
|
|
5
|
+
state: 'inProgress' | 'completed' | 'error' | 'clickToView';
|
|
6
|
+
type?: 'default' | 'image';
|
|
7
|
+
draggable?: boolean;
|
|
8
|
+
hideProgress?: boolean;
|
|
9
|
+
progress?: number;
|
|
10
|
+
thumbnailUrl?: string;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
onDelete?: () => void;
|
|
13
|
+
onRetry?: () => void;
|
|
14
|
+
onView?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const FileUploadItem: React.FC<FileUploadItemProps>;
|
|
17
|
+
export default FileUploadItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import FileUploadItem, { FileUploadItemProps } from './FileUpload';
|
|
3
|
+
declare const meta: Meta<typeof FileUploadItem>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<FileUploadItemProps>;
|
|
6
|
+
export declare const InProgress: Story;
|
|
7
|
+
export declare const Completed: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const ClickToView: Story;
|
|
10
|
+
export declare const ImageInProgress: Story;
|
|
11
|
+
export declare const ImageCompleted: Story;
|
|
12
|
+
export declare const ImageWithoutProgress: Story;
|
|
13
|
+
export declare const DraggableImage: Story;
|
|
14
|
+
export declare const AllStatesDemo: Story;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface LoaderProps {
|
|
3
3
|
type?: 'ellipsis' | 'ring' | 'balls' | 'square';
|
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
|
5
|
+
color?: string;
|
|
6
|
+
'aria-label'?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
'data-testid'?: string;
|
|
4
9
|
}
|
|
5
10
|
declare const Loader: React.FC<LoaderProps>;
|
|
6
11
|
export default Loader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ProcessingModalProps {
|
|
3
|
+
isProcessingPayment: boolean;
|
|
4
|
+
description?: string;
|
|
5
|
+
paperClasses?: string[];
|
|
6
|
+
}
|
|
7
|
+
declare const ProcessingModal: ({ isProcessingPayment, description, paperClasses }: ProcessingModalProps) => React.JSX.Element;
|
|
8
|
+
export default ProcessingModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PaymentProcessing';
|
|
File without changes
|
package/lib/src/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { default as DataTable } from './components/DataTable/DataTable';
|
|
|
21
21
|
export { default as Drawer } from './components/Drawer/Drawer';
|
|
22
22
|
export { default as Form } from './components/Form/Form';
|
|
23
23
|
export { default as FormSectionTitle } from './components/FormSectionTitle/FormSectionTitle';
|
|
24
|
+
export { default as FileUpload, type FileUploadItemProps } from './components/FileUpload/FileUpload';
|
|
24
25
|
export { default as Heading } from './components/Heading/Heading';
|
|
25
26
|
export { default as Icon } from './components/Icon/Icon';
|
|
26
27
|
export { default as InputFile } from './components/InputFile/InputFile';
|
|
@@ -38,6 +39,7 @@ export { default as Pagination } from './components/Pagination/Pagination';
|
|
|
38
39
|
export { default as Popover } from './components/Popover/Popover';
|
|
39
40
|
export { default as ProgressIndicator } from './components/ProgressIndicator/ProgressIndicator';
|
|
40
41
|
export { default as Page } from './components/Page/Page';
|
|
42
|
+
export { default as PaymentProcessing } from './components/PaymentProcessing/PaymentProcessing';
|
|
41
43
|
export { default as RadioButton } from './components/RadioButton/RadioButton';
|
|
42
44
|
export { default as Row } from './components/Grid/components/Row/Row';
|
|
43
45
|
export { default as Select } from './components/Select/Select';
|