forstok-ui-lib 6.19.2 → 6.19.3

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": "forstok-ui-lib",
3
- "version": "6.19.2",
3
+ "version": "6.19.3",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -8,9 +8,10 @@ type TUpload = InputHTMLAttributes<HTMLInputElement> & {
8
8
  children?: ReactNode
9
9
  evChange?: (arg0: FileList) => void
10
10
  evCreateMessage?: TMessageFunction
11
+ label?: string
11
12
  }
12
13
 
13
- const UploadDragDropComponent = ({ children, id, name, evChange, evCreateMessage, ...props }: TUpload) => {
14
+ const UploadDragDropComponent = ({ children, id, name, evChange, evCreateMessage, label, ...props }: TUpload) => {
14
15
  const { accept } = props;
15
16
 
16
17
  const [dragActive, setDragActive] = useState<boolean>(false);
@@ -71,7 +72,7 @@ const UploadDragDropComponent = ({ children, id, name, evChange, evCreateMessage
71
72
  ) :
72
73
  (
73
74
  <UploadDragDropFileNamePlaceholder>
74
- Drag & Drop file here to upload, or <span>browse</span>.
75
+ {label ?? 'Drag & Drop file here to upload, or '}<span>browse</span>.
75
76
  </UploadDragDropFileNamePlaceholder>
76
77
  )
77
78
  }