@fewbox/den 0.0.95 → 0.0.99

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewbox/den",
3
- "version": "0.0.95",
3
+ "version": "0.0.99",
4
4
  "main": "index.js",
5
5
  "types": "index-app.d.ts",
6
6
  "repository": "https://github.com/FewBox/fewbox-den.git",
@@ -0,0 +1,8 @@
1
+ import { BreakpointType } from '..';
2
+ export interface IResponsiveProps {
3
+ breakpointType?: BreakpointType;
4
+ desktop: JSX.Element;
5
+ mobile: JSX.Element;
6
+ }
7
+ declare const Responsive: (props: IResponsiveProps) => JSX.Element;
8
+ export default Responsive;
@@ -4,19 +4,27 @@ export declare enum FileCategory {
4
4
  Vertical = "Vertical",
5
5
  Horizontal = "Horizontal"
6
6
  }
7
+ export interface ImageFile {
8
+ name: string;
9
+ objectUrl: string;
10
+ }
7
11
  export interface IVFileProps extends IBaseInputProps {
8
12
  category?: FileCategory;
9
13
  fileIcon: JSX.Element;
10
14
  caption?: JSX.Element | string;
11
15
  emptyMessage: string;
12
- autoUpload?: (file: any, complete: () => void) => void;
16
+ autoUpload?: (files: File[], complete: () => void) => void;
13
17
  renderLoading?: () => JSX.Element;
14
18
  loadingSize?: SizeType;
15
19
  loadingColor?: ColorType;
20
+ isMultiple?: boolean;
21
+ accept?: string;
22
+ previewImageWidth?: number;
23
+ textLength?: number;
16
24
  }
17
25
  export interface IVFileStates {
18
26
  isLoading: boolean;
19
- fileName: string;
27
+ imageFiles: ImageFile[];
20
28
  }
21
29
  declare const VFile: (props: IVFileProps) => JSX.Element;
22
30
  export default VFile;
@@ -32,6 +32,8 @@ export interface IBaseInputProps extends IBaseProps {
32
32
  inputClassName?: string;
33
33
  isRequired?: boolean;
34
34
  disabled?: boolean;
35
+ isMultiple?: boolean;
36
+ accept?: string;
35
37
  overWrite?: (inputRef: React.RefObject<HTMLInputElement>) => JSX.Element;
36
38
  }
37
39
  export interface IVInputProps extends IBaseInputProps {
@@ -3,6 +3,7 @@ export { default as Debug } from './Debug';
3
3
  export { BreakpointType } from './Layout';
4
4
  export { default as VZone, ZoneCategory } from './View/VZone';
5
5
  export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
6
+ export { default as Responsive } from './Layout/Responsive';
6
7
  export { SizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
7
8
  export { default as Dock, DockCategory } from './Layout/Dock';
8
9
  export { default as Position, PositionCategory, PositionType } from './Layout/Position';
@@ -1,2 +1,5 @@
1
- declare const _default: {};
1
+ declare const _default: {
2
+ accept: string;
3
+ 'content-type': string;
4
+ };
2
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  type JsonValue = string | number | boolean | null | {
2
2
  [key: string]: JsonValue;
3
- } | JsonValue[];
3
+ } | JsonValue[] | File;
4
4
  type JsonObject = {
5
5
  [key: string]: JsonValue;
6
6
  };