@platformatic/ui-components 0.7.21 → 0.7.22

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@platformatic/ui-components",
3
3
  "description": "Platformatic UI Components",
4
- "version": "0.7.21",
4
+ "version": "0.7.22",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -105,7 +105,7 @@ function InputFileUpload ({
105
105
  <label
106
106
  for={idInputFile}
107
107
  className={focus ? focusedClassName() : normalClassName()}
108
- >{file !== null ? file.name : 'Select .env file'}
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: 'Platformatic',
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
  }