nectiasw 0.0.34 → 0.0.37

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,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const CloudArrowUpIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
4
+ export declare const ExclamationTriangleIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
5
+ export declare const DocumentTextIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
6
+ 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
+ }
@@ -0,0 +1,13 @@
1
+ import { Props } from 'react-select';
2
+ import { default as React } from 'react';
3
+
4
+ type ExtendedSearch = {
5
+ dropdown?: boolean;
6
+ };
7
+ export declare const StyledSelect: React.ComponentType<Props & ExtendedSearch>;
8
+ export declare const SearchContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
+ color?: string;
10
+ }>> & string;
11
+ export declare const StyledDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@nectiasw/components/Dropdown').DropdownProps, never>> & string & Omit<React.FunctionComponent<import('@nectiasw/components/Dropdown').DropdownProps>, keyof React.Component<any, {}, any>>;
12
+ export declare const StyledDropdownContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare const StyledSelect: any;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  export { Box } from './components/Box';
2
3
  export type { BoxProps } from './components/Box';
3
4
  export { Row } from './components/Row';
@@ -110,3 +111,5 @@ export * as Detail from './components/Detail';
110
111
  export type { DetailProps, SectionProps } from './components/Detail';
111
112
  export { Timeline } from './components/Timeline';
112
113
  export type { TimelineProps, TimelineDashedProps } from './components/Timeline/types';
114
+ export { Dragarea } from './components/Dragarea';
115
+ export type { DragareaProps } from './components/Dragarea/types';