@darajs/ui-components 1.5.3 → 1.5.4
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.
|
@@ -4,6 +4,8 @@ export interface UploadDropzoneProps {
|
|
|
4
4
|
accept?: string;
|
|
5
5
|
/** Standard react className property */
|
|
6
6
|
className?: string;
|
|
7
|
+
/** Determines if the paste event listener should be enabled, allowing for direct pasting of text as files. */
|
|
8
|
+
enablePaste?: boolean;
|
|
7
9
|
/** An onDrop handler that is called when a file is dropped or selected from the */
|
|
8
10
|
onDrop: (acceptedFiles: Array<File>) => void | Promise<void>;
|
|
9
11
|
/** Styling property */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone.d.ts","sourceRoot":"","sources":["../../src/dropzone/dropzone.tsx"],"names":[],"mappings":";AA4DA,MAAM,WAAW,mBAAmB;IAChC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,MAAM,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,uBAAuB;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"dropzone.d.ts","sourceRoot":"","sources":["../../src/dropzone/dropzone.tsx"],"names":[],"mappings":";AA4DA,MAAM,WAAW,mBAAmB;IAChC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8GAA8G;IAC9G,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mFAAmF;IACnF,MAAM,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,uBAAuB;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CA+B/D;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -58,6 +58,9 @@ const DropzoneMessage = styled.span `
|
|
|
58
58
|
function UploadDropzone(props) {
|
|
59
59
|
var _a;
|
|
60
60
|
useEffect(() => {
|
|
61
|
+
if (!props.enablePaste) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
61
64
|
const handlePaste = (ev) => {
|
|
62
65
|
const blob = new Blob([ev.clipboardData.getData('Text')], { type: 'text/plain' });
|
|
63
66
|
const file = new File([blob], 'pasted_data', { type: 'text/plain' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone.js","sourceRoot":"","sources":["../../src/dropzone/dropzone.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,2BAA2B,GAC7B,yNAAyN,CAAC;AAM9N,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAe;;;;;;;;aAQ7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;;yBAEtB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;;;;4B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
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
2
|
+
"name": "@darajs/ui-components",
|
|
3
|
+
"version": "1.5.4",
|
|
4
|
+
"description": "The core React UI kit for Dara",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"jsnext:main": "dist/index.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "rimraf dist && tsc",
|
|
10
|
+
"lint": "eslint src --ext .tsx --max-warnings 0 && stylelint './src/**/*.tsx'",
|
|
11
|
+
"lint:fix": "eslint src --ext .tsx --max-warnings 0 --fix",
|
|
12
|
+
"package": "yarn build && yarn publish --no-git-tag-version",
|
|
13
|
+
"test-watch": "jest --watch",
|
|
14
|
+
"test": "jest",
|
|
15
|
+
"storybook": "start-storybook -p 6006",
|
|
16
|
+
"build-storybook": "build-storybook"
|
|
17
|
+
},
|
|
18
|
+
"author": "Krzysztof Bielikowicz <krzysztof@causalens.com>",
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"prettier": "@darajs/prettier-config",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@babel/core": "^7.15.5",
|
|
23
|
+
"@babel/preset-env": "^7.15.6",
|
|
24
|
+
"@babel/preset-react": "^7.14.5",
|
|
25
|
+
"@babel/preset-typescript": "^7.15.0",
|
|
26
|
+
"@darajs/eslint-config": "~1.5.4",
|
|
27
|
+
"@darajs/prettier-config": "~1.5.4",
|
|
28
|
+
"@darajs/stylelint-config": "~1.5.4",
|
|
29
|
+
"@storybook/addon-a11y": "^6.5.16",
|
|
30
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
31
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
32
|
+
"@storybook/addon-links": "^6.5.16",
|
|
33
|
+
"@storybook/addon-styling": "^0.3.2",
|
|
34
|
+
"@storybook/builder-webpack5": "^6.5.16",
|
|
35
|
+
"@storybook/manager-webpack5": "^6.5.16",
|
|
36
|
+
"@storybook/react": "^6.5.16",
|
|
37
|
+
"@storybook/theming": "^6.5.16",
|
|
38
|
+
"@testing-library/dom": "^9.3.0",
|
|
39
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
40
|
+
"@testing-library/react": "^14.0.0",
|
|
41
|
+
"@testing-library/user-event": "^13.2.1",
|
|
42
|
+
"@types/jest": "^27.0.0",
|
|
43
|
+
"@types/lodash": "^4.14.155",
|
|
44
|
+
"@types/react": "^18.0",
|
|
45
|
+
"@types/react-collapse": "^5.0.1",
|
|
46
|
+
"@types/react-datepicker": "^4.0.0",
|
|
47
|
+
"@types/react-dom": "^18.0",
|
|
48
|
+
"@types/react-table": "^7.0.19",
|
|
49
|
+
"@types/react-virtualized-auto-sizer": "^1.0.0",
|
|
50
|
+
"@types/react-window": "^1.8.2",
|
|
51
|
+
"@types/react-window-infinite-loader": "^1.0.3",
|
|
52
|
+
"@types/shortid": "0.0.29",
|
|
53
|
+
"@types/styled-components": "^5.1.26",
|
|
54
|
+
"babel-jest": "^29.5.0",
|
|
55
|
+
"babel-loader": "^8.2.2",
|
|
56
|
+
"babel-plugin-styled-components": "^1.13.2",
|
|
57
|
+
"eslint": "^7.2.0",
|
|
58
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
59
|
+
"jest": "^29.5.0",
|
|
60
|
+
"jest-css-modules": "^2.1.0",
|
|
61
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
62
|
+
"prettier": "2.4.1",
|
|
63
|
+
"react-docgen-typescript-plugin": "^1.0.5",
|
|
64
|
+
"react-test-renderer": "^17.0",
|
|
65
|
+
"rimraf": "^3.0.2",
|
|
66
|
+
"storybook-dark-mode": "^2.1.1",
|
|
67
|
+
"stylelint": "^13.5.0",
|
|
68
|
+
"typescript": "^5.0.4"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@darajs/styled-components": "~1.5.4",
|
|
72
|
+
"@darajs/ui-icons": "~1.5.4",
|
|
73
|
+
"@darajs/ui-utils": "~1.5.4",
|
|
74
|
+
"@fortawesome/free-regular-svg-icons": "~6.4.0",
|
|
75
|
+
"@fortawesome/free-solid-svg-icons": "~6.4.0",
|
|
76
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
77
|
+
"@popperjs/core": "2.4.0",
|
|
78
|
+
"@tippyjs/react": "4.1.0",
|
|
79
|
+
"date-fns": "2.9.0",
|
|
80
|
+
"downshift": "^7.0.0",
|
|
81
|
+
"lodash": "4.17.21",
|
|
82
|
+
"memoize-one": "^6.0.0",
|
|
83
|
+
"nanoid": "^3.3.0",
|
|
84
|
+
"polished": "3.6.4",
|
|
85
|
+
"react": "^18.0",
|
|
86
|
+
"react-collapse": "^5.1.1",
|
|
87
|
+
"react-compound-slider": "3.3.0",
|
|
88
|
+
"react-datepicker": "4.8.0",
|
|
89
|
+
"react-dom": "^18.0",
|
|
90
|
+
"react-dropzone": "11.0.1",
|
|
91
|
+
"react-popper": "2.2.5",
|
|
92
|
+
"react-table": "7.7.0",
|
|
93
|
+
"react-table-sticky": "^1.1.3",
|
|
94
|
+
"react-virtualized-auto-sizer": "1.0.6",
|
|
95
|
+
"react-window": "1.8.6",
|
|
96
|
+
"shortid": "2.2.15",
|
|
97
|
+
"tippy.js": "6.2.6"
|
|
98
|
+
},
|
|
99
|
+
"files": [
|
|
100
|
+
"dist"
|
|
101
|
+
],
|
|
102
|
+
"publishConfig": {
|
|
103
|
+
"access": "public"
|
|
104
|
+
},
|
|
105
|
+
"gitHead": "010461f50cc91b4cc126f27974750e47f6c130a3"
|
|
106
106
|
}
|