@procore/core-react 12.17.6 → 12.17.7

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 (278) hide show
  1. package/babel.config.js +4 -1
  2. package/dist/AnchorNavigation/AnchorNavigation.js.map +1 -1
  3. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  4. package/dist/AnchorNavigation/AnchorNavigationProvider.js.map +1 -1
  5. package/dist/Avatar/Avatar.js +1 -2
  6. package/dist/Avatar/Avatar.js.map +1 -1
  7. package/dist/Avatar/Avatar.styles.js +5 -5
  8. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  9. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  10. package/dist/Badge/Badge.styles.js +2 -2
  11. package/dist/Banner/Banner.js +36 -6
  12. package/dist/Banner/Banner.js.map +1 -1
  13. package/dist/Banner/Banner.styles.d.ts +1 -1
  14. package/dist/Banner/Banner.styles.js +15 -15
  15. package/dist/Banner/Banner.styles.js.map +1 -1
  16. package/dist/Box/Box.styles.js +1 -1
  17. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  18. package/dist/Button/Button.js.map +1 -1
  19. package/dist/Button/Button.styles.d.ts +1 -0
  20. package/dist/Button/Button.styles.js +7 -7
  21. package/dist/Button/Button.styles.js.map +1 -1
  22. package/dist/Button/Button.types.d.ts +4 -0
  23. package/dist/Button/Button.types.js.map +1 -1
  24. package/dist/Calendar/Calendar.js.map +1 -1
  25. package/dist/Calendar/Calendar.styles.js +8 -8
  26. package/dist/Card/Card.styles.js +1 -1
  27. package/dist/Checkbox/Checkbox.styles.js +6 -6
  28. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  29. package/dist/ContactItem/ContactItem.styles.js +5 -5
  30. package/dist/Content/Content.styles.js +2 -2
  31. package/dist/DateInput/DateInput.js.map +1 -1
  32. package/dist/DateInput/DateInput.styles.js +6 -6
  33. package/dist/DateSelect/DateSelect.js.map +1 -1
  34. package/dist/DetailPage/DetailPage.styles.js +7 -7
  35. package/dist/Dropdown/Dropdown.styles.js +3 -3
  36. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  37. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  38. package/dist/Dropzone/Dropzone.hooks.js +1 -2
  39. package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
  40. package/dist/Dropzone/Dropzone.js +7 -9
  41. package/dist/Dropzone/Dropzone.js.map +1 -1
  42. package/dist/Dropzone/Dropzone.styles.js +9 -9
  43. package/dist/EmptyState/EmptyState.styles.js +6 -6
  44. package/dist/Field/Field.styles.js +3 -3
  45. package/dist/FileList/FileList.styles.js +4 -4
  46. package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
  47. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  48. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  49. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  50. package/dist/FileSelect/FileSelect.js.map +1 -1
  51. package/dist/FileSelect/FileSelect.styles.js +2 -2
  52. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js.map +1 -1
  53. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  54. package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
  55. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  56. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  57. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  58. package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
  59. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  60. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  61. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  62. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  63. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  64. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  65. package/dist/FileSelect/storyHelpers.js.map +1 -1
  66. package/dist/FileToken/FileToken.styles.js +4 -4
  67. package/dist/FilterToken/FilterToken.js +22 -32
  68. package/dist/FilterToken/FilterToken.js.map +1 -1
  69. package/dist/FilterToken/FilterToken.styles.d.ts +5 -0
  70. package/dist/FilterToken/FilterToken.styles.js +18 -2
  71. package/dist/FilterToken/FilterToken.styles.js.map +1 -1
  72. package/dist/FlexList/FlexList.styles.js +1 -1
  73. package/dist/Form/Form.js.map +1 -1
  74. package/dist/Form/Form.styles.js +14 -14
  75. package/dist/Form/StyledFormikForm.styles.js +2 -2
  76. package/dist/Form/stories/util.js.map +1 -1
  77. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  78. package/dist/Grid/Grid.styles.js +2 -2
  79. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  80. package/dist/Input/Input.styles.js +1 -1
  81. package/dist/Link/Link.styles.js +1 -1
  82. package/dist/ListPage/ListPage.styles.js +8 -8
  83. package/dist/Loader/Loader.styles.js +2 -2
  84. package/dist/Menu/Menu.js.map +1 -1
  85. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  86. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  87. package/dist/MenuImperative/sensors.js.map +1 -1
  88. package/dist/Modal/Modal.js.map +1 -1
  89. package/dist/Modal/Modal.styles.js +13 -13
  90. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  91. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  92. package/dist/NextMenu/NextMenu.js.map +1 -1
  93. package/dist/NextMenu/NextMenu.styles.js +3 -3
  94. package/dist/Notation/Notation.js +1 -1
  95. package/dist/NumberInput/NumberInput.js.map +1 -1
  96. package/dist/NumberInput/NumberInput.styles.js +7 -7
  97. package/dist/Overlay/Overlay.js.map +1 -1
  98. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  99. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  100. package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
  101. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  102. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  103. package/dist/PageLayout/PageLayout.js.map +1 -1
  104. package/dist/PageLayout/PageLayout.styles.js +16 -16
  105. package/dist/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  106. package/dist/PageTemplate/PageTemplate.styles.js +3 -3
  107. package/dist/Pagination/Pagination.js.map +1 -1
  108. package/dist/Pagination/Pagination.styles.js +5 -5
  109. package/dist/Panel/Panel.js.map +1 -1
  110. package/dist/Panel/Panel.styles.js +11 -11
  111. package/dist/Pill/Pill.styles.js +2 -2
  112. package/dist/PillSelect/PillSelect.styles.js +4 -4
  113. package/dist/Popover/Popover.styles.js +2 -2
  114. package/dist/Portal/Portal.styles.js +1 -1
  115. package/dist/ProgressBar/ProgressBar.d.ts +2 -0
  116. package/dist/ProgressBar/ProgressBar.js +2 -0
  117. package/dist/ProgressBar/ProgressBar.js.map +1 -1
  118. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  119. package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
  120. package/dist/RadioButton/RadioButton.styles.js +3 -3
  121. package/dist/Required/Required.styles.js +3 -3
  122. package/dist/Search/Search.js.map +1 -1
  123. package/dist/Search/Search.styles.js +5 -5
  124. package/dist/Section/Section.js +1 -2
  125. package/dist/Section/Section.js.map +1 -1
  126. package/dist/Section/Section.styles.js +7 -7
  127. package/dist/Section/Section.styles.js.map +1 -1
  128. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  129. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  130. package/dist/Select/Select.js.map +1 -1
  131. package/dist/Select/Select.styles.js +7 -7
  132. package/dist/Semantic/Semantic.styles.js +9 -9
  133. package/dist/Slider/Slider.js.map +1 -1
  134. package/dist/Slider/Slider.styles.js +5 -5
  135. package/dist/Spinner/Spinner.styles.js +7 -7
  136. package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
  137. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  138. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  139. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  140. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  141. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  142. package/dist/SuperSelect/SuperSelect.utils.js +1 -2
  143. package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
  144. package/dist/SuperSelect/presets/contactsPreset.js.map +1 -1
  145. package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
  146. package/dist/SuperSelect/presets/pillPreset.js.map +1 -1
  147. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  148. package/dist/Switch/Switch.styles.js +4 -4
  149. package/dist/Table/Table.js.map +1 -1
  150. package/dist/Table/Table.styles.js +28 -28
  151. package/dist/TableShelf/TableShelf.styles.js +5 -5
  152. package/dist/Tabs/Tabs.js.map +1 -1
  153. package/dist/Tabs/Tabs.styles.js +15 -15
  154. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  155. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  156. package/dist/TextArea/TextArea.styles.js +1 -1
  157. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  158. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  159. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  160. package/dist/Thumbnail/Thumbnail.utils.js +2 -3
  161. package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
  162. package/dist/Thumbnail/ThumbnailDocumentIcon.js +2 -3
  163. package/dist/Thumbnail/ThumbnailDocumentIcon.js.map +1 -1
  164. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  165. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  166. package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
  167. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  168. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  169. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  170. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  171. package/dist/Tile/Tile.js.map +1 -1
  172. package/dist/Tile/Tile.styles.js +8 -8
  173. package/dist/Title/Title.styles.js +7 -7
  174. package/dist/Toast/Toast.styles.js +3 -3
  175. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  176. package/dist/Token/Token.styles.js +3 -3
  177. package/dist/ToolHeader/ActionIcon.types.example.js.map +1 -1
  178. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  179. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  180. package/dist/Tooltip/Tooltip.styles.js +2 -2
  181. package/dist/Tree/Tree.js.map +1 -1
  182. package/dist/Tree/Tree.styles.js +9 -9
  183. package/dist/Tree/Tree.styles.js.map +1 -1
  184. package/dist/Typeahead/Typeahead.styles.js +3 -3
  185. package/dist/Typography/Typography.styles.js +1 -1
  186. package/dist/Typography/Typography.table.story.js +2 -2
  187. package/dist/_hooks/FocusScopeOverride.js.map +1 -1
  188. package/dist/_hooks/Hotkey.js.map +1 -1
  189. package/dist/_hooks/TextEntry.js.map +1 -1
  190. package/dist/_hooks/Timer.js.map +1 -1
  191. package/dist/_hooks/Trigger.js.map +1 -1
  192. package/dist/_hooks/useFileUploader.js.map +1 -1
  193. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  194. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  195. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  196. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  197. package/dist/_typedoc/Box/Box.types.json +68 -68
  198. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  199. package/dist/_typedoc/Button/Button.types.json +24 -16
  200. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  201. package/dist/_typedoc/Card/Card.types.json +6 -6
  202. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  203. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  204. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  205. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  206. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  207. package/dist/_typedoc/Dropdown/Dropdown.types.json +43 -39
  208. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  209. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  210. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  211. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  212. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  213. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  214. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  215. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  216. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  217. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  218. package/dist/_typedoc/Form/Form.types.json +741 -741
  219. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  220. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  221. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  222. package/dist/_typedoc/Input/Input.types.json +2 -2
  223. package/dist/_typedoc/Link/Link.types.json +4 -4
  224. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  225. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  226. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  227. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  228. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  229. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  230. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  231. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  232. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  233. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  234. package/dist/_typedoc/Panel/Panel.types.json +34 -30
  235. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  236. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  237. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  238. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  239. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  240. package/dist/_typedoc/Required/Required.types.json +5 -5
  241. package/dist/_typedoc/Search/Search.types.json +19 -19
  242. package/dist/_typedoc/Section/Section.types.json +15 -15
  243. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  244. package/dist/_typedoc/Select/Select.types.json +60 -60
  245. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  246. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  247. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  248. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  249. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  250. package/dist/_typedoc/Table/Table.types.json +101 -101
  251. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  252. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  253. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  254. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  255. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  256. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  257. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +48 -44
  258. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  259. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  260. package/dist/_typedoc/Title/Title.types.json +1 -1
  261. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  262. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  263. package/dist/_typedoc/Token/Token.types.json +4 -4
  264. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  265. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  266. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  267. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  268. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  269. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  270. package/dist/_typedoc/_utils/types.json +3 -3
  271. package/dist/_typedoc/deprecations.json +1 -1
  272. package/dist/_utils/TinyMCE.js.map +1 -1
  273. package/dist/_utils/closeWithConfirm.js.map +1 -1
  274. package/dist/_utils/dateTime.js.map +1 -1
  275. package/dist/_utils/getAnchorPosition.js.map +1 -1
  276. package/package.json +2 -1
  277. package/tsconfig.prod.json +2 -1
  278. package/tsconfig.test.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { FlexProps } from '../Flex/Flex.types';
2
+ import type { FlexProps } from '../Flex';
3
3
  import type { BannerProps, BannerVariant } from './Banner.types';
4
4
  export declare const StyledBannerContainer: import("styled-components").StyledComponent<"div", any, {
5
5
  $isExpandable: boolean;
@@ -1,8 +1,8 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
2
  import { StyledButton, StyledLinkButton } from '../Button/Button.styles';
3
3
  import { DropdownButton } from '../Dropdown/Dropdown';
4
- import { Flex } from '../Flex/Flex';
5
- import { getTypographyIntent, typographyWeights } from '../Typography/Typography.styles';
4
+ import { Flex } from '../Flex';
5
+ import { getTypographyIntent, typographyWeights } from '../Typography';
6
6
  import { borderRadius } from '../_styles/borderRadius';
7
7
  import { colors } from '../_styles/colors';
8
8
  import { focusable } from '../_styles/mixins';
@@ -39,7 +39,7 @@ var expandContent = function expandContent(maxHeight) {
39
39
  };
40
40
  export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledBannerContainer",
42
- componentId: "core-12_17_6__sc-149wm7c-0"
42
+ componentId: "core-12_17_7__sc-149wm7c-0"
43
43
  })(["align-items:center;border-left:", "px solid;border-radius:", "px;color:", ";display:flex;justify-content:space-between;min-height:52px;padding:0 ", "px;", " ", " ", ""], bannerLeft, borderRadius.md, colors.gray15, spacing.lg, bannerShadow, function (_ref) {
44
44
  var variant = _ref.variant;
45
45
  var _bannerVariantColors$ = bannerVariantColors[variant],
@@ -52,15 +52,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
52
52
  });
