@procore/core-react 11.33.0 → 12.0.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 (328) hide show
  1. package/README.md +7 -1
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/Avatar/Avatar.types.d.ts +1 -1
  5. package/dist/Avatar/Avatar.types.js.map +1 -1
  6. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  7. package/dist/Badge/Badge.styles.js +2 -2
  8. package/dist/Banner/Banner.d.ts +0 -5
  9. package/dist/Banner/Banner.js +11 -30
  10. package/dist/Banner/Banner.js.map +1 -1
  11. package/dist/Banner/Banner.styles.js +10 -20
  12. package/dist/Banner/Banner.styles.js.map +1 -1
  13. package/dist/Banner/Banner.types.d.ts +1 -5
  14. package/dist/Banner/Banner.types.js.map +1 -1
  15. package/dist/Banner/index.d.ts +1 -1
  16. package/dist/Banner/index.js +1 -1
  17. package/dist/Banner/index.js.map +1 -1
  18. package/dist/Box/Box.styles.js +1 -1
  19. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  20. package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
  21. package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
  22. package/dist/Button/Button.styles.js +5 -5
  23. package/dist/Calendar/Calendar.d.ts +72 -0
  24. package/dist/Calendar/Calendar.js +81 -0
  25. package/dist/Calendar/Calendar.js.map +1 -1
  26. package/dist/Calendar/Calendar.styles.js +8 -8
  27. package/dist/Card/Card.styles.js +1 -1
  28. package/dist/Checkbox/Checkbox.js +3 -2
  29. package/dist/Checkbox/Checkbox.js.map +1 -1
  30. package/dist/Checkbox/Checkbox.styles.js +6 -6
  31. package/dist/Checkbox/CheckboxTooltip.d.ts +4 -0
  32. package/dist/Checkbox/CheckboxTooltip.js +26 -0
  33. package/dist/Checkbox/CheckboxTooltip.js.map +1 -0
  34. package/dist/ContactItem/ContactItem.styles.js +5 -5
  35. package/dist/Content/Content.styles.js +4 -4
  36. package/dist/Content/Content.styles.js.map +1 -1
  37. package/dist/DateInput/DateInput.styles.js +6 -6
  38. package/dist/DetailPage/DetailPage.styles.js +7 -7
  39. package/dist/Dropdown/Dropdown.styles.js +3 -3
  40. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  41. package/dist/Dropzone/Dropzone.js +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.styles.js +9 -9
  47. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  48. package/dist/FileSelect/FileSelect.styles.js +2 -2
  49. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  50. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  51. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  52. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  53. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  54. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  55. package/dist/FileSelect/ThumbnailList/index.d.ts +1 -0
  56. package/dist/FileSelect/ThumbnailList/index.js.map +1 -1
  57. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  58. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
  59. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  60. package/dist/FileSelect/index.d.ts +1 -1
  61. package/dist/FileSelect/index.js.map +1 -1
  62. package/dist/FileSelect/storyHelpers.d.ts +2 -2
  63. package/dist/FileSelect/storyHelpers.js.map +1 -1
  64. package/dist/FileToken/FileToken.styles.js +4 -4
  65. package/dist/FilterToken/FilterToken.styles.js +2 -2
  66. package/dist/FlexList/FlexList.styles.js +1 -1
  67. package/dist/Form/Form.d.ts +1 -1
  68. package/dist/Form/Form.js +5 -4
  69. package/dist/Form/Form.js.map +1 -1
  70. package/dist/Form/Form.styles.d.ts +1 -5
  71. package/dist/Form/Form.styles.js +20 -33
  72. package/dist/Form/Form.styles.js.map +1 -1
  73. package/dist/Form/Form.types.d.ts +7 -1
  74. package/dist/Form/Form.types.js.map +1 -1
  75. package/dist/Form/StyledFormikForm.styles.d.ts +6 -0
  76. package/dist/Form/StyledFormikForm.styles.js +17 -0
  77. package/dist/Form/StyledFormikForm.styles.js.map +1 -0
  78. package/dist/Form/index.d.ts +3 -2
  79. package/dist/Form/index.js +2 -1
  80. package/dist/Form/index.js.map +1 -1
  81. package/dist/Grid/Grid.styles.js +2 -2
  82. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  83. package/dist/Input/Input.styles.js +1 -1
  84. package/dist/Link/Link.styles.js +1 -1
  85. package/dist/ListPage/ListPage.styles.js +8 -8
  86. package/dist/Loader/Loader.styles.js +2 -2
  87. package/dist/Menu/index.d.ts +1 -1
  88. package/dist/Menu/index.js.map +1 -1
  89. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  90. package/dist/Modal/Modal.js +1 -1
  91. package/dist/Modal/Modal.js.map +1 -1
  92. package/dist/Modal/Modal.styles.js +13 -13
  93. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  94. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  95. package/dist/MultiSelect/MultiSelect.types.d.ts +4 -4
  96. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  97. package/dist/MultiSelect/index.d.ts +1 -1
  98. package/dist/MultiSelect/index.js.map +1 -1
  99. package/dist/NextMenu/NextMenu.styles.js +3 -3
  100. package/dist/Notation/Notation.js +1 -1
  101. package/dist/NumberInput/NumberInput.js +2 -3
  102. package/dist/NumberInput/NumberInput.js.map +1 -1
  103. package/dist/NumberInput/NumberInput.styles.js +7 -7
  104. package/dist/NumberInput/NumberInput.types.d.ts +15 -11
  105. package/dist/NumberInput/NumberInput.types.js.map +1 -1
  106. package/dist/NumberInput/index.d.ts +1 -1
  107. package/dist/NumberInput/index.js.map +1 -1
  108. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  109. package/dist/OverlayTrigger/OverlayTrigger.js +0 -4
  110. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  111. package/dist/PageLayout/PageLayout.d.ts +53 -0
  112. package/dist/PageLayout/PageLayout.js +63 -8
  113. package/dist/PageLayout/PageLayout.js.map +1 -1
  114. package/dist/PageLayout/PageLayout.styles.d.ts +1 -4
  115. package/dist/PageLayout/PageLayout.styles.js +26 -26
  116. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  117. package/dist/Pagination/Pagination.styles.js +5 -5
  118. package/dist/Pagination/index.d.ts +1 -1
  119. package/dist/Pagination/index.js.map +1 -1
  120. package/dist/Panel/Panel.styles.js +11 -11
  121. package/dist/Pill/Pill.styles.js +2 -2
  122. package/dist/PillSelect/PillSelect.styles.js +4 -4
  123. package/dist/PillSelect/index.d.ts +1 -1
  124. package/dist/PillSelect/index.js.map +1 -1
  125. package/dist/Popover/Popover.styles.js +2 -2
  126. package/dist/Portal/Portal.styles.js +1 -1
  127. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  128. package/dist/RadioButton/RadioButton.styles.js +3 -3
  129. package/dist/Required/Required.styles.js +3 -3
  130. package/dist/Search/Search.styles.js +5 -5
  131. package/dist/Section/Section.styles.js +6 -6
  132. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  133. package/dist/Select/Select.styles.js +7 -7
  134. package/dist/Semantic/Semantic.styles.js +9 -9
  135. package/dist/Slider/Slider.styles.js +5 -5
  136. package/dist/Spinner/Spinner.styles.js +7 -7
  137. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  138. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  139. package/dist/SuperSelect/index.d.ts +1 -1
  140. package/dist/SuperSelect/index.js.map +1 -1
  141. package/dist/Switch/Switch.styles.js +4 -4
  142. package/dist/Table/Table.d.ts +5 -5
  143. package/dist/Table/Table.js.map +1 -1
  144. package/dist/Table/Table.styles.js +28 -28
  145. package/dist/Table/Table.types.d.ts +2 -2
  146. package/dist/Table/Table.types.js.map +1 -1
  147. package/dist/Table/index.d.ts +1 -1
  148. package/dist/Table/index.js.map +1 -1
  149. package/dist/TableShelf/TableShelf.styles.js +5 -5
  150. package/dist/Tabs/Tabs.styles.js +8 -8
  151. package/dist/Tearsheet/Tearsheet.js +1 -1
  152. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  153. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  154. package/dist/TextArea/TextArea.styles.js +1 -1
  155. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  156. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  157. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  158. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  159. package/dist/TieredSelect/index.d.ts +1 -1
  160. package/dist/TieredSelect/index.js.map +1 -1
  161. package/dist/Tile/Tile.styles.js +10 -10
  162. package/dist/Tile/Tile.styles.js.map +1 -1
  163. package/dist/Title/Title.styles.js +7 -7
  164. package/dist/Toast/Toast.styles.js +3 -3
  165. package/dist/Toast/index.d.ts +1 -1
  166. package/dist/Toast/index.js.map +1 -1
  167. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  168. package/dist/Token/Token.styles.js +3 -3
  169. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  170. package/dist/Tooltip/Tooltip.styles.js +2 -2
  171. package/dist/Tree/Tree.js.map +1 -1
  172. package/dist/Tree/Tree.styles.js +9 -9
  173. package/dist/Tree/Tree.types.d.ts +1 -1
  174. package/dist/Tree/Tree.types.js.map +1 -1
  175. package/dist/Tree/index.d.ts +1 -1
  176. package/dist/Tree/index.js.map +1 -1
  177. package/dist/Typeahead/Typeahead.styles.js +3 -3
  178. package/dist/Typography/Typography.js +4 -2
  179. package/dist/Typography/Typography.js.map +1 -1
  180. package/dist/Typography/Typography.styles.js +6 -3
  181. package/dist/Typography/Typography.styles.js.map +1 -1
  182. package/dist/Typography/Typography.table.story.js +2 -2
  183. package/dist/Typography/Typography.types.d.ts +5 -0
  184. package/dist/Typography/Typography.types.js.map +1 -1
  185. package/dist/Typography/index.d.ts +1 -1
  186. package/dist/Typography/index.js +1 -1
  187. package/dist/Typography/index.js.map +1 -1
  188. package/dist/_hooks/Anchor.d.ts +0 -15
  189. package/dist/_hooks/Anchor.js +1 -29
  190. package/dist/_hooks/Anchor.js.map +1 -1
  191. package/dist/_hooks/Buffer.d.ts +0 -19
  192. package/dist/_hooks/Buffer.js +1 -41
  193. package/dist/_hooks/Buffer.js.map +1 -1
  194. package/dist/_hooks/DateTime/index.d.ts +1 -1
  195. package/dist/_hooks/DateTime/index.js +1 -1
  196. package/dist/_hooks/DateTime/index.js.map +1 -1
  197. package/dist/_hooks/InjectedScript.d.ts +0 -18
  198. package/dist/_hooks/InjectedScript.js +1 -39
  199. package/dist/_hooks/InjectedScript.js.map +1 -1
  200. package/dist/_hooks/ListNavigation.d.ts +0 -35
  201. package/dist/_hooks/ListNavigation.js +1 -53
  202. package/dist/_hooks/ListNavigation.js.map +1 -1
  203. package/dist/_hooks/ResizeObserver.js +1 -5
  204. package/dist/_hooks/ResizeObserver.js.map +1 -1
  205. package/dist/_hooks/TextEntry.d.ts +1 -29
  206. package/dist/_hooks/TextEntry.js +1 -42
  207. package/dist/_hooks/TextEntry.js.map +1 -1
  208. package/dist/_hooks/Timer.d.ts +0 -19
  209. package/dist/_hooks/Timer.js +0 -38
  210. package/dist/_hooks/Timer.js.map +1 -1
  211. package/dist/_hooks/Trigger.d.ts +0 -20
  212. package/dist/_hooks/Trigger.js +1 -47
  213. package/dist/_hooks/Trigger.js.map +1 -1
  214. package/dist/_hooks/Visibility.d.ts +0 -18
  215. package/dist/_hooks/Visibility.js +1 -41
  216. package/dist/_hooks/Visibility.js.map +1 -1
  217. package/dist/_typedoc/Avatar/Avatar.types.json +22 -22
  218. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  219. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  220. package/dist/_typedoc/Banner/Banner.types.json +16 -16
  221. package/dist/_typedoc/Box/Box.types.json +68 -68
  222. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
  223. package/dist/_typedoc/Button/Button.types.json +12 -12
  224. package/dist/_typedoc/Calendar/Calendar.json +68 -0
  225. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  226. package/dist/_typedoc/Card/Card.types.json +6 -6
  227. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  228. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  229. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  230. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  231. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  232. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  233. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  234. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  235. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  236. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  237. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  238. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  239. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  240. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +11 -11
  241. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  242. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  243. package/dist/_typedoc/Form/Form.types.json +746 -765
  244. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  245. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +53 -53
  246. package/dist/_typedoc/Input/Input.types.json +2 -2
  247. package/dist/_typedoc/Link/Link.types.json +4 -4
  248. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  249. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  250. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  251. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  252. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +32 -32
  253. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  254. package/dist/_typedoc/NumberInput/NumberInput.types.json +71 -88
  255. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  256. package/dist/_typedoc/PageLayout/PageLayout.json +36 -0
  257. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  258. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  259. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  260. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  261. package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
  262. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  263. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  264. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  265. package/dist/_typedoc/Required/Required.types.json +5 -5
  266. package/dist/_typedoc/Search/Search.types.json +18 -18
  267. package/dist/_typedoc/Section/Section.types.json +14 -14
  268. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  269. package/dist/_typedoc/Select/Select.types.json +57 -57
  270. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  271. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  272. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  273. package/dist/_typedoc/Table/Table.types.json +99 -99
  274. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  275. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  276. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  277. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  278. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  279. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  280. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  281. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  282. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  283. package/dist/_typedoc/Title/Title.types.json +1 -1
  284. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  285. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  286. package/dist/_typedoc/Token/Token.types.json +4 -4
  287. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  288. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  289. package/dist/_typedoc/Tree/Tree.types.json +128 -128
  290. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  291. package/dist/_typedoc/Typography/Typography.types.json +18 -8
  292. package/dist/_typedoc/_utils/types.json +3 -3
  293. package/dist/_typedoc/deprecations.json +1 -1
  294. package/dist/_utils/closeWithConfirm.js.map +1 -0
  295. package/dist/_utils/propsTypedoc.d.ts +3 -1
  296. package/dist/_utils/propsTypedoc.js +2 -0
  297. package/dist/_utils/propsTypedoc.js.map +1 -1
  298. package/dist/index.d.ts +1 -5
  299. package/dist/index.js +4 -9
  300. package/dist/index.js.map +1 -1
  301. package/package.json +15 -5
  302. package/dist/Form/closeWithConfirm.js.map +0 -1
  303. package/dist/Sidebar/Sidebar.d.ts +0 -50
  304. package/dist/Sidebar/Sidebar.js +0 -117
  305. package/dist/Sidebar/Sidebar.js.map +0 -1
  306. package/dist/Sidebar/Sidebar.styles.d.ts +0 -9
  307. package/dist/Sidebar/Sidebar.styles.js +0 -38
  308. package/dist/Sidebar/Sidebar.styles.js.map +0 -1
  309. package/dist/Sidebar/index.d.ts +0 -1
  310. package/dist/Sidebar/index.js +0 -2
  311. package/dist/Sidebar/index.js.map +0 -1
  312. package/dist/_hooks/Analytics.d.ts +0 -36
  313. package/dist/_hooks/Analytics.js +0 -54
  314. package/dist/_hooks/Analytics.js.map +0 -1
  315. package/dist/_hooks/Autofocus.d.ts +0 -32
  316. package/dist/_hooks/Autofocus.js +0 -70
  317. package/dist/_hooks/Autofocus.js.map +0 -1
  318. package/dist/_hooks/BoundingRect.d.ts +0 -41
  319. package/dist/_hooks/BoundingRect.js +0 -90
  320. package/dist/_hooks/BoundingRect.js.map +0 -1
  321. package/dist/_hooks/Event.d.ts +0 -42
  322. package/dist/_hooks/Event.js +0 -83
  323. package/dist/_hooks/Event.js.map +0 -1
  324. package/dist/_utils/genericAnalyticsClient.d.ts +0 -25
  325. package/dist/_utils/genericAnalyticsClient.js +0 -46
  326. package/dist/_utils/genericAnalyticsClient.js.map +0 -1
  327. /package/dist/{Form → _utils}/closeWithConfirm.d.ts +0 -0
  328. /package/dist/{Form → _utils}/closeWithConfirm.js +0 -0
