@procore/core-react 11.11.0-rc.5 → 11.11.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/FileSelect/GridSource/GridSource.js +1 -1
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +11 -11
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +698 -698
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +71 -71
- package/dist/_typedoc/Modal/Modal.types.json +28 -28
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +26 -26
- package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- package/dist/_typedoc/Pill/Pill.types.json +1 -1
- package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
- package/dist/_typedoc/Popover/Popover.types.json +10 -10
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +32 -32
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +94 -94
- package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +10 -10
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +8 -8
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_utils/dateTime.d.ts +5 -1
- package/dist/_utils/dateTime.js +27 -6
- package/dist/_utils/dateTime.js.map +1 -1
- package/package.json +5 -5
- package/dist/_utils/__tests__/dateTime.d.ts +0 -1
- package/dist/_utils/__tests__/dateTime.js +0 -114
- package/dist/_utils/__tests__/dateTime.js.map +0 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typeahead/Typeahead.types.ts#L15"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "onChange",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typeahead/Typeahead.types.ts#L19"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "<span>\n Change the HTML tag. This{' '}\n <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n prop is from styled-components\n </Link>\n .<em>WARNING</em>: If using TypeScript, it will not switch types and\n some props may error. You can add <Code>// @ts-expect-error</Code>.\n See{' '}\n <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n styled-components issue\n </Link>\n .\n</span>",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n Change the HTML tag. This{' '}\n <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n prop is from styled-components\n </Link>\n .<em>WARNING</em>: If using TypeScript, it will not switch types and\n some props may error. You can add <Code>// @ts-expect-error</Code>.\n See{' '}\n <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n styled-components issue\n </Link>\n .\n</span></div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typography/Typography.types.ts#L35"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "children",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "<span>\n When children are a string or multiple elements, they will be wrapped\n by a <Code>span</Code>. When it is a single element, classnames will\n be added to it instead\n</span>",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n When children are a string or multiple elements, they will be wrapped\n by a <Code>span</Code>. When it is a single element, classnames will\n be added to it instead\n</span></div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typography/Typography.types.ts#L17"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "className",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Additional classNames",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/_utils/types.ts#L50"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "color",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"description": "<span>\n Changes font color, can be any of the{' '}\n <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n strings\n</span>",
|
|
41
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n Changes font color, can be any of the{' '}\n <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n strings\n</span></div><dl class=\"tsd-comment-tags\"><dt>default</dt><dd><p>'gray15'</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
42
42
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
43
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
43
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typography/Typography.types.ts#L46"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "intent",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"description": "Changes the size of the font",
|
|
51
51
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes the size of the font</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
52
52
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
53
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
53
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typography/Typography.types.ts#L52"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "italic",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"description": "Applies `font-style: italic` if enabled",
|
|
61
61
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Applies <code>font-style: italic</code> if enabled</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
62
62
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
63
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
63
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typography/Typography.types.ts#L58"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "style",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"description": "Additional CSS styles",
|
|
71
71
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
72
72
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
73
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
73
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/_utils/types.ts#L55"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "weight",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"description": "Changes font weight if it is supported in the design system",
|
|
81
81
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes font weight if it is supported in the design system</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
82
82
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
83
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
83
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/Typography/Typography.types.ts#L64"
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
86
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Instead of using the default children, you can pass in your own.",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/_utils/types.ts#L45"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "className",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Additional classNames",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/_utils/types.ts#L50"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "style",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Additional CSS styles",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/ee59e2fb2/packages/core-react/src/_utils/types.ts#L55"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
|
@@ -8,7 +8,11 @@ declare const dateTimePresets: {
|
|
|
8
8
|
};
|
|
9
9
|
export declare type IntlDateTimeOptionPresets = keyof typeof dateTimePresets;
|
|
10
10
|
export declare const getPresetDateTimeOptions: (type: IntlDateTimeOptionPresets) => Intl.DateTimeFormatOptions;
|
|
11
|
-
export declare function intlDateTimeFormat(locale: string, options?: Intl.DateTimeFormatOptions):
|
|
11
|
+
export declare function intlDateTimeFormat(locale: string, options?: Intl.DateTimeFormatOptions): {
|
|
12
|
+
format: (date: Date) => string;
|
|
13
|
+
formatToParts: (date: Date) => Intl.DateTimeFormatPart[];
|
|
14
|
+
resolvedOptions: () => Intl.ResolvedDateTimeFormatOptions;
|
|
15
|
+
};
|
|
12
16
|
export declare function toDate(date: string | Date, log?: string): Date;
|
|
13
17
|
export declare function formatMachineDate(date: Date): string;
|
|
14
18
|
export {};
|
package/dist/_utils/dateTime.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { DateTimeFormatter, } from '@procore/globalization-toolkit';
|
|
13
|
+
import * as R from 'ramda';
|
|
1
14
|
import { getFormatterLocale } from './i18n';
|
|
2
15
|
var dateTimePresets = {
|
|
3
16
|
time: {
|
|
@@ -39,13 +52,17 @@ var pseudoFormatPart = function (_a) {
|
|
|
39
52
|
};
|
|
40
53
|
function formatterFactory(formatterLocale, options) {
|
|
41
54
|
try {
|
|
42
|
-
return new
|
|
55
|
+
return new DateTimeFormatter(transformDateOptions(formatterLocale, options));
|
|
43
56
|
}
|
|
44
57
|
catch (error) {
|
|
45
58
|
console.error("@procore/core-react Intl.DateTimeFormat error for locale ".concat(formatterLocale, ". Will fall back to en-US"), error);
|
|
46
|
-
return new
|
|
59
|
+
return new DateTimeFormatter(transformDateOptions('en-US', options));
|
|
47
60
|
}
|
|
48
61
|
}
|
|
62
|
+
function transformDateOptions(formatterLocale, options) {
|
|
63
|
+
var isDefined = function (val) { return val !== undefined; };
|
|
64
|
+
return R.pickBy(isDefined, __assign({ locale: formatterLocale }, options));
|
|
65
|
+
}
|
|
49
66
|
var mapFormatToParts = function (parts) { return parts.map(pseudoFormatPart); };
|
|
50
67
|
export function intlDateTimeFormat(locale, options) {
|
|
51
68
|
if (options === void 0) { options = {}; }
|
|
@@ -56,13 +73,17 @@ export function intlDateTimeFormat(locale, options) {
|
|
|
56
73
|
var formatter = formatterFactory(formatterLocale, options);
|
|
57
74
|
return locale === 'pseudo'
|
|
58
75
|
? {
|
|
59
|
-
format: function (date) { return pseudoDate(formatter.
|
|
76
|
+
format: function (date) { return pseudoDate(formatter.formatDateTime(date)); },
|
|
60
77
|
formatToParts: function (date) {
|
|
61
|
-
return mapFormatToParts(formatter.
|
|
78
|
+
return mapFormatToParts(formatter.formatDateTimeToParts(date));
|
|
62
79
|
},
|
|
63
|
-
resolvedOptions: function () { return formatter.resolvedOptions(); },
|
|
80
|
+
resolvedOptions: function () { return formatter.formatter.resolvedOptions(); },
|
|
64
81
|
}
|
|
65
|
-
:
|
|
82
|
+
: {
|
|
83
|
+
format: function (date) { return formatter.formatDateTime(date); },
|
|
84
|
+
formatToParts: function (date) { return formatter.formatDateTimeToParts(date); },
|
|
85
|
+
resolvedOptions: function () { return formatter.formatter.resolvedOptions(); },
|
|
86
|
+
};
|
|
66
87
|
}
|
|
67
88
|
export function toDate(date, log) {
|
|
68
89
|
if (date instanceof Date) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateTime.js","sourceRoot":"","sources":["../../src/_utils/dateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,IAAM,eAAe,GAAG;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,OAAO;KACQ;IAC/B,wBAAwB,EAAE;QACxB,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,SAAS;KACe;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,MAAM;QACb,GAAG,EAAE,SAAS;KACe;IAC/B,cAAc,EAAE;QACd,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,MAAM;QACb,GAAG,EAAE,SAAS;KACe;IAC/B,IAAI,EAAE,EAAgC;IACtC,cAAc,EAAE;QACd,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;KACe;CAChC,CAAA;AAID,MAAM,CAAC,IAAM,wBAAwB,GAAG,UAAC,IAA+B;IACtE,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAA;AACtD,CAAC,CAAA;AAED,IAAM,UAAU,GAA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CAAC,IAAI,CACV,+BAAwB,GAAG,iCAA8B,EACzD,IAAI,CACL,CAAA;KACF;IACD,OAAO,IAAmB,CAAA;AAC5B,CAAC;AAED,oGAAoG;AACpG,0HAA0H;AAC1H,8CAA8C;AAC9C,wDAAwD;AACxD,MAAM,UAAU,iBAAiB,CAAC,IAAU;IAC1C,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACxE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-react",
|
|
3
|
-
"version": "11.11.0
|
|
3
|
+
"version": "11.11.0",
|
|
4
4
|
"description": "React library of Procore Design Guidelines",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
"dependencies": {
|
|
118
118
|
"@floating-ui/react-dom": "1.0.0",
|
|
119
119
|
"@floating-ui/react-dom-interactions": "0.9.3",
|
|
120
|
-
"@procore/core-i18n-js": "^10.27.6
|
|
121
|
-
"@procore/core-icons": "^11.1.4
|
|
122
|
-
"@procore/globalization-toolkit": "^1.
|
|
120
|
+
"@procore/core-i18n-js": "^10.27.6",
|
|
121
|
+
"@procore/core-icons": "^11.1.4",
|
|
122
|
+
"@procore/globalization-toolkit": "^1.16.1",
|
|
123
123
|
"@react-aria/button": "3.6.4",
|
|
124
124
|
"@react-aria/checkbox": "3.6.0",
|
|
125
125
|
"@react-aria/focus": "3.10.1",
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
"react-dom": ">=16.8.0 < 19",
|
|
157
157
|
"styled-components": ">= 5.1.1 < 6"
|
|
158
158
|
},
|
|
159
|
-
"gitHead": "
|
|
159
|
+
"gitHead": "ee59e2fb29c16feeda1448bcbd8d39a3784da555"
|
|
160
160
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { formatMachineDate, intlDateTimeFormat, toDate } from '../dateTime';
|
|
2
|
-
describe('I18n Date Formatter', function () {
|
|
3
|
-
var date = new Date(2018, 11, 7);
|
|
4
|
-
it('renders date with en locale', function () {
|
|
5
|
-
expect(intlDateTimeFormat('en').format(date)).toEqual('12/7/2018');
|
|
6
|
-
});
|
|
7
|
-
it('renders date with en-CA locale', function () {
|
|
8
|
-
expect(intlDateTimeFormat('en-CA').format(date)).toEqual('12/7/2018');
|
|
9
|
-
});
|
|
10
|
-
it('renders date with en-AU locale', function () {
|
|
11
|
-
expect(intlDateTimeFormat('en-Au').format(date)).toEqual('07/12/2018');
|
|
12
|
-
});
|
|
13
|
-
it('renders date with fr-CA locale', function () {
|
|
14
|
-
expect(intlDateTimeFormat('fr-CA').format(date)).toEqual('07/12/2018');
|
|
15
|
-
});
|
|
16
|
-
it('renders date with en-owner locale', function () {
|
|
17
|
-
expect(intlDateTimeFormat('en-owner').format(date)).toEqual('12/7/2018');
|
|
18
|
-
});
|
|
19
|
-
it('renders date with en-international locale', function () {
|
|
20
|
-
expect(intlDateTimeFormat('en-international').format(date)).toEqual('07/12/2018');
|
|
21
|
-
});
|
|
22
|
-
it('renders date with en-budget locale', function () {
|
|
23
|
-
expect(intlDateTimeFormat('en-budget').format(date)).toEqual('12/7/2018');
|
|
24
|
-
});
|
|
25
|
-
it('renders date with es locale', function () {
|
|
26
|
-
expect(intlDateTimeFormat('es').format(date)).toEqual('7/12/2018');
|
|
27
|
-
});
|
|
28
|
-
it('renders date with pseudo locale', function () {
|
|
29
|
-
expect(intlDateTimeFormat('pseudo').format(date)).toEqual('12.7.2018');
|
|
30
|
-
});
|
|
31
|
-
it('accepts options', function () {
|
|
32
|
-
expect(intlDateTimeFormat('de', {
|
|
33
|
-
weekday: 'long',
|
|
34
|
-
year: 'numeric',
|
|
35
|
-
month: 'long',
|
|
36
|
-
day: 'numeric',
|
|
37
|
-
}).format(date)).toEqual('Freitag, 7. Dezember 2018');
|
|
38
|
-
});
|
|
39
|
-
it('pseudolocalizes formatToParts', function () {
|
|
40
|
-
expect(intlDateTimeFormat('pseudo').formatToParts(date)[1].value).toEqual('.');
|
|
41
|
-
});
|
|
42
|
-
it('supports resolvedOptions in pseudo locale', function () {
|
|
43
|
-
expect(intlDateTimeFormat('pseudo').resolvedOptions().numberingSystem).toEqual('latn');
|
|
44
|
-
});
|
|
45
|
-
it('throws error if no locale is passed', function () {
|
|
46
|
-
expect(function () {
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
intlDateTimeFormat().format(date);
|
|
49
|
-
}).toThrowError(/^Locale is a required parameter.$/);
|
|
50
|
-
});
|
|
51
|
-
it('defaults to en-US if invalid locale is passed', function () {
|
|
52
|
-
expect(intlDateTimeFormat('sadfsd').format(date)).toEqual('12/7/2018');
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
describe('formatMachineDate', function () {
|
|
56
|
-
it('Date format is valid YYYY-MM-DD', function () {
|
|
57
|
-
expect(formatMachineDate(new Date(2020, 0, 0))).toBe('2019-12-31');
|
|
58
|
-
expect(formatMachineDate(new Date(2020, 0, 1))).toBe('2020-01-01');
|
|
59
|
-
expect(formatMachineDate(new Date(2020, 9, 31))).toBe('2020-10-31');
|
|
60
|
-
expect(formatMachineDate(new Date(2020, 9, 31, 23, 59))).toBe('2020-10-31');
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
var regexMilliSeconds = /\.[0-9][0-9][0-9]/;
|
|
64
|
-
var regexSecondsAndMilliSeconds = /\:[0-9][0-9]\.[0-9][0-9][0-9]/;
|
|
65
|
-
describe('toDate', function () {
|
|
66
|
-
it('returns same Date reference if Date', function () {
|
|
67
|
-
var date = new Date(2020, 9, 31);
|
|
68
|
-
expect(toDate(date)).toEqual(date);
|
|
69
|
-
expect(toDate(date)).toBe(date);
|
|
70
|
-
});
|
|
71
|
-
describe('returns a Date for a valid string date format', function () {
|
|
72
|
-
it('0000-00-00T00:00:00.000Z', function () {
|
|
73
|
-
var date = new Date(2020, 9, 31, 1, 1, 1, 111);
|
|
74
|
-
var dateString = date.toISOString();
|
|
75
|
-
expect(toDate(dateString)).toEqual(date);
|
|
76
|
-
});
|
|
77
|
-
it('0000-00-00T00:00:00Z', function () {
|
|
78
|
-
var date = new Date(2020, 9, 31, 1, 1, 1);
|
|
79
|
-
var dateString = date.toISOString().replace(regexMilliSeconds, '');
|
|
80
|
-
expect(toDate(dateString)).toEqual(date);
|
|
81
|
-
});
|
|
82
|
-
it('0000-00-00T00:00Z', function () {
|
|
83
|
-
var date = new Date(2020, 9, 31, 1, 1);
|
|
84
|
-
var dateString = date
|
|
85
|
-
.toISOString()
|
|
86
|
-
.replace(regexSecondsAndMilliSeconds, '');
|
|
87
|
-
expect(toDate(dateString)).toEqual(date);
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
describe('unsupported format', function () {
|
|
91
|
-
var spyWarn;
|
|
92
|
-
beforeAll(function () {
|
|
93
|
-
spyWarn = jest.spyOn(console, 'warn').mockImplementation(function () { });
|
|
94
|
-
});
|
|
95
|
-
afterAll(function () {
|
|
96
|
-
spyWarn.mockRestore();
|
|
97
|
-
});
|
|
98
|
-
it('returns same self if invalid', function () {
|
|
99
|
-
expect(toDate('Tuesday')).toBe('Tuesday');
|
|
100
|
-
// @ts-ignore
|
|
101
|
-
expect(toDate(1000000)).toBe(1000000);
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
expect(toDate(undefined)).toBe(undefined);
|
|
104
|
-
// @ts-ignore
|
|
105
|
-
expect(toDate(null)).toBe(null);
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
expect(toDate(NaN)).toBe(NaN);
|
|
108
|
-
var obj = {};
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
expect(toDate(obj)).toBe(obj);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
//# sourceMapp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