@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.
- package/dist/components/datepicker/Datepicker.d.ts +6 -1
- package/dist/index.js +426 -381
- package/dist/utils/config-utils.d.ts +13 -0
- package/package.json +1 -1
- package/yarn.lock +3 -3
|
@@ -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
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.
|
|
8463
|
-
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.
|
|
8464
|
-
integrity sha512-
|
|
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"
|