package/README.md CHANGED
@@ -20,7 +20,13 @@ yarn add @procore/core-react
20
20
  Install the peer dependencies.
21
21
 
22
22
  ```sh
23
- yarn add formik styled-components react react-dom
23
+ yarn add styled-components @procore/globalization-toolkit react-beautiful-dnd react react-dom
24
+ ```
25
+
26
+ Install the optional peer dependencies if necessary.
27
+
28
+ ```sh
29
+ yarn add formik
24
30
  ```
25
31
 
26
32
  ### Styles
@@ -5,11 +5,11 @@ import { getEllipsis } from '../_styles/mixins';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledAnchorNavigation = /*#__PURE__*/styled.ul.withConfig({
7
7
  displayName: "StyledAnchorNavigation",
8
- componentId: "core-11_33_0__sc-aacdj4-0"
8
+ componentId: "core-12_0_0__sc-aacdj4-0"
9
9
  })(["max-width:200px;margin:0;padding-inline-start:0;"]);
10
10
  export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
11
11
  displayName: "StyledAnchorSection",
12
- componentId: "core-11_33_0__sc-aacdj4-1"
12
+ componentId: "core-12_0_0__sc-aacdj4-1"
13
13
  })(["display:flex;cursor:pointer;border-left:", "px solid ", ";background-color:", ";border-top-right-radius:4px;border-bottom-right-radius:4px;:hover{border-left:", "px solid ", ";background-color:", ";}"], spacing.xs, function (_ref) {
14
14
  var $selected = _ref.$selected;
15
15
  return $selected ? colors.gray15 : colors.gray90;
@@ -22,7 +22,7 @@ export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
22
22
  }, colors.gray90);
