@procore/core-react 12.2.0 → 12.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/AnchorNavigation/AnchorNavigation.d.ts +6 -6
  2. package/dist/AnchorNavigation/AnchorNavigation.js +22 -33
  3. package/dist/AnchorNavigation/AnchorNavigation.js.map +1 -1
  4. package/dist/AnchorNavigation/AnchorNavigation.styles.d.ts +2 -2
  5. package/dist/AnchorNavigation/AnchorNavigation.styles.js +11 -11
  6. package/dist/AnchorNavigation/AnchorNavigation.styles.js.map +1 -1
  7. package/dist/AnchorNavigation/AnchorNavigation.types.d.ts +7 -0
  8. package/dist/AnchorNavigation/AnchorNavigation.types.js +2 -0
  9. package/dist/AnchorNavigation/AnchorNavigation.types.js.map +1 -0
  10. package/dist/AnchorNavigation/AnchorNavigationProvider.d.ts +23 -0
  11. package/dist/AnchorNavigation/AnchorNavigationProvider.js +177 -0
  12. package/dist/AnchorNavigation/AnchorNavigationProvider.js.map +1 -0
  13. package/dist/Avatar/Avatar.styles.js +5 -5
  14. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  15. package/dist/Badge/Badge.styles.js +2 -2
  16. package/dist/Banner/Banner.styles.js +10 -10
  17. package/dist/Box/Box.styles.js +1 -1
  18. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  19. package/dist/Button/Button.styles.js +5 -5
  20. package/dist/Calendar/Calendar.styles.js +8 -8
  21. package/dist/Card/Card.styles.js +1 -1
  22. package/dist/Checkbox/Checkbox.styles.js +6 -6
  23. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  24. package/dist/ContactItem/ContactItem.styles.js +5 -5
  25. package/dist/Content/Content.styles.js +2 -2
  26. package/dist/DateInput/DateInput.styles.js +6 -6
  27. package/dist/DetailPage/DetailPage.d.ts +4 -3
  28. package/dist/DetailPage/DetailPage.js +50 -10
  29. package/dist/DetailPage/DetailPage.js.map +1 -1
  30. package/dist/DetailPage/DetailPage.styles.js +7 -7
  31. package/dist/DetailPage/DetailPage.types.d.ts +9 -1
  32. package/dist/DetailPage/DetailPage.types.js.map +1 -1
  33. package/dist/Dropdown/Dropdown.styles.js +3 -3
  34. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  35. package/dist/Dropzone/Dropzone.js +1 -1
  36. package/dist/Dropzone/Dropzone.styles.js +9 -9
  37. package/dist/EmptyState/EmptyState.styles.js +6 -6
  38. package/dist/EmptyState/index.d.ts +1 -0
  39. package/dist/EmptyState/index.js +1 -0
  40. package/dist/EmptyState/index.js.map +1 -1
  41. package/dist/Field/Field.styles.js +3 -3
  42. package/dist/FileList/FileList.styles.js +4 -4
  43. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  44. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  45. package/dist/FileSelect/FileSelect.styles.js +2 -2
  46. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  47. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  48. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  49. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  50. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  51. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  52. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  53. package/dist/FileToken/FileToken.styles.js +4 -4
  54. package/dist/FilterToken/FilterToken.styles.js +2 -2
  55. package/dist/FlexList/FlexList.styles.js +1 -1
  56. package/dist/Form/Form.d.ts +2 -0
  57. package/dist/Form/Form.js +20 -2
  58. package/dist/Form/Form.js.map +1 -1
  59. package/dist/Form/Form.styles.js +14 -14
  60. package/dist/Form/StyledFormikForm.styles.d.ts +1 -1
  61. package/dist/Form/StyledFormikForm.styles.js +2 -2
  62. package/dist/Grid/Grid.styles.js +2 -2
  63. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  64. package/dist/Input/Input.styles.js +1 -1
  65. package/dist/Link/Link.styles.js +1 -1
  66. package/dist/ListPage/ListPage.styles.js +8 -8
  67. package/dist/Loader/Loader.styles.js +2 -2
  68. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  69. package/dist/Modal/Modal.styles.js +13 -13
  70. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  71. package/dist/NextMenu/NextMenu.styles.js +3 -3
  72. package/dist/Notation/Notation.js +1 -1
  73. package/dist/NumberInput/NumberInput.styles.js +7 -7
  74. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  75. package/dist/OverlayTrigger/a11yPresets.d.ts +1 -1
  76. package/dist/OverlayTrigger/index.d.ts +1 -1
  77. package/dist/OverlayTrigger/index.js +1 -1
  78. package/dist/OverlayTrigger/index.js.map +1 -1
  79. package/dist/PageLayout/PageLayout.js +8 -10
  80. package/dist/PageLayout/PageLayout.js.map +1 -1
  81. package/dist/PageLayout/PageLayout.styles.js +15 -15
  82. package/dist/PageLayout/PageLayout.types.d.ts +4 -3
  83. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  84. package/dist/Pagination/Pagination.styles.js +5 -5
  85. package/dist/Panel/Panel.styles.js +11 -11
  86. package/dist/Pill/Pill.styles.js +2 -2
  87. package/dist/PillSelect/PillSelect.styles.js +4 -4
  88. package/dist/Popover/Popover.styles.js +2 -2
  89. package/dist/Portal/Portal.styles.js +1 -1
  90. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  91. package/dist/RadioButton/RadioButton.styles.js +3 -3
  92. package/dist/Required/Required.styles.js +3 -3
  93. package/dist/Search/Search.styles.js +5 -5
  94. package/dist/Section/Section.styles.js +6 -6
  95. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  96. package/dist/Select/Select.styles.js +7 -7
  97. package/dist/Select/index.d.ts +1 -1
  98. package/dist/Select/index.js +1 -1
  99. package/dist/Select/index.js.map +1 -1
  100. package/dist/Semantic/Semantic.styles.js +9 -9
  101. package/dist/SettingsPage/SettingsPage.d.ts +54 -0
  102. package/dist/SettingsPage/SettingsPage.js +91 -0
  103. package/dist/SettingsPage/SettingsPage.js.map +1 -0
  104. package/dist/SettingsPage/SettingsPage.types.d.ts +11 -0
  105. package/dist/SettingsPage/SettingsPage.types.js +2 -0
  106. package/dist/SettingsPage/SettingsPage.types.js.map +1 -0
  107. package/dist/SettingsPage/index.d.ts +2 -0
  108. package/dist/SettingsPage/index.js +2 -0
  109. package/dist/SettingsPage/index.js.map +1 -0
  110. package/dist/Slider/Slider.styles.js +5 -5
  111. package/dist/Spinner/Spinner.styles.js +7 -7
  112. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  113. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  114. package/dist/Switch/Switch.styles.js +4 -4
  115. package/dist/Table/Table.styles.js +28 -28
  116. package/dist/TableShelf/TableShelf.styles.js +5 -5
  117. package/dist/Tabs/Tabs.styles.js +8 -8
  118. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  119. package/dist/TextArea/TextArea.styles.js +2 -2
  120. package/dist/TextArea/TextArea.styles.js.map +1 -1
  121. package/dist/TextArea/TextArea.types.d.ts +1 -0
  122. package/dist/TextArea/TextArea.types.js.map +1 -1
  123. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  124. package/dist/Thumbnail/Thumbnail.hooks.d.ts +16 -16
  125. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  126. package/dist/Thumbnail/index.d.ts +1 -1
  127. package/dist/Thumbnail/index.js +1 -0
  128. package/dist/Thumbnail/index.js.map +1 -1
  129. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  130. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  131. package/dist/Tile/Tile.styles.js +8 -8
  132. package/dist/Title/Title.styles.js +7 -7
  133. package/dist/Toast/Toast.styles.js +3 -3
  134. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  135. package/dist/Token/Token.styles.js +3 -3
  136. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  137. package/dist/Tooltip/Tooltip.styles.js +2 -2
  138. package/dist/Tree/Tree.styles.js +9 -9
  139. package/dist/Tree/index.d.ts +1 -0
  140. package/dist/Tree/index.js +1 -0
  141. package/dist/Tree/index.js.map +1 -1
  142. package/dist/Typeahead/Typeahead.styles.js +3 -3
  143. package/dist/Typography/Typography.styles.js +1 -1
  144. package/dist/Typography/Typography.table.story.js +2 -2
  145. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  146. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  147. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  148. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  149. package/dist/_typedoc/Box/Box.types.json +68 -68
  150. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  151. package/dist/_typedoc/Button/Button.types.json +14 -14
  152. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  153. package/dist/_typedoc/Card/Card.types.json +6 -6
  154. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  155. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  156. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  157. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  158. package/dist/_typedoc/DetailPage/DetailPage.types.json +14 -4
  159. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  160. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  161. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  162. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  163. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  164. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  165. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  166. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  167. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  168. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  169. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  170. package/dist/_typedoc/Form/Form.types.json +802 -802
  171. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  172. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  173. package/dist/_typedoc/Input/Input.types.json +2 -2
  174. package/dist/_typedoc/Link/Link.types.json +4 -4
  175. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  176. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  177. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  178. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  179. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  180. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  181. package/dist/_typedoc/NumberInput/NumberInput.types.json +43 -43
  182. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  183. package/dist/_typedoc/PageLayout/PageLayout.types.json +48 -28
  184. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  185. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  186. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  187. package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
  188. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  189. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  190. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  191. package/dist/_typedoc/Required/Required.types.json +5 -5
  192. package/dist/_typedoc/Search/Search.types.json +18 -18
  193. package/dist/_typedoc/Section/Section.types.json +14 -14
  194. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  195. package/dist/_typedoc/Select/Select.types.json +57 -57
  196. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +114 -0
  197. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  198. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  199. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  200. package/dist/_typedoc/Table/Table.types.json +99 -99
  201. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  202. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  203. package/dist/_typedoc/TextArea/TextArea.types.json +4 -4
  204. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  205. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  206. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  207. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  208. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  209. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  210. package/dist/_typedoc/Title/Title.types.json +1 -1
  211. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  212. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  213. package/dist/_typedoc/Token/Token.types.json +4 -4
  214. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  215. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  216. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  217. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  218. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  219. package/dist/_typedoc/_utils/types.json +3 -3
  220. package/dist/_utils/propsTypedoc.d.ts +1 -0
  221. package/dist/_utils/propsTypedoc.js +1 -0
  222. package/dist/_utils/propsTypedoc.js.map +1 -1
  223. package/dist/index.d.ts +8 -0
  224. package/dist/index.js +9 -0
  225. package/dist/index.js.map +1 -1
  226. package/package.json +2 -1
