@procore/core-react 12.53.3 → 12.54.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.
Files changed (313) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.js +2 -0
  5. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  6. package/dist/AvatarStack/AvatarStack.styles.js +8 -8
  7. package/dist/Badge/Badge.styles.js +2 -2
  8. package/dist/BadgePill/BadgePill.styles.js +4 -4
  9. package/dist/Banner/Banner.d.ts +1 -0
  10. package/dist/Banner/Banner.js +31 -14
  11. package/dist/Banner/Banner.js.map +1 -1
  12. package/dist/Banner/Banner.styles.d.ts +10 -0
  13. package/dist/Banner/Banner.styles.js +29 -12
  14. package/dist/Banner/Banner.styles.js.map +1 -1
  15. package/dist/Banner/Banner.types.d.ts +1 -1
  16. package/dist/Banner/Banner.types.js.map +1 -1
  17. package/dist/Banner/index.d.ts +1 -1
  18. package/dist/Banner/index.js +1 -1
  19. package/dist/Banner/index.js.map +1 -1
  20. package/dist/Box/Box.styles.js +1 -1
  21. package/dist/Breadcrumbs/Breadcrumbs.styles.js +7 -6
  22. package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  23. package/dist/Button/Button.styles.js +5 -5
  24. package/dist/Calendar/Calendar.js +97 -10
  25. package/dist/Calendar/Calendar.js.map +1 -1
  26. package/dist/Calendar/Calendar.styles.d.ts +3 -0
  27. package/dist/Calendar/Calendar.styles.js +13 -9
  28. package/dist/Calendar/Calendar.styles.js.map +1 -1
  29. package/dist/Calendar/Calendar.types.js.map +1 -1
  30. package/dist/Card/Card.styles.js +1 -1
  31. package/dist/Checkbox/Checkbox.styles.js +6 -6
  32. package/dist/ContactItem/ContactItem.styles.js +5 -5
  33. package/dist/Content/Content.styles.js +2 -2
  34. package/dist/DateInput/DateInput.js +1 -1
  35. package/dist/DateInput/DateInput.js.map +1 -1
  36. package/dist/DateInput/DateInput.styles.js +8 -8
  37. package/dist/DateInput/DateInput.styles.js.map +1 -1
  38. package/dist/DateSelect/DateSelect.js +60 -29
  39. package/dist/DateSelect/DateSelect.js.map +1 -1
  40. package/dist/DateSelect/DateSelect.types.d.ts +2 -2
  41. package/dist/DateSelect/DateSelect.types.js.map +1 -1
  42. package/dist/DetailPage/DetailPage.styles.js +11 -9
  43. package/dist/DetailPage/DetailPage.styles.js.map +1 -1
  44. package/dist/Dropdown/Dropdown.styles.js +3 -3
  45. package/dist/DropdownFlyout/DropdownFlyout.js +8 -0
  46. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  47. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  48. package/dist/Dropzone/Dropzone.js +1 -1
  49. package/dist/Dropzone/Dropzone.styles.js +9 -9
  50. package/dist/EmptyState/EmptyState.styles.js +6 -6
  51. package/dist/Field/Field.styles.js +3 -3
  52. package/dist/FileList/FileList.styles.js +3 -3
  53. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +17 -14
  54. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js.map +1 -1
  55. package/dist/FileSelect/FileExplorer/FileExplorerModal.js +4 -2
  56. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  57. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +5 -4
  58. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js.map +1 -1
  59. package/dist/FileSelect/FileSelect.styles.js +2 -2
  60. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  61. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  62. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  63. package/dist/FileSelect/LocalSource/LocalSource.styles.js +6 -5
  64. package/dist/FileSelect/LocalSource/LocalSource.styles.js.map +1 -1
  65. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  66. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +13 -11
  67. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js.map +1 -1
  68. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  69. package/dist/FileToken/FileToken.styles.js +6 -6
  70. package/dist/FilterToken/FilterToken.styles.js +5 -5
  71. package/dist/FlexList/FlexList.styles.js +1 -1
  72. package/dist/Form/Form.js +5 -0
  73. package/dist/Form/Form.js.map +1 -1
  74. package/dist/Form/Form.styles.js +13 -13
  75. package/dist/Form/StyledFormikForm.styles.js +2 -2
  76. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  77. package/dist/Grid/Grid.styles.js +2 -2
  78. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  79. package/dist/Input/Input.styles.js +1 -1
  80. package/dist/Link/Link.styles.js +1 -1
  81. package/dist/ListPage/ListPage.styles.js +12 -11
  82. package/dist/ListPage/ListPage.styles.js.map +1 -1
  83. package/dist/Loader/Loader.styles.js +2 -2
  84. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  85. package/dist/Modal/Modal.js +0 -2
  86. package/dist/Modal/Modal.js.map +1 -1
  87. package/dist/Modal/Modal.styles.js +44 -32
  88. package/dist/Modal/Modal.styles.js.map +1 -1
  89. package/dist/MultiSelect/MultiSelect.js +3 -1
  90. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  91. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  92. package/dist/MultiSelect/MultiSelect.types.d.ts +5 -0
  93. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  94. package/dist/NextMenu/NextMenu.styles.js +3 -3
  95. package/dist/NextTile/NextTile.styles.js +5 -5
  96. package/dist/Notation/Notation.js +1 -1
  97. package/dist/NumberInput/NumberInput.styles.js +7 -7
  98. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  99. package/dist/OverlayTrigger/OverlayTrigger.js +12 -3
  100. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  101. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +14 -0
  102. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  103. package/dist/OverlayTrigger/a11yPresets.d.ts +19 -3
  104. package/dist/OverlayTrigger/a11yPresets.js +16 -6
  105. package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
  106. package/dist/PageLayout/PageLayout.js +15 -4
  107. package/dist/PageLayout/PageLayout.js.map +1 -1
  108. package/dist/PageLayout/PageLayout.styles.js +35 -34
  109. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  110. package/dist/PageLayout/PageLayout.types.d.ts +1 -0
  111. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  112. package/dist/PageLayout/PageLayout.utils.d.ts +11 -0
  113. package/dist/PageLayout/PageLayout.utils.js +45 -0
  114. package/dist/PageLayout/PageLayout.utils.js.map +1 -1
  115. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js +2 -2
  116. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js.map +1 -1
  117. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.d.ts +5 -0
  118. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +9 -2
  119. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -1
  120. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  121. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  122. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  123. package/dist/Pagination/Pagination.styles.js +5 -5
  124. package/dist/Panel/Panel.styles.js +17 -16
  125. package/dist/Panel/Panel.styles.js.map +1 -1
  126. package/dist/Pill/Pill.styles.js +3 -3
  127. package/dist/PillSelect/PillSelect.styles.js +5 -5
  128. package/dist/Popover/Popover.js +6 -1
  129. package/dist/Popover/Popover.js.map +1 -1
  130. package/dist/Popover/Popover.styles.js +2 -2
  131. package/dist/Portal/Portal.styles.js +1 -1
  132. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  133. package/dist/RadioButton/RadioButton.styles.js +3 -3
  134. package/dist/Required/Required.styles.js +3 -3
  135. package/dist/Search/Search.styles.js +5 -5
  136. package/dist/Section/Section.js +0 -1
  137. package/dist/Section/Section.js.map +1 -1
  138. package/dist/Section/Section.styles.js +7 -7
  139. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  140. package/dist/Select/Select.js +5 -2
  141. package/dist/Select/Select.js.map +1 -1
  142. package/dist/Select/Select.styles.js +8 -8
  143. package/dist/Semantic/Semantic.styles.js +9 -9
  144. package/dist/Slider/Slider.styles.js +5 -5
  145. package/dist/Spinner/Spinner.styles.js +7 -7
  146. package/dist/SplitViewCard/SplitViewCard.styles.js +15 -13
  147. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  148. package/dist/SuperSelect/SuperSelect.js +8 -0
  149. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  150. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  151. package/dist/SuperSelect/SuperSelect.styles.js +40 -40
  152. package/dist/SuperSelect/SuperSelect.types.d.ts +7 -0
  153. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  154. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  155. package/dist/SuperSelect/useSuperSelect.js +27 -6
  156. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  157. package/dist/Switch/Switch.styles.js +4 -4
  158. package/dist/Table/Table.js +63 -2
  159. package/dist/Table/Table.js.map +1 -1
  160. package/dist/Table/Table.styles.js +31 -30
  161. package/dist/Table/Table.styles.js.map +1 -1
  162. package/dist/TableShelf/TableShelf.styles.js +5 -5
  163. package/dist/Tabs/Tabs.js +11 -3
  164. package/dist/Tabs/Tabs.js.map +1 -1
  165. package/dist/Tabs/Tabs.styles.js +16 -16
  166. package/dist/Tearsheet/Tearsheet.js +59 -34
  167. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  168. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  169. package/dist/TextArea/TextArea.styles.js +1 -1
  170. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  171. package/dist/Thumbnail/Thumbnail.styles.d.ts +1 -0
  172. package/dist/Thumbnail/Thumbnail.styles.js +22 -22
  173. package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
  174. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  175. package/dist/TieredSelect/LeafSelectionTieredSelect.js +3 -1
  176. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  177. package/dist/TieredSelect/TierSelectionTieredSelect.js +3 -1
  178. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  179. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  180. package/dist/Tile/Tile.styles.js +8 -8
  181. package/dist/Title/Title.styles.js +11 -9
  182. package/dist/Title/Title.styles.js.map +1 -1
  183. package/dist/Toast/Toast.styles.js +3 -3
  184. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  185. package/dist/Token/Token.styles.js +5 -5
  186. package/dist/ToolHeader/ToolHeader.styles.js +15 -10
  187. package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
  188. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  189. package/dist/Tooltip/Tooltip.js +7 -1
  190. package/dist/Tooltip/Tooltip.js.map +1 -1
  191. package/dist/Tooltip/Tooltip.styles.js +3 -3
  192. package/dist/Tree/Tree.js +1 -1
  193. package/dist/Tree/Tree.styles.js +10 -10
  194. package/dist/Typeahead/Typeahead.styles.js +4 -4
  195. package/dist/Typography/Typography.styles.js +1 -1
  196. package/dist/Typography/Typography.table.story.js +2 -2
  197. package/dist/_hooks/I18n.d.ts +33 -13
  198. package/dist/_hooks/I18n.js +2 -0
  199. package/dist/_hooks/I18n.js.map +1 -1
  200. package/dist/_locales/de-DE.json +1 -0
  201. package/dist/_locales/en-AU.json +1 -0
  202. package/dist/_locales/en-CA.json +1 -0
  203. package/dist/_locales/en-GB.json +1 -0
  204. package/dist/_locales/en.json +3 -1
  205. package/dist/_locales/es-ES.json +1 -0
  206. package/dist/_locales/es.json +1 -0
  207. package/dist/_locales/fr-CA.json +1 -0
  208. package/dist/_locales/fr-FR.json +1 -0
  209. package/dist/_locales/is-IS.json +1 -0
  210. package/dist/_locales/it-IT.json +1 -0
  211. package/dist/_locales/ja-JP.json +1 -0
  212. package/dist/_locales/nb-NO.json +2 -1
  213. package/dist/_locales/pl-PL.json +1 -0
  214. package/dist/_locales/pseudo.json +3 -1
  215. package/dist/_locales/pt-BR.json +1 -0
  216. package/dist/_locales/pt-PT.json +3 -2
  217. package/dist/_locales/th-TH.json +1 -0
  218. package/dist/_locales/zh-SG.json +1 -0
  219. package/dist/_locales/zh-TW.json +2 -1
  220. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  221. package/dist/_storyHelpers_/components/StoryGrid.js +5 -4
  222. package/dist/_storyHelpers_/components/StoryGrid.js.map +1 -1
  223. package/dist/_storyHelpers_/highZoom.d.ts +68 -0
  224. package/dist/_storyHelpers_/highZoom.js +72 -0
  225. package/dist/_storyHelpers_/highZoom.js.map +1 -0
  226. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +7 -7
  227. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  228. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  229. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  230. package/dist/_typedoc/Banner/Banner.types.json +18 -18
  231. package/dist/_typedoc/Box/Box.types.json +68 -68
  232. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
  233. package/dist/_typedoc/Button/Button.types.json +14 -14
  234. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  235. package/dist/_typedoc/Card/Card.types.json +6 -6
  236. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  237. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  238. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  239. package/dist/_typedoc/DateSelect/DateSelect.types.json +45 -14
  240. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  241. package/dist/_typedoc/DetailPageTemplate/DetailPageTemplate.types.json +3 -3
  242. package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
  243. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +37 -37
  244. package/dist/_typedoc/Dropzone/Dropzone.types.json +50 -50
  245. package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
  246. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  247. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  248. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  249. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  250. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +17 -17
  251. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  252. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  253. package/dist/_typedoc/Form/Form.types.json +875 -773
  254. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  255. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  256. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +99 -79
  257. package/dist/_typedoc/Input/Input.types.json +2 -2
  258. package/dist/_typedoc/Link/Link.types.json +1 -1
  259. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  260. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  261. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +90 -90
  262. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  263. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +43 -33
  264. package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
  265. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  266. package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
  267. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +44 -33
  268. package/dist/_typedoc/PageLayout/PageLayout.types.json +42 -42
  269. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  270. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  271. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  272. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  273. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  274. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  275. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  276. package/dist/_typedoc/Required/Required.types.json +5 -5
  277. package/dist/_typedoc/Search/Search.types.json +18 -18
  278. package/dist/_typedoc/Section/Section.types.json +15 -15
  279. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  280. package/dist/_typedoc/Select/Select.types.json +67 -67
  281. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  282. package/dist/_typedoc/SettingsPageTemplate/SettingsPageTemplate.types.json +3 -3
  283. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  284. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  285. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  286. package/dist/_typedoc/Table/Table.types.json +136 -105
  287. package/dist/_typedoc/Tabs/Tablist.types.json +10 -10
  288. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  289. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  290. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  291. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  292. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  293. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  294. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  295. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  296. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  297. package/dist/_typedoc/Title/Title.types.json +1 -1
  298. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  299. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  300. package/dist/_typedoc/Token/Token.types.json +7 -7
  301. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  302. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  303. package/dist/_typedoc/ToolLandingPageTemplate/ToolLandingPageTemplate.types.json +2 -2
  304. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  305. package/dist/_typedoc/Tree/Tree.types.json +132 -132
  306. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  307. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  308. package/dist/_typedoc/_utils/types.json +3 -3
  309. package/dist/_typedoc/a11y-tips.json +1 -1
  310. package/package.json +2 -2
  311. package/dist/_hooks/ScrollLock.d.ts +0 -1
  312. package/dist/_hooks/ScrollLock.js +0 -31
  313. package/dist/_hooks/ScrollLock.js.map +0 -1
