@bahmni/design-system 0.0.1-dev.215 → 0.0.1-dev.217

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.
@@ -1,16 +1,10 @@
1
1
  declare const DEFAULT_DATE_FORMAT = "dd/MM/yyyy";
2
2
  /**
3
- * Detects the browser's locale date format using Intl.DateTimeFormat API.
4
- * Uses formatToParts() to analyze the browser's default date formatting pattern
3
+ * Detects the browser's locale date format using Intl.DateTimeFormat API
5
4
  * and converts it to a date-fns compatible format string.
6
5
  *
7
- * Implementation:
8
- * - Uses Intl.DateTimeFormat().formatToParts() to get locale date components
9
- * - Maps date parts (day, month, year) to date-fns tokens (dd, MM, yyyy)
10
- * - Preserves literal separators (/, -, ., spaces) from the locale
11
- * - Falls back to DEFAULT_DATE_FORMAT (dd/MM/yyyy) if parsing fails
12
- *
13
6
  * @returns Date format string in date-fns format (e.g., 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd')
7
+ * Falls back to DEFAULT_DATE_FORMAT (dd/MM/yyyy) if parsing fails
14
8
  */
15
9
  export declare function getBrowserLocaleDateFormat(): string;
16
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"dateFormatUtils.d.ts","sourceRoot":"","sources":["../../../src/molecules/datePicker/dateFormatUtils.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,mBAAmB,eAAe,CAAC;AA8CzC;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAoBnD;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,IAAI;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAaA;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"dateFormatUtils.d.ts","sourceRoot":"","sources":["../../../src/molecules/datePicker/dateFormatUtils.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,mBAAmB,eAAe,CAAC;AA8CzC;;;;;;GAMG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAoBnD;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,IAAI;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAaA;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/design-system",
3
- "version": "0.0.1-dev.215",
3
+ "version": "0.0.1-dev.217",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",