@@ -84,11 +84,11 @@ function getColors(loading, variant) {
84
84
  }
85
85
  export var StyledContent = /*#__PURE__*/styled.span.withConfig({
86
86
  displayName: "StyledContent",
87
- componentId: "core-12_2_0__sc-c5bhwh-0"
87
+ componentId: "core-12_4_0__sc-c5bhwh-0"
88
88
  })(["align-items:center;display:flex;overflow:hidden;"]);
89
89
  export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
90
90
  displayName: "StyledSpinner",
91
- componentId: "core-12_2_0__sc-c5bhwh-1"
91
+ componentId: "core-12_4_0__sc-c5bhwh-1"
92
92
  })(["box-sizing:border-box;display:none;position:absolute;transform:translateZ(0);@media ", "{left:50%;top:50%;", "}"], mediaIE11Hack, function (_ref) {
93
93
  var size = _ref.size;
94
94
  var margin = -1 * (spinnerDimensions[size !== null && size !== void 0 ? size : defaultSpinnerSize] / 2);
@@ -96,14 +96,14 @@ export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
96
96
  });
97
97
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
98
98
  displayName: "StyledLabel",
99
- componentId: "core-12_2_0__sc-c5bhwh-2"
99
+ componentId: "core-12_4_0__sc-c5bhwh-2"
100
100
  })(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
101
101
  function getButtonStyles(block, disabled, loading, size, variant) {
102
102
  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, 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));
103
103
  }
104
104
  export var StyledButton = /*#__PURE__*/styled.button.withConfig({
105
105
  displayName: "StyledButton",
106
- componentId: "core-12_2_0__sc-c5bhwh-3"
106
+ componentId: "core-12_4_0__sc-c5bhwh-3"
107
107
  })(["", ""], function (_ref2) {
108
108
  var $block = _ref2.$block,
109
109
  disabled = _ref2.disabled,
@@ -114,7 +114,7 @@ export var StyledButton = /*#__PURE__*/styled.button.withConfig({
114
114
  });
115
115
  export var StyledLinkButton = /*#__PURE__*/styled.a.withConfig({
116
116
  displayName: "StyledLinkButton",
117
- componentId: "core-12_2_0__sc-c5bhwh-4"
117
+ componentId: "core-12_4_0__sc-c5bhwh-4"
118
118
  })(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
119
119
  var $block = _ref3.$block,
120
120
  $disabled = _ref3.$disabled,
@@ -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_2_0__sc-1kkl86t-0"
11
+ componentId: "core-12_4_0__sc-1kkl86t-0"
12
12
  })(["", ";display:inline-flex;flex-direction:column;padding:", "px ", "px ", "px;"], getTypographyIntent('small'), spacing.lg, spacing.md, spacing.md);
13
13
  export var StyledPaginator = /*#__PURE__*/styled(Button).withConfig({
14
14
  displayName: "StyledPaginator",
15
- componentId: "core-12_2_0__sc-1kkl86t-1"
15
+ componentId: "core-12_4_0__sc-1kkl86t-1"
16
16
  })(["flex:0 0 auto;"]);
17
17
  export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledSelect",
19
- componentId: "core-12_2_0__sc-1kkl86t-2"
19
+ componentId: "core-12_4_0__sc-1kkl86t-2"
20
20
  })(["display:inline-flex;flex:1 1 0;margin-left:", "px;> div{font-size:12px;}"], spacing.sm);
21
21
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledNavigation",
23
- componentId: "core-12_2_0__sc-1kkl86t-3"
23
+ componentId: "core-12_4_0__sc-1kkl86t-3"
24
24
  })(["display:inline-flex;margin-bottom:", "px;", " + ", ",", " + ", "{margin-left:", "px;}"], spacing.sm, StyledPaginator, StyledSelect, StyledSelect, StyledPaginator, spacing.sm);
25
25
  export var StyledCell = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledCell",
27
- componentId: "core-12_2_0__sc-1kkl86t-4"
27
+ componentId: "core-12_4_0__sc-1kkl86t-4"
28
28
  })(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;"], cellSize, cellSize);
29
29
  export var StyledDayHeaderCell = /*#__PURE__*/styled(StyledCell).withConfig({
30
30
  displayName: "StyledDayHeaderCell",
31
- componentId: "core-12_2_0__sc-1kkl86t-5"
31
+ componentId: "core-12_4_0__sc-1kkl86t-5"
32
32
  })(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
33
33
  export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
34
34
  displayName: "StyledDayCell",
35
- componentId: "core-12_2_0__sc-1kkl86t-6"
35
+ componentId: "core-12_4_0__sc-1kkl86t-6"
36
36
  })(["", ""], function (_ref) {
37
37
  var _ref$$disabled = _ref.$disabled,
38
38
  $disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
@@ -55,6 +55,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
55
55
  });
56
56
  export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledWeekRow",