@@ -4,6 +4,12 @@ var _excluded = ["dueDateTime", "displayDate", "disabledDate", "onSelect", "sele
4
4
  _excluded4 = ["dueDateTime", "displayDate", "disabledDate", "monthRef", "onNavigate", "onSelect", "selectedEnd", "selectedStart", "yearRef"];
5
5
  function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
6
6
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
10
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
13
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
8
14
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
9
15
  import { ChevronLeft, ChevronRight } from '@procore/core-icons/dist';
@@ -17,11 +23,47 @@ import { addSubcomponents } from '../_utils/addSubcomponents';
17
23
  import { addMonths, format, getDates, getDayOfWeekLabel, getMonth, getMonthLabel, getMonthOptions, getRows, getYear, getYearOptions, isSameDay, isSameMonth, isWithinRange, subMonths, updateMonth, updateYear } from '../_utils/CalendarHelpers';
18
24
  import { Select as SelectBase } from '../Select/Select';
19
25
  import { getFormatterLocale } from '../_utils/i18n';
20
- import { StyledContainer, StyledDayCell, StyledDayHeaderCell, StyledNavigation, StyledPaginator, StyledSelect, StyledWeekRow } from './Calendar.styles';
26
+ import { StyledCalendarGrid, StyledContainer, StyledDayCell, StyledDayHeaderCell, StyledNavigation, StyledPaginator, StyledSelect, StyledWeekRow } from './Calendar.styles';
21
27
  function noop() {}
22
28
  function returnFalse() {
23
29
  return false;
24
30
  }
31
+ function getInitialActiveIndex(dates, selectedStart, today, displayDate) {
32
+ var selectedIndex = selectedStart ? dates.findIndex(function (date) {
33
+ return isSameDay(date, selectedStart);
34
+ }) : -1;
35
+ if (selectedIndex >= 0) {
36
+ return selectedIndex;
37
+ }
38
+ var todayIndex = dates.findIndex(function (date) {
39
+ return isSameDay(date, today);
40
+ });
41
+ if (todayIndex >= 0) {
42
+ return todayIndex;
43
+ }
44
+ var firstOfMonthIndex = dates.findIndex(function (date) {
45
+ return isSameMonth(date, displayDate);
46
+ });
47
+ return firstOfMonthIndex >= 0 ? firstOfMonthIndex : 0;
48
+ }
49
+ var daysPerWeek = 7;
50
+ var lastWeekIndex = 5;
51
+ function getNextDayIndex(key, flatIndex) {
52
+ var row = Math.floor(flatIndex / daysPerWeek);
53
+ var col = flatIndex % daysPerWeek;
54
+ switch (key) {
55
+ case 'ArrowLeft':
56
+ return col > 0 ? flatIndex - 1 : undefined;
57
+ case 'ArrowRight':
58
+ return col < daysPerWeek - 1 ? flatIndex + 1 : undefined;
59
+ case 'ArrowUp':
60
+ return row > 0 ? flatIndex - daysPerWeek : undefined;
61
+ case 'ArrowDown':
62
+ return row < lastWeekIndex ? flatIndex + daysPerWeek : undefined;
63
+ default:
64
+ return undefined;
65
+ }
66
+ }
25
67
 
26
68
  /**
27
69
  * @parent Calendar
@@ -52,11 +94,44 @@ export function Body(_ref) {
52
94
  var onSelect = function onSelect(day) {
53
95
  onSelect_(dateTime.shiftZonedTimeToUtc(day, 'Calendar Body onSelect'));
54
96
  };
55
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Weekdays, null), getRows(dates).map(function (row) {
97
+ var dayRefs = React.useRef([]);
98
+ var _React$useState = React.useState(function () {
99
+ return getInitialActiveIndex(dates, selectedStart, startOfDay(dateTime.newDate()), displayDate);
100
+ }),
101
+ _React$useState2 = _slicedToArray(_React$useState, 2),
102
+ activeIndex = _React$useState2[0],
103
+ setActiveIndex = _React$useState2[1];
104
+
105
+ /* eslint-disable react-hooks/exhaustive-deps */
106
+ React.useEffect(function () {
107
+ setActiveIndex(getInitialActiveIndex(dates, selectedStart, startOfDay(dateTime.newDate()), displayDate));
108
+ }, [format(displayDate, 'yyyy-MM')]);
109
+ var onDayKeyDown = function onDayKeyDown(event, flatIndex) {
110
+ var _dayRefs$current$next;
111
+ var nextIndex = getNextDayIndex(event.key, flatIndex);
112
+ if (nextIndex === undefined) {
113
+ return;
114
+ }
115
+ event.preventDefault();
116
+ (_dayRefs$current$next = dayRefs.current[nextIndex]) === null || _dayRefs$current$next === void 0 || _dayRefs$current$next.focus();
117
+ };
118
+ return /*#__PURE__*/React.createElement(StyledCalendarGrid, {
119
+ "aria-label": dateTime.format(displayDate, 'none', {
120
+ month: 'long',
121
+ year: 'numeric'
122
+ }),
123
+ role: "grid"
124
+ }, /*#__PURE__*/React.createElement(Weekdays, null), getRows(dates).map(function (row, rowIndex) {
56
125
  return /*#__PURE__*/React.createElement(Week, {
57
126
  key: "week-".concat(format(row[0], 'yyyy-MMMM-dddd'))
58
- }, row.map(function (day) {
59
- return /*#__PURE__*/React.createElement(Day, _extends({
127
+ }, row.map(function (day, columnIndex) {
128
+ var flatIndex = rowIndex * daysPerWeek + columnIndex;
129
+ var selected = isWithinRange(day, selectedStart, selectedEnd);
130
+ return /*#__PURE__*/React.createElement("div", {
131
+ "aria-selected": selected || undefined,
132
+ key: "day-".concat(format(day, 'yyyy-MMMM-dddd')),
133
+ role: "gridcell"
134
+ }, /*#__PURE__*/React.createElement(Day, _extends({
60
135
  "aria-label": dateTime.format(day, 'weekday-date', {
61
136
  timeZone: undefined
62
137
  }),
@@ -65,16 +140,25 @@ export function Body(_ref) {
65
140
  isRangeEnd: selectedEnd && isSameDay(day, selectedEnd),
66
141
  isRangeStart: selectedStart && isSameDay(day, selectedStart),
67
142
  isToday: isSameDay(day, startOfDay(dateTime.newDate())),
68
- key: "day-".concat(format(day, 'yyyy-MMMM-dddd')),
69
143
  onClick: function onClick() {
70
144
  return onSelect(day);
71
145
  },
72
- selected: isWithinRange(day, selectedStart, selectedEnd)
146
+ onFocus: function onFocus() {
147
+ return setActiveIndex(flatIndex);
148
+ },
149
+ onKeyDown: function onKeyDown(event) {
150
+ return onDayKeyDown(event, flatIndex);
151
+ },
152
+ ref: function ref(element) {
153
+ dayRefs.current[flatIndex] = element;
154
+ },
155
+ selected: selected,
156
+ tabIndex: flatIndex === activeIndex ? 0 : -1
73
157
  }, props), format(day, 'd'), dueDateTime && isSameDay(day, startOfDay(dueDateTime)) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("em", {
74
158
  style: isAfter(dateTime.newDate(), dueDateTime) ? {
75
159
  color: 'red'
76
160
  } : undefined
77
- }, dateTime.format(dueDateTime_, 'time'))));
161
+ }, dateTime.format(dueDateTime_, 'time')))));
78
162
  }));
79
163
  }));
80
164
  }
