@procore/core-react 12.36.0 → 12.38.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 (282) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  5. package/dist/Badge/Badge.styles.js +2 -2
  6. package/dist/BadgePill/BadgePill.styles.js +4 -4
  7. package/dist/Banner/Banner.d.ts +2 -1
  8. package/dist/Banner/Banner.js +53 -34
  9. package/dist/Banner/Banner.js.map +1 -1
  10. package/dist/Banner/Banner.styles.js +10 -10
  11. package/dist/Banner/Banner.types.d.ts +6 -0
  12. package/dist/Banner/Banner.types.js.map +1 -1
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js.map +1 -1
  15. package/dist/Box/Box.styles.js +1 -1
  16. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  17. package/dist/Button/Button.js +0 -1
  18. package/dist/Button/Button.js.map +1 -1
  19. package/dist/Button/Button.styles.js +5 -5
  20. package/dist/Calendar/Calendar.styles.js +9 -9
  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.js +2 -3
  27. package/dist/DateInput/DateInput.js.map +1 -1
  28. package/dist/DateInput/DateInput.styles.js +6 -6
  29. package/dist/DateSelect/DateSelect.js +1 -1
  30. package/dist/DateSelect/DateSelect.js.map +1 -1
  31. package/dist/DetailPage/DetailPage.styles.js +7 -7
  32. package/dist/Dropdown/Dropdown.js +0 -4
  33. package/dist/Dropdown/Dropdown.js.map +1 -1
  34. package/dist/Dropdown/Dropdown.styles.js +3 -3
  35. package/dist/DropdownFlyout/DropdownFlyout.js +8 -3
  36. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  37. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  38. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +1 -0
  39. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  40. package/dist/Dropzone/Dropzone.js +1 -1
  41. package/dist/Dropzone/Dropzone.styles.js +9 -9
  42. package/dist/EmptyState/EmptyState.styles.js +6 -6
  43. package/dist/Field/Field.styles.js +3 -3
  44. package/dist/FileList/FileList.styles.js +4 -4
  45. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  46. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js +3 -1
  47. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  48. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  49. package/dist/FileSelect/FileSelect.styles.js +2 -2
  50. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  51. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  52. package/dist/FileSelect/GridSource/GridSource.js +2 -1
  53. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  54. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  55. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  56. package/dist/FileSelect/SourceItem/SourceItem.js +29 -21
  57. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  58. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  59. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  60. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  61. package/dist/FileToken/FileToken.styles.js +4 -4
  62. package/dist/FilterToken/FilterToken.styles.js +5 -5
  63. package/dist/FlexList/FlexList.styles.js +1 -1
  64. package/dist/Form/Form.styles.js +14 -14
  65. package/dist/Form/StyledFormikForm.styles.js +2 -2
  66. package/dist/Form/stories/util.js +1 -12
  67. package/dist/Form/stories/util.js.map +1 -1
  68. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  69. package/dist/Grid/Grid.styles.js +2 -2
  70. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  71. package/dist/Input/Input.styles.js +1 -1
  72. package/dist/Link/Link.styles.js +1 -1
  73. package/dist/ListPage/ListPage.styles.js +8 -8
  74. package/dist/Loader/Loader.styles.js +2 -2
  75. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  76. package/dist/Modal/Modal.styles.js +13 -13
  77. package/dist/MultiSelect/MultiSelect.js +3 -3
  78. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  79. package/dist/MultiSelect/MultiSelect.styles.d.ts +7 -4
  80. package/dist/MultiSelect/MultiSelect.styles.js +18 -10
  81. package/dist/MultiSelect/MultiSelect.styles.js.map +1 -1
  82. package/dist/NextMenu/NextMenu.styles.js +3 -3
  83. package/dist/Notation/Notation.js +1 -1
  84. package/dist/NumberInput/NumberInput.styles.js +7 -7
  85. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  86. package/dist/OverlayTrigger/OverlayTrigger.js +4 -2
  87. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  88. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +8 -0
  89. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  90. package/dist/PageLayout/PageLayout.styles.d.ts +1 -0
  91. package/dist/PageLayout/PageLayout.styles.js +17 -17
  92. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  93. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  94. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  95. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  96. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  97. package/dist/Pagination/Pagination.styles.js +5 -5
  98. package/dist/Panel/Panel.styles.js +11 -11
  99. package/dist/Pill/Pill.styles.js +3 -3
  100. package/dist/PillSelect/PillSelect.styles.js +4 -4
  101. package/dist/Popover/Popover.js +2 -1
  102. package/dist/Popover/Popover.js.map +1 -1
  103. package/dist/Popover/Popover.styles.js +2 -2
  104. package/dist/Portal/Portal.styles.js +1 -1
  105. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  106. package/dist/RadioButton/RadioButton.styles.js +3 -3
  107. package/dist/Required/Required.styles.js +3 -3
  108. package/dist/Search/Search.styles.js +5 -5
  109. package/dist/Section/Section.styles.js +7 -7
  110. package/dist/SegmentedController/SegmentedController.js +1 -1
  111. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  112. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  113. package/dist/Select/Select.js +46 -20
  114. package/dist/Select/Select.js.map +1 -1
  115. package/dist/Select/Select.styles.d.ts +5 -1
  116. package/dist/Select/Select.styles.js +45 -35
  117. package/dist/Select/Select.styles.js.map +1 -1
  118. package/dist/Select/Select.types.d.ts +13 -0
  119. package/dist/Select/Select.types.js.map +1 -1
  120. package/dist/Semantic/Semantic.styles.d.ts +4 -4
  121. package/dist/Semantic/Semantic.styles.js +9 -9
  122. package/dist/Slider/Slider.styles.js +5 -5
  123. package/dist/Spinner/Spinner.js +21 -6
  124. package/dist/Spinner/Spinner.js.map +1 -1
  125. package/dist/Spinner/Spinner.styles.js +7 -7
  126. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  127. package/dist/SuperSelect/SuperSelect.components.js +1 -3
  128. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  129. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  130. package/dist/SuperSelect/SuperSelect.styles.js +39 -39
  131. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  132. package/dist/SuperSelect/SuperSelect.types.d.ts +1 -0
  133. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  134. package/dist/SuperSelect/SuperSelect.utils.d.ts +2 -1
  135. package/dist/SuperSelect/SuperSelect.utils.js +17 -0
  136. package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
  137. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  138. package/dist/SuperSelect/useSuperSelect.js +26 -30
  139. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  140. package/dist/Switch/Switch.styles.js +4 -4
  141. package/dist/Table/Table.styles.js +62 -59
  142. package/dist/Table/Table.styles.js.map +1 -1
  143. package/dist/TableShelf/TableShelf.styles.js +5 -5
  144. package/dist/Tabs/Tabs.styles.js +15 -15
  145. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  146. package/dist/Tearsheet/storybook/PageLayoutDemo.js +4 -1
  147. package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -1
  148. package/dist/TextArea/TextArea.styles.js +1 -1
  149. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  150. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  151. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  152. package/dist/TieredSelect/TierSelectionTieredSelect.js +12 -2
  153. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  154. package/dist/TieredSelect/TieredSelect.js +18 -5
  155. package/dist/TieredSelect/TieredSelect.js.map +1 -1
  156. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  157. package/dist/TieredSelect/TieredSelectMenu.js +9 -2
  158. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  159. package/dist/Tile/Tile.styles.js +8 -8
  160. package/dist/Title/Title.styles.js +7 -7
  161. package/dist/Toast/Toast.styles.js +3 -3
  162. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  163. package/dist/Token/Token.styles.js +3 -3
  164. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  165. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  166. package/dist/Tooltip/Tooltip.styles.js +2 -2
  167. package/dist/Tooltip/Tooltip.types.d.ts +4 -0
  168. package/dist/Tooltip/Tooltip.types.js.map +1 -1
  169. package/dist/Tree/Tree.js +1 -1
  170. package/dist/Tree/Tree.styles.js +10 -10
  171. package/dist/Typeahead/Typeahead.styles.js +3 -3
  172. package/dist/Typography/Typography.styles.js +1 -1
  173. package/dist/Typography/Typography.table.story.js +2 -2
  174. package/dist/_hooks/I18n.d.ts +4 -41
  175. package/dist/_locales/de-DE.json +2 -2
  176. package/dist/_locales/en-AU.json +1 -1
  177. package/dist/_locales/en-CA.json +1 -1
  178. package/dist/_locales/en-GB.json +1 -1
  179. package/dist/_locales/en.json +3 -1
  180. package/dist/_locales/es-ES.json +1 -1
  181. package/dist/_locales/es.json +3 -3
  182. package/dist/_locales/fr-CA.json +2 -2
  183. package/dist/_locales/fr-FR.json +4 -4
  184. package/dist/_locales/is-IS.json +2 -2
  185. package/dist/_locales/it-IT.json +47 -47
  186. package/dist/_locales/ja-JP.json +4 -4
  187. package/dist/_locales/pl-PL.json +1 -1
  188. package/dist/_locales/pseudo.json +3 -1
  189. package/dist/_locales/pt-BR.json +4 -4
  190. package/dist/_locales/pt-PT.json +11 -11
  191. package/dist/_locales/th-TH.json +4 -4
  192. package/dist/_locales/zh-SG.json +1 -1
  193. package/dist/_locales/zh-TW.json +5 -5
  194. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  195. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  196. package/dist/_styles/colors.js +7 -3
  197. package/dist/_styles/colors.js.map +1 -1
  198. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  199. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  200. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  201. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  202. package/dist/_typedoc/Banner/Banner.types.json +39 -13
  203. package/dist/_typedoc/Box/Box.types.json +68 -68
  204. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  205. package/dist/_typedoc/Button/Button.types.json +13 -13
  206. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  207. package/dist/_typedoc/Card/Card.types.json +6 -6
  208. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  209. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  210. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  211. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  212. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  213. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  214. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +40 -30
  215. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  216. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  217. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  218. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  219. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  220. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  221. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  222. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  223. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  224. package/dist/_typedoc/Form/Form.types.json +750 -750
  225. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  226. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  227. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  228. package/dist/_typedoc/Input/Input.types.json +2 -2
  229. package/dist/_typedoc/Link/Link.types.json +1 -1
  230. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  231. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  232. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -77
  233. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  234. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  235. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  236. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  237. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  238. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +42 -32
  239. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  240. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  241. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  242. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  243. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  244. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  245. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  246. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  247. package/dist/_typedoc/Required/Required.types.json +5 -5
  248. package/dist/_typedoc/Search/Search.types.json +18 -18
  249. package/dist/_typedoc/Section/Section.types.json +15 -15
  250. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  251. package/dist/_typedoc/Select/Select.types.json +95 -60
  252. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  253. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  254. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  255. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  256. package/dist/_typedoc/Table/Table.types.json +102 -102
  257. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  258. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  259. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  260. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  261. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  262. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  263. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  264. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  265. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  266. package/dist/_typedoc/Title/Title.types.json +1 -1
  267. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  268. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  269. package/dist/_typedoc/Token/Token.types.json +7 -7
  270. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  271. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  272. package/dist/_typedoc/Tooltip/Tooltip.types.json +23 -13
  273. package/dist/_typedoc/Tree/Tree.types.json +88 -88
  274. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  275. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  276. package/dist/_typedoc/_utils/types.json +3 -3
  277. package/dist/_utils/storybookTooltip.d.ts +2 -0
  278. package/dist/_utils/storybookTooltip.js +12 -0
  279. package/dist/_utils/storybookTooltip.js.map +1 -0
  280. package/dist/_utils/triggerListeners.js +2 -2
  281. package/dist/_utils/triggerListeners.js.map +1 -1
  282. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Change Log