58
- componentId: "core-12_2_0__sc-1kkl86t-7"
58
+ componentId: "core-12_4_0__sc-1kkl86t-7"
59
59
  })(["display:inline-flex;padding-bottom:2px;user-select:none;&:last-child{padding-bottom:0;}", "{&:first-child{border-top-left-radius:", "px;border-bottom-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;border-bottom-right-radius:", "px;}}"], StyledCell, borderRadius.md, borderRadius.md, borderRadius.md, borderRadius.md);
60
60
  //# sourceMappingURL=Calendar.styles.js.map
@@ -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_2_0__sc-2fii7b-0"
7
+ componentId: "core-12_4_0__sc-2fii7b-0"
8
8
  })(["background-color:", ";border-radius:", "px;transition:box-shadow 0.2s ease-in-out;", " ", ""], colors.white, borderRadius.md, function (_ref) {
9
9
  var $level = _ref.$level,
10
10
  $shadowStrength = _ref.$shadowStrength;
@@ -9,7 +9,7 @@ export var dataQa = {
9
9
  export var checkboxSize = 20;
10
10
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledCheckboxContainer",
12
- componentId: "core-12_2_0__sc-u63tye-0"
12
+ componentId: "core-12_4_0__sc-u63tye-0"
13
13
  })(["color:", ";display:block;position:relative;& + &{margin-top:", "px;}"], colors.gray15, spacing.md);
14
14
  function StyledIndeterminate() {
15
15
  return css(["background-color:", ";content:'';height:2px;left:5px;position:absolute;top:9px;width:10px;border:none;"], colors.white);
@@ -48,18 +48,18 @@ function StyledFakeIndeterminate() {
48
48
  }
49
49
  export var StyledCheckboxLabelWrapper = /*#__PURE__*/styled.div.withConfig({
50
50
  displayName: "StyledCheckboxLabelWrapper",
51
- componentId: "core-12_2_0__sc-u63tye-1"
51
+ componentId: "core-12_4_0__sc-u63tye-1"
52
52
  })(["padding-left:", "px;min-height:", "px;position:relative;", ""], function (_ref) {
53
53
  var $hasLabel = _ref.$hasLabel;
54
54
  return $hasLabel ? checkboxSize + spacing.md : checkboxSize;
55
55
  }, checkboxSize, getTypographyIntent('body'));
56
56
  export var StyledCheckboxLabel = /*#__PURE__*/styled.label.withConfig({
57
57
  displayName: "StyledCheckboxLabel",
58
- componentId: "core-12_2_0__sc-u63tye-2"
58
+ componentId: "core-12_4_0__sc-u63tye-2"
59
59
  })(["user-select:none;&:before{background-color:", ";border-radius:2px;border:2px solid ", ";content:'';display:inline-block;height:", "px;width:", "px;min-width:", "px;top:0;left:0;position:absolute;}"], colors.white, colors.gray70, checkboxSize, checkboxSize, checkboxSize);
60
60
  export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
61
61
  displayName: "StyledCheckboxInput",
62
- componentId: "core-12_2_0__sc-u63tye-3"
62
+ componentId: "core-12_4_0__sc-u63tye-3"
63
63
  })(["left:0;opacity:0;position:absolute;top:0;&:disabled:checked + ", " > ", ":before{background-color:", ";border-color:", ";}&:disabled + ", " > ", ":before{background-color:", ";border-color:", ";}", " &:checked + ", " > ", "{&:before{background-color:", ";border-color:", ";color:", ";}&:after{", "}}&:focus:not(:disabled),&[data-qa=", "]:not(:disabled){+ ", " > ", ":before{", "}}", ""], StyledCheckboxLabelWrapper, StyledCheckboxLabel, colors.blue85, colors.blue85, StyledCheckboxLabelWrapper, StyledCheckboxLabel, function (_ref2) {
64
64
  var $indeterminate = _ref2.$indeterminate;
65
65
  return $indeterminate ? colors.gray85 : colors.white;
@@ -83,7 +83,7 @@ export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
83
83
  });
84
84
  export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
85
85
  displayName: "StyledFakeCheckboxLabel",
86
- componentId: "core-12_2_0__sc-u63tye-4"
86
+ componentId: "core-12_4_0__sc-u63tye-4"
87
87
  })(["", " display:block;min-height:", "px;padding-left:", "px;position:relative;user-select:none;cursor:pointer;", ""], getTypographyIntent('body'), checkboxSize, function (_ref7) {
88
88
  var children = _ref7.children;
89
89
  return children ? checkboxSize + spacing.md : checkboxSize;
@@ -99,7 +99,7 @@ export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
99
99
  });
100
100
  export var StyledFakeCheckboxInput = /*#__PURE__*/styled.div.withConfig({
101
101
  displayName: "StyledFakeCheckboxInput",
102
- componentId: "core-12_2_0__sc-u63tye-5"
102
+ componentId: "core-12_4_0__sc-u63tye-5"
103
103
  })(["width:", "px;height:", "px;border-radius:2px;border:2px solid ", ";position:absolute;", " ", " ", " ", ""], checkboxSize, checkboxSize, colors.gray70, function (_ref9) {
104
104
  var $checked = _ref9.$checked,
105
105
  $disabled = _ref9.$disabled,
@@ -21,6 +21,6 @@ export var CheckboxTooltip = function CheckboxTooltip(props) {
21
21
  };
22
22
  var StyledCheckboxTooltipIcon = /*#__PURE__*/styled(Help).withConfig({
23
23
  displayName: "StyledCheckboxTooltipIcon",
24
- componentId: "core-12_2_0__sc-1qa1ncf-0"
24
+ componentId: "core-12_4_0__sc-1qa1ncf-0"
25
25
  })(["margin-left:", "px;color:", ";vertical-align:middle;&:focus-visible{border-radius:50%;", " outline-offset:0;}"], spacing.sm, colors.gray45, getGapOutlineFocus);
26
26
  //# sourceMappingURL=CheckboxTooltip.js.map
@@ -7,23 +7,23 @@ import { getLineClamp } from '../_styles/mixins';
7
7
  import { spacing } from '../_styles/spacing';
8
8
  export var ContactItemAvatarWrapper = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "ContactItemAvatarWrapper",
10
- componentId: "core-12_2_0__sc-1c4z9pn-0"
10
+ componentId: "core-12_4_0__sc-1c4z9pn-0"
11
11
  })(["display:inline-flex;align-self:flex-start;"]);
12
12
  export var ContactItemAvatar = /*#__PURE__*/styled(Avatar).withConfig({
13
13
  displayName: "ContactItemAvatar",
14
- componentId: "core-12_2_0__sc-1c4z9pn-1"
14
+ componentId: "core-12_4_0__sc-1c4z9pn-1"
15
15
  })(["cursor:inherit;font-weight:", ";"], typographyWeights.bold);
16
16
  export var ContactItemTextWrapper = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "ContactItemTextWrapper",
18
- componentId: "core-12_2_0__sc-1c4z9pn-2"
18
+ componentId: "core-12_4_0__sc-1c4z9pn-2"
19
19
  })(["overflow:hidden;margin-left:", "px;"], spacing.sm);
20
20
  export var ContactItemText = /*#__PURE__*/styled(Typography).withConfig({
21
21
  displayName: "ContactItemText",
22
- componentId: "core-12_2_0__sc-1c4z9pn-3"
22
+ componentId: "core-12_4_0__sc-1c4z9pn-3"
23
23
  })(["display:flex;", ""], getLineClamp());
24
24
  export var ContactItemWrapper = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "ContactItemWrapper",
