siam-ui-utils 2.2.17 → 2.2.19
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/index.d.ts +0 -3
- package/package.json +1 -2
- package/src/App.jsx +0 -7
- package/src/archivos-adjuntos/dropzone-uploader-dni-digital/index.jsx +4 -5
- package/src/archivos-adjuntos/index.jsx +4 -4
- 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/index.js +0 -1
- package/src/timer/index.jsx +0 -58
- package/src/timer/styles.scss +0 -54
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/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siam-ui-utils",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.19",
|
|
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",
|
package/src/App.jsx
CHANGED
|
@@ -13,7 +13,6 @@ import './assets/css/vendor/bootstrap.min.css';
|
|
|
13
13
|
import { WhereByRoom } from './where-by-room';
|
|
14
14
|
import { ViewLayout } from './view-layout';
|
|
15
15
|
import { CopyLink } from './copy-link';
|
|
16
|
-
import Timer from './timer';
|
|
17
16
|
|
|
18
17
|
const slots = [
|
|
19
18
|
{
|
|
@@ -142,12 +141,6 @@ const App = () => {
|
|
|
142
141
|
<ViewLayout slots={slots} />
|
|
143
142
|
</AccordionBody>
|
|
144
143
|
</AccordionItem>
|
|
145
|
-
<AccordionItem>
|
|
146
|
-
<AccordionHeader targetId="8">Timer</AccordionHeader>
|
|
147
|
-
<AccordionBody accordionId="8">
|
|
148
|
-
<Timer initialMinutes={2} active={true} />
|
|
149
|
-
</AccordionBody>
|
|
150
|
-
</AccordionItem>
|
|
151
144
|
</Accordion>
|
|
152
145
|
</div>
|
|
153
146
|
);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDroppedOrSelectedFiles } from 'html5-file-selector';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Button } from 'reactstrap';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '
|
|
7
|
-
import { pdfImage, IconButtonSvg } from '../../iconos';
|
|
4
|
+
import Dropzone from '../../dropzone/Dropzone';
|
|
5
|
+
import '../../dropzone/styles.css';
|
|
6
|
+
import { IconButtonSvg, pdfImage } from '../../iconos';
|
|
8
7
|
import '../dropzone-uploader.css';
|
|
9
8
|
|
|
10
9
|
export const DropzoneUploaderDniDigital = ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
1
|
import { getDroppedOrSelectedFiles } from 'html5-file-selector';
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import '../dropzone/styles.css';
|
|
4
|
+
import Dropzone from '../dropzone/Dropzone';
|
|
5
|
+
import '../dropzone/styles.css';
|
|
6
6
|
import { IconButtonSvg, pdfImage } from '../iconos';
|
|
7
7
|
import './dropzone-uploader.css';
|
|
8
8
|
|