53
53
  export var StyledContent = /*#__PURE__*/styled.div.withConfig({
54
54
  displayName: "StyledContent",
55
- componentId: "core-12_17_6__sc-149wm7c-1"
56
- })(["align-self:center;margin:", "px ", "px;width:100%;"], spacing.sm, spacing.lg);
55
+ componentId: "core-12_17_7__sc-149wm7c-1"
56
+ })(["align-self:center;margin:", "px ", "px ", "px 0;width:100%;"], spacing.sm, spacing.lg, spacing.sm);
57
57
  export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
58
58
  displayName: "StyledExpandableContentContainer",
59
- componentId: "core-12_17_6__sc-149wm7c-2"
59
+ componentId: "core-12_17_7__sc-149wm7c-2"
60
60
  })(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
61
61
  export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
62
62
  displayName: "StyledExpandableContent",
63
- componentId: "core-12_17_6__sc-149wm7c-3"
63
+ componentId: "core-12_17_7__sc-149wm7c-3"
64
64
  })(["animation-duration:450ms;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:", ";box-sizing:border-box;font-size:14px;font-weight:500;letter-spacing:0.25px;line-height:20px;overflow-y:auto;padding:0 ", "px;position:relative;z-index:0;", " ", ""], colors.white, spacing.xl * 2 + spacing.sm, function (_ref3) {
65
65
  var $isOverflowingY = _ref3.$isOverflowingY;
66
66
  return $isOverflowingY && focusable;
@@ -70,30 +70,30 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
70
70
  });
71
71
  export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
72
72
  displayName: "StyledTitle",
73
- componentId: "core-12_17_6__sc-149wm7c-4"
73
+ componentId: "core-12_17_7__sc-149wm7c-4"
74
74
  })(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
75
75
  export var StyledBody = /*#__PURE__*/styled.div.withConfig({
76
76
  displayName: "StyledBody",
77
- componentId: "core-12_17_6__sc-149wm7c-5"
77
+ componentId: "core-12_17_7__sc-149wm7c-5"
78
78
  })(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
79
79
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledIconContainer",
81
- componentId: "core-12_17_6__sc-149wm7c-6"
81
+ componentId: "core-12_17_7__sc-149wm7c-6"
82
82
  })(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
83
83
  export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
84
84
  displayName: "StyledActionsTrigger",
85
- componentId: "core-12_17_6__sc-149wm7c-7"
86
- })(["flex-shrink:0;& + ", ",& + ", "{margin-left:", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
85
+ componentId: "core-12_17_7__sc-149wm7c-7"
86
+ })(["flex-shrink:0;& + ", ",& + ", "{margin-left:-", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
87
87
  export var StyledAction = /*#__PURE__*/styled.div.withConfig({
88
88
  displayName: "StyledAction",
89
- componentId: "core-12_17_6__sc-149wm7c-8"
90
- })(["margin:", "px 0;& + ", ",& + ", ",& + ", "{margin-left:", "px;}", ",", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, StyledButton, StyledLinkButton, StyledActionsTrigger, spacing.sm, StyledButton, StyledLinkButton, colors.gray15, colors.gray85, colors.gray15);
89
+ componentId: "core-12_17_7__sc-149wm7c-8"
90
+ })(["margin:", "px 0 ", "px -", "px;& + ", ",& + ", ",& + ", "{margin-left:-", "px;}", ",", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, spacing.sm, spacing.sm, StyledButton, StyledLinkButton, StyledActionsTrigger, spacing.sm, StyledButton, StyledLinkButton, colors.gray15, colors.gray85, colors.gray15);
91
91
  function getMiniBannerIconColor(_ref5) {
92
92
  var variant = _ref5.variant;
93
93
  return css(["& ", "{color:", ";}"], StyledIconContainer, miniBannerVariantColors[variant]);
94
94
  }
95
95
  export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledMiniBannerContainer",
97
- componentId: "core-12_17_6__sc-149wm7c-9"
97
+ componentId: "core-12_17_7__sc-149wm7c-9"
98
98
  })(["align-items:center;background-color:", ";display:flex;justify-content:space-between;padding:0 ", "px;", " ", " & ", "{margin:", "px;}"], colors.gray96, spacing.md, getTypographyIntent('small'), getMiniBannerIconColor, StyledContent, spacing.sm);
99
99
  //# sourceMappingURL=Banner.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.styles.js","names":["styled","css","keyframes","StyledButton","StyledLinkButton","DropdownButton","Flex","getTypographyIntent","typographyWeights","borderRadius","colors","focusable","getShadow","spacing","bannerLeft","bannerVariantColors","attention","primary","yellow40","secondary","yellow94","error","red50","red98","info","blue50","blue96","UNSAFE_attention_emphasized","orange50","orange98","miniBannerVariantColors","yellow50","green50","bannerShadow","expandContent","maxHeight","sm","StyledBannerContainer","div","withConfig","displayName","componentId","md","gray15","lg","_ref","variant","_bannerVariantColors$","StyledIconContainer","_ref2","$isExpandable","StyledContent","StyledExpandableContentContainer","StyledExpandableContent","white","xl","_ref3","$isOverflowingY","_ref4","$expandableContentMaxHeight","StyledTitle","semibold","StyledBody","StyledActionsTrigger","StyledAction","gray85","getMiniBannerIconColor","_ref5","StyledMiniBannerContainer","gray96"],"sources":["../../src/Banner/Banner.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledButton, StyledLinkButton } from '../Button/Button.styles'\nimport { DropdownButton } from '../Dropdown/Dropdown'\nimport { Flex } from '../Flex/Flex'\nimport type { FlexProps } from '../Flex/Flex.types'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { focusable } from '../_styles/mixins'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport type { BannerProps, BannerVariant } from './Banner.types'\n\nconst bannerLeft = 8\n\nconst bannerVariantColors = {\n attention: {\n primary: colors.yellow40,\n secondary: colors.yellow94,\n },\n error: {\n primary: colors.red50,\n secondary: colors.red98,\n },\n info: {\n primary: colors.blue50,\n secondary: colors.blue96,\n },\n UNSAFE_attention_emphasized: {\n primary: colors.orange50,\n secondary: colors.orange98,\n },\n} as const\n\nconst miniBannerVariantColors = {\n attention: colors.yellow50,\n error: colors.red50,\n info: colors.blue50,\n UNSAFE_attention_emphasized: colors.green50,\n}\n\nconst bannerShadow = getShadow(1, 'bottom')\n\nconst expandContent = (maxHeight: number) => keyframes`\n from {\n padding-top: 0;\n padding-bottom: 0;\n max-height: 0;\n min-height: 0;\n overflow-y: hidden;\n }\n to {\n padding-top: ${spacing.sm}px;\n padding-bottom: ${spacing.sm}px;\n min-height: 32px;\n max-height: ${maxHeight}px;\n overflow-y: auto;\n }\n`\n\nexport const StyledBannerContainer = styled.div<\n { $isExpandable: boolean } & BannerProps\n>`\n align-items: center;\n border-left: ${bannerLeft}px solid;\n border-radius: ${borderRadius.md}px;\n color: ${colors.gray15};\n display: flex;\n justify-content: space-between;\n min-height: 52px;\n padding: 0 ${spacing.lg}px;\n\n ${bannerShadow}\n\n ${({ variant }) => {\n const { primary, secondary } = bannerVariantColors[variant]\n\n return css`\n border-left-color: ${primary};\n background-color: ${secondary};\n\n & ${StyledIconContainer} {\n color: ${primary};\n }\n `\n }}\n\n ${({ $isExpandable }) =>\n $isExpandable &&\n css`\n flex-direction: column;\n align-items: stretch;\n padding: 0;\n `}\n`\n\nexport const StyledContent = styled.div`\n align-self: center;\n margin: ${spacing.sm}px ${spacing.lg}px;\n width: 100%;\n`\n\nexport const StyledExpandableContentContainer = styled(Flex)`\n color: ${colors.gray15};\n min-height: 52px;\n padding: 0 ${spacing.lg}px;\n position: relative;\n z-index: 1;\n\n ${bannerShadow}\n`\n\nexport const StyledExpandableContent = styled(Flex)<\n FlexProps & { $isOverflowingY: boolean; $expandableContentMaxHeight: number }\n>`\n animation-duration: 450ms;\n animation-fill-mode: forwards;\n animation-timing-function: ease-out;\n background-color: ${colors.white};\n box-sizing: border-box;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.25px;\n line-height: 20px;\n overflow-y: auto;\n padding: 0 ${spacing.xl * 2 + spacing.sm}px;\n position: relative;\n z-index: 0;\n\n ${({ $isOverflowingY }) => $isOverflowingY && focusable}\n ${({ $expandableContentMaxHeight }) =>\n css`\n animation-name: ${expandContent($expandableContentMaxHeight)};\n `}\n`\n\nexport const StyledTitle = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n`\n\nexport const StyledBody = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray15};\n`\n\nexport const StyledIconContainer = styled.div`\n flex: 0 0 auto;\n margin: ${spacing.lg}px 0;\n`\n\nexport const StyledActionsTrigger = styled(DropdownButton)`\n flex-shrink: 0;\n\n & + ${StyledButton}, & + ${StyledLinkButton} {\n margin-left: ${spacing.sm}px;\n }\n`\n\nexport const StyledAction = styled.div`\n margin: ${spacing.sm}px 0;\n\n & + ${StyledButton}, & + ${StyledLinkButton}, & + ${StyledActionsTrigger} {\n margin-left: ${spacing.sm}px;\n }\n\n ${StyledButton}, ${StyledLinkButton} {\n background: rgba(0, 0, 0, 0.05);\n color: ${colors.gray15};\n\n &:hover {\n background: ${colors.gray85};\n color: ${colors.gray15};\n }\n }\n`\n\nfunction getMiniBannerIconColor({ variant }: { variant: BannerVariant }) {\n return css`\n & ${StyledIconContainer} {\n color: ${miniBannerVariantColors[variant]};\n }\n `\n}\n\nexport const StyledMiniBannerContainer = styled.div<{\n variant: BannerVariant\n}>`\n align-items: center;\n background-color: ${colors.gray96};\n display: flex;\n justify-content: space-between;\n padding: 0 ${spacing.md}px;\n\n ${getTypographyIntent('small')}\n\n ${getMiniBannerIconColor}\n\n & ${StyledContent} {\n margin: ${spacing.sm}px;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,YAAY,EAAEC,gBAAgB,QAAQ,yBAAyB;AACxE,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,IAAI,QAAQ,cAAc;AAEnC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,UAAU,GAAG,CAAC;AAEpB,IAAMC,mBAAmB,GAAG;EAC1BC,SAAS,EAAE;IACTC,OAAO,EAAEP,MAAM,CAACQ,QAAQ;IACxBC,SAAS,EAAET,MAAM,CAACU;EACpB,CAAC;EACDC,KAAK,EAAE;IACLJ,OAAO,EAAEP,MAAM,CAACY,KAAK;IACrBH,SAAS,EAAET,MAAM,CAACa;EACpB,CAAC;EACDC,IAAI,EAAE;IACJP,OAAO,EAAEP,MAAM,CAACe,MAAM;IACtBN,SAAS,EAAET,MAAM,CAACgB;EACpB,CAAC;EACDC,2BAA2B,EAAE;IAC3BV,OAAO,EAAEP,MAAM,CAACkB,QAAQ;IACxBT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M,CAACK,cAAc,CAAC,CAAAkC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6DAGlDtC,YAAY,EAASC,gBAAgB,EAC1BS,OAAO,CAACuB,EAAE,CAE5B;AAED,OAAO,IAAM4B,YAAY,gBAAGhE,MAAM,CAACsC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8JAC1B5B,OAAO,CAACuB,EAAE,EAEdjC,YAAY,EAASC,gBAAgB,EAAS2D,oBAAoB,EACvDlD,OAAO,CAACuB,EAAE,EAGzBjC,YAAY,EAAKC,gBAAgB,EAExBM,MAAM,CAACiC,MAAM,EAGNjC,MAAM,CAACuD,MAAM,EAClBvD,MAAM,CAACiC,MAAM,CAG3B;AAED,SAASuB,sBAAsBA,CAAAC,KAAA,EAA0C;EAAA,IAAvCrB,OAAO,GAAAqB,KAAA,CAAPrB,OAAO;EACvC,OAAO7C,GAAG,0BACJ+C,mBAAmB,EACZlB,uBAAuB,CAACgB,OAAO,CAAC;AAG/C;AAEA,OAAO,IAAMsB,yBAAyB,gBAAGpE,MAAM,CAACsC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8IAI7B/B,MAAM,CAAC2D,MAAM,EAGpBxD,OAAO,CAAC6B,EAAE,EAErBnC,mBAAmB,CAAC,OAAO,CAAC,EAE5B2D,sBAAsB,EAEpBf,aAAa,EACLtC,OAAO,CAACuB,EAAE,CAEvB"}