26
- componentId: "core-12_2_0__sc-1c4z9pn-4"
26
+ componentId: "core-12_4_0__sc-1c4z9pn-4"
27
27
  })(["display:flex;flex-direction:row;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, function (_ref) {
28
28
  var $disabled = _ref.$disabled,
29
29
  $clickable = _ref.$clickable;
@@ -5,10 +5,10 @@ import { mediaIE11Hack } from '../_styles/media';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledContent = /*#__PURE__*/styled(Box).withConfig({
7
7
  displayName: "StyledContent",
8
- componentId: "core-12_2_0__sc-10y57gh-0"
8
+ componentId: "core-12_4_0__sc-10y57gh-0"
9
9
  })(["> * + *,> * + h1,> * + h2,> * + h3,> * + h4,> * + p,> * + ul,> * + ol{margin-top:", "px;}> ", " + *{margin-top:0;}> ", ",> ", " > ", ",> ", "{", "{min-height:0;margin-bottom:", "px;}&:last-child ", "{margin-bottom:0;}}"], spacing.lg, StyledFormRow, StyledFormRow, StyledForm, StyledFormRow, StyledFormRow, StyledFormFieldBanner, spacing.md, StyledFormFieldBanner);
10
10
  export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
11
11
  displayName: "StyledActions",
12
- componentId: "core-12_2_0__sc-10y57gh-1"
12
+ componentId: "core-12_4_0__sc-10y57gh-1"
13
13
  })(["display:flex;justify-content:flex-end;gap:", "px;@media ", "{& > * + *{margin-left:", "px;}}"], spacing.sm, mediaIE11Hack, spacing.sm);
14
14
  //# sourceMappingURL=Content.styles.js.map
@@ -14,15 +14,15 @@ var inputHeight = 36; // TODO one-off
14
14
  var disabledCss = /*#__PURE__*/css(["background-color:", ";color:", ";border-width:1px;border-style:solid;border-color:", ";pointer-events:none;svg{color:", ";}"], colors.gray94, colors.gray45, colors.gray70, colors.gray45);
15
15
  export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
16
16
  displayName: "StyledCalendar",
17
- componentId: "core-12_2_0__sc-w10btf-0"
17
+ componentId: "core-12_4_0__sc-w10btf-0"
18
18
  })(["color:", ";"], colors.gray45);
19
19
  export var StyledDateSegmentsContainer = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledDateSegmentsContainer",
21
- componentId: "core-12_2_0__sc-w10btf-1"
21
+ componentId: "core-12_4_0__sc-w10btf-1"
22
22
  })(["min-width:104px;display:flex;gap:", "px;"], spacing.xs);
23
23
  export var StyledDateInputSegment = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledDateInputSegment",
25
- componentId: "core-12_2_0__sc-w10btf-2"
25
+ componentId: "core-12_4_0__sc-w10btf-2"
26
26
  })(["", " outline:none;text-align:center;&:focus{background-color:", ";}&::selection{background-color:transparent;}&[data-placeholder='true']{color:", ";}"], getTypographyIntent('body'), colors.blue96, function (_ref) {
27
27
  var disabled = _ref.disabled;
28
28
  return disabled ? colors.gray70 : colors.gray45;
@@ -31,15 +31,15 @@ export var StyledDateInputDelimiter = /*#__PURE__*/styled.span.attrs(function (p
31
31
  return _defineProperty({}, 'data-qa-table-visible', props.visible);
32
32
  }).withConfig({
33
33
  displayName: "StyledDateInputDelimiter",
34
- componentId: "core-12_2_0__sc-w10btf-3"
34
+ componentId: "core-12_4_0__sc-w10btf-3"
35
35
  })(["", " user-select:none;"], getTypographyIntent('body'));
36
36
  export var StyledDateInputIconContainer = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledDateInputIconContainer",
38
- componentId: "core-12_2_0__sc-w10btf-4"
38
+ componentId: "core-12_4_0__sc-w10btf-4"
39
39
  })(["display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;margin:0 0 0 ", "px;height:24px;width:24px;"], spacing.xs);
40
40
  export var StyledDateInput = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledDateInput",
42
- componentId: "core-12_2_0__sc-w10btf-5"
42
+ componentId: "core-12_4_0__sc-w10btf-5"
43
43
  })(["align-items:center;border-color:", ";border-radius:4px;border-style:solid;border-width:1px;display:inline-flex;flex-direction:row;height:", "px;justify-content:center;padding:0 ", "px 0 ", "px;&::placeholder{color:", ";}", " &:focus-within,&[data-qa=", "]{", ";}&:disabled{", "}", " ", ""], colors.gray70, inputHeight, spacing.xs, spacing.sm, colors.gray45, function (_ref3) {
44
44
  var error = _ref3.error;
45
45
  return !error && css(["&:hover,&[data-qa=", "]{border-color:", ";}"], dataQa.hovered, colors.gray45);
@@ -1,16 +1,17 @@
1
1
  import React from 'react';
2
2
  import type { PageComponentProps, PageFooterProps } from '../PageLayout/PageLayout.types';
3
3
  import type { Props } from '../_utils/types';
4
- import type { DetailPageProps, DetailPageWidth } from './DetailPage.types';
4
+ import type { DetailPageCardProps, DetailPageProps, DetailPageWidth } from './DetailPage.types';
5
5
  export declare const DetailPageViewContext: React.Context<{
6
6
  width: DetailPageWidth;
7
+ hasNavigation: boolean;
7
8
  }>;
8
9
  export declare const Heading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
9
10
  export declare const Body: React.ForwardRefExoticComponent<PageComponentProps & React.RefAttributes<HTMLDivElement>>;
10
11
  export declare const Footer: React.ForwardRefExoticComponent<PageFooterProps & React.RefAttributes<HTMLDivElement>>;
11
12
  export declare const FooterNotation: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
12
13
  export declare const FooterActions: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
13
- export declare const Card: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const Card: React.ForwardRefExoticComponent<DetailPageCardProps & React.RefAttributes<HTMLDivElement>>;
14
15
  /**
15
16
 
16
17
  A detail page is used when an object is selected from a list page. The layout
@@ -53,7 +54,7 @@ export declare const DetailPage: React.ForwardRefExoticComponent<DetailPageProps
53
54
  Main: React.ForwardRefExoticComponent<import("../PageLayout/PageLayout.types").PageMainProps & React.RefAttributes<HTMLDivElement>>;
54
55
  Header: React.ForwardRefExoticComponent<import("../PageLayout/PageLayout.types").PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
55
56
  Breadcrumbs: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
56
- Card: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
57
+ Card: React.ForwardRefExoticComponent<DetailPageCardProps & React.RefAttributes<HTMLDivElement>>;
57
58
  Banner: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
58
59
  Title: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
59
60
  Heading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
@@ -1,31 +1,42 @@
1
- var _excluded = ["width", "children"],
2
- _excluded2 = ["children"];
1
+ var _excluded = ["width", "hasNavigation", "children"],
2
+ _excluded2 = ["children"],
3
+ _excluded3 = ["navigationLabel"];
3
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
6
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
7
+ import { useId } from '@react-aria/utils';
6
8
  import React from 'react';
9
+ import { AnchorNavigationProvider, useAnchorNavigationContext } from '../AnchorNavigation/AnchorNavigationProvider';
7
10
  import { Grid } from '../Grid/Grid';
8
- import { Page } from '../PageLayout/PageLayout';
11
+ import { Page, PageBodyNavigation } from '../PageLayout/PageLayout';
9
12
  import { Section, SectionProvider } from '../Section/Section';
10
13
  import { H1 } from '../Semantic/Semantic';
14
+ import { spacing } from '../_styles/spacing';
11
15
  import { addSubcomponents } from '../_utils/addSubcomponents';
16
+ import { mergeRefs } from '../_utils/mergeRefs';
12
17
  import { gridConfig } from './DetailPage.constants';
13
18
  import { StyledDetailPageBody, StyledDetailPageCard, StyledDetailPageFooter, StyledDetailPageFooterActions, StyledDetailPageFooterContent, StyledDetailPageFooterNotation } from './DetailPage.styles';
14
19
  export var DetailPageViewContext = /*#__PURE__*/React.createContext({
15
- width: 'md'
20
+ width: 'md',
21
+ hasNavigation: false
16
22
  });
17
23
  var DetailPage_ = /*#__PURE__*/React.forwardRef(function DetailPage_(_ref, ref) {
18
24
  var _ref$width = _ref.width,
19
25
  width = _ref$width === void 0 ? 'md' : _ref$width,
26
+ _ref$hasNavigation = _ref.hasNavigation,
27
+ hasNavigation = _ref$hasNavigation === void 0 ? false : _ref$hasNavigation,
20
28
  children = _ref.children,
21
29
  props = _objectWithoutProperties(_ref, _excluded);
22
30
  return /*#__PURE__*/React.createElement(DetailPageViewContext.Provider, {
23
31
  value: {
24
- width: width
32
+ width: width,
33
+ hasNavigation: hasNavigation
25
34
  }
35
+ }, /*#__PURE__*/React.createElement(AnchorNavigationProvider, {
36
+ offset: spacing.xs
26
37
  }, /*#__PURE__*/React.createElement(Page, _extends({
27
38
  ref: ref
28
- }, props), children));
39
+ }, props), children)));
29
40
  });
