siam-ui-utils 2.2.18 → 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 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
@@ -88,7 +88,4 @@ declare module 'siam-ui-utils' {
88
88
 
89
89
  //VIEW LAYOUT
90
90
  export function ViewLayout(props);
91
-
92
- //TIMER
93
- export function Timer(props);
94
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "2.2.18",
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,16 +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
149
- initialMinutes={2}
150
- active={true}
151
- style={{ color: 'green' }}
152
- />
153
- </AccordionBody>
154
- </AccordionItem>
155
144
  </Accordion>
156
145
  </div>
157
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 { getDroppedOrSelectedFiles } from 'html5-file-selector';
5
- import Dropzone from 'react-dropzone-uploader';
6
- import 'react-dropzone-uploader/dist/styles.css';
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 Dropzone from 'react-dropzone-uploader';
5
- import 'react-dropzone-uploader/dist/styles.css';
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