@bytebrand/fe-ui-core 4.2.62 → 4.2.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.62",
3
+ "version": "4.2.64",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -73,12 +73,11 @@ const OrderStatusSection = ({
73
73
  { label: 'vehicle registration', value: getFormattedPrice(registrationCost, '$,.2f', ' €') },
74
74
  { label: 'license plates', value: getFormattedPrice(licensePlateCost, '$,.2f', ' €') },
75
75
  { label: 'Delivery', value: getFormattedPrice(transportationCost, '$,.2f', ' €') },
76
- buyingType !== 'buy' &&
76
+ ...buyingType !== 'buy' ? [
77
77
  { label: `${buyingType} rate`, value: `${getFormattedPrice(monthlyInstallment, '$,.2f', '', '€')} per month` },
78
- buyingType !== 'buy' &&
79
78
  { label: 'Running time (months)', value: `${paybackPeriod} months` },
80
- buyingType !== 'buy' &&
81
79
  { label: 'Deposit', value: getFormattedPrice(deposit, '$,.2f', ' €') }
80
+ ] : []
82
81
  ],
83
82
  overallRate: {
84
83
  label: 'Your overall rate',
package/utils.ts CHANGED
@@ -1,3 +1,5 @@
1
+ // Date utils
2
+
1
3
  export {
2
4
  timestampToDate,
3
5
  formatTimestamp,
@@ -14,7 +16,25 @@ export {
14
16
  getYears,
15
17
  createDateAsUTC
16
18
  } from './source/framework/utils/DateUtils';
17
- export { getPriceRating, getPriceRatingConfig } from './source/framework/utils/CommonUtils';
19
+
20
+ // Common utils
21
+
22
+ export {
23
+ getPriceRating,
24
+ getPriceRatingConfig,
25
+ addPrefixToKeys,
26
+ arrToObj,
27
+ checkRangeValuesOnEqual,
28
+ fixNumber,
29
+ formatMileage,
30
+ getChipFilterValue,
31
+ getFormattedPrice,
32
+ getGroupValuesForQuery,
33
+ getOfferSliders,
34
+ preloadNearbyImages,
35
+ sliceLessThan,
36
+ sliceMoreThan
37
+ } from './source/framework/utils/CommonUtils';
18
38
 
19
39
  export {
20
40
  getVehicleDetails,