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.
- package/dist/components/Dragarea/index.d.ts +4 -0
- package/dist/components/Dragarea/styled.d.ts +6 -0
- package/dist/components/Dragarea/svg.d.ts +6 -0
- package/dist/components/Dragarea/types.d.ts +36 -0
- package/dist/components/Search/styled.d.ts +13 -0
- package/dist/components/Select/styled.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +18034 -16477
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +400 -346
- package/dist/index.umd.js.map +1 -1
- package/dist/main.d.ts +0 -64
- package/dist/style.css +1 -1
- package/dist/utils/cache/index.d.ts +1 -1
- package/dist/utils/mapping/index.d.ts +6 -6
- package/package.json +2 -3
- package/dist/stories/Button.stories.d.ts +0 -12
|
@@ -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';
|