@limetech/lime-elements 35.0.0-next.31 → 35.0.0-next.34

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.
@@ -121,7 +121,7 @@ const filetypeIconTable = {
121
121
  dbf: DATA_ICON,
122
122
  };
123
123
  function getIconForFile(extension) {
124
- return filetypeIconTable[extension] || DEFAULT_ICON;
124
+ return filetypeIconTable[extension.toLowerCase()] || DEFAULT_ICON;
125
125
  }
126
126
 
127
127
  const DEFAULT_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
@@ -233,7 +233,8 @@ const filetypeFillColorTable = {
233
233
  dbf: DATA_ICON_FILL_COLOR,
234
234
  };
235
235
  function getIconFillColorForFile(extension) {
236
- return filetypeFillColorTable[extension] || DEFAULT_ICON_FILL_COLOR;
236
+ return (filetypeFillColorTable[extension.toLowerCase()] ||
237
+ DEFAULT_ICON_FILL_COLOR);
237
238
  }
238
239
 
239
240
  const DEFAULT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
@@ -345,7 +346,8 @@ const filetypeBackgroundColorTable = {
345
346
  dbf: DATA_ICON_BACKGROUND_COLOR,
346
347
  };
347
348
  function getIconBackgroundColorForFile(extension) {
348
- return (filetypeBackgroundColorTable[extension] || DEFAULT_ICON_BACKGROUND_COLOR);
349
+ return (filetypeBackgroundColorTable[extension.toLowerCase()] ||
350
+ DEFAULT_ICON_BACKGROUND_COLOR);
349
351
  }
350
352
 
351
353
  function getFileIcon(file) {