@skedulo/sked-ui 21.9.3 → 21.10.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.
@@ -0,0 +1,13 @@
1
+ export type UnitSystems = 'metric' | 'imperial';
2
+ export type DateFormats = 'MonthDayYear' | 'DayMonthYear';
3
+ /**
4
+ * Converts user-friendly date format strings to date-fns format strings
5
+ * @returns date-fns compatible format string
6
+ */
7
+ export declare const getDisplayDateFormat: (format: string, preference?: DateFormats) => string;
8
+ /**
9
+ * Returns the input format string for typing dates in inputs.
10
+ * Uses app preferences if available, otherwise falls back to the provided formatString.
11
+ * @returns date-fns compatible input format string
12
+ */
13
+ export declare const getInputDateFormat: (formatString: string, preference?: DateFormats) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/sked-ui",
3
- "version": "21.9.3",
3
+ "version": "21.10.0",
4
4
  "license": "UNLICENSED",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/yarn.lock CHANGED
@@ -8459,9 +8459,9 @@ electron-to-chromium@^1.5.73:
8459
8459
  integrity sha512-MN1nahVHAQMOz6dz6bNZ7apgqc9InZy7Ja4DBEVCTdeiUcegbyOYE9bi/f2Z/z6ZxLi0RxLpyJ3EGe+4h3w73A==
8460
8460
 
8461
8461
  elliptic@^6.5.3:
8462
- version "6.5.4"
8463
- resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
8464
- integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
8462
+ version "6.6.1"
8463
+ resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.6.1.tgz#3b8ffb02670bf69e382c7f65bf524c97c5405c06"
8464
+ integrity sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==
8465
8465
  dependencies:
8466
8466
  bn.js "^4.11.9"
8467
8467
  brorand "^1.1.0"