@os-design/upload 1.0.307 → 1.0.309
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type WithSize } from '@os-design/styles';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { type Accept } from 'react-dropzone';
|
|
3
4
|
import { type ImageUploadLocale } from './utils/defaultLocale.js';
|
|
4
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
5
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
5
6
|
export interface ImageUploadProps extends JsxDivProps, WithSize {
|
|
6
7
|
/**
|
|
7
8
|
* The url of the image.
|
|
@@ -41,10 +42,10 @@ interface OverlayProps {
|
|
|
41
42
|
export declare const Overlay: import("@emotion/styled").StyledComponent<{
|
|
42
43
|
theme?: import("@emotion/react").Theme;
|
|
43
44
|
as?: React.ElementType;
|
|
44
|
-
} & OverlayProps,
|
|
45
|
+
} & OverlayProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
45
46
|
/**
|
|
46
47
|
* The component to upload an image.
|
|
47
48
|
*/
|
|
48
|
-
declare const ImageUpload:
|
|
49
|
+
declare const ImageUpload: React.ForwardRefExoticComponent<ImageUploadProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
50
|
export default ImageUpload;
|
|
50
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ImageUpload/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ImageUpload/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAC1D,OAAsB,EACpB,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAElC,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,cAAc,GAAG,UAAU,GAAG,KAAK,CACpC,CAAC;AACF,MAAM,WAAW,gBAAiB,SAAQ,WAAW,EAAE,QAAQ;IAC7D;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACzC;AAsBD,UAAU,YAAY;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,OAAO;;;oGAsBnB,CAAC;AAgGF;;GAEG;AACH,QAAA,MAAM,WAAW,yFAkGhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Delete, Picture } from '@os-design/icons';
|
|
|
5
5
|
import { resetFocusStyles, sizeStyles, transitionStyles } from '@os-design/styles';
|
|
6
6
|
import { ThemeOverrider, clr } from '@os-design/theming';
|
|
7
7
|
import { isTouchDevice, omitEmotionProps } from '@os-design/utils';
|
|
8
|
-
import { forwardRef, useCallback, useMemo } from 'react';
|
|
8
|
+
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
9
9
|
import { useDropzone } from 'react-dropzone';
|
|
10
10
|
import defaultLocale from './utils/defaultLocale.js';
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os-design/upload",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.309",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": "git@gitlab.com:os-team/libs/os-design.git",
|
|
6
6
|
"type": "module",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
|
|
24
24
|
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
|
|
25
25
|
"build": "yarn clean && npm-run-all 'build:*'",
|
|
26
|
-
"ncu": "ncu -u
|
|
26
|
+
"ncu": "ncu -u"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@os-design/core": "^1.0.
|
|
33
|
-
"@os-design/icons": "^1.0.
|
|
34
|
-
"@os-design/styles": "^1.0.
|
|
35
|
-
"@os-design/theming": "^1.0.
|
|
36
|
-
"@os-design/utils": "^1.0.
|
|
37
|
-
"react-dropzone": "^
|
|
32
|
+
"@os-design/core": "^1.0.305",
|
|
33
|
+
"@os-design/icons": "^1.0.74",
|
|
34
|
+
"@os-design/styles": "^1.0.71",
|
|
35
|
+
"@os-design/theming": "^1.0.66",
|
|
36
|
+
"@os-design/utils": "^1.0.96",
|
|
37
|
+
"react-dropzone": "^15.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@emotion/react": ">=11",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": ">=11",
|
|
45
45
|
"@emotion/styled": ">=11",
|
|
46
|
-
"react": "
|
|
47
|
-
"react-dom": "
|
|
46
|
+
"react": "19",
|
|
47
|
+
"react-dom": "19"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f333f60e39273574d2227cf0ee70b0c8897b2dde"
|
|
50
50
|
}
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
} from '@os-design/styles';
|
|
11
11
|
import { ThemeOverrider, clr } from '@os-design/theming';
|
|
12
12
|
import { isTouchDevice, omitEmotionProps } from '@os-design/utils';
|
|
13
|
-
import { forwardRef, useCallback, useMemo } from 'react';
|
|
13
|
+
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
14
14
|
import { type Accept, useDropzone } from 'react-dropzone';
|
|
15
15
|
import defaultLocale, {
|
|
16
16
|
type ImageUploadLocale,
|
|
17
17
|
} from './utils/defaultLocale.js';
|
|
18
18
|
|
|
19
19
|
type JsxDivProps = Omit<
|
|
20
|
-
JSX.IntrinsicElements['div'],
|
|
20
|
+
React.JSX.IntrinsicElements['div'],
|
|
21
21
|
'defaultValue' | 'onChange' | 'ref'
|
|
22
22
|
>;
|
|
23
23
|
export interface ImageUploadProps extends JsxDivProps, WithSize {
|