@os-design/upload 1.0.261 → 1.0.263
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/ImageUpload/index.d.ts +1 -1
- package/dist/ImageUpload/index.d.ts.map +1 -1
- package/dist/ImageUpload/index.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +7 -7
- package/src/ImageUpload/index.tsx +3 -1
- package/src/index.ts +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WithSize } from '@os-design/styles';
|
|
2
2
|
import { type Accept } from 'react-dropzone';
|
|
3
|
-
import { type ImageUploadLocale } from './utils/defaultLocale';
|
|
3
|
+
import { type ImageUploadLocale } from './utils/defaultLocale.js';
|
|
4
4
|
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
5
5
|
export interface ImageUploadProps extends JsxDivProps, WithSize {
|
|
6
6
|
/**
|
|
@@ -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;AAQ3B,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAC1D,OAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ImageUpload/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAC1D,OAAsB,EACpB,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAElC,KAAK,WAAW,GAAG,IAAI,CACrB,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAC5B,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;;SAsKd,MAAI,WACN;wHAjJH,CAAC;AAgGF;;GAEG;AACH,QAAA,MAAM,WAAW,6GAiGhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { ThemeOverrider, clr } from '@os-design/theming';
|
|
|
7
7
|
import { isTouchDevice, omitEmotionProps, useForwardedState } from '@os-design/utils';
|
|
8
8
|
import { forwardRef, useCallback, useMemo } from 'react';
|
|
9
9
|
import { useDropzone } from 'react-dropzone';
|
|
10
|
-
import defaultLocale from
|
|
10
|
+
import defaultLocale from './utils/defaultLocale.js';
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const overlayHasImageStyles = p => p.hasImage && css`
|
|
13
13
|
background-color: hsla(0, 0%, 0%, ${p.theme.imageUploadOverlayOpacity});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as
|
|
3
|
-
export * from './
|
|
4
|
-
export
|
|
1
|
+
export { default as ImageUpload } from './ImageUpload/index.js';
|
|
2
|
+
export { default as ImageUploadSkeleton } from './ImageUploadSkeleton/index.js';
|
|
3
|
+
export * from './ImageUpload/index.js';
|
|
4
|
+
export * from './ImageUploadSkeleton/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as
|
|
3
|
-
export * from
|
|
4
|
-
export
|
|
1
|
+
export { default as ImageUpload } from './ImageUpload/index.js';
|
|
2
|
+
export { default as ImageUploadSkeleton } from './ImageUploadSkeleton/index.js';
|
|
3
|
+
export * from './ImageUpload/index.js';
|
|
4
|
+
export * from './ImageUploadSkeleton/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os-design/upload",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.263",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": "git@gitlab.com:os-team/libs/os-design.git",
|
|
6
6
|
"type": "module",
|
|
@@ -29,11 +29,11 @@
|
|
|
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.
|
|
32
|
+
"@os-design/core": "^1.0.260",
|
|
33
|
+
"@os-design/icons": "^1.0.63",
|
|
34
|
+
"@os-design/styles": "^1.0.60",
|
|
35
|
+
"@os-design/theming": "^1.0.56",
|
|
36
|
+
"@os-design/utils": "^1.0.80",
|
|
37
37
|
"react-dropzone": "^14.3.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": ">=18",
|
|
47
47
|
"react-dom": ">=18"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "73a0cea6ed693ca28f40da565cb48c3f5e291a4a"
|
|
50
50
|
}
|
|
@@ -16,7 +16,9 @@ import {
|
|
|
16
16
|
} from '@os-design/utils';
|
|
17
17
|
import { forwardRef, useCallback, useMemo } from 'react';
|
|
18
18
|
import { type Accept, useDropzone } from 'react-dropzone';
|
|
19
|
-
import defaultLocale, {
|
|
19
|
+
import defaultLocale, {
|
|
20
|
+
type ImageUploadLocale,
|
|
21
|
+
} from './utils/defaultLocale.js';
|
|
20
22
|
|
|
21
23
|
type JsxDivProps = Omit<
|
|
22
24
|
JSX.IntrinsicElements['div'],
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
export { default as ImageUpload } from './ImageUpload/index.js';
|
|
2
|
+
export { default as ImageUploadSkeleton } from './ImageUploadSkeleton/index.js';
|
|
3
|
+
|
|
4
|
+
export * from './ImageUpload/index.js';
|
|
5
|
+
export * from './ImageUploadSkeleton/index.js';
|