siam-ui-utils 2.2.25 → 2.2.27

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 (137) hide show
  1. package/dist/CustomBootstrap.js +9 -0
  2. package/dist/CustomBootstrap.js.map +1 -0
  3. package/dist/CustomSelectInput.js +12 -0
  4. package/dist/CustomSelectInput.js.map +1 -0
  5. package/dist/IntlMessages.js +10 -0
  6. package/dist/IntlMessages.js.map +1 -0
  7. package/dist/assets/img/copiar.png.js +5 -0
  8. package/dist/assets/img/copiar.png.js.map +1 -0
  9. package/dist/assets/img/take-photo.png.js +5 -0
  10. package/dist/assets/img/take-photo.png.js.map +1 -0
  11. package/dist/bridges/with-router-bridge.js +14 -0
  12. package/dist/bridges/with-router-bridge.js.map +1 -0
  13. package/dist/constants.js +9 -0
  14. package/dist/constants.js.map +1 -0
  15. package/dist/copy-link/index.js +60 -0
  16. package/dist/copy-link/index.js.map +1 -0
  17. package/dist/custom-input/CustomInputCheckbox.js +36 -0
  18. package/dist/custom-input/CustomInputCheckbox.js.map +1 -0
  19. package/dist/custom-input/CustomInputRadio.js +43 -0
  20. package/dist/custom-input/CustomInputRadio.js.map +1 -0
  21. package/dist/dropzone/Dropzone.js +513 -0
  22. package/dist/dropzone/Dropzone.js.map +1 -0
  23. package/{src/dropzone/Input.tsx → dist/dropzone/Input.js} +77 -76
  24. package/dist/dropzone/Input.js.map +1 -0
  25. package/{src/dropzone/Layout.tsx → dist/dropzone/Layout.js} +50 -57
  26. package/dist/dropzone/Layout.js.map +1 -0
  27. package/dist/dropzone/Preview.js +117 -0
  28. package/dist/dropzone/Preview.js.map +1 -0
  29. package/dist/dropzone/SubmitButton.js +34 -0
  30. package/dist/dropzone/SubmitButton.js.map +1 -0
  31. package/dist/dropzone/assets/cancel.svg.js +5 -0
  32. package/dist/dropzone/assets/cancel.svg.js.map +1 -0
  33. package/dist/dropzone/assets/remove.svg.js +5 -0
  34. package/dist/dropzone/assets/remove.svg.js.map +1 -0
  35. package/dist/dropzone/assets/restart.svg.js +5 -0
  36. package/dist/dropzone/assets/restart.svg.js.map +1 -0
  37. package/dist/dropzone/utils.js +85 -0
  38. package/dist/dropzone/utils.js.map +1 -0
  39. package/dist/dropzone-uploader/dropzone-uploader-dni-digital/index.js +150 -0
  40. package/dist/dropzone-uploader/dropzone-uploader-dni-digital/index.js.map +1 -0
  41. package/dist/dropzone-uploader/index.js +136 -0
  42. package/dist/dropzone-uploader/index.js.map +1 -0
  43. package/dist/iconos/constants-svg.js +41 -0
  44. package/dist/iconos/constants-svg.js.map +1 -0
  45. package/dist/iconos/icon-button-svg.js +50 -0
  46. package/dist/iconos/icon-button-svg.js.map +1 -0
  47. package/dist/iconos/styled-icon.js +26 -0
  48. package/dist/iconos/styled-icon.js.map +1 -0
  49. package/dist/index.js +33 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/select/constants.js +8 -0
  52. package/dist/select/constants.js.map +1 -0
  53. package/dist/select/index.js +90 -0
  54. package/dist/select/index.js.map +1 -0
  55. package/dist/timer/index.js +60 -0
  56. package/dist/timer/index.js.map +1 -0
  57. package/dist/tomar-foto/index.js +62 -0
  58. package/dist/tomar-foto/index.js.map +1 -0
  59. package/dist/view-layout/button-editor.js +14 -0
  60. package/dist/view-layout/button-editor.js.map +1 -0
  61. package/dist/view-layout/constants.js +11 -0
  62. package/dist/view-layout/constants.js.map +1 -0
  63. package/dist/view-layout/editor-layer.js +28 -0
  64. package/dist/view-layout/editor-layer.js.map +1 -0
  65. package/dist/view-layout/index.js +53 -0
  66. package/dist/view-layout/index.js.map +1 -0
  67. package/dist/view-layout/slot-wrapper.js +39 -0
  68. package/dist/view-layout/slot-wrapper.js.map +1 -0
  69. package/dist/where-by-room/index.js +20 -0
  70. package/dist/where-by-room/index.js.map +1 -0
  71. package/dist/where-by-room/room.js +78 -0
  72. package/dist/where-by-room/room.js.map +1 -0
  73. package/package.json +69 -18
  74. package/eslint.config.mjs +0 -45
  75. package/index.html +0 -17
  76. package/src/App.css +0 -47
  77. package/src/App.jsx +0 -66
  78. package/src/CustomBootstrap.jsx +0 -10
  79. package/src/CustomSelectInput.jsx +0 -8
  80. package/src/IntlMessages.jsx +0 -7
  81. package/src/assets/css/sass/_gogo.style.scss +0 -8967
  82. package/src/assets/css/sass/_mixins.scss +0 -125
  83. package/src/assets/css/sass/_plugins.scss +0 -1
  84. package/src/assets/css/sass/ampf_style.scss +0 -185
  85. package/src/assets/css/sass/main.scss +0 -11
  86. package/src/assets/css/sass/plugins/react-table.scss +0 -314
  87. package/src/assets/css/sass/themes/gogo.light.redruby.scss +0 -41
  88. package/src/assets/css/sass/themes/variables.scss +0 -86
  89. package/src/assets/css/vendor/bootstrap.min.css +0 -6
  90. package/src/assets/css/vendor/bootstrap.rtl.only.min.css +0 -1428
  91. package/src/assets/img/copiar.png +0 -0
  92. package/src/assets/img/take-photo.png +0 -0
  93. package/src/bridges/index.js +0 -1
  94. package/src/bridges/with-router-bridge.jsx +0 -11
  95. package/src/constants.js +0 -7
  96. package/src/copy-link/index.jsx +0 -58
  97. package/src/copy-link/styles.scss +0 -39
  98. package/src/custom-input/CustomInputCheckbox.jsx +0 -33
  99. package/src/custom-input/CustomInputRadio.jsx +0 -37
  100. package/src/custom-input/index.css +0 -168
  101. package/src/custom-input/index.js +0 -2
  102. package/src/dropzone/Dropzone.tsx +0 -816
  103. package/src/dropzone/Preview.tsx +0 -139
  104. package/src/dropzone/SubmitButton.tsx +0 -47
  105. package/src/dropzone/assets/cancel.svg +0 -1
  106. package/src/dropzone/assets/remove.svg +0 -1
  107. package/src/dropzone/assets/restart.svg +0 -1
  108. package/src/dropzone/styles.css +0 -140
  109. package/src/dropzone/utils.ts +0 -113
  110. package/src/dropzone-uploader/dropzone-uploader-dni-digital/index.jsx +0 -151
  111. package/src/dropzone-uploader/dropzone-uploader.css +0 -66
  112. package/src/dropzone-uploader/index.jsx +0 -138
  113. package/src/iconos/constants-svg.js +0 -659
  114. package/src/iconos/icon-button-svg.jsx +0 -50
  115. package/src/iconos/index.js +0 -2
  116. package/src/iconos/styled-icon.jsx +0 -25
  117. package/src/index.css +0 -74
  118. package/src/index.js +0 -13
  119. package/src/main.jsx +0 -7
  120. package/src/select/constants.js +0 -4
  121. package/src/select/index.tsx +0 -147
  122. package/src/test-resources.jsx +0 -145
  123. package/src/timer/index.jsx +0 -62
  124. package/src/timer/styles.scss +0 -54
  125. package/src/tomar-foto/index.jsx +0 -69
  126. package/src/view-layout/button-editor.jsx +0 -18
  127. package/src/view-layout/constants.js +0 -7
  128. package/src/view-layout/editor-layer.jsx +0 -27
  129. package/src/view-layout/index.tsx +0 -62
  130. package/src/view-layout/item-slot.tsx +0 -20
  131. package/src/view-layout/slot-wrapper.tsx +0 -44
  132. package/src/view-layout/styles.scss +0 -143
  133. package/src/where-by-room/constants.js +0 -2
  134. package/src/where-by-room/index.jsx +0 -17
  135. package/src/where-by-room/room.jsx +0 -79
  136. package/tsconfig.json +0 -19
  137. package/vite.config.ts +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "2.2.25",
