@platformatic/ui-components 0.7.21 → 0.7.23
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
background-color: rgba(0, 0, 0, 0.95);
|
|
4
4
|
}
|
|
5
5
|
.blur-absolute {
|
|
6
|
-
@apply absolute top-0 left-0 w-full h-full z-
|
|
6
|
+
@apply absolute top-0 left-0 w-full h-full z-20 bg-rich-black/95;
|
|
7
7
|
}
|
|
8
8
|
.blur-fixed {
|
|
9
9
|
@apply fixed top-0 left-0 w-screen h-full z-20 bg-rich-black/95 flex justify-center items-center;
|
|
@@ -105,7 +105,7 @@ function InputFileUpload ({
|
|
|
105
105
|
<label
|
|
106
106
|
for={idInputFile}
|
|
107
107
|
className={focus ? focusedClassName() : normalClassName()}
|
|
108
|
-
>{file !== null ? file.name :
|
|
108
|
+
>{file !== null ? file.name : inputPlaceholder}
|
|
109
109
|
</label>
|
|
110
110
|
{file !== null && <span className={`${styles.afterInputDetail} ${detailTextClassName}`} onClick={() => onClickDetail()}>Detail</span>}
|
|
111
111
|
</div>
|
|
@@ -32,11 +32,12 @@ export const Default = Template.bind({})
|
|
|
32
32
|
|
|
33
33
|
Default.args = {
|
|
34
34
|
name: 'test',
|
|
35
|
-
placeholder: '
|
|
35
|
+
placeholder: 'Select txt file',
|
|
36
36
|
borderColor: 'main-dark-blue',
|
|
37
37
|
beforeIcon: {
|
|
38
38
|
iconName: 'AddIcon',
|
|
39
39
|
color: RICH_BLACK,
|
|
40
40
|
onClick: null
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
acceptFiles: '.txt'
|
|
42
43
|
}
|