30
41
  export var Heading = /*#__PURE__*/React.forwardRef(function Heading(props, ref) {
31
42
  return /*#__PURE__*/React.createElement(H1, _extends({
@@ -34,8 +45,17 @@ export var Heading = /*#__PURE__*/React.forwardRef(function Heading(props, ref)
34
45
  });
35
46
  export var Body = /*#__PURE__*/React.forwardRef(function Body(props, ref) {
36
47
  var _React$useContext = React.useContext(DetailPageViewContext),
37
- width = _React$useContext.width;
38
- return /*#__PURE__*/React.createElement(Page.Body, null, /*#__PURE__*/React.createElement(Grid.Row, null, /*#__PURE__*/React.createElement(Grid.Col, {
48
+ width = _React$useContext.width,
49
+ hasNavigation = _React$useContext.hasNavigation;
50
+ var _useAnchorNavigationC = useAnchorNavigationContext(),
51
+ sections = _useAnchorNavigationC.sections,
52
+ active = _useAnchorNavigationC.active,
53
+ setActive = _useAnchorNavigationC.setActive;
54
+ return /*#__PURE__*/React.createElement(Page.Body, null, hasNavigation && sections.length > 1 && /*#__PURE__*/React.createElement(PageBodyNavigation, {
55
+ sections: sections,
56
+ active: active,
57
+ setActive: setActive
58
+ }), /*#__PURE__*/React.createElement(Grid.Row, null, /*#__PURE__*/React.createElement(Grid.Col, {
39
59
  colWidth: gridConfig[width].width,
40
60
  colStart: gridConfig[width].offset
41
61
  }, /*#__PURE__*/React.createElement(StyledDetailPageBody, _extends({
@@ -59,9 +79,29 @@ export var FooterActions = /*#__PURE__*/React.forwardRef(function Actions(props,
59
79
  ref: ref
60
80
  }, props));
61
81
  });
62
- export var Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
82
+ export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref3, ref) {
83
+ var navigationLabel = _ref3.navigationLabel,
84
+ props = _objectWithoutProperties(_ref3, _excluded3);
85
+ var cardId = useId();
86
+ var card = React.useRef(null);
87
+ var _useAnchorNavigationC2 = useAnchorNavigationContext(),
88
+ registerSection = _useAnchorNavigationC2.registerSection,
89
+ unregisterSection = _useAnchorNavigationC2.unregisterSection;
90
+ var id = props.id || cardId;
91
+ React.useEffect(function () {
92
+ var _card$current, _card$current$querySe;
93
+ // Use content of first H2 element as label if navigationLabel is not provided
94
+ var label = navigationLabel || ((_card$current = card.current) === null || _card$current === void 0 ? void 0 : (_card$current$querySe = _card$current.querySelector('h2')) === null || _card$current$querySe === void 0 ? void 0 : _card$current$querySe.textContent);
95
+ if (!card.current || !label) return;
96
+ registerSection(id, label, card.current);
97
+ return function () {
98
+ return unregisterSection(id);
99
+ };
100
+ }, []); // eslint-disable-line react-hooks/exhaustive-deps
101
+
63
102
  return /*#__PURE__*/React.createElement(SectionProvider, null, /*#__PURE__*/React.createElement(StyledDetailPageCard, _extends({
64
- ref: ref
103
+ ref: mergeRefs(ref, card),
104
+ id: id
65
105
  }, props)));
66
106
  });
67
107
  DetailPage_.displayName = 'DetailPage';
@@ -1 +1 @@
1
- {"version":3,"file":"DetailPage.js","names":["React","Grid","Page","Section","SectionProvider","H1","addSubcomponents","gridConfig","StyledDetailPageBody","StyledDetailPageCard","StyledDetailPageFooter","StyledDetailPageFooterActions","StyledDetailPageFooterContent","StyledDetailPageFooterNotation","DetailPageViewContext","createContext","width","DetailPage_","forwardRef","_ref","ref","_ref$width","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","_extends","Heading","Body","_React$useContext","useContext","Row","Col","colWidth","colStart","offset","Footer","_ref2","_excluded2","FooterNotation","FooterActions","Actions","Card","displayName","DetailPage","Main","Header","Breadcrumbs","Banner","Title","Tabs","Aside"],"sources":["../../src/DetailPage/DetailPage.tsx"],"sourcesContent":["import React from 'react'\nimport { Grid } from '../Grid/Grid'\nimport { Page } from '../PageLayout/PageLayout'\nimport type {\n PageComponentProps,\n PageFooterProps,\n} from '../PageLayout/PageLayout.types'\nimport { Section, SectionProvider } from '../Section/Section'\nimport { H1 } from '../Semantic/Semantic'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport { gridConfig } from './DetailPage.constants'\nimport {\n StyledDetailPageBody,\n StyledDetailPageCard,\n StyledDetailPageFooter,\n StyledDetailPageFooterActions,\n StyledDetailPageFooterContent,\n StyledDetailPageFooterNotation,\n} from './DetailPage.styles'\nimport type { DetailPageProps, DetailPageWidth } from './DetailPage.types'\n\nexport const DetailPageViewContext = React.createContext<{\n width: DetailPageWidth\n}>({\n width: 'md',\n})\n\nconst DetailPage_ = React.forwardRef<HTMLDivElement, DetailPageProps>(\n function DetailPage_({ width = 'md', children, ...props }, ref) {\n return (\n <DetailPageViewContext.Provider value={{ width }}>\n <Page ref={ref} {...props}>\n {children}\n </Page>\n </DetailPageViewContext.Provider>\n )\n }\n)\n\nexport const Heading = React.forwardRef<HTMLDivElement, Props>(function Heading(\n props,\n ref\n) {\n return <H1 ref={ref} {...props} />\n})\n\nexport const Body = React.forwardRef<HTMLDivElement, PageComponentProps>(\n function Body(props, ref) {\n const { width } = React.useContext(DetailPageViewContext)\n\n return (\n <Page.Body>\n <Grid.Row>\n <Grid.Col\n colWidth={gridConfig[width].width}\n colStart={gridConfig[width].offset}\n >\n <StyledDetailPageBody ref={ref} {...props} />\n </Grid.Col>\n </Grid.Row>\n </Page.Body>\n )\n }\n)\n\nexport const Footer = React.forwardRef<HTMLDivElement, PageFooterProps>(\n function Footer({ children, ...props }, ref) {\n return (\n <StyledDetailPageFooter ref={ref} {...props}>\n <StyledDetailPageFooterContent>\n {children}\n </StyledDetailPageFooterContent>\n </StyledDetailPageFooter>\n )\n }\n)\n\nexport const FooterNotation = React.forwardRef<HTMLDivElement, Props>(\n function FooterNotation(props, ref) {\n return <StyledDetailPageFooterNotation ref={ref} {...props} />\n }\n)\n\nexport const FooterActions = React.forwardRef<HTMLDivElement, Props>(\n function Actions(props, ref) {\n return <StyledDetailPageFooterActions ref={ref} {...props} />\n }\n)\n\nexport const Card = React.forwardRef<HTMLDivElement, Props>(function Card(\n props,\n ref\n) {\n return (\n <SectionProvider>\n <StyledDetailPageCard ref={ref} {...props} />\n </SectionProvider>\n )\n})\n\nDetailPage_.displayName = 'DetailPage'\nHeading.displayName = 'DetailPage.Heading'\nBody.displayName = 'DetailPage.Body'\nFooter.displayName = 'DetailPage.Footer'\nCard.displayName = 'DetailPage.Card'\n\n/**\n\n A detail page is used when an object is selected from a list page. The layout\n can adhere to varying predefined widths depending on use case.\n\n - DetailPage\n - DetailPage.Main\n - DetailPage.Header\n - DetailPage.Breadcrumbs\n - Breadcrumbs\n - DetailPage.Banner\n - Banner\n - DetailPage.Title\n - Title or H1\n - DetailPage.Tabs\n - Tabs\n - DetailPage.Body\n - DetailPage.Title\n - DetailPage.Banner\n - DetailPage.Card\n - DetailPage.Banner\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Footer\n - DetailPage.FooterNotation\n - DetailPage.FooterActions\n - Button\n - DetailPage.Aside\n - Panel\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-detailpage--edit)\n\n @see [Design Guidelines](https://design.procore.com/detail)\n\n */\nexport const DetailPage = addSubcomponents(\n {\n Main: Page.Main,\n Header: Page.Header,\n Breadcrumbs: Page.Breadcrumbs,\n Card,\n Banner: Page.Banner,\n Title: Page.Title,\n Heading,\n Tabs: Page.Tabs,\n Footer,\n FooterActions,\n FooterNotation,\n Section,\n Body,\n Aside: Page.Aside,\n },\n DetailPage_\n)\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,QAAQ,0BAA0B;AAK/C,SAASC,OAAO,EAAEC,eAAe,QAAQ,oBAAoB;AAC7D,SAASC,EAAE,QAAQ,sBAAsB;AACzC,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SACEC,oBAAoB,EACpBC,oBAAoB,EACpBC,sBAAsB,EACtBC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,8BAA8B,QACzB,qBAAqB;AAG5B,OAAO,IAAMC,qBAAqB,gBAAGd,KAAK,CAACe,aAAa,CAErD;EACDC,KAAK,EAAE;AACT,CAAC,CAAC;AAEF,IAAMC,WAAW,gBAAGjB,KAAK,CAACkB,UAAU,CAClC,SAASD,WAAWA,CAAAE,IAA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QAAA;IAACT,GAAG,EAAEA;EAAI,GAAKG,KAAK,CAAG,CAC7B,CAAC;AAEtB,CAAC,CAAC;AAEFN,WAAW,CAAC6B,WAAW,GAAG,YAAY;AACtChB,OAAO,CAACgB,WAAW,GAAG,oBAAoB;AAC1Cf,IAAI,CAACe,WAAW,GAAG,iBAAiB;AACpCP,MAAM,CAACO,WAAW,GAAG,mBAAmB;AACxCD,IAAI,CAACC,WAAW,GAAG,iBAAiB;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,GAAGzC,gBAAgB,CACxC;EACE0C,IAAI,EAAE9C,IAAI,CAAC8C,IAAI;EACfC,MAAM,EAAE/C,IAAI,CAAC+C,MAAM;EACnBC,WAAW,EAAEhD,IAAI,CAACgD,WAAW;EAC7BL,IAAI,EAAJA,IAAI;EACJM,MAAM,EAAEjD,IAAI,CAACiD,MAAM;EACnBC,KAAK,EAAElD,IAAI,CAACkD,KAAK;EACjBtB,OAAO,EAAPA,OAAO;EACPuB,IAAI,EAAEnD,IAAI,CAACmD,IAAI;EACfd,MAAM,EAANA,MAAM;EACNI,aAAa,EAAbA,aAAa;EACbD,cAAc,EAAdA,cAAc;EACdvC,OAAO,EAAPA,OAAO;EACP4B,IAAI,EAAJA,IAAI;EACJuB,KAAK,EAAEpD,IAAI,CAACoD;AACd,CAAC,EACDrC,WACF,CAAC"}
1
+ {"version":3,"file":"DetailPage.js","names":["useId","React","AnchorNavigationProvider","useAnchorNavigationContext","Grid","Page","PageBodyNavigation","Section","SectionProvider","H1","spacing","addSubcomponents","mergeRefs","gridConfig","StyledDetailPageBody","StyledDetailPageCard","StyledDetailPageFooter","StyledDetailPageFooterActions","StyledDetailPageFooterContent","StyledDetailPageFooterNotation","DetailPageViewContext","createContext","width","hasNavigation","DetailPage_","forwardRef","_ref","ref","_ref$width","_ref$hasNavigation","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","offset","xs","_extends","Heading","Body","_React$useContext","useContext","_useAnchorNavigationC","sections","active","setActive","length","Row","Col","colWidth","colStart","Footer","_ref2","_excluded2","FooterNotation","FooterActions","Actions","Card","_ref3","navigationLabel","_excluded3","cardId","card","useRef","_useAnchorNavigationC2","registerSection","unregisterSection","id","useEffect","_card$current","_card$current$querySe","label","current","querySelector","textContent","displayName","DetailPage","Main","Header","Breadcrumbs","Banner","Title","Tabs","Aside"],"sources":["../../src/DetailPage/DetailPage.tsx"],"sourcesContent":["import { useId } from '@react-aria/utils'\nimport React from 'react'\nimport {\n AnchorNavigationProvider,\n useAnchorNavigationContext,\n} from '../AnchorNavigation/AnchorNavigationProvider'\nimport { Grid } from '../Grid/Grid'\nimport { Page, PageBodyNavigation } from '../PageLayout/PageLayout'\nimport type {\n PageComponentProps,\n PageFooterProps,\n} from '../PageLayout/PageLayout.types'\nimport { Section, SectionProvider } from '../Section/Section'\nimport { H1 } from '../Semantic/Semantic'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport { gridConfig } from './DetailPage.constants'\nimport {\n StyledDetailPageBody,\n StyledDetailPageCard,\n StyledDetailPageFooter,\n StyledDetailPageFooterActions,\n StyledDetailPageFooterContent,\n StyledDetailPageFooterNotation,\n} from './DetailPage.styles'\nimport type {\n DetailPageCardProps,\n DetailPageProps,\n DetailPageWidth,\n} from './DetailPage.types'\n\nexport const DetailPageViewContext = React.createContext<{\n width: DetailPageWidth\n hasNavigation: boolean\n}>({\n width: 'md',\n hasNavigation: false,\n})\n\nconst DetailPage_ = React.forwardRef<HTMLDivElement, DetailPageProps>(\n function DetailPage_(\n { width = 'md', hasNavigation = false, children, ...props },\n ref\n ) {\n return (\n <DetailPageViewContext.Provider value={{ width, hasNavigation }}>\n <AnchorNavigationProvider offset={spacing.xs}>\n <Page ref={ref} {...props}>\n {children}\n </Page>\n </AnchorNavigationProvider>\n </DetailPageViewContext.Provider>\n )\n }\n)\n\nexport const Heading = React.forwardRef<HTMLDivElement, Props>(function Heading(\n props,\n ref\n) {\n return <H1 ref={ref} {...props} />\n})\n\nexport const Body = React.forwardRef<HTMLDivElement, PageComponentProps>(\n function Body(props, ref) {\n const { width, hasNavigation } = React.useContext(DetailPageViewContext)\n const { sections, active, setActive } = useAnchorNavigationContext()\n\n return (\n <Page.Body>\n {hasNavigation && sections.length > 1 && (\n <PageBodyNavigation\n sections={sections}\n active={active}\n setActive={setActive}\n />\n )}\n <Grid.Row>\n <Grid.Col\n colWidth={gridConfig[width].width}\n colStart={gridConfig[width].offset}\n >\n <StyledDetailPageBody ref={ref} {...props} />\n </Grid.Col>\n </Grid.Row>\n </Page.Body>\n )\n }\n)\n\nexport const Footer = React.forwardRef<HTMLDivElement, PageFooterProps>(\n function Footer({ children, ...props }, ref) {\n return (\n <StyledDetailPageFooter ref={ref} {...props}>\n <StyledDetailPageFooterContent>\n {children}\n </StyledDetailPageFooterContent>\n </StyledDetailPageFooter>\n )\n }\n)\n\nexport const FooterNotation = React.forwardRef<HTMLDivElement, Props>(\n function FooterNotation(props, ref) {\n return <StyledDetailPageFooterNotation ref={ref} {...props} />\n }\n)\n\nexport const FooterActions = React.forwardRef<HTMLDivElement, Props>(\n function Actions(props, ref) {\n return <StyledDetailPageFooterActions ref={ref} {...props} />\n }\n)\n\nexport const Card = React.forwardRef<HTMLDivElement, DetailPageCardProps>(\n function Card({ navigationLabel, ...props }, ref) {\n const cardId = useId()\n const card = React.useRef<HTMLDivElement>(null)\n const { registerSection, unregisterSection } = useAnchorNavigationContext()\n const id = props.id || cardId\n\n React.useEffect(() => {\n // Use content of first H2 element as label if navigationLabel is not provided\n const label =\n navigationLabel || card.current?.querySelector('h2')?.textContent\n if (!card.current || !label) return\n\n registerSection(id, label, card.current)\n\n return () => unregisterSection(id)\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <SectionProvider>\n <StyledDetailPageCard ref={mergeRefs(ref, card)} id={id} {...props} />\n </SectionProvider>\n )\n }\n)\n\nDetailPage_.displayName = 'DetailPage'\nHeading.displayName = 'DetailPage.Heading'\nBody.displayName = 'DetailPage.Body'\nFooter.displayName = 'DetailPage.Footer'\nCard.displayName = 'DetailPage.Card'\n\n/**\n\n A detail page is used when an object is selected from a list page. The layout\n can adhere to varying predefined widths depending on use case.\n\n - DetailPage\n - DetailPage.Main\n - DetailPage.Header\n - DetailPage.Breadcrumbs\n - Breadcrumbs\n - DetailPage.Banner\n - Banner\n - DetailPage.Title\n - Title or H1\n - DetailPage.Tabs\n - Tabs\n - DetailPage.Body\n - DetailPage.Title\n - DetailPage.Banner\n - DetailPage.Card\n - DetailPage.Banner\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Footer\n - DetailPage.FooterNotation\n - DetailPage.FooterActions\n - Button\n - DetailPage.Aside\n - Panel\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-detailpage--edit)\n\n @see [Design Guidelines](https://design.procore.com/detail)\n\n */\nexport const DetailPage = addSubcomponents(\n {\n Main: Page.Main,\n Header: Page.Header,\n Breadcrumbs: Page.Breadcrumbs,\n Card,\n Banner: Page.Banner,\n Title: Page.Title,\n Heading,\n Tabs: Page.Tabs,\n Footer,\n FooterActions,\n FooterNotation,\n Section,\n Body,\n Aside: Page.Aside,\n },\n DetailPage_\n)\n"],"mappings":";;;;;;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,wBAAwB,EACxBC,0BAA0B,QACrB,8CAA8C;AACrD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,kBAAkB,QAAQ,0BAA0B;AAKnE,SAASC,O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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,GAAGnE,gBAAgB,CACxC;EACEoE,IAAI,EAAE1E,IAAI,CAAC0E,IAAI;EACfC,MAAM,EAAE3E,IAAI,CAAC2E,MAAM;EACnBC,WAAW,EAAE5E,IAAI,CAAC4E,WAAW;EAC7BtB,IAAI,EAAJA,IAAI;EACJuB,MAAM,EAAE7E,IAAI,CAAC6E,MAAM;EACnBC,KAAK,EAAE9E,IAAI,CAAC8E,KAAK;EACjB3C,OAAO,EAAPA,OAAO;EACP4C,IAAI,EAAE/E,IAAI,CAAC+E,IAAI;EACf/B,MAAM,EAANA,MAAM;EACNI,aAAa,EAAbA,aAAa;EACbD,cAAc,EAAdA,cAAc;EACdjD,OAAO,EAAPA,OAAO;EACPkC,IAAI,EAAJA,IAAI;EACJ4C,KAAK,EAAEhF,IAAI,CAACgF;AACd,CAAC,EACD7D,WACF,CAAC"}
@@ -8,32 +8,32 @@ import { colors } from '../_styles/colors';
8
8
  import { spacing } from '../_styles/spacing';
9
9
  export var StyledDetailPage = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledDetailPage",
11
- componentId: "core-12_2_0__sc-cytnlo-0"
11
+ componentId: "core-12_4_0__sc-cytnlo-0"
12
12
  })(["background-color:", ";height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;"], colors.gray96);
13
13
  export var StyledDetailPageBody = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "StyledDetailPageBody",
15
- componentId: "core-12_2_0__sc-cytnlo-1"
15
+ componentId: "core-12_4_0__sc-cytnlo-1"
16
16
  })(["padding-bottom:", "px;"], spacing.xl);
17
17
  export var StyledDetailPageFooterNotation = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledDetailPageFooterNotation",
19
- componentId: "core-12_2_0__sc-cytnlo-2"
19
+ componentId: "core-12_4_0__sc-cytnlo-2"
20
20
  })(["flex-grow:1;z-index:1;"]);
21
21
  export var StyledDetailPageFooter = /*#__PURE__*/styled(Page.Footer).withConfig({
22
22
  displayName: "StyledDetailPageFooter",
23
- componentId: "core-12_2_0__sc-cytnlo-3"
23
+ componentId: "core-12_4_0__sc-cytnlo-3"
24
24
  })(["display:flex;padding:", "px 0;background-color:", ";justify-content:center;"], spacing.lg, colors.white);
25
25
  export var StyledDetailPageFooterActions = /*#__PURE__*/styled(Box).withConfig({
26
26
  displayName: "StyledDetailPageFooterActions",
27
- componentId: "core-12_2_0__sc-cytnlo-4"
27
+ componentId: "core-12_4_0__sc-cytnlo-4"
28
28
  })(["", ""], getActions());
29
29
  var maxFooterContentWidth = 1920;
30
30
  export var StyledDetailPageFooterContent = /*#__PURE__*/styled.div.withConfig({
31
31
  displayName: "StyledDetailPageFooterContent",
32
- componentId: "core-12_2_0__sc-cytnlo-5"
32
+ componentId: "core-12_4_0__sc-cytnlo-5"
33
33
  })(["width:100%;align-items:center;display:flex;justify-content:flex-end;padding:0 ", "px;max-width:", "px;"], spacing.xl, maxFooterContentWidth);
34
34
  var detailPageCardBorderRadius = 8;
35
35
  export var StyledDetailPageCard = /*#__PURE__*/styled(Card).withConfig({
36
36
  displayName: "StyledDetailPageCard",
37
- componentId: "core-12_2_0__sc-cytnlo-6"
37
+ componentId: "core-12_4_0__sc-cytnlo-6"
38
38
  })(["width:100%;border-radius:", "px;margin-top:", "px;margin-bottom:", "px;& + &{margin-top:", "px;}&:last-child{margin-bottom:", "px;}& > ", "{padding:", "px ", "px 0 ", "px;max-width:100%;&:empty{padding:0;}}& > ", " + ", " > ", "{border-top:0;}> .", ":first-child + .", ",> ", " + .", " + .", "{margin-top:", "px;}"], detailPageCardBorderRadius, spacing.lg, spacing.sm, spacing.sm, spacing.lg, StyledPageBanner, spacing.lg, spacing.lg, spacing.lg, StyledPageBanner, StyledSection, StyledSectionInner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), StyledPageBanner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), spacing.xxl * -1);
39
39
  //# sourceMappingURL=DetailPage.styles.js.map
@@ -1,4 +1,4 @@
1
- import type { PageAsideProps, PageHeaderProps } from '../PageLayout/PageLayout.types';
1
+ import type { PageAsideProps, PageComponentProps, PageHeaderProps } from '../PageLayout/PageLayout.types';
2
2
  import type { SectionProps } from '../Section/Section.types';
3
3
  import type { Props } from '../_utils/types';
4
4
  export declare type DetailPageWidth = 'md' | 'lg' | 'xl' | 'block';
@@ -8,6 +8,11 @@ export interface DetailPageProps extends Props {
8
8
  * @since 10.19.0
9
9
  */
10
10
  width?: DetailPageWidth;
11
+ /**
12
+ * @description If the page has anchor navigation
13
+ * @since TBD
14
+ */
15
+ hasNavigation?: boolean;
11
16
  }
12
17
  export interface DetailPageAsideProps extends PageAsideProps {
13
18
  }
@@ -15,3 +20,6 @@ export interface DetailPageHeaderProps extends PageHeaderProps {
15
20
  }
16
21
  export interface DetailPageSectionProps extends SectionProps {
17
22
  }
23
+ export interface DetailPageCardProps extends PageComponentProps {
24
+ navigationLabel?: string;
25
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"DetailPage.types.js","names":[],"sources":["../../src/DetailPage/DetailPage.types.ts"],"sourcesContent":["import type {\n PageAsideProps,\n PageHeaderProps,\n} from '../PageLayout/PageLayout.types'\nimport type { SectionProps } from '../Section/Section.types'\nimport type { Props } from '../_utils/types'\n\nexport type DetailPageWidth = 'md' | 'lg' | 'xl' | 'block'\n\nexport interface DetailPageProps extends Props {\n /**\n * @description Width of the content\n * @since 10.19.0\n */\n width?: DetailPageWidth\n}\nexport interface DetailPageAsideProps extends PageAsideProps {}\n\nexport interface DetailPageHeaderProps extends PageHeaderProps {}\n\nexport interface DetailPageSectionProps extends SectionProps {}\n"],"mappings":""}
1
+ {"version":3,"file":"DetailPage.types.js","names":[],"sources":["../../src/DetailPage/DetailPage.types.ts"],"sourcesContent":["import type {\n PageAsideProps,\n PageComponentProps,\n PageHeaderProps,\n} from '../PageLayout/PageLayout.types'\nimport type { SectionProps } from '../Section/Section.types'\nimport type { Props } from '../_utils/types'\n\nexport type DetailPageWidth = 'md' | 'lg' | 'xl' | 'block'\n\nexport interface DetailPageProps extends Props {\n /**\n * @description Width of the content\n * @since 10.19.0\n */\n width?: DetailPageWidth\n\n /**\n * @description If the page has anchor navigation\n * @since TBD\n */\n hasNavigation?: boolean\n}\nexport interface DetailPageAsideProps extends PageAsideProps {}\n\nexport interface DetailPageHeaderProps extends PageHeaderProps {}\n\nexport interface DetailPageSectionProps extends SectionProps {}\n\nexport interface DetailPageCardProps extends PageComponentProps {\n navigationLabel?: string\n}\n"],"mappings":""}
@@ -5,15 +5,15 @@ import { Card } from '../Card/Card';
5
5
  import { Spinner } from '../Spinner/Spinner';
6
6
  export var StyledDropdownMenu = /*#__PURE__*/styled(Card).withConfig({
7
7
  displayName: "StyledDropdownMenu",
8
- componentId: "core-12_2_0__sc-ufsy2q-0"
8
+ componentId: "core-12_4_0__sc-ufsy2q-0"
9
9
  })(["display:flex;max-height:40vh;max-width:248px;min-width:inherit;"]);
10
10
  export var StyledDropdownSpinner = /*#__PURE__*/styled(Spinner).withConfig({
11
11
  displayName: "StyledDropdownSpinner",
12
- componentId: "core-12_2_0__sc-ufsy2q-1"
12
+ componentId: "core-12_4_0__sc-ufsy2q-1"
13
13
  })(["margin:0 6px;"]);
14
14
  export var StyledDropdownButton = /*#__PURE__*/styled(Button).withConfig({
15
15
  displayName: "StyledDropdownButton",
16
- componentId: "core-12_2_0__sc-ufsy2q-2"
16
+ componentId: "core-12_4_0__sc-ufsy2q-2"
17
17
  })(["pointer-events:", ";", ""], function (_ref) {
18
18
  var disabled = _ref.disabled,
19
19
  $loading = _ref.$loading;
@@ -6,18 +6,18 @@ import { getEllipsis } from '../_styles/mixins';
6
6
  import { spacing } from '../_styles/spacing';
7
7
  export var StyledDropdownFlyout = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "StyledDropdownFlyout",
9
- componentId: "core-12_2_0__sc-1i79jsg-0"
9
+ componentId: "core-12_4_0__sc-1i79jsg-0"
10
10
  })(["display:flex;flex-wrap:wrap;flex-direction:column;width:100%;max-height:855px;padding:", "px 0;"], spacing.sm);
11
11
  export var StyledDropdownFlyoutItem = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "StyledDropdownFlyoutItem",
13
- componentId: "core-12_2_0__sc-1i79jsg-1"
13
+ componentId: "core-12_4_0__sc-1i79jsg-1"
14
14
  })(["display:flex;justify-content:space-between;cursor:pointer;width:100%;padding:", "px ", "px;color:", ";", " &[data-highlighted='true'],&:hover{background-color:", ";}"], spacing.xs, spacing.lg, colors.gray20, getTypographyIntent('body'), colors.gray96);
15
15
  export var StyledDropdownFlyoutLabel = /*#__PURE__*/styled.span.withConfig({
16
16
  displayName: "StyledDropdownFlyoutLabel",
17
- componentId: "core-12_2_0__sc-1i79jsg-2"
17
+ componentId: "core-12_4_0__sc-1i79jsg-2"
18
18
  })(["", ""], getEllipsis());
19
19
  export var StyledDropdownFlyoutExpandIcon = /*#__PURE__*/styled.span.withConfig({
20
20
  displayName: "StyledDropdownFlyoutExpandIcon",
21
- componentId: "core-12_2_0__sc-1i79jsg-3"
21
+ componentId: "core-12_4_0__sc-1i79jsg-3"
22
22
  })(["position:relative;display:inline-flex;align-self:center;flex-shrink:0;margin-left:", "px;white-space:nowrap;", ""], spacing.lg, arrowRight(4, 'black'));
23
23
  //# sourceMappingURL=DropdownFlyout.styles.js.map
@@ -94,7 +94,7 @@ export function MultipleErrors(props) {
94
94
  // make error banner accessible as a styled-components selector
95
95
  export var DropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBannerBase).withConfig({
96
96
  displayName: "DropzoneErrorBanner",
97
- componentId: "core-12_2_0__sc-l4fojb-0"
97
+ componentId: "core-12_4_0__sc-l4fojb-0"
98
98
  })([""]);
99
99
  function DropzoneContainer(_ref3) {
100
100
  var active = _ref3.active,