siam-ui-utils 2.0.7 → 2.1.1
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/.eslintrc +73 -0
- package/.eslintrc.mjs +53 -0
- package/.prettierrc +7 -0
- package/.prettierrc.js +5 -0
- package/.storybook/css/bootstrap.min.css +6 -0
- package/.storybook/css/bootstrap.rtl.only.min.css +1428 -0
- package/.storybook/main.ts +17 -0
- package/.storybook/preview.ts +16 -0
- package/eslint.config.js +28 -0
- package/package.json +85 -61
- package/src/App.jsx +27 -2
- package/src/IntlMessages.jsx +1 -0
- package/src/bridges/{with-router-bridge.jsx → index.jsx} +0 -2
- package/src/constants-svg.js +659 -0
- package/src/constants.js +9 -0
- package/src/dropzone-uploader/DropzoneUploader.stories.tsx +34 -0
- package/src/dropzone-uploader/dropzone-uploader.css +66 -0
- package/src/dropzone-uploader/index.jsx +6 -2
- package/src/iconos/icon-button-svg.jsx +49 -0
- package/src/iconos/index.js +3 -0
- package/src/iconos/styled-icon.jsx +25 -0
- package/src/index.js +6 -7
- package/src/main.jsx +0 -1
- package/src/tomar-foto/TomarFoto.stories.tsx +29 -0
- package/src/tomar-foto/index.jsx +1 -1
- package/tsconfig.json +25 -24
- package/vite.config.ts +2 -6
- package/.eslintrc.json +0 -29
- package/src/bridges/index.js +0 -1
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