23
23
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
24
24
  displayName: "StyledAnchor",
25
- componentId: "core-11_33_0__sc-aacdj4-2"
25
+ componentId: "core-12_0_0__sc-aacdj4-2"
26
26
  })(["width:100%;padding:6px ", "px;", " ", ";", " :focus-visible{box-shadow:inset 0 0 0 2px ", ";outline:none;}"], spacing.sm, getTypographyIntent('body'), function (_ref4) {
27
27
  var $selected = _ref4.$selected;
28
28
  return $selected ? css(["font-weight:600;"]) : '';
@@ -24,26 +24,26 @@ var iconSize = {
24
24
  };
25
25
  export var StyledAvatarOverlay = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledAvatarOverlay",
27
- componentId: "core-11_33_0__sc-7q2ydl-0"
27
+ componentId: "core-12_0_0__sc-7q2ydl-0"
28
28
  })(["width:100%;height:100%;position:absolute;top:0;left:0;border-radius:100%;opacity:0;"]);
29
29
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledIconContainer",
31
- componentId: "core-11_33_0__sc-7q2ydl-1"
31
+ componentId: "core-12_0_0__sc-7q2ydl-1"
32
32
  })(["display:inline-flex;"]);
33
33
  export var StyledLabelContainer = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledLabelContainer",
35
- componentId: "core-11_33_0__sc-7q2ydl-2"
35
+ componentId: "core-12_0_0__sc-7q2ydl-2"
36
36
  })(["text-transform:uppercase;"]);
37
37
  export var StyledPortraitContainer = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledPortraitContainer",
39
- componentId: "core-11_33_0__sc-7q2ydl-3"
39
+ componentId: "core-12_0_0__sc-7q2ydl-3"
40
40
  })(["background-color:", ";background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;width:100%;", ""], colors.white, function (_ref) {
41
41
  var $imageUrl = _ref.$imageUrl;
42
42
  return css(["background-image:url(", ");"], $imageUrl);
43
43
  });
44
44
  export var StyledAvatarContainer = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledAvatarContainer",
46
- componentId: "core-11_33_0__sc-7q2ydl-4"
46
+ componentId: "core-12_0_0__sc-7q2ydl-4"
47
47
  })(["display:inline-flex;justify-content:center;align-items:center;border-radius:100%;overflow:hidden;position:relative;cursor:default;color:", ";background-color:", ";text-decoration:none;a:has(> &){text-decoration:none;}&:focus{", "}a:focus:has(> &){", " border-radius:100%;}", " ", ";"], colors.white, colors.gray30, getGapOutlineFocus, getGapOutlineFocus, function (_ref2) {
48
48
  var _ref2$$size = _ref2.$size,
49
49
  $size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
@@ -16,7 +16,7 @@ export interface BaseAvatarProps extends Props {
16
16
  * Sets the Avatar's clickable UI state. For accessibility, see `role`
17
17
  * @ally This prop is around UI and has 0 UX or JS for interaction, try `role` instead.
18
18
  * @defaultValue false
19
- * @deprecated Reviewing for removal from system, prefer accessible `role` for interactive UI.
19
+ * @deprecated Reviewing for removal from system, prefer accessible `role="link"` or `role="button"` for interactive UI.
20
20
  * @deprecatedSince TBD
21
21
  * @since 10.19.0
22
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.types.js","names":[],"sources":["../../src/Avatar/Avatar.types.ts"],"sourcesContent":["import type { AriaButtonProps } from '@react-aria/button'\nimport type React from 'react'\nimport type { Polymorphic } from '../_utils/polymorphic'\nimport type { AriaLabelled, Props, Size } from '../_utils/types'\n\nexport type AvatarSize = Extract<Size, 'md' | 'lg' | 'xl'>\n\nexport type AvatarRoleType = 'link' | 'button' | 'img'\n\nexport interface AvatarPolyMap\n extends Record<AvatarRoleType, React.ElementType> {\n button: 'div'\n img: 'div'\n link: 'a'\n}\n\n// Add undefined for aria-hidden\nexport type AvatarRoles = AvatarRoleType | undefined\n\nexport type AvatarRef<Role extends AvatarRoles = undefined> =\n Role extends AvatarRoleType\n ? Polymorphic.Ref<AvatarPolyMap, Role>\n : React.ComponentPropsWithRef<'div'>['ref']\n\nexport interface BaseAvatarProps extends Props {\n /**\n * Sets the Avatar's clickable UI state. For accessibility, see `role`\n * @ally This prop is around UI and has 0 UX or JS for interaction, try `role` instead.\n * @defaultValue false\n * @deprecated Reviewing for removal from system, prefer accessible `role` for interactive UI.\n * @deprecatedSince TBD\n * @since 10.19.0\n */\n clickable?: boolean\n /**\n * Sets the Avatar's disabled state\n *\n * @defaultValue false\n */\n disabled?: boolean\n /**\n * Sets the Avatar's size\n *\n * @defaultValue md\n *\n * @deprecated\n *\n * Size \"xl\" has been deprecated and will be removed in a future version.\n * Please use \"lg\" instead of \"xl\".\n *\n * **Before**\n *\n * `<Avatar size=\"xl\" />`\n *\n * **After**\n *\n * `<Avatar size=\"lg\" />`\n *\n * @deprecatedSince 10.20.0\n * @since 10.19.0\n */\n size?: AvatarSize\n}\n\ntype DecorativeAvatarProps<Role extends AvatarRoles = undefined> = {\n 'aria-hidden': true\n role?: Role\n} & BaseAvatarProps\n\nexport type AvatarProps<Role extends AvatarRoles = undefined> =\n Role extends 'link'\n ? Polymorphic.ComponentPropsWithRef<\n AvatarPolyMap,\n 'link',\n 'href',\n AriaLabelled<BaseAvatarProps>\n >\n : Role extends 'button'\n ? Polymorphic.ComponentPropsWithRef<\n AvatarPolyMap,\n 'button',\n never,\n AriaLabelled<{ onPress: AriaButtonProps['onPress'] } & BaseAvatarProps>\n >\n : Role extends 'img'\n ? Polymorphic.ComponentPropsWithRef<\n AvatarPolyMap,\n 'img',\n never,\n AriaLabelled<BaseAvatarProps>\n >\n : DecorativeAvatarProps & { ref?: AvatarRef<undefined> }\n\nexport interface AvatarIconProps extends Props {\n /**\n * The icon to display\n *\n * @since 10.19.0\n */\n icon: React.ReactNode\n}\n\nexport interface AvatarPortraitProps extends Props {\n /**\n * The Avatar rich media url\n * @since 10.19.0\n */\n imageUrl: string\n}\n\nexport interface AvatarLabelProps extends Props {}\n"],"mappings":""}
1
+ {"version":3,"file":"Avatar.types.js","names":[],"sources":["../../src/Avatar/Avatar.types.ts"],"sourcesContent":["import type { AriaButtonProps } from '@react-aria/button'\nimport type React from 'react'\nimport type { Polymorphic } from '../_utils/polymorphic'\nimport type { AriaLabelled, Props, Size } from '../_utils/types'\n\nexport type AvatarSize = Extract<Size, 'md' | 'lg' | 'xl'>\n\nexport type AvatarRoleType = 'link' | 'button' | 'img'\n\nexport interface AvatarPolyMap\n extends Record<AvatarRoleType, React.ElementType> {\n button: 'div'\n img: 'div'\n link: 'a'\n}\n\n// Add undefined for aria-hidden\nexport type AvatarRoles = AvatarRoleType | undefined\n\nexport type AvatarRef<Role extends AvatarRoles = undefined> =\n Role extends AvatarRoleType\n ? Polymorphic.Ref<AvatarPolyMap, Role>\n : React.ComponentPropsWithRef<'div'>['ref']\n\nexport interface BaseAvatarProps extends Props {\n /**\n * Sets the Avatar's clickable UI state. For accessibility, see `role`\n * @ally This prop is around UI and has 0 UX or JS for interaction, try `role` instead.\n * @defaultValue false\n * @deprecated Reviewing for removal from system, prefer accessible `role=\"link\"` or `role=\"button\"` for interactive UI.\n * @deprecatedSince TBD\n * @since 10.19.0\n */\n clickable?: boolean\n /**\n * Sets the Avatar's disabled state\n *\n * @defaultValue false\n */\n disabled?: boolean\n /**\n * Sets the Avatar's size\n *\n * @defaultValue md\n *\n * @deprecated\n *\n * Size \"xl\" has been deprecated and will be removed in a future version.\n * Please use \"lg\" instead of \"xl\".\n *\n * **Before**\n *\n * `<Avatar size=\"xl\" />`\n *\n * **After**\n *\n * `<Avatar size=\"lg\" />`\n *\n * @deprecatedSince 10.20.0\n * @since 10.19.0\n */\n size?: AvatarSize\n}\n\ntype DecorativeAvatarProps<Role extends AvatarRoles = undefined> = {\n 'aria-hidden': true\n role?: Role\n} & BaseAvatarProps\n\nexport type AvatarProps<Role extends AvatarRoles = undefined> =\n Role extends 'link'\n ? Polymorphic.ComponentPropsWithRef<\n AvatarPolyMap,\n 'link',\n 'href',\n AriaLabelled<BaseAvatarProps>\n >\n : Role extends 'button'\n ? Polymorphic.ComponentPropsWithRef<\n AvatarPolyMap,\n 'button',\n never,\n AriaLabelled<{ onPress: AriaButtonProps['onPress'] } & BaseAvatarProps>\n >\n : Role extends 'img'\n ? Polymorphic.ComponentPropsWithRef<\n AvatarPolyMap,\n 'img',\n never,\n AriaLabelled<BaseAvatarProps>\n >\n : DecorativeAvatarProps & { ref?: AvatarRef<undefined> }\n\nexport interface AvatarIconProps extends Props {\n /**\n * The icon to display\n *\n * @since 10.19.0\n */\n icon: React.ReactNode\n}\n\nexport interface AvatarPortraitProps extends Props {\n /**\n * The Avatar rich media url\n * @since 10.19.0\n */\n imageUrl: string\n}\n\nexport interface AvatarLabelProps extends Props {}\n"],"mappings":""}
@@ -7,32 +7,32 @@ import { spacing } from '../_styles/spacing';
7
7
  var maxModalWidth = 528;
8
8
  var StyledBaseAvatar = /*#__PURE__*/styled(Avatar).withConfig({
9
9
  displayName: "StyledBaseAvatar",
10
- componentId: "core-11_33_0__sc-ft72hu-0"
10
+ componentId: "core-12_0_0__sc-ft72hu-0"
11
11
  })(["border-color:", ";border-style:solid;border-width:1px;&:hover{z-index:1;}&[role='img']:focus{outline:none;}"], colors.white);
12
12
  export var StyledAvatar = /*#__PURE__*/styled(StyledBaseAvatar).withConfig({
13
13
  displayName: "StyledAvatar",
14
- componentId: "core-11_33_0__sc-ft72hu-1"
14
+ componentId: "core-12_0_0__sc-ft72hu-1"
15
15
  })(["background-color:", ";"], function (props) {
16
16
  return colors[props.$color];
17
17
  });
18
18
  export var StyledContactItems = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledContactItems",
20
- componentId: "core-11_33_0__sc-ft72hu-2"
20
+ componentId: "core-12_0_0__sc-ft72hu-2"
21
21
  })(["padding-top:", "px;padding-bottom:", "px;padding-left:", "px;"], spacing.sm, spacing.sm, spacing.xs);
22
22
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledWrapper",
24
- componentId: "core-11_33_0__sc-ft72hu-3"
24
+ componentId: "core-12_0_0__sc-ft72hu-3"
25
25
  })(["display:flex;", " + ", "{margin-left:-", "px;}"], StyledAvatar, StyledAvatar, spacing.sm);
