labellife-design-tool 2.4.0 → 2.4.1

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/cjs/index.js CHANGED
@@ -7274,18 +7274,30 @@ var MONTH_NAMES$1 = ['January', 'February', 'March', 'April', 'May', 'June', 'Ju
7274
7274
  var DATE_FORMATS = [{
7275
7275
  key: 'MM-DD-YYYY',
7276
7276
  label: 'MM-DD-YYYY'
7277
+ }, {
7278
+ key: 'DD-MM-YYYY',
7279
+ label: 'DD-MM-YYYY'
7277
7280
  }, {
7278
7281
  key: 'MMMM-DD-YYYY',
7279
7282
  label: 'Month Name-DD-YYYY'
7283
+ }, {
7284
+ key: 'DD-MMMM-YYYY',
7285
+ label: 'DD-Month Name-YYYY'
7280
7286
  }, {
7281
7287
  key: 'MMMM-DD',
7282
7288
  label: 'Month Name-DD'
7289
+ }, {
7290
+ key: 'DD-MMMM',
7291
+ label: 'DD-Month Name'
7283
7292
  }, {
7284
7293
  key: 'YYYY',
7285
7294
  label: 'YYYY'
7286
7295
  }, {
7287
7296
  key: 'MM-DD',
7288
7297
  label: 'MM-DD'
7298
+ }, {
7299
+ key: 'DD-MM',
7300
+ label: 'DD-MM'
7289
7301
  }];
7290
7302
  function formatDate$1(date, format) {
7291
7303
  var mm = String(date.getMonth() + 1).padStart(2, '0');
@@ -7295,14 +7307,22 @@ function formatDate$1(date, format) {
7295
7307
  switch (format) {
7296
7308
  case 'MM-DD-YYYY':
7297
7309
  return "".concat(mm, "-").concat(dd, "-").concat(yyyy);
7310
+ case 'DD-MM-YYYY':
7311
+ return "".concat(dd, "-").concat(mm, "-").concat(yyyy);
7298
7312
  case 'MMMM-DD-YYYY':
7299
7313
  return "".concat(monthName, "-").concat(dd, "-").concat(yyyy);
7314
+ case 'DD-MMMM-YYYY':
7315
+ return "".concat(dd, "-").concat(monthName, "-").concat(yyyy);
7300
7316
  case 'MMMM-DD':
7301
7317
  return "".concat(monthName, "-").concat(dd);
7318
+ case 'DD-MMMM':
7319
+ return "".concat(dd, "-").concat(monthName);
7302
7320
  case 'YYYY':
7303
7321
  return yyyy;
7304
7322
  case 'MM-DD':
7305
7323
  return "".concat(mm, "-").concat(dd);
7324
+ case 'DD-MM':
7325
+ return "".concat(dd, "-").concat(mm);
7306
7326
  default:
7307
7327
  return "".concat(mm, "-").concat(dd, "-").concat(yyyy);
7308
7328
  }