2
2
 
3
+ ## 12.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5c9765e: Revert SuperSelect accessibility changes
8
+ - ec26b8f: Updated Select to apply correct ARIA roles and states by using a `combobox` pattern for listbox-only panels and a `button` (disclosure) pattern when additional panel content is present.
9
+ - 09ee67d: `Popover` added optional `trackAriaExpanded` to apply the `aria-expanded` attribute, recommended use with `Button` triggers. Enabled in `AvatarStack`.
10
+ - a8bbf59: Banner: Add `Banner.ExpandActionButton` to toggle expandable content; handles aria-expanded and default "Expand" / "Collapse" label (i18n). Supports children for a custom label.
11
+
12
+ ### Patch Changes
13
+
14
+ - dfdba61: `SuperSelect`: Added a minimum height check to `size()` so that if the computed `availableHeight` for the dropdown is less than 248px, `maxHeight` is not set to that value, causing the menu to flip open upwards instead of shrinking to fit below.
15
+ - d786d24: `Spinner`: Add appropriate ARIA role and labeling for accessibility.
16
+ - Add `role="progressbar"` to the spinner container so screen readers recognize the loading state.
17
+ - Add `aria-labelledby` linking the progressbar to its label (default "Loading" or custom `label`).
18
+ - Use stable `id` from `useId()` for label association; when a visible label is shown with children, associate it via `aria-labelledby` and set `aria-hidden` on the SVG to avoid duplicate announcements.
19
+ - e26caf8: Improve `FileSelect` source list accessibility:
20
+ - `FileExplorerSidebar` - Add `role="listbox"` to the navigation container for the list of sources
21
+ - `SourceItem` - Add `role="option"` with `aria-selected` and `aria-disabled` for proper listbox semantics; set `tabIndex={-1}` when disabled so keyboard users skip disabled items
22
+ - e519f21: `Select` applies className and style always to the outermost element (like before when buttons were nested)
23
+
24
+ ## 12.37.0
25
+
26
+ ### Minor Changes
27
+
28
+ - 26ca426: _Changes internal HTML structure_ Fix Delete control accessibility in Select components:
29
+ - `Select`, `TieredSelect` - Clear button is now keyboard accessible and positioned outside the main button element. This will affect tests that query by button role. To fix this, specify accessible name: `getByRole('button', { name: 'label' })`
30
+ - `DateSelect`, `GroupSelect`, `MultiSelect`, `SuperSelect` - Clear button has correct tabIndex (0 when visible, -1 when hidden)
31
+ - 00af70b: Improved `Dropdown` and `TieredSelect` search dropdown focus handling. Removed auto-highlight side effects on open and ensured predictable first keyboard navigation from the search input, improving screen reader behavior. Added keyboard activation support (Enter/Space) for TieredSelect trigger.
32
+ - b3cf4bb: `OverlayTrigger` change event `blur` to `focusout` and `focus` to `focusin`
33
+ - 629b6a8: SuperSelect:
34
+ - add `defaultOnUnselectAll` to help aid with unselecting options when there's a search value. Previously, all options were unselected when a user clicked `Select All`. **This only happens when all options are selected, and the user clicks on `Select All`**
35
+ - add `onUnselectAll` prop to allow custom implementation for unselecting options
36
+ - reworked `previousSelectableOptionsRef` and how auto-selection determines if there are new options to add
37
+ - 147ecb7: Improved SuperSelect accessibility, added `role="group"` and `aria-labelledby` to MultiTrigger, added an `id` to Label, and updated ARIA attributes in useSuperSelect (`trigger`, `search`, `multi-input`, `options`).
38
+ - 1c5981d: Removed `aria-busy` attribute from `Button` when `loading` because this is an incorrect usage of this attribute.
39
+ - 26ca426: `DateSelect` - Enter key on target no longer closes the picker. This change allows to use Enter key for the Clear button.
40
+
41
+ ### Patch Changes
42
+
43
+ - befa53e: Added `aria-live="polite"` attribute to `StyledEmptyState` in `FileSelect` to automatically announce content when it's updated.
44
+ - b3cf4bb: Add `aria-describedby` to `FileSelect` SourceItem tooltips for screen readers
45
+ - 53a9004: Indicate expanded state using `aria-expanded` for `DropdownFlyout` component
46
+ - f54c157: Fix `DateInput` place holder for pl-PL locale
47
+ - d452cdb: Modified color support for experimental purposes
48
+
3
49
  ## 12.36.0
