@elliemae/ds-uploader 3.21.0-rc.2 → 3.21.2-rc.1
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/cjs/propTypes.js
CHANGED
|
@@ -36,9 +36,6 @@ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
|
36
36
|
var import_ds_icons = require("@elliemae/ds-icons");
|
|
37
37
|
const propTypes = {
|
|
38
38
|
containerProps: import_ds_props_helpers.PropTypes.object.description("Set of Properties attached to the main container."),
|
|
39
|
-
validator: import_ds_props_helpers.PropTypes.func.description(
|
|
40
|
-
"Custom validator. It must return null if it's valid or an object `{ code: string, message: string }` if it's not."
|
|
41
|
-
),
|
|
42
39
|
maxFiles: import_ds_props_helpers.PropTypes.number.description("Number of files accepted."),
|
|
43
40
|
minSize: import_ds_props_helpers.PropTypes.number.description("Minimun file size accepted in bytes."),
|
|
44
41
|
maxSize: import_ds_props_helpers.PropTypes.number.description("Maximum file size accepted in bytes."),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/propTypes.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { UploadFile } from '@elliemae/ds-icons';\n/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */\n\nexport const propTypes = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container.'),\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAC1B,sBAA2B;AAGpB,MAAM,YAAY;AAAA,EACvB,gBAAgB,kCAAU,OAAO,YAAY,mDAAmD;AAAA,EAChG,
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { UploadFile } from '@elliemae/ds-icons';\n/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */\n\nexport const propTypes = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container.'),\n maxFiles: PropTypes.number.description('Number of files accepted.'),\n minSize: PropTypes.number.description('Minimun file size accepted in bytes.'),\n maxSize: PropTypes.number.description('Maximum file size accepted in bytes.'),\n onDropRejected: PropTypes.func.description(\n 'Cb called when files are rejected using maxFiles, minSize or maxSize properties.',\n ),\n disabled: PropTypes.bool.description('Disables the DSUploader.'),\n multiple: PropTypes.bool.description('Set to false to restrict multiple files selection/upload.'),\n accept: PropTypes.string.description('String containing the accepted MIME type for the DSUploader'),\n\n label: PropTypes.string.description('Uploader label.').defaultValue('Browse'),\n icon: PropTypes.element.description('Uploader left icon.').defaultValue(UploadFile),\n actions: PropTypes.shape({\n defaultAction: PropTypes.string,\n altAction: PropTypes.string,\n })\n .description('Uploader actions.')\n .defaultValue({ defaultAction: 'LOCAL DRIVE' }),\n defaultActionLabel: PropTypes.string.description('First action button label.'),\n showAltAction: PropTypes.bool.description('whether to show alternate action button or not.').defaultValue(true),\n altActionLabel: PropTypes.string.description('Second action button label.').defaultValue('LOCAL DRIVE'),\n dragActiveInstructionalText: PropTypes.string\n .description('informative text when user drags a file over the uploader zone.')\n .defaultValue('DROP FILES HERE'),\n dragActiveIcon: PropTypes.string.description('Icon when user drags a file over the uploader zone.'),\n acceptedTypesText: PropTypes.string\n .description('Information text to show what types are supported.')\n .defaultValue('JPG, JPEG, PNG, PDF'),\n disabledDefault: PropTypes.bool.description('Whether the default uploader is disabled or not.').defaultValue(false),\n disabledAlt: PropTypes.bool.description('Whether the alternative uploader is disabled or not.').defaultValue(false),\n onDefaultHandlerClick: PropTypes.func.description('First action button click handler.'),\n onAltHandlerClick: PropTypes.func.description('Second action button click handler.'),\n defaultActionTooltipText: PropTypes.string.description('shows tooltip in default action button.'),\n altActionTooltipText: PropTypes.string.description('Shows tooltip in alternate action button.'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
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kD,EAAE,aAAa,KAAK;AAAA,EAClH,aAAa,kCAAU,KAAK,YAAY,sDAAsD,EAAE,aAAa,KAAK;AAAA,EAClH,uBAAuB,kCAAU,KAAK,YAAY,oCAAoC;AAAA,EACtF,mBAAmB,kCAAU,KAAK,YAAY,qCAAqC;AAAA,EACnF,0BAA0B,kCAAU,OAAO,YAAY,yCAAyC;AAAA,EAChG,sBAAsB,kCAAU,OAAO,YAAY,2CAA2C;AAChG;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/propTypes.js
CHANGED
|
@@ -3,9 +3,6 @@ import { PropTypes } from "@elliemae/ds-props-helpers";
|
|
|
3
3
|
import { UploadFile } from "@elliemae/ds-icons";
|
|
4
4
|
const propTypes = {
|
|
5
5
|
containerProps: PropTypes.object.description("Set of Properties attached to the main container."),
|
|
6
|
-
validator: PropTypes.func.description(
|
|
7
|
-
"Custom validator. It must return null if it's valid or an object `{ code: string, message: string }` if it's not."
|
|
8
|
-
),
|
|
9
6
|
maxFiles: PropTypes.number.description("Number of files accepted."),
|
|
10
7
|
minSize: PropTypes.number.description("Minimun file size accepted in bytes."),
|
|
11
8
|
maxSize: PropTypes.number.description("Maximum file size accepted in bytes."),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/propTypes.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { UploadFile } from '@elliemae/ds-icons';\n/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */\n\nexport const propTypes = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container.'),\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAGpB,MAAM,YAAY;AAAA,EACvB,gBAAgB,UAAU,OAAO,YAAY,mDAAmD;AAAA,EAChG,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { UploadFile } from '@elliemae/ds-icons';\n/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */\n\nexport const propTypes = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container.'),\n maxFiles: PropTypes.number.description('Number of files accepted.'),\n minSize: PropTypes.number.description('Minimun file size accepted in bytes.'),\n maxSize: PropTypes.number.description('Maximum file size accepted in bytes.'),\n onDropRejected: PropTypes.func.description(\n 'Cb called when files are rejected using maxFiles, minSize or maxSize properties.',\n ),\n disabled: PropTypes.bool.description('Disables the DSUploader.'),\n multiple: PropTypes.bool.description('Set to false to restrict multiple files selection/upload.'),\n accept: PropTypes.string.description('String containing the accepted MIME type for the DSUploader'),\n\n label: PropTypes.string.description('Uploader label.').defaultValue('Browse'),\n icon: PropTypes.element.description('Uploader left icon.').defaultValue(UploadFile),\n actions: PropTypes.shape({\n defaultAction: PropTypes.string,\n altAction: PropTypes.string,\n })\n .description('Uploader actions.')\n .defaultValue({ defaultAction: 'LOCAL DRIVE' }),\n defaultActionLabel: PropTypes.string.description('First action button label.'),\n showAltAction: PropTypes.bool.description('whether to show alternate action button or not.').defaultValue(true),\n altActionLabel: PropTypes.string.description('Second action button label.').defaultValue('LOCAL DRIVE'),\n dragActiveInstructionalText: PropTypes.string\n .description('informative text when user drags a file over the uploader zone.')\n .defaultValue('DROP FILES HERE'),\n dragActiveIcon: PropTypes.string.description('Icon when user drags a file over the uploader zone.'),\n acceptedTypesText: PropTypes.string\n .description('Information text to show what types are supported.')\n .defaultValue('JPG, JPEG, PNG, PDF'),\n disabledDefault: PropTypes.bool.description('Whether the default uploader is disabled or not.').defaultValue(false),\n disabledAlt: PropTypes.bool.description('Whether the alternative uploader is disabled or not.').defaultValue(false),\n onDefaultHandlerClick: PropTypes.func.description('First action button click handler.'),\n onAltHandlerClick: PropTypes.func.description('Second action button click handler.'),\n defaultActionTooltipText: PropTypes.string.description('shows tooltip in default action button.'),\n altActionTooltipText: PropTypes.string.description('Shows tooltip in alternate action button.'),\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAGpB,MAAM,YAAY;AAAA,EACvB,gBAAgB,UAAU,OAAO,YAAY,mDAAmD;AAAA,EAChG,UAAU,UAAU,OAAO,YAAY,2BAA2B;AAAA,EAClE,SAAS,UAAU,OAAO,YAAY,sCAAsC;AAAA,EAC5E,SAAS,UAAU,OAAO,YAAY,sCAAsC;AAAA,EAC5E,gBAAgB,UAAU,KAAK;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,UAAU,UAAU,KAAK,YAAY,0BAA0B;AAAA,EAC/D,UAAU,UAAU,KAAK,YAAY,2DAA2D;AAAA,EAChG,QAAQ,UAAU,OAAO,YAAY,6DAA6D;AAAA,EAElG,OAAO,UAAU,OAAO,YAAY,iBAAiB,EAAE,aAAa,QAAQ;AAAA,EAC5E,MAAM,UAAU,QAAQ,YAAY,qBAAqB,EAAE,aAAa,UAAU;AAAA,EAClF,SAAS,UAAU,MAAM;AAAA,IACvB,eAAe,UAAU;AAAA,IACzB,WAAW,UAAU;AAAA,EACvB,CAAC,EACE,YAAY,mBAAmB,EAC/B,aAAa,EAAE,eAAe,cAAc,CAAC;AAAA,EAChD,oBAAoB,UAAU,OAAO,YAAY,4BAA4B;AAAA,EAC7E,eAAe,UAAU,KAAK,YAAY,iDAAiD,EAAE,aAAa,IAAI;AAAA,EAC9G,gBAAgB,UAAU,OAAO,YAAY,6BAA6B,EAAE,aAAa,aAAa;AAAA,EACtG,6BAA6B,UAAU,OACpC,YAAY,iEAAiE,EAC7E,aAAa,iBAAiB;AAAA,EACjC,gBAAgB,UAAU,OAAO,YAAY,qDAAqD;AAAA,EAClG,mBAAmB,UAAU,OAC1B,YAAY,oDAAoD,EAChE,aAAa,qBAAqB;AAAA,EACrC,iBAAiB,UAAU,KAAK,YAAY,kDAAkD,EAAE,aAAa,KAAK;AAAA,EAClH,aAAa,UAAU,KAAK,YAAY,sDAAsD,EAAE,aAAa,KAAK;AAAA,EAClH,uBAAuB,UAAU,KAAK,YAAY,oCAAoC;AAAA,EACtF,mBAAmB,UAAU,KAAK,YAAY,qCAAqC;AAAA,EACnF,0BAA0B,UAAU,OAAO,YAAY,yCAAyC;AAAA,EAChG,sBAAsB,UAAU,OAAO,YAAY,2CAA2C;AAChG;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DSUploaderPropsT } from './index.d';
|
|
3
2
|
declare const DSUploader: {
|
|
4
3
|
({ containerProps, label, icon: UploadFileIcon, defaultActionLabel, dragActiveInstructionalText, dragActiveIcon: DragActiveIcon, altActionLabel, acceptedTypesText, disabledDefault, disabledAlt, onDefaultHandlerClick, onAltHandlerClick, actions, showAltAction, defaultActionTooltipText, altActionTooltipText, ...dropzoneProps }: DSUploaderPropsT): JSX.Element;
|
|
@@ -8,7 +7,6 @@ declare const DSUploader: {
|
|
|
8
7
|
};
|
|
9
8
|
propTypes: {
|
|
10
9
|
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
11
|
-
validator: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
12
10
|
maxFiles: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
13
11
|
minSize: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
14
12
|
maxSize: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */
|
|
2
2
|
export declare const propTypes: {
|
|
3
3
|
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
4
|
-
validator: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
5
4
|
maxFiles: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
6
5
|
minSize: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
7
6
|
maxSize: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-uploader",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.2-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Uploader",
|
|
6
6
|
"files": [
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"react-dropzone": "~10.2.2",
|
|
47
|
-
"@elliemae/ds-button": "3.21.
|
|
48
|
-
"@elliemae/ds-classnames": "3.21.
|
|
49
|
-
"@elliemae/ds-
|
|
50
|
-
"@elliemae/ds-
|
|
51
|
-
"@elliemae/ds-
|
|
52
|
-
"@elliemae/ds-tooltip": "3.21.
|
|
53
|
-
"@elliemae/ds-utilities": "3.21.
|
|
47
|
+
"@elliemae/ds-button": "3.21.2-rc.1",
|
|
48
|
+
"@elliemae/ds-classnames": "3.21.2-rc.1",
|
|
49
|
+
"@elliemae/ds-icons": "3.21.2-rc.1",
|
|
50
|
+
"@elliemae/ds-props-helpers": "3.21.2-rc.1",
|
|
51
|
+
"@elliemae/ds-system": "3.21.2-rc.1",
|
|
52
|
+
"@elliemae/ds-tooltip": "3.21.2-rc.1",
|
|
53
|
+
"@elliemae/ds-utilities": "3.21.2-rc.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@testing-library/jest-dom": "~5.16.5",
|