@procore/core-react 12.34.0 → 12.35.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/CHANGELOG.md +38 -0
- 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/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.d.ts +2 -2
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.d.ts +6 -3
- package/dist/Calendar/Calendar.styles.js +15 -9
- package/dist/Calendar/Calendar.styles.js.map +1 -1
- package/dist/Calendar/Calendar.types.d.ts +1 -31
- 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/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/ContactItem/ContactItem.types.d.ts +2 -0
- package/dist/ContactItem/ContactItem.types.js.map +1 -1
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.js +58 -53
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- 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 +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- 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/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- 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.js +23 -2
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +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 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.js +6 -2
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.js +4 -1
- package/dist/Portal/Portal.js.map +1 -1
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/Portal/Portal.types.d.ts +1 -1
- package/dist/Portal/Portal.types.js.map +1 -1
- package/dist/Portal/PortalProvider.d.ts +5 -0
- package/dist/Portal/PortalProvider.js +14 -0
- package/dist/Portal/PortalProvider.js.map +1 -0
- package/dist/Portal/PortalProvider.types.d.ts +4 -0
- package/dist/Portal/PortalProvider.types.js +2 -0
- package/dist/Portal/PortalProvider.types.js.map +1 -0
- package/dist/Portal/index.d.ts +2 -0
- package/dist/Portal/index.js +1 -0
- package/dist/Portal/index.js.map +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 +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.context.js +10 -2
- package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.js +4 -2
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +38 -38
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.d.ts +2 -2
- package/dist/Table/Table.js +58 -18
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.d.ts +3 -1
- package/dist/Table/Table.styles.js +32 -31
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/Table/Table.types.d.ts +5 -0
- package/dist/Table/Table.types.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +15 -15
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.js +1 -0
- package/dist/TextArea/TextArea.js.map +1 -1
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditor/TextEditor.d.ts +1 -1
- package/dist/TextEditor/TextEditor.js +67 -12
- package/dist/TextEditor/TextEditor.js.map +1 -1
- package/dist/TextEditor/TextEditor.types.d.ts +17 -0
- package/dist/TextEditor/TextEditor.types.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/ThumbnailDocumentIcon.d.ts +3 -1
- package/dist/Thumbnail/ThumbnailDocumentIcon.js +61 -21
- package/dist/Thumbnail/ThumbnailDocumentIcon.js.map +1 -1
- 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.js +1 -1
- package/dist/Toast/Toast.js.map +1 -1
- 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/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- 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/_hooks/I18n.d.ts +166 -11
- package/dist/_locales/de-DE.json +9 -3
- package/dist/_locales/en-AU.json +8 -2
- package/dist/_locales/en-CA.json +8 -2
- package/dist/_locales/en-GB.json +8 -2
- package/dist/_locales/en.json +7 -1
- package/dist/_locales/es-ES.json +10 -4
- package/dist/_locales/es.json +13 -7
- package/dist/_locales/fr-CA.json +9 -3
- package/dist/_locales/fr-FR.json +10 -4
- package/dist/_locales/is-IS.json +9 -3
- package/dist/_locales/it-IT.json +54 -48
- package/dist/_locales/ja-JP.json +10 -4
- package/dist/_locales/pl-PL.json +8 -2
- package/dist/_locales/pseudo.json +7 -1
- package/dist/_locales/pt-BR.json +9 -3
- package/dist/_locales/pt-PT.json +188 -182
- package/dist/_locales/th-TH.json +11 -5
- package/dist/_locales/zh-SG.json +8 -2
- package/dist/_locales/zh-TW.json +13 -7
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- 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 +13 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +89 -89
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
- package/dist/_typedoc/ContactItem/ContactItem.types.json +12 -10
- 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 +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- 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 +794 -754
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- 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 +1 -1
- 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 +77 -77
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +34 -34
- 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 +30 -30
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +51 -51
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- 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 +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +64 -64
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
- package/dist/_typedoc/Table/Table.types.json +113 -103
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +29 -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 +43 -43
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
- package/dist/_typedoc/Tile/Tile.types.json +8 -8
- 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 +4 -4
- package/dist/_typedoc/Token/Token.types.json +7 -7
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
- 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 +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/a11y.d.ts +1 -0
- package/dist/_utils/a11y.js +8 -0
- package/dist/_utils/a11y.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b78032a: `Calendar.Day` component is now a button element
|
|
8
|
+
- ea3dac5: Improve `Table.Carat` accessibility:
|
|
9
|
+
- _Notice:_ Change ref type from `SVGElement` to `HTMLButtonElement`: The Carat component now correctly types its ref as `HTMLButtonElement` instead of `SVGElement` to accurately reflect that it renders a Button component. Consumers using refs on Table.Carat should update their ref types accordingly.
|
|
10
|
+
- Add dynamic internationalized aria-labels that change based on expanded state (Expand/Collapse) and support custom aria-label prop override for consumers who need more specific labels
|
|
11
|
+
- 44c7e06: Implements a `PortalProvider` and hook for consumers to provide an optional global portal container
|
|
12
|
+
- 9d002eb: Add `TextEditor` accessibility props for screen reader support
|
|
13
|
+
- Add `aria-label` prop to provide an accessible name for the editor
|
|
14
|
+
- Add `aria-description` prop to provide additional context for screen reader users
|
|
15
|
+
- e7c8431: Add internal `mainSectionRef` prop to SplitViewCardContext that is used to return focus to Main section when Panel closes. Change tabIndex of the Main section to -1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 80693ba: Deprecated the `clickable` prop on the ContactItem component.
|
|
20
|
+
- 551cb80: Improve `DateSelect` error state accessibility
|
|
21
|
+
- Add `aria-invalid` attribute that reflects the `error` prop
|
|
22
|
+
- 0c0c82f: `Table` Associate error messages with their related fields using `aria-describedby` and add `aria-invalid`.
|
|
23
|
+
- 4d677d3: Add `aria-invalid` attribute to text editor container in error state
|
|
24
|
+
- f4dcc0b: Improve `TextArea` error state accessibility add `aria-invalid` attribute that reflects the `error` prop
|
|
25
|
+
- eff2231: Adding role='img' and aria-label to `Thumbnails` placeholder icons
|
|
26
|
+
- 1f33e8c: Improve `Panel.Header` back button accessibility when inactive:
|
|
27
|
+
- Make the Button inaccessible when `onClickBack` is undefined: set `aria-hidden`, `tabIndex={-1}`, and `disabled` on the Button so screen readers and keyboard users do not focus or announce it.
|
|
28
|
+
|
|
29
|
+
## 12.34.1
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 2eb552f: Improve MultiSelect accessibility:
|
|
34
|
+
|
|
35
|
+
- Add `role="combobox"` to the search input with `aria-expanded` and `aria-controls`
|
|
36
|
+
- Add `role="list"` to the selected tokens container with `aria-label="Selected items"`
|
|
37
|
+
- Add `role="listitem"` to each selected token with `aria-label="<label>, selected"`
|
|
38
|
+
- Add `aria-activedescendant` to track focused token during keyboard navigation
|
|
39
|
+
- Add new locale keys: `multiSelect.selectedToken` and `multiSelect.selectedItems`
|
|
40
|
+
|
|
3
41
|
## 12.34.0
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|
|
@@ -5,11 +5,11 @@ import { getEllipsis } from '../_styles/mixins';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledAnchorNavigation = /*#__PURE__*/styled.ul.withConfig({
|
|
7
7
|
displayName: "StyledAnchorNavigation",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_35_0__sc-aacdj4-0"
|
|
9
9
|
})(["max-width:200px;margin:0;padding-inline-start:0;"]);
|
|
10
10
|
export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
|
|
11
11
|
displayName: "StyledAnchorSection",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_35_0__sc-aacdj4-1"
|
|
13
13
|
})(["display:flex;cursor:pointer;border-left:", "px solid ", ";background-color:", ";border-top-right-radius:4px;border-bottom-right-radius:4px;:hover{border-left:", "px solid ", ";background-color:", ";}"], spacing.xs, function (_ref) {
|
|
14
14
|
var $selected = _ref.$selected;
|
|
15
15
|
return $selected ? colors.gray15 : colors.gray90;
|
|
@@ -22,7 +22,7 @@ export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
|
|
|
22
22
|
}, colors.gray90);
|
|
23
23
|
export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
|
|
24
24
|
displayName: "StyledAnchor",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-12_35_0__sc-aacdj4-2"
|
|
26
26
|
})(["width:100%;padding:6px ", "px;", " ", ";", " :focus-visible{box-shadow:inset 0 0 0 2px ", ";outline:none;}"], spacing.sm, getTypographyIntent('body'), function (_ref4) {
|
|
27
27
|
var $selected = _ref4.$selected;
|
|
28
28
|
return $selected ? css(["font-weight:600;"]) : '';
|
|
@@ -28,26 +28,26 @@ var iconSize = {
|
|
|
28
28
|
};
|
|
29
29
|
export var StyledAvatarOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
30
30
|
displayName: "StyledAvatarOverlay",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_35_0__sc-7q2ydl-0"
|
|
32
32
|
})(["width:100%;height:100%;position:absolute;top:0;left:0;border-radius:100%;opacity:0;"]);
|
|
33
33
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledIconContainer",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-12_35_0__sc-7q2ydl-1"
|
|
36
36
|
})(["display:inline-flex;"]);
|
|
37
37
|
export var StyledLabelContainer = /*#__PURE__*/styled.div.withConfig({
|
|
38
38
|
displayName: "StyledLabelContainer",
|
|
39
|
-
componentId: "core-
|
|
39
|
+
componentId: "core-12_35_0__sc-7q2ydl-2"
|
|
40
40
|
})(["text-transform:uppercase;"]);
|
|
41
41
|
export var StyledPortraitContainer = /*#__PURE__*/styled.div.withConfig({
|
|
42
42
|
displayName: "StyledPortraitContainer",
|
|
43
|
-
componentId: "core-
|
|
43
|
+
componentId: "core-12_35_0__sc-7q2ydl-3"
|
|
44
44
|
})(["background-color:", ";background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;width:100%;", ""], colors.white, function (_ref) {
|
|
45
45
|
var $imageUrl = _ref.$imageUrl;
|
|
46
46
|
return css(["background-image:url(", ");"], $imageUrl);
|
|
47
47
|
});
|
|
48
48
|
export var StyledAvatarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
49
49
|
displayName: "StyledAvatarContainer",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_35_0__sc-7q2ydl-4"
|
|
51
51
|
})(["display:inline-flex;justify-content:center;align-items:center;border-radius:100%;overflow:hidden;position:relative;cursor:default;color:", ";background-color:", ";text-decoration:none;a:has(> &){text-decoration:none;}&:focus{", "}a:focus:has(> &){", " border-radius:100%;}", " ", ";"], colors.white, colors.gray30, getGapOutlineFocus, getGapOutlineFocus, function (_ref2) {
|
|
52
52
|
var _ref2$$size = _ref2.$size,
|
|
53
53
|
$size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
|
|
@@ -7,32 +7,32 @@ import { spacing } from '../_styles/spacing';
|
|
|
7
7
|
var maxModalWidth = 528;
|
|
8
8
|
var StyledBaseAvatar = /*#__PURE__*/styled(Avatar).withConfig({
|
|
9
9
|
displayName: "StyledBaseAvatar",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_35_0__sc-ft72hu-0"
|
|
11
11
|
})(["border-color:", ";border-style:solid;border-width:1px;&:hover{z-index:1;}&[role='img']:focus{outline:none;}"], colors.white);
|
|
12
12
|
export var StyledAvatar = /*#__PURE__*/styled(StyledBaseAvatar).withConfig({
|
|
13
13
|
displayName: "StyledAvatar",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_35_0__sc-ft72hu-1"
|
|
15
15
|
})(["background-color:", ";"], function (props) {
|
|
16
16
|
return colors[props.$color];
|
|
17
17
|
});
|
|
18
18
|
export var StyledContactItems = /*#__PURE__*/styled.div.withConfig({
|
|
19
19
|
displayName: "StyledContactItems",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_35_0__sc-ft72hu-2"
|
|
21
21
|
})(["padding-top:", "px;padding-bottom:", "px;padding-left:", "px;"], spacing.sm, spacing.sm, spacing.xs);
|
|
22
22
|
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledWrapper",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_35_0__sc-ft72hu-3"
|
|
25
25
|
})(["display:flex;", " + ", "{margin-left:-", "px;}"], StyledAvatar, StyledAvatar, spacing.sm);
|
|
26
26
|
export var StyledViewAllWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
27
27
|
displayName: "StyledViewAllWrapper",
|
|
28
|
-
componentId: "core-
|
|
28
|
+
componentId: "core-12_35_0__sc-ft72hu-4"
|
|
29
29
|
})(["display:flex;margin-left:", "px;margin-bottom:", "px;"], spacing.md, spacing.lg);
|
|
30
30
|
export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
|
|
31
31
|
displayName: "StyledModalBody",
|
|
32
|
-
componentId: "core-
|
|
32
|
+
componentId: "core-12_35_0__sc-ft72hu-5"
|
|
33
33
|
})(["max-width:", "px;"], maxModalWidth);
|
|
34
34
|
export var StyledContactItem = /*#__PURE__*/styled(ContactItem).withConfig({
|
|
35
35
|
displayName: "StyledContactItem",
|
|
36
|
-
componentId: "core-
|
|
36
|
+
componentId: "core-12_35_0__sc-ft72hu-6"
|
|
37
37
|
})(["flex-shrink:0;"]);
|
|
38
38
|
//# sourceMappingURL=AvatarStack.styles.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export var StyledBadge = /*#__PURE__*/styled.div.withConfig({
|
|
3
3
|
displayName: "StyledBadge",
|
|
4
|
-
componentId: "core-
|
|
4
|
+
componentId: "core-12_35_0__sc-rpertu-0"
|
|
5
5
|
})(["display:inline-block;position:relative;"]);
|
|
6
6
|
export var StyledBadgeLabel = /*#__PURE__*/styled.span.withConfig({
|
|
7
7
|
displayName: "StyledBadgeLabel",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_35_0__sc-rpertu-1"
|
|
9
9
|
})(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
|
|
10
10
|
//# sourceMappingURL=Badge.styles.js.map
|
|
@@ -3,11 +3,11 @@ import { getTypographyIntent } from '../Typography';
|
|
|
3
3
|
import { colors } from '../_styles/colors';
|
|
4
4
|
export var StyledBadgeContainer = /*#__PURE__*/styled.div.withConfig({
|
|
5
5
|
displayName: "StyledBadgeContainer",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_35_0__sc-s2n9gd-0"
|
|
7
7
|
})(["display:inline-flex;position:relative;"]);
|
|
8
8
|
export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledBadgeContent",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_35_0__sc-s2n9gd-1"
|
|
11
11
|
})(["position:relative;", " ", " pointer-events:none;user-select:none;"], function (_ref) {
|
|
12
12
|
var $overlapping = _ref.$overlapping,
|
|
13
13
|
_ref$$xOffset = _ref.$xOffset,
|
|
@@ -20,13 +20,13 @@ export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
20
20
|
});
|
|
21
21
|
export var StyledBadgeDotIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
22
22
|
displayName: "StyledBadgeDotIndicator",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_35_0__sc-s2n9gd-2"
|
|
24
24
|
})(["width:6px;height:6px;border-radius:50%;background-color:", ";"], colors.orange50);
|
|
25
25
|
var oneDigitStyles = "\n border-radius: 50%;\n padding: 2px;\n min-width: 21.5px;\n min-height: 21.5px;\n";
|
|
26
26
|
var multiDigitStyles = "\n border-radius: 10px;\n padding: 2px 8px;\n";
|
|
27
27
|
export var StyledBadgeCounter = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
displayName: "StyledBadgeCounter",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-12_35_0__sc-s2n9gd-3"
|
|
30
30
|
})(["display:inline-flex;justify-content:center;align-items:center;color:", ";background-color:", ";", " ", ""], colors.white, colors.orange50, getTypographyIntent('small'), function (props) {
|
|
31
31
|
return props.$oneDigit ? oneDigitStyles : multiDigitStyles;
|
|
32
32
|
});
|
|
@@ -39,7 +39,7 @@ var expandContent = function expandContent(maxHeight) {
|
|
|
39
39
|
};
|
|
40
40
|
export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledBannerContainer",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_35_0__sc-149wm7c-0"
|
|
43
43
|
})(["align-items:center;border-left:", "px solid;border-radius:", "px;color:", ";display:flex;justify-content:space-between;min-height:52px;padding:0 ", "px;", " ", " ", ""], bannerLeft, borderRadius.md, colors.gray15, spacing.lg, bannerShadow, function (_ref) {
|
|
44
44
|
var $variant = _ref.$variant;
|
|
45
45
|
var _bannerVariantColors$ = bannerVariantColors[$variant],
|
|
@@ -52,15 +52,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
52
52
|
});
|
|
53
53
|
export var StyledContent = /*#__PURE__*/styled.div.withConfig({
|
|
54
54
|
displayName: "StyledContent",
|
|
55
|
-
componentId: "core-
|
|
55
|
+
componentId: "core-12_35_0__sc-149wm7c-1"
|
|
56
56
|
})(["align-self:center;margin:", "px ", "px ", "px 0;width:100%;"], spacing.sm, spacing.lg, spacing.sm);
|
|
57
57
|
export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
|
|
58
58
|
displayName: "StyledExpandableContentContainer",
|
|
59
|
-
componentId: "core-
|
|
59
|
+
componentId: "core-12_35_0__sc-149wm7c-2"
|
|
60
60
|
})(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
|
|
61
61
|
export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
62
62
|
displayName: "StyledExpandableContent",
|
|
63
|
-
componentId: "core-
|
|
63
|
+
componentId: "core-12_35_0__sc-149wm7c-3"
|
|
64
64
|
})(["animation-duration:450ms;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:", ";box-sizing:border-box;font-size:14px;font-weight:500;letter-spacing:0.25px;line-height:20px;overflow-y:auto;padding:0 ", "px;position:relative;z-index:0;", " ", ""], colors.white, spacing.xl * 2 + spacing.sm, function (_ref3) {
|
|
65
65
|
var $isOverflowingY = _ref3.$isOverflowingY;
|
|
66
66
|
return $isOverflowingY && focusable;
|
|
@@ -70,23 +70,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
|
70
70
|
});
|
|
71
71
|
export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
72
72
|
displayName: "StyledTitle",
|
|
73
|
-
componentId: "core-
|
|
73
|
+
componentId: "core-12_35_0__sc-149wm7c-4"
|
|
74
74
|
})(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
|
|
75
75
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
76
76
|
displayName: "StyledBody",
|
|
77
|
-
componentId: "core-
|
|
77
|
+
componentId: "core-12_35_0__sc-149wm7c-5"
|
|
78
78
|
})(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
|
|
79
79
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
80
80
|
displayName: "StyledIconContainer",
|
|
81
|
-
componentId: "core-
|
|
81
|
+
componentId: "core-12_35_0__sc-149wm7c-6"
|
|
82
82
|
})(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
|
|
83
83
|
export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
|
|
84
84
|
displayName: "StyledActionsTrigger",
|
|
85
|
-
componentId: "core-
|
|
85
|
+
componentId: "core-12_35_0__sc-149wm7c-7"
|
|
86
86
|
})(["flex-shrink:0;& + ", ",& + ", "{margin-left:-", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
|
|
87
87
|
export var StyledAction = /*#__PURE__*/styled.div.withConfig({
|
|
88
88
|
displayName: "StyledAction",
|
|
89
|
-
componentId: "core-
|
|
89
|
+
componentId: "core-12_35_0__sc-149wm7c-8"
|
|
90
90
|
})(["margin:", "px 0 ", "px -", "px;& + ", ",& + ", ",& + ", "{margin-left:-", "px;}", ",", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, spacing.sm, spacing.sm, StyledButton, StyledLinkButton, StyledActionsTrigger, spacing.sm, StyledButton, StyledLinkButton, colors.gray15, colors.gray85, colors.gray15);
|
|
91
91
|
function getMiniBannerIconColor(_ref5) {
|
|
92
92
|
var variant = _ref5.variant;
|
|
@@ -94,6 +94,6 @@ function getMiniBannerIconColor(_ref5) {
|
|
|
94
94
|
}
|
|
95
95
|
export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
96
96
|
displayName: "StyledMiniBannerContainer",
|
|
97
|
-
componentId: "core-
|
|
97
|
+
componentId: "core-12_35_0__sc-149wm7c-9"
|
|
98
98
|
})(["align-items:center;background-color:", ";display:flex;justify-content:space-between;padding:0 ", "px;", " ", " & ", "{margin:", "px;}"], colors.gray96, spacing.md, getTypographyIntent('small'), getMiniBannerIconColor, StyledContent, spacing.sm);
|
|
99
99
|
//# sourceMappingURL=Banner.styles.js.map
|
package/dist/Box/Box.styles.js
CHANGED
|
@@ -21,7 +21,7 @@ function sizeToPx(size) {
|
|
|
21
21
|
}
|
|
22
22
|
export var StyledBox = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledBox",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_35_0__sc-fgsy0p-0"
|
|
25
25
|
})(["", " ", ""], function (_ref) {
|
|
26
26
|
var as = _ref.as;
|
|
27
27
|
if (as === 'ol' || as === 'ul') {
|
|
@@ -4,19 +4,19 @@ import { colors } from '../_styles/colors';
|
|
|
4
4
|
import { spacing } from '../_styles/spacing';
|
|
5
5
|
export var StyledContainer = /*#__PURE__*/styled.nav.withConfig({
|
|
6
6
|
displayName: "StyledContainer",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-12_35_0__sc-1q6nqfz-0"
|
|
8
8
|
})(["color:", ";display:flex;align-items:center;a,a:hover{display:inline-flex;text-decoration:none;}"], colors.gray50);
|
|
9
9
|
export var StyledList = /*#__PURE__*/styled.ol.withConfig({
|
|
10
10
|
displayName: "StyledList",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-12_35_0__sc-1q6nqfz-1"
|
|
12
12
|
})(["display:flex;margin:0;padding-left:0;"]);
|
|
13
13
|
export var StyledSeparator = /*#__PURE__*/styled.div.withConfig({
|
|
14
14
|
displayName: "StyledSeparator",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-12_35_0__sc-1q6nqfz-2"
|
|
16
16
|
})(["align-items:center;display:inline-flex;justify-content:center;margin:0px ", "px;"], spacing.xs);
|
|
17
17
|
export var StyledCrumb = /*#__PURE__*/styled.li.withConfig({
|
|
18
18
|
displayName: "StyledCrumb",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_35_0__sc-1q6nqfz-3"
|
|
20
20
|
})(["", " align-items:center;color:", ";display:inline-flex;min-height:24px;text-decoration:none;&:hover{cursor:", ";text-decoration:", ";}> a{color:", ";", "}", ""], getTypographyIntent('body'), colors.gray45, function (_ref) {
|
|
21
21
|
var active = _ref.active;
|
|
22
22
|
return active ? 'default' : 'pointer';
|
|
@@ -93,11 +93,11 @@ function getColors(loading, variant) {
|
|
|
93
93
|
}
|
|
94
94
|
export var StyledContent = /*#__PURE__*/styled.span.withConfig({
|
|
95
95
|
displayName: "StyledContent",
|
|
96
|
-
componentId: "core-
|
|
96
|
+
componentId: "core-12_35_0__sc-c5bhwh-0"
|
|
97
97
|
})(["align-items:center;display:flex;overflow:hidden;"]);
|
|
98
98
|
export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
99
99
|
displayName: "StyledSpinner",
|
|
100
|
-
componentId: "core-
|
|
100
|
+
componentId: "core-12_35_0__sc-c5bhwh-1"
|
|
101
101
|
})(["box-sizing:border-box;display:none;position:absolute;transform:translateZ(0);@media ", "{left:50%;top:50%;", "}"], mediaIE11Hack, function (_ref) {
|
|
102
102
|
var size = _ref.size;
|
|
103
103
|
var margin = -1 * (spinnerDimensions[size !== null && size !== void 0 ? size : defaultSpinnerSize] / 2);
|
|
@@ -105,14 +105,14 @@ export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
|
105
105
|
});
|
|
106
106
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
107
107
|
displayName: "StyledLabel",
|
|
108
|
-
componentId: "core-
|
|
108
|
+
componentId: "core-12_35_0__sc-c5bhwh-2"
|
|
109
109
|
})(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
|
|
110
110
|
export function getButtonStyles(block, disabled, loading, size, variant) {
|
|
111
111
|
return css(["", " ", " ", " ", " align-items:center;border-radius:", "px;border:0;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;flex-shrink:0;font-family:inherit;font-weight:", ";height:", "px;justify-content:center;margin:0;overflow:hidden;padding:0 ", "px;position:relative;pointer-events:", ";text-overflow:ellipsis;user-select:", ";vertical-align:middle;white-space:nowrap;width:", ";[data-icon-prop='true']{pointer-events:none;height:", "px;width:", "px;}", ""], getTypographyIntent(typographySizes[size]), focusable, variant === 'UNSAFE_helixNav' && css(["&.focus,&:focus{outline:none;box-shadow:0 0 0 2px ", ";}"], colors.blue70), getColors(loading, variant), borderRadius.md, typographyWeights.semibold, heights[size], paddingX[size], disabled || loading ? 'none' : 'inherit', disabled || loading ? 'none' : 'inherit', block && '100%', size === 'sm' ? 16 : 24, size === 'sm' ? 16 : 24, loading && css(["", "{pointer-events:none;visibility:hidden;}", "{display:block;}"], StyledContent, StyledSpinner));
|
|
112
112
|
}
|
|
113
113
|
export var StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
114
114
|
displayName: "StyledButton",
|
|
115
|
-
componentId: "core-
|
|
115
|
+
componentId: "core-12_35_0__sc-c5bhwh-3"
|
|
116
116
|
})(["", ""], function (_ref2) {
|
|
117
117
|
var $block = _ref2.$block,
|
|
118
118
|
disabled = _ref2.disabled,
|
|
@@ -123,7 +123,7 @@ export var StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
123
123
|
});
|
|
124
124
|
export var StyledLinkButton = /*#__PURE__*/styled.a.withConfig({
|
|
125
125
|
displayName: "StyledLinkButton",
|
|
126
|
-
componentId: "core-
|
|
126
|
+
componentId: "core-12_35_0__sc-c5bhwh-4"
|
|
127
127
|
})(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
|
|
128
128
|
var $block = _ref3.$block,
|
|
129
129
|
$disabled = _ref3.$disabled,
|
|
@@ -29,7 +29,7 @@ export declare const Container: React.ForwardRefExoticComponent<CalendarContaine
|
|
|
29
29
|
*
|
|
30
30
|
* AFTER `<Calendar onSelect />`
|
|
31
31
|
*/
|
|
32
|
-
export declare const Day: React.ForwardRefExoticComponent<DayProps & React.RefAttributes<
|
|
32
|
+
export declare const Day: React.ForwardRefExoticComponent<DayProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
33
|
/**
|
|
34
34
|
* @parent Calendar
|
|
35
35
|
* @deprecatedSince 11.6.0
|
|
@@ -115,7 +115,7 @@ export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & R
|
|
|
115
115
|
<Calendar onSelect />
|
|
116
116
|
```
|
|
117
117
|
*/
|
|
118
|
-
Day: React.ForwardRefExoticComponent<DayProps & React.RefAttributes<
|
|
118
|
+
Day: React.ForwardRefExoticComponent<DayProps & React.RefAttributes<HTMLButtonElement>>;
|
|
119
119
|
/**
|
|
120
120
|
* @deprecatedSince 11.6.0
|
|
121
121
|
* @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.
|
|
@@ -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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Navigation = React.forwardRef<HTMLDivElement, NavigationProps>(\n function Navigation(props, ref) {\n return <StyledNavigation {...props} ref={ref} />\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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,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,EACNC,QAAQ,EACRC,iBAAiB,EACjBC,QAAQ,EACRC,aAAa,EACbC,eAAe,EACfC,OAAO,EACPC,OAAO,EACPC,cAAc,EACdC,SAAS,EACTC,WAAW,EACXC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,UAAU,QACL,2BAA2B;AAElC,SAASC,kBAAkB,QAAQ,gBAAgB;AACnD,SACEC,eAAe,EACfC,aAAa,EACbC,mBAAmB,EACnBC,gBAAgB,EAChBC,eAAe,EACfC,YAAY,EACZC,aAAa,QACR,mBAAmB;AAa1B,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,SAASC,WAAWA,CAAA,EAAG;EACrB,OAAO,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAAAC,IAAA,EAQN;EAAA,IAPCC,YAAY,GAAAD,IAAA,CAAzBE,WAAW;IACEC,YAAY,GAAAH,IAAA,CAAzBI,WAAW;IACXC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IAAAC,aAAA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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;EACE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI2B,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI+C,SAAS,EAATA,SAAS;EACT;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIb,GAAG,EAAHA,GAAG;EACH;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI8B,UAAU,EAAVA,UAAU;EACV;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,IAAI,EAAJA,IAAI;EACJ;AACJ;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"}
|
|
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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Day = React.forwardRef<HTMLButtonElement, 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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Navigation = React.forwardRef<HTMLDivElement, NavigationProps>(\n function Navigation(props, ref) {\n return <StyledNavigation {...props} ref={ref} />\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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 * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\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,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,SAASC,WAAW,QAAQ,oBAAoB;AAE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AACA;AACA;AACA;AACA;AACA;AACA;EACI+C,SAAS,EAATA,SAAS;EACT;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIb,GAAG,EAAHA,GAAG;EACH;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI8B,UAAU,EAAVA,UAAU;EACV;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,IAAI,EAAJA,IAAI;EACJ;AACJ;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"}
|
|
@@ -9,9 +9,12 @@ export declare const StyledCell: import("styled-components/dist/types").IStyledC
|
|
|
9
9
|
export declare const StyledDayHeaderCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
11
|
}, never>> & string;
|
|
12
|
-
export declare const
|
|
13
|
-
ref?: ((instance:
|
|
14
|
-
}
|
|
12
|
+
export declare const StyledCellButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
14
|
+
}>, never>, never>> & string;
|
|
15
|
+
export declare const StyledDayCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
17
|
+
}>, never>, never>, {
|
|
15
18
|
$disabled: boolean;
|
|
16
19
|
$selected: boolean;
|
|
17
20
|
$isCurrentMonth: boolean;
|
|
@@ -8,31 +8,37 @@ 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-12_35_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-12_35_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-12_35_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-12_35_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-12_35_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-12_35_0__sc-1kkl86t-5"
|
|
32
32
|
})(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
|
|
33
|
-
export var
|
|
33
|
+
export var StyledCellButton = /*#__PURE__*/styled.button.attrs({
|
|
34
|
+
type: 'button'
|
|
35
|
+
}).withConfig({
|
|
36
|
+
displayName: "StyledCellButton",
|
|
37
|
+
componentId: "core-12_35_0__sc-1kkl86t-6"
|
|
38
|
+
})(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;cursor:pointer;border:none;background:none;padding:0;font:inherit;"], cellSize, cellSize);
|
|
39
|
+
export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
|
|
34
40
|
displayName: "StyledDayCell",
|
|
35
|
-
componentId: "core-
|
|
41
|
+
componentId: "core-12_35_0__sc-1kkl86t-7"
|
|
36
42
|
})(["", ""], function (_ref) {
|
|
37
43
|
var _ref$$disabled = _ref.$disabled,
|
|
38
44
|
$disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
|
|
@@ -55,6 +61,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
|
55
61
|
});
|
|
56
62
|
export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
|
|
57
63
|
displayName: "StyledWeekRow",
|
|
58
|
-
componentId: "core-
|
|
64
|
+
componentId: "core-12_35_0__sc-1kkl86t-8"
|
|
59
65
|
})(["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
66
|
//# sourceMappingURL=Calendar.styles.js.map
|