4
50
 
5
51
  ### Minor Changes
@@ -5,11 +5,11 @@ import { getEllipsis } from '../_styles/mixins';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledAnchorNavigation = /*#__PURE__*/styled.ul.withConfig({
7
7
  displayName: "StyledAnchorNavigation",
8
- componentId: "core-12_36_0__sc-aacdj4-0"
8
+ componentId: "core-12_38_0__sc-aacdj4-0"
9
9
  })(["max-width:200px;margin:0;padding-inline-start:0;"]);
10
10
  export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
11
11
  displayName: "StyledAnchorSection",
12
- componentId: "core-12_36_0__sc-aacdj4-1"
12
+ componentId: "core-12_38_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-12_36_0__sc-aacdj4-2"
25
+ componentId: "core-12_38_0__sc-aacdj4-2"
26
26
  })(["width:100%;padding:6px ", "px;", " ", ";", " :focus-visible{box-shadow:inset 0 0 0 2px ", ";outline:none;}"], spacing.sm, getTypographyIntent('body'), function (_ref4) {
27
27
  var $selected = _ref4.$selected;
28
28
  return $selected ? css(["font-weight:600;"]) : '';
@@ -28,26 +28,26 @@ var iconSize = {
28
28
  };
29
29
  export var StyledAvatarOverlay = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledAvatarOverlay",
31
- componentId: "core-12_36_0__sc-7q2ydl-0"
31
+ componentId: "core-12_38_0__sc-7q2ydl-0"
32
32
  })(["width:100%;height:100%;position:absolute;top:0;left:0;border-radius:100%;opacity:0;"]);
33
33
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledIconContainer",
35
- componentId: "core-12_36_0__sc-7q2ydl-1"
35
+ componentId: "core-12_38_0__sc-7q2ydl-1"
36
36
  })(["display:inline-flex;"]);
37
37
  export var StyledLabelContainer = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledLabelContainer",
39
- componentId: "core-12_36_0__sc-7q2ydl-2"
39
+ componentId: "core-12_38_0__sc-7q2ydl-2"
40
40
  })(["text-transform:uppercase;"]);
41
41
  export var StyledPortraitContainer = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledPortraitContainer",
43
- componentId: "core-12_36_0__sc-7q2ydl-3"
43
+ componentId: "core-12_38_0__sc-7q2ydl-3"
44
44
  })(["background-color:", ";background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;width:100%;", ""], colors.white, function (_ref) {
45
45
  var $imageUrl = _ref.$imageUrl;
46
46
  return css(["background-image:url(", ");"], $imageUrl);
47
47
  });
48
48
  export var StyledAvatarContainer = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledAvatarContainer",
