@ews-admin/global-design-system 1.10.0 → 1.12.0

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
@@ -10,7 +10,7 @@ const LOCAL_PORTS = {
10
10
  bff: 8082,
11
11
  loginBff: 8080,
12
12
  app: 3000,
13
- login: 4001,
13
+ login: 3001,
14
14
  dashboard: 3002,
15
15
  admin: 3008,
16
16
  };
@@ -155,19 +155,14 @@ function formatCurrency(amount, currency = CURRENCY) {
155
155
  currency,
156
156
  }).format(amount);
157
157
  }
158
- /**
159
- * Utility function to format date
160
- * @param date - Date to format
161
- * @param options - Intl.DateTimeFormat options
162
- * @returns Formatted date string
163
- */
164
158
  function formatDate(date, options) {
159
+ const { locale = "en-US", ...intlOptions } = options ?? {};
165
160
  const dateObj = new Date(date);
166
- return new Intl.DateTimeFormat("en-US", {
161
+ return new Intl.DateTimeFormat(locale, {
167
162
  year: "numeric",
168
163
  month: "long",
169
164
  day: "numeric",
170
- ...options,
165
+ ...intlOptions,
171
166
  }).format(dateObj);
172
167
  }
173
168
  /**