siam-ui-utils 2.0.6 → 2.1.0

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.
Files changed (60) hide show
  1. package/.eslintrc +73 -0
  2. package/.eslintrc.mjs +53 -0
  3. package/.prettierrc +7 -0
  4. package/.prettierrc.js +5 -0
  5. package/.storybook/css/bootstrap.min.css +6 -0
  6. package/.storybook/css/bootstrap.rtl.only.min.css +1428 -0
  7. package/.storybook/main.ts +17 -0
  8. package/.storybook/preview.ts +16 -0
  9. package/eslint.config.js +28 -0
  10. package/index.d.ts +0 -53
  11. package/index.html +12 -0
  12. package/package.json +87 -70
  13. package/src/App.jsx +43 -0
  14. package/src/IntlMessages.jsx +7 -0
  15. package/src/bridges/{with-router-bridge.jsx → index.jsx} +1 -1
  16. package/src/constants.js +9 -0
  17. package/src/dropzone-uploader/DropzoneUploader.stories.tsx +32 -0
  18. package/src/dropzone-uploader/dropzone-uploader.css +66 -0
  19. package/src/{archivos-adjuntos → dropzone-uploader}/index.jsx +10 -6
  20. package/src/iconos/icon-button-svg.jsx +1 -2
  21. package/src/iconos/index.js +3 -31
  22. package/src/iconos/styled-icon.jsx +1 -1
  23. package/src/index.js +2 -2
  24. package/src/main.jsx +7 -0
  25. package/src/tomar-foto/TomarFoto.stories.tsx +29 -0
  26. package/src/tomar-foto/index.jsx +2 -1
  27. package/tsconfig.json +3 -2
  28. package/vite.config.ts +8 -4
  29. package/.eslintrc.json +0 -25
  30. package/src/IntlMessages.tsx +0 -11
  31. package/src/bridges/index.js +0 -1
  32. package/src/iconos/anular-ayuda-icon.jsx +0 -72
  33. package/src/iconos/asesoria-burbuja-button.jsx +0 -104
  34. package/src/iconos/asesoria-burbuja-icon.jsx +0 -104
  35. package/src/iconos/atencion-presencial-icon.jsx +0 -79
  36. package/src/iconos/atencion-telefonica-icon.jsx +0 -44
  37. package/src/iconos/atencion-turno-telefonico-icon.jsx +0 -53
  38. package/src/iconos/atencion-virtual-icon.jsx +0 -37
  39. package/src/iconos/biblioteca-burbuja-button.jsx +0 -59
  40. package/src/iconos/biblioteca-burbuja-icon.jsx +0 -66
  41. package/src/iconos/cancelar-turno-icon.jsx +0 -29
  42. package/src/iconos/codigo-verificacion-icon.jsx +0 -54
  43. package/src/iconos/curso-autogestionado-color-icon.jsx +0 -203
  44. package/src/iconos/curso-autogestionado-icon.jsx +0 -49
  45. package/src/iconos/curso-burbuja-button.jsx +0 -41
  46. package/src/iconos/curso-burbuja-icon.jsx +0 -97
  47. package/src/iconos/curso-presencial-color-icon.jsx +0 -256
  48. package/src/iconos/curso-presencial-icon.jsx +0 -71
  49. package/src/iconos/curso-virtual-color-icon.jsx +0 -109
  50. package/src/iconos/curso-virtual-icon.jsx +0 -40
  51. package/src/iconos/delegaciones-icon.jsx +0 -66
  52. package/src/iconos/forgot-dni-icon.jsx +0 -42
  53. package/src/iconos/forgot-password-icon.jsx +0 -46
  54. package/src/iconos/lapiz-act-contacto-perf-button.jsx +0 -44
  55. package/src/iconos/styled-timer-reenv-cod.jsx +0 -16
  56. package/src/iconos/user/user-styled-icon.jsx +0 -22
  57. package/src/iconos/verificar-sin-verificar-icon.jsx +0 -39
  58. package/src/iconos/verificar-verificado-icon.jsx +0 -30
  59. package/src/iconos/whatsapp-icon-button.jsx +0 -41
  60. /package/src/{iconos/constants-svg.js → constants-svg.js} +0 -0