50
- componentId: "core-12_36_0__sc-7q2ydl-4"
50
+ componentId: "core-12_38_0__sc-7q2ydl-4"
51
51
  })(["display:inline-flex;justify-content:center;align-items:center;border-radius:100%;overflow:hidden;position:relative;cursor:default;color:", ";background-color:", ";text-decoration:none;a:has(> &){text-decoration:none;}&:focus{", "}a:focus:has(> &){", " border-radius:100%;}", " ", ";"], colors.white, colors.gray30, getGapOutlineFocus, getGapOutlineFocus, function (_ref2) {
52
52
  var _ref2$$size = _ref2.$size,
53
53
  $size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
@@ -7,32 +7,32 @@ import { spacing } from '../_styles/spacing';
7
7
  var maxModalWidth = 528;
8
8
  var StyledBaseAvatar = /*#__PURE__*/styled(Avatar).withConfig({
9
9
  displayName: "StyledBaseAvatar",
10
- componentId: "core-12_36_0__sc-ft72hu-0"
10
+ componentId: "core-12_38_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-12_36_0__sc-ft72hu-1"
14
+ componentId: "core-12_38_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-12_36_0__sc-ft72hu-2"
20
+ componentId: "core-12_38_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-12_36_0__sc-ft72hu-3"
24
+ componentId: "core-12_38_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-12_36_0__sc-ft72hu-4"
28
+ componentId: "core-12_38_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-12_36_0__sc-ft72hu-5"
32
+ componentId: "core-12_38_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-12_36_0__sc-ft72hu-6"
36
+ componentId: "core-12_38_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-12_36_0__sc-rpertu-0"
4
+ componentId: "core-12_38_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-12_36_0__sc-rpertu-1"
8
+ componentId: "core-12_38_0__sc-rpertu-1"
9
9
  })(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
10
10
  //# sourceMappingURL=Badge.styles.js.map
@@ -3,11 +3,11 @@ import { getTypographyIntent } from '../Typography';
3
3
  import { colors } from '../_styles/colors';
4
4
  export var StyledBadgeContainer = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "StyledBadgeContainer",
6
- componentId: "core-12_36_0__sc-s2n9gd-0"
6
+ componentId: "core-12_38_0__sc-s2n9gd-0"
7
7
  })(["display:inline-flex;position:relative;"]);
8
8
  export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledBadgeContent",
10
- componentId: "core-12_36_0__sc-s2n9gd-1"
10
+ componentId: "core-12_38_0__sc-s2n9gd-1"
11
11
  })(["position:relative;", " ", " pointer-events:none;user-select:none;"], function (_ref) {
12
12
  var $overlapping = _ref.$overlapping,
13
13
  _ref$$xOffset = _ref.$xOffset,
@@ -20,13 +20,13 @@ export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
20
20
  });
21
21
  export var StyledBadgeDotIndicator = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledBadgeDotIndicator",
23
- componentId: "core-12_36_0__sc-s2n9gd-2"
23
+ componentId: "core-12_38_0__sc-s2n9gd-2"
24
24
  })(["width:6px;height:6px;border-radius:50%;background-color:", ";"], colors.orange50);
25
25
  var oneDigitStyles = "\n border-radius: 50%;\n padding: 2px;\n min-width: 21.5px;\n min-height: 21.5px;\n";
26
26
  var multiDigitStyles = "\n border-radius: 10px;\n padding: 2px 8px;\n";
27
27
  export var StyledBadgeCounter = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledBadgeCounter",
29
- componentId: "core-12_36_0__sc-s2n9gd-3"
29
+ componentId: "core-12_38_0__sc-s2n9gd-3"
30
30
  })(["display:inline-flex;justify-content:center;align-items:center;color:", ";background-color:", ";", " ", ""], colors.white, colors.orange50, getTypographyIntent('small'), function (props) {
31
31
  return props.$oneDigit ? oneDigitStyles : multiDigitStyles;
32
32
  });
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Props } from '../_utils/types';
3
- import type { BannerExpandableContentProps, BannerIconProps, BannerProps, BannerVariant } from './Banner.types';
3
+ import type { BannerExpandableContentProps, BannerExpandActionButtonProps, BannerIconProps, BannerProps, BannerVariant } from './Banner.types';
4
4
  export declare const ErrorBanner: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
5
  export declare const InfoBanner: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
6
  /**
@@ -40,6 +40,7 @@ export declare const Banner: React.ForwardRefExoticComponent<React.HTMLAttribute
40
40
  ExpandableContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & BannerExpandableContentProps & React.RefAttributes<HTMLDivElement>>;
41
41
  Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
42
42
  Action: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
43
+ ExpandActionButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & BannerExpandActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
43
44
  Actions: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
44
45
  Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & BannerIconProps & React.RefAttributes<HTMLDivElement>>;
45
46
  Dismiss: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -4,14 +4,15 @@ var _excluded = ["children", "variant"],
4
4
  _excluded4 = ["children"],
5
5
  _excluded5 = ["children"],
6
6
  _excluded6 = ["children"],
7
- _excluded7 = ["children"],
7
+ _excluded7 = ["isExpanded", "onExpandChange", "children"],
8
8
  _excluded8 = ["children"],
9
- _excluded9 = ["children", "icon"],
10
- _excluded0 = ["children"],
9
+ _excluded9 = ["children"],
10
+ _excluded0 = ["children", "icon"],
11
11
  _excluded1 = ["children"],
12
12
  _excluded10 = ["children"],
13
13
  _excluded11 = ["children"],
14
- _excluded12 = ["children", "variant"];
14
+ _excluded12 = ["children"],
15
+ _excluded13 = ["children", "variant"];
15
16
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
16
17
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
18
  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."); }
@@ -136,17 +137,33 @@ var Action = /*#__PURE__*/React.forwardRef(function Action(_ref9, ref) {
136
137
  ref: ref
137
138
  }), children);
138
139
  });
