@citygross/components 0.7.191 → 0.7.192

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.
@@ -343,6 +343,31 @@ function useWindowSize() {
343
343
  return { width: windowSize.width, height: windowSize.height };
344
344
  }
345
345
 
346
+ function comparisonTypes(type) {
347
+ switch (type) {
348
+ case 'KGM':
349
+ return 'kg';
350
+ case 'G':
351
+ return 'g';
352
+ case 'LTR':
353
+ return 'l';
354
+ case 'PCE':
355
+ return 'st';
356
+ case 'H87':
357
+ return 'st';
358
+ case 'm':
359
+ return 'm';
360
+ case 'MM':
361
+ return 'm';
362
+ case 'MTR':
363
+ return 'm';
364
+ case 'DSK':
365
+ return 'disk';
366
+ case 'TVA':
367
+ return 'tvätt';
368
+ }
369
+ }
370
+
346
371
  var phoneRegex = /^[0-9]{7,14}$/;
347
372
  var nameRegex = /^[a-ö, A-Ö]$/;
348
373
  var zipRegex = /(^\d{5}$)|(^\d{3} \d{2}$)/;
@@ -18618,6 +18643,7 @@ var Locale;
18618
18643
  moment.locale(Locale.swedish);
18619
18644
 
18620
18645
  index.__exports.capitalizeFirstLetter = capitalizeFirstLetter;
18646
+ index.__exports.comparisonTypes = comparisonTypes;
18621
18647
  index.__exports.emailRegex = emailRegex;
18622
18648
  index.__exports.formatPrice = formatPrice;
18623
18649
  index.__exports.formatPriceWithDecimalsReduced = formatPriceWithDecimalsReduced;