@procore/core-react 11.11.0-rc.3 → 11.11.0-rc.5
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/Calendar/Calendar.js +3 -2
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.types.d.ts +1 -0
- package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
- package/dist/SuperSelect/useSuperSelect.js +19 -16
- package/dist/SuperSelect/useSuperSelect.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/CalendarHelpers.d.ts +2 -3
- package/dist/_utils/CalendarHelpers.js +15 -30
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/package.json +2 -2
|
@@ -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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/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/39011b5c6/packages/core-react/src/_utils/types.ts#L55"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
|
@@ -9,7 +9,6 @@ export declare const eachDay: (date1: Date, date2: Date) => Date[];
|
|
|
9
9
|
export declare const format: (date: Date, formatString: string) => string;
|
|
10
10
|
export declare const formatMonth: (month: number) => string;
|
|
11
11
|
export declare const getDate: (date: Date) => number;
|
|
12
|
-
export declare const getStartDayOfWeek: (locale: Locale) => number;
|
|
13
12
|
export declare const getDates: (date: Date, locale: Locale) => Date[];
|
|
14
13
|
export declare const getMonth: (date: Date) => number;
|
|
15
14
|
export declare const getRows: (dates: Date[]) => Date[][];
|
|
@@ -26,7 +25,7 @@ interface SelectOption {
|
|
|
26
25
|
label: string;
|
|
27
26
|
value: number;
|
|
28
27
|
}
|
|
29
|
-
export declare const getMonthLabel: (month: number, locale?: Locale
|
|
28
|
+
export declare const getMonthLabel: (month: number, locale?: Locale) => string;
|
|
30
29
|
export declare const getMonthOptions: (locale: Locale) => SelectOption[];
|
|
31
30
|
export declare const getYearOptions: (date: Date) => SelectOption[];
|
|
32
31
|
export declare const getDayOfWeekLabel: (day: number, locale?: Locale) => string;
|
|
@@ -43,7 +42,7 @@ declare const CalendarHelpers: {
|
|
|
43
42
|
getDate: (date: Date) => number;
|
|
44
43
|
getDates: (date: Date, locale: Locale) => Date[];
|
|
45
44
|
getMonth: (date: Date) => number;
|
|
46
|
-
getMonthLabel: (month: number, locale?: Locale
|
|
45
|
+
getMonthLabel: (month: number, locale?: Locale) => string;
|
|
47
46
|
getMonthOptions: (locale: Locale) => SelectOption[];
|
|
48
47
|
getRows: (dates: Date[]) => Date[][];
|
|
49
48
|
getYear: (date: Date) => number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DateTimeFormatter, getStartDayOfTheWeek, } from '@procore/globalization-toolkit';
|
|
1
2
|
import { addDays as addDaysFn, addMonths as addMonthsFn, eachDayOfInterval as eachDayFn, format as formatFn, getDate as getDateFn, getDay as getDayFn, getMonth as getMonthFn, getYear as getYearFn, isAfter as isAfterFn, isBefore as isBeforeFn, isSameDay as isSameDayFn, isSameMonth as isSameMonthFn, isToday as isTodayFn, isWithinInterval as isWithinRangeFn, startOfMonth as startOfMonthFn, startOfWeek, subDays as subDaysFn, subMonths as subMonthsFn, subYears as subYearsFn, } from 'date-fns';
|
|
2
3
|
import { de, enUS as en, es, fr, is, ko, pt, th, zhCN, } from 'date-fns/esm/locale';
|
|
3
4
|
import { range, splitEvery } from 'ramda';
|
|
@@ -21,27 +22,6 @@ var dateFnsLocales = {
|
|
|
21
22
|
'zh-SG': zhCN,
|
|
22
23
|
pseudo: en,
|
|
23
24
|
};
|
|
24
|
-
// values 0 - 6 represent indexes of days of the week, Sunday - Saturday respectively
|
|
25
|
-
var localeStartDayOfWeek = {
|
|
26
|
-
en: 0,
|
|
27
|
-
'en-US': 0,
|
|
28
|
-
'en-CA': 0,
|
|
29
|
-
'fr-CA': 0,
|
|
30
|
-
'fr-FR': 1,
|
|
31
|
-
es: 1,
|
|
32
|
-
'es-ES': 1,
|
|
33
|
-
'en-AE': 6,
|
|
34
|
-
'en-AU': 0,
|
|
35
|
-
'en-GB': 1,
|
|
36
|
-
'en-SG': 0,
|
|
37
|
-
ko: 0,
|
|
38
|
-
'th-TH': 0,
|
|
39
|
-
pt: 0,
|
|
40
|
-
'is-IS': 1,
|
|
41
|
-
'de-DE': 1,
|
|
42
|
-
'zh-SG': 1,
|
|
43
|
-
pseudo: 0,
|
|
44
|
-
};
|
|
45
25
|
export var maxMonth = 12;
|
|
46
26
|
export var minYear = 1000;
|
|
47
27
|
// need to be function to make mocking of new Date works in tests.
|
|
@@ -61,11 +41,8 @@ export var formatMonth = function (month) {
|
|
|
61
41
|
return formatFn(normalizeNewDate(2019, month, 2), 'MMM');
|
|
62
42
|
};
|
|
63
43
|
export var getDate = getDateFn;
|
|
64
|
-
export var getStartDayOfWeek = function (locale) {
|
|
65
|
-
return localeStartDayOfWeek[locale] || localeStartDayOfWeek['en'];
|
|
66
|
-
};
|
|
67
44
|
export var getDates = function (date, locale) {
|
|
68
|
-
var startDayOfWeek =
|
|
45
|
+
var startDayOfWeek = getStartDayOfTheWeek(locale);
|
|
69
46
|
// Shift first day appearing on the calendar based on day of the week of the first day of the month and based on the start day of the week
|
|
70
47
|
var dayShift = 7 - startDayOfWeek;
|
|
71
48
|
var subDays = (getDayFn(startOfMonthFn(date)) + dayShift) % 7;
|
|
@@ -110,12 +87,20 @@ export var normalizeNewDate = function (year, month, day, hour, minute, second,
|
|
|
110
87
|
normalizedDate.setMilliseconds(millisecond);
|
|
111
88
|
return normalizedDate;
|
|
112
89
|
};
|
|
113
|
-
export var getMonthLabel = function (month, locale
|
|
90
|
+
export var getMonthLabel = function (month, locale) {
|
|
114
91
|
if (locale === void 0) { locale = 'en'; }
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
locale:
|
|
118
|
-
|
|
92
|
+
var date = normalizeNewDate(1970, month, 1);
|
|
93
|
+
var options = {
|
|
94
|
+
locale: locale || 'en',
|
|
95
|
+
year: 'numeric',
|
|
96
|
+
month: 'short',
|
|
97
|
+
day: 'numeric',
|
|
98
|
+
};
|
|
99
|
+
var formatter = new DateTimeFormatter(options);
|
|
100
|
+
var monthPart = formatter
|
|
101
|
+
.formatDateTimeToParts(date)
|
|
102
|
+
.find(function (part) { return part.type === 'month'; }).value;
|
|
103
|
+
return monthPart;
|
|
119
104
|
};
|
|
120
105
|
export var getMonthOptions = function (locale) {
|
|
121
106
|
return range(0, 12).map(function (value) { return ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarHelpers.js","sourceRoot":"","sources":["../../src/_utils/CalendarHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,SAAS,IAAI,WAAW,EACxB,iBAAiB,IAAI,SAAS,EAC9B,MAAM,IAAI,QAAQ,EAClB,OAAO,IAAI,SAAS,EACpB,MAAM,IAAI,QAAQ,EAClB,QAAQ,IAAI,UAAU,EACtB,OAAO,IAAI,SAAS,EACpB,OAAO,IAAI,SAAS,EACpB,QAAQ,IAAI,UAAU,EACtB,SAAS,IAAI,WAAW,EACxB,WAAW,IAAI,aAAa,EAC5B,OAAO,IAAI,SAAS,EACpB,gBAAgB,IAAI,eAAe,EACnC,YAAY,IAAI,cAAc,EAC9B,WAAW,EACX,OAAO,IAAI,SAAS,EACpB,SAAS,IAAI,WAAW,EACxB,QAAQ,IAAI,UAAU,GACvB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,EAAE,EACF,IAAI,IAAI,EAAE,EACV,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,IAAI,GACL,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAKzC,IAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,EAAE;IACN,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,EAAE,EAAE,EAAE;IACN,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,EAAE,EAAE,EAAE;IACN,OAAO,EAAE,EAAE;IACX,EAAE,EAAE,EAAE;IACN,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,EAAE;CACX,CAAA;
|
|
1
|
+
{"version":3,"file":"CalendarHelpers.js","sourceRoot":"","sources":["../../src/_utils/CalendarHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,oBAAoB,GACrB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,SAAS,IAAI,WAAW,EACxB,iBAAiB,IAAI,SAAS,EAC9B,MAAM,IAAI,QAAQ,EAClB,OAAO,IAAI,SAAS,EACpB,MAAM,IAAI,QAAQ,EAClB,QAAQ,IAAI,UAAU,EACtB,OAAO,IAAI,SAAS,EACpB,OAAO,IAAI,SAAS,EACpB,QAAQ,IAAI,UAAU,EACtB,SAAS,IAAI,WAAW,EACxB,WAAW,IAAI,aAAa,EAC5B,OAAO,IAAI,SAAS,EACpB,gBAAgB,IAAI,eAAe,EACnC,YAAY,IAAI,cAAc,EAC9B,WAAW,EACX,OAAO,IAAI,SAAS,EACpB,SAAS,IAAI,WAAW,EACxB,QAAQ,IAAI,UAAU,GACvB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,EAAE,EACF,IAAI,IAAI,EAAE,EACV,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,IAAI,GACL,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAKzC,IAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,EAAE;IACN,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,EAAE,EAAE,EAAE;IACN,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IAC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 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-react",
|
|
3
|
-
"version": "11.11.0-rc.
|
|
3
|
+
"version": "11.11.0-rc.5",
|
|
4
4
|
"description": "React library of Procore Design Guidelines",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -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": "39011b5c662a23349a794cacafa007990fa1768c"
|
|
160
160
|
}
|