siam-ui-utils 2.0.11 → 2.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "keywords": [
5
5
  "ampf-react",
6
6
  "ampf-utils",
@@ -0,0 +1,66 @@
1
+ .dropzone-upload-button{
2
+ padding: 25;
3
+ border-radius: 5px !important;
4
+ cursor: pointer;
5
+ color: #fff;
6
+ width: 10rem !important;
7
+ height: 2rem !important;
8
+ line-height: 1.5 !important;
9
+ font-size: 13px;
10
+ text-align: center;
11
+ vertical-align: middle !important;
12
+ border: none;
13
+ padding-top: 0.5rem;
14
+ margin-top: 0.5rem;
15
+ background-color: #af251b;
16
+ &:hover {
17
+ background-color: rgb(108, 31, 1);
18
+ }
19
+ }
20
+ .dropzone-upload-frame{
21
+ border: 0px !important;
22
+ overflow: 'none' !important;
23
+ }
24
+ .dropzone-upload-previewContainer {
25
+ display: flex;
26
+ flex-direction: row;
27
+ align-items: center;
28
+ justify-content: space-between;
29
+ position: relative;
30
+ width: 100px;
31
+ min-height: 60px;
32
+ z-index: 1;
33
+ border-bottom: 1px solid #ECECEC;
34
+ box-sizing: border-box;
35
+ }
36
+
37
+ .dropzone-upload-previewImage {
38
+ width: 60rem;
39
+ max-height: 60px;
40
+ max-width: 10rem;
41
+ border-radius: 4px;
42
+ padding-right: 1rem;
43
+ }
44
+
45
+ .dropzone-upload-delete-btn {
46
+ width: 2rem;
47
+ line-height: 1.5;
48
+ border : 0;
49
+ color: #ff0000;
50
+ background-color: #f8f8f8;
51
+ padding-right:1rem;
52
+ }
53
+
54
+ .dropzone-upload-file-name-container {
55
+ position: relative;
56
+ display: inline-block;
57
+ max-width: 150px; /* Ajusta este valor para aumentar el ancho */
58
+ }
59
+
60
+ .dropzone-upload-file-name {
61
+ padding-right: 1rem;
62
+ white-space: nowrap;
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ max-width: 150px; /* Ajusta este valor para aumentar el ancho */
66
+ }
@@ -5,6 +5,7 @@ import Dropzone from 'react-dropzone-uploader'
5
5
  import { NotificationManager } from 'react-notifications'
6
6
  import 'react-dropzone-uploader/dist/styles.css'
7
7
  import { IconButtonSvg, pdfImage } from '../'
8
+ import './dropzone-uploader.css'
8
9
 
9
10
  const maxSize = 7
10
11
  export const DropzoneUploader = ({
@@ -4,6 +4,7 @@ import { DropzoneUploader, Colxx } from '../'
4
4
  import { TAKE_PHOTO } from '../constants'
5
5
  import imgHacerFoto from '../assets/img/take-photo.png'
6
6
 
7
+ // eslint-disable-next-line react/prop-types
7
8
  export const TomarFoto = ({ onFilesSelectedSelfie, isMobile = false }) => {
8
9
  const [filesTotalSelectedSelfie, setTotalFilesSelectedSelfie] = useState(0)
9
10
  const {