26
26
  export var StyledViewAllWrapper = /*#__PURE__*/styled.div.withConfig({
27
27
  displayName: "StyledViewAllWrapper",
28
- componentId: "core-11_33_0__sc-ft72hu-4"
28
+ componentId: "core-12_0_0__sc-ft72hu-4"
29
29
  })(["display:flex;margin-left:", "px;margin-bottom:", "px;"], spacing.md, spacing.lg);
30
30
  export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
31
31
  displayName: "StyledModalBody",
32
- componentId: "core-11_33_0__sc-ft72hu-5"
32
+ componentId: "core-12_0_0__sc-ft72hu-5"
33
33
  })(["max-width:", "px;"], maxModalWidth);
34
34
  export var StyledContactItem = /*#__PURE__*/styled(ContactItem).withConfig({
35
35
  displayName: "StyledContactItem",
36
- componentId: "core-11_33_0__sc-ft72hu-6"
36
+ componentId: "core-12_0_0__sc-ft72hu-6"
37
37
  })(["flex-shrink:0;"]);
38
38
  //# sourceMappingURL=AvatarStack.styles.js.map
@@ -1,10 +1,10 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledBadge = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledBadge",
4
- componentId: "core-11_33_0__sc-rpertu-0"
4
+ componentId: "core-12_0_0__sc-rpertu-0"
5
5
  })(["display:inline-block;position:relative;"]);
6
6
  export var StyledBadgeLabel = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledBadgeLabel",
8
- componentId: "core-11_33_0__sc-rpertu-1"
8
+ componentId: "core-12_0_0__sc-rpertu-1"
9
9
  })(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
10
10
  //# sourceMappingURL=Badge.styles.js.map
@@ -2,11 +2,6 @@ import React from 'react';
2
2
  import type { ButtonAttributes, DivAttributes, Props } from '../_utils/types';
3
3
  import type { BannerExpandableContentProps, BannerIconProps, BannerProps, BannerVariant } from './Banner.types';
4
4
  export declare const ErrorBanner: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
5
- /**
6
- * @deprecated Component will be removed in a future version. Instead, please consider using "success" variant of Toast component.
7
- * @deprecatedSince 10.7.0
8
- */
9
- export declare const SuccessBanner: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
10
5
  export declare const InfoBanner: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
11
6
  /**
12
7
  * @since 11.26.0
@@ -11,8 +11,7 @@ var _excluded = ["children", "variant"],
11
11
  _excluded11 = ["children"],
12
12
  _excluded12 = ["children"],
13
13
  _excluded13 = ["children"],
14
- _excluded14 = ["children"],
15
- _excluded15 = ["children", "variant"];
14
+ _excluded14 = ["children", "variant"];
16
15
  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); }
17
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
17
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -22,7 +21,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
22
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
22
  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; }
24
23
  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; }
25
- import { Check, Clear, EllipsisVertical, Error, Info, Warning } from '@procore/core-icons/dist';
24
+ import { Clear, EllipsisVertical, Error, Info, Warning } from '@procore/core-icons/dist';
26
25
  import { partition } from 'ramda';
27
26
  import React from 'react';
28
27
  import { Button } from '../Button/Button';
@@ -179,26 +178,9 @@ export var ErrorBanner = /*#__PURE__*/React.forwardRef(function ErrorBanner(_ref
179
178
  })
180
179
  }), children);
181
180
  });
