nectiasw 0.0.34 → 0.0.35

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,4 @@
1
+ import { default as React } from 'react';
2
+ import { DragareaProps } from './types';
3
+
4
+ export declare const Dragarea: React.FunctionComponent<DragareaProps>;
@@ -0,0 +1,6 @@
1
+ import { DragareaProps } from './types';
2
+
3
+ export declare const Dropzone: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DragareaProps>> & string;
4
+ export declare const Message: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const Input: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
6
+ export declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DragareaProps>> & string;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
+
4
+ export declare const CloudArrowUpIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
5
+ export declare const ExclamationTriangleIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
6
+ export declare const DocumentTextIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
7
+ export declare const ArrowPathIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,36 @@
1
+ export type DragareaProps = {
2
+ color?: string;
3
+ width?: number;
4
+ height?: number;
5
+ filename?: string;
6
+ message?: string;
7
+ status?: DropStatus;
8
+ borderColor?: string;
9
+ wrongColor?: string;
10
+ successColor?: string;
11
+ maxFileSize?: number;
12
+ backgroundColor?: string;
13
+ isDragActive?: boolean;
14
+ onFileUpload?: (file: File) => void;
15
+ setIsDragActive?: (active: boolean) => void;
16
+ acceptedFileType?: {
17
+ [type: string]: any[];
18
+ };
19
+ onStatusChange?: (status: DropStatus) => void;
20
+ onFileNameChange?: (filename: string) => void;
21
+ statusMessages?: Record<DropStatus, string[]>;
22
+ statusColors?: Partial<Record<DropStatus, string>>;
23
+ statusBorder?: Partial<Record<DropStatus, string>>;
24
+ statusIcons?: Partial<Record<DropStatus, React.ComponentType<any>>>;
25
+ };
26
+ export declare enum DropStatus {
27
+ DragActive = 1,
28
+ FileEmpty = 2,
29
+ InvalidType = 3,
30
+ FileTooBig = 4,
31
+ WithError = 5,
32
+ Reload = 6,
33
+ TooManyParticipants = 7,
34
+ MoreThanFifteen = 8,
35
+ MissingField = 9
36
+ }
package/dist/index.d.ts CHANGED
@@ -110,3 +110,5 @@ export * as Detail from './components/Detail';
110
110
  export type { DetailProps, SectionProps } from './components/Detail';
111
111
  export { Timeline } from './components/Timeline';
112
112
  export type { TimelineProps, TimelineDashedProps } from './components/Timeline/types';
113
+ export { Dragarea } from './components/Dragarea';
114
+ export type { DragareaProps } from './components/Dragarea/types';