package/.eslintrc ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "commonjs": true,
5
+ "es2021": true,
6
+ "node": true
7
+ },
8
+ "settings": {
9
+ "import/resolver": {
10
+ "node": {
11
+ "extensions": [
12
+ ".js",
13
+ ".jsx",
14
+ ".ts",
15
+ ".tsx"
16
+ ]
17
+ }
18
+ },
19
+ "react": {
20
+ "version": "detect"
21
+ }
22
+ },
23
+ "extends": [
24
+ "eslint:recommended",
25
+ "plugin:jsx-a11y/strict",
26
+ "plugin:react/recommended",
27
+ "plugin:@typescript-eslint/recommended",
28
+ "plugin:import/recommended",
29
+ "plugin:react-hooks/recommended"
30
+ ],
31
+ "overrides": [],
32
+ "parser": "@typescript-eslint/parser",
33
+ "parserOptions": {
34
+ "ecmaVersion": "latest"
35
+ },
36
+ "plugins": [
37
+ "react",
38
+ "react-hooks",
39
+ "@typescript-eslint",
40
+ "prettier"
41
+ ],
42
+ "rules": {
43
+ "quotes": "off",
44
+ "import/no-unresolved": "warn",
45
+ "import/no-named-as-default": "warn",
46
+ "no-constant-condition": "warn",
47
+ "@typescript-eslint/no-empty-function": "warn",
48
+ "no-prototype-builtins": "warn",
49
+ "jsx-a11y/no-static-element-interactions": "warn",
50
+ "jsx-a11y/click-events-have-key-events": "warn",
51
+ "jsx-a11y/no-noninteractive-element-interactions": "warn",
52
+ "@typescript-eslint/ban-types": "warn",
53
+ "import/no-duplicates": "warn",
54
+ "@typescript-eslint/no-extra-semi": "warn",
55
+ "@typescript-eslint/no-inferrable-types": "warn",
56
+ "prefer-const": "warn",
57
+ "@typescript-eslint/no-unused-vars": "warn",
58
+ "jsx-a11y/label-has-associated-control": "warn",
59
+ "no-case-declarations": "warn",
60
+ "no-irregular-whitespace": "warn",
61
+ "@typescript-eslint/no-var-requires": "warn",
62
+ "no-empty": "warn",
63
+ "react/no-deprecated": "warn",
64
+ "import/prefer-default-export": "off",
65
+ "import/no-cycle": "off",
66
+ "react/no-unknown-property": "warn",
67
+ "react-hooks/exhaustive-deps": "warn",
68
+ "react/no-find-dom-node": "warn",
69
+ "react/prop-types": "off",
70
+ "@typescript-eslint/no-explicit-any": "off",
71
+ "@typescript-eslint/explicit-module-boundary-types": "off"
72
+ }
73
+ }
package/.eslintrc.mjs ADDED
@@ -0,0 +1,53 @@
1
+ module.exports = {
2
+ extends: [
3
+ 'eslint:recommended',
4
+ 'plugin:react/recommended',
5
+ 'plugin:react-hooks/recommended',
6
+ 'plugin:jsx-a11y/recommended',
7
+ ],
8
+ plugins: ['react', 'react-hooks', 'jsx-a11y', 'prettier'],
9
+ parserOptions: {
10
+ ecmaVersion: 2021,
11
+ sourceType: 'module',
12
+ ecmaFeatures: {
13
+ jsx: true,
14
+ },
15
+ },
16
+ rules: {
17
+ 'quotes': 'off',
18
+ 'import/no-unresolved': 'warn',
19
+ 'import/no-named-as-default': 'warn',
20
+ 'no-constant-condition': 'warn',
21
+ '@typescript-eslint/no-empty-function': 'warn',
22
+ 'no-prototype-builtins': 'warn',
23
+ 'jsx-a11y/no-static-element-interactions': 'warn',
24
+ 'jsx-a11y/click-events-have-key-events': 'warn',
25
+ 'jsx-a11y/no-noninteractive-element-interactions': 'warn',
26
+ '@typescript-eslint/ban-types': 'warn',
27
+ 'import/no-duplicates': 'warn',
28
+ '@typescript-eslint/no-extra-semi': 'warn',
29
+ '@typescript-eslint/no-inferrable-types': 'warn',
30
+ 'prefer-const': 'warn',
31
+ '@typescript-eslint/no-unused-vars': 'warn',
32
+ 'jsx-a11y/label-has-associated-control': 'warn',
33
+ 'no-case-declarations': 'warn',
34
+ 'no-irregular-whitespace': 'warn',
35
+ '@typescript-eslint/no-var-requires': 'warn',
36
+ 'no-empty': 'warn',
37
+ 'react/no-deprecated': 'warn',
38
+ 'import/prefer-default-export': 'off',
39
+ 'import/no-cycle': 'off',
40
+ 'react/no-unknown-property': 'warn',
41
+ 'react-hooks/exhaustive-deps': 'warn',
42
+ 'react/no-find-dom-node': 'warn',
43
+ 'react/prop-types': 'off',
44
+ '@typescript-eslint/no-explicit-any': 'off',
45
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
46
+ 'prettier/prettier': [
47
+ 'warn',
48
+ {
49
+ 'endOfLine': 'crlf'
50
+ }
51
+ ]
52
+ }
53
+ }
package/.prettierrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "singleQuote": true,
3
+ "endOfLine": "auto",
4
+ "tabWidth": 2,
5
+ "semi": true,
6
+ "printWidth": 80
7
+ }
package/.prettierrc.js ADDED
@@ -0,0 +1,5 @@
1
+ export const singleQuote = true;
2
+ export const semi = true;
3
+ export const useTabs = false;
4
+ export const tabWidth = 2;
5
+ export const trailingComma = "all";