@@ -24,31 +24,54 @@ const sections = [
24
24
</ thead >
25
25
< tbody >
26
26
< tr >
27
- < td > mode </ td >
27
+ < td > accept </ td >
28
28
< td >
29
- < TableCode > 'file' | 'filedrop' | 'dropzone' </ TableCode >
29
+ < TableCode > string </ TableCode >
30
30
</ td >
31
- < td > Available modes of the component.</ td >
32
31
< td >
33
- < TableCode > 'file'</ TableCode >
32
+ The file types that the component accepts. Its value must be one of all the possible values of the HTML
33
+ file input's < Code > accept</ Code > attribute. Please check the documentation{ " " }
34
+ < DxcLink href = "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept" > here</ DxcLink > .
34
35
</ td >
36
+ < td > -</ td >
35
37
</ tr >
36
38
< tr >
37
- < td > label </ td >
39
+ < td > buttonLabel </ td >
38
40
< td >
39
41
< TableCode > string</ TableCode >
40
42
</ td >
41
- < td > Text to be placed above the component .</ td >
43
+ < td > Text to be placed inside the button .</ td >
42
44
< td > -</ td >
43
45
</ tr >
44
46
< tr >
45
- < td > buttonLabel</ td >
46
47
< td >
47
- < TableCode > string</ TableCode >
48
+ < DxcFlex direction = "column" gap = "var(--spacing-gap-xs)" alignItems = "baseline" >
49
+ < StatusBadge status = "required" />
50
+ callbackFile
51
+ </ DxcFlex >
52
+ </ td >
53
+ < td >
54
+ < TableCode >
55
+ { "(val: {files: { file: File, error?: string, preview?: string }[], error?: string}) => void" }
56
+ </ TableCode >
57
+ </ td >
58
+ < td >
59
+ This function will be called when the user adds or deletes a file. That is, when the file input's inner
60
+ value is modified. The list of files will be sent as a parameter. In this function, the files can be
61
+ updated or returned as they come. These files must be passed to the value in order to be shown.
48
62
</ td >
49
- < td > Text to be placed inside the button.</ td >
50
63
< td > -</ td >
51
64
</ tr >
65
+ < tr >
66
+ < td > disabled</ td >
67
+ < td >
68
+ < TableCode > boolean</ TableCode >
69
+ </ td >
70
+ < td > If true, the component will be disabled.</ td >
71
+ < td >
72
+ < TableCode > false</ TableCode >
73
+ </ td >
74
+ </ tr >
52
75
< tr >
53
76
< td > dropAreaLabel</ td >
54
77
< td >
@@ -66,25 +89,21 @@ const sections = [
66
89
< td > -</ td >
67
90
</ tr >
68
91
< tr >
69
- < td > accept </ td >
92
+ < td > label </ td >
70
93
< td >
71
94
< TableCode > string</ TableCode >
72
95
</ td >
73
- < td >
74
- The file types that the component accepts. Its value must be one of all the possible values of the HTML
75
- file input's < Code > accept</ Code > attribute. Please check the documentation{ " " }
76
- < DxcLink href = "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept" > here</ DxcLink > .
77
- </ td >
96
+ < td > Text to be placed above the component.</ td >
78
97
< td > -</ td >
79
98
</ tr >
80
99
< tr >
81
- < td > minSize </ td >
100
+ < td > margin </ td >
82
101
< td >
83
- < TableCode > number </ TableCode >
102
+ < TableCode > 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin </ TableCode >
84
103
</ td >
85
104
< td >
86
- The minimum file size (in bytes) allowed. If the size of the file does not comply this value, the file
87
- will have an error .
105
+ Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and
106
+ 'right' properties in order to specify different margin sizes .
88
107
</ td >
89
108
< td > -</ td >
90
109
</ tr >
@@ -100,43 +119,24 @@ const sections = [
100
119
< td > -</ td >
101
120
</ tr >
102
121
< tr >
122
+ < td > minSize</ td >
103
123
< td >
104
- < DxcFlex direction = "column" gap = "var(--spacing-gap-xs)" alignItems = "baseline" >
105
- < StatusBadge status = "required" />
106
- value
107
- </ DxcFlex >
108
- </ td >
109
- < td >
110
- < TableCode > { "{ file: File, error?: string, preview?: string }[]" } </ TableCode >
124
+ < TableCode > number</ TableCode >
111
125
</ td >
112
126
< td >
113
- An array of files representing the selected files. Each file has the following properties:
114
- < ul >
115
- < li >
116
- < b > file</ b > : Selected file.
117
- </ li >
118
- < li >
119
- < b > error</ b > : Error of the file. If it is defined, it will be shown and the file item will be mark as
120
- invalid.
121
- </ li >
122
- < li >
123
- < b > preview</ b > : Preview of the file.
124
- </ li >
125
- </ ul >
127
+ The minimum file size (in bytes) allowed. If the size of the file does not comply this value, the file
128
+ will have an error.
126
129
</ td >
127
130
< td > -</ td >
128
131
</ tr >
129
132
< tr >
130
- < td > showPreview</ td >
131
- < td >
132
- < TableCode > boolean</ TableCode >
133
- </ td >
133
+ < td > mode</ td >
134
134
< td >
135
- If true, if the file is an image, a preview of it will be shown. If not, an icon referring to the file
136
- type will be shown.
135
+ < TableCode > 'file' | 'filedrop' | 'dropzone'</ TableCode >
137
136
</ td >
137
+ < td > Available modes of the component.</ td >
138
138
< td >
139
- < TableCode > false </ TableCode >
139
+ < TableCode > 'file' </ TableCode >
140
140
</ td >
141
141
</ tr >
142
142
< tr >
@@ -154,42 +154,40 @@ const sections = [
154
154
</ td >
155
155
</ tr >
156
156
< tr >
157
- < td > disabled</ td >
157
+ < td >
158
+ < DxcFlex direction = "column" gap = "var(--spacing-gap-xs)" alignItems = "baseline" >
159
+ < StatusBadge status = "new" />
160
+ optional
161
+ </ DxcFlex >
162
+ </ td >
158
163
< td >
159
164
< TableCode > boolean</ TableCode >
160
165
</ td >
161
- < td > If true, the component will be disabled .</ td >
166
+ < td > If true, the input will be optional, showing '(Optional)' next to the label .</ td >
162
167
< td >
163
168
< TableCode > false</ TableCode >
164
169
</ td >
165
170
</ tr >
166
171
< tr >
172
+ < td > ref</ td >
167
173
< td >
168
- < DxcFlex direction = "column" gap = "var(--spacing-gap-xs)" alignItems = "baseline" >
169
- < StatusBadge status = "required" />
170
- callbackFile
171
- </ DxcFlex >
172
- </ td >
173
- < td >
174
- < TableCode > { "(files: { file: File, error?: string, preview?: string }[]) => void" } </ TableCode >
175
- </ td >
176
- < td >
177
- This function will be called when the user adds or deletes a file. That is, when the file input's inner
178
- value is modified. The list of files will be sent as a parameter. In this function, the files can be
179
- updated or returned as they come. These files must be passed to the value in order to be shown.
174
+ < TableCode > { "React.Ref<HTMLDivElement>" } </ TableCode >
180
175
</ td >
176
+ < td > Reference to the component.</ td >
181
177
< td > -</ td >
182
178
</ tr >
183
179
< tr >
184
- < td > margin </ td >
180
+ < td > showPreview </ td >
185
181
< td >
186
- < TableCode > 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin </ TableCode >
182
+ < TableCode > boolean </ TableCode >
187
183
</ td >
188
184
< td >
189
- Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and
190
- 'right' properties in order to specify different margin sizes.
185
+ If true, if the file is an image, a preview of it will be shown. If not, an icon referring to the file
186
+ type will be shown.
187
+ </ td >
188
+ < td >
189
+ < TableCode > false</ TableCode >
191
190
</ td >
192
- < td > -</ td >
193
191
</ tr >
194
192
< tr >
195
193
< td > tabIndex</ td >
@@ -204,11 +202,30 @@ const sections = [
204
202
</ td >
205
203
</ tr >
206
204
< tr >
207
- < td > ref</ td >
208
205
< td >
209
- < TableCode > { "React.Ref<HTMLDivElement>" } </ TableCode >
206
+ < DxcFlex direction = "column" gap = "var(--spacing-gap-xs)" alignItems = "baseline" >
207
+ < StatusBadge status = "required" />
208
+ value
209
+ </ DxcFlex >
210
+ </ td >
211
+ < td >
212
+ < TableCode > { "{ file: File, error?: string, preview?: string }[]" } </ TableCode >
213
+ </ td >
214
+ < td >
215
+ An array of files representing the selected files. Each file has the following properties:
216
+ < ul >
217
+ < li >
218
+ < b > file</ b > : Selected file.
219
+ </ li >
220
+ < li >
221
+ < b > error</ b > : Error of the file. If it is defined, it will be shown and the file item will be mark as
222
+ invalid.
223
+ </ li >
224
+ < li >
225
+ < b > preview</ b > : Preview of the file.
226
+ </ li >
227
+ </ ul >
210
228
</ td >
211
- < td > Reference to the component.</ td >
212
229
< td > -</ td >
213
230
</ tr >
214
231
</ tbody >
0 commit comments