182
-
183
- /**
184
- * @deprecated Component will be removed in a future version. Instead, please consider using "success" variant of Toast component.
185
- * @deprecatedSince 10.7.0
186
- */
187
- export var SuccessBanner = /*#__PURE__*/React.forwardRef(function SuccessBanner(_ref17, ref) {
181
+ export var InfoBanner = /*#__PURE__*/React.forwardRef(function InfoBanner(_ref17, ref) {
188
182
  var children = _ref17.children,
189
183
  props = _objectWithoutProperties(_ref17, _excluded12);
190
- return /*#__PURE__*/React.createElement(Banner, _extends({
191
- ref: ref,
192
- variant: "success"
193
- }, props), /*#__PURE__*/React.createElement(Icon, {
194
- icon: /*#__PURE__*/React.createElement(Check, {
195
- size: "lg"
196
- })
197
- }), children);
198
- });
199
- export var InfoBanner = /*#__PURE__*/React.forwardRef(function InfoBanner(_ref18, ref) {
200
- var children = _ref18.children,
201
- props = _objectWithoutProperties(_ref18, _excluded13);
202
184
  return /*#__PURE__*/React.createElement(Banner, _extends({
203
185
  ref: ref,
204
186
  variant: "info"
@@ -212,9 +194,9 @@ export var InfoBanner = /*#__PURE__*/React.forwardRef(function InfoBanner(_ref18
212
194
  /**
213
195
  * @since 11.26.0
214
196
  */
215
- export var AttentionBanner = /*#__PURE__*/React.forwardRef(function AttentionBanner(_ref19, ref) {
216
- var children = _ref19.children,
217
- props = _objectWithoutProperties(_ref19, _excluded14);
197
+ export var AttentionBanner = /*#__PURE__*/React.forwardRef(function AttentionBanner(_ref18, ref) {
198
+ var children = _ref18.children,
199
+ props = _objectWithoutProperties(_ref18, _excluded13);
218
200
  return /*#__PURE__*/React.createElement(Banner, _extends({
219
201
  ref: ref,
220
202
  variant: "attention"
@@ -230,11 +212,11 @@ export var AttentionBanner = /*#__PURE__*/React.forwardRef(function AttentionBan
230
212
  * @deprecatedSince 11.26.0
231
213
  */
232
214
  export var ActionBanner = AttentionBanner;
233
- export var UNSAFE_MiniBanner = /*#__PURE__*/React.forwardRef(function MiniBanner(_ref20, ref) {
234
- var children = _ref20.children,
235
- _ref20$variant = _ref20.variant,
236
- variant = _ref20$variant === void 0 ? 'info' : _ref20$variant,
237
- props = _objectWithoutProperties(_ref20, _excluded15);
215
+ export var UNSAFE_MiniBanner = /*#__PURE__*/React.forwardRef(function MiniBanner(_ref19, ref) {
216
+ var children = _ref19.children,
217
+ _ref19$variant = _ref19.variant,
218
+ variant = _ref19$variant === void 0 ? 'info' : _ref19$variant,
219
+ props = _objectWithoutProperties(_ref19, _excluded14);
238
220
  return /*#__PURE__*/React.createElement(StyledMiniBannerContainer, _extends({
239
221
  ref: ref,
240
222
  variant: variant
@@ -251,7 +233,6 @@ DropdownAction.displayName = 'Banner.DropdownAction';
251
233
  Icon.displayName = 'Banner.Icon';
252
234
  Dismiss.displayName = 'Banner.Dismiss';
253
235
  ErrorBanner.displayName = 'ErrorBanner';
254
- SuccessBanner.displayName = 'SuccessBanner';
255
236
  InfoBanner.displayName = 'InfoBanner';
256
237
  AttentionBanner.displayName = 'AttentionBanner';
257
238
  ActionBanner.displayName = 'ActionBanner';
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","names":["Check","Clear","EllipsisVertical","Error","Info","Warning","partition","React","Button","Card","Menu","useMenu","OverlayTrigger","useI18nContext","OverflowObserver","addSubcomponents","mergeRefs","StyledAction","StyledActionsTrigger","StyledBannerContainer","StyledBody","StyledContent","StyledExpandableContent","StyledExpandableContentContainer","StyledIconContainer","StyledMiniBannerContainer","StyledTitle","Banner_","forwardRef","Banner","_ref","ref","children","variant","props","_objectWithoutProperties","_excluded","_ref2","element","isValidElement","type","ExpandableContent","Children","toArray","_ref3","_slicedToArray","expandableContentNodes","content","isExpandable","length","createElement","_extends","Fragment","justifyContent","alignItems","Content","_ref4","_excluded2","_ref5","_ref5$expanded","expanded","_ref5$expandableConte","expandableContentMaxHeight","_excluded3","containerRef","useRef","_ref6","overflowRef","isOverflowingY","onAnimationEnd","current","tabIndex","Title","_ref7","_excluded4","Body","_ref8","_excluded5","Action","_ref9","_excluded6","DropdownAction","_ref10","_excluded7","Item","item","Actions","_ref11","_excluded8","actionButtons","filter","overlay","node","focus","usingHook","isSelectable","_ref12","Options","map","_ref13","idx","actionButtonProps","key","placement","arrow","icon","Icon","_ref14","_excluded9","Dismiss","_ref15","_excluded10","I18n","t","ErrorBanner","_ref16","_excluded11","size","SuccessBanner","_ref17","_excluded12","InfoBanner","_ref18","_excluded13","AttentionBanner","_ref19","_excluded14","ActionBanner","UNSAFE_MiniBanner","MiniBanner","_ref20","_ref20$variant","_excluded15","displayName"],"sources":["../../src/Banner/Banner.tsx"],"sourcesContent":["import {\n Check,\n Clear,\n EllipsisVertical,\n Error,\n Info,\n Warning,\n} from '@procore/core-icons/dist'\nimport { partition } from 'ramda'\nimport React from 'react'\nimport { Button } from '../Button/Button'\nimport { Card } from '../Card/Card'\nimport { Menu, useMenu } from '../Menu/Menu'\nimport { OverlayTrigger } from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { ButtonAttributes, DivAttributes, Props } from '../_utils/types'\nimport {\n StyledAction,\n StyledActionsTrigger,\n StyledBannerContainer,\n StyledBody,\n StyledContent,\n StyledExpandableContent,\n StyledExpandableContentContainer,\n StyledIconContainer,\n StyledMiniBannerContainer,\n StyledTitle,\n} from './Banner.styles'\nimport type {\n BannerExpandableContentProps,\n BannerIconProps,\n BannerProps,\n BannerVariant,\n} from './Banner.types'\n\nconst Banner_ = React.forwardRef<HTMLDivElement, DivAttributes & BannerProps>(\n function Banner({ children, variant, ...props }, ref) {\n const [expandableContentNodes, content] = partition(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === ExpandableContent,\n React.Children.toArray(children)\n ) as [React.ReactElement[], React.ReactElement[]]\n\n const isExpandable = expandableContentNodes.length !== 0\n\n return (\n <StyledBannerContainer\n ref={ref}\n isExpandable={isExpandable}\n variant={variant}\n {...props}\n >\n {isExpandable ? (\n <>\n <StyledExpandableContentContainer\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n {content}\n </StyledExpandableContentContainer>\n {expandableContentNodes}\n </>\n ) : (\n content\n )}\n </StyledBannerContainer>\n )\n }\n)\n\nconst Content = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Content({ children, ...props }, ref) {\n return (\n <StyledContent {...props} ref={ref}>\n {children}\n </StyledContent>\n )\n }\n)\n\nconst ExpandableContent = React.forwardRef<\n HTMLDivElement,\n DivAttributes & BannerExpandableContentProps\n>(function ExpandableContent(\n { children, expanded = false, expandableContentMaxHeight = 120, ...props },\n ref\n) {\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n return expanded ? (\n <OverflowObserver>\n {({ ref: overflowRef, isOverflowingY }) => (\n <StyledExpandableContent\n ref={mergeRefs(ref, containerRef)}\n data-qa=\"core-banner-expandable-content\"\n onAnimationEnd={() => overflowRef(containerRef.current)}\n isOverflowingY={isOverflowingY}\n expandableContentMaxHeight={expandableContentMaxHeight}\n {...props}\n {...(isOverflowingY && { tabIndex: 0 })}\n >\n {children}\n </StyledExpandableContent>\n )}\n </OverflowObserver>\n ) : null\n})\n\nconst Title = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Title({ children, ...props }, ref) {\n return (\n <StyledTitle {...props} ref={ref}>\n {children}\n </StyledTitle>\n )\n }\n)\n\nconst Body = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Body({ children, ...props }, ref) {\n return (\n <StyledBody {...props} ref={ref}>\n {children}\n </StyledBody>\n )\n }\n)\n\nconst Action = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Action({ children, ...props }, ref) {\n return (\n <StyledAction {...props} ref={ref}>\n {children}\n </StyledAction>\n )\n }\n)\n\nconst DropdownAction = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function DropdownAction({ children, ...props }, ref) {\n return (\n <Menu.Item ref={ref} item={null} {...(props as any)}>\n {children}\n </Menu.Item>\n )\n }\n)\n\nconst Actions = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Actions({ children, ...props }, ref) {\n const actionButtons = React.Children.toArray(children).filter(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === Action\n ) as React.ReactElement[]\n\n return (\n <OverlayTrigger\n overlay={\n <Card>\n <Menu\n ref={(node) => node?.focus()}\n usingHook={useMenu({\n isSelectable: ({ type }) => type === DropdownAction,\n })}\n >\n <Menu.Options>\n {actionButtons.map(({ props: actionButtonProps }, idx) => (\n <DropdownAction key={idx} {...actionButtonProps} />\n ))}\n </Menu.Options>\n </Menu>\n </Card>\n }\n ref={ref}\n placement=\"bottom-right\"\n >\n <StyledActionsTrigger\n data-qa=\"core-banner-actions-trigger\"\n variant=\"tertiary\"\n arrow={false}\n icon={<EllipsisVertical />}\n {...props}\n />\n </OverlayTrigger>\n )\n }\n)\n\nconst Icon = React.forwardRef<HTMLDivElement, DivAttributes & BannerIconProps>(\n function Icon({ children, icon, ...props }, ref) {\n return (\n <StyledIconContainer ref={ref} aria-hidden=\"true\" {...props}>\n {icon}\n </StyledIconContainer>\n )\n }\n)\n\nconst Dismiss = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Dismiss({ children, ...props }, ref) {\n const I18n = useI18nContext()\n\n return (\n <Button\n aria-label={I18n.t('core.banner.dismissAlert')}\n ref={ref}\n {...props}\n icon={<Clear />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\nexport const ErrorBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function ErrorBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"error\" {...props}>\n <Icon icon={<Error size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @deprecated Component will be removed in a future version. Instead, please consider using \"success\" variant of Toast component.\n * @deprecatedSince 10.7.0\n */\nexport const SuccessBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function SuccessBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"success\" {...props}>\n <Icon icon={<Check size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const InfoBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function InfoBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"info\" {...props}>\n <Icon icon={<Info size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @since 11.26.0\n */\nexport const AttentionBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function AttentionBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"attention\" {...props}>\n <Icon icon={<Warning size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @deprecated ActionBanner was renamed to AttentionBanner.\n * @deprecatedSince 11.26.0\n */\nexport const ActionBanner = AttentionBanner\n\nexport const UNSAFE_MiniBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props & { variant?: BannerVariant }\n>(function MiniBanner({ children, variant = 'info', ...props }, ref) {\n return (\n <StyledMiniBannerContainer ref={ref} variant={variant} {...props}>\n {children}\n </StyledMiniBannerContainer>\n )\n})\n\nBanner_.displayName = 'Banner'\n\nBody.displayName = 'Banner.Body'\n\nContent.displayName = 'Banner.Content'\n\nExpandableContent.displayName = 'Banner.ExpandableContent'\n\nTitle.displayName = 'Banner.Title'\n\nAction.displayName = 'Banner.Action'\n\nActions.displayName = 'Banner.Actions'\n\nDropdownAction.displayName = 'Banner.DropdownAction'\n\nIcon.displayName = 'Banner.Icon'\n\nDismiss.displayName = 'Banner.Dismiss'\n\nErrorBanner.displayName = 'ErrorBanner'\n\nSuccessBanner.displayName = 'SuccessBanner'\n\nInfoBanner.displayName = 'InfoBanner'\n\nAttentionBanner.displayName = 'AttentionBanner'\n\nActionBanner.displayName = 'ActionBanner'\n\nUNSAFE_MiniBanner.displayName = 'MiniBanner'\n\n/**\n\n\n We use banners to contextually convey complicated or supplemental information\n to a user. Depending on the type of banner, we can provide more information\n about a feature or page the user is on, an action the user needs to perform,\n or an error the user has encountered.\n\n Procore banners are informative and actionable. Always explain what the user\n needs to know (and in some cases, why they’re seeing the banner), and provide\n an actionable next step.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-banner--demo)\n\n @see [Design Guidelines](https://design.procore.com/banner)\n\n */\nexport const Banner = addSubcomponents(\n {\n Body,\n Content,\n ExpandableContent,\n Title,\n Action,\n Actions,\n Icon,\n Dismiss,\n },\n Banner_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SACEA,KAAK,EACLC,KAAK,EACLC,gBAAgB,EAChBC,KAAK,EACLC,IAAI,EACJC,OAAO,QACF,0BAA0B;AACjC,SAASC,SAAS,QAAQ,OAAO;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC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AAI,CAAC2B,WAAW,GAAG,aAAa;AAEhCxB,OAAO,CAACwB,WAAW,GAAG,gBAAgB;AAEtCnB,WAAW,CAACmB,WAAW,GAAG,aAAa;AAEvCf,aAAa,CAACe,WAAW,GAAG,eAAe;AAE3CZ,UAAU,CAACY,WAAW,GAAG,YAAY;AAErCT,eAAe,CAACS,WAAW,GAAG,iBAAiB;AAE/CN,YAAY,CAACM,WAAW,GAAG,cAAc;AAEzCL,iBAAiB,CAACK,WAAW,GAAG,YAAY;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMxG,MAAM,GAAGd,gBAAgB,CACpC;EACE4D,IAAI,EAAJA,IAAI;EACJpB,OAAO,EAAPA,OAAO;EACPd,iBAAiB,EAAjBA,iBAAiB;EACjB+B,KAAK,EAALA,KAAK;EACLM,MAAM,EAANA,MAAM;EACNQ,OAAO,EAAPA,OAAO;EACPoB,IAAI,EAAJA,IAAI;EACJG,OAAO,EAAPA;AACF,CAAC,EACDlF,OACF,CAAC"}
1
+ {"version":3,"file":"Banner.js","names":["Clear","EllipsisVertical","Error","Info","Warning","partition","React","Button","Card","Menu","useMenu","OverlayTrigger","useI18nContext","OverflowObserver","addSubcomponents","mergeRefs","StyledAction","StyledActionsTrigger","StyledBannerContainer","StyledBody","StyledContent","StyledExpandableContent","StyledExpandableContentContainer","StyledIconContainer","StyledMiniBannerContainer","StyledTitle","Banner_","forwardRef","Banner","_ref","ref","children","variant","props","_objectWithoutProperties","_excluded","_ref2","element","isValidElement","type","ExpandableContent","Children","toArray","_ref3","_slicedToArray","expandableContentNodes","content","isExpandable","length","createElement","_extends","Fragment","justifyContent","alignItems","Content","_ref4","_excluded2","_ref5","_ref5$expanded","expanded","_ref5$expandableConte","expandableContentMaxHeight","_excluded3","containerRef","useRef","_ref6","overflowRef","isOverflowingY","onAnimationEnd","current","tabIndex","Title","_ref7","_excluded4","Body","_ref8","_excluded5","Action","_ref9","_excluded6","DropdownAction","_ref10","_excluded7","Item","item","Actions","_ref11","_excluded8","actionButtons","filter","overlay","node","focus","usingHook","isSelectable","_ref12","Options","map","_ref13","idx","actionButtonProps","key","placement","arrow","icon","Icon","_ref14","_excluded9","Dismiss","_ref15","_excluded10","I18n","t","ErrorBanner","_ref16","_excluded11","size","InfoBanner","_ref17","_excluded12","AttentionBanner","_ref18","_excluded13","ActionBanner","UNSAFE_MiniBanner","MiniBanner","_ref19","_ref19$variant","_excluded14","displayName"],"sources":["../../src/Banner/Banner.tsx"],"sourcesContent":["import {\n Clear,\n EllipsisVertical,\n Error,\n Info,\n Warning,\n} from '@procore/core-icons/dist'\nimport { partition } from 'ramda'\nimport React from 'react'\nimport { Button } from '../Button/Button'\nimport { Card } from '../Card/Card'\nimport { Menu, useMenu } from '../Menu/Menu'\nimport { OverlayTrigger } from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { ButtonAttributes, DivAttributes, Props } from '../_utils/types'\nimport {\n StyledAction,\n StyledActionsTrigger,\n StyledBannerContainer,\n StyledBody,\n StyledContent,\n StyledExpandableContent,\n StyledExpandableContentContainer,\n StyledIconContainer,\n StyledMiniBannerContainer,\n StyledTitle,\n} from './Banner.styles'\nimport type {\n BannerExpandableContentProps,\n BannerIconProps,\n BannerProps,\n BannerVariant,\n} from './Banner.types'\n\nconst Banner_ = React.forwardRef<HTMLDivElement, DivAttributes & BannerProps>(\n function Banner({ children, variant, ...props }, ref) {\n const [expandableContentNodes, content] = partition(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === ExpandableContent,\n React.Children.toArray(children)\n ) as [React.ReactElement[], React.ReactElement[]]\n\n const isExpandable = expandableContentNodes.length !== 0\n\n return (\n <StyledBannerContainer\n ref={ref}\n isExpandable={isExpandable}\n variant={variant}\n {...props}\n >\n {isExpandable ? (\n <>\n <StyledExpandableContentContainer\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n {content}\n </StyledExpandableContentContainer>\n {expandableContentNodes}\n </>\n ) : (\n content\n )}\n </StyledBannerContainer>\n )\n }\n)\n\nconst Content = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Content({ children, ...props }, ref) {\n return (\n <StyledContent {...props} ref={ref}>\n {children}\n </StyledContent>\n )\n }\n)\n\nconst ExpandableContent = React.forwardRef<\n HTMLDivElement,\n DivAttributes & BannerExpandableContentProps\n>(function ExpandableContent(\n { children, expanded = false, expandableContentMaxHeight = 120, ...props },\n ref\n) {\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n return expanded ? (\n <OverflowObserver>\n {({ ref: overflowRef, isOverflowingY }) => (\n <StyledExpandableContent\n ref={mergeRefs(ref, containerRef)}\n data-qa=\"core-banner-expandable-content\"\n onAnimationEnd={() => overflowRef(containerRef.current)}\n isOverflowingY={isOverflowingY}\n expandableContentMaxHeight={expandableContentMaxHeight}\n {...props}\n {...(isOverflowingY && { tabIndex: 0 })}\n >\n {children}\n </StyledExpandableContent>\n )}\n </OverflowObserver>\n ) : null\n})\n\nconst Title = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Title({ children, ...props }, ref) {\n return (\n <StyledTitle {...props} ref={ref}>\n {children}\n </StyledTitle>\n )\n }\n)\n\nconst Body = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Body({ children, ...props }, ref) {\n return (\n <StyledBody {...props} ref={ref}>\n {children}\n </StyledBody>\n )\n }\n)\n\nconst Action = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Action({ children, ...props }, ref) {\n return (\n <StyledAction {...props} ref={ref}>\n {children}\n </StyledAction>\n )\n }\n)\n\nconst DropdownAction = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function DropdownAction({ children, ...props }, ref) {\n return (\n <Menu.Item ref={ref} item={null} {...(props as any)}>\n {children}\n </Menu.Item>\n )\n }\n)\n\nconst Actions = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Actions({ children, ...props }, ref) {\n const actionButtons = React.Children.toArray(children).filter(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === Action\n ) as React.ReactElement[]\n\n return (\n <OverlayTrigger\n overlay={\n <Card>\n <Menu\n ref={(node) => node?.focus()}\n usingHook={useMenu({\n isSelectable: ({ type }) => type === DropdownAction,\n })}\n >\n <Menu.Options>\n {actionButtons.map(({ props: actionButtonProps }, idx) => (\n <DropdownAction key={idx} {...actionButtonProps} />\n ))}\n </Menu.Options>\n </Menu>\n </Card>\n }\n ref={ref}\n placement=\"bottom-right\"\n >\n <StyledActionsTrigger\n data-qa=\"core-banner-actions-trigger\"\n variant=\"tertiary\"\n arrow={false}\n icon={<EllipsisVertical />}\n {...props}\n />\n </OverlayTrigger>\n )\n }\n)\n\nconst Icon = React.forwardRef<HTMLDivElement, DivAttributes & BannerIconProps>(\n function Icon({ children, icon, ...props }, ref) {\n return (\n <StyledIconContainer ref={ref} aria-hidden=\"true\" {...props}>\n {icon}\n </StyledIconContainer>\n )\n }\n)\n\nconst Dismiss = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Dismiss({ children, ...props }, ref) {\n const I18n = useI18nContext()\n\n return (\n <Button\n aria-label={I18n.t('core.banner.dismissAlert')}\n ref={ref}\n {...props}\n icon={<Clear />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\nexport const ErrorBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function ErrorBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"error\" {...props}>\n <Icon icon={<Error size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const InfoBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function InfoBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"info\" {...props}>\n <Icon icon={<Info size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @since 11.26.0\n */\nexport const AttentionBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function AttentionBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"attention\" {...props}>\n <Icon icon={<Warning size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @deprecated ActionBanner was renamed to AttentionBanner.\n * @deprecatedSince 11.26.0\n */\nexport const ActionBanner = AttentionBanner\n\nexport const UNSAFE_MiniBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props & { variant?: BannerVariant }\n>(function MiniBanner({ children, variant = 'info', ...props }, ref) {\n return (\n <StyledMiniBannerContainer ref={ref} variant={variant} {...props}>\n {children}\n </StyledMiniBannerContainer>\n )\n})\n\nBanner_.displayName = 'Banner'\n\nBody.displayName = 'Banner.Body'\n\nContent.displayName = 'Banner.Content'\n\nExpandableContent.displayName = 'Banner.ExpandableContent'\n\nTitle.displayName = 'Banner.Title'\n\nAction.displayName = 'Banner.Action'\n\nActions.displayName = 'Banner.Actions'\n\nDropdownAction.displayName = 'Banner.DropdownAction'\n\nIcon.displayName = 'Banner.Icon'\n\nDismiss.displayName = 'Banner.Dismiss'\n\nErrorBanner.displayName = 'ErrorBanner'\n\nInfoBanner.displayName = 'InfoBanner'\n\nAttentionBanner.displayName = 'AttentionBanner'\n\nActionBanner.displayName = 'ActionBanner'\n\nUNSAFE_MiniBanner.displayName = 'MiniBanner'\n\n/**\n\n\n We use banners to contextually convey complicated or supplemental information\n to a user. Depending on the type of banner, we can provide more information\n about a feature or page the user is on, an action the user needs to perform,\n or an error the user has encountered.\n\n Procore banners are informative and actionable. Always explain what the user\n needs to know (and in some cases, why they’re seeing the banner), and provide\n an actionable next step.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-banner--demo)\n\n @see [Design Guidelines](https://design.procore.com/banner)\n\n */\nexport const Banner =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L,iBAAiB,CAACK,WAAW,GAAG,YAAY;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMrG,MAAM,GAAGd,gBAAgB,CACpC;EACE4D,IAAI,EAAJA,IAAI;EACJpB,OAAO,EAAPA,OAAO;EACPd,iBAAiB,EAAjBA,iBAAiB;EACjB+B,KAAK,EAALA,KAAK;EACLM,MAAM,EAANA,MAAM;EACNQ,OAAO,EAAPA,OAAO;EACPoB,IAAI,EAAJA,IAAI;EACJG,OAAO,EAAPA;AACF,CAAC,EACDlF,OACF,CAAC"}
@@ -10,10 +10,6 @@ import { getShadow } from '../_styles/shadows';
10
10
  import { spacing } from '../_styles/spacing';
11
11
  var bannerLeft = 8;
12
12
  var bannerVariantColors = {
13
- action: {
14
- primary: colors.yellow40,
15
- secondary: colors.yellow94
16
- },
17
13
  attention: {
18
14
  primary: colors.yellow40,
19
15
  secondary: colors.yellow94
@@ -26,21 +22,15 @@ var bannerVariantColors = {
26
22
  primary: colors.blue50,
27
23
  secondary: colors.blue96
28
24
  },
29
- success: {
30
- primary: colors.green30,
31
- secondary: colors.green96
32
- },
33
25
  UNSAFE_attention_emphasized: {
34
26
  primary: colors.orange50,
35
27
  secondary: colors.orange98
36
28
  }
37
29
  };
38
30
  var miniBannerVariantColors = {
39
- action: colors.yellow50,
40
31
  attention: colors.yellow50,
41
32
  error: colors.red50,
42
33
  info: colors.blue50,
43
- success: colors.green50,
44
34
  UNSAFE_attention_emphasized: colors.green50
45
35
  };
46
36
  var bannerShadow = getShadow(1, 'bottom');
@@ -49,7 +39,7 @@ var expandContent = function expandContent(maxHeight) {
49
39
  };
50
40
  export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
51
41
  displayName: "StyledBannerContainer",
52
- componentId: "core-11_33_0__sc-149wm7c-0"
42
+ componentId: "core-12_0_0__sc-149wm7c-0"
53
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) {
54
44
  var variant = _ref.variant;
55
45
  var _bannerVariantColors$ = bannerVariantColors[variant],
@@ -62,15 +52,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
62
52
  });
63
53
  export var StyledContent = /*#__PURE__*/styled.div.withConfig({
64
54
  displayName: "StyledContent",
65
- componentId: "core-11_33_0__sc-149wm7c-1"
55
+ componentId: "core-12_0_0__sc-149wm7c-1"
66
56
  })(["align-self:center;margin:", "px ", "px;width:100%;"], spacing.sm, spacing.lg);
67
57
  export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
68
58
  displayName: "StyledExpandableContentContainer",
69
- componentId: "core-11_33_0__sc-149wm7c-2"
59
+ componentId: "core-12_0_0__sc-149wm7c-2"
70
60
  })(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
71
61
  export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
72
62
  displayName: "StyledExpandableContent",
73
- componentId: "core-11_33_0__sc-149wm7c-3"
63
+ componentId: "core-12_0_0__sc-149wm7c-3"
74
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) {
75
65
  var isOverflowingY = _ref3.isOverflowingY;
76
66
  return isOverflowingY && focusable;
@@ -80,23 +70,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
80
70
  });
81
71
  export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
82
72
  displayName: "StyledTitle",
83
- componentId: "core-11_33_0__sc-149wm7c-4"
73
+ componentId: "core-12_0_0__sc-149wm7c-4"
84
74
  })(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
85
75
  export var StyledBody = /*#__PURE__*/styled.div.withConfig({
86
76
  displayName: "StyledBody",
87
- componentId: "core-11_33_0__sc-149wm7c-5"
77
+ componentId: "core-12_0_0__sc-149wm7c-5"
88
78
  })(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
89
79
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
90
80
  displayName: "StyledIconContainer",
91
- componentId: "core-11_33_0__sc-149wm7c-6"
81
+ componentId: "core-12_0_0__sc-149wm7c-6"
92
82
  })(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
93
83
  export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
94
84
  displayName: "StyledActionsTrigger",
95
- componentId: "core-11_33_0__sc-149wm7c-7"
85
+ componentId: "core-12_0_0__sc-149wm7c-7"
96
86
  })(["flex-shrink:0;& + ", ",& + ", "{margin-left:", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
97
87
  export var StyledAction = /*#__PURE__*/styled.div.withConfig({
98
88
  displayName: "StyledAction",
99
- componentId: "core-11_33_0__sc-149wm7c-8"
89
+ componentId: "core-12_0_0__sc-149wm7c-8"
100
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);
101
91
  function getMiniBannerIconColor(_ref5) {
102
92
  var variant = _ref5.variant;
@@ -104,6 +94,6 @@ function getMiniBannerIconColor(_ref5) {
104
94
  }
105
95
  export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
106
96
  displayName: "StyledMiniBannerContainer",
107
- componentId: "core-11_33_0__sc-149wm7c-9"
97
+ componentId: "core-12_0_0__sc-149wm7c-9"
108
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);
109
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","action","primary","yellow40","secondary","yellow94","attention","error","red50","red98","info","blue50","blue96","success","green30","green96","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 action: {\n primary: colors.yellow40,\n secondary: colors.yellow94,\n },\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 success: {\n primary: colors.green30,\n secondary: colors.green96,\n },\n UNSAFE_attention_emphasized: {\n primary: colors.orange50,\n secondary: colors.orange98,\n },\n} as const\n\nconst miniBannerVariantColors = {\n action: colors.yellow50,\n attention: colors.yellow50,\n error: colors.red50,\n info: colors.blue50,\n success: colors.green50,\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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E,CAE5B;AAED,OAAO,IAAM4B,YAAY,gBAAGpE,MAAM,CAAC0C,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8JAC1BhC,OAAO,CAAC2B,EAAE,EAEdrC,YAAY,EAASC,gBAAgB,EAAS+D,oBAAoB,EACvDtD,OAAO,CAAC2B,EAAE,EAGzBrC,YAAY,EAAKC,gBAAgB,EAExBM,MAAM,CAACqC,MAAM,EAGNrC,MAAM,CAAC2D,MAAM,EAClB3D,MAAM,CAACqC,MAAM,CAG3B;AAED,SAASuB,sBAAsBA,CAAAC,KAAA,EAA0C;EAAA,IAAvCrB,OAAO,GAAAqB,KAAA,CAAPrB,OAAO;EACvC,OAAOjD,GAAG,0BACJmD,mBAAmB,EACZlB,uBAAuB,CAACgB,OAAO,CAAC;AAG/C;AAEA,OAAO,IAAMsB,yBAAyB,gBAAGxE,MAAM,CAAC0C,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8IAI7BnC,MAAM,CAAC+D,MAAM,EAGpB5D,OAAO,CAACiC,EAAE,EAErBvC,mBAAmB,CAAC,OAAO,CAAC,EAE5B+D,sBAAsB,EAEpBf,aAAa,EACL1C,OAAO,CAAC2B,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 { 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,EAAE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AMmB,oBAAoB,gBAAG/D,MAAM,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,13 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { Props } from '../_utils/types';
3
- /**
4
- * * @deprecated `success` and `action` variants are deprecated. Instead, please consider using `success` variant of `Toast` component. Replace `action` with the `attention` variant or see the `AttentionBanner` component.
5
- */
6
- export declare type BannerVariant = 'action' | 'attention' | 'error' | 'info' | 'success' | 'UNSAFE_attention_emphasized';
3
+ export declare type BannerVariant = 'attention' | 'error' | 'info' | 'UNSAFE_attention_emphasized';
7
4
  export interface BannerProps extends Props {
8
5
  /**
9
6
  * Sets the banner's variant.
10
- * `action` is deprecated and was renamed to `attention`.
11
7
  *
12
8
  * @since 10.19.0
13
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.types.js","names":[],"sources":["../../src/Banner/Banner.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\n/**\n * * @deprecated `success` and `action` variants are deprecated. Instead, please consider using `success` variant of `Toast` component. Replace `action` with the `attention` variant or see the `AttentionBanner` component.\n */\nexport type BannerVariant =\n | 'action'\n | 'attention'\n | 'error'\n | 'info'\n | 'success'\n | 'UNSAFE_attention_emphasized'\n\nexport interface BannerProps extends Props {\n /**\n * Sets the banner's variant.\n * `action` is deprecated and was renamed to `attention`.\n *\n * @since 10.19.0\n */\n variant: BannerVariant\n}\n\nexport interface BannerIconProps extends Props {\n /**\n * @since 10.19.0\n */\n icon: React.ReactNode\n}\n\nexport interface BannerExpandableContentProps extends Props {\n /**\n * Expands banner content\n * @since 10.19.0\n */\n expanded: boolean\n /**\n * Max height for the expanded content pane. (Optional)\n * Defaults to 120.\n *\n * @since 11.5.*\n */\n expandableContentMaxHeight?: number\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Banner.types.js","names":[],"sources":["../../src/Banner/Banner.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport type BannerVariant =\n | 'attention'\n | 'error'\n | 'info'\n | 'UNSAFE_attention_emphasized'\n\nexport interface BannerProps extends Props {\n /**\n * Sets the banner's variant.\n *\n * @since 10.19.0\n */\n variant: BannerVariant\n}\n\nexport interface BannerIconProps extends Props {\n /**\n * @since 10.19.0\n */\n icon: React.ReactNode\n}\n\nexport interface BannerExpandableContentProps extends Props {\n /**\n * Expands banner content\n * @since 10.19.0\n */\n expanded: boolean\n /**\n * Max height for the expanded content pane. (Optional)\n * Defaults to 120.\n *\n * @since 11.5.*\n */\n expandableContentMaxHeight?: number\n}\n"],"mappings":""}
@@ -1,2 +1,2 @@
1
- export { ActionBanner, AttentionBanner, Banner, ErrorBanner, InfoBanner, SuccessBanner, UNSAFE_MiniBanner, } from './Banner';
1
+ export { ActionBanner, AttentionBanner, Banner, ErrorBanner, InfoBanner, UNSAFE_MiniBanner, } from './Banner';
2
2
  export type { BannerExpandableContentProps, BannerProps } from './Banner.types';
@@ -1,2 +1,2 @@
1
- export { ActionBanner, AttentionBanner, Banner, ErrorBanner, InfoBanner, SuccessBanner, UNSAFE_MiniBanner } from './Banner';
1
+ export { ActionBanner, AttentionBanner, Banner, ErrorBanner, InfoBanner, UNSAFE_MiniBanner } from './Banner';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ActionBanner","AttentionBanner","Banner","ErrorBanner","InfoBanner","SuccessBanner","UNSAFE_MiniBanner"],"sources":["../../src/Banner/index.ts"],"sourcesContent":["export {\n ActionBanner,\n AttentionBanner,\n Banner,\n ErrorBanner,\n InfoBanner,\n SuccessBanner,\n UNSAFE_MiniBanner,\n} from './Banner'\nexport type { BannerExpandableContentProps, BannerProps } from './Banner.types'\n"],"mappings":"AAAA,SACEA,YAAY,EACZC,eAAe,EACfC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,iBAAiB,QACZ,UAAU"}
1
+ {"version":3,"file":"index.js","names":["ActionBanner","AttentionBanner","Banner","ErrorBanner","InfoBanner","UNSAFE_MiniBanner"],"sources":["../../src/Banner/index.ts"],"sourcesContent":["export {\n ActionBanner,\n AttentionBanner,\n Banner,\n ErrorBanner,\n InfoBanner,\n UNSAFE_MiniBanner,\n} from './Banner'\nexport type { BannerExpandableContentProps, BannerProps } from './Banner.types'\n"],"mappings":"AAAA,SACEA,YAAY,EACZC,eAAe,EACfC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,iBAAiB,QACZ,UAAU"}
@@ -21,7 +21,7 @@ function sizeToPx(size) {
21
21
  }
22
22
  export var StyledBox = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledBox",
24
- componentId: "core-11_33_0__sc-fgsy0p-0"
24
+ componentId: "core-12_0_0__sc-fgsy0p-0"
25
25
  })(["", " ", ""], function (_ref) {
26
26
  var $as = _ref.$as;
27
27
  if ($as === 'ol' || $as === 'ul') {
@@ -4,19 +4,19 @@ import { colors } from '../_styles/colors';
4
4
  import { spacing } from '../_styles/spacing';
5
5
  export var StyledContainer = /*#__PURE__*/styled.nav.withConfig({
6
6
  displayName: "StyledContainer",
7
- componentId: "core-11_33_0__sc-1q6nqfz-0"
7
+ componentId: "core-12_0_0__sc-1q6nqfz-0"
8
8
  })(["color:", ";display:flex;align-items:center;a,a:hover{display:inline-flex;text-decoration:none;}"], colors.gray50);
9
9
  export var StyledList = /*#__PURE__*/styled.ol.withConfig({
10
10
  displayName: "StyledList",
11
- componentId: "core-11_33_0__sc-1q6nqfz-1"
11
+ componentId: "core-12_0_0__sc-1q6nqfz-1"
12
12
  })(["display:flex;margin:0;padding-left:0;"]);
13
13
  export var StyledSeparator = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "StyledSeparator",
15
- componentId: "core-11_33_0__sc-1q6nqfz-2"
15
+ componentId: "core-12_0_0__sc-1q6nqfz-2"
16
16
  })(["align-items:center;display:inline-flex;justify-content:center;margin:0px ", "px;"], spacing.xs);
17
17
  export var StyledCrumb = /*#__PURE__*/styled.li.withConfig({
18
18
  displayName: "StyledCrumb",
19
- componentId: "core-11_33_0__sc-1q6nqfz-3"
19
+ componentId: "core-12_0_0__sc-1q6nqfz-3"
20
20
  })(["", " align-items:center;color:", ";display:inline-flex;min-height:24px;text-decoration:none;&:hover{cursor:", ";text-decoration:", ";}> a{color:", ";", "}", ""], getTypographyIntent('body'), colors.gray45, function (_ref) {
21
21
  var active = _ref.active;
22
22
  return active ? 'default' : 'pointer';
@@ -33,7 +33,7 @@ export interface BreadcrumbCrumbProps extends Props {
33
33
  */
34
34
  isLast?: boolean;
35
35
  /**
36
- * @deprecated Handled by parent prop.
36
+ * @deprecated Handled by parent prop. Use `Breadcrumb variant="list"` with anchors INSIDE `Breadcumb.Crumb`.
37
37
  * @since 11.6.0
38
38
  */
39
39
  variant?: BreadcrumbVariants;