@elliemae/ds-dropzone 3.22.0-next.30
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/DSDropzone.js +73 -0
- package/dist/cjs/DSDropzone.js.map +7 -0
- package/dist/cjs/config/useDSDropzone.js +85 -0
- package/dist/cjs/config/useDSDropzone.js.map +7 -0
- package/dist/cjs/config/useValidateProps.js +40 -0
- package/dist/cjs/config/useValidateProps.js.map +7 -0
- package/dist/cjs/constants/index.js +51 -0
- package/dist/cjs/constants/index.js.map +7 -0
- package/dist/cjs/index.js +43 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/parts/DSActivezone/DSActivezone.js +89 -0
- package/dist/cjs/parts/DSActivezone/DSActivezone.js.map +7 -0
- package/dist/cjs/parts/DSActivezone/config/useActivezone.js +69 -0
- package/dist/cjs/parts/DSActivezone/config/useActivezone.js.map +7 -0
- package/dist/cjs/parts/DSActivezone/config/useValidateProps.js +40 -0
- package/dist/cjs/parts/DSActivezone/config/useValidateProps.js.map +7 -0
- package/dist/cjs/parts/DSActivezone/index.js +37 -0
- package/dist/cjs/parts/DSActivezone/index.js.map +7 -0
- package/dist/cjs/parts/DSActivezone/react-desc-prop-types.js +50 -0
- package/dist/cjs/parts/DSActivezone/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/react-desc-prop-types.js +125 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/styled.js +78 -0
- package/dist/cjs/styled.js.map +7 -0
- package/dist/esm/DSDropzone.js +43 -0
- package/dist/esm/DSDropzone.js.map +7 -0
- package/dist/esm/config/useDSDropzone.js +55 -0
- package/dist/esm/config/useDSDropzone.js.map +7 -0
- package/dist/esm/config/useValidateProps.js +10 -0
- package/dist/esm/config/useValidateProps.js.map +7 -0
- package/dist/esm/constants/index.js +21 -0
- package/dist/esm/constants/index.js.map +7 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/parts/DSActivezone/DSActivezone.js +59 -0
- package/dist/esm/parts/DSActivezone/DSActivezone.js.map +7 -0
- package/dist/esm/parts/DSActivezone/config/useActivezone.js +39 -0
- package/dist/esm/parts/DSActivezone/config/useActivezone.js.map +7 -0
- package/dist/esm/parts/DSActivezone/config/useValidateProps.js +10 -0
- package/dist/esm/parts/DSActivezone/config/useValidateProps.js.map +7 -0
- package/dist/esm/parts/DSActivezone/index.js +7 -0
- package/dist/esm/parts/DSActivezone/index.js.map +7 -0
- package/dist/esm/parts/DSActivezone/react-desc-prop-types.js +20 -0
- package/dist/esm/parts/DSActivezone/react-desc-prop-types.js.map +7 -0
- package/dist/esm/react-desc-prop-types.js +95 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/esm/styled.js +48 -0
- package/dist/esm/styled.js.map +7 -0
- package/dist/types/DSDropzone.d.ts +5 -0
- package/dist/types/config/useDSDropzone.d.ts +16 -0
- package/dist/types/config/useValidateProps.d.ts +3 -0
- package/dist/types/constants/index.d.ts +12 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/parts/DSActivezone/DSActivezone.d.ts +5 -0
- package/dist/types/parts/DSActivezone/config/useActivezone.d.ts +8 -0
- package/dist/types/parts/DSActivezone/config/useValidateProps.d.ts +3 -0
- package/dist/types/parts/DSActivezone/index.d.ts +1 -0
- package/dist/types/parts/DSActivezone/react-desc-prop-types.d.ts +20 -0
- package/dist/types/parts/DSActivezone/tests/DSActivezone.test.d.ts +1 -0
- package/dist/types/react-desc-prop-types.d.ts +19 -0
- package/dist/types/styled.d.ts +17 -0
- package/dist/types/tests/DSDropzone.test.d.ts +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSActivezone/index.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export { DSActivezone, DSActivezoneWithSchema } from './DSActivezone.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAqD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var react_desc_prop_types_exports = {};
|
|
30
|
+
__export(react_desc_prop_types_exports, {
|
|
31
|
+
DSActivezonePropTypes: () => DSActivezonePropTypes,
|
|
32
|
+
DSActivezonePropTypesSchema: () => DSActivezonePropTypesSchema,
|
|
33
|
+
defaultProps: () => defaultProps
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
|
+
var import_ds_icons = require("@elliemae/ds-icons");
|
|
39
|
+
const defaultProps = {
|
|
40
|
+
Icon: import_ds_icons.UploadFile,
|
|
41
|
+
label: "DROP FILES HERE"
|
|
42
|
+
};
|
|
43
|
+
const DSActivezonePropTypes = {
|
|
44
|
+
...import_ds_props_helpers.globalAttributesPropTypes,
|
|
45
|
+
...import_ds_props_helpers.xstyledPropTypes,
|
|
46
|
+
Icon: import_ds_props_helpers.PropTypes.func.description("Custom Icon").defaultValue("UploadFile"),
|
|
47
|
+
label: import_ds_props_helpers.PropTypes.string.description("Active zone label").defaultValue(defaultProps.label)
|
|
48
|
+
};
|
|
49
|
+
const DSActivezonePropTypesSchema = DSActivezonePropTypes;
|
|
50
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSActivezone/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\n/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { SvgIconT } from '@elliemae/ds-icons';\nimport { UploadFile } from '@elliemae/ds-icons';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSActivezoneT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n Icon: React.ComponentType<SvgIconT.Props>;\n label: string;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSActivezoneT.DefaultProps = {\n Icon: UploadFile,\n label: 'DROP FILES HERE',\n};\n\nexport const DSActivezonePropTypes: DSPropTypesSchema<DSActivezoneT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n Icon: PropTypes.func.description('Custom Icon').defaultValue('UploadFile'),\n label: PropTypes.string.description('Active zone label').defaultValue(defaultProps.label),\n};\n\nexport const DSActivezonePropTypesSchema = DSActivezonePropTypes as unknown as WeakValidationMap<DSActivezoneT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AAEvE,sBAA2B;AA4BpB,MAAM,eAA2C;AAAA,EACtD,MAAM;AAAA,EACN,OAAO;AACT;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,kCAAU,KAAK,YAAY,aAAa,EAAE,aAAa,YAAY;AAAA,EACzE,OAAO,kCAAU,OAAO,YAAY,mBAAmB,EAAE,aAAa,aAAa,KAAK;AAC1F;AAEO,MAAM,8BAA8B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var react_desc_prop_types_exports = {};
|
|
30
|
+
__export(react_desc_prop_types_exports, {
|
|
31
|
+
DSDropzonePropTypes: () => DSDropzonePropTypes,
|
|
32
|
+
defaultProps: () => defaultProps
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
37
|
+
const defaultProps = {
|
|
38
|
+
dropConfig: {}
|
|
39
|
+
};
|
|
40
|
+
const DSDropzonePropTypes = {
|
|
41
|
+
...import_ds_props_helpers.globalAttributesPropTypes,
|
|
42
|
+
...import_ds_props_helpers.xstyledPropTypes,
|
|
43
|
+
children: import_ds_props_helpers.PropTypes.any,
|
|
44
|
+
hasError: import_ds_props_helpers.PropTypes.bool.description("Show error border color"),
|
|
45
|
+
dropConfig: import_ds_props_helpers.PropTypes.shape({
|
|
46
|
+
accept: import_ds_props_helpers.PropTypes.objectOf(import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string)).description(`
|
|
47
|
+
Set accepted file types.
|
|
48
|
+
Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
49
|
+
Keep in mind that mime type determination is not reliable across platforms. CSV files,
|
|
50
|
+
for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
51
|
+
Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
52
|
+
`),
|
|
53
|
+
multiple: import_ds_props_helpers.PropTypes.bool.description("Allow drag 'n' drop (or selection from the file dialog) of multiple files"),
|
|
54
|
+
preventDropOnDocument: import_ds_props_helpers.PropTypes.bool.description(
|
|
55
|
+
"If false, allow dropped items to take over the current browser window"
|
|
56
|
+
),
|
|
57
|
+
noClick: import_ds_props_helpers.PropTypes.bool.description("If true, disables click to open the native file selection dialog"),
|
|
58
|
+
noKeyboard: import_ds_props_helpers.PropTypes.bool.description(`
|
|
59
|
+
If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
60
|
+
Note that it also stops tracking the focus state.`),
|
|
61
|
+
noDrag: import_ds_props_helpers.PropTypes.bool.description("If true, disables drag&drop"),
|
|
62
|
+
noDragEventsBubbling: import_ds_props_helpers.PropTypes.bool.description("If true, stops drag event propagation to parents"),
|
|
63
|
+
minSize: import_ds_props_helpers.PropTypes.number.description("Minimum file size (in bytes)"),
|
|
64
|
+
maxSize: import_ds_props_helpers.PropTypes.number.description("Maximum file size (in bytes)"),
|
|
65
|
+
maxFiles: import_ds_props_helpers.PropTypes.number.description(`
|
|
66
|
+
Maximum accepted number of files
|
|
67
|
+
The default value is 0 which means there is no limitation to how many files are accepted.
|
|
68
|
+
`),
|
|
69
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description("Enable/disable the dropzone"),
|
|
70
|
+
getFilesFromEvent: import_ds_props_helpers.PropTypes.func.description(`
|
|
71
|
+
Use this to provide a custom file aggregator
|
|
72
|
+
@param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
73
|
+
`),
|
|
74
|
+
onFileDialogCancel: import_ds_props_helpers.PropTypes.func.description("Cb for when closing the file dialog with no selection"),
|
|
75
|
+
onFileDialogOpen: import_ds_props_helpers.PropTypes.func.description("Cb for when opening the file dialog"),
|
|
76
|
+
useFsAccessApi: import_ds_props_helpers.PropTypes.bool.description(`
|
|
77
|
+
Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
78
|
+
to open the file picker instead of using an <input type="file"> click event.
|
|
79
|
+
`),
|
|
80
|
+
onDragEnter: import_ds_props_helpers.PropTypes.func.description(`
|
|
81
|
+
Cb for when the dragenter event occurs.
|
|
82
|
+
@param {DragEvent} event`),
|
|
83
|
+
onDragLeave: import_ds_props_helpers.PropTypes.func.description(`
|
|
84
|
+
Cb for when the dragleave event occurs
|
|
85
|
+
@param {DragEvent} event
|
|
86
|
+
`),
|
|
87
|
+
onDragOver: import_ds_props_helpers.PropTypes.func.description(`
|
|
88
|
+
Cb for when the dragover event occurs
|
|
89
|
+
@param {DragEvent} event
|
|
90
|
+
`),
|
|
91
|
+
onDrop: import_ds_props_helpers.PropTypes.func.description(`
|
|
92
|
+
Cb for when the drop event occurs.
|
|
93
|
+
onDrop will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
|
|
94
|
+
For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
|
|
95
|
+
@param {File[]} acceptedFiles
|
|
96
|
+
@param {FileRejection[]} fileRejections
|
|
97
|
+
@param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
98
|
+
`),
|
|
99
|
+
onDropAccepted: import_ds_props_helpers.PropTypes.func.description(`
|
|
100
|
+
Cb for when the drop event occurs.
|
|
101
|
+
Note that if no files are accepted, this callback is not invoked.
|
|
102
|
+
@param {File[]} files
|
|
103
|
+
@param {(DragEvent|Event)} event
|
|
104
|
+
`),
|
|
105
|
+
onDropRejected: import_ds_props_helpers.PropTypes.func.description(`
|
|
106
|
+
Cb for when the drop event occurs.
|
|
107
|
+
Note that if no files are rejected, this callback is not invoked.
|
|
108
|
+
@param {FileRejection[]} fileRejections
|
|
109
|
+
@param {(DragEvent|Event)} event
|
|
110
|
+
`),
|
|
111
|
+
onError: import_ds_props_helpers.PropTypes.func.description(`
|
|
112
|
+
Cb for when there's some error from any of the promises.
|
|
113
|
+
@param {Error} error
|
|
114
|
+
`),
|
|
115
|
+
validator: import_ds_props_helpers.PropTypes.func.description(`
|
|
116
|
+
Custom validation function. It must return null if there's no errors.
|
|
117
|
+
@param {File} file
|
|
118
|
+
@returns {FileError|FileError[]|null}
|
|
119
|
+
`)
|
|
120
|
+
}).description(`react-dropzone options, see https://react-dropzone.js.org/ for more information V14.2.3`).defaultValue({})
|
|
121
|
+
// onSomethingEvent: PropTypes.func
|
|
122
|
+
// .description('some example of function, required if something is not foo')
|
|
123
|
+
// .signature('(( newVal: string, e: React.SyntheticEvent, metaInfo: Record<string,unknown> ) => void )'),
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DropzoneOptions } from 'react-dropzone';\n\nexport declare namespace DSDropzoneT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps {\n dropConfig?: DropzoneOptions;\n hasError?: boolean;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export type ExampleState = '0' | '1';\n}\n\nexport const defaultProps: DSDropzoneT.DefaultProps = {\n dropConfig: {},\n};\n\nexport const DSDropzonePropTypes: DSPropTypesSchema<DSDropzoneT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n children: PropTypes.any,\n hasError: PropTypes.bool.description('Show error border color'),\n dropConfig: PropTypes.shape({\n accept: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)).description(`\n Set accepted file types.\n Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.\n Keep in mind that mime type determination is not reliable across platforms. CSV files,\n for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).\n `),\n multiple: PropTypes.bool.description(\"Allow drag 'n' drop (or selection from the file dialog) of multiple files\"),\n\n preventDropOnDocument: PropTypes.bool.description(\n 'If false, allow dropped items to take over the current browser window',\n ),\n noClick: PropTypes.bool.description('If true, disables click to open the native file selection dialog'),\n noKeyboard: PropTypes.bool.description(`\n If true, disables SPACE/ENTER to open the native file selection dialog.\n Note that it also stops tracking the focus state.`),\n noDrag: PropTypes.bool.description('If true, disables drag&drop'),\n noDragEventsBubbling: PropTypes.bool.description('If true, stops drag event propagation to parents'),\n minSize: PropTypes.number.description('Minimum file size (in bytes)'),\n maxSize: PropTypes.number.description('Maximum file size (in bytes)'),\n maxFiles: PropTypes.number.description(`\n Maximum accepted number of files\n The default value is 0 which means there is no limitation to how many files are accepted.\n `),\n disabled: PropTypes.bool.description('Enable/disable the dropzone'),\n getFilesFromEvent: PropTypes.func.description(`\n Use this to provide a custom file aggregator\n @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n `),\n onFileDialogCancel: PropTypes.func.description('Cb for when closing the file dialog with no selection'),\n onFileDialogOpen: PropTypes.func.description('Cb for when opening the file dialog'),\n useFsAccessApi: PropTypes.bool.description(`\n Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API\n to open the file picker instead of using an <input type=\"file\"> click event.\n `),\n onDragEnter: PropTypes.func.description(`\n Cb for when the dragenter event occurs.\n @param {DragEvent} event`),\n onDragLeave: PropTypes.func.description(`\n Cb for when the dragleave event occurs\n @param {DragEvent} event\n `),\n onDragOver: PropTypes.func.description(`\n Cb for when the dragover event occurs\n @param {DragEvent} event\n `),\n onDrop: PropTypes.func.description(`\n Cb for when the drop event occurs.\n onDrop will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library: \n @param {File[]} acceptedFiles\n @param {FileRejection[]} fileRejections\n @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n `),\n onDropAccepted: PropTypes.func.description(`\n Cb for when the drop event occurs.\n Note that if no files are accepted, this callback is not invoked.\n @param {File[]} files\n @param {(DragEvent|Event)} event\n `),\n onDropRejected: PropTypes.func.description(`\n Cb for when the drop event occurs.\n Note that if no files are rejected, this callback is not invoked. \n @param {FileRejection[]} fileRejections\n @param {(DragEvent|Event)} event\n `),\n onError: PropTypes.func.description(`\n Cb for when there's some error from any of the promises.\n @param {Error} error\n `),\n validator: PropTypes.func.description(`\n Custom validation function. It must return null if there's no errors.\n @param {File} file\n @returns {FileError|FileError[]|null}\n `),\n })\n .description(`react-dropzone options, see https://react-dropzone.js.org/ for more information V14.2.3`)\n .defaultValue({}),\n // onSomethingEvent: PropTypes.func\n // .description('some example of function, required if something is not foo')\n // .signature('(( newVal: string, e: React.SyntheticEvent, metaInfo: Record<string,unknown> ) => void )'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAuE;AA8BhE,MAAM,eAAyC;AAAA,EACpD,YAAY,CAAC;AACf;AAEO,MAAM,sBAA4D;AAAA,EACvE,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,kCAAU;AAAA,EACpB,UAAU,kCAAU,KAAK,YAAY,yBAAyB;AAAA,EAC9D,YAAY,kCAAU,MAAM;AAAA,IAC1B,QAAQ,kCAAU,SAAS,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAM7E;AAAA,IACC,UAAU,kCAAU,KAAK,YAAY,2EAA2E;AAAA,IAEhH,uBAAuB,kCAAU,KAAK;AAAA,MACpC;AAAA,IACF;AAAA,IACA,SAAS,kCAAU,KAAK,YAAY,kEAAkE;AAAA,IACtG,YAAY,kCAAU,KAAK,YAAY;AAAA;AAAA,oDAES;AAAA,IAChD,QAAQ,kCAAU,KAAK,YAAY,6BAA6B;AAAA,IAChE,sBAAsB,kCAAU,KAAK,YAAY,kDAAkD;AAAA,IACnG,SAAS,kCAAU,OAAO,YAAY,8BAA8B;AAAA,IACpE,SAAS,kCAAU,OAAO,YAAY,8BAA8B;AAAA,IACpE,UAAU,kCAAU,OAAO,YAAY;AAAA;AAAA;AAAA,GAGxC;AAAA,IACC,UAAU,kCAAU,KAAK,YAAY,6BAA6B;AAAA,IAClE,mBAAmB,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA,GAG/C;AAAA,IACC,oBAAoB,kCAAU,KAAK,YAAY,uDAAuD;AAAA,IACtG,kBAAkB,kCAAU,KAAK,YAAY,qCAAqC;AAAA,IAClF,gBAAgB,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA,GAG5C;AAAA,IACC,aAAa,kCAAU,KAAK,YAAY;AAAA;AAAA,2BAEjB;AAAA,IACvB,aAAa,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA,GAGzC;AAAA,IACC,YAAY,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA,GAGxC;AAAA,IACC,QAAQ,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAOpC;AAAA,IACC,gBAAgB,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA,GAK5C;AAAA,IACC,gBAAgB,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA,GAK5C;AAAA,IACC,SAAS,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA,GAGrC;AAAA,IACC,WAAW,kCAAU,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA,KAIrC;AAAA,EACH,CAAC,EACE,YAAY,yFAAyF,EACrG,aAAa,CAAC,CAAC;AAAA;AAAA;AAAA;AAIpB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var styled_exports = {};
|
|
30
|
+
__export(styled_exports, {
|
|
31
|
+
StyledDropZone: () => StyledDropZone
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(styled_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
36
|
+
var import_ds_grid = require("@elliemae/ds-grid");
|
|
37
|
+
var import_constants = require("./constants/index.js");
|
|
38
|
+
const borderImage = (color) => `url("data:image/svg+xml,%3csvg aria-hidden='true' width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='${import_constants.DROP_ZONE_CONSTANTS.BORDER_RADIUS}' ry='${import_constants.DROP_ZONE_CONSTANTS.BORDER_RADIUS}' stroke='${encodeURIComponent(color)}' stroke-width='${import_constants.DROP_ZONE_CONSTANTS.BORDER_WIDTH}' stroke-dasharray='4 6' stroke-dashoffset='0' stroke-linecap='round'/%3e%3c/svg%3e")`;
|
|
39
|
+
const StyledDropZone = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSDropzoneName, slot: import_constants.DROPZONE_SLOTS.WRAPPER })`
|
|
40
|
+
position: relative;
|
|
41
|
+
border-radius: ${import_constants.DROP_ZONE_CONSTANTS.BORDER_RADIUS}px;
|
|
42
|
+
|
|
43
|
+
background-color: ${(props) => props.theme.colors.neutral["000"]};
|
|
44
|
+
background-image: ${(props) => {
|
|
45
|
+
if (props.disabled) {
|
|
46
|
+
return borderImage(props.theme.colors.neutral[400]);
|
|
47
|
+
}
|
|
48
|
+
if (props.isDragActive) {
|
|
49
|
+
return borderImage(props.theme.colors.brand[600]);
|
|
50
|
+
}
|
|
51
|
+
if (props.isDragReject || props.hasError) {
|
|
52
|
+
return borderImage(props.theme.colors.danger[900]);
|
|
53
|
+
}
|
|
54
|
+
if (props.isFocused) {
|
|
55
|
+
return borderImage(props.theme.colors.brand[600]);
|
|
56
|
+
}
|
|
57
|
+
return borderImage(props.theme.colors.neutral[400]);
|
|
58
|
+
}};
|
|
59
|
+
padding: ${(props) => props.theme.space.xs} 1.8461538461538463rem;
|
|
60
|
+
&:hover {
|
|
61
|
+
background-image: ${(props) => {
|
|
62
|
+
if (props.disabled) {
|
|
63
|
+
return borderImage(props.theme.colors.neutral[400]);
|
|
64
|
+
}
|
|
65
|
+
if (props.isDragActive) {
|
|
66
|
+
return borderImage(props.theme.colors.brand[600]);
|
|
67
|
+
}
|
|
68
|
+
if (props.isDragReject) {
|
|
69
|
+
return borderImage(props.theme.colors.danger[900]);
|
|
70
|
+
}
|
|
71
|
+
if (props.isFocused) {
|
|
72
|
+
return borderImage(props.theme.colors.brand[600]);
|
|
73
|
+
}
|
|
74
|
+
return borderImage(props.theme.colors.brand[600]);
|
|
75
|
+
}};
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
78
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DROPZONE_SLOTS, DROP_ZONE_CONSTANTS, DSDropzoneName } from './constants/index.js';\nimport type { DropzoneState } from 'react-dropzone';\n\n// const borderImageCreator = (color: any, stroke: number) =>\n// encodeURIComponent(\n// `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\"><rect width=\"100%\" height=\"100%\" fill=\"none\" rx=\"8\" ry=\"8\" stroke=\"${color}\" stroke-width=\"${stroke}\" stroke-dasharray=\"6, 14\" stroke-dashoffset=\"0\" stroke-linecap=\"square\"/></svg>`,\n// );\n\n// const handleBorder = (props: StyledProps<DSDropzoneT.InternalProps>): string => {\n// const { isDragAccept, isDragReject, isFocused } = props;\n// console.log(props);\n// if (isDragAccept) return borderImageCreator(props.theme.colors.brand[600], 2);\n// if (isDragReject) return borderImageCreator(props.theme.colors.danger[900], 2);\n// return borderImageCreator(props.theme.colors.neutral[400], 2);\n// };\n\nconst borderImage = (color: string) =>\n `url(\"data:image/svg+xml,%3csvg aria-hidden='true' width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='${\n DROP_ZONE_CONSTANTS.BORDER_RADIUS\n }' ry='${DROP_ZONE_CONSTANTS.BORDER_RADIUS}' stroke='${encodeURIComponent(color)}' stroke-width='${\n DROP_ZONE_CONSTANTS.BORDER_WIDTH\n }' stroke-dasharray='4 6' stroke-dashoffset='0' stroke-linecap='round'/%3e%3c/svg%3e\")`;\n\nexport const StyledDropZone = styled(Grid, { name: DSDropzoneName, slot: DROPZONE_SLOTS.WRAPPER })<\n DropzoneState & {\n disabled: boolean;\n hasError: boolean;\n }\n>`\n position: relative;\n border-radius: ${DROP_ZONE_CONSTANTS.BORDER_RADIUS}px;\n\n background-color: ${(props) => props.theme.colors.neutral['000']};\n background-image: ${(props) => {\n if (props.disabled) {\n return borderImage(props.theme.colors.neutral[400]);\n }\n if (props.isDragActive) {\n return borderImage(props.theme.colors.brand[600]);\n }\n if (props.isDragReject || props.hasError) {\n return borderImage(props.theme.colors.danger[900]);\n }\n if (props.isFocused) {\n return borderImage(props.theme.colors.brand[600]);\n }\n return borderImage(props.theme.colors.neutral[400]);\n }};\n padding: ${(props) => props.theme.space.xs} 1.8461538461538463rem;\n &:hover {\n background-image: ${(props) => {\n if (props.disabled) {\n return borderImage(props.theme.colors.neutral[400]);\n }\n if (props.isDragActive) {\n return borderImage(props.theme.colors.brand[600]);\n }\n if (props.isDragReject) {\n return borderImage(props.theme.colors.danger[900]);\n }\n if (props.isFocused) {\n return borderImage(props.theme.colors.brand[600]);\n }\n return borderImage(props.theme.colors.brand[600]);\n }};\n }\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,qBAAqB;AACrB,uBAAoE;AAgBpE,MAAM,cAAc,CAAC,UACnB,gLACE,qCAAoB,sBACb,qCAAoB,0BAA0B,mBAAmB,KAAK,oBAC7E,qCAAoB;AAGjB,MAAM,qBAAiB,yBAAO,qBAAM,EAAE,MAAM,iCAAgB,MAAM,gCAAe,QAAQ,CAAC;AAAA;AAAA,mBAO9E,qCAAoB;AAAA;AAAA,sBAEjB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA,sBAC3C,CAAC,UAAU;AAC7B,MAAI,MAAM,UAAU;AAClB,WAAO,YAAY,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,EACpD;AACA,MAAI,MAAM,cAAc;AACtB,WAAO,YAAY,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA,EAClD;AACA,MAAI,MAAM,gBAAgB,MAAM,UAAU;AACxC,WAAO,YAAY,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA,EACnD;AACA,MAAI,MAAM,WAAW;AACnB,WAAO,YAAY,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA,EAClD;AACA,SAAO,YAAY,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AACpD;AAAA,aACW,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,wBAElB,CAAC,UAAU;AAC7B,MAAI,MAAM,UAAU;AAClB,WAAO,YAAY,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,EACpD;AACA,MAAI,MAAM,cAAc;AACtB,WAAO,YAAY,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA,EAClD;AACA,MAAI,MAAM,cAAc;AACtB,WAAO,YAAY,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA,EACnD;AACA,MAAI,MAAM,WAAW;AACnB,WAAO,YAAY,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA,EAClD;AACA,SAAO,YAAY,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAClD;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { DSDropzonePropTypes } from "./react-desc-prop-types.js";
|
|
5
|
+
import { useDSDropzone } from "./config/useDSDropzone.js";
|
|
6
|
+
import { DSDropzoneName } from "./constants/index.js";
|
|
7
|
+
import { StyledDropZone } from "./styled.js";
|
|
8
|
+
import { DSActivezone } from "./parts/DSActivezone/DSActivezone.js";
|
|
9
|
+
const DSDropzone = (props) => {
|
|
10
|
+
const { propsWithDefault, globalProps, xstyledProps, dropZoneState } = useDSDropzone(props);
|
|
11
|
+
return /* @__PURE__ */ jsxs(
|
|
12
|
+
StyledDropZone,
|
|
13
|
+
{
|
|
14
|
+
...globalProps,
|
|
15
|
+
...xstyledProps,
|
|
16
|
+
...dropZoneState.getRootProps({
|
|
17
|
+
isFocused: dropZoneState.isFocused,
|
|
18
|
+
isDragAccept: dropZoneState.isDragAccept,
|
|
19
|
+
isDragReject: dropZoneState.isDragReject
|
|
20
|
+
}),
|
|
21
|
+
isFocused: dropZoneState.isFocused,
|
|
22
|
+
isDragAccept: dropZoneState.isDragAccept,
|
|
23
|
+
isDragReject: dropZoneState.isDragReject,
|
|
24
|
+
isDragActive: dropZoneState.isDragActive,
|
|
25
|
+
hasError: propsWithDefault.hasError,
|
|
26
|
+
disabled: propsWithDefault.dropConfig.disabled,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsx("input", { ...dropZoneState.getInputProps() }),
|
|
29
|
+
propsWithDefault.children,
|
|
30
|
+
dropZoneState.isDragActive ? /* @__PURE__ */ jsx(DSActivezone, {}) : null
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
DSDropzone.propTypes = DSDropzonePropTypes;
|
|
36
|
+
DSDropzone.displayName = DSDropzoneName;
|
|
37
|
+
const DSDropzoneWithSchema = describe(DSDropzone);
|
|
38
|
+
DSDropzoneWithSchema.propTypes = DSDropzonePropTypes;
|
|
39
|
+
export {
|
|
40
|
+
DSDropzone,
|
|
41
|
+
DSDropzoneWithSchema
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=DSDropzone.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDropzone.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSDropzoneT, DSDropzonePropTypes } from './react-desc-prop-types.js';\nimport { useDSDropzone } from './config/useDSDropzone.js';\nimport { DSDropzoneName } from './constants/index.js';\nimport { StyledDropZone } from './styled.js';\nimport { DSActivezone } from './parts/DSActivezone/DSActivezone.js';\n\nconst DSDropzone: React.ComponentType<DSDropzoneT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps, dropZoneState } = useDSDropzone(props);\n return (\n <StyledDropZone\n {...globalProps}\n {...xstyledProps}\n {...dropZoneState.getRootProps({\n isFocused: dropZoneState.isFocused,\n isDragAccept: dropZoneState.isDragAccept,\n isDragReject: dropZoneState.isDragReject,\n })}\n isFocused={dropZoneState.isFocused}\n isDragAccept={dropZoneState.isDragAccept}\n isDragReject={dropZoneState.isDragReject}\n isDragActive={dropZoneState.isDragActive}\n hasError={propsWithDefault.hasError}\n disabled={propsWithDefault.dropConfig.disabled}\n >\n <input {...dropZoneState.getInputProps()} />\n {propsWithDefault.children}\n {dropZoneState.isDragActive ? <DSActivezone /> : null}\n </StyledDropZone>\n );\n};\n\nDSDropzone.propTypes = DSDropzonePropTypes;\nDSDropzone.displayName = DSDropzoneName;\nconst DSDropzoneWithSchema = describe(DSDropzone);\nDSDropzoneWithSchema.propTypes = DSDropzonePropTypes;\n\nexport { DSDropzone, DSDropzoneWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACWnB,SAeE,KAfF;AAVJ,SAAS,gBAAgB;AACzB,SAA2B,2BAA2B;AACtD,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAE7B,MAAM,aAAqD,CAAC,UAAU;AACpE,QAAM,EAAE,kBAAkB,aAAa,cAAc,cAAc,IAAI,cAAc,KAAK;AAC1F,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG,cAAc,aAAa;AAAA,QAC7B,WAAW,cAAc;AAAA,QACzB,cAAc,cAAc;AAAA,QAC5B,cAAc,cAAc;AAAA,MAC9B,CAAC;AAAA,MACD,WAAW,cAAc;AAAA,MACzB,cAAc,cAAc;AAAA,MAC5B,cAAc,cAAc;AAAA,MAC5B,cAAc,cAAc;AAAA,MAC5B,UAAU,iBAAiB;AAAA,MAC3B,UAAU,iBAAiB,WAAW;AAAA,MAEtC;AAAA,4BAAC,WAAO,GAAG,cAAc,cAAc,GAAG;AAAA,QACzC,iBAAiB;AAAA,QACjB,cAAc,eAAe,oBAAC,gBAAa,IAAK;AAAA;AAAA;AAAA,EACnD;AAEJ;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAChD,qBAAqB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { omit } from "lodash";
|
|
4
|
+
import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
|
|
5
|
+
import { uid } from "uid";
|
|
6
|
+
import { DSDropzonePropTypes, defaultProps } from "../react-desc-prop-types.js";
|
|
7
|
+
import { useDropzone } from "react-dropzone";
|
|
8
|
+
import { useValidateProps } from "./useValidateProps.js";
|
|
9
|
+
const useDSDropzone = (propsFromUser) => {
|
|
10
|
+
const propsWithDefault = useMemoMergePropsWithDefault(propsFromUser, defaultProps);
|
|
11
|
+
useValidateProps(propsWithDefault, DSDropzonePropTypes);
|
|
12
|
+
const globalProps = omit(useGetGlobalAttributes(propsWithDefault), [
|
|
13
|
+
"cols",
|
|
14
|
+
"rows",
|
|
15
|
+
"wrap"
|
|
16
|
+
]);
|
|
17
|
+
const xstyledProps = useGetXstyledProps(propsWithDefault);
|
|
18
|
+
const { id, dropConfig } = propsWithDefault;
|
|
19
|
+
const instanceUid = React2.useMemo(() => id || uid(5), [id]);
|
|
20
|
+
const [isDragInside, setIsDragInside] = React2.useState(false);
|
|
21
|
+
const dropConfigDefault = React2.useMemo(
|
|
22
|
+
() => ({
|
|
23
|
+
...dropConfig,
|
|
24
|
+
noKeyboard: true,
|
|
25
|
+
onDragEnter: (event) => {
|
|
26
|
+
dropConfig?.onDragEnter?.(event);
|
|
27
|
+
setIsDragInside(true);
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
[dropConfig]
|
|
31
|
+
);
|
|
32
|
+
const dropZoneState = useDropzone(dropConfigDefault);
|
|
33
|
+
return React2.useMemo(
|
|
34
|
+
() => ({
|
|
35
|
+
propsWithDefault,
|
|
36
|
+
globalProps,
|
|
37
|
+
xstyledProps,
|
|
38
|
+
instanceUid,
|
|
39
|
+
dropZoneState
|
|
40
|
+
// ...eventHandlers,
|
|
41
|
+
}),
|
|
42
|
+
[
|
|
43
|
+
propsWithDefault,
|
|
44
|
+
globalProps,
|
|
45
|
+
xstyledProps,
|
|
46
|
+
instanceUid,
|
|
47
|
+
dropZoneState
|
|
48
|
+
// eventHandlers,
|
|
49
|
+
]
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
useDSDropzone
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=useDSDropzone.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useDSDropzone.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { omit } from 'lodash';\nimport { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { uid } from 'uid';\nimport { type DSDropzoneT, DSDropzonePropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useDropzone } from 'react-dropzone';\n\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DropzoneCTX {\n propsWithDefault: DSDropzoneT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDSDropzone = (propsFromUser: DSDropzoneT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDropzoneT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSDropzonePropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = omit(useGetGlobalAttributes<DSDropzoneT.InternalProps>(propsWithDefault), [\n 'cols',\n 'rows',\n 'wrap',\n ]);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const { id, dropConfig } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n const [isDragInside, setIsDragInside] = React.useState(false);\n\n const dropConfigDefault = React.useMemo(\n () => ({\n ...dropConfig,\n noKeyboard: true,\n onDragEnter: (event) => {\n dropConfig?.onDragEnter?.(event);\n setIsDragInside(true);\n },\n }),\n [dropConfig],\n );\n const dropZoneState = useDropzone(dropConfigDefault);\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n dropZoneState,\n // ...eventHandlers,\n }),\n [\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n dropZoneState,\n // eventHandlers,\n ],\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,YAAY;AACrB,SAAS,wBAAwB,oBAAoB,oCAAoC;AACzF,SAAS,WAAW;AACpB,SAA2B,qBAAqB,oBAAoB;AACpE,SAAS,mBAAmB;AAE5B,SAAS,wBAAwB;AAS1B,MAAM,gBAAgB,CAAC,kBAAqC;AAIjE,QAAM,mBAAmB,6BAAwD,eAAe,YAAY;AAC5G,mBAAiB,kBAAkB,mBAAmB;AAItD,QAAM,cAAc,KAAK,uBAAkD,gBAAgB,GAAG;AAAA,IAC5F;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,eAAe,mBAAmB,gBAAgB;AAKxD,QAAM,EAAE,IAAI,WAAW,IAAI;AAC3B,QAAM,cAAcA,OAAM,QAAQ,MAAM,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAI1D,QAAM,CAAC,cAAc,eAAe,IAAIA,OAAM,SAAS,KAAK;AAE5D,QAAM,oBAAoBA,OAAM;AAAA,IAC9B,OAAO;AAAA,MACL,GAAG;AAAA,MACH,YAAY;AAAA,MACZ,aAAa,CAAC,UAAU;AACtB,oBAAY,cAAc,KAAK;AAC/B,wBAAgB,IAAI;AAAA,MACtB;AAAA,IACF;AAAA,IACA,CAAC,UAAU;AAAA,EACb;AACA,QAAM,gBAAgB,YAAY,iBAAiB;AACnD,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": ["React"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useValidateTypescriptPropTypes } from "@elliemae/ds-utilities";
|
|
3
|
+
import { DSDropzoneName } from "../constants/index.js";
|
|
4
|
+
const useValidateProps = (props, propTypes) => {
|
|
5
|
+
useValidateTypescriptPropTypes(props, propTypes, DSDropzoneName);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
useValidateProps
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useValidateProps.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes } from '@elliemae/ds-utilities';\nimport type { WeakValidationMap } from 'react';\nimport { type DSDropzoneT } from '../react-desc-prop-types.js';\nimport { DSDropzoneName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSDropzoneT.InternalProps, propTypes: WeakValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDropzoneName);\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,sBAAsB;AAExB,MAAM,mBAAmB,CAAC,OAAkC,cAAgD;AAEjH,iCAA+B,OAAO,WAAW,cAAc;AACjE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { slotObjectToDataTestIds } from "@elliemae/ds-system";
|
|
3
|
+
const DSDropzoneName = "DSDropzone";
|
|
4
|
+
const DROP_ZONE_CONSTANTS = {
|
|
5
|
+
BORDER_WIDTH: 1,
|
|
6
|
+
BORDER_RADIUS: 2
|
|
7
|
+
};
|
|
8
|
+
const DROPZONE_SLOTS = {
|
|
9
|
+
ACTIVEZONE_LABEL: "activezone-label",
|
|
10
|
+
ACTIVEZONE_ICON: "activezone-icon",
|
|
11
|
+
ACTIVEZONE_WRAPPER: "activezone-wrapper",
|
|
12
|
+
WRAPPER: "wrapper"
|
|
13
|
+
};
|
|
14
|
+
const DROPZONE_DATA_TESTID = slotObjectToDataTestIds(DSDropzoneName, DROPZONE_SLOTS);
|
|
15
|
+
export {
|
|
16
|
+
DROPZONE_DATA_TESTID,
|
|
17
|
+
DROPZONE_SLOTS,
|
|
18
|
+
DROP_ZONE_CONSTANTS,
|
|
19
|
+
DSDropzoneName
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSDropzoneName = 'DSDropzone';\n\nexport const DROP_ZONE_CONSTANTS = {\n BORDER_WIDTH: 1,\n BORDER_RADIUS: 2,\n} as const;\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DROPZONE_SLOTS = {\n ACTIVEZONE_LABEL: 'activezone-label',\n ACTIVEZONE_ICON: 'activezone-icon',\n ACTIVEZONE_WRAPPER: 'activezone-wrapper',\n WRAPPER: 'wrapper',\n} as const;\n\n// we are giving \"component_name_data_testid\" to avoid errors on duplicate exports variables in aggregators\nexport const DROPZONE_DATA_TESTID = slotObjectToDataTestIds(DSDropzoneName, DROPZONE_SLOTS);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,iBAAiB;AAEvB,MAAM,sBAAsB;AAAA,EACjC,cAAc;AAAA,EACd,eAAe;AACjB;AAGO,MAAM,iBAAiB;AAAA,EAC5B,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,SAAS;AACX;AAGO,MAAM,uBAAuB,wBAAwB,gBAAgB,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSDropzone, DSDropzoneWithSchema } from "./DSDropzone.js";
|
|
3
|
+
import {} from "./react-desc-prop-types.js";
|
|
4
|
+
import { DROPZONE_DATA_TESTID } from "./constants/index.js";
|
|
5
|
+
import { DSActivezone, DSActivezoneWithSchema } from "./parts/DSActivezone/index.js";
|
|
6
|
+
export {
|
|
7
|
+
DROPZONE_DATA_TESTID,
|
|
8
|
+
DSActivezone,
|
|
9
|
+
DSActivezoneWithSchema,
|
|
10
|
+
DSDropzone,
|
|
11
|
+
DSDropzoneWithSchema
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSDropzone, DSDropzoneWithSchema } from './DSDropzone.js';\nexport { type DSDropzoneT } from './react-desc-prop-types.js';\nexport { DROPZONE_DATA_TESTID } from './constants/index.js';\nexport { DSActivezone, DSActivezoneWithSchema } from './parts/DSActivezone/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,YAAY,4BAA4B;AACjD,eAAiC;AACjC,SAAS,4BAA4B;AACrC,SAAS,cAAc,8BAA8B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { useFontsizeMedia } from "@elliemae/ds-hooks-fontsize-media";
|
|
5
|
+
import { DSActivezonePropTypesSchema } from "./react-desc-prop-types.js";
|
|
6
|
+
import { styled } from "@elliemae/ds-system";
|
|
7
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
8
|
+
import { DSTypography } from "@elliemae/ds-typography";
|
|
9
|
+
import { useActivezone } from "./config/useActivezone.js";
|
|
10
|
+
import { DROPZONE_SLOTS, DROP_ZONE_CONSTANTS, DSDropzoneName } from "../../constants/index.js";
|
|
11
|
+
console.log(DROPZONE_SLOTS);
|
|
12
|
+
const StyledWrapper = styled(Grid, { name: DSDropzoneName, slot: DROPZONE_SLOTS.ACTIVEZONE_WRAPPER })`
|
|
13
|
+
cursor: grabbing;
|
|
14
|
+
position: absolute;
|
|
15
|
+
border-radius: ${DROP_ZONE_CONSTANTS.BORDER_RADIUS}px;
|
|
16
|
+
padding: ${(props) => props.theme.space.xxxs} 1.8461538461538463rem;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
`;
|
|
22
|
+
const StyledLabel = styled(DSTypography, { name: DSDropzoneName, slot: DROPZONE_SLOTS.ACTIVEZONE_LABEL })``;
|
|
23
|
+
const StyledIcon = styled(Grid, { name: DSDropzoneName, slot: DROPZONE_SLOTS.ACTIVEZONE_ICON })``;
|
|
24
|
+
const colsDef = {
|
|
25
|
+
largeFont: ["auto"],
|
|
26
|
+
mediumFont: ["auto", "auto"],
|
|
27
|
+
smallFont: ["auto", "auto"]
|
|
28
|
+
};
|
|
29
|
+
const DSActivezone = (props) => {
|
|
30
|
+
const { propsWithDefault, globalProps, xstyledProps } = useActivezone(props);
|
|
31
|
+
const { Icon, label } = propsWithDefault;
|
|
32
|
+
const mainContentCols = useFontsizeMedia(colsDef);
|
|
33
|
+
return /* @__PURE__ */ jsxs(
|
|
34
|
+
StyledWrapper,
|
|
35
|
+
{
|
|
36
|
+
rows: ["auto"],
|
|
37
|
+
justifyContent: "center",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
bg: "brand-600",
|
|
40
|
+
gutter: "xxs",
|
|
41
|
+
cols: mainContentCols,
|
|
42
|
+
getOwnerProps: () => propsWithDefault,
|
|
43
|
+
...globalProps,
|
|
44
|
+
...xstyledProps,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx(StyledIcon, { justifyContent: "center", children: /* @__PURE__ */ jsx(Icon, { size: "l", color: "neutral-000" }) }),
|
|
47
|
+
/* @__PURE__ */ jsx(StyledLabel, { variant: "b2", color: "neutral-000", children: label })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
DSActivezone.displayName = "DSActivezone";
|
|
53
|
+
const DSActivezoneWithSchema = describe(DSActivezone);
|
|
54
|
+
DSActivezoneWithSchema.propTypes = DSActivezonePropTypesSchema;
|
|
55
|
+
export {
|
|
56
|
+
DSActivezone,
|
|
57
|
+
DSActivezoneWithSchema
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=DSActivezone.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSActivezone/DSActivezone.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { useFontsizeMedia } from '@elliemae/ds-hooks-fontsize-media';\nimport { type DSActivezoneT, DSActivezonePropTypesSchema } from './react-desc-prop-types.js';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSTypography } from '@elliemae/ds-typography';\nimport { useActivezone } from './config/useActivezone.js';\nimport { DROPZONE_SLOTS, DROP_ZONE_CONSTANTS, DSDropzoneName } from '../../constants/index.js';\n\nconsole.log(DROPZONE_SLOTS);\n\nconst StyledWrapper = styled(Grid, { name: DSDropzoneName, slot: DROPZONE_SLOTS.ACTIVEZONE_WRAPPER })`\n cursor: grabbing;\n position: absolute;\n border-radius: ${DROP_ZONE_CONSTANTS.BORDER_RADIUS}px;\n padding: ${(props) => props.theme.space.xxxs} 1.8461538461538463rem;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n`;\nconst StyledLabel = styled(DSTypography, { name: DSDropzoneName, slot: DROPZONE_SLOTS.ACTIVEZONE_LABEL })``;\nconst StyledIcon = styled(Grid, { name: DSDropzoneName, slot: DROPZONE_SLOTS.ACTIVEZONE_ICON })``;\n\nconst colsDef = {\n largeFont: ['auto'],\n mediumFont: ['auto', 'auto'],\n smallFont: ['auto', 'auto'],\n};\n\nconst DSActivezone: React.ComponentType<DSActivezoneT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useActivezone(props);\n const { Icon, label } = propsWithDefault;\n const mainContentCols = useFontsizeMedia(colsDef);\n return (\n <StyledWrapper\n rows={['auto']}\n justifyContent=\"center\"\n alignItems=\"center\"\n bg=\"brand-600\"\n gutter=\"xxs\"\n cols={mainContentCols}\n getOwnerProps={() => propsWithDefault}\n {...globalProps}\n {...xstyledProps}\n >\n <StyledIcon justifyContent=\"center\">\n <Icon size=\"l\" color=\"neutral-000\" />\n </StyledIcon>\n <StyledLabel variant=\"b2\" color=\"neutral-000\">\n {label}\n </StyledLabel>\n </StyledWrapper>\n );\n};\n\nDSActivezone.displayName = 'DSActivezone';\nconst DSActivezoneWithSchema = describe(DSActivezone);\nDSActivezoneWithSchema.propTypes = DSActivezonePropTypesSchema;\n\nexport { DSActivezone, DSActivezoneWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACoCnB,SAYI,KAZJ;AAnCJ,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAA6B,mCAAmC;AAChE,SAAS,cAAc;AACvB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB,qBAAqB,sBAAsB;AAEpE,QAAQ,IAAI,cAAc;AAE1B,MAAM,gBAAgB,OAAO,MAAM,EAAE,MAAM,gBAAgB,MAAM,eAAe,mBAAmB,CAAC;AAAA;AAAA;AAAA,mBAGjF,oBAAoB;AAAA,aAC1B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAM1C,MAAM,cAAc,OAAO,cAAc,EAAE,MAAM,gBAAgB,MAAM,eAAe,iBAAiB,CAAC;AACxG,MAAM,aAAa,OAAO,MAAM,EAAE,MAAM,gBAAgB,MAAM,eAAe,gBAAgB,CAAC;AAE9F,MAAM,UAAU;AAAA,EACd,WAAW,CAAC,MAAM;AAAA,EAClB,YAAY,CAAC,QAAQ,MAAM;AAAA,EAC3B,WAAW,CAAC,QAAQ,MAAM;AAC5B;AAEA,MAAM,eAAyD,CAAC,UAAU;AACxE,QAAM,EAAE,kBAAkB,aAAa,aAAa,IAAI,cAAc,KAAK;AAC3E,QAAM,EAAE,MAAM,MAAM,IAAI;AACxB,QAAM,kBAAkB,iBAAiB,OAAO;AAChD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,CAAC,MAAM;AAAA,MACb,gBAAe;AAAA,MACf,YAAW;AAAA,MACX,IAAG;AAAA,MACH,QAAO;AAAA,MACP,MAAM;AAAA,MACN,eAAe,MAAM;AAAA,MACpB,GAAG;AAAA,MACH,GAAG;AAAA,MAEJ;AAAA,4BAAC,cAAW,gBAAe,UACzB,8BAAC,QAAK,MAAK,KAAI,OAAM,eAAc,GACrC;AAAA,QACA,oBAAC,eAAY,SAAQ,MAAK,OAAM,eAC7B,iBACH;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|