@wayke-se/components-react 3.0.0-beta.5 → 3.0.0-beta.7

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/dist/index.js CHANGED
@@ -2131,7 +2131,7 @@
2131
2131
 
2132
2132
  // src/utils/formats.ts
2133
2133
  var import_date_fns = __require("date-fns");
2134
- var import_locale = __require("date-fns/locale");
2134
+ var import_sv = __toESM(__require("date-fns/locale/sv"));
2135
2135
 
2136
2136
  // src/utils/constants.ts
2137
2137
  var MANUFACTURER = "manufacturer";
@@ -2210,11 +2210,11 @@
2210
2210
  const date = new Date(value);
2211
2211
  switch (format) {
2212
2212
  case dateTimeFormat.YearMonth:
2213
- return (0, import_date_fns.format)(date, "MMMM yyyy", { locale: import_locale.sv });
2213
+ return (0, import_date_fns.format)(date, "MMMM yyyy", { locale: import_sv.default });
2214
2214
  case dateTimeFormat.DayMonth:
2215
- return (0, import_date_fns.format)(date, "d MMMM yyyy", { locale: import_locale.sv });
2215
+ return (0, import_date_fns.format)(date, "d MMMM yyyy", { locale: import_sv.default });
2216
2216
  default:
2217
- return (0, import_date_fns.format)(date, "yyyy-MM-dd HH:mm", { locale: import_locale.sv });
2217
+ return (0, import_date_fns.format)(date, "yyyy-MM-dd HH:mm", { locale: import_sv.default });
2218
2218
  }
2219
2219
  }
2220
2220
  };