@procore/core-react 11.32.0 → 11.33.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/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.d.ts +4 -0
- package/dist/Box/Box.js +5 -0
- package/dist/Box/Box.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +38 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +40 -2
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +14 -2
- package/dist/Breadcrumbs/Breadcrumbs.types.js +5 -0
- package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.d.ts +81 -36
- package/dist/Calendar/Calendar.js +81 -45
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Calendar/Calendar.types.d.ts +11 -1
- package/dist/Calendar/Calendar.types.js.map +1 -1
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.d.ts +1 -2
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/Dropdown/Dropdown.types.d.ts +2 -1
- package/dist/Dropdown/Dropdown.types.js.map +1 -1
- package/dist/Dropdown/index.d.ts +1 -1
- package/dist/Dropdown/index.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/Flex/Flex.d.ts +5 -0
- package/dist/Flex/Flex.js +5 -0
- package/dist/Flex/Flex.js.map +1 -1
- package/dist/FlexList/FlexList.d.ts +5 -0
- package/dist/FlexList/FlexList.js +6 -0
- package/dist/FlexList/FlexList.js.map +1 -1
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.d.ts +5 -0
- package/dist/Form/Form.js +5 -0
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +16 -16
- package/dist/Form/Form.types.d.ts +31 -9
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Input/Input.types.d.ts +1 -0
- package/dist/Input/Input.types.js.map +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/ListPage/ListPage.types.d.ts +1 -0
- package/dist/ListPage/ListPage.types.js.map +1 -1
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.d.ts +1 -0
- package/dist/Notation/Notation.js +2 -1
- package/dist/Notation/Notation.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -17
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +6 -6
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/SegmentedController/SegmentedController.types.d.ts +2 -0
- package/dist/SegmentedController/SegmentedController.types.js +1 -0
- package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Sidebar/Sidebar.styles.js +7 -7
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/Spinner/Spinner.types.d.ts +1 -0
- package/dist/Spinner/Spinner.types.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +8 -8
- package/dist/Tabs/Tabs.types.d.ts +3 -0
- package/dist/Tabs/Tabs.types.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/Typography/Typography.types.d.ts +10 -23
- package/dist/Typography/Typography.types.js.map +1 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- 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 +16 -14
- package/dist/_typedoc/Button/Button.types.json +12 -12
- package/dist/_typedoc/Calendar/Calendar.types.json +84 -82
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- 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 +34 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +51 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.json +19 -0
- 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 +768 -755
- 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 +4 -3
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +15 -14
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.json +9 -0
- package/dist/_typedoc/Notation/Notation.types.json +9 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
- 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 +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- 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 +20 -19
- package/dist/_typedoc/Section/Section.types.json +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +29 -21
- package/dist/_typedoc/Select/Select.types.json +57 -57
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +11 -10
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +101 -100
- package/dist/_typedoc/Tabs/Tabs.types.json +23 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- 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 +4 -4
- 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/Title/Title.types.json +1 -1
- 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 +14 -14
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/propsTypedoc.d.ts +2 -0
- package/dist/_utils/propsTypedoc.js +2 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,62 +1,107 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BodyProps, CalendarContainerProps, CalendarProps, DayProps, NavigationProps, NextPrevProps, SelectProps, WeekdaysProps, WeekProps } from './Calendar.types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecatedSince 11.6.0
|
|
5
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
6
|
-
*/
|
|
7
3
|
export declare function Body({ dueDateTime: dueDateTime_, displayDate: displayDate_, disabledDate, onSelect: onSelect_, selectedEnd: selectedEnd_, selectedStart: selectedStart_, ...props }: BodyProps): React.JSX.Element;
|
|
8
4
|
export declare namespace Body {
|
|
9
5
|
var displayName: string;
|
|
10
6
|
}
|
|
11
|
-
/**
|
|
12
|
-
* @deprecatedSince 11.6.0
|
|
13
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
14
|
-
*/
|
|
15
7
|
export declare const Container: React.ForwardRefExoticComponent<CalendarContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecatedSince 11.6.0
|
|
18
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
19
|
-
*/
|
|
20
8
|
export declare const Day: React.ForwardRefExoticComponent<DayProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecatedSince 11.6.0
|
|
23
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
24
|
-
*/
|
|
25
9
|
export declare const Navigation: React.ForwardRefExoticComponent<NavigationProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecatedSince 11.6.0
|
|
28
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
29
|
-
*/
|
|
30
10
|
export declare const Next: React.ForwardRefExoticComponent<NextPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecatedSince 11.6.0
|
|
33
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
34
|
-
*/
|
|
35
11
|
export declare const Prev: React.ForwardRefExoticComponent<NextPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecatedSince 11.6.0
|
|
38
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
39
|
-
*/
|
|
40
12
|
export declare const Week: React.ForwardRefExoticComponent<WeekProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecatedSince 11.6.0
|
|
43
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
44
|
-
*/
|
|
45
13
|
export declare const Weekdays: React.ForwardRefExoticComponent<WeekdaysProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecatedSince 11.6.0
|
|
48
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
49
|
-
*/
|
|
50
14
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
15
|
export declare const Calendar_: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
16
|
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>> & {
|
|
17
|
+
/**
|
|
18
|
+
* @deprecatedSince 11.6.0
|
|
19
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
20
|
+
*
|
|
21
|
+
AFTER
|
|
22
|
+
```
|
|
23
|
+
<Calendar onSelect />
|
|
24
|
+
```
|
|
25
|
+
*/
|
|
53
26
|
Body: typeof Body;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecatedSince 11.6.0
|
|
29
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
30
|
+
*
|
|
31
|
+
AFTER
|
|
32
|
+
```
|
|
33
|
+
<Calendar onSelect />
|
|
34
|
+
```
|
|
35
|
+
*/
|
|
54
36
|
Container: React.ForwardRefExoticComponent<CalendarContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecatedSince 11.6.0
|
|
39
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
40
|
+
*
|
|
41
|
+
AFTER
|
|
42
|
+
```
|
|
43
|
+
<Calendar onSelect />
|
|
44
|
+
```
|
|
45
|
+
*/
|
|
55
46
|
Day: React.ForwardRefExoticComponent<DayProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecatedSince 11.6.0
|
|
49
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
50
|
+
*
|
|
51
|
+
AFTER
|
|
52
|
+
```
|
|
53
|
+
<Calendar onSelect />
|
|
54
|
+
```
|
|
55
|
+
*/
|
|
56
56
|
Navigation: React.ForwardRefExoticComponent<NavigationProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecatedSince 11.6.0
|
|
59
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
60
|
+
*
|
|
61
|
+
AFTER
|
|
62
|
+
```
|
|
63
|
+
<Calendar onSelect />
|
|
64
|
+
```
|
|
65
|
+
*/
|
|
57
66
|
Next: React.ForwardRefExoticComponent<NextPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
67
|
+
/**
|
|
68
|
+
* @deprecatedSince 11.6.0
|
|
69
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
70
|
+
*
|
|
71
|
+
AFTER
|
|
72
|
+
```
|
|
73
|
+
<Calendar onSelect />
|
|
74
|
+
```
|
|
75
|
+
*/
|
|
58
76
|
Prev: React.ForwardRefExoticComponent<NextPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
77
|
+
/**
|
|
78
|
+
* @deprecatedSince 11.6.0
|
|
79
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
80
|
+
*
|
|
81
|
+
AFTER
|
|
82
|
+
```
|
|
83
|
+
<Calendar onSelect />
|
|
84
|
+
```
|
|
85
|
+
*/
|
|
59
86
|
Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecatedSince 11.6.0
|
|
89
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
90
|
+
*
|
|
91
|
+
AFTER
|
|
92
|
+
```
|
|
93
|
+
<Calendar onSelect />
|
|
94
|
+
```
|
|
95
|
+
*/
|
|
60
96
|
Week: React.ForwardRefExoticComponent<WeekProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
/**
|
|
98
|
+
* @deprecatedSince 11.6.0
|
|
99
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
100
|
+
*
|
|
101
|
+
AFTER
|
|
102
|
+
```
|
|
103
|
+
<Calendar onSelect />
|
|
104
|
+
```
|
|
105
|
+
*/
|
|
61
106
|
Weekdays: React.ForwardRefExoticComponent<WeekdaysProps & React.RefAttributes<HTMLDivElement>>;
|
|
62
107
|
};
|
|
@@ -22,11 +22,6 @@ function noop() {}
|
|
|
22
22
|
function returnFalse() {
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @deprecatedSince 11.6.0
|
|
28
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
29
|
-
*/
|
|
30
25
|
export function Body(_ref) {
|
|
31
26
|
var dueDateTime_ = _ref.dueDateTime,
|
|
32
27
|
displayDate_ = _ref.displayDate,
|
|
@@ -74,21 +69,11 @@ export function Body(_ref) {
|
|
|
74
69
|
}));
|
|
75
70
|
}));
|
|
76
71
|
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @deprecatedSince 11.6.0
|
|
80
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
81
|
-
*/
|
|
82
72
|
export var Container = /*#__PURE__*/React.forwardRef(function Container(props, ref) {
|
|
83
73
|
return /*#__PURE__*/React.createElement(StyledContainer, _extends({
|
|
84
74
|
ref: ref
|
|
85
75
|
}, props));
|
|
86
76
|
});
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @deprecatedSince 11.6.0
|
|
90
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
91
|
-
*/
|
|
92
77
|
export var Day = /*#__PURE__*/React.forwardRef(function Day(_ref2, ref) {
|
|
93
78
|
var _ref2$disabled = _ref2.disabled,
|
|
94
79
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
@@ -119,21 +104,11 @@ export var Day = /*#__PURE__*/React.forwardRef(function Day(_ref2, ref) {
|
|
|
119
104
|
$isToday: isToday
|
|
120
105
|
}));
|
|
121
106
|
});
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @deprecatedSince 11.6.0
|
|
125
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
126
|
-
*/
|
|
127
107
|
export var Navigation = /*#__PURE__*/React.forwardRef(function Navigation(props, ref) {
|
|
128
108
|
return /*#__PURE__*/React.createElement(StyledNavigation, _extends({}, props, {
|
|
129
109
|
ref: ref
|
|
130
110
|
}));
|
|
131
111
|
});
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @deprecatedSince 11.6.0
|
|
135
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
136
|
-
*/
|
|
137
112
|
export var Next = /*#__PURE__*/React.forwardRef(function Next(_ref3, ref) {
|
|
138
113
|
var props = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
139
114
|
return /*#__PURE__*/React.createElement(StyledPaginator, _extends({}, props, {
|
|
@@ -142,11 +117,6 @@ export var Next = /*#__PURE__*/React.forwardRef(function Next(_ref3, ref) {
|
|
|
142
117
|
variant: "tertiary"
|
|
143
118
|
}));
|
|
144
119
|
});
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @deprecatedSince 11.6.0
|
|
148
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
149
|
-
*/
|
|
150
120
|
export var Prev = /*#__PURE__*/React.forwardRef(function Prev(props, ref) {
|
|
151
121
|
return /*#__PURE__*/React.createElement(StyledPaginator, _extends({}, props, {
|
|
152
122
|
ref: ref,
|
|
@@ -154,21 +124,11 @@ export var Prev = /*#__PURE__*/React.forwardRef(function Prev(props, ref) {
|
|
|
154
124
|
variant: "tertiary"
|
|
155
125
|
}));
|
|
156
126
|
});
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @deprecatedSince 11.6.0
|
|
160
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
161
|
-
*/
|
|
162
127
|
export var Week = /*#__PURE__*/React.forwardRef(function Week(props, ref) {
|
|
163
128
|
return /*#__PURE__*/React.createElement(StyledWeekRow, _extends({
|
|
164
129
|
ref: ref
|
|
165
130
|
}, props));
|
|
166
131
|
});
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @deprecatedSince 11.6.0
|
|
170
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
171
|
-
*/
|
|
172
132
|
export var Weekdays = /*#__PURE__*/React.forwardRef(function Weekdays(props, ref) {
|
|
173
133
|
var _useI18nContext2 = useI18nContext(),
|
|
174
134
|
locale = _useI18nContext2.locale;
|
|
@@ -183,11 +143,6 @@ export var Weekdays = /*#__PURE__*/React.forwardRef(function Weekdays(props, ref
|
|
|
183
143
|
}, getDayOfWeekLabel(day, formatterLocale));
|
|
184
144
|
}));
|
|
185
145
|
});
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* @deprecatedSince 11.6.0
|
|
189
|
-
* @deprecated Intended for internal library development. Export will be removed in a future release.
|
|
190
|
-
*/
|
|
191
146
|
export var Select = /*#__PURE__*/React.forwardRef(function Select(_ref4, ref) {
|
|
192
147
|
var children = _ref4.children,
|
|
193
148
|
label = _ref4.label,
|
|
@@ -302,14 +257,95 @@ Select.displayName = 'Calendar.Select';
|
|
|
302
257
|
Week.displayName = 'Calendar.Week';
|
|
303
258
|
Weekdays.displayName = 'Calendar.Weekdays';
|
|
304
259
|
export var Calendar = addSubcomponents({
|
|
260
|
+
/**
|
|
261
|
+
* @deprecatedSince 11.6.0
|
|
262
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
263
|
+
*
|
|
264
|
+
AFTER
|
|
265
|
+
```
|
|
266
|
+
<Calendar onSelect />
|
|
267
|
+
```
|
|
268
|
+
*/
|
|
305
269
|
Body: Body,
|
|
270
|
+
/**
|
|
271
|
+
* @deprecatedSince 11.6.0
|
|
272
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
273
|
+
*
|
|
274
|
+
AFTER
|
|
275
|
+
```
|
|
276
|
+
<Calendar onSelect />
|
|
277
|
+
```
|
|
278
|
+
*/
|
|
306
279
|
Container: Container,
|
|
280
|
+
/**
|
|
281
|
+
* @deprecatedSince 11.6.0
|
|
282
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
283
|
+
*
|
|
284
|
+
AFTER
|
|
285
|
+
```
|
|
286
|
+
<Calendar onSelect />
|
|
287
|
+
```
|
|
288
|
+
*/
|
|
307
289
|
Day: Day,
|
|
290
|
+
/**
|
|
291
|
+
* @deprecatedSince 11.6.0
|
|
292
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
293
|
+
*
|
|
294
|
+
AFTER
|
|
295
|
+
```
|
|
296
|
+
<Calendar onSelect />
|
|
297
|
+
```
|
|
298
|
+
*/
|
|
308
299
|
Navigation: Navigation,
|
|
300
|
+
/**
|
|
301
|
+
* @deprecatedSince 11.6.0
|
|
302
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
303
|
+
*
|
|
304
|
+
AFTER
|
|
305
|
+
```
|
|
306
|
+
<Calendar onSelect />
|
|
307
|
+
```
|
|
308
|
+
*/
|
|
309
309
|
Next: Next,
|
|
310
|
+
/**
|
|
311
|
+
* @deprecatedSince 11.6.0
|
|
312
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
313
|
+
*
|
|
314
|
+
AFTER
|
|
315
|
+
```
|
|
316
|
+
<Calendar onSelect />
|
|
317
|
+
```
|
|
318
|
+
*/
|
|
310
319
|
Prev: Prev,
|
|
320
|
+
/**
|
|
321
|
+
* @deprecatedSince 11.6.0
|
|
322
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
323
|
+
*
|
|
324
|
+
AFTER
|
|
325
|
+
```
|
|
326
|
+
<Calendar onSelect />
|
|
327
|
+
```
|
|
328
|
+
*/
|
|
311
329
|
Select: Select,
|
|
330
|
+
/**
|
|
331
|
+
* @deprecatedSince 11.6.0
|
|
332
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
333
|
+
*
|
|
334
|
+
AFTER
|
|
335
|
+
```
|
|
336
|
+
<Calendar onSelect />
|
|
337
|
+
```
|
|
338
|
+
*/
|
|
312
339
|
Week: Week,
|
|
340
|
+
/**
|
|
341
|
+
* @deprecatedSince 11.6.0
|
|
342
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
343
|
+
*
|
|
344
|
+
AFTER
|
|
345
|
+
```
|
|
346
|
+
<Calendar onSelect />
|
|
347
|
+
```
|
|
348
|
+
*/
|
|
313
349
|
Weekdays: Weekdays
|
|
314
350
|
}, Calendar_);
|
|
315
351
|
//# sourceMappingURL=Calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","names":["ChevronLeft","ChevronRight","getStartDayOfTheWeek","isAfter","startOfDay","range","React","Select","SelectBase","useDateTime","useI18nContext","addSubcomponents","addMonths","format","getDates","getDayOfWeekLabel","getMonth","getMonthLabel","getMonthOptions","getRows","getYear","getYearOptions","isSameDay","isSameMonth","isWithinRange","subMonths","updateMonth","updateYear","getFormatterLocale","StyledContainer","StyledDayCell","StyledDayHeaderCell","StyledNavigation","StyledPaginator","StyledSelect","StyledWeekRow","noop","returnFalse","Body","_ref","dueDateTime_","dueDateTime","displayDate_","displayDate","disabledDate","_ref$onSelect","onSelect","onSelect_","selectedEnd_","selectedEnd","selectedStart_","selectedStart","props","_objectWithoutProperties","_excluded","dateTime","shiftUtcToZonedTime","newDate","_useI18nContext","locale","formatterLocale","dates","day","shiftZonedTimeToUtc","createElement","Fragment","Weekdays","map","row","Week","key","concat","Day","_extends","timeZone","undefined","disabled","isCurrentMonth","isRangeEnd","isRangeStart","isToday","onClick","selected","style","color","Container","forwardRef","ref","_ref2","_ref2$disabled","_ref2$isCurrentMonth","_ref2$isRangeEnd","_ref2$isRangeStart","_ref2$isToday","_ref2$selected","_excluded2","$disabled","$selected","$isCurrentMonth","$isRangeStart","$isRangeEnd","$isToday","Navigation","Next","_ref3","_objectDestructuringEmpty","icon","variant","Prev","_useI18nContext2","startDayOfWeek","_ref4","children","label","_ref4$options","options","_ref4$selected","_excluded3","block","selection","item","optionsRef","tabIndex","_ref5","value","Option","Calendar_","Calendar","_ref6","_ref6$disabledDate","monthRef","_ref6$onNavigate","onNavigate","_ref6$onSelect","yearRef","_excluded4","i18n","_useDateTime","monthSelectRef","createRef","yearSelectRef","nextNavigationDateLabel","t","monthYear","month","year","prevNavigationDateLabel","String","padStart","displayName"],"sources":["../../src/Calendar/Calendar.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight } from '@procore/core-icons/dist'\nimport { getStartDayOfTheWeek } from '@procore/globalization-toolkit'\nimport { isAfter, startOfDay } from 'date-fns'\nimport { range } from 'ramda'\nimport React from 'react'\nimport { Select as SelectBase } from '../Select/Select'\nimport { useDateTime } from '../_hooks/DateTime'\nimport type { Locale } from '../_hooks/I18n'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n addMonths,\n format,\n getDates,\n getDayOfWeekLabel,\n getMonth,\n getMonthLabel,\n getMonthOptions,\n getRows,\n getYear,\n getYearOptions,\n isSameDay,\n isSameMonth,\n isWithinRange,\n subMonths,\n updateMonth,\n updateYear,\n} from '../_utils/CalendarHelpers'\n\nimport { getFormatterLocale } from '../_utils/i18n'\nimport {\n StyledContainer,\n StyledDayCell,\n StyledDayHeaderCell,\n StyledNavigation,\n StyledPaginator,\n StyledSelect,\n StyledWeekRow,\n} from './Calendar.styles'\nimport type {\n BodyProps,\n CalendarContainerProps,\n CalendarProps,\n DayProps,\n NavigationProps,\n NextPrevProps,\n SelectProps,\n WeekdaysProps,\n WeekProps,\n} from './Calendar.types'\n\nfunction noop() {}\n\nfunction returnFalse() {\n return false\n}\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport function Body({\n dueDateTime: dueDateTime_,\n displayDate: displayDate_,\n disabledDate,\n onSelect: onSelect_ = noop,\n selectedEnd: selectedEnd_,\n selectedStart: selectedStart_,\n ...props\n}: BodyProps) {\n const dateTime = useDateTime()\n\n const displayDate =\n dateTime.shiftUtcToZonedTime(displayDate_) || dateTime.newDate()\n\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n\n const dates = getDates(displayDate, formatterLocale)\n\n const dueDateTime = dateTime.shiftUtcToZonedTime(dueDateTime_)\n\n const selectedEnd: CalendarProps['selectedEnd'] =\n dateTime.shiftUtcToZonedTime(selectedEnd_)\n\n const selectedStart: CalendarProps['selectedStart'] =\n dateTime.shiftUtcToZonedTime(selectedStart_)\n\n const onSelect: CalendarProps['onSelect'] = (day) => {\n onSelect_(dateTime.shiftZonedTimeToUtc(day, 'Calendar Body onSelect'))\n }\n\n return (\n <>\n <Weekdays />\n {getRows(dates).map((row) => (\n <Week key={`week-${format(row[0], 'yyyy-MMMM-dddd')}`}>\n {row.map((day) => (\n <Day\n aria-label={dateTime.format(day, 'weekday-date', {\n timeZone: undefined,\n })}\n disabled={\n disabledDate &&\n disabledDate(day, startOfDay(dateTime.newDate()))\n }\n isCurrentMonth={isSameMonth(day, displayDate)}\n isRangeEnd={selectedEnd && isSameDay(day, selectedEnd)}\n isRangeStart={selectedStart && isSameDay(day, selectedStart)}\n isToday={isSameDay(day, startOfDay(dateTime.newDate()))}\n key={`day-${format(day, 'yyyy-MMMM-dddd')}`}\n onClick={() => onSelect(day)}\n selected={isWithinRange(day, selectedStart, selectedEnd)}\n {...props}\n >\n {format(day, 'd')}\n {dueDateTime && isSameDay(day, startOfDay(dueDateTime)) && (\n <div>\n <em\n style={\n isAfter(dateTime.newDate(), dueDateTime)\n ? {\n color: 'red',\n }\n : undefined\n }\n >\n {dateTime.format(dueDateTime_!, 'time')}\n </em>\n </div>\n )}\n </Day>\n ))}\n </Week>\n ))}\n </>\n )\n}\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Container = React.forwardRef<\n HTMLDivElement,\n CalendarContainerProps\n>(function Container(props, ref) {\n return <StyledContainer ref={ref} {...props} />\n})\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Day = React.forwardRef<HTMLDivElement, DayProps>(function Day(\n {\n disabled = false,\n isCurrentMonth = false,\n isRangeEnd = false,\n isRangeStart = false,\n isToday = false,\n onClick,\n selected = false,\n ...props\n },\n ref\n) {\n return (\n <StyledDayCell\n aria-current={isToday ? 'date' : undefined}\n aria-disabled={disabled || undefined}\n aria-selected={selected || undefined}\n {...props}\n onClick={disabled ? undefined : onClick}\n ref={ref}\n $disabled={disabled}\n $selected={selected}\n $isCurrentMonth={isCurrentMonth}\n $isRangeStart={isRangeStart}\n $isRangeEnd={isRangeEnd}\n $isToday={isToday}\n />\n )\n})\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Navigation = React.forwardRef<HTMLDivElement, NavigationProps>(\n function Navigation(props, ref) {\n return <StyledNavigation {...props} ref={ref} />\n }\n)\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Next = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Next({ ...props }, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronRight />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Prev = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Prev(props, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronLeft />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Week = React.forwardRef<HTMLDivElement, WeekProps>(function Week(\n props,\n ref\n) {\n return <StyledWeekRow ref={ref} {...props} />\n})\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Weekdays = React.forwardRef<HTMLDivElement, WeekdaysProps>(\n function Weekdays(props, ref) {\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n const startDayOfWeek: number = getStartDayOfTheWeek(formatterLocale)\n\n return (\n <StyledWeekRow ref={ref} aria-hidden=\"true\" {...props}>\n {range(startDayOfWeek, startDayOfWeek + 7).map((day) => (\n <StyledDayHeaderCell key={`day-${day}`}>\n {getDayOfWeekLabel(day, formatterLocale)}\n </StyledDayHeaderCell>\n ))}\n </StyledWeekRow>\n )\n }\n)\n\n/**\n * @deprecatedSince 11.6.0\n * @deprecated Intended for internal library development. Export will be removed in a future release.\n */\nexport const Select = React.forwardRef<HTMLDivElement, SelectProps>(\n function Select(\n { children, label, onSelect, options = [], selected = '', ...props },\n ref\n ) {\n return (\n <StyledSelect>\n <SelectBase\n {...props}\n block={true}\n label={label}\n onSelect={(selection) => {\n onSelect(selection.item)\n }}\n optionsRef={ref as React.RefObject<HTMLDivElement>}\n tabIndex={0}\n >\n {options.map(({ value, label }) => {\n return (\n <SelectBase.Option\n value={value}\n selected={value === selected}\n key={value}\n >\n {label}\n </SelectBase.Option>\n )\n })}\n </SelectBase>\n </StyledSelect>\n )\n }\n)\n\nexport const Calendar_ = React.forwardRef<HTMLDivElement, CalendarProps>(\n function Calendar(\n {\n dueDateTime,\n displayDate: displayDate_,\n disabledDate = returnFalse,\n monthRef,\n onNavigate = noop,\n onSelect = noop,\n selectedEnd,\n selectedStart,\n yearRef,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const dateTime = useDateTime()\n const formatterLocale = getFormatterLocale(i18n.locale) as Locale\n const { newDate, shiftUtcToZonedTime } = useDateTime()\n const monthSelectRef = monthRef || React.createRef()\n const yearSelectRef = yearRef || React.createRef()\n\n const displayDate: CalendarProps['displayDate'] =\n shiftUtcToZonedTime(displayDate_) || newDate()\n\n const nextNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(addMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n const prevNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(subMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n\n return (\n <Container {...props} ref={ref}>\n <Navigation>\n <Prev\n aria-label={prevNavigationDateLabel}\n onClick={() => onNavigate(subMonths(displayDate, 1))}\n />\n <Select\n options={getMonthOptions(formatterLocale)}\n label={getMonthLabel(getMonth(displayDate), formatterLocale)}\n onSelect={(value) => {\n onNavigate(updateMonth(displayDate, value))\n }}\n selected={getMonth(displayDate)}\n ref={monthSelectRef}\n />\n <Select\n options={getYearOptions(displayDate)}\n label={String(getYear(displayDate)).padStart(4, '0')}\n onSelect={(value) => {\n onNavigate(updateYear(displayDate, value))\n }}\n selected={getYear(displayDate)}\n ref={yearSelectRef}\n />\n <Next\n aria-label={nextNavigationDateLabel}\n onClick={() => onNavigate(addMonths(displayDate, 1))}\n />\n </Navigation>\n <Body\n dueDateTime={dueDateTime}\n // intentionally pass unshifted value. next component's responsibility to manage\n displayDate={displayDate_}\n disabledDate={disabledDate}\n onSelect={onSelect}\n selectedEnd={selectedEnd}\n selectedStart={selectedStart}\n />\n </Container>\n )\n }\n)\n\nCalendar_.displayName = 'Calendar'\n\nBody.displayName = 'Calendar.Body'\n\nContainer.displayName = 'Calendar.Container'\n\nDay.displayName = 'Calendar.Day'\n\nNavigation.displayName = 'Calendar.Navigation'\n\nNext.displayName = 'Calendar.Next'\n\nPrev.displayName = 'Calendar.Prev'\n\nSelect.displayName = 'Calendar.Select'\n\nWeek.displayName = 'Calendar.Week'\n\nWeekdays.displayName = 'Calendar.Weekdays'\n\nexport const Calendar = addSubcomponents(\n {\n Body,\n Container,\n Day,\n Navigation,\n Next,\n Prev,\n Select,\n Week,\n Weekdays,\n },\n Calendar_\n)\n"],"mappings":";;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,OAAO,EAAEC,UAAU,QAAQ,UAAU;AAC9C,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,SAASC,WAAW,QAAQ,oBAAoB;AAEhD,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,SAAS,EACTC,MAAM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EAAE,SAAAA,QAAA;MAAA,OAAMmD,UAAU,CAACxH,SAAS,CAAC+B,WAAW,EAAE,CAAC,CAAC,CAAC;IAAA;EAAC,CACtD,CACS,CAAC,eACbrC,KAAA,CAAA0D,aAAA,CAAC1B,IAAI;IACHG,WAAW,EAAEA;IACb;IAAA;IACAE,WAAW,EAAED,YAAa;IAC1BE,YAAY,EAAEA,YAAa;IAC3BE,QAAQ,EAAEA,QAAS;IACnBG,WAAW,EAAEA,WAAY;IACzBE,aAAa,EAAEA;EAAc,CAC9B,CACQ,CAAC;AAEhB,CACF,CAAC;AAED2E,SAAS,CAACuB,WAAW,GAAG,UAAU;AAElC/G,IAAI,CAAC+G,WAAW,GAAG,eAAe;AAElChE,SAAS,CAACgE,WAAW,GAAG,oBAAoB;AAE5C7E,GAAG,CAAC6E,WAAW,GAAG,cAAc;AAEhC/C,UAAU,CAAC+C,WAAW,GAAG,qBAAqB;AAE9C9C,IAAI,CAAC8C,WAAW,GAAG,eAAe;AAElCzC,IAAI,CAACyC,WAAW,GAAG,eAAe;AAElC9I,MAAM,CAAC8I,WAAW,GAAG,iBAAiB;AAEtChF,IAAI,CAACgF,WAAW,GAAG,eAAe;AAElCnF,QAAQ,CAACmF,WAAW,GAAG,mBAAmB;AAE1C,OAAO,IAAMtB,QAAQ,GAAGpH,gBAAgB,CACtC;EACE2B,IAAI,EAAJA,IAAI;EACJ+C,SAAS,EAATA,SAAS;EACTb,GAAG,EAAHA,GAAG;EACH8B,UAAU,EAAVA,UAAU;EACVC,IAAI,EAAJA,IAAI;EACJK,IAAI,EAAJA,IAAI;EACJrG,MAAM,EAANA,MAAM;EACN8D,IAAI,EAAJA,IAAI;EACJH,QAAQ,EAARA;AACF,CAAC,EACD4D,SACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Calendar.js","names":["ChevronLeft","ChevronRight","getStartDayOfTheWeek","isAfter","startOfDay","range","React","Select","SelectBase","useDateTime","useI18nContext","addSubcomponents","addMonths","format","getDates","getDayOfWeekLabel","getMonth","getMonthLabel","getMonthOptions","getRows","getYear","getYearOptions","isSameDay","isSameMonth","isWithinRange","subMonths","updateMonth","updateYear","getFormatterLocale","StyledContainer","StyledDayCell","StyledDayHeaderCell","StyledNavigation","StyledPaginator","StyledSelect","StyledWeekRow","noop","returnFalse","Body","_ref","dueDateTime_","dueDateTime","displayDate_","displayDate","disabledDate","_ref$onSelect","onSelect","onSelect_","selectedEnd_","selectedEnd","selectedStart_","selectedStart","props","_objectWithoutProperties","_excluded","dateTime","shiftUtcToZonedTime","newDate","_useI18nContext","locale","formatterLocale","dates","day","shiftZonedTimeToUtc","createElement","Fragment","Weekdays","map","row","Week","key","concat","Day","_extends","timeZone","undefined","disabled","isCurrentMonth","isRangeEnd","isRangeStart","isToday","onClick","selected","style","color","Container","forwardRef","ref","_ref2","_ref2$disabled","_ref2$isCurrentMonth","_ref2$isRangeEnd","_ref2$isRangeStart","_ref2$isToday","_ref2$selected","_excluded2","$disabled","$selected","$isCurrentMonth","$isRangeStart","$isRangeEnd","$isToday","Navigation","Next","_ref3","_objectDestructuringEmpty","icon","variant","Prev","_useI18nContext2","startDayOfWeek","_ref4","children","label","_ref4$options","options","_ref4$selected","_excluded3","block","selection","item","optionsRef","tabIndex","_ref5","value","Option","Calendar_","Calendar","_ref6","_ref6$disabledDate","monthRef","_ref6$onNavigate","onNavigate","_ref6$onSelect","yearRef","_excluded4","i18n","_useDateTime","monthSelectRef","createRef","yearSelectRef","nextNavigationDateLabel","t","monthYear","month","year","prevNavigationDateLabel","String","padStart","displayName"],"sources":["../../src/Calendar/Calendar.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight } from '@procore/core-icons/dist'\nimport { getStartDayOfTheWeek } from '@procore/globalization-toolkit'\nimport { isAfter, startOfDay } from 'date-fns'\nimport { range } from 'ramda'\nimport React from 'react'\nimport { Select as SelectBase } from '../Select/Select'\nimport { useDateTime } from '../_hooks/DateTime'\nimport type { Locale } from '../_hooks/I18n'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n addMonths,\n format,\n getDates,\n getDayOfWeekLabel,\n getMonth,\n getMonthLabel,\n getMonthOptions,\n getRows,\n getYear,\n getYearOptions,\n isSameDay,\n isSameMonth,\n isWithinRange,\n subMonths,\n updateMonth,\n updateYear,\n} from '../_utils/CalendarHelpers'\n\nimport { getFormatterLocale } from '../_utils/i18n'\nimport {\n StyledContainer,\n StyledDayCell,\n StyledDayHeaderCell,\n StyledNavigation,\n StyledPaginator,\n StyledSelect,\n StyledWeekRow,\n} from './Calendar.styles'\nimport type {\n BodyProps,\n CalendarContainerProps,\n CalendarProps,\n DayProps,\n NavigationProps,\n NextPrevProps,\n SelectProps,\n WeekdaysProps,\n WeekProps,\n} from './Calendar.types'\n\nfunction noop() {}\n\nfunction returnFalse() {\n return false\n}\n\nexport function Body({\n dueDateTime: dueDateTime_,\n displayDate: displayDate_,\n disabledDate,\n onSelect: onSelect_ = noop,\n selectedEnd: selectedEnd_,\n selectedStart: selectedStart_,\n ...props\n}: BodyProps) {\n const dateTime = useDateTime()\n\n const displayDate =\n dateTime.shiftUtcToZonedTime(displayDate_) || dateTime.newDate()\n\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n\n const dates = getDates(displayDate, formatterLocale)\n\n const dueDateTime = dateTime.shiftUtcToZonedTime(dueDateTime_)\n\n const selectedEnd: CalendarProps['selectedEnd'] =\n dateTime.shiftUtcToZonedTime(selectedEnd_)\n\n const selectedStart: CalendarProps['selectedStart'] =\n dateTime.shiftUtcToZonedTime(selectedStart_)\n\n const onSelect: CalendarProps['onSelect'] = (day) => {\n onSelect_(dateTime.shiftZonedTimeToUtc(day, 'Calendar Body onSelect'))\n }\n\n return (\n <>\n <Weekdays />\n {getRows(dates).map((row) => (\n <Week key={`week-${format(row[0], 'yyyy-MMMM-dddd')}`}>\n {row.map((day) => (\n <Day\n aria-label={dateTime.format(day, 'weekday-date', {\n timeZone: undefined,\n })}\n disabled={\n disabledDate &&\n disabledDate(day, startOfDay(dateTime.newDate()))\n }\n isCurrentMonth={isSameMonth(day, displayDate)}\n isRangeEnd={selectedEnd && isSameDay(day, selectedEnd)}\n isRangeStart={selectedStart && isSameDay(day, selectedStart)}\n isToday={isSameDay(day, startOfDay(dateTime.newDate()))}\n key={`day-${format(day, 'yyyy-MMMM-dddd')}`}\n onClick={() => onSelect(day)}\n selected={isWithinRange(day, selectedStart, selectedEnd)}\n {...props}\n >\n {format(day, 'd')}\n {dueDateTime && isSameDay(day, startOfDay(dueDateTime)) && (\n <div>\n <em\n style={\n isAfter(dateTime.newDate(), dueDateTime)\n ? {\n color: 'red',\n }\n : undefined\n }\n >\n {dateTime.format(dueDateTime_!, 'time')}\n </em>\n </div>\n )}\n </Day>\n ))}\n </Week>\n ))}\n </>\n )\n}\n\nexport const Container = React.forwardRef<\n HTMLDivElement,\n CalendarContainerProps\n>(function Container(props, ref) {\n return <StyledContainer ref={ref} {...props} />\n})\n\nexport const Day = React.forwardRef<HTMLDivElement, DayProps>(function Day(\n {\n disabled = false,\n isCurrentMonth = false,\n isRangeEnd = false,\n isRangeStart = false,\n isToday = false,\n onClick,\n selected = false,\n ...props\n },\n ref\n) {\n return (\n <StyledDayCell\n aria-current={isToday ? 'date' : undefined}\n aria-disabled={disabled || undefined}\n aria-selected={selected || undefined}\n {...props}\n onClick={disabled ? undefined : onClick}\n ref={ref}\n $disabled={disabled}\n $selected={selected}\n $isCurrentMonth={isCurrentMonth}\n $isRangeStart={isRangeStart}\n $isRangeEnd={isRangeEnd}\n $isToday={isToday}\n />\n )\n})\n\nexport const Navigation = React.forwardRef<HTMLDivElement, NavigationProps>(\n function Navigation(props, ref) {\n return <StyledNavigation {...props} ref={ref} />\n }\n)\n\nexport const Next = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Next({ ...props }, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronRight />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\nexport const Prev = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Prev(props, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronLeft />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\nexport const Week = React.forwardRef<HTMLDivElement, WeekProps>(function Week(\n props,\n ref\n) {\n return <StyledWeekRow ref={ref} {...props} />\n})\n\nexport const Weekdays = React.forwardRef<HTMLDivElement, WeekdaysProps>(\n function Weekdays(props, ref) {\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n const startDayOfWeek: number = getStartDayOfTheWeek(formatterLocale)\n\n return (\n <StyledWeekRow ref={ref} aria-hidden=\"true\" {...props}>\n {range(startDayOfWeek, startDayOfWeek + 7).map((day) => (\n <StyledDayHeaderCell key={`day-${day}`}>\n {getDayOfWeekLabel(day, formatterLocale)}\n </StyledDayHeaderCell>\n ))}\n </StyledWeekRow>\n )\n }\n)\n\nexport const Select = React.forwardRef<HTMLDivElement, SelectProps>(\n function Select(\n { children, label, onSelect, options = [], selected = '', ...props },\n ref\n ) {\n return (\n <StyledSelect>\n <SelectBase\n {...props}\n block={true}\n label={label}\n onSelect={(selection) => {\n onSelect(selection.item)\n }}\n optionsRef={ref as React.RefObject<HTMLDivElement>}\n tabIndex={0}\n >\n {options.map(({ value, label }) => {\n return (\n <SelectBase.Option\n value={value}\n selected={value === selected}\n key={value}\n >\n {label}\n </SelectBase.Option>\n )\n })}\n </SelectBase>\n </StyledSelect>\n )\n }\n)\n\nexport const Calendar_ = React.forwardRef<HTMLDivElement, CalendarProps>(\n function Calendar(\n {\n dueDateTime,\n displayDate: displayDate_,\n disabledDate = returnFalse,\n monthRef,\n onNavigate = noop,\n onSelect = noop,\n selectedEnd,\n selectedStart,\n yearRef,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const dateTime = useDateTime()\n const formatterLocale = getFormatterLocale(i18n.locale) as Locale\n const { newDate, shiftUtcToZonedTime } = useDateTime()\n const monthSelectRef = monthRef || React.createRef()\n const yearSelectRef = yearRef || React.createRef()\n\n const displayDate: CalendarProps['displayDate'] =\n shiftUtcToZonedTime(displayDate_) || newDate()\n\n const nextNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(addMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n const prevNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(subMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n\n return (\n <Container {...props} ref={ref}>\n <Navigation>\n <Prev\n aria-label={prevNavigationDateLabel}\n onClick={() => onNavigate(subMonths(displayDate, 1))}\n />\n <Select\n options={getMonthOptions(formatterLocale)}\n label={getMonthLabel(getMonth(displayDate), formatterLocale)}\n onSelect={(value) => {\n onNavigate(updateMonth(displayDate, value))\n }}\n selected={getMonth(displayDate)}\n ref={monthSelectRef}\n />\n <Select\n options={getYearOptions(displayDate)}\n label={String(getYear(displayDate)).padStart(4, '0')}\n onSelect={(value) => {\n onNavigate(updateYear(displayDate, value))\n }}\n selected={getYear(displayDate)}\n ref={yearSelectRef}\n />\n <Next\n aria-label={nextNavigationDateLabel}\n onClick={() => onNavigate(addMonths(displayDate, 1))}\n />\n </Navigation>\n <Body\n dueDateTime={dueDateTime}\n // intentionally pass unshifted value. next component's responsibility to manage\n displayDate={displayDate_}\n disabledDate={disabledDate}\n onSelect={onSelect}\n selectedEnd={selectedEnd}\n selectedStart={selectedStart}\n />\n </Container>\n )\n }\n)\n\nCalendar_.displayName = 'Calendar'\n\nBody.displayName = 'Calendar.Body'\n\nContainer.displayName = 'Calendar.Container'\n\nDay.displayName = 'Calendar.Day'\n\nNavigation.displayName = 'Calendar.Navigation'\n\nNext.displayName = 'Calendar.Next'\n\nPrev.displayName = 'Calendar.Prev'\n\nSelect.displayName = 'Calendar.Select'\n\nWeek.displayName = 'Calendar.Week'\n\nWeekdays.displayName = 'Calendar.Weekdays'\n\nexport const Calendar = addSubcomponents(\n {\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Body,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Container,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Day,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Navigation,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Next,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Prev,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Select,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Week,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Weekdays,\n },\n Calendar_\n)\n"],"mappings":";;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,OAAO,EAAEC,UAAU,QAAQ,UAAU;AAC9C,SAASC,KAAK,QAA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J;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIK,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIrG,MAAM,EAANA,MAAM;EACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI8D,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIH,QAAQ,EAARA;AACF,CAAC,EACD4D,SACF,CAAC"}
|
|
@@ -8,31 +8,31 @@ var cellSize = 36; // TODO one-off size
|
|
|
8
8
|
|
|
9
9
|
export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
10
10
|
displayName: "StyledContainer",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-11_33_0__sc-1kkl86t-0"
|
|
12
12
|
})(["", ";display:inline-flex;flex-direction:column;padding:", "px ", "px ", "px;"], getTypographyIntent('small'), spacing.lg, spacing.md, spacing.md);
|
|
13
13
|
export var StyledPaginator = /*#__PURE__*/styled(Button).withConfig({
|
|
14
14
|
displayName: "StyledPaginator",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-11_33_0__sc-1kkl86t-1"
|
|
16
16
|
})(["flex:0 0 auto;"]);
|
|
17
17
|
export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
|
|
18
18
|
displayName: "StyledSelect",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-11_33_0__sc-1kkl86t-2"
|
|
20
20
|
})(["display:inline-flex;flex:1 1 0;margin-left:", "px;> div{font-size:12px;}"], spacing.sm);
|
|
21
21
|
export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
|
|
22
22
|
displayName: "StyledNavigation",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-11_33_0__sc-1kkl86t-3"
|
|
24
24
|
})(["display:inline-flex;margin-bottom:", "px;", " + ", ",", " + ", "{margin-left:", "px;}"], spacing.sm, StyledPaginator, StyledSelect, StyledSelect, StyledPaginator, spacing.sm);
|
|
25
25
|
export var StyledCell = /*#__PURE__*/styled.div.withConfig({
|
|
26
26
|
displayName: "StyledCell",
|
|
27
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-11_33_0__sc-1kkl86t-4"
|
|
28
28
|
})(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;"], cellSize, cellSize);
|
|
29
29
|
export var StyledDayHeaderCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
30
30
|
displayName: "StyledDayHeaderCell",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-11_33_0__sc-1kkl86t-5"
|
|
32
32
|
})(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
|
|
33
33
|
export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
34
34
|
displayName: "StyledDayCell",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-11_33_0__sc-1kkl86t-6"
|
|
36
36
|
})(["", ""], function (_ref) {
|
|
37
37
|
var _ref$$disabled = _ref.$disabled,
|
|
38
38
|
$disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
|
|
@@ -55,6 +55,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
|
55
55
|
});
|
|
56
56
|
export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
|
|
57
57
|
displayName: "StyledWeekRow",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-11_33_0__sc-1kkl86t-7"
|
|
59
59
|
})(["display:inline-flex;padding-bottom:2px;user-select:none;&:last-child{padding-bottom:0;}", "{&:first-child{border-top-left-radius:", "px;border-bottom-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;border-bottom-right-radius:", "px;}}"], StyledCell, borderRadius.md, borderRadius.md, borderRadius.md, borderRadius.md);
|
|
60
60
|
//# sourceMappingURL=Calendar.styles.js.map
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { BoxProps } from '../Box/Box.types';
|
|
3
3
|
import type { Props } from '../_utils/types';
|
|
4
|
-
export interface CalendarProps extends BodyProps {
|
|
4
|
+
export interface CalendarProps extends Omit<BodyProps, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* Click handler for navigating the calendar, with arrows or selects.
|
|
7
7
|
*/
|
|
8
8
|
onNavigate?: (date: Date) => void;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecatedSince 11.6.0
|
|
11
|
+
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
12
|
+
*
|
|
13
|
+
AFTER
|
|
14
|
+
```
|
|
15
|
+
<Calendar onSelect />
|
|
16
|
+
```
|
|
17
|
+
*/
|
|
18
|
+
children?: React.ReactNode;
|
|
9
19
|
}
|
|
10
20
|
export interface BodyProps extends Props {
|
|
11
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.types.js","names":[],"sources":["../../src/Calendar/Calendar.types.ts"],"sourcesContent":["import type { BoxProps } from '../Box/Box.types'\nimport type { Props } from '../_utils/types'\n\nexport interface CalendarProps extends BodyProps {\n /**\n * Click handler for navigating the calendar, with arrows or selects.\n */\n onNavigate?: (date: Date) => void\n}\n\nexport interface BodyProps extends Props {\n /**\n * @internal\n * @since 10.19.0\n */\n dueDateTime?: Date\n /**\n * Controls the month displayed on the calendar, can be different from selected.\n * @default new Date()\n * @since 10.19.0\n */\n displayDate?: Date\n /**\n * @param {Date} date - start of a day in the year\n * @param {Date} today - start of today in the context of the time zone\n * @returns {Boolean}\n * Provide a function to disable dates.\n * @since 10.19.0\n */\n disabledDate?: (date: Date, today: Date) => boolean\n /**\n * Provide a function to disable dates. Must return a boolean.\n * @since 10.19.0\n */\n monthRef?: React.Ref<HTMLDivElement>\n /**\n * Click handler for selecting a day.\n * @since 10.19.0\n */\n onSelect?: (day: Date) => void\n /**\n * End of the highlight of a day range\n * @since 10.19.0\n */\n selectedEnd?: Date\n /**\n * Start of the highlight of a day range\n * @since 10.19.0\n */\n selectedStart?: Date\n yearRef?: React.Ref<HTMLDivElement>\n}\n\nexport interface DayProps extends Props {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n isCurrentMonth?: boolean\n /**\n * @since 10.19.0\n */\n isRangeEnd?: boolean\n /**\n * @since 10.19.0\n */\n isRangeStart?: boolean\n /**\n * @since 10.19.0\n */\n isToday?: boolean\n /**\n * @since 10.19.0\n */\n onClick?: (event: React.MouseEvent<HTMLElement>) => void\n /**\n * @since 10.19.0\n */\n selected?: boolean\n}\n\nexport interface DayProps extends Props {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n isCurrentMonth?: boolean\n /**\n * @since 10.19.0\n */\n isRangeEnd?: boolean\n /**\n * @since 10.19.0\n */\n isRangeStart?: boolean\n /**\n * @since 10.19.0\n */\n isToday?: boolean\n /**\n * @since 10.19.0\n */\n onClick?: (event: React.MouseEvent<HTMLElement>) => void\n /**\n * @since 10.19.0\n */\n selected?: boolean\n}\n\nexport interface SelectProps extends Props {\n /**\n * @since 10.19.0\n */\n block?: boolean\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n onSelect: (selection: number) => any\n /**\n * Expects an array of objects with the following shape\n * @since 10.19.0\n */\n options?: SelectOption[]\n /**\n * Identifier of the selected value\n * @since 10.19.0\n */\n selected?: number\n}\n\nexport interface NextPrevProps extends Props {\n /**\n * @since 10.19.0\n */\n onClick: () => void\n}\n\nexport interface SelectOption {\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n value: number\n}\n\nexport interface CalendarContainerProps extends Props {}\nexport interface NavigationProps extends Omit<BoxProps, 'as'> {}\nexport interface WeekdaysProps extends Props {}\nexport interface WeekProps extends Props {}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Calendar.types.js","names":[],"sources":["../../src/Calendar/Calendar.types.ts"],"sourcesContent":["import type { BoxProps } from '../Box/Box.types'\nimport type { Props } from '../_utils/types'\n\nexport interface CalendarProps extends Omit<BodyProps, 'children'> {\n /**\n * Click handler for navigating the calendar, with arrows or selects.\n */\n onNavigate?: (date: Date) => void\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n children?: React.ReactNode\n}\n\nexport interface BodyProps extends Props {\n /**\n * @internal\n * @since 10.19.0\n */\n dueDateTime?: Date\n /**\n * Controls the month displayed on the calendar, can be different from selected.\n * @default new Date()\n * @since 10.19.0\n */\n displayDate?: Date\n /**\n * @param {Date} date - start of a day in the year\n * @param {Date} today - start of today in the context of the time zone\n * @returns {Boolean}\n * Provide a function to disable dates.\n * @since 10.19.0\n */\n disabledDate?: (date: Date, today: Date) => boolean\n /**\n * Provide a function to disable dates. Must return a boolean.\n * @since 10.19.0\n */\n monthRef?: React.Ref<HTMLDivElement>\n /**\n * Click handler for selecting a day.\n * @since 10.19.0\n */\n onSelect?: (day: Date) => void\n /**\n * End of the highlight of a day range\n * @since 10.19.0\n */\n selectedEnd?: Date\n /**\n * Start of the highlight of a day range\n * @since 10.19.0\n */\n selectedStart?: Date\n yearRef?: React.Ref<HTMLDivElement>\n}\n\nexport interface DayProps extends Props {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n isCurrentMonth?: boolean\n /**\n * @since 10.19.0\n */\n isRangeEnd?: boolean\n /**\n * @since 10.19.0\n */\n isRangeStart?: boolean\n /**\n * @since 10.19.0\n */\n isToday?: boolean\n /**\n * @since 10.19.0\n */\n onClick?: (event: React.MouseEvent<HTMLElement>) => void\n /**\n * @since 10.19.0\n */\n selected?: boolean\n}\n\nexport interface DayProps extends Props {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n isCurrentMonth?: boolean\n /**\n * @since 10.19.0\n */\n isRangeEnd?: boolean\n /**\n * @since 10.19.0\n */\n isRangeStart?: boolean\n /**\n * @since 10.19.0\n */\n isToday?: boolean\n /**\n * @since 10.19.0\n */\n onClick?: (event: React.MouseEvent<HTMLElement>) => void\n /**\n * @since 10.19.0\n */\n selected?: boolean\n}\n\nexport interface SelectProps extends Props {\n /**\n * @since 10.19.0\n */\n block?: boolean\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n onSelect: (selection: number) => any\n /**\n * Expects an array of objects with the following shape\n * @since 10.19.0\n */\n options?: SelectOption[]\n /**\n * Identifier of the selected value\n * @since 10.19.0\n */\n selected?: number\n}\n\nexport interface NextPrevProps extends Props {\n /**\n * @since 10.19.0\n */\n onClick: () => void\n}\n\nexport interface SelectOption {\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n value: number\n}\n\nexport interface CalendarContainerProps extends Props {}\nexport interface NavigationProps extends Omit<BoxProps, 'as'> {}\nexport interface WeekdaysProps extends Props {}\nexport interface WeekProps extends Props {}\n"],"mappings":""}
|
package/dist/Card/Card.styles.js
CHANGED
|
@@ -4,7 +4,7 @@ import { colors } from '../_styles/colors';
|
|
|
4
4
|
import { getShadow } from '../_styles/shadows';
|
|
5
5
|
export var StyledCardContainer = /*#__PURE__*/styled.div.withConfig({
|
|
6
6
|
displayName: "StyledCardContainer",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-11_33_0__sc-2fii7b-0"
|
|
8
8
|
})(["background-color:", ";border-radius:", "px;transition:box-shadow 0.2s ease-in-out;", " ", ""], colors.white, borderRadius.md, function (_ref) {
|
|
9
9
|
var $level = _ref.$level,
|
|
10
10
|
$shadowStrength = _ref.$shadowStrength;
|
|
@@ -9,7 +9,7 @@ export var dataQa = {
|
|
|
9
9
|
export var checkboxSize = 20;
|
|
10
10
|
export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledCheckboxContainer",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_33_0__sc-u63tye-0"
|
|
13
13
|
})(["color:", ";display:block;position:relative;& + &{margin-top:", "px;}"], colors.gray15, spacing.md);
|
|
14
14
|
function StyledIndeterminate() {
|
|
15
15
|
return css(["background-color:", ";content:'';height:2px;left:5px;position:absolute;top:9px;width:10px;border:none;"], colors.white);
|
|
@@ -48,18 +48,18 @@ function StyledFakeIndeterminate() {
|
|
|
48
48
|
}
|
|
49
49
|
export var StyledCheckboxLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
50
50
|
displayName: "StyledCheckboxLabelWrapper",
|
|
51
|
-
componentId: "core-
|
|
51
|
+
componentId: "core-11_33_0__sc-u63tye-1"
|
|
52
52
|
})(["padding-left:", "px;min-height:", "px;position:relative;", ""], function (_ref) {
|
|
53
53
|
var $hasLabel = _ref.$hasLabel;
|
|
54
54
|
return $hasLabel ? checkboxSize + spacing.md : checkboxSize;
|
|
55
55
|
}, checkboxSize, getTypographyIntent('body'));
|
|
56
56
|
export var StyledCheckboxLabel = /*#__PURE__*/styled.label.withConfig({
|
|
57
57
|
displayName: "StyledCheckboxLabel",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-11_33_0__sc-u63tye-2"
|
|
59
59
|
})(["user-select:none;&:before{background-color:", ";border-radius:2px;border:2px solid ", ";content:'';display:inline-block;height:", "px;width:", "px;min-width:", "px;top:0;left:0;position:absolute;}"], colors.white, colors.gray70, checkboxSize, checkboxSize, checkboxSize);
|
|
60
60
|
export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
|
|
61
61
|
displayName: "StyledCheckboxInput",
|
|
62
|
-
componentId: "core-
|
|
62
|
+
componentId: "core-11_33_0__sc-u63tye-3"
|
|
63
63
|
})(["left:0;opacity:0;position:absolute;top:0;&:disabled:checked + ", " > ", ":before{background-color:", ";border-color:", ";}&:disabled + ", " > ", ":before{background-color:", ";border-color:", ";}", " &:checked + ", " > ", "{&:before{background-color:", ";border-color:", ";color:", ";}&:after{", "}}&:focus:not(:disabled),&[data-qa=", "]:not(:disabled){+ ", " > ", ":before{", "}}", ""], StyledCheckboxLabelWrapper, StyledCheckboxLabel, colors.blue85, colors.blue85, StyledCheckboxLabelWrapper, StyledCheckboxLabel, function (_ref2) {
|
|
64
64
|
var $indeterminate = _ref2.$indeterminate;
|
|
65
65
|
return $indeterminate ? colors.gray85 : colors.white;
|
|
@@ -83,7 +83,7 @@ export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
|
|
|
83
83
|
});
|
|
84
84
|
export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
|
|
85
85
|
displayName: "StyledFakeCheckboxLabel",
|
|
86
|
-
componentId: "core-
|
|
86
|
+
componentId: "core-11_33_0__sc-u63tye-4"
|
|
87
87
|
})(["", " display:block;min-height:", "px;padding-left:", "px;position:relative;user-select:none;cursor:pointer;", ""], getTypographyIntent('body'), checkboxSize, function (_ref7) {
|
|
88
88
|
var children = _ref7.children;
|
|
89
89
|
return children ? checkboxSize + spacing.md : checkboxSize;
|
|
@@ -99,7 +99,7 @@ export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
99
99
|
});
|
|
100
100
|
export var StyledFakeCheckboxInput = /*#__PURE__*/styled.div.withConfig({
|
|
101
101
|
displayName: "StyledFakeCheckboxInput",
|
|
102
|
-
componentId: "core-
|
|
102
|
+
componentId: "core-11_33_0__sc-u63tye-5"
|
|
103
103
|
})(["width:", "px;height:", "px;border-radius:2px;border:2px solid ", ";position:absolute;", " ", " ", " ", ""], checkboxSize, checkboxSize, colors.gray70, function (_ref9) {
|
|
104
104
|
var $checked = _ref9.$checked,
|
|
105
105
|
$disabled = _ref9.$disabled,
|
|
@@ -7,23 +7,23 @@ import { getLineClamp } from '../_styles/mixins';
|
|
|
7
7
|
import { spacing } from '../_styles/spacing';
|
|
8
8
|
export var ContactItemAvatarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "ContactItemAvatarWrapper",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_33_0__sc-1c4z9pn-0"
|
|
11
11
|
})(["display:inline-flex;align-self:flex-start;"]);
|
|
12
12
|
export var ContactItemAvatar = /*#__PURE__*/styled(Avatar).withConfig({
|
|
13
13
|
displayName: "ContactItemAvatar",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_33_0__sc-1c4z9pn-1"
|
|
15
15
|
})(["cursor:inherit;font-weight:", ";"], typographyWeights.bold);
|
|
16
16
|
export var ContactItemTextWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "ContactItemTextWrapper",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_33_0__sc-1c4z9pn-2"
|
|
19
19
|
})(["overflow:hidden;margin-left:", "px;"], spacing.sm);
|
|
20
20
|
export var ContactItemText = /*#__PURE__*/styled(Typography).withConfig({
|
|
21
21
|
displayName: "ContactItemText",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-11_33_0__sc-1c4z9pn-3"
|
|
23
23
|
})(["display:flex;", ""], getLineClamp());
|
|
24
24
|
export var ContactItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "ContactItemWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-11_33_0__sc-1c4z9pn-4"
|
|
27
27
|
})(["display:flex;flex-direction:row;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, function (_ref) {
|
|
28
28
|
var $disabled = _ref.$disabled,
|
|
29
29
|
$clickable = _ref.$clickable;
|