design-system-next 2.7.31 → 2.7.32

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.
@@ -8108,7 +8108,7 @@ const P3 = (e, t) => {
8108
8108
  s.value !== null && (s.value.click(), h.value = y);
8109
8109
  }, f = (y) => {
8110
8110
  h.value !== null && (a.value[h.value] = y.target.files[0], h.value = null);
8111
- }, m = L(() => e.supportedFileTypeLabel && !e.fileTypes ? "" : e.fileTypes.map((N) => {
8111
+ }, m = L(() => e.supportedFileTypeLabel ? e.supportedFileTypeLabel : e.fileTypes ? e.fileTypes.map((N) => {
8112
8112
  switch (N) {
8113
8113
  case "application/msword":
8114
8114
  return "MS WORD";
@@ -8123,7 +8123,7 @@ const P3 = (e, t) => {
8123
8123
  default:
8124
8124
  return N.split("/")[1].toUpperCase();
8125
8125
  }
8126
- }).join(", "));
8126
+ }).join(", ") : "");
8127
8127
  return {
8128
8128
  fileUploadRef: r,
8129
8129
  initialInputFileRef: n,
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-system-next",
3
3
  "private": false,
4
- "version": "2.7.31",
4
+ "version": "2.7.32",
5
5
  "main": "./dist/design-system-next.js",
6
6
  "module": "./dist/design-system-next.js",
7
7
  "repository": {
@@ -135,7 +135,7 @@ export const useFileUpload = (props: FileUploadPropTypes, emit: SetupContext<Fil
135
135
 
136
136
  // Sublabel for supported file types
137
137
  const supportedFileTypeLabel = computed(() => {
138
- if (props.supportedFileTypeLabel)
138
+ if (props.supportedFileTypeLabel) return props.supportedFileTypeLabel
139
139
  if (!props.fileTypes) return "";
140
140
 
141
141
  const parsedFileTypes = props.fileTypes.map((fileType) => {