@@ -189,7 +273,8 @@ export var Prev = /*#__PURE__*/React.forwardRef(function Prev(props, ref) {
189
273
  */
190
274
  export var Week = /*#__PURE__*/React.forwardRef(function Week(props, ref) {
191
275
  return /*#__PURE__*/React.createElement(StyledWeekRow, _extends({
192
- ref: ref
276
+ ref: ref,
277
+ role: "row"
193
278
  }, props));
194
279
  });
195
280
 
@@ -208,10 +293,12 @@ export var Weekdays = /*#__PURE__*/React.forwardRef(function Weekdays(props, ref
208
293
  var startDayOfWeek = getStartDayOfTheWeek(formatterLocale);
209
294
  return /*#__PURE__*/React.createElement(StyledWeekRow, _extends({
210
295
  ref: ref,
211
- "aria-hidden": "true"
296
+ role: "row",
297
+ "aria-hidden": true
212
298
  }, props), range(startDayOfWeek, startDayOfWeek + 7).map(function (day) {
213
299
  return /*#__PURE__*/React.createElement(StyledDayHeaderCell, {
214
- key: "day-".concat(day)
300
+ key: "day-".concat(day),
301
+ role: "columnheader"
215
302
  }, getDayOfWeekLabel(day, formatterLocale));
216
303
  }));
217
304
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.js","names":["ChevronLeft","ChevronRight","getStartDayOfTheWeek","isAfter","startOfDay","range","React","useDateTime","useI18nContext","addSubcomponents","addMonths","format","getDates","getDayOfWeekLabel","getMonth","getMonthLabel","getMonthOptions","getRows","getYear","getYearOptions","isSameDay","isSameMonth","isWithinRange","subMonths","updateMonth","updateYear","Select","SelectBase","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 { 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'\nimport { Select as SelectBase } from '../Select/Select'\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,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;AAClC,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AAEvD,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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AG,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;AAElC3H,MAAM,CAAC2H,WAAW,GAAG,iBAAiB;AAEtChF,IAAI,CAACgF,WAAW,GAAG,eAAe;AAElCnF,QAAQ,CAACmF,WAAW,GAAG,mBAAmB;AAE1C,OAAO,IAAMtB,QAAQ,GAAGtH,gBAAgB,CACtC;EACE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI6B,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;EACIlF,MAAM,EAANA,MAAM;EACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI2C,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIH,QAAQ,EAARA;AACF,CAAC,EACD4D,SACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Calendar.js","names":["ChevronLeft","ChevronRight","getStartDayOfTheWeek","isAfter","startOfDay","range","React","useDateTime","useI18nContext","addSubcomponents","addMonths","format","getDates","getDayOfWeekLabel","getMonth","getMonthLabel","getMonthOptions","getRows","getYear","getYearOptions","isSameDay","isSameMonth","isWithinRange","subMonths","updateMonth","updateYear","Select","SelectBase","getFormatterLocale","StyledCalendarGrid","StyledContainer","StyledDayCell","StyledDayHeaderCell","StyledNavigation","StyledPaginator","StyledSelect","StyledWeekRow","noop","returnFalse","getInitialActiveIndex","dates","selectedStart","today","displayDate","selectedIndex","findIndex","date","todayIndex","firstOfMonthIndex","daysPerWeek","lastWeekIndex","getNextDayIndex","key","flatIndex","row","Math","floor","col","undefined","Body","_ref","dueDateTime_","dueDateTime","displayDate_","disabledDate","_ref$onSelect","onSelect","onSelect_","selectedEnd_","selectedEnd","selectedStart_","props","_objectWithoutProperties","_excluded","dateTime","shiftUtcToZonedTime","newDate","_useI18nContext","locale","formatterLocale","day","shiftZonedTimeToUtc","dayRefs","useRef","_React$useState","useState","_React$useState2","_slicedToArray","activeIndex","setActiveIndex","useEffect","onDayKeyDown","event","_dayRefs$current$next","nextIndex","preventDefault","current","focus","createElement","month","year","role","Weekdays","map","rowIndex","Week","concat","columnIndex","selected","Day","_extends","timeZone","disabled","isCurrentMonth","isRangeEnd","isRangeStart","isToday","onClick","onFocus","onKeyDown","ref","element","tabIndex","style","color","Container","forwardRef","_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","_ref5","value","Option","Calendar_","Calendar","_ref6","_ref6$disabledDate","monthRef","_ref6$onNavigate","onNavigate","_ref6$onSelect","yearRef","_excluded4","i18n","_useDateTime","monthSelectRef","createRef","yearSelectRef","nextNavigationDateLabel","t","monthYear","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 { 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'\nimport { Select as SelectBase } from '../Select/Select'\n\nimport { getFormatterLocale } from '../_utils/i18n'\nimport {\n StyledCalendarGrid,\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\nfunction getInitialActiveIndex(\n dates: Date[],\n selectedStart: Date | undefined,\n today: Date,\n displayDate: Date\n): number {\n const selectedIndex = selectedStart\n ? dates.findIndex((date) => isSameDay(date, selectedStart))\n : -1\n if (selectedIndex >= 0) {\n return selectedIndex\n }\n\n const todayIndex = dates.findIndex((date) => isSameDay(date, today))\n if (todayIndex >= 0) {\n return todayIndex\n }\n\n const firstOfMonthIndex = dates.findIndex((date) =>\n isSameMonth(date, displayDate)\n )\n return firstOfMonthIndex >= 0 ? firstOfMonthIndex : 0\n}\n\nconst daysPerWeek = 7\n\nconst lastWeekIndex = 5\n\nfunction getNextDayIndex(key: string, flatIndex: number): number | undefined {\n const row = Math.floor(flatIndex / daysPerWeek)\n const col = flatIndex % daysPerWeek\n\n switch (key) {\n case 'ArrowLeft':\n return col > 0 ? flatIndex - 1 : undefined\n case 'ArrowRight':\n return col < daysPerWeek - 1 ? flatIndex + 1 : undefined\n case 'ArrowUp':\n return row > 0 ? flatIndex - daysPerWeek : undefined\n case 'ArrowDown':\n return row < lastWeekIndex ? flatIndex + daysPerWeek : undefined\n default:\n return undefined\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 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 const dayRefs = React.useRef<Array<HTMLButtonElement | null>>([])\n\n const [activeIndex, setActiveIndex] = React.useState(() =>\n getInitialActiveIndex(\n dates,\n selectedStart,\n startOfDay(dateTime.newDate()),\n displayDate\n )\n )\n\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(() => {\n setActiveIndex(\n getInitialActiveIndex(\n dates,\n selectedStart,\n startOfDay(dateTime.newDate()),\n displayDate\n )\n )\n }, [format(displayDate, 'yyyy-MM')])\n\n const onDayKeyDown = (\n event: React.KeyboardEvent<HTMLButtonElement>,\n flatIndex: number\n ) => {\n const nextIndex = getNextDayIndex(event.key, flatIndex)\n\n if (nextIndex === undefined) {\n return\n }\n\n event.preventDefault()\n dayRefs.current[nextIndex]?.focus()\n }\n\n return (\n <StyledCalendarGrid\n aria-label={dateTime.format(displayDate, 'none', {\n month: 'long',\n year: 'numeric',\n })}\n role=\"grid\"\n >\n <Weekdays />\n {getRows(dates).map((row, rowIndex) => (\n <Week key={`week-${format(row[0], 'yyyy-MMMM-dddd')}`}>\n {row.map((day, columnIndex) => {\n const flatIndex = rowIndex * daysPerWeek + columnIndex\n const selected = isWithinRange(day, selectedStart, selectedEnd)\n\n return (\n <div\n aria-selected={selected || undefined}\n key={`day-${format(day, 'yyyy-MMMM-dddd')}`}\n role=\"gridcell\"\n >\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 onClick={() => onSelect(day)}\n onFocus={() => setActiveIndex(flatIndex)}\n onKeyDown={(event) => onDayKeyDown(event, flatIndex)}\n ref={(element) => {\n dayRefs.current[flatIndex] = element\n }}\n selected={selected}\n tabIndex={flatIndex === activeIndex ? 0 : -1}\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 </div>\n )\n })}\n </Week>\n ))}\n </StyledCalendarGrid>\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} role=\"row\" {...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} role=\"row\" aria-hidden={true} {...props}>\n {range(startDayOfWeek, startDayOfWeek + 7).map((day) => (\n <StyledDayHeaderCell key={`day-${day}`} role=\"columnheader\">\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,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;AAClC,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AAEvD,SAASC,kBAAkB,QAAQ,gBAAgB;AACnD,SACEC,kBAAkB,EAClBC,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,SAASC,qBAAqBA,CAC5BC,KAAa,EACbC,aAA+B,EAC/BC,KAAW,EACXC,WAAiB,EACT;EACR,IAAMC,aAAa,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AAG,iBAAiB;AAEtChF,IAAI,CAACgF,WAAW,GAAG,eAAe;AAElCnF,QAAQ,CAACmF,WAAW,GAAG,mBAAmB;AAE1C,OAAO,IAAMpB,QAAQ,GAAG5J,gBAAgB,CACtC;EACE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIkD,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIkE,SAAS,EAATA,SAAS;EACT;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIhB,GAAG,EAAHA,GAAG;EACH;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIgC,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;EACIzH,MAAM,EAANA,MAAM;EACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI+E,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIH,QAAQ,EAARA;AACF,CAAC,EACD8D,SACF,CAAC","ignoreList":[]}
@@ -1,6 +1,9 @@
1
1
  export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
2
2
  style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
3
3
  }> & string;
4
+ export declare const StyledCalendarGrid: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
5
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
6
+ }> & string;
4
7
  export declare const StyledPaginator: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("..").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
5
8
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
6
9
  }, "style"> & {
@@ -8,37 +8,41 @@ 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-12_53_3__sc-1kkl86t-0"
11
+ componentId: "core-12_54_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
+ export var StyledCalendarGrid = /*#__PURE__*/styled.div.withConfig({
14
+ displayName: "StyledCalendarGrid",
15
+ componentId: "core-12_54_0__sc-1kkl86t-1"
16
+ })(["display:inline-flex;flex-direction:column;"]);
13
17
  export var StyledPaginator = /*#__PURE__*/styled(Button).withConfig({
14
18
  displayName: "StyledPaginator",
15
- componentId: "core-12_53_3__sc-1kkl86t-1"
19
+ componentId: "core-12_54_0__sc-1kkl86t-2"
16
20
  })(["flex:0 0 auto;"]);
17
21
  export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
18
22
  displayName: "StyledSelect",
19
- componentId: "core-12_53_3__sc-1kkl86t-2"
23
+ componentId: "core-12_54_0__sc-1kkl86t-3"
20
24
  })(["display:inline-flex;flex:1 1 0;margin-left:", "px;> div{font-size:12px;}"], spacing.sm);
21
25
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
22
26
  displayName: "StyledNavigation",
23
- componentId: "core-12_53_3__sc-1kkl86t-3"
27
+ componentId: "core-12_54_0__sc-1kkl86t-4"
24
28
  })(["display:inline-flex;margin-bottom:", "px;", " + ", ",", " + ", "{margin-left:", "px;}"], spacing.sm, StyledPaginator, StyledSelect, StyledSelect, StyledPaginator, spacing.sm);
25
29
  export var StyledCell = /*#__PURE__*/styled.div.withConfig({
26
30
  displayName: "StyledCell",
27
- componentId: "core-12_53_3__sc-1kkl86t-4"
31
+ componentId: "core-12_54_0__sc-1kkl86t-5"
28
32
  })(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;"], cellSize, cellSize);
29
33
  export var StyledDayHeaderCell = /*#__PURE__*/styled(StyledCell).withConfig({
30
34
  displayName: "StyledDayHeaderCell",
31
- componentId: "core-12_53_3__sc-1kkl86t-5"
35
+ componentId: "core-12_54_0__sc-1kkl86t-6"
32
36
  })(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
33
37
  export var StyledCellButton = /*#__PURE__*/styled.button.attrs({
34
38
  type: 'button'
35
39
  }).withConfig({
36
40
  displayName: "StyledCellButton",
37
- componentId: "core-12_53_3__sc-1kkl86t-6"
41
+ componentId: "core-12_54_0__sc-1kkl86t-7"
38
42
  })(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;cursor:pointer;border:none;background:none;padding:0;font:inherit;color:inherit;"], cellSize, cellSize);
39
43
  export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
40
44
  displayName: "StyledDayCell",
41
- componentId: "core-12_53_3__sc-1kkl86t-7"
45
+ componentId: "core-12_54_0__sc-1kkl86t-8"
42
46
  })(["", ""], function (_ref) {
43
47
  var _ref$$disabled = _ref.$disabled,
44
48
  $disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
@@ -61,6 +65,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
61
65
  });
62
66
  export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
63
67
  displayName: "StyledWeekRow",
64
- componentId: "core-12_53_3__sc-1kkl86t-8"
68
+ componentId: "core-12_54_0__sc-1kkl86t-9"
65
69
  })(["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);
66
70
  //# sourceMappingURL=Calendar.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.styles.js","names":["styled","css","Button","getTypographyIntent","typographyWeights","borderRadius","colors","spacing","cellSize","StyledContainer","div","withConfig","displayName","componentId","lg","md","StyledPaginator","StyledSelect","sm","StyledNavigation","StyledCell","StyledDayHeaderCell","semibold","StyledCellButton","button","attrs","type","StyledDayCell","_ref","_ref$$disabled","$disabled","_ref$$selected","$selected","_ref$$isCurrentMonth","$isCurrentMonth","_ref$$isToday","$isToday","_ref$$isRangeStart","$isRangeStart","_ref$$isRangeEnd","$isRangeEnd","gray94","gray45","gray70","bold","blue40","blue50","white","blue96","StyledWeekRow"],"sources":["../../src/Calendar/Calendar.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Button } from '../Button/Button'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nconst cellSize = 36 // TODO one-off size\n\nexport const StyledContainer = styled.div`\n ${getTypographyIntent('small')};\n\n display: inline-flex;\n flex-direction: column;\n padding: ${spacing.lg}px ${spacing.md}px ${spacing.md}px;\n`\n\nexport const StyledPaginator = styled(Button)`\n flex: 0 0 auto;\n`\n\nexport const StyledSelect = styled.div`\n display: inline-flex;\n flex: 1 1 0;\n margin-left: ${spacing.sm}px;\n\n // TODO hack to ensure labels don't get cut off in narrow selects\n > div {\n font-size: 12px;\n }\n`\n\nexport const StyledNavigation = styled.div`\n display: inline-flex;\n margin-bottom: ${spacing.sm}px;\n\n ${StyledPaginator} + ${StyledSelect}, ${StyledSelect} + ${StyledPaginator} {\n margin-left: ${spacing.sm}px;\n }\n`\n\nexport const StyledCell = styled.div`\n align-items: center;\n display: inline-flex;\n height: ${cellSize}px;\n justify-content: center;\n width: ${cellSize}px;\n`\n\nexport const StyledDayHeaderCell = styled(StyledCell)`\n cursor: default;\n font-weight: ${typographyWeights.semibold};\n`\n\nexport const StyledCellButton = styled.button.attrs({ type: 'button' })`\n align-items: center;\n display: inline-flex;\n height: ${cellSize}px;\n justify-content: center;\n width: ${cellSize}px;\n cursor: pointer;\n border: none;\n background: none;\n padding: 0;\n font: inherit;\n color: inherit;\n`\n\nexport const StyledDayCell = styled(StyledCellButton)<{\n $disabled: boolean\n $selected: boolean\n $isCurrentMonth: boolean\n $isToday: boolean\n $isRangeStart: boolean\n $isRangeEnd: boolean\n}>`\n ${({\n $disabled = false,\n $selected = false,\n $isCurrentMonth = true,\n $isToday = false,\n $isRangeStart = false,\n $isRangeEnd = false,\n }) => {\n if ($disabled) {\n return css`\n background-color: ${colors.gray94};\n color: ${$isCurrentMonth ? colors.gray45 : colors.gray70};\n font-weight: ${$isToday && typographyWeights.bold};\n pointer-events: none;\n `\n } else if ($selected) {\n return css`\n background-color: ${$isRangeStart || $isRangeEnd\n ? colors.blue40\n : colors.blue50};\n border-top-left-radius: ${$isRangeStart ? borderRadius.md : 0}px;\n border-bottom-left-radius: ${$isRangeStart ? borderRadius.md : 0}px;\n border-top-right-radius: ${$isRangeEnd ? borderRadius.md : 0}px;\n border-bottom-right-radius: ${$isRangeEnd ? borderRadius.md : 0}px;\n color: ${colors.white};\n font-weight: ${typographyWeights.semibold};\n cursor: pointer;\n `\n }\n\n return css`\n color: ${!$isCurrentMonth && colors.gray45};\n cursor: pointer;\n font-weight: ${$isToday && typographyWeights.bold};\n\n &:hover {\n color: inherit;\n background-color: ${colors.blue96};\n border-radius: ${borderRadius.md}px;\n }\n `\n }}\n`\n\nexport const StyledWeekRow = styled.div`\n display: inline-flex;\n padding-bottom: 2px; // TODO one-off size\n user-select: none;\n\n &:last-child {\n padding-bottom: 0;\n }\n\n ${StyledCell} {\n &:first-child {\n border-top-left-radius: ${borderRadius.md}px;\n border-bottom-left-radius: ${borderRadius.md}px;\n }\n\n &:last-child {\n border-top-right-radius: ${borderRadius.md}px;\n border-bottom-right-radius: ${borderRadius.md}px;\n }\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,IAAMC,QAAQ,GAAG,EAAE,EAAC;;AAEpB,OAAO,IAAMC,eAAe,gBAAGT,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qFACrCV,mBAAmB,CAAC,OAAO,CAAC,EAInBI,OAAO,CAACO,EAAE,EAAMP,OAAO,CAACQ,EAAE,EAAMR,OAAO,CAACQ,EAAE,CACtD;AAED,OAAO,IAAMC,eAAe,gBAAGhB,MAAM,CAACE,MAAM,CAAC,CAAAS,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sBAE5C;AAED,OAAO,IAAMI,YAAY,gBAAGjB,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iFAGrBN,OAAO,CAACW,EAAE,CAM1B;AAED,OAAO,IAAMC,gBAAgB,gBAAGnB,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8FAEvBN,OAAO,CAACW,EAAE,EAEzBF,eAAe,EAAMC,YAAY,EAAKA,YAAY,EAAMD,eAAe,EACxDT,OAAO,CAACW,EAAE,CAE5B;AAED,OAAO,IAAME,UAAU,gBAAGpB,MAAM,CAACU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ACoC,MAAM,GAAGpC,MAAM,CAACqC,MAAM,EACzCP,QAAQ,IAAIhC,iBAAiB,CAACwC,IAAI;EAGrD,CAAC,MAAM,IAAIZ,SAAS,EAAE;IACpB,OAAO/B,GAAG,wMACYqC,aAAa,IAAIE,WAAW,GAC5ClC,MAAM,CAACuC,MAAM,GACbvC,MAAM,CAACwC,MAAM,EACSR,aAAa,GAAGjC,YAAY,CAACU,EAAE,GAAG,CAAC,EAChCuB,aAAa,GAAGjC,YAAY,CAACU,EAAE,GAAG,CAAC,EACrCyB,WAAW,GAAGnC,YAAY,CAACU,EAAE,GAAG,CAAC,EAC9ByB,WAAW,GAAGnC,YAAY,CAACU,EAAE,GAAG,CAAC,EACtDT,MAAM,CAACyC,KAAK,EACN3C,iBAAiB,CAACkB,QAAQ;EAG7C;EAEA,OAAOrB,GAAG,oHACC,CAACiC,eAAe,IAAI5B,MAAM,CAACoC,MAAM,EAE3BN,QAAQ,IAAIhC,iBAAiB,CAACwC,IAAI,EAI3BtC,MAAM,CAAC0C,MAAM,EAChB3C,YAAY,CAACU,EAAE;AAGtC,CAAC,CACF;AAED,OAAO,IAAMkC,aAAa,gBAAGjD,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mQASnCO,UAAU,EAEkBf,YAAY,CAACU,EAAE,EACZV,YAAY,CAACU,EAAE,EAIjBV,YAAY,CAACU,EAAE,EACZV,YAAY,CAACU,EAAE,CAGlD","ignoreList":[]}
1
+ {"version":3,"file":"Calendar.styles.js","names":["styled","css","Button","getTypographyIntent","typographyWeights","borderRadius","colors","spacing","cellSize","StyledContainer","div","withConfig","displayName","componentId","lg","md","StyledCalendarGrid","StyledPaginator","StyledSelect","sm","StyledNavigation","StyledCell","StyledDayHeaderCell","semibold","StyledCellButton","button","attrs","type","StyledDayCell","_ref","_ref$$disabled","$disabled","_ref$$selected","$selected","_ref$$isCurrentMonth","$isCurrentMonth","_ref$$isToday","$isToday","_ref$$isRangeStart","$isRangeStart","_ref$$isRangeEnd","$isRangeEnd","gray94","gray45","gray70","bold","blue40","blue50","white","blue96","StyledWeekRow"],"sources":["../../src/Calendar/Calendar.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Button } from '../Button/Button'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nconst cellSize = 36 // TODO one-off size\n\nexport const StyledContainer = styled.div`\n ${getTypographyIntent('small')};\n\n display: inline-flex;\n flex-direction: column;\n padding: ${spacing.lg}px ${spacing.md}px ${spacing.md}px;\n`\n\nexport const StyledCalendarGrid = styled.div`\n display: inline-flex;\n flex-direction: column;\n`\n\nexport const StyledPaginator = styled(Button)`\n flex: 0 0 auto;\n`\n\nexport const StyledSelect = styled.div`\n display: inline-flex;\n flex: 1 1 0;\n margin-left: ${spacing.sm}px;\n\n // TODO hack to ensure labels don't get cut off in narrow selects\n > div {\n font-size: 12px;\n }\n`\n\nexport const StyledNavigation = styled.div`\n display: inline-flex;\n margin-bottom: ${spacing.sm}px;\n\n ${StyledPaginator} + ${StyledSelect}, ${StyledSelect} + ${StyledPaginator} {\n margin-left: ${spacing.sm}px;\n }\n`\n\nexport const StyledCell = styled.div`\n align-items: center;\n display: inline-flex;\n height: ${cellSize}px;\n justify-content: center;\n width: ${cellSize}px;\n`\n\nexport const StyledDayHeaderCell = styled(StyledCell)`\n cursor: default;\n font-weight: ${typographyWeights.semibold};\n`\n\nexport const StyledCellButton = styled.button.attrs({ type: 'button' })`\n align-items: center;\n display: inline-flex;\n height: ${cellSize}px;\n justify-content: center;\n width: ${cellSize}px;\n cursor: pointer;\n border: none;\n background: none;\n padding: 0;\n font: inherit;\n color: inherit;\n`\n\nexport const StyledDayCell = styled(StyledCellButton)<{\n $disabled: boolean\n $selected: boolean\n $isCurrentMonth: boolean\n $isToday: boolean\n $isRangeStart: boolean\n $isRangeEnd: boolean\n}>`\n ${({\n $disabled = false,\n $selected = false,\n $isCurrentMonth = true,\n $isToday = false,\n $isRangeStart = false,\n $isRangeEnd = false,\n }) => {\n if ($disabled) {\n return css`\n background-color: ${colors.gray94};\n color: ${$isCurrentMonth ? colors.gray45 : colors.gray70};\n font-weight: ${$isToday && typographyWeights.bold};\n pointer-events: none;\n `\n } else if ($selected) {\n return css`\n background-color: ${$isRangeStart || $isRangeEnd\n ? colors.blue40\n : colors.blue50};\n border-top-left-radius: ${$isRangeStart ? borderRadius.md : 0}px;\n border-bottom-left-radius: ${$isRangeStart ? borderRadius.md : 0}px;\n border-top-right-radius: ${$isRangeEnd ? borderRadius.md : 0}px;\n border-bottom-right-radius: ${$isRangeEnd ? borderRadius.md : 0}px;\n color: ${colors.white};\n font-weight: ${typographyWeights.semibold};\n cursor: pointer;\n `\n }\n\n return css`\n color: ${!$isCurrentMonth && colors.gray45};\n cursor: pointer;\n font-weight: ${$isToday && typographyWeights.bold};\n\n &:hover {\n color: inherit;\n background-color: ${colors.blue96};\n border-radius: ${borderRadius.md}px;\n }\n `\n }}\n`\n\nexport const StyledWeekRow = styled.div`\n display: inline-flex;\n padding-bottom: 2px; // TODO one-off size\n user-select: none;\n\n &:last-child {\n padding-bottom: 0;\n }\n\n ${StyledCell} {\n &:first-child {\n border-top-left-radius: ${borderRadius.md}px;\n border-bottom-left-radius: ${borderRadius.md}px;\n }\n\n &:last-child {\n border-top-right-radius: ${borderRadius.md}px;\n border-bottom-right-radius: ${borderRadius.md}px;\n }\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,IAAMC,QAAQ,G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C9B0B,WAAW,GAAGpC,YAAY,CAACU,EAAE,GAAG,CAAC,EACtDT,MAAM,CAAC0C,KAAK,EACN5C,iBAAiB,CAACmB,QAAQ;EAG7C;EAEA,OAAOtB,GAAG,oHACC,CAACkC,eAAe,IAAI7B,MAAM,CAACqC,MAAM,EAE3BN,QAAQ,IAAIjC,iBAAiB,CAACyC,IAAI,EAI3BvC,MAAM,CAAC2C,MAAM,EAChB5C,YAAY,CAACU,EAAE;AAGtC,CAAC,CACF;AAED,OAAO,IAAMmC,aAAa,gBAAGlD,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mQASnCQ,UAAU,EAEkBhB,YAAY,CAACU,EAAE,EACZV,YAAY,CAACU,EAAE,EAIjBV,YAAY,CAACU,EAAE,EACZV,YAAY,CAACU,EAAE,CAGlD","ignoreList":[]}
@@ -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 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<HTMLButtonElement>) => 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":"","ignoreList":[]}
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<HTMLButtonElement>) => void\n /**\n * @internal\n */\n onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void\n /**\n * @internal\n */\n onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void\n /**\n * @since 10.19.0\n */\n selected?: boolean\n /**\n * @internal\n */\n tabIndex?: number\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":"","ignoreList":[]}
@@ -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-12_53_3__sc-2fii7b-0"
7
+ componentId: "core-12_54_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_53_3__sc-u63tye-0"
12
+ componentId: "core-12_54_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-12_53_3__sc-u63tye-1"
51
+ componentId: "core-12_54_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-12_53_3__sc-u63tye-2"
58
+ componentId: "core-12_54_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.gray50, checkboxSize, checkboxSize, checkboxSize);
60
60
  export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
61
61
  displayName: "StyledCheckboxInput",
62
- componentId: "core-12_53_3__sc-u63tye-3"
62
+ componentId: "core-12_54_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-12_53_3__sc-u63tye-4"
86
+ componentId: "core-12_54_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-12_53_3__sc-u63tye-5"
102
+ componentId: "core-12_54_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-12_53_3__sc-1c4z9pn-0"
10
+ componentId: "core-12_54_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-12_53_3__sc-1c4z9pn-1"
14
+ componentId: "core-12_54_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-12_53_3__sc-1c4z9pn-2"
18
+ componentId: "core-12_54_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-12_53_3__sc-1c4z9pn-3"
22
+ componentId: "core-12_54_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-12_53_3__sc-1c4z9pn-4"
26
+ componentId: "core-12_54_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;
@@ -5,10 +5,10 @@ import { mediaIE11Hack } from '../_styles/media';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledContent = /*#__PURE__*/styled(Box).withConfig({
7
7
  displayName: "StyledContent",
8
- componentId: "core-12_53_3__sc-10y57gh-0"
8
+ componentId: "core-12_54_0__sc-10y57gh-0"
9
9
  })(["> * + *,> * + h1,> * + h2,> * + h3,> * + h4,> * + p,> * + ul,> * + ol{margin-top:", "px;}> ", " + *{margin-top:0;}> ", ",> ", " > ", ",> ", "{", "{min-height:0;margin-bottom:", "px;}&:last-child ", "{margin-bottom:0;}}"], spacing.lg, StyledFormRow, StyledFormRow, StyledForm, StyledFormRow, StyledFormRow, StyledFormFieldBanner, spacing.md, StyledFormFieldBanner);
10
10
  export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
11
11
  displayName: "StyledActions",
12
- componentId: "core-12_53_3__sc-10y57gh-1"
12
+ componentId: "core-12_54_0__sc-10y57gh-1"
13
13
  })(["display:flex;justify-content:flex-end;gap:", "px;@media ", "{& > * + *{margin-left:", "px;}}"], spacing.sm, mediaIE11Hack, spacing.sm);
14
14
  //# sourceMappingURL=Content.styles.js.map
@@ -344,7 +344,7 @@ var DateSegment = /*#__PURE__*/React.forwardRef(function DateSegment(_ref3, ref)
344
344
  var onKeyDown = function onKeyDown(event) {
345
345
  event.stopPropagation();
346
346
  var key = event.key;
347
- var isOpenKey = contains(key, ['Enter', ' ']);
347
+ var isOpenKey = key === ' ';
348
348
  if (isOpenKey) {
349
349
  event.preventDefault();
350
350
  event.stopPropagation();