1
+ {"version":3,"file":"Banner.styles.js","names":["styled","css","keyframes","StyledButton","StyledLinkButton","DropdownButton","Flex","getTypographyIntent","typographyWeights","borderRadius","colors","focusable","getShadow","spacing","bannerLeft","bannerVariantColors","attention","primary","yellow40","secondary","yellow94","error","red50","red98","info","blue50","blue96","UNSAFE_attention_emphasized","orange50","orange98","miniBannerVariantColors","yellow50","green50","bannerShadow","expandContent","maxHeight","sm","StyledBannerContainer","div","withConfig","displayName","componentId","md","gray15","lg","_ref","variant","_bannerVariantColors$","StyledIconContainer","_ref2","$isExpandable","StyledContent","StyledExpandableContentContainer","StyledExpandableContent","white","xl","_ref3","$isOverflowingY","_ref4","$expandableContentMaxHeight","StyledTitle","semibold","StyledBody","StyledActionsTrigger","StyledAction","gray85","getMiniBannerIconColor","_ref5","StyledMiniBannerContainer","gray96"],"sources":["../../src/Banner/Banner.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledButton, StyledLinkButton } from '../Button/Button.styles'\nimport { DropdownButton } from '../Dropdown/Dropdown'\nimport type { FlexProps } from '../Flex'\nimport { Flex } from '../Flex'\nimport { getTypographyIntent, typographyWeights } from '../Typography'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { focusable } from '../_styles/mixins'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport type { BannerProps, BannerVariant } from './Banner.types'\n\nconst bannerLeft = 8\n\nconst bannerVariantColors = {\n attention: {\n primary: colors.yellow40,\n secondary: colors.yellow94,\n },\n error: {\n primary: colors.red50,\n secondary: colors.red98,\n },\n info: {\n primary: colors.blue50,\n secondary: colors.blue96,\n },\n UNSAFE_attention_emphasized: {\n primary: colors.orange50,\n secondary: colors.orange98,\n },\n} as const\n\nconst miniBannerVariantColors = {\n attention: colors.yellow50,\n error: colors.red50,\n info: colors.blue50,\n UNSAFE_attention_emphasized: colors.green50,\n}\n\nconst bannerShadow = getShadow(1, 'bottom')\n\nconst expandContent = (maxHeight: number) => keyframes`\n from {\n padding-top: 0;\n padding-bottom: 0;\n max-height: 0;\n min-height: 0;\n overflow-y: hidden;\n }\n to {\n padding-top: ${spacing.sm}px;\n padding-bottom: ${spacing.sm}px;\n min-height: 32px;\n max-height: ${maxHeight}px;\n overflow-y: auto;\n }\n`\n\nexport const StyledBannerContainer = styled.div<\n { $isExpandable: boolean } & BannerProps\n>`\n align-items: center;\n border-left: ${bannerLeft}px solid;\n border-radius: ${borderRadius.md}px;\n color: ${colors.gray15};\n display: flex;\n justify-content: space-between;\n min-height: 52px;\n padding: 0 ${spacing.lg}px;\n\n ${bannerShadow}\n\n ${({ variant }) => {\n const { primary, secondary } = bannerVariantColors[variant]\n\n return css`\n border-left-color: ${primary};\n background-color: ${secondary};\n\n & ${StyledIconContainer} {\n color: ${primary};\n }\n `\n }}\n\n ${({ $isExpandable }) =>\n $isExpandable &&\n css`\n flex-direction: column;\n align-items: stretch;\n padding: 0;\n `}\n`\n\nexport const StyledContent = styled.div`\n align-self: center;\n margin: ${spacing.sm}px ${spacing.lg}px ${spacing.sm}px 0;\n width: 100%;\n`\n\nexport const StyledExpandableContentContainer = styled(Flex)`\n color: ${colors.gray15};\n min-height: 52px;\n padding: 0 ${spacing.lg}px;\n position: relative;\n z-index: 1;\n\n ${bannerShadow}\n`\n\nexport const StyledExpandableContent = styled(Flex)<\n FlexProps & { $isOverflowingY: boolean; $expandableContentMaxHeight: number }\n>`\n animation-duration: 450ms;\n animation-fill-mode: forwards;\n animation-timing-function: ease-out;\n background-color: ${colors.white};\n box-sizing: border-box;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.25px;\n line-height: 20px;\n overflow-y: auto;\n padding: 0 ${spacing.xl * 2 + spacing.sm}px;\n position: relative;\n z-index: 0;\n\n ${({ $isOverflowingY }) => $isOverflowingY && focusable}\n ${({ $expandableContentMaxHeight }) =>\n css`\n animation-name: ${expandContent($expandableContentMaxHeight)};\n `}\n`\n\nexport const StyledTitle = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n`\n\nexport const StyledBody = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray15};\n`\n\nexport const StyledIconContainer = styled.div`\n flex: 0 0 auto;\n margin: ${spacing.lg}px 0;\n`\n\nexport const StyledActionsTrigger = styled(DropdownButton)`\n flex-shrink: 0;\n\n & + ${StyledButton}, & + ${StyledLinkButton} {\n margin-left: -${spacing.sm}px;\n }\n`\n\nexport const StyledAction = styled.div`\n margin: ${spacing.sm}px 0 ${spacing.sm}px -${spacing.sm}px;\n\n & + ${StyledButton}, & + ${StyledLinkButton}, & + ${StyledActionsTrigger} {\n margin-left: -${spacing.sm}px;\n }\n\n ${StyledButton}, ${StyledLinkButton} {\n background: rgba(0, 0, 0, 0.05);\n color: ${colors.gray15};\n\n &:hover {\n background: ${colors.gray85};\n color: ${colors.gray15};\n }\n }\n`\n\nfunction getMiniBannerIconColor({ variant }: { variant: BannerVariant }) {\n return css`\n & ${StyledIconContainer} {\n color: ${miniBannerVariantColors[variant]};\n }\n `\n}\n\nexport const StyledMiniBannerContainer = styled.div<{\n variant: BannerVariant\n}>`\n align-items: center;\n background-color: ${colors.gray96};\n display: flex;\n justify-content: space-between;\n padding: 0 ${spacing.md}px;\n\n ${getTypographyIntent('small')}\n\n ${getMiniBannerIconColor}\n\n & ${StyledContent} {\n margin: ${spacing.sm}px;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,YAAY,EAAEC,gBAAgB,QAAQ,yBAAyB;AACxE,SAASC,cAAc,QAAQ,sBAAsB;AAErD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,mBAAmB,EAAEC,iBAAiB,QAAQ,eAAe;AACtE,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,UAAU,GAAG,CAAC;AAEpB,IAAMC,mBAAmB,GAAG;EAC1BC,SAAS,EAAE;IACTC,OAAO,EAAEP,MAAM,CAACQ,QAAQ;IACxBC,SAAS,EAAET,MAAM,CAACU;EACpB,CAAC;EACDC,KAAK,EAAE;IACLJ,OAAO,EAAEP,MAAM,CAACY,KAAK;IACrBH,SAAS,EAAET,MAAM,CAACa;EACpB,CAA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ig({
23
23
  displayName: "StyledBox",
24
- componentId: "core-12_17_6__sc-fgsy0p-0"
24
+ componentId: "core-12_17_7__sc-fgsy0p-0"
25
25
  })(["", " ", ""], function (_ref) {
26
26
  var $as = _ref.$as;
27
27
  if ($as === 'ol' || $as === 'ul') {
@@ -4,19 +4,19 @@ import { colors } from '../_styles/colors';
4
4
  import { spacing } from '../_styles/spacing';
5
5
  export var StyledContainer = /*#__PURE__*/styled.nav.withConfig({
6
6
  displayName: "StyledContainer",
7
- componentId: "core-12_17_6__sc-1q6nqfz-0"
7
+ componentId: "core-12_17_7__sc-1q6nqfz-0"
8
8
  })(["color:", ";display:flex;align-items:center;a,a:hover{display:inline-flex;text-decoration:none;}"], colors.gray50);
9
9
  export var StyledList = /*#__PURE__*/styled.ol.withConfig({
10
10
  displayName: "StyledList",
11
- componentId: "core-12_17_6__sc-1q6nqfz-1"
11
+ componentId: "core-12_17_7__sc-1q6nqfz-1"
12
12
  })(["display:flex;margin:0;padding-left:0;"]);
13
13
  export var StyledSeparator = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "StyledSeparator",
15
- componentId: "core-12_17_6__sc-1q6nqfz-2"
15
+ componentId: "core-12_17_7__sc-1q6nqfz-2"
16
16
  })(["align-items:center;display:inline-flex;justify-content:center;margin:0px ", "px;"], spacing.xs);
17
17
  export var StyledCrumb = /*#__PURE__*/styled.li.withConfig({
18
18
  displayName: "StyledCrumb",
19
- componentId: "core-12_17_6__sc-1q6nqfz-3"
19
+ componentId: "core-12_17_7__sc-1q6nqfz-3"
20
20
  })(["", " align-items:center;color:", ";display:inline-flex;min-height:24px;text-decoration:none;&:hover{cursor:", ";text-decoration:", ";}> a{color:", ";", "}", ""], getTypographyIntent('body'), colors.gray45, function (_ref) {
21
21
  var active = _ref.active;
22
22
  return active ? 'default' : 'pointer';
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":["React","useEventListener","mergeRefs","StyledButton","StyledContent","StyledLabel","StyledLinkButton","StyledSpinner","SPINNER_VARIANT","primary","secondary","tertiary","tertiaryContrast","UNSAFE_helixNav","ButtonContent","_ref","children","icon","iconRight","size","variant","createElement","Fragment","isValidElement","cloneElement","_defineProperty","Children","map","child","color","Button","forwardRef","_ref2","ref","_ref2$block","block","_ref2$disabled","disabled","_ref2$loading","loading","_ref2$size","_ref2$type","type","_ref2$variant","props","_objectWithoutProperties","_excluded","_extends","undefined","tabIndex","$block","$loading","$size","$variant","LinkButton","_ref3","_ref3$block","disabled_","href_","href","_ref3$size","_ref3$variant","_excluded2","innerRef","useRef","mimicButtonRole","e","key","indexOf","_innerRef$current","preventDefault","current","click","event","handler","scope","role","$disabled"],"sources":["../../src/Button/Button.tsx"],"sourcesContent":["import type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n StyledButton,\n StyledContent,\n StyledLabel,\n StyledLinkButton,\n StyledSpinner,\n} from './Button.styles'\nimport type {\n ButtonProps,\n ButtonVariant,\n LinkButtonProps,\n} from './Button.types'\n\nconst SPINNER_VARIANT: { [key in ButtonVariant]: 'white' | 'gray15' } = {\n primary: 'white',\n secondary: 'gray15',\n tertiary: 'gray15',\n tertiaryContrast: 'gray15',\n UNSAFE_helixNav: 'white',\n}\n\nconst ButtonContent: FunctionComponent<\n PropsWithChildren<\n Pick<ButtonProps, 'icon' | 'iconRight' | 'size' | 'variant'>\n >\n> = ({ children, icon, iconRight, size, variant }) => {\n return (\n <>\n <StyledContent>\n {React.isValidElement<{ ['data-icon-prop']: string }>(icon)\n ? React.cloneElement(icon, { ['data-icon-prop']: 'true' })\n : null}\n {React.Children.map(children, (child) => {\n return <StyledLabel>{child}</StyledLabel>\n })}\n {React.isValidElement<{ ['data-icon-prop']: string }>(iconRight)\n ? React.cloneElement(iconRight, { ['data-icon-prop']: 'true' })\n : null}\n </StyledContent>\n <StyledSpinner\n size={size === 'lg' ? 'md' : 'sm'}\n color={variant ? SPINNER_VARIANT[variant] : 'gray15'}\n />\n </>\n )\n}\n\n/**\n\n We use buttons to link to other pages or to trigger an action.\n Buttons clearly define what happens when a user clicks it.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-button--demo)\n\n @see [Design Guidelines](https://design.procore.com/button)\n\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function Button(\n {\n block = false,\n children,\n disabled = false,\n icon,\n iconRight,\n loading = false,\n size = 'md',\n type = 'button',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n return (\n <StyledButton\n aria-busy={loading || undefined}\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n tabIndex={0}\n {...props}\n $block={block}\n disabled={disabled || loading}\n $loading={loading}\n $size={size}\n $variant={variant}\n type={type}\n ref={ref}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledButton>\n )\n }\n)\n\nexport const LinkButton = React.forwardRef<HTMLAnchorElement, LinkButtonProps>(\n function LinkButton(\n {\n block = false,\n children,\n disabled: disabled_,\n href: href_,\n icon,\n iconRight,\n size = 'md',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n const innerRef = React.useRef<HTMLAnchorElement>(null)\n\n const mimicButtonRole = (e: React.KeyboardEvent<HTMLAnchorElement>) => {\n const { key } = e\n\n if (['Enter', 'Spacebar', ' '].indexOf(key) >= 0) {\n // Prevents the page to scroll when \"space\" is pressed\n e.preventDefault()\n innerRef.current?.click()\n }\n }\n\n useEventListener({\n event: 'keydown',\n handler: mimicButtonRole,\n scope: innerRef,\n })\n\n const disabled = disabled_ || !href_\n const href = disabled ? undefined : href_\n\n return (\n <StyledLinkButton\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n role=\"button\"\n {...props}\n aria-disabled={disabled}\n href={href}\n $disabled={disabled}\n $block={block}\n $size={size}\n $variant={variant}\n ref={mergeRefs(ref, innerRef)}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledLinkButton>\n )\n }\n)\n"],"mappings":";;;;;;;;;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,gBAAgB,EAChBC,aAAa,QACR,iBAAiB;AAOxB,IAAMC,eAA+D,GAAG;EACtEC,OAAO,EAAE,OAAO;EAChBC,SAAS,EAAE,QAAQ;EACnBC,QAAQ,EAAE,QAAQ;EAClBC,gBAAgB,EAAE,QAAQ;EAC1BC,eAAe,EAAE;AACnB,CAAC;AAED,IAAMC,aAIL,GAAG,SAJEA,aAILA,CAAAC,IAAA,EAAqD;EAAA,IAA/CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;EAC7C,oBACEpB,KAAA,CAAAqB,aAAA,CAAArB,KAAA,CAAAsB,QAAA,qBACEtB,KAAA,CAAAqB,aAAA,CAACjB,aAAa,QACX,aAAAJ,KAAK,CAACuB,cAAc,CAAiCN,IAAI,CAAC,gBACvDjB,KAAK,CAACwB,YAAY,CAACP,IAAI,EAAAQ,eAAA,KAAK,gBAAgB,EAAG,MAAM,CAAE,CAAC,GACxD,IAAI,EACPzB,KAAK,CAAC0B,QAAQ,CAACC,GAAG,CAACX,QAAQ,EAAE,UAACY,KAAK,EAAK;IACvC,oBAAO5B,KAAA,CAAAqB,aAAA,CAAChB,WAAW,QAAEuB,KAAmB,CAAC;EAC3C,CAAC,CAAC,EACD,aAAA5B,KAAK,CAACuB,cAAc,CAAiCL,SAAS,CAAC,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QACY,CACC,CAAC;AAEvB,CACF,CAAC"}
1
+ {"version":3,"file":"Button.js","names":["React","useEventListener","mergeRefs","StyledButton","StyledContent","StyledLabel","StyledLinkButton","StyledSpinner","SPINNER_VARIANT","primary","secondary","tertiary","tertiaryContrast","UNSAFE_helixNav","ButtonContent","_ref","children","icon","iconRight","size","variant","createElement","Fragment","isValidElement","cloneElement","_defineProperty","Children","map","child","color","Button","forwardRef","_ref2","ref","_ref2$block","block","_ref2$disabled","disabled","_ref2$loading","loading","_ref2$size","_ref2$type","type","_ref2$variant","props","_objectWithoutProperties","_excluded","_extends","undefined","tabIndex","$block","$loading","$size","$variant","LinkButton","_ref3","_ref3$block","disabled_","href_","href","_ref3$size","_ref3$variant","_excluded2","innerRef","useRef","mimicButtonRole","e","key","indexOf","_innerRef$current","preventDefault","current","click","event","handler","scope","role","$disabled"],"sources":["../../src/Button/Button.tsx"],"sourcesContent":["import type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n StyledButton,\n StyledContent,\n StyledLabel,\n StyledLinkButton,\n StyledSpinner,\n} from './Button.styles'\nimport type {\n ButtonProps,\n ButtonVariant,\n LinkButtonProps,\n} from './Button.types'\n\nconst SPINNER_VARIANT: Record<ButtonVariant, 'white' | 'gray15'> = {\n primary: 'white',\n secondary: 'gray15',\n tertiary: 'gray15',\n tertiaryContrast: 'gray15',\n UNSAFE_helixNav: 'white',\n}\n\nconst ButtonContent: FunctionComponent<\n PropsWithChildren<\n Pick<ButtonProps, 'icon' | 'iconRight' | 'size' | 'variant'>\n >\n> = ({ children, icon, iconRight, size, variant }) => {\n return (\n <>\n <StyledContent>\n {React.isValidElement<{ ['data-icon-prop']: string }>(icon)\n ? React.cloneElement(icon, { ['data-icon-prop']: 'true' })\n : null}\n {React.Children.map(children, (child) => {\n return <StyledLabel>{child}</StyledLabel>\n })}\n {React.isValidElement<{ ['data-icon-prop']: string }>(iconRight)\n ? React.cloneElement(iconRight, { ['data-icon-prop']: 'true' })\n : null}\n </StyledContent>\n <StyledSpinner\n size={size === 'lg' ? 'md' : 'sm'}\n color={variant ? SPINNER_VARIANT[variant] : 'gray15'}\n />\n </>\n )\n}\n\n/**\n\n We use buttons to link to other pages or to trigger an action.\n Buttons clearly define what happens when a user clicks it.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-button--demo)\n\n @see [Design Guidelines](https://design.procore.com/button)\n\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function Button(\n {\n block = false,\n children,\n disabled = false,\n icon,\n iconRight,\n loading = false,\n size = 'md',\n type = 'button',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n return (\n <StyledButton\n aria-busy={loading || undefined}\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n tabIndex={0}\n {...props}\n $block={block}\n disabled={disabled || loading}\n $loading={loading}\n $size={size}\n $variant={variant}\n type={type}\n ref={ref}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledButton>\n )\n }\n)\n\nexport const LinkButton = React.forwardRef<HTMLAnchorElement, LinkButtonProps>(\n function LinkButton(\n {\n block = false,\n children,\n disabled: disabled_,\n href: href_,\n icon,\n iconRight,\n size = 'md',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n const innerRef = React.useRef<HTMLAnchorElement>(null)\n\n const mimicButtonRole = (e: React.KeyboardEvent<HTMLAnchorElement>) => {\n const { key } = e\n\n if (['Enter', 'Spacebar', ' '].indexOf(key) >= 0) {\n // Prevents the page to scroll when \"space\" is pressed\n e.preventDefault()\n innerRef.current?.click()\n }\n }\n\n useEventListener({\n event: 'keydown',\n handler: mimicButtonRole,\n scope: innerRef,\n })\n\n const disabled = disabled_ || !href_\n const href = disabled ? undefined : href_\n\n return (\n <StyledLinkButton\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n role=\"button\"\n {...props}\n aria-disabled={disabled}\n href={href}\n $disabled={disabled}\n $block={block}\n $size={size}\n $variant={variant}\n ref={mergeRefs(ref, innerRef)}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledLinkButton>\n )\n }\n)\n"],"mappings":";;;;;;;;;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,gBAAgB,EAChBC,aAAa,QACR,iBAAiB;AAOxB,IAAMC,eAA0D,GAAG;EACjEC,OAAO,EAAE,OAAO;EAChBC,SAAS,EAAE,QAAQ;EACnBC,QAAQ,EAAE,QAAQ;EAClBC,gBAAgB,EAAE,QAAQ;EAC1BC,eAAe,EAAE;AACnB,CAAC;AAED,IAAMC,aAIL,GAAG,SAJEA,aAILA,CAAAC,IAAA,EAAqD;EAAA,IAA/CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;EAC7C,oBACEpB,KAAA,CAAAqB,aAAA,CAAArB,KAAA,CAAAsB,QAAA,qBACEtB,KAAA,CAAAqB,aAAA,CAACjB,aAAa,QACX,aAAAJ,KAAK,CAACuB,cAAc,CAAiCN,IAAI,CAAC,gBACvDjB,KAAK,CAACwB,YAAY,CAACP,IAAI,EAAAQ,eAAA,KAAK,gBAAgB,EAAG,MAAM,CAAE,CAAC,GACxD,IAAI,EACPzB,KAAK,CAAC0B,QAAQ,CAACC,GAAG,CAACX,QAAQ,EAAE,UAACY,KAAK,EAAK;IACvC,oBAAO5B,KAA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AACP,aAAa;IACZG,IAAI,EAAEA,IAAK;IACXC,SAAS,EAAEA,SAAU;IACrBC,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA;EAAQ,GAEhBJ,QACY,CACC,CAAC;AAEvB,CACF,CAAC"}
@@ -19,6 +19,7 @@ interface StyledButtonProps {
19
19
  $size: ButtonSizes;
20
20
  $variant: ButtonVariant;
21
21
  }
22
+ export declare function getButtonStyles(block: boolean, disabled: boolean, loading: boolean, size: ButtonSizes, variant: ButtonVariant): import("styled-components").FlattenSimpleInterpolation;
22
23
  export declare const StyledButton: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
23
24
  interface StyledLinkButtonProps extends Pick<StyledButtonProps, '$block' | '$size' | '$variant'> {
24
25
  $disabled: boolean;
@@ -1,7 +1,7 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { defaultSpinnerSize, Spinner } from '../Spinner/Spinner';
3
3
  import { spinnerDimensions } from '../Spinner/Spinner.styles';
4
- import { getTypographyIntent, typographyWeights } from '../Typography/Typography.styles';
4
+ import { getTypographyIntent, typographyWeights } from '../Typography';
5
5
  import { borderRadius } from '../_styles/borderRadius';
6
6
  import { colors } from '../_styles/colors';
7
7
  import { mediaIE11Hack } from '../_styles/media';
@@ -93,11 +93,11 @@ function getColors(loading, variant) {
93
93
  }
94
94
  export var StyledContent = /*#__PURE__*/styled.span.withConfig({
95
95
  displayName: "StyledContent",
96
- componentId: "core-12_17_6__sc-c5bhwh-0"
96
+ componentId: "core-12_17_7__sc-c5bhwh-0"
97
97
  })(["align-items:center;display:flex;overflow:hidden;"]);
98
98
  export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
99
99
  displayName: "StyledSpinner",
100
- componentId: "core-12_17_6__sc-c5bhwh-1"
100
+ componentId: "core-12_17_7__sc-c5bhwh-1"
101
101
  })(["box-sizing:border-box;display:none;position:absolute;transform:translateZ(0);@media ", "{left:50%;top:50%;", "}"], mediaIE11Hack, function (_ref) {
102
102
  var size = _ref.size;
103
103
  var margin = -1 * (spinnerDimensions[size !== null && size !== void 0 ? size : defaultSpinnerSize] / 2);
@@ -105,14 +105,14 @@ export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
105
105
  });