139
- var DropdownAction = /*#__PURE__*/React.forwardRef(function DropdownAction(_ref0, ref) {
140
- var children = _ref0.children,
140
+ var ExpandActionButton = /*#__PURE__*/React.forwardRef(function ExpandActionButton(_ref0, ref) {
141
+ var isExpanded = _ref0.isExpanded,
142
+ onExpandChange = _ref0.onExpandChange,
143
+ children = _ref0.children,
141
144
  props = _objectWithoutProperties(_ref0, _excluded7);
145
+ var I18n = useI18nContext();
146
+ var label = children !== null && children !== void 0 ? children : isExpanded ? I18n.t('core.banner.collapse') : I18n.t('core.banner.expand');
147
+ return /*#__PURE__*/React.createElement(Button, _extends({
148
+ ref: ref,
149
+ type: "button",
150
+ "aria-expanded": isExpanded,
151
+ onClick: function onClick() {
152
+ return onExpandChange(!isExpanded);
153
+ }
154
+ }, props), label);
155
+ });
156
+ var DropdownAction = /*#__PURE__*/React.forwardRef(function DropdownAction(_ref1, ref) {
157
+ var children = _ref1.children,
158
+ props = _objectWithoutProperties(_ref1, _excluded8);
142
159
  return /*#__PURE__*/React.createElement(Menu.Item, _extends({
143
160
  ref: ref,
144
161
  item: null
145
162
  }, props), children);
146
163
  });
147
- var Actions = /*#__PURE__*/React.forwardRef(function Actions(_ref1, ref) {
148
- var children = _ref1.children,
149
- props = _objectWithoutProperties(_ref1, _excluded8);
164
+ var Actions = /*#__PURE__*/React.forwardRef(function Actions(_ref10, ref) {
165
+ var children = _ref10.children,
166
+ props = _objectWithoutProperties(_ref10, _excluded9);
150
167
  var actionButtons = React.Children.toArray(children).filter(function (element) {
151
168
  return /*#__PURE__*/React.isValidElement(element) && element.type === Action;
152
169
  });
@@ -156,13 +173,13 @@ var Actions = /*#__PURE__*/React.forwardRef(function Actions(_ref1, ref) {
156
173
  return node === null || node === void 0 ? void 0 : node.focus();
157
174
  },
158
175
  usingHook: useMenu({
159
- isSelectable: function isSelectable(_ref10) {
160
- var type = _ref10.type;
176
+ isSelectable: function isSelectable(_ref11) {
177
+ var type = _ref11.type;
161
178
  return type === DropdownAction;
162
179
  }
163
180
  })
164
- }, /*#__PURE__*/React.createElement(Menu.Options, null, actionButtons.map(function (_ref11, idx) {
165
- var actionButtonProps = _ref11.props;
181
+ }, /*#__PURE__*/React.createElement(Menu.Options, null, actionButtons.map(function (_ref12, idx) {
182
+ var actionButtonProps = _ref12.props;
166
183
  return /*#__PURE__*/React.createElement(DropdownAction, _extends({
167
184
  key: idx
168
185
  }, actionButtonProps));
@@ -176,18 +193,18 @@ var Actions = /*#__PURE__*/React.forwardRef(function Actions(_ref1, ref) {
176
193
  icon: /*#__PURE__*/React.createElement(EllipsisVertical, null)
177
194
  }, props)));
178
195
  });
179
- var Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref12, ref) {
180
- var children = _ref12.children,
181
- icon = _ref12.icon,
182
- props = _objectWithoutProperties(_ref12, _excluded9);
196
+ var Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref13, ref) {
197
+ var children = _ref13.children,
198
+ icon = _ref13.icon,
199
+ props = _objectWithoutProperties(_ref13, _excluded0);
183
200
  return /*#__PURE__*/React.createElement(StyledIconContainer, _extends({
184
201
  ref: ref,
185
202
  "aria-hidden": "true"
186
203
  }, props), icon);
187
204
  });
188
- var Dismiss = /*#__PURE__*/React.forwardRef(function Dismiss(_ref13, ref) {
189
- var children = _ref13.children,
190
- props = _objectWithoutProperties(_ref13, _excluded0);
205
+ var Dismiss = /*#__PURE__*/React.forwardRef(function Dismiss(_ref14, ref) {
206
+ var children = _ref14.children,
207
+ props = _objectWithoutProperties(_ref14, _excluded1);
191
208
  var I18n = useI18nContext();
192
209
  return /*#__PURE__*/React.createElement(Button, _extends({
193
210
  "aria-label": I18n.t('core.banner.dismissAlert'),
@@ -197,9 +214,9 @@ var Dismiss = /*#__PURE__*/React.forwardRef(function Dismiss(_ref13, ref) {
197
214
  variant: "tertiary"
198
215
  }));
199
216
  });
200
- export var ErrorBanner = /*#__PURE__*/React.forwardRef(function ErrorBanner(_ref14, ref) {
201
- var children = _ref14.children,
202
- props = _objectWithoutProperties(_ref14, _excluded1);
217
+ export var ErrorBanner = /*#__PURE__*/React.forwardRef(function ErrorBanner(_ref15, ref) {
218
+ var children = _ref15.children,
219
+ props = _objectWithoutProperties(_ref15, _excluded10);
203
220
  return /*#__PURE__*/React.createElement(Banner, _extends({
204
221
  ref: ref,
205
222
  variant: "error"
@@ -209,9 +226,9 @@ export var ErrorBanner = /*#__PURE__*/React.forwardRef(function ErrorBanner(_ref
209
226
  })
210
227
  }), children);
211
228
  });
212
- export var InfoBanner = /*#__PURE__*/React.forwardRef(function InfoBanner(_ref15, ref) {
213
- var children = _ref15.children,
214
- props = _objectWithoutProperties(_ref15, _excluded10);
229
+ export var InfoBanner = /*#__PURE__*/React.forwardRef(function InfoBanner(_ref16, ref) {
230
+ var children = _ref16.children,
231
+ props = _objectWithoutProperties(_ref16, _excluded11);
215
232
  return /*#__PURE__*/React.createElement(Banner, _extends({
216
233
  ref: ref,
217
234
  variant: "info"
@@ -225,9 +242,9 @@ export var InfoBanner = /*#__PURE__*/React.forwardRef(function InfoBanner(_ref15
225
242
  /**
226
243
  * @since 11.26.0
227
244
  */
228
- export var AttentionBanner = /*#__PURE__*/React.forwardRef(function AttentionBanner(_ref16, ref) {
229
- var children = _ref16.children,
230
- props = _objectWithoutProperties(_ref16, _excluded11);
245
+ export var AttentionBanner = /*#__PURE__*/React.forwardRef(function AttentionBanner(_ref17, ref) {
246
+ var children = _ref17.children,
247
+ props = _objectWithoutProperties(_ref17, _excluded12);
231
248
  return /*#__PURE__*/React.createElement(Banner, _extends({
232
249
  ref: ref,
233
250
  variant: "attention"
@@ -242,11 +259,11 @@ export var AttentionBanner = /*#__PURE__*/React.forwardRef(function AttentionBan
242
259
  * @deprecatedSince 11.26.0
243
260
  */
244
261
  export var ActionBanner = AttentionBanner;
245
- export var UNSAFE_MiniBanner = /*#__PURE__*/React.forwardRef(function MiniBanner(_ref17, ref) {
246
- var children = _ref17.children,
247
- _ref17$variant = _ref17.variant,
248
- variant = _ref17$variant === void 0 ? 'info' : _ref17$variant,
249
- props = _objectWithoutProperties(_ref17, _excluded12);
262
+ export var UNSAFE_MiniBanner = /*#__PURE__*/React.forwardRef(function MiniBanner(_ref18, ref) {
263
+ var children = _ref18.children,
264
+ _ref18$variant = _ref18.variant,
265
+ variant = _ref18$variant === void 0 ? 'info' : _ref18$variant,
266
+ props = _objectWithoutProperties(_ref18, _excluded13);
250
267
  return /*#__PURE__*/React.createElement(StyledMiniBannerContainer, _extends({
251
268
  ref: ref,
252
269
  variant: variant
@@ -258,6 +275,7 @@ Content.displayName = 'Banner.Content';
258
275
  ExpandableContent.displayName = 'Banner.ExpandableContent';
259
276
  Title.displayName = 'Banner.Title';
260
277
  Action.displayName = 'Banner.Action';
278
+ ExpandActionButton.displayName = 'Banner.ExpandActionButton';
261
279
  Actions.displayName = 'Banner.Actions';
262
280
  DropdownAction.displayName = 'Banner.DropdownAction';
263
281
  Icon.displayName = 'Banner.Icon';
@@ -293,6 +311,7 @@ export var Banner = addSubcomponents({
293
311
  ExpandableContent: ExpandableContent,
294
312
  Title: Title,
295
313
  Action: Action,
314
+ ExpandActionButton: ExpandActionButton,
296
315
  Actions: Actions,
297
316
  Icon: Icon,
298
317
  Dismiss: Dismiss
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","names":["Clear","EllipsisVertical","Error","Info","Warning","partition","React","Button","Card","Flex","Menu","useMenu","OverlayTrigger","useI18nContext","OverflowObserver","addSubcomponents","mergeRefs","StyledAction","StyledActionsTrigger","StyledBannerContainer","StyledBody","StyledContent","StyledExpandableContent","StyledExpandableContentContainer","StyledIconContainer","StyledMiniBannerContainer","StyledTitle","defaultIcons","error","createElement","size","attention","info","UNSAFE_attention_emphasized","Banner_","forwardRef","Banner","_ref","ref","children","variant","props","_objectWithoutProperties","_excluded","_ref2","element","isValidElement","type","ExpandableContent","Children","toArray","_ref3","_slicedToArray","expandableContentNodes","content","isExpandable","length","iconElement","useMemo","find","child","Icon","hasCustomIcon","icon","_extends","$isExpandable","$variant","Fragment","justifyContent","alignItems","gap","grow","Content","_ref4","_excluded2","_ref5","_ref5$expanded","expanded","_ref5$expandableConte","expandableContentMaxHeight","_excluded3","containerRef","useRef","_ref6","overflowRef","isOverflowingY","onAnimationEnd","current","$isOverflowingY","$expandableContentMaxHeight","tabIndex","Title","_ref7","_excluded4","Body","_ref8","_excluded5","Action","_ref9","_excluded6","DropdownAction","_ref0","_excluded7","Item","item","Actions","_ref1","_excluded8","actionButtons","filter","overlay","node","focus","usingHook","isSelectable","_ref10","Options","map","_ref11","idx","actionButtonProps","key","placement","arrow","_ref12","_excluded9","Dismiss","_ref13","_excluded0","I18n","t","ErrorBanner","_ref14","_excluded1","InfoBanner","_ref15","_excluded10","AttentionBanner","_ref16","_excluded11","ActionBanner","UNSAFE_MiniBanner","MiniBanner","_ref17","_ref17$variant","_excluded12","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'\nimport { Card } from '../Card'\nimport { Flex } from '../Flex'\nimport { Menu, useMenu } from '../Menu/Menu'\nimport { OverlayTrigger } from '../OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { 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 defaultIcons: Record<BannerVariant, React.ReactNode> = {\n error: <Error size=\"lg\" />,\n attention: <Warning size=\"lg\" />,\n info: <Info size=\"lg\" />,\n UNSAFE_attention_emphasized: <Warning size=\"lg\" />,\n}\n\nconst Banner_ = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & 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 const isExpandable = expandableContentNodes.length !== 0\n\n const iconElement = React.useMemo(() => {\n return React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && child.type === Icon\n ) as React.ReactElement<BannerIconProps> | undefined\n }, [children])\n\n const hasCustomIcon = iconElement && iconElement.props.icon\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 gap=\"lg\"\n >\n {!hasCustomIcon && <Icon icon={defaultIcons[variant]} />}\n {content}\n </StyledExpandableContentContainer>\n {expandableContentNodes}\n </>\n ) : (\n <Flex justifyContent=\"flex-start\" alignItems=\"center\" gap=\"lg\" grow=\"1\">\n {!hasCustomIcon && <Icon icon={defaultIcons[variant]} />}\n {content}\n </Flex>\n )}\n </StyledBannerContainer>\n )\n})\n\nconst Content = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & Props\n>(function Content({ children, ...props }, ref) {\n return (\n <StyledContent {...props} ref={ref}>\n {children}\n </StyledContent>\n )\n})\n\nconst ExpandableContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & 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<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Title({ children, ...props }, ref) {\n return (\n <StyledTitle {...props} ref={ref}>\n {children}\n </StyledTitle>\n )\n})\n\nconst Body = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Body({ children, ...props }, ref) {\n return (\n <StyledBody {...props} ref={ref}>\n {children}\n </StyledBody>\n )\n})\n\nconst Action = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Action({ children, ...props }, ref) {\n return (\n <StyledAction {...props} ref={ref}>\n {children}\n </StyledAction>\n )\n})\n\nconst DropdownAction = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\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\nconst Actions = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\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\nconst Icon = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & 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\nconst Dismiss = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\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\nexport const ErrorBanner = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\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 React.HTMLAttributes<HTMLDivElement>\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 React.HTMLAttributes<HTMLDivElement>\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 * @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 React.HTMLAttributes<HTMLDivElement> & { 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 = addSubcomponents(\n {\n Body,\n Content,\n ExpandableContent,\n Title,\n Action,\n Actions,\n Icon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zCL,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,IAAM9G,MAAM,GAAGrB,gBAAgB,CACpC;EACE+E,IAAI,EAAJA,IAAI;EACJtB,OAAO,EAAPA,OAAO;EACPxB,iBAAiB,EAAjBA,iBAAiB;EACjB2C,KAAK,EAALA,KAAK;EACLM,MAAM,EAANA,MAAM;EACNQ,OAAO,EAAPA,OAAO;EACP5C,IAAI,EAAJA,IAAI;EACJiE,OAAO,EAAPA;AACF,CAAC,EACD5F,OACF,CAAC"}
1
+ {"version":3,"file":"Banner.js","names":["Clear","EllipsisVertical","Error","Info","Warning","partition","React","Button","Card","Flex","Menu","useMenu","OverlayTrigger","useI18nContext","OverflowObserver","addSubcomponents","mergeRefs","StyledAction","StyledActionsTrigger","StyledBannerContainer","StyledBody","StyledContent","StyledExpandableContent","StyledExpandableContentContainer","StyledIconContainer","StyledMiniBannerContainer","StyledTitle","defaultIcons","error","createElement","size","attention","info","UNSAFE_attention_emphasized","Banner_","forwardRef","Banner","_ref","ref","children","variant","props","_objectWithoutProperties","_excluded","_ref2","element","isValidElement","type","ExpandableContent","Children","toArray","_ref3","_slicedToArray","expandableContentNodes","content","isExpandable","length","iconElement","useMemo","find","child","Icon","hasCustomIcon","icon","_extends","$isExpandable","$variant","Fragment","justifyContent","alignItems","gap","grow","Content","_ref4","_excluded2","_ref5","_ref5$expanded","expanded","_ref5$expandableConte","expandableContentMaxHeight","_excluded3","containerRef","useRef","_ref6","overflowRef","isOverflowingY","onAnimationEnd","current","$isOverflowingY","$expandableContentMaxHeight","tabIndex","Title","_ref7","_excluded4","Body","_ref8","_excluded5","Action","_ref9","_excluded6","ExpandActionButton","_ref0","isExpanded","onExpandChange","_excluded7","I18n","label","t","onClick","DropdownAction","_ref1","_excluded8","Item","item","Actions","_ref10","_excluded9","actionButtons","filter","overlay","node","focus","usingHook","isSelectable","_ref11","Options","map","_ref12","idx","actionButtonProps","key","placement","arrow","_ref13","_excluded0","Dismiss","_ref14","_excluded1","ErrorBanner","_ref15","_excluded10","InfoBanner","_ref16","_excluded11","AttentionBanner","_ref17","_excluded12","ActionBanner","UNSAFE_MiniBanner","MiniBanner","_ref18","_ref18$variant","_excluded13","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'\nimport { Card } from '../Card'\nimport { Flex } from '../Flex'\nimport { Menu, useMenu } from '../Menu/Menu'\nimport { OverlayTrigger } from '../OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { 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 BannerExpandActionButtonProps,\n BannerIconProps,\n BannerProps,\n BannerVariant,\n} from './Banner.types'\n\nconst defaultIcons: Record<BannerVariant, React.ReactNode> = {\n error: <Error size=\"lg\" />,\n attention: <Warning size=\"lg\" />,\n info: <Info size=\"lg\" />,\n UNSAFE_attention_emphasized: <Warning size=\"lg\" />,\n}\n\nconst Banner_ = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & 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 const isExpandable = expandableContentNodes.length !== 0\n\n const iconElement = React.useMemo(() => {\n return React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && child.type === Icon\n ) as React.ReactElement<BannerIconProps> | undefined\n }, [children])\n\n const hasCustomIcon = iconElement && iconElement.props.icon\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 gap=\"lg\"\n >\n {!hasCustomIcon && <Icon icon={defaultIcons[variant]} />}\n {content}\n </StyledExpandableContentContainer>\n {expandableContentNodes}\n </>\n ) : (\n <Flex justifyContent=\"flex-start\" alignItems=\"center\" gap=\"lg\" grow=\"1\">\n {!hasCustomIcon && <Icon icon={defaultIcons[variant]} />}\n {content}\n </Flex>\n )}\n </StyledBannerContainer>\n )\n})\n\nconst Content = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & Props\n>(function Content({ children, ...props }, ref) {\n return (\n <StyledContent {...props} ref={ref}>\n {children}\n </StyledContent>\n )\n})\n\nconst ExpandableContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & 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<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Title({ children, ...props }, ref) {\n return (\n <StyledTitle {...props} ref={ref}>\n {children}\n </StyledTitle>\n )\n})\n\nconst Body = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Body({ children, ...props }, ref) {\n return (\n <StyledBody {...props} ref={ref}>\n {children}\n </StyledBody>\n )\n})\n\nconst Action = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Action({ children, ...props }, ref) {\n return (\n <StyledAction {...props} ref={ref}>\n {children}\n </StyledAction>\n )\n})\n\nconst ExpandActionButton = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement> & BannerExpandActionButtonProps\n>(function ExpandActionButton(\n { isExpanded, onExpandChange, children, ...props },\n ref\n) {\n const I18n = useI18nContext()\n const label =\n children ??\n (isExpanded ? I18n.t('core.banner.collapse') : I18n.t('core.banner.expand'))\n\n return (\n <Button\n ref={ref}\n type=\"button\"\n aria-expanded={isExpanded}\n onClick={() => onExpandChange(!isExpanded)}\n {...props}\n >\n {label}\n </Button>\n )\n})\n\nconst DropdownAction = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\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\nconst Actions = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\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\nconst Icon = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & 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\nconst Dismiss = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\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\nexport const ErrorBanner = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\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 React.HTMLAttributes<HTMLDivElement>\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 React.HTMLAttributes<HTMLDivElement>\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 * @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 React.HTMLAttributes<HTMLDivElement> & { 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\nExpandActionButton.displayName = 'Banner.ExpandActionButton'\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 = addSubcomponents(\n {\n Body,\n Content,\n ExpandableContent,\n Title,\n Action,\n ExpandActionButton,\n Actions,\n Icon,\n Dismiss,\n },\n Banner_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SACEA,KAAK,EACLC,gBAAgB,EAChBC,KAAK,EACLC,IAAI,EACJC,OAAO,QACF,0BAA0B;AACjC,SAASC,SAAS,QAAQ,OAAO;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,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AAO,CAACuH,WAAW,GAAG,QAAQ;AAE9B3D,IAAI,CAAC2D,WAAW,GAAG,aAAa;AAEhCjF,OAAO,CAACiF,WAAW,GAAG,gBAAgB;AAEtCzG,iBAAiB,CAACyG,WAAW,GAAG,0BAA0B;AAE1D9D,KAAK,CAAC8D,WAAW,GAAG,cAAc;AAElCxD,MAAM,CAACwD,WAAW,GAAG,eAAe;AAEpCrD,kBAAkB,CAACqD,WAAW,GAAG,2BAA2B;AAE5DvC,OAAO,CAACuC,WAAW,GAAG,gBAAgB;AAEtC5C,cAAc,CAAC4C,WAAW,GAAG,uBAAuB;AAEpD5F,IAAI,CAAC4F,WAAW,GAAG,aAAa;AAEhClB,OAAO,CAACkB,WAAW,GAAG,gBAAgB;AAEtCf,WAAW,CAACe,WAAW,GAAG,aAAa;AAEvCZ,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,IAAMrH,MAAM,GAAGrB,gBAAgB,CACpC;EACE+E,IAAI,EAAJA,IAAI;EACJtB,OAAO,EAAPA,OAAO;EACPxB,iBAAiB,EAAjBA,iBAAiB;EACjB2C,KAAK,EAALA,KAAK;EACLM,MAAM,EAANA,MAAM;EACNG,kBAAkB,EAAlBA,kBAAkB;EAClBc,OAAO,EAAPA,OAAO;EACPrD,IAAI,EAAJA,IAAI;EACJ0E,OAAO,EAAPA;AACF,CAAC,EACDrG,OACF,CAAC"}
@@ -39,7 +39,7 @@ var expandContent = function expandContent(maxHeight) {
39
39
  };
40
40
  export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledBannerContainer",
42
- componentId: "core-12_36_0__sc-149wm7c-0"
42
+ componentId: "core-12_38_0__sc-149wm7c-0"
43
43
  })(["align-items:center;border-left:", "px solid;border-radius:", "px;color:", ";display:flex;justify-content:space-between;min-height:52px;padding:0 ", "px;", " ", " ", ""], bannerLeft, borderRadius.md, colors.gray15, spacing.lg, bannerShadow, function (_ref) {
44
44
  var $variant = _ref.$variant;
45
45
  var _bannerVariantColors$ = bannerVariantColors[$variant],
@@ -52,15 +52,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
52
52
  });
53
53
  export var StyledContent = /*#__PURE__*/styled.div.withConfig({
54
54
  displayName: "StyledContent",
55
- componentId: "core-12_36_0__sc-149wm7c-1"
55
+ componentId: "core-12_38_0__sc-149wm7c-1"
56
56
  })(["align-self:center;margin:", "px ", "px ", "px 0;width:100%;"], spacing.sm, spacing.lg, spacing.sm);
57
57
  export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
58
58
  displayName: "StyledExpandableContentContainer",
59
- componentId: "core-12_36_0__sc-149wm7c-2"
59
+ componentId: "core-12_38_0__sc-149wm7c-2"
60
60
  })(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
61
61
  export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
62
62
  displayName: "StyledExpandableContent",
63
- componentId: "core-12_36_0__sc-149wm7c-3"
63
+ componentId: "core-12_38_0__sc-149wm7c-3"
64
64
  })(["animation-duration:450ms;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:", ";box-sizing:border-box;font-size:14px;font-weight:500;letter-spacing:0.25px;line-height:20px;overflow-y:auto;padding:0 ", "px;position:relative;z-index:0;", " ", ""], colors.white, spacing.xl * 2 + spacing.sm, function (_ref3) {
65
65
  var $isOverflowingY = _ref3.$isOverflowingY;
66
66
  return $isOverflowingY && focusable;
@@ -70,23 +70,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
70
70
  });
71
71
  export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
72
72
  displayName: "StyledTitle",
73
- componentId: "core-12_36_0__sc-149wm7c-4"
73
+ componentId: "core-12_38_0__sc-149wm7c-4"
74
74
  })(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
75
75
  export var StyledBody = /*#__PURE__*/styled.div.withConfig({
76
76
  displayName: "StyledBody",
77
- componentId: "core-12_36_0__sc-149wm7c-5"
77
+ componentId: "core-12_38_0__sc-149wm7c-5"
78
78
  })(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
79
79
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledIconContainer",
81
- componentId: "core-12_36_0__sc-149wm7c-6"
81
+ componentId: "core-12_38_0__sc-149wm7c-6"
82
82
  })(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
83
83
  export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
84
84
  displayName: "StyledActionsTrigger",
85
- componentId: "core-12_36_0__sc-149wm7c-7"
85
+ componentId: "core-12_38_0__sc-149wm7c-7"
86
86
  })(["flex-shrink:0;& + ", ",& + ", "{margin-left:-", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
87
87
  export var StyledAction = /*#__PURE__*/styled.div.withConfig({
88
88
  displayName: "StyledAction",
89
- componentId: "core-12_36_0__sc-149wm7c-8"
89
+ componentId: "core-12_38_0__sc-149wm7c-8"
90
90
  })(["margin:", "px 0 ", "px -", "px;& + ", ",& + ", ",& + ", "{margin-left:-", "px;}", ",", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, spacing.sm, spacing.sm, StyledButton, StyledLinkButton, StyledActionsTrigger, spacing.sm, StyledButton, StyledLinkButton, colors.gray15, colors.gray85, colors.gray15);
91
91
  function getMiniBannerIconColor(_ref5) {
92
92
  var variant = _ref5.variant;
@@ -94,6 +94,6 @@ function getMiniBannerIconColor(_ref5) {
94
94
  }
95
95
  export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledMiniBannerContainer",
97
- componentId: "core-12_36_0__sc-149wm7c-9"
97
+ componentId: "core-12_38_0__sc-149wm7c-9"
98
98
  })(["align-items:center;background-color:", ";display:flex;justify-content:space-between;padding:0 ", "px;", " ", " & ", "{margin:", "px;}"], colors.gray96, spacing.md, getTypographyIntent('small'), getMiniBannerIconColor, StyledContent, spacing.sm);
99
99
  //# sourceMappingURL=Banner.styles.js.map
@@ -29,3 +29,9 @@ export interface BannerExpandableContentProps extends Props {
29
29
  */
30
30
  expandableContentMaxHeight?: number;
31
31
  }
32
+ export interface BannerExpandActionButtonProps {
33
+ /** Whether the expandable content is currently expanded */
34
+ isExpanded: boolean;
35
+ /** Called when the user toggles expand/collapse; receives the new expanded value. Use with any state (useState, useReducer, URL, etc.). */
36
+ onExpandChange: (expanded: boolean) => void;
37
+ }
@@ -1 +1 @@
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
+ {"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\nexport interface BannerExpandActionButtonProps {\n /** Whether the expandable content is currently expanded */\n isExpanded: boolean\n /** Called when the user toggles expand/collapse; receives the new expanded value. Use with any state (useState, useReducer, URL, etc.). */\n onExpandChange: (expanded: boolean) => void\n}\n"],"mappings":""}
@@ -1,2 +1,2 @@
1
1
  export { ActionBanner, AttentionBanner, Banner, ErrorBanner, InfoBanner, UNSAFE_MiniBanner, } from './Banner';
2
- export type { BannerExpandableContentProps, BannerIconProps, BannerProps, } from './Banner.types';
2
+ export type { BannerExpandableContentProps, BannerExpandActionButtonProps, BannerIconProps, BannerProps, } from './Banner.types';
@@ -1 +1 @@
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 {\n BannerExpandableContentProps,\n BannerIconProps,\n BannerProps,\n} from './Banner.types'\n"],"mappings":"AAAA,SACEA,YAAY,EACZC,eAAe,EACfC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,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 {\n BannerExpandableContentProps,\n BannerExpandActionButtonProps,\n BannerIconProps,\n BannerProps,\n} 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-12_36_0__sc-fgsy0p-0"
24
+ componentId: "core-12_38_0__sc-fgsy0p-0"
25
25
  })(["", " ", ""], function (_ref) {
26
26
  var as = _ref.as;
27
27
  if (as === 'ol' || as === 'ul') {