3
+ "version": "2.2.27",
4
4
  "keywords": [
5
5
  "ampf-react",
6
6
  "ampf-utils",
@@ -9,8 +9,54 @@
9
9
  "author": "Ampf Development Team",
10
10
  "license": "MIT",
11
11
  "description": "Conjunto de librerias de componentes utiles para AMPF",
12
- "main": "src/index.js",
13
- "browser": "src/index.js",
12
+ "type": "module",
13
+ "main": "./dist/index.js",
14
+ "module": "./dist/index.js",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.js",
18
+ "types": "./index.d.ts"
19
+ },
20
+ "./bridges": {
21
+ "import": "./dist/bridges/index.js"
22
+ },
23
+ "./copy-link": {
24
+ "import": "./dist/copy-link/index.js"
25
+ },
26
+ "./custom-input": {
27
+ "import": "./dist/custom-input/index.js"
28
+ },
29
+ "./dropzone-uploader": {
30
+ "import": "./dist/dropzone-uploader/index.js"
31
+ },
32
+ "./select": {
33
+ "import": "./dist/select/index.js"
34
+ },
35
+ "./timer": {
36
+ "import": "./dist/timer/index.js"
37
+ },
38
+ "./tomar-foto": {
39
+ "import": "./dist/tomar-foto/index.js"
40
+ },
41
+ "./view-layout": {
42
+ "import": "./dist/view-layout/index.js"
43
+ },
44
+ "./where-by-room": {
45
+ "import": "./dist/where-by-room/index.js"
46
+ },
47
+ "./CustomBootstrap": {
48
+ "import": "./dist/CustomBootstrap.js"
49
+ },
50
+ "./CustomSelectInput": {
51
+ "import": "./dist/CustomSelectInput.js"
52
+ },
53
+ "./package.json": "./package.json"
54
+ },
55
+ "sideEffects": [
56
+ "*.css",
57
+ "*.scss",
58
+ "*.sass"
59
+ ],
14
60
  "types": "index",