106
106
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
107
107
  displayName: "StyledLabel",
108
- componentId: "core-12_17_6__sc-c5bhwh-2"
108
+ componentId: "core-12_17_7__sc-c5bhwh-2"
109
109
  })(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
110
- function getButtonStyles(block, disabled, loading, size, variant) {
110
+ export function getButtonStyles(block, disabled, loading, size, variant) {
111
111
  return css(["", " ", " ", " ", " align-items:center;border-radius:", "px;border:0;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;flex-shrink:0;font-family:inherit;font-weight:", ";height:", "px;justify-content:center;margin:0;overflow:hidden;padding:0 ", "px;position:relative;pointer-events:", ";text-overflow:ellipsis;user-select:", ";vertical-align:middle;white-space:nowrap;width:", ";[data-icon-prop='true']{pointer-events:none;height:", "px;width:", "px;}", ""], getTypographyIntent(typographySizes[size]), focusable, variant === 'UNSAFE_helixNav' && css(["&.focus,&:focus{outline:none;box-shadow:0 0 0 2px ", ";}"], colors.blue70), getColors(loading, variant), borderRadius.md, typographyWeights.semibold, heights[size], paddingX[size], disabled || loading ? 'none' : 'inherit', disabled || loading ? 'none' : 'inherit', block && '100%', size === 'sm' ? 16 : 24, size === 'sm' ? 16 : 24, loading && css(["", "{pointer-events:none;visibility:hidden;}", "{display:block;}"], StyledContent, StyledSpinner));
112
112
  }
113
113
  export var StyledButton = /*#__PURE__*/styled.button.withConfig({
114
114
  displayName: "StyledButton",
115
- componentId: "core-12_17_6__sc-c5bhwh-3"
115
+ componentId: "core-12_17_7__sc-c5bhwh-3"
116
116
  })(["", ""], function (_ref2) {
117
117
  var $block = _ref2.$block,
118
118
  disabled = _ref2.disabled,
@@ -123,7 +123,7 @@ export var StyledButton = /*#__PURE__*/styled.button.withConfig({
123
123
  });
124
124
  export var StyledLinkButton = /*#__PURE__*/styled.a.withConfig({
125
125
  displayName: "StyledLinkButton",
126
- componentId: "core-12_17_6__sc-c5bhwh-4"
126
+ componentId: "core-12_17_7__sc-c5bhwh-4"
127
127
  })(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
128
128
  var $block = _ref3.$block,
129
129
  $disabled = _ref3.$disabled,
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.js","names":["styled","css","defaultSpinnerSize","Spinner","spinnerDimensions","getTypographyIntent","typographyWeights","borderRadius","colors","mediaIE11Hack","focusable","spacing","heights","sm","md","lg","paddingX","xs","typographySizes","buttonTextColors","primary","main","white","disabled","secondary","gray15","gray70","tertiary","tertiaryContrast","blue45","UNSAFE_helixNav","gray40","buttonBGColors","orange50","hover","orange45","orange85","gray90","gray85","gray94","gray50","getBGColor","variant","console","error","concat","getTextColor","getColors","loading","StyledContent","span","withConfig","displayName","componentId","StyledSpinner","_ref","size","margin","StyledLabel","getButtonStyles","block","blue70","semibold","StyledButton","button","_ref2","$block","$loading","$size","$variant","StyledLinkButton","a","_ref3","$disabled"],"sources":["../../src/Button/Button.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { defaultSpinnerSize, Spinner } from '../Spinner/Spinner'\nimport { spinnerDimensions } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport type { Intent } from '../Typography/Typography.types'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { mediaIE11Hack } from '../_styles/media'\nimport { focusable } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { ButtonSizes, ButtonVariant, SizingObject } from './Button.types'\n\nconst heights: SizingObject = {\n sm: 24,\n md: 36,\n lg: 48,\n}\n\nconst paddingX: SizingObject = {\n sm: spacing.xs,\n md: 6, // TODO one-off\n lg: spacing.md,\n}\n\nconst typographySizes: { [key in ButtonSizes]: Intent } = {\n sm: 'small',\n md: 'body',\n lg: 'h3',\n}\n\nconst buttonTextColors: {\n [key in ButtonVariant]: { main: string; disabled: string }\n} = {\n primary: {\n main: colors.white,\n disabled: colors.white,\n },\n secondary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiaryContrast: {\n main: colors.blue45,\n disabled: colors.blue45,\n },\n UNSAFE_helixNav: {\n main: colors.white,\n disabled: colors.gray40,\n },\n}\n\nconst buttonBGColors: {\n [key in ButtonVariant]: {\n main: string\n hover: string\n disabled: string\n }\n} = {\n primary: {\n main: colors.orange50,\n hover: colors.orange45,\n disabled: colors.orange85,\n },\n secondary: {\n main: colors.gray90,\n hover: colors.gray85,\n disabled: colors.gray94,\n },\n tertiary: {\n main: 'transparent',\n hover: colors.gray90,\n disabled: 'transparent',\n },\n tertiaryContrast: {\n main: 'transparent',\n hover: 'white',\n disabled: 'transparent',\n },\n UNSAFE_helixNav: {\n main: 'transparent',\n hover: colors.gray50,\n disabled: 'transparent',\n },\n}\n\nexport function getBGColor(variant: ButtonVariant) {\n const colors = buttonBGColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonBGColors.primary\n }\n return colors\n}\n\nexport function getTextColor(variant: ButtonVariant) {\n const colors = buttonTextColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonTextColors.primary\n }\n return colors\n}\n\nfunction getColors(loading: boolean, variant: ButtonVariant) {\n return css`\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).main};\n\n color: ${getTextColor(variant).main};\n\n &.active,\n &:active,\n &.focus,\n &:focus,\n &.hover,\n &:hover {\n background: ${getBGColor(variant).hover};\n color: ${getTextColor(variant).main};\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).disabled};\n color: ${getTextColor(variant).disabled};\n }\n `\n}\n\nexport const StyledContent = styled.span`\n align-items: center;\n display: flex;\n overflow: hidden;\n`\n\nexport const StyledSpinner = styled(Spinner)`\n box-sizing: border-box;\n display: none;\n position: absolute;\n transform: translateZ(0);\n\n @media ${mediaIE11Hack} {\n left: 50%;\n top: 50%;\n ${({ size }) => {\n const margin = -1 * (spinnerDimensions[size ?? defaultSpinnerSize] / 2)\n return css`\n margin-left: ${margin}px;\n margin-top: ${margin}px;\n `\n }}\n }\n`\n\nexport const StyledLabel = styled.span`\n overflow: hidden;\n padding: 0 6px; // TODO one-off\n text-overflow: ellipsis;\n white-space: nowrap;\n\n & + span {\n padding-left: 0;\n }\n`\n\ninterface StyledButtonProps {\n disabled: boolean\n $block: boolean\n $loading: boolean\n $size: ButtonSizes\n $variant: ButtonVariant\n}\n\nfunction getButtonStyles(\n block: boolean,\n disabled: boolean,\n loading: boolean,\n size: ButtonSizes,\n variant: ButtonVariant\n) {\n return css`\n ${getTypographyIntent(typographySizes[size])}\n\n ${focusable}\n\n /**\n TODO: This might be a new pattern for focus states,\n but leaving it just here for now\n */\n ${variant === 'UNSAFE_helixNav' &&\n css`\n &.focus,\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ${colors.blue70};\n }\n `}\n\n ${getColors(loading, variant)}\n\n align-items: center;\n border-radius: ${borderRadius.md}px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n flex-direction: row;\n flex-shrink: 0;\n font-family: inherit;\n font-weight: ${typographyWeights.semibold};\n height: ${heights[size]}px;\n justify-content: center;\n margin: 0;\n overflow: hidden;\n padding: 0 ${paddingX[size]}px;\n position: relative;\n pointer-events: ${disabled || loading ? 'none' : 'inherit'};\n text-overflow: ellipsis;\n user-select: ${disabled || loading ? 'none' : 'inherit'};\n vertical-align: middle;\n white-space: nowrap;\n width: ${block && '100%'};\n\n [data-icon-prop='true'] {\n pointer-events: none;\n height: ${size === 'sm' ? 16 : 24}px;\n width: ${size === 'sm' ? 16 : 24}px;\n }\n\n ${loading &&\n css`\n ${StyledContent} {\n pointer-events: none;\n visibility: hidden;\n }\n\n ${StyledSpinner} {\n display: block;\n }\n `}\n `\n}\n\nexport const StyledButton = styled.button<StyledButtonProps>`\n ${({ $block, disabled, $loading, $size, $variant }) =>\n getButtonStyles($block, disabled, $loading, $size, $variant)}\n`\n\ninterface StyledLinkButtonProps\n extends Pick<StyledButtonProps, '$block' | '$size' | '$variant'> {\n $disabled: boolean\n}\n\nexport const StyledLinkButton = styled.a<StyledLinkButtonProps>`\n &,\n &:hover {\n text-decoration: none;\n }\n\n ${({ $block, $disabled, $size, $variant }) =>\n getButtonStyles($block, $disabled, false, $size, $variant)}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,kBAAkB,EAAEC,OAAO,QAAQ,oBAAoB;AAChE,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AAExC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,OAAqB,GAAG;EAC5BC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,IAAMC,QAAsB,GAAG;EAC7BH,EAAE,EAAEF,OAAO,CAACM,EAAE;EACdH,EAAE,EAAE,CAAC;EAAE;EACPC,EAAE,EAAEJ,OAAO,CAACG;AACd,CAAC;AAED,IAAMI,eAAiD,GAAG;EACxDL,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,MAAM;EACVC,EAAE,EAAE;AACN,CAAC;AAED,IAAMI,gBAEL,GAAG;EACF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M;IAAE3C,QAAQ,GAAA0C,KAAA,CAAR1C,QAAQ;IAAE4C,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,KAAA,CAALG,KAAK;IAAEC,QAAQ,GAAAJ,KAAA,CAARI,QAAQ;EAAA,OAC9CV,eAAe,CAACO,MAAM,EAAE3C,QAAQ,EAAE4C,QAAQ,EAAEC,KAAK,EAAEC,QAAQ,CAAC;AAAA,EAC/D;AAOD,OAAO,IAAMC,gBAAgB,gBAAGtE,MAAM,CAACuE,CAAC,CAAApB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6CAMpC,UAAAmB,KAAA;EAAA,IAAGN,MAAM,GAAAM,KAAA,CAANN,MAAM;IAAEO,SAAS,GAAAD,KAAA,CAATC,SAAS;IAAEL,KAAK,GAAAI,KAAA,CAALJ,KAAK;IAAEC,QAAQ,GAAAG,KAAA,CAARH,QAAQ;EAAA,OACrCV,eAAe,CAACO,MAAM,EAAEO,SAAS,EAAE,KAAK,EAAEL,KAAK,EAAEC,QAAQ,CAAC;AAAA,EAC7D"}
1
+ {"version":3,"file":"Button.styles.js","names":["styled","css","defaultSpinnerSize","Spinner","spinnerDimensions","getTypographyIntent","typographyWeights","borderRadius","colors","mediaIE11Hack","focusable","spacing","heights","sm","md","lg","paddingX","xs","typographySizes","buttonTextColors","primary","main","white","disabled","secondary","gray15","gray70","tertiary","tertiaryContrast","blue45","UNSAFE_helixNav","gray40","buttonBGColors","orange50","hover","orange45","orange85","gray90","gray85","gray94","gray50","getBGColor","variant","console","error","concat","getTextColor","getColors","loading","StyledContent","span","withConfig","displayName","componentId","StyledSpinner","_ref","size","margin","StyledLabel","getButtonStyles","block","blue70","semibold","StyledButton","button","_ref2","$block","$loading","$size","$variant","StyledLinkButton","a","_ref3","$disabled"],"sources":["../../src/Button/Button.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { defaultSpinnerSize, Spinner } from '../Spinner/Spinner'\nimport { spinnerDimensions } from '../Spinner/Spinner.styles'\nimport { getTypographyIntent, typographyWeights } from '../Typography'\nimport type { Intent } from '../Typography/Typography.types'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { mediaIE11Hack } from '../_styles/media'\nimport { focusable } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { ButtonSizes, ButtonVariant, SizingObject } from './Button.types'\n\nconst heights: SizingObject = {\n sm: 24,\n md: 36,\n lg: 48,\n}\n\nconst paddingX: SizingObject = {\n sm: spacing.xs,\n md: 6, // TODO one-off\n lg: spacing.md,\n}\n\nconst typographySizes: { [key in ButtonSizes]: Intent } = {\n sm: 'small',\n md: 'body',\n lg: 'h3',\n}\n\nconst buttonTextColors: {\n [key in ButtonVariant]: { main: string; disabled: string }\n} = {\n primary: {\n main: colors.white,\n disabled: colors.white,\n },\n secondary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiaryContrast: {\n main: colors.blue45,\n disabled: colors.blue45,\n },\n UNSAFE_helixNav: {\n main: colors.white,\n disabled: colors.gray40,\n },\n}\n\nconst buttonBGColors: {\n [key in ButtonVariant]: {\n main: string\n hover: string\n disabled: string\n }\n} = {\n primary: {\n main: colors.orange50,\n hover: colors.orange45,\n disabled: colors.orange85,\n },\n secondary: {\n main: colors.gray90,\n hover: colors.gray85,\n disabled: colors.gray94,\n },\n tertiary: {\n main: 'transparent',\n hover: colors.gray90,\n disabled: 'transparent',\n },\n tertiaryContrast: {\n main: 'transparent',\n hover: 'white',\n disabled: 'transparent',\n },\n UNSAFE_helixNav: {\n main: 'transparent',\n hover: colors.gray50,\n disabled: 'transparent',\n },\n}\n\nexport function getBGColor(variant: ButtonVariant) {\n const colors = buttonBGColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonBGColors.primary\n }\n return colors\n}\n\nexport function getTextColor(variant: ButtonVariant) {\n const colors = buttonTextColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonTextColors.primary\n }\n return colors\n}\n\nfunction getColors(loading: boolean, variant: ButtonVariant) {\n return css`\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).main};\n\n color: ${getTextColor(variant).main};\n\n &.active,\n &:active,\n &.focus,\n &:focus,\n &.hover,\n &:hover {\n background: ${getBGColor(variant).hover};\n color: ${getTextColor(variant).main};\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).disabled};\n color: ${getTextColor(variant).disabled};\n }\n `\n}\n\nexport const StyledContent = styled.span`\n align-items: center;\n display: flex;\n overflow: hidden;\n`\n\nexport const StyledSpinner = styled(Spinner)`\n box-sizing: border-box;\n display: none;\n position: absolute;\n transform: translateZ(0);\n\n @media ${mediaIE11Hack} {\n left: 50%;\n top: 50%;\n ${({ size }) => {\n const margin = -1 * (spinnerDimensions[size ?? defaultSpinnerSize] / 2)\n return css`\n margin-left: ${margin}px;\n margin-top: ${margin}px;\n `\n }}\n }\n`\n\nexport const StyledLabel = styled.span`\n overflow: hidden;\n padding: 0 6px; // TODO one-off\n text-overflow: ellipsis;\n white-space: nowrap;\n\n & + span {\n padding-left: 0;\n }\n`\n\ninterface StyledButtonProps {\n disabled: boolean\n $block: boolean\n $loading: boolean\n $size: ButtonSizes\n $variant: ButtonVariant\n}\n\nexport function getButtonStyles(\n block: boolean,\n disabled: boolean,\n loading: boolean,\n size: ButtonSizes,\n variant: ButtonVariant\n) {\n return css`\n ${getTypographyIntent(typographySizes[size])}\n\n ${focusable}\n\n /**\n TODO: This might be a new pattern for focus states,\n but leaving it just here for now\n */\n ${variant === 'UNSAFE_helixNav' &&\n css`\n &.focus,\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ${colors.blue70};\n }\n `}\n\n ${getColors(loading, variant)}\n\n align-items: center;\n border-radius: ${borderRadius.md}px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n flex-direction: row;\n flex-shrink: 0;\n font-family: inherit;\n font-weight: ${typographyWeights.semibold};\n height: ${heights[size]}px;\n justify-content: center;\n margin: 0;\n overflow: hidden;\n padding: 0 ${paddingX[size]}px;\n position: relative;\n pointer-events: ${disabled || loading ? 'none' : 'inherit'};\n text-overflow: ellipsis;\n user-select: ${disabled || loading ? 'none' : 'inherit'};\n vertical-align: middle;\n white-space: nowrap;\n width: ${block && '100%'};\n\n [data-icon-prop='true'] {\n pointer-events: none;\n height: ${size === 'sm' ? 16 : 24}px;\n width: ${size === 'sm' ? 16 : 24}px;\n }\n\n ${loading &&\n css`\n ${StyledContent} {\n pointer-events: none;\n visibility: hidden;\n }\n\n ${StyledSpinner} {\n display: block;\n }\n `}\n `\n}\n\nexport const StyledButton = styled.button<StyledButtonProps>`\n ${({ $block, disabled, $loading, $size, $variant }) =>\n getButtonStyles($block, disabled, $loading, $size, $variant)}\n`\n\ninterface StyledLinkButtonProps\n extends Pick<StyledButtonProps, '$block' | '$size' | '$variant'> {\n $disabled: boolean\n}\n\nexport const StyledLinkButton = styled.a<StyledLinkButtonProps>`\n &,\n &:hover {\n text-decoration: none;\n }\n\n ${({ $block, $disabled, $size, $variant }) =>\n getButtonStyles($block, $disabled, false, $size, $variant)}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,kBAAkB,EAAEC,OAAO,QAAQ,oBAAoB;AAChE,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SAASC,mBAAmB,EAAEC,iBAAiB,QAAQ,eAAe;AAEtE,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,OAAO,QAAQ,oBAAoB;AA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O,GAAG,MAAM,GAAG,SAAS,EAG9CY,KAAK,IAAI,MAAM,EAIZJ,IAAI,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE,EACxBA,IAAI,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE,EAGhCR,OAAO,IACT/C,GAAG,uEACCgD,aAAa,EAKbK,aAAa,CAGhB;AAEL;AAEA,OAAO,IAAMS,YAAY,gBAAG/D,MAAM,CAACgE,MAAM,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACrC,UAAAY,KAAA;EAAA,IAAGC,MAAM,GAAAD,KAAA,CAANC,MAAM;IAAE3C,QAAQ,GAAA0C,KAAA,CAAR1C,QAAQ;IAAE4C,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,KAAA,CAALG,KAAK;IAAEC,QAAQ,GAAAJ,KAAA,CAARI,QAAQ;EAAA,OAC9CV,eAAe,CAACO,MAAM,EAAE3C,QAAQ,EAAE4C,QAAQ,EAAEC,KAAK,EAAEC,QAAQ,CAAC;AAAA,EAC/D;AAOD,OAAO,IAAMC,gBAAgB,gBAAGtE,MAAM,CAACuE,CAAC,CAAApB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6CAMpC,UAAAmB,KAAA;EAAA,IAAGN,MAAM,GAAAM,KAAA,CAANN,MAAM;IAAEO,SAAS,GAAAD,KAAA,CAATC,SAAS;IAAEL,KAAK,GAAAI,KAAA,CAALJ,KAAK;IAAEC,QAAQ,GAAAG,KAAA,CAARH,QAAQ;EAAA,OACrCV,eAAe,CAACO,MAAM,EAAEO,SAAS,EAAE,KAAK,EAAEL,KAAK,EAAEC,QAAQ,CAAC;AAAA,EAC7D"}
@@ -20,6 +20,8 @@ export interface ButtonProps extends ButtonAttributes {
20
20
  /**
21
21
  * The icon to display on the right side of the label
22
22
  * @since 10.19.0
23
+ * @deprecatedSince 12.18.0
24
+ * @deprecated iconRight has been deprecated and will be removed in a future version
23
25
  */
24
26
  iconRight?: React.ReactNode;
25
27
  /**
@@ -35,6 +37,8 @@ export interface ButtonProps extends ButtonAttributes {
35
37
  /**
36
38
  * The variant of the button
37
39
  * @since 10.27.2
40
+ * @deprecatedSince 12.18.0
41
+ * @deprecated variant "tertiaryContrast" has been deprecated and will be removed in a future version
38
42
  */
39
43
  variant?: ButtonVariant;
40
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.js","names":[],"sources":["../../src/Button/Button.types.ts"],"sourcesContent":["import type { AnchorAttributes, ButtonAttributes } from '../_utils/types'\n\nexport type ButtonSizes = 'sm' | 'md' | 'lg'\n\nexport type ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiaryContrast'\n | 'UNSAFE_helixNav'\n\nexport type SizingObject = { [key in ButtonSizes]: number }\n\nexport interface ButtonProps extends ButtonAttributes {\n /**\n * Sets the button to be 100% of the width of its parent\n * @since 10.19.0\n */\n block?: boolean\n /**\n * string icons have been deprecated, please pass a component from `@procore/core-icons`\n * The icon to display on the left side of the label\n * @since 10.19.0\n */\n icon?: React.ReactNode\n /**\n * The icon to display on the right side of the label\n * @since 10.19.0\n */\n iconRight?: React.ReactNode\n /**\n * Shows the button spinner\n * @since 10.19.0\n */\n loading?: boolean\n /**\n * The size of the button\n * @since 10.19.0\n */\n size?: ButtonSizes\n /**\n * The variant of the button\n * @since 10.27.2\n */\n variant?: ButtonVariant\n}\n\nexport interface LinkButtonProps\n extends AnchorAttributes,\n Pick<\n ButtonProps,\n 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'\n > {\n /**\n * Use role link when the link has destination. Use role button when it is used for POST.\n * @default 'button'\n */\n role?: 'link' | 'button'\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Button.types.js","names":[],"sources":["../../src/Button/Button.types.ts"],"sourcesContent":["import type { AnchorAttributes, ButtonAttributes } from '../_utils/types'\n\nexport type ButtonSizes = 'sm' | 'md' | 'lg'\n\nexport type ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiaryContrast'\n | 'UNSAFE_helixNav'\n\nexport type SizingObject = { [key in ButtonSizes]: number }\n\nexport interface ButtonProps extends ButtonAttributes {\n /**\n * Sets the button to be 100% of the width of its parent\n * @since 10.19.0\n */\n block?: boolean\n /**\n * string icons have been deprecated, please pass a component from `@procore/core-icons`\n * The icon to display on the left side of the label\n * @since 10.19.0\n */\n icon?: React.ReactNode\n /**\n * The icon to display on the right side of the label\n * @since 10.19.0\n * @deprecatedSince 12.18.0\n * @deprecated iconRight has been deprecated and will be removed in a future version\n */\n iconRight?: React.ReactNode\n /**\n * Shows the button spinner\n * @since 10.19.0\n */\n loading?: boolean\n /**\n * The size of the button\n * @since 10.19.0\n */\n size?: ButtonSizes\n /**\n * The variant of the button\n * @since 10.27.2\n * @deprecatedSince 12.18.0\n * @deprecated variant \"tertiaryContrast\" has been deprecated and will be removed in a future version\n */\n variant?: ButtonVariant\n}\n\nexport interface LinkButtonProps\n extends AnchorAttributes,\n Pick<\n ButtonProps,\n 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'\n > {\n /**\n * Use role link when the link has destination. Use role button when it is used for POST.\n * @default 'button'\n */\n role?: 'link' | 'button'\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.js","names":["ChevronLeft","ChevronRight","getStartDayOfTheWeek","isAfter","startOfDay","range","React","Select","SelectBase","useDateTime","useI18nContext","addSubcomponents","addMonths","format","getDates","getDayOfWeekLabel","getMonth","getMonthLabel","getMonthOptions","getRows","getYear","getYearOptions","isSameDay","isSameMonth","isWithinRange","subMonths","updateMonth","updateYear","getFormatterLocale","StyledContainer","StyledDayCell","StyledDayHeaderCell","StyledNavigation","StyledPaginator","StyledSelect","StyledWeekRow","noop","returnFalse","Body","_ref","dueDateTime_","dueDateTime","displayDate_","displayDate","disabledDate","_ref$onSelect","onSelect","onSelect_","selectedEnd_","selectedEnd","selectedStart_","selectedStart","props","_objectWithoutProperties","_excluded","dateTime","shiftUtcToZonedTime","newDate","_useI18nContext","locale","formatterLocale","dates","day","shiftZonedTimeToUtc","createElement","Fragment","Weekdays","map","row","Week","key","concat","Day","_extends","timeZone","undefined","disabled","isCurrentMonth","isRangeEnd","isRangeStart","isToday","onClick","selected","style","color","Container","forwardRef","ref","_ref2","_ref2$disabled","_ref2$isCurrentMonth","_ref2$isRangeEnd","_ref2$isRangeStart","_ref2$isToday","_ref2$selected","_excluded2","$disabled","$selected","$isCurrentMonth","$isRangeStart","$isRangeEnd","$isToday","Navigation","Next","_ref3","_objectDestructuringEmpty","icon","variant","Prev","_useI18nContext2","startDayOfWeek","_ref4","children","label","_ref4$options","options","_ref4$selected","_excluded3","block","selection","item","optionsRef","tabIndex","_ref5","value","Option","Calendar_","Calendar","_ref6","_ref6$disabledDate","monthRef","_ref6$onNavigate","onNavigate","_ref6$onSelect","yearRef","_excluded4","i18n","_useDateTime","monthSelectRef","createRef","yearSelectRef","nextNavigationDateLabel","t","monthYear","month","year","prevNavigationDateLabel","String","padStart","displayName"],"sources":["../../src/Calendar/Calendar.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight } from '@procore/core-icons/dist'\nimport { getStartDayOfTheWeek } from '@procore/globalization-toolkit'\nimport { isAfter, startOfDay } from 'date-fns'\nimport { range } from 'ramda'\nimport React from 'react'\nimport { Select as SelectBase } from '../Select/Select'\nimport { useDateTime } from '../_hooks/DateTime'\nimport type { Locale } from '../_hooks/I18n'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n addMonths,\n format,\n getDates,\n getDayOfWeekLabel,\n getMonth,\n getMonthLabel,\n getMonthOptions,\n getRows,\n getYear,\n getYearOptions,\n isSameDay,\n isSameMonth,\n isWithinRange,\n subMonths,\n updateMonth,\n updateYear,\n} from '../_utils/CalendarHelpers'\n\nimport { getFormatterLocale } from '../_utils/i18n'\nimport {\n StyledContainer,\n StyledDayCell,\n StyledDayHeaderCell,\n StyledNavigation,\n StyledPaginator,\n StyledSelect,\n StyledWeekRow,\n} from './Calendar.styles'\nimport type {\n BodyProps,\n CalendarContainerProps,\n CalendarProps,\n DayProps,\n NavigationProps,\n NextPrevProps,\n SelectProps,\n WeekdaysProps,\n WeekProps,\n} from './Calendar.types'\n\nfunction noop() {}\n\nfunction returnFalse() {\n return false\n}\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport function Body({\n dueDateTime: dueDateTime_,\n displayDate: displayDate_,\n disabledDate,\n onSelect: onSelect_ = noop,\n selectedEnd: selectedEnd_,\n selectedStart: selectedStart_,\n ...props\n}: BodyProps) {\n const dateTime = useDateTime()\n\n const displayDate =\n dateTime.shiftUtcToZonedTime(displayDate_) || dateTime.newDate()\n\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n\n const dates = getDates(displayDate, formatterLocale)\n\n const dueDateTime = dateTime.shiftUtcToZonedTime(dueDateTime_)\n\n const selectedEnd: CalendarProps['selectedEnd'] =\n dateTime.shiftUtcToZonedTime(selectedEnd_)\n\n const selectedStart: CalendarProps['selectedStart'] =\n dateTime.shiftUtcToZonedTime(selectedStart_)\n\n const onSelect: CalendarProps['onSelect'] = (day) => {\n onSelect_(dateTime.shiftZonedTimeToUtc(day, 'Calendar Body onSelect'))\n }\n\n return (\n <>\n <Weekdays />\n {getRows(dates).map((row) => (\n <Week key={`week-${format(row[0], 'yyyy-MMMM-dddd')}`}>\n {row.map((day) => (\n <Day\n aria-label={dateTime.format(day, 'weekday-date', {\n timeZone: undefined,\n })}\n disabled={\n disabledDate &&\n disabledDate(day, startOfDay(dateTime.newDate()))\n }\n isCurrentMonth={isSameMonth(day, displayDate)}\n isRangeEnd={selectedEnd && isSameDay(day, selectedEnd)}\n isRangeStart={selectedStart && isSameDay(day, selectedStart)}\n isToday={isSameDay(day, startOfDay(dateTime.newDate()))}\n key={`day-${format(day, 'yyyy-MMMM-dddd')}`}\n onClick={() => onSelect(day)}\n selected={isWithinRange(day, selectedStart, selectedEnd)}\n {...props}\n >\n {format(day, 'd')}\n {dueDateTime && isSameDay(day, startOfDay(dueDateTime)) && (\n <div>\n <em\n style={\n isAfter(dateTime.newDate(), dueDateTime)\n ? {\n color: 'red',\n }\n : undefined\n }\n >\n {dateTime.format(dueDateTime_!, 'time')}\n </em>\n </div>\n )}\n </Day>\n ))}\n </Week>\n ))}\n </>\n )\n}\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Container = React.forwardRef<\n HTMLDivElement,\n CalendarContainerProps\n>(function Container(props, ref) {\n return <StyledContainer ref={ref} {...props} />\n})\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Day = React.forwardRef<HTMLDivElement, DayProps>(function Day(\n {\n disabled = false,\n isCurrentMonth = false,\n isRangeEnd = false,\n isRangeStart = false,\n isToday = false,\n onClick,\n selected = false,\n ...props\n },\n ref\n) {\n return (\n <StyledDayCell\n aria-current={isToday ? 'date' : undefined}\n aria-disabled={disabled || undefined}\n aria-selected={selected || undefined}\n {...props}\n onClick={disabled ? undefined : onClick}\n ref={ref}\n $disabled={disabled}\n $selected={selected}\n $isCurrentMonth={isCurrentMonth}\n $isRangeStart={isRangeStart}\n $isRangeEnd={isRangeEnd}\n $isToday={isToday}\n />\n )\n})\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Navigation = React.forwardRef<HTMLDivElement, NavigationProps>(\n function Navigation(props, ref) {\n return <StyledNavigation {...props} ref={ref} />\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Next = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Next({ ...props }, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronRight />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Prev = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Prev(props, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronLeft />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Week = React.forwardRef<HTMLDivElement, WeekProps>(function Week(\n props,\n ref\n) {\n return <StyledWeekRow ref={ref} {...props} />\n})\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Weekdays = React.forwardRef<HTMLDivElement, WeekdaysProps>(\n function Weekdays(props, ref) {\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n const startDayOfWeek: number = getStartDayOfTheWeek(formatterLocale)\n\n return (\n <StyledWeekRow ref={ref} aria-hidden=\"true\" {...props}>\n {range(startDayOfWeek, startDayOfWeek + 7).map((day) => (\n <StyledDayHeaderCell key={`day-${day}`}>\n {getDayOfWeekLabel(day, formatterLocale)}\n </StyledDayHeaderCell>\n ))}\n </StyledWeekRow>\n )\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Select = React.forwardRef<HTMLDivElement, SelectProps>(\n function Select(\n { children, label, onSelect, options = [], selected = '', ...props },\n ref\n ) {\n return (\n <StyledSelect>\n <SelectBase\n {...props}\n block={true}\n label={label}\n onSelect={(selection) => {\n onSelect(selection.item)\n }}\n optionsRef={ref as React.RefObject<HTMLDivElement>}\n tabIndex={0}\n >\n {options.map(({ value, label }) => {\n return (\n <SelectBase.Option\n value={value}\n selected={value === selected}\n key={value}\n >\n {label}\n </SelectBase.Option>\n )\n })}\n </SelectBase>\n </StyledSelect>\n )\n }\n)\n\nexport const Calendar_ = React.forwardRef<HTMLDivElement, CalendarProps>(\n function Calendar(\n {\n dueDateTime,\n displayDate: displayDate_,\n disabledDate = returnFalse,\n monthRef,\n onNavigate = noop,\n onSelect = noop,\n selectedEnd,\n selectedStart,\n yearRef,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const dateTime = useDateTime()\n const formatterLocale = getFormatterLocale(i18n.locale) as Locale\n const { newDate, shiftUtcToZonedTime } = useDateTime()\n const monthSelectRef = monthRef || React.createRef()\n const yearSelectRef = yearRef || React.createRef()\n\n const displayDate: CalendarProps['displayDate'] =\n shiftUtcToZonedTime(displayDate_) || newDate()\n\n const nextNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(addMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n const prevNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(subMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n\n return (\n <Container {...props} ref={ref}>\n <Navigation>\n <Prev\n aria-label={prevNavigationDateLabel}\n onClick={() => onNavigate(subMonths(displayDate, 1))}\n />\n <Select\n options={getMonthOptions(formatterLocale)}\n label={getMonthLabel(getMonth(displayDate), formatterLocale)}\n onSelect={(value) => {\n onNavigate(updateMonth(displayDate, value))\n }}\n selected={getMonth(displayDate)}\n ref={monthSelectRef}\n />\n <Select\n options={getYearOptions(displayDate)}\n label={String(getYear(displayDate)).padStart(4, '0')}\n onSelect={(value) => {\n onNavigate(updateYear(displayDate, value))\n }}\n selected={getYear(displayDate)}\n ref={yearSelectRef}\n />\n <Next\n aria-label={nextNavigationDateLabel}\n onClick={() => onNavigate(addMonths(displayDate, 1))}\n />\n </Navigation>\n <Body\n dueDateTime={dueDateTime}\n // intentionally pass unshifted value. next component's responsibility to manage\n displayDate={displayDate_}\n disabledDate={disabledDate}\n onSelect={onSelect}\n selectedEnd={selectedEnd}\n selectedStart={selectedStart}\n />\n </Container>\n )\n }\n)\n\nCalendar_.displayName = 'Calendar'\n\nBody.displayName = 'Calendar.Body'\n\nContainer.displayName = 'Calendar.Container'\n\nDay.displayName = 'Calendar.Day'\n\nNavigation.displayName = 'Calendar.Navigation'\n\nNext.displayName = 'Calendar.Next'\n\nPrev.displayName = 'Calendar.Prev'\n\nSelect.displayName = 'Calendar.Select'\n\nWeek.displayName = 'Calendar.Week'\n\nWeekdays.displayName = 'Calendar.Weekdays'\n\nexport const Calendar = addSubcomponents(\n {\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Body,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Container,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Day,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Navigation,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Next,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Prev,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Select,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Week,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Weekdays,\n },\n Calendar_\n)\n"],"mappings":";;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,OAAO,EAAEC,UAAU,QAAQ,UAAU;AAC9C,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,SAASC,WAAW,QAAQ,oBAAoB;AAEhD,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,iBAAiB,EACjBC,QAAQ,EACRC,aAAa,EACbC,eAAe,EACfC,OAAO,EACPC,OAAO,EACPC,cAAc,EACdC,SAAS,EACTC,WAAW,EACXC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,UAAU,QACL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I,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIrG,MAAM,EAANA,MAAM;EACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI8D,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIH,QAAQ,EAARA;AACF,CAAC,EACD4D,SACF,CAAC"}
1
+ {"version":3,"file":"Calendar.js","names":["ChevronLeft","ChevronRight","getStartDayOfTheWeek","isAfter","startOfDay","range","React","Select","SelectBase","useDateTime","useI18nContext","addSubcomponents","addMonths","format","getDates","getDayOfWeekLabel","getMonth","getMonthLabel","getMonthOptions","getRows","getYear","getYearOptions","isSameDay","isSameMonth","isWithinRange","subMonths","updateMonth","updateYear","getFormatterLocale","StyledContainer","StyledDayCell","StyledDayHeaderCell","StyledNavigation","StyledPaginator","StyledSelect","StyledWeekRow","noop","returnFalse","Body","_ref","dueDateTime_","dueDateTime","displayDate_","displayDate","disabledDate","_ref$onSelect","onSelect","onSelect_","selectedEnd_","selectedEnd","selectedStart_","selectedStart","props","_objectWithoutProperties","_excluded","dateTime","shiftUtcToZonedTime","newDate","_useI18nContext","locale","formatterLocale","dates","day","shiftZonedTimeToUtc","createElement","Fragment","Weekdays","map","row","Week","key","concat","Day","_extends","timeZone","undefined","disabled","isCurrentMonth","isRangeEnd","isRangeStart","isToday","onClick","selected","style","color","Container","forwardRef","ref","_ref2","_ref2$disabled","_ref2$isCurrentMonth","_ref2$isRangeEnd","_ref2$isRangeStart","_ref2$isToday","_ref2$selected","_excluded2","$disabled","$selected","$isCurrentMonth","$isRangeStart","$isRangeEnd","$isToday","Navigation","Next","_ref3","_objectDestructuringEmpty","icon","variant","Prev","_useI18nContext2","startDayOfWeek","_ref4","children","label","_ref4$options","options","_ref4$selected","_excluded3","block","selection","item","optionsRef","tabIndex","_ref5","value","Option","Calendar_","Calendar","_ref6","_ref6$disabledDate","monthRef","_ref6$onNavigate","onNavigate","_ref6$onSelect","yearRef","_excluded4","i18n","_useDateTime","monthSelectRef","createRef","yearSelectRef","nextNavigationDateLabel","t","monthYear","month","year","prevNavigationDateLabel","String","padStart","displayName"],"sources":["../../src/Calendar/Calendar.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight } from '@procore/core-icons/dist'\nimport { getStartDayOfTheWeek } from '@procore/globalization-toolkit'\nimport { isAfter, startOfDay } from 'date-fns'\nimport { range } from 'ramda'\nimport React from 'react'\nimport { Select as SelectBase } from '../Select/Select'\nimport { useDateTime } from '../_hooks/DateTime'\nimport type { Locale } from '../_hooks/I18n'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n addMonths,\n format,\n getDates,\n getDayOfWeekLabel,\n getMonth,\n getMonthLabel,\n getMonthOptions,\n getRows,\n getYear,\n getYearOptions,\n isSameDay,\n isSameMonth,\n isWithinRange,\n subMonths,\n updateMonth,\n updateYear,\n} from '../_utils/CalendarHelpers'\n\nimport { getFormatterLocale } from '../_utils/i18n'\nimport {\n StyledContainer,\n StyledDayCell,\n StyledDayHeaderCell,\n StyledNavigation,\n StyledPaginator,\n StyledSelect,\n StyledWeekRow,\n} from './Calendar.styles'\nimport type {\n BodyProps,\n CalendarContainerProps,\n CalendarProps,\n DayProps,\n NavigationProps,\n NextPrevProps,\n SelectProps,\n WeekdaysProps,\n WeekProps,\n} from './Calendar.types'\n\nfunction noop() {}\n\nfunction returnFalse() {\n return false\n}\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport function Body({\n dueDateTime: dueDateTime_,\n displayDate: displayDate_,\n disabledDate,\n onSelect: onSelect_ = noop,\n selectedEnd: selectedEnd_,\n selectedStart: selectedStart_,\n ...props\n}: BodyProps) {\n const dateTime = useDateTime()\n\n const displayDate =\n dateTime.shiftUtcToZonedTime(displayDate_) || dateTime.newDate()\n\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n\n const dates = getDates(displayDate, formatterLocale)\n\n const dueDateTime = dateTime.shiftUtcToZonedTime(dueDateTime_)\n\n const selectedEnd: CalendarProps['selectedEnd'] =\n dateTime.shiftUtcToZonedTime(selectedEnd_)\n\n const selectedStart: CalendarProps['selectedStart'] =\n dateTime.shiftUtcToZonedTime(selectedStart_)\n\n const onSelect: CalendarProps['onSelect'] = (day) => {\n onSelect_(dateTime.shiftZonedTimeToUtc(day, 'Calendar Body onSelect'))\n }\n\n return (\n <>\n <Weekdays />\n {getRows(dates).map((row) => (\n <Week key={`week-${format(row[0], 'yyyy-MMMM-dddd')}`}>\n {row.map((day) => (\n <Day\n aria-label={dateTime.format(day, 'weekday-date', {\n timeZone: undefined,\n })}\n disabled={\n disabledDate &&\n disabledDate(day, startOfDay(dateTime.newDate()))\n }\n isCurrentMonth={isSameMonth(day, displayDate)}\n isRangeEnd={selectedEnd && isSameDay(day, selectedEnd)}\n isRangeStart={selectedStart && isSameDay(day, selectedStart)}\n isToday={isSameDay(day, startOfDay(dateTime.newDate()))}\n key={`day-${format(day, 'yyyy-MMMM-dddd')}`}\n onClick={() => onSelect(day)}\n selected={isWithinRange(day, selectedStart, selectedEnd)}\n {...props}\n >\n {format(day, 'd')}\n {dueDateTime && isSameDay(day, startOfDay(dueDateTime)) && (\n <div>\n <em\n style={\n isAfter(dateTime.newDate(), dueDateTime)\n ? {\n color: 'red',\n }\n : undefined\n }\n >\n {dateTime.format(dueDateTime_!, 'time')}\n </em>\n </div>\n )}\n </Day>\n ))}\n </Week>\n ))}\n </>\n )\n}\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Container = React.forwardRef<\n HTMLDivElement,\n CalendarContainerProps\n>(function Container(props, ref) {\n return <StyledContainer ref={ref} {...props} />\n})\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Day = React.forwardRef<HTMLDivElement, DayProps>(function Day(\n {\n disabled = false,\n isCurrentMonth = false,\n isRangeEnd = false,\n isRangeStart = false,\n isToday = false,\n onClick,\n selected = false,\n ...props\n },\n ref\n) {\n return (\n <StyledDayCell\n aria-current={isToday ? 'date' : undefined}\n aria-disabled={disabled || undefined}\n aria-selected={selected || undefined}\n {...props}\n onClick={disabled ? undefined : onClick}\n ref={ref}\n $disabled={disabled}\n $selected={selected}\n $isCurrentMonth={isCurrentMonth}\n $isRangeStart={isRangeStart}\n $isRangeEnd={isRangeEnd}\n $isToday={isToday}\n />\n )\n})\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Navigation = React.forwardRef<HTMLDivElement, NavigationProps>(\n function Navigation(props, ref) {\n return <StyledNavigation {...props} ref={ref} />\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Next = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Next({ ...props }, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronRight />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Prev = React.forwardRef<HTMLButtonElement, NextPrevProps>(\n function Prev(props, ref) {\n return (\n <StyledPaginator\n {...props}\n ref={ref}\n icon={<ChevronLeft />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Week = React.forwardRef<HTMLDivElement, WeekProps>(function Week(\n props,\n ref\n) {\n return <StyledWeekRow ref={ref} {...props} />\n})\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Weekdays = React.forwardRef<HTMLDivElement, WeekdaysProps>(\n function Weekdays(props, ref) {\n const { locale } = useI18nContext()\n const formatterLocale = getFormatterLocale(locale) as Locale\n const startDayOfWeek: number = getStartDayOfTheWeek(formatterLocale)\n\n return (\n <StyledWeekRow ref={ref} aria-hidden=\"true\" {...props}>\n {range(startDayOfWeek, startDayOfWeek + 7).map((day) => (\n <StyledDayHeaderCell key={`day-${day}`}>\n {getDayOfWeekLabel(day, formatterLocale)}\n </StyledDayHeaderCell>\n ))}\n </StyledWeekRow>\n )\n }\n)\n\n/**\n * @parent Calendar\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release,\n * please use the parent as a self closing tag.\n *\n * AFTER `<Calendar onSelect />`\n */\nexport const Select = React.forwardRef<HTMLDivElement, SelectProps>(\n function Select(\n { children, label, onSelect, options = [], selected = '', ...props },\n ref\n ) {\n return (\n <StyledSelect>\n <SelectBase\n {...props}\n block={true}\n label={label}\n onSelect={(selection) => {\n onSelect(selection.item)\n }}\n optionsRef={ref as React.RefObject<HTMLDivElement>}\n tabIndex={0}\n >\n {options.map(({ value, label }) => {\n return (\n <SelectBase.Option\n value={value}\n selected={value === selected}\n key={value}\n >\n {label}\n </SelectBase.Option>\n )\n })}\n </SelectBase>\n </StyledSelect>\n )\n }\n)\n\nexport const Calendar_ = React.forwardRef<HTMLDivElement, CalendarProps>(\n function Calendar(\n {\n dueDateTime,\n displayDate: displayDate_,\n disabledDate = returnFalse,\n monthRef,\n onNavigate = noop,\n onSelect = noop,\n selectedEnd,\n selectedStart,\n yearRef,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const dateTime = useDateTime()\n const formatterLocale = getFormatterLocale(i18n.locale) as Locale\n const { newDate, shiftUtcToZonedTime } = useDateTime()\n const monthSelectRef = monthRef || React.createRef()\n const yearSelectRef = yearRef || React.createRef()\n\n const displayDate: CalendarProps['displayDate'] =\n shiftUtcToZonedTime(displayDate_) || newDate()\n\n const nextNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(addMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n const prevNavigationDateLabel = i18n.t('core.calendar.navigationLabel', {\n monthYear: dateTime.format(subMonths(displayDate, 1), 'date', {\n month: 'long',\n year: 'numeric',\n day: undefined,\n }),\n })\n\n return (\n <Container {...props} ref={ref}>\n <Navigation>\n <Prev\n aria-label={prevNavigationDateLabel}\n onClick={() => onNavigate(subMonths(displayDate, 1))}\n />\n <Select\n options={getMonthOptions(formatterLocale)}\n label={getMonthLabel(getMonth(displayDate), formatterLocale)}\n onSelect={(value) => {\n onNavigate(updateMonth(displayDate, value))\n }}\n selected={getMonth(displayDate)}\n ref={monthSelectRef}\n />\n <Select\n options={getYearOptions(displayDate)}\n label={String(getYear(displayDate)).padStart(4, '0')}\n onSelect={(value) => {\n onNavigate(updateYear(displayDate, value))\n }}\n selected={getYear(displayDate)}\n ref={yearSelectRef}\n />\n <Next\n aria-label={nextNavigationDateLabel}\n onClick={() => onNavigate(addMonths(displayDate, 1))}\n />\n </Navigation>\n <Body\n dueDateTime={dueDateTime}\n // intentionally pass unshifted value. next component's responsibility to manage\n displayDate={displayDate_}\n disabledDate={disabledDate}\n onSelect={onSelect}\n selectedEnd={selectedEnd}\n selectedStart={selectedStart}\n />\n </Container>\n )\n }\n)\n\nCalendar_.displayName = 'Calendar'\n\nBody.displayName = 'Calendar.Body'\n\nContainer.displayName = 'Calendar.Container'\n\nDay.displayName = 'Calendar.Day'\n\nNavigation.displayName = 'Calendar.Navigation'\n\nNext.displayName = 'Calendar.Next'\n\nPrev.displayName = 'Calendar.Prev'\n\nSelect.displayName = 'Calendar.Select'\n\nWeek.displayName = 'Calendar.Week'\n\nWeekdays.displayName = 'Calendar.Weekdays'\n\nexport const Calendar = addSubcomponents(\n {\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Body,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Container,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Day,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Navigation,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Next,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Prev,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Select,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Week,\n /**\n * @deprecatedSince 11.6.0\n * @deprecated Subcomponents intended for internal library development. Export will be removed in a future release.\n *\n AFTER\n ```\n <Calendar onSelect />\n ```\n */\n Weekdays,\n },\n Calendar_\n)\n"],"mappings":";;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,OAAO,EAAEC,UAAU,QAAQ,UAAU;AAC9C,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,SAASC,WAAW,QAAQ,oBAAoB;AAEhD,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,iBAAiB,EACjBC,QAAQ,EACRC,aAAa,EACbC,eAAe,EACfC,OAAO,EACPC,OAAO,EACPC,cAAc,EACdC,SAAS,EACTC,WAAW,EACXC,aAAa,EACbC,SAAS,EACTC,WAAW,EACXC,UAAU,QACL,2BAA2B;AAElC,SAASC,kBAAkB,QAAQ,gBAAgB;AACnD,SACEC,eAAe,EACfC,aAAa,EACbC,mBAAmB,EACnBC,gBAAgB,EAChBC,eAAe,EACfC,YAAY,EACZC,aAAa,QACR,mBAAmB;AAa1B,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,SAASC,WAAWA,CAAA,EAAG;EACrB,OAAO,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAAAC,IAAA,EAQN;EAAA,IAPCC,YAAY,GAAAD,IAAA,CAAzBE,WAAW;IACEC,YAAY,GAAAH,IAAA,CAAzBI,WAAW;IACXC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IAAAC,aAAA,GAAAN,IAAA,CACZO,QAAQ;IAAEC,SAAS,GAAAF,aAAA,cAAGT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G,CAAC6E,WAAW,GAAG,cAAc;AAEhC/C,UAAU,CAAC+C,WAAW,GAAG,qBAAqB;AAE9C9C,IAAI,CAAC8C,WAAW,GAAG,eAAe;AAElCzC,IAAI,CAACyC,WAAW,GAAG,eAAe;AAElC9I,MAAM,CAAC8I,WAAW,GAAG,iBAAiB;AAEtChF,IAAI,CAACgF,WAAW,GAAG,eAAe;AAElCnF,QAAQ,CAACmF,WAAW,GAAG,mBAAmB;AAE1C,OAAO,IAAMtB,QAAQ,GAAGpH,gBAAgB,CACtC;EACE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI2B,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI+C,SAAS,EAATA,SAAS;EACT;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIb,GAAG,EAAHA,GAAG;EACH;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI8B,UAAU,EAAVA,UAAU;EACV;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIK,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIrG,MAAM,EAANA,MAAM;EACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI8D,IAAI,EAAJA,IAAI;EACJ;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIH,QAAQ,EAARA;AACF,CAAC,EACD4D,SACF,CAAC"}
@@ -8,31 +8,31 @@ var cellSize = 36; // TODO one-off size
8
8
 
9
9
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledContainer",
11
- componentId: "core-12_17_6__sc-1kkl86t-0"
11
+ componentId: "core-12_17_7__sc-1kkl86t-0"
12
12
  })(["", ";display:inline-flex;flex-direction:column;padding:", "px ", "px ", "px;"], getTypographyIntent('small'), spacing.lg, spacing.md, spacing.md);
13
13
  export var StyledPaginator = /*#__PURE__*/styled(Button).withConfig({
14
14
  displayName: "StyledPaginator",
15
- componentId: "core-12_17_6__sc-1kkl86t-1"
15
+ componentId: "core-12_17_7__sc-1kkl86t-1"
16
16
  })(["flex:0 0 auto;"]);
17
17
  export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledSelect",
19
- componentId: "core-12_17_6__sc-1kkl86t-2"
19
+ componentId: "core-12_17_7__sc-1kkl86t-2"
20
20
  })(["display:inline-flex;flex:1 1 0;margin-left:", "px;> div{font-size:12px;}"], spacing.sm);
21
21
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledNavigation",
23
- componentId: "core-12_17_6__sc-1kkl86t-3"
23
+ componentId: "core-12_17_7__sc-1kkl86t-3"
24
24
  })(["display:inline-flex;margin-bottom:", "px;", " + ", ",", " + ", "{margin-left:", "px;}"], spacing.sm, StyledPaginator, StyledSelect, StyledSelect, StyledPaginator, spacing.sm);
25
25
  export var StyledCell = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledCell",
27
- componentId: "core-12_17_6__sc-1kkl86t-4"
27
+ componentId: "core-12_17_7__sc-1kkl86t-4"
28
28
  })(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;"], cellSize, cellSize);
29
29
  export var StyledDayHeaderCell = /*#__PURE__*/styled(StyledCell).withConfig({
30
30
  displayName: "StyledDayHeaderCell",
31
- componentId: "core-12_17_6__sc-1kkl86t-5"
31
+ componentId: "core-12_17_7__sc-1kkl86t-5"
32
32
  })(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
33
33
  export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
34
34
  displayName: "StyledDayCell",
35
- componentId: "core-12_17_6__sc-1kkl86t-6"
35
+ componentId: "core-12_17_7__sc-1kkl86t-6"
36
36
  })(["", ""], function (_ref) {
37
37
  var _ref$$disabled = _ref.$disabled,
38
38
  $disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
@@ -55,6 +55,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
55
55
  });
56
56
  export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledWeekRow",
58
- componentId: "core-12_17_6__sc-1kkl86t-7"
58
+ componentId: "core-12_17_7__sc-1kkl86t-7"
59
59
  })(["display:inline-flex;padding-bottom:2px;user-select:none;&:last-child{padding-bottom:0;}", "{&:first-child{border-top-left-radius:", "px;border-bottom-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;border-bottom-right-radius:", "px;}}"], StyledCell, borderRadius.md, borderRadius.md, borderRadius.md, borderRadius.md);
60
60
  //# sourceMappingURL=Calendar.styles.js.map
@@ -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_17_6__sc-2fii7b-0"
7
+ componentId: "core-12_17_7__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;