@ews-admin/global-design-system 1.11.0 → 1.13.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
@@ -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
  /**
@@ -33244,6 +33239,14 @@ const Modal = ({ isOpen, onClose, title, children, variant = "info", size = "md"
33244
33239
  lg: "max-w-lg",
33245
33240
  xl: "max-w-xl",
33246
33241
  "2xl": "max-w-2xl",
33242
+ "3xl": "max-w-3xl",
33243
+ "4xl": "max-w-4xl",
33244
+ "5xl": "max-w-5xl",
33245
+ "6xl": "max-w-6xl",
33246
+ "7xl": "max-w-7xl",
33247
+ "8xl": "max-w-8xl",
33248
+ "9xl": "max-w-9xl",
33249
+ "10xl": "max-w-10xl",
33247
33250
  full: "max-w-full",
33248
33251
  };
33249
33252
  return sizeMap[size] || sizeMap.md;