15
61
  "homepage": "https://github.com/ampfgit/siam-ui-utils#readme",
16
62
  "repository": {
@@ -20,29 +66,29 @@
20
66
  "moduleResolution": "nodenext",
21
67
  "scripts": {
22
68
  "start": "vite",
23
- "publish-npm": "npm publish"
69
+ "build": "vite build",
70
+ "publish-npm": "npm run build && npm publish"
71
+ },
72
+ "peerDependencies": {
73
+ "react": "^18.0.0",
74
+ "react-dom": "^18.0.0",
75
+ "react-router": "^6.0.0",
76
+ "react-router-dom": "^6.0.0"
24
77
  },
25
78
  "dependencies": {
79
+ "@types/react-intl": "^3.0.0",
26
80
  "@whereby.com/browser-sdk": "^3.13.1",
81
+ "events": "^3.3.0",
27
82
  "html5-file-selector": "^2.1.0",
83
+ "prop-types": "^15.8.1",
84
+ "react-intl": "^6.4.2",
28
85
  "react-notifications": "^1.7.4",
29
- "react-router": "^6.26.2",
30
- "react-router-dom": "^6.26.2",
31
86
  "react-select": "^5.8.0",
87
+ "reactstrap": "^9.2.2",
32
88
  "react-tagsinput": "^3.20.3",
33
- "source-map-loader": "^5.0.0"
34
- },
35
- "peerDependencies": {
36
- "@types/react-intl": "^3.0.0",
37
- "events": "^3.3.0",
38
- "react": "^18.3.1",
39
- "react-intl": "^6.4.2",
40
- "prop-types": "^15.8.1",
41
89
  "siam-utils": "^1.1.4",
42
- "styled-components": "^6.1.12",
43
- "typescript": "^5.5.4",
44
- "vite-plugin-commonjs": "^0.10.3",
45
- "reactstrap": "^9.2.2"
90
+ "source-map-loader": "^5.0.0",
91
+ "styled-components": "^6.1.12"
46
92
  },
47
93
  "devDependencies": {
48
94
  "@eslint/js": "^9.31.0",
@@ -60,10 +106,15 @@
60
106
  "eslint-plugin-react-hooks": "^5.2.0",
61
107
  "eslint-plugin-react-refresh": "^0.4.20",
62
108
  "globals": "^16.3.0",
109
+ "react": "^18.3.1",
110
+ "react-dom": "^18.3.1",
111
+ "react-router": "^6.26.2",
112
+ "react-router-dom": "^6.26.2",
63
113
  "sass-embedded": "^1.79.4",
64
114
  "typescript": "^5.5.3",
65
115
  "typescript-eslint": "^8.38.0",
66
116
  "vite": "^7.0.1",
117
+ "vite-plugin-commonjs": "^0.10.3",
67
118
  "vitest": "^3.2.4"
68
119
  }
69
120
  }
