siam-ui-utils 2.2.18 → 2.2.20
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/eslint.config.mjs +45 -45
- package/package.json +1 -2
- package/src/dropzone/Dropzone.tsx +816 -0
- package/src/dropzone/Input.tsx +76 -0
- package/src/dropzone/Layout.tsx +57 -0
- package/src/dropzone/Preview.tsx +139 -0
- package/src/dropzone/SubmitButton.tsx +47 -0
- package/src/dropzone/assets/cancel.svg +1 -0
- package/src/dropzone/assets/remove.svg +1 -0
- package/src/dropzone/assets/restart.svg +1 -0
- package/src/dropzone/styles.css +140 -0
- package/src/dropzone/utils.ts +113 -0
- package/src/{archivos-adjuntos → dropzone-uploader}/dropzone-uploader-dni-digital/index.jsx +4 -5
- package/src/{archivos-adjuntos → dropzone-uploader}/index.jsx +4 -5
- package/src/index.js +2 -2
- /package/src/{archivos-adjuntos → dropzone-uploader}/dropzone-uploader.css +0 -0
package/eslint.config.mjs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import globals from 'globals';
|
|
3
|
-
import pluginReact from 'eslint-plugin-react';
|
|
4
|
-
import pluginReactHooks from 'eslint-plugin-react-hooks';
|
|
5
|
-
import pluginReactRefresh from 'eslint-plugin-react-refresh';
|
|
6
|
-
import { defineConfig } from 'eslint/config';
|
|
7
|
-
|
|
8
|
-
export default defineConfig([
|
|
9
|
-
{ ignores: ['build', '**/*.d.ts'] },
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{js,jsx,ts,tsx}'],
|
|
12
|
-
languageOptions: {
|
|
13
|
-
ecmaVersion: 'latest',
|
|
14
|
-
sourceType: 'module',
|
|
15
|
-
globals: globals.browser,
|
|
16
|
-
parserOptions: {
|
|
17
|
-
ecmaFeatures: { jsx: true },
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
parser: '@typescript-eslint/parser',
|
|
21
|
-
parserOptions: {
|
|
22
|
-
ecmaVersion: 'latest',
|
|
23
|
-
},
|
|
24
|
-
plugins: {
|
|
25
|
-
react: pluginReact,
|
|
26
|
-
'react-hooks': pluginReactHooks,
|
|
27
|
-
'react-refresh': pluginReactRefresh,
|
|
28
|
-
},
|
|
29
|
-
rules: {
|
|
30
|
-
...js.configs.recommended.rules,
|
|
31
|
-
...pluginReact.configs.recommended.rules,
|
|
32
|
-
...pluginReact.configs['jsx-runtime'].rules,
|
|
33
|
-
...pluginReactHooks.configs.recommended.rules,
|
|
34
|
-
'react/jsx-no-target-blank': 'off',
|
|
35
|
-
'react-refresh/only-export-components': [
|
|
36
|
-
'off',
|
|
37
|
-
{ allowConstantExport: true },
|
|
38
|
-
],
|
|
39
|
-
'react/prop-types': 'off',
|
|
40
|
-
'@/no-default-export': 'off',
|
|
41
|
-
'no-unused-vars': 'warn',
|
|
42
|
-
},
|
|
43
|
-
settings: { react: { version: 'detect' } },
|
|
44
|
-
},
|
|
45
|
-
]);
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import globals from 'globals';
|
|
3
|
+
import pluginReact from 'eslint-plugin-react';
|
|
4
|
+
import pluginReactHooks from 'eslint-plugin-react-hooks';
|
|
5
|
+
import pluginReactRefresh from 'eslint-plugin-react-refresh';
|
|
6
|
+
import { defineConfig } from 'eslint/config';
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
{ ignores: ['build', '**/*.d.ts'] },
|
|
10
|
+
{
|
|
11
|
+
files: ['**/*.{js,jsx,ts,tsx}'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
ecmaVersion: 'latest',
|
|
14
|
+
sourceType: 'module',
|
|
15
|
+
globals: globals.browser,
|
|
16
|
+
parserOptions: {
|
|
17
|
+
ecmaFeatures: { jsx: true },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
parser: '@typescript-eslint/parser',
|
|
21
|
+
parserOptions: {
|
|
22
|
+
ecmaVersion: 'latest',
|
|
23
|
+
},
|
|
24
|
+
plugins: {
|
|
25
|
+
react: pluginReact,
|
|
26
|
+
'react-hooks': pluginReactHooks,
|
|
27
|
+
'react-refresh': pluginReactRefresh,
|
|
28
|
+
},
|
|
29
|
+
rules: {
|
|
30
|
+
...js.configs.recommended.rules,
|
|
31
|
+
...pluginReact.configs.recommended.rules,
|
|
32
|
+
...pluginReact.configs['jsx-runtime'].rules,
|
|
33
|
+
...pluginReactHooks.configs.recommended.rules,
|
|
34
|
+
'react/jsx-no-target-blank': 'off',
|
|
35
|
+
'react-refresh/only-export-components': [
|
|
36
|
+
'off',
|
|
37
|
+
{ allowConstantExport: true },
|
|
38
|
+
],
|
|
39
|
+
'react/prop-types': 'off',
|
|
40
|
+
'@/no-default-export': 'off',
|
|
41
|
+
'no-unused-vars': 'warn',
|
|
42
|
+
},
|
|
43
|
+
settings: { react: { version: 'detect' } },
|
|
44
|
+
},
|
|
45
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siam-ui-utils",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.20",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ampf-react",
|
|
6
6
|
"ampf-utils",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"html5-file-selector": "^2.1.0",
|
|
30
30
|
"prop-types": "^15.8.1",
|
|
31
31
|
"react": "^18.3.1",
|
|
32
|
-
"react-dropzone-uploader": "^2.11.0",
|
|
33
32
|
"react-intl": "^6.4.2",
|
|
34
33
|
"react-notifications": "^1.7.4",
|
|
35
34
|
"react-router": "^6.26.2",
|