package/eslint.config.mjs DELETED
@@ -1,45 +0,0 @@
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.html DELETED
@@ -1,17 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Siam - UI - utils</title>
8
- <link
9
- rel="stylesheet"
10
- href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css"
11
- />
12
- </head>
13
- <body>
14
- <div id="root"></div>
15
- <script type="module" src="/src/main.jsx"></script>
16
- </body>
17
- </html>
package/src/App.css DELETED
@@ -1,47 +0,0 @@
1
- #root {
2
- max-width: 1280px;
3
- margin: 0 auto;
4
- padding: 2rem;
5
- text-align: center;
6
- }
7
-
8
- .logo {
9
- height: 6em;
10
- padding: 1.5em;
11
- will-change: filter;
12
- transition: filter 300ms;
13
- }
14
- .logo:hover {
15
- filter: drop-shadow(0 0 2em #646cffaa);
16
- }
17
- .logo.react:hover {
18
- filter: drop-shadow(0 0 2em #61dafbaa);
19
- }
20
-
21
- @keyframes logo-spin {
22
- from {
23
- transform: rotate(0deg);
24
- }
25
- to {
26
- transform: rotate(360deg);
27
- }
28
- }
29
-
30
- @media (prefers-reduced-motion: no-preference) {
31
- a:nth-of-type(2) .logo {
32
- animation: logo-spin infinite 20s linear;
33
- }
34
- }
35
-
36
- .card {
37
- padding: 2em;
38
- }
39
-
40
- .read-the-docs {
41
- color: #888;
42
- }
43
-
44
-
45
- .custom-dropzone-uploader-dni-digital{
46
- display: flex;
47
- }
package/src/App.jsx DELETED
@@ -1,66 +0,0 @@
1
- import { useState } from 'react';
2
- import {
3
- Accordion,
4
- AccordionBody,
5
- AccordionHeader,
6
- AccordionItem,
7
- } from 'reactstrap';
8
- import {
9
- CopyLinkView,
10
- CustomInputsView,
11
- CustomSelectView,
12
- DropzoneUploaderDniDigitalView,
13
- DropzoneUploaderFirmaDigitalView,
14
- DropzoneUploaderView,
15
- TimerView,
16
- VideoCallView,
17
- ViewLayoutView,
18
- } from './test-resources';
19
- import './App.css';
20
- import './assets/css/vendor/bootstrap.min.css';
21
- import './index.css';
22
-
23
- const views = [
24
- { title: 'CopyLink', component: <CopyLinkView /> },
25
- { title: 'CustomInputs', component: <CustomInputsView /> },
26
- { title: 'CustomSelect', component: <CustomSelectView /> },
27
- {
28
- title: 'DropzoneDniDigital',
29
- component: <DropzoneUploaderDniDigitalView />,
30
- },
31
- {
32
- title: 'DropZoneFirmaDigital',
33
- component: <DropzoneUploaderFirmaDigitalView />,
34
- },
35
- { title: 'DropzoneUploader', component: <DropzoneUploaderView /> },
36
- { title: 'Timer', component: <TimerView /> },
37
- { title: 'VideoCall', component: <VideoCallView /> },
38
- { title: 'ViewLayoutGenerico', component: <ViewLayoutView /> },
39
- ];
40
-
41
- const App = () => {
42
- const [open, setOpen] = useState('0');
43
- const toggle = (id) => {
44
- if (open === id) {
45
- setOpen();
46
- } else {
47
- setOpen(id);
48
- }
49
- };
50
-
51
- return (
52
- <Accordion open={open} toggle={toggle}>
53
- {views.map((view, index) => {
54
- const { title, component: vista } = view;
55
- return (
56
- <AccordionItem key={index}>
57
- <AccordionHeader targetId={`${index + 1}`}>{title}</AccordionHeader>
58
- <AccordionBody accordionId={`${index + 1}`}>{vista}</AccordionBody>
59
- </AccordionItem>
60
- );
61
- })}
62
- </Accordion>
63
- );
64
- };
65
-
66
- export default App;
@@ -1,10 +0,0 @@
1
- import { Col } from 'reactstrap';
2
-
3
- const Colxx = (props) => (
4
- <Col {...props} widths={['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl']} />
5
- );
6
-
7
- const Separator = ({ className }) => (
8
- <div className={`separator ${className}`} />
9
- );
10
- export { Colxx, Separator };
@@ -1,8 +0,0 @@
1
- import { components } from 'react-select';
2
-
3
- export const CustomSelectInput = (props) => {
4
- const customProps = { ...props };
5
- delete customProps.autoCorrect;
6
- delete customProps.autoCapitalize;
7
- return <components.Input {...customProps} />;
8
- };
@@ -1,7 +0,0 @@
1
- import { FormattedMessage, injectIntl } from 'react-intl';
2
-
3
- const InjectMassage = (props) => <FormattedMessage {...props} />;
4
-
5
- export default injectIntl(InjectMassage, {
6
- withRef: false,
7
- });