@procore/core-react 12.21.0 → 12.21.2

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 (221) hide show
  1. package/CHANGELOG.md +428 -0
  2. package/README.md +3 -3
  3. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  4. package/dist/Avatar/Avatar.styles.js +5 -5
  5. package/dist/AvatarStack/AvatarStack.d.ts +1 -1
  6. package/dist/AvatarStack/AvatarStack.js +21 -18
  7. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  8. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  9. package/dist/Badge/Badge.styles.js +2 -2
  10. package/dist/Banner/Banner.styles.js +10 -10
  11. package/dist/Box/Box.styles.js +1 -1
  12. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  13. package/dist/Button/Button.styles.js +5 -5
  14. package/dist/Calendar/Calendar.styles.js +8 -8
  15. package/dist/Card/Card.styles.js +1 -1
  16. package/dist/Checkbox/Checkbox.styles.js +6 -6
  17. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  18. package/dist/ContactItem/ContactItem.styles.js +5 -5
  19. package/dist/Content/Content.styles.js +2 -2
  20. package/dist/DateInput/DateInput.styles.js +6 -6
  21. package/dist/DetailPage/DetailPage.styles.js +7 -7
  22. package/dist/Dropdown/Dropdown.styles.js +3 -3
  23. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  24. package/dist/Dropzone/Dropzone.js +1 -1
  25. package/dist/Dropzone/Dropzone.styles.js +9 -9
  26. package/dist/EmptyState/EmptyState.styles.js +6 -6
  27. package/dist/Field/Field.styles.js +3 -3
  28. package/dist/FileList/FileList.styles.js +4 -4
  29. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  30. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  31. package/dist/FileSelect/FileSelect.js +9 -1
  32. package/dist/FileSelect/FileSelect.js.map +1 -1
  33. package/dist/FileSelect/FileSelect.styles.js +2 -2
  34. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  35. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  36. package/dist/FileSelect/GridSource/GridSource.js +9 -1
  37. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  38. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  39. package/dist/FileSelect/LocalSource/LocalSource.js +9 -1
  40. package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
  41. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  42. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  43. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  44. package/dist/FileSelect/TreeSource/TreeSource.js +9 -1
  45. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  46. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  47. package/dist/FileSelect/storyHelpers.js +9 -1
  48. package/dist/FileSelect/storyHelpers.js.map +1 -1
  49. package/dist/FileToken/FileToken.styles.js +4 -4
  50. package/dist/FilterToken/FilterToken.styles.js +5 -5
  51. package/dist/FlexList/FlexList.styles.js +1 -1
  52. package/dist/Form/Form.styles.js +14 -14
  53. package/dist/Form/StyledFormikForm.styles.js +2 -2
  54. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  55. package/dist/Grid/Grid.styles.js +2 -2
  56. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  57. package/dist/Input/Input.styles.js +1 -1
  58. package/dist/Link/Link.styles.js +1 -1
  59. package/dist/ListPage/ListPage.styles.js +8 -8
  60. package/dist/Loader/Loader.styles.js +2 -2
  61. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  62. package/dist/Modal/Modal.js +5 -1
  63. package/dist/Modal/Modal.js.map +1 -1
  64. package/dist/Modal/Modal.styles.js +13 -13
  65. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  66. package/dist/NextMenu/NextMenu.styles.js +3 -3
  67. package/dist/Notation/Notation.js +1 -1
  68. package/dist/NumberInput/NumberInput.styles.js +7 -7
  69. package/dist/NumberInput/NumberInput.utils.js +8 -0
  70. package/dist/NumberInput/NumberInput.utils.js.map +1 -1
  71. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  72. package/dist/PageLayout/PageLayout.js +9 -1
  73. package/dist/PageLayout/PageLayout.js.map +1 -1
  74. package/dist/PageLayout/PageLayout.styles.js +16 -16
  75. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  76. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.js +1 -3
  77. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.js.map +1 -1
  78. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +1 -6
  79. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +4 -6
  80. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js.map +1 -1
  81. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  82. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  83. package/dist/Pagination/Pagination.styles.js +5 -5
  84. package/dist/Panel/Panel.styles.js +11 -11
  85. package/dist/Pill/Pill.styles.js +2 -2
  86. package/dist/PillSelect/PillSelect.styles.js +4 -4
  87. package/dist/Popover/Popover.styles.js +2 -2
  88. package/dist/Portal/Portal.styles.js +1 -1
  89. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  90. package/dist/RadioButton/RadioButton.styles.js +3 -3
  91. package/dist/Required/Required.styles.js +3 -3
  92. package/dist/Search/Search.styles.js +5 -5
  93. package/dist/Search/Search.types.d.ts +2 -7
  94. package/dist/Search/Search.types.js.map +1 -1
  95. package/dist/Section/Section.styles.js +7 -7
  96. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  97. package/dist/Select/Select.styles.js +7 -7
  98. package/dist/Semantic/Semantic.styles.js +9 -9
  99. package/dist/Slider/Slider.styles.js +5 -5
  100. package/dist/Spinner/Spinner.styles.js +7 -7
  101. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  102. package/dist/SuperSelect/SuperSelect.d.ts +2 -179
  103. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  104. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  105. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  106. package/dist/SuperSelect/SuperSelect.types.d.ts +82 -2
  107. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  108. package/dist/SuperSelect/useSuperSelect.d.ts +4 -536
  109. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  110. package/dist/Switch/Switch.styles.js +4 -4
  111. package/dist/Table/Table.styles.js +28 -28
  112. package/dist/TableShelf/TableShelf.styles.js +5 -5
  113. package/dist/Tabs/Tabs.styles.js +15 -15
  114. package/dist/Tearsheet/Tearsheet.js +9 -1
  115. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  116. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  117. package/dist/TextArea/TextArea.styles.js +1 -1
  118. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  119. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  120. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  121. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  122. package/dist/Tile/Tile.styles.js +8 -8
  123. package/dist/Title/Title.styles.js +8 -8
  124. package/dist/Title/Title.styles.js.map +1 -1
  125. package/dist/Toast/Toast.styles.js +3 -3
  126. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  127. package/dist/Token/Token.styles.js +3 -3
  128. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  129. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  130. package/dist/Tooltip/Tooltip.styles.js +2 -2
  131. package/dist/Tree/Tree.hooks.js +9 -1
  132. package/dist/Tree/Tree.hooks.js.map +1 -1
  133. package/dist/Tree/Tree.styles.js +9 -9
  134. package/dist/Typeahead/Typeahead.styles.js +3 -3
  135. package/dist/Typography/Typography.styles.js +1 -1
  136. package/dist/Typography/Typography.table.story.js +2 -2
  137. package/dist/_hooks/useFileUploader.js +8 -1
  138. package/dist/_hooks/useFileUploader.js.map +1 -1
  139. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  140. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  141. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  142. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  143. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  144. package/dist/_typedoc/Box/Box.types.json +68 -68
  145. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  146. package/dist/_typedoc/Button/Button.types.json +13 -13
  147. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  148. package/dist/_typedoc/Card/Card.types.json +6 -6
  149. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  150. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  151. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  152. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  153. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  154. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  155. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  156. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  157. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  158. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  159. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  160. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  161. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  162. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  163. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  164. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  165. package/dist/_typedoc/Form/Form.types.json +741 -741
  166. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  167. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  168. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  169. package/dist/_typedoc/Input/Input.types.json +2 -2
  170. package/dist/_typedoc/Link/Link.types.json +4 -4
  171. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  172. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  173. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  174. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  175. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  176. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  177. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  178. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  179. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  180. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  181. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  182. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  183. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  184. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  185. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  186. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  187. package/dist/_typedoc/Required/Required.types.json +5 -5
  188. package/dist/_typedoc/Search/Search.types.json +20 -32
  189. package/dist/_typedoc/Section/Section.types.json +15 -15
  190. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  191. package/dist/_typedoc/Select/Select.types.json +60 -60
  192. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  193. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  194. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  195. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  196. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  197. package/dist/_typedoc/Table/Table.types.json +101 -101
  198. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  199. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  200. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  201. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  202. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  203. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  204. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  205. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  206. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  207. package/dist/_typedoc/Title/Title.types.json +1 -1
  208. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  209. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  210. package/dist/_typedoc/Token/Token.types.json +4 -4
  211. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  212. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  213. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  214. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  215. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  216. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  217. package/dist/_typedoc/_utils/types.json +3 -3
  218. package/dist/_typedoc/deprecations.json +1 -1
  219. package/dist/_utils/runInQueue.js +9 -1
  220. package/dist/_utils/runInQueue.js.map +1 -1
  221. package/package.json +4 -7
package/CHANGELOG.md ADDED
@@ -0,0 +1,428 @@
1
+ # Change Log
2
+
3
+ ## 12.21.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 632ce8a: Title to subheading spacing increased by 4, toggle button has consistent spacing in page header
8
+ - a9ac0ff: Yarn 4 migration
9
+
10
+ - Update to Yarn 4
11
+ - Update README instructions
12
+ - Update workspace syntax
13
+ - Update CircleCI config
14
+ - Replace Husky with Git hooks
15
+ - Fix minor TypeScript build issues
16
+
17
+ - Updated dependencies [a9ac0ff]
18
+ - @procore/core-icons@12.6.1
19
+
20
+ ## 12.21.1
21
+
22
+ ### Patch Changes
23
+
24
+ - a923d1b: Un-deprecate `disabled` prop for the Search component
25
+ - 2cb1890: fix `NumberInput` typing issue
26
+
27
+ ## 12.21.0
28
+
29
+ ### Minor Changes
30
+
31
+ - ee16a7f: RadioButton error adds aria-invalid
32
+
33
+ ### Patch Changes
34
+
35
+ - ce06a5b: Add description of `useSplitViewCard` hook in `SplitViewCard`
36
+ Export `useSplitViewCard` to control opening/closing `SplitViewCard`
37
+
38
+ ## 12.20.4
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [1172b23]
43
+ - @procore/core-icons@12.6.0
44
+
45
+ ## 12.20.3
46
+
47
+ ### Patch Changes
48
+
49
+ - 28a8cec: Added type overload to useI18nContext for non generic cases
50
+ - Updated dependencies [8ca5a1d]
51
+ - @procore/core-icons@12.5.0
52
+
53
+ ## 12.20.2
54
+
55
+ ### Patch Changes
56
+
57
+ - dcf6db1: Fix `TieredDropdown` search state now clears on blur
58
+ - 39489bf: Fix for the second argument of `translate()` and `t()` to be optional when the string is not pluralized or interpolated
59
+ - Updated dependencies [ac240cb]
60
+ - @procore/core-icons@12.4.0
61
+
62
+ ## 12.20.1
63
+
64
+ ### Patch Changes
65
+
66
+ - 3b03f2c: non-selectable items in the `Tree` are now styled to appear visually disabled
67
+ - 6b4152c: Update `ToolLandingPage` settings link colors to be a secondary button
68
+ - 6b4152c: Fixed typed `useI18nContext` to properly handle pluralized translations.
69
+
70
+ ## 12.20.0
71
+
72
+ ### Minor Changes
73
+
74
+ - 12df818: Added generic type parameter for `useI18nContext` to enable strong typing of translation parameters
75
+
76
+ ### Non SemVer Changes
77
+
78
+ - Unsafe limited release alpha PageHeaderTemplate
79
+
80
+ ## 12.19.0
81
+
82
+ ### Minor Changes
83
+
84
+ - a7648b2: `Dropzone` component deprecates `tooltip` property, add `tokens` and `onClear` props for displaying files
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [4fccfec]
89
+ - @procore/core-i18n-js@10.29.3
90
+
91
+ ## 12.18.1
92
+
93
+ ### Patch Changes
94
+
95
+ - a34bc6a: Upgrades `@tinymce/tinymce-react`, removes `tinymce` as a dependency
96
+ - 789f671: Fix typo in translation key name.
97
+
98
+ ## 12.18.0
99
+
100
+ ### Minor Changes
101
+
102
+ - d167d90: [UXI-1088] Remove `react-beautiful-dnd` peerDependency requirement. Migration to and internalizes `@atlaskit/pragmatic-drag-and-drop`
103
+ - abb108e: Introduce `TextInput`component instead to replace `Input`, planning to deprecate `Input` component
104
+
105
+ ### Patch Changes
106
+
107
+ - cb84286: Fixed `Spinner` to disable animations when `loading` is false.
108
+ - c447ddc: Tinymce to 6.8.5
109
+
110
+ ## 12.17.8
111
+
112
+ ### Patch Changes
113
+
114
+ - 53110d4: Deprecate `compact` property, add `isHorizontal` and `size` properties to EmptyState component
115
+
116
+ ## 12.17.7
117
+
118
+ ### Patch Changes
119
+
120
+ - 5cadbc9: Add default icon to Banner componet depending on variant
121
+ - 98780c8: Deprecate `iconRight` property and `tertiaryContrast` variant for Button. Decouple FilterToken component from Button
122
+
123
+ ## 12.17.6
124
+
125
+ ### Patch Changes
126
+
127
+ - 864ac9d: Update dependency package versions
128
+
129
+ ## 12.17.5
130
+
131
+ ### Patch Changes
132
+
133
+ - b19e0a0f42: Fix `isTierDisabled` in `TieredSelect` component with selectable tiers
134
+ - c33b95d3b0: `SegmentedController.Segment` `selected` instead of `active`, deprecate `active`
135
+ - c861e39b23: Deprecate `active` prop in `Tabs` component, replaced by the `selected` prop
136
+ - b6784bf2bc: `Spinner` `variant` instead of `color`, add new variants
137
+ - Hide label on small sizes (`xs`, `sm`).
138
+ - Deprecate `color` property.
139
+ - Un-deprecate `variant` property, add `default`, `button` and `focus` variants
140
+ - caacaa17b5: Deprecate `traditional` `variant` for `Form` field layouts
141
+
142
+ ## 12.17.4
143
+
144
+ ### Patch Changes
145
+
146
+ - 3f23de248: Deprecate `gray` variant from Link component
147
+ - cce0b1f41: Axios package bump for security
148
+
149
+ ## 12.17.3
150
+
151
+ ### Patch Changes
152
+
153
+ - fe7e10cbe: Deprecate `sm` size in Avatar component
154
+ - 1d8188268: Tearsheet deprecate `placement` and `stretch`, add `block` property as a drop-in replacement for `stretch`
155
+ - 340e07485: Deprecate `size` `sm` in AvatarStack component
156
+ - 72cca9636: Popover deprecate `fluid` property, add `block` property as a drop-in replacement
157
+
158
+ ## 12.17.2
159
+
160
+ ### Patch Changes
161
+
162
+ - 844a38816d: Updated the file upload error messages to display the file's relative path.
163
+ - 144ef26610: Deprecate `disabled` and `error` props for the Search component
164
+ - d6f8cdd9cd: Fix some accessibility a11y warnings
165
+ - 33607f479c: Update Dropzone error messaging.
166
+
167
+ ## 12.17.1
168
+
169
+ ### Patch Changes
170
+
171
+ - 59ce2207fa: Improve messaging for blocking zero byte uploads in Dropzone component.
172
+ - Updated dependencies [fd00589dce]
173
+ - Updated dependencies
174
+ - @procore/core-icons@12.3.0
175
+
176
+ ## 12.17.0
177
+
178
+ ### Minor Changes
179
+
180
+ - bbaaa149de: Removed text transform from the Spinner label
181
+
182
+ ### Patch Changes
183
+
184
+ - e6cff39e8e: Fix invalid html attributes for Typography and Tabs, use styled-components transient prefix $
185
+ - fe5abed75a: Added animationFrame: true to autoUpdate to prevent ResizeObserver bug in @floating-ui
186
+
187
+ ## 12.16.2
188
+
189
+ ### Patch Changes
190
+
191
+ - 221c980472: Removed unnecessary re-renders for TextEditor by memoize the focusScope for the useEffect to avoid over-triggering.
192
+ - 758409d4d0: Add data-core-react attribute for tracking NextGen Layouts utilization
193
+
194
+ ## 12.16.1
195
+
196
+ ### Patch Changes
197
+
198
+ - 09eb576e78: Focus can leave a Modal or Tearsheet when the TinyMCE TextEditor has a plugin enabled that opens its own TinyMCE modal
199
+
200
+ ## 12.16.0
201
+
202
+ ### Minor Changes
203
+
204
+ - cb9ef0cf13: disable buttons during the closing transitions of the modal and tearsheets components.
205
+
206
+ ### Patch Changes
207
+
208
+ - 5633033fec: Dropped core-css and scss in GroupBySelect
209
+ - d50705608f: [UXI-885] Updating colors for the animated progress bar
210
+
211
+ ## 12.15.0
212
+
213
+ ### Minor Changes
214
+
215
+ - 4e51fffd2: Add header prop to Select component
216
+
217
+ ## 12.14.0
218
+
219
+ ### Minor Changes
220
+
221
+ - e660ed1ce: Adding option renderer props to the Form.Select and MultiSelect types so they can be used without error by the consumer
222
+ - 85403fc79: Updating dependencies
223
+
224
+ ### Patch Changes
225
+
226
+ - 081ac7922: fix React warning with Spinner and EmptyState for invalid attributes from styled-components
227
+ - d1e891702: EmptyState's description using `body` instead of `h3`
228
+
229
+ ## 12.13.0
230
+
231
+ ### Minor Changes
232
+
233
+ - 23cdefdd1a: Updating ToggleButton styles, adding loading prop
234
+ - 2718e17f50: Added size sm to Avatar and AvatarStack
235
+
236
+ ## 12.12.1
237
+
238
+ ### Patch Changes
239
+
240
+ - d6e90a75c: Fix placeholder for de-DE in DateInput component
241
+ - aeac00464: Fix issue with resetting ungrouped/grouped columns (UISP-215)[UISP-215 https://procoretech.atlassian.net/browse/UISP-215]
242
+
243
+ ## 12.12.0
244
+
245
+ ### Minor Changes
246
+
247
+ - ce4c89f36: Add onClickViewAll prop to AvatarStack
248
+ - b973bf06d: Thumbnail Placeholder variant file
249
+ - 2a9c4441d: Improve accessibility to dropdownflyout component which is used in data-table component
250
+ - 36ae9f382: update required label capitalization
251
+
252
+ ### Patch Changes
253
+
254
+ - ba1a46661: Panel Footer show shadow only while scrolling
255
+
256
+ ## 12.11.1
257
+
258
+ ### Patch Changes
259
+
260
+ - 14551f2c3: Fixed passing a deprecated locale and its translations to I18nProvider was resulting in showing no translations
261
+
262
+ ## 12.11.0
263
+
264
+ ### Minor Changes
265
+
266
+ - b034c8b7e7: Introducing GhostPlaceholder
267
+ - 977a03d2e3: Allow to change the strategy for restoring focus in OverlayTrigger. This fixes closing Select by Tab button.
268
+
269
+ ### Patch Changes
270
+
271
+ - Updated dependencies [9e378e94cf]
272
+ - @procore/core-icons@12.2.0
273
+
274
+ ## 12.10.0
275
+
276
+ ### Minor Changes
277
+
278
+ - 6df512a30: - Add Polish support
279
+ - Mark Locale type as deprecated
280
+ - Mark getI18nProviderLocale as deprecated
281
+ - 6c2153dea: Changes have been made in the translation for Page keyword in pagination to include the colon along with the translation.
282
+ - 76a28038d: Panel Header Action improve screen reader and keyboard support with aria-label and focus trigger
283
+
284
+ ### Patch Changes
285
+
286
+ - ae429cddb: SplitViewCard no outer spacing on mobile
287
+ - Updated dependencies [8c613f543]
288
+ - @procore/core-i18n-js@10.29.0
289
+
290
+ ## 12.9.0
291
+
292
+ ### Minor Changes
293
+
294
+ - f4bba2564d: Add ToolLandingPage layout and deprecate the ListPage layout
295
+ - 2385ee3dc2: Add SplitViewCard component
296
+ - e72d0229e4: Add unsafe button variant for helix header
297
+
298
+ ### Patch Changes
299
+
300
+ - c82363b770: Detail Page Body and Detail Page Card reduce leading space between
301
+
302
+ ## 12.8.1
303
+
304
+ ### Patch Changes
305
+
306
+ - f238516964: fix internal tab styles for helix header
307
+
308
+ ## 12.8.0
309
+
310
+ ### Minor Changes
311
+
312
+ - 77ab117fd4: Added `StyledFormFieldMain` export related to Form
313
+ - b9bbcf6427: Added internal prop to Modal parts to enable mobile breakpoint responsiveness for Helix Header use. Not intended for widespread use. (`compact`)
314
+ - a7bb749cf8: Added internal prop for Tab styles to be used for global navigation. Not intended for widespread use. (`UNSAFE_helixHeader`)
315
+
316
+ ## 12.7.0
317
+
318
+ ### Minor Changes
319
+
320
+ - d62b76bd8: tinymce strikethrough text formatting
321
+
322
+ ### Patch Changes
323
+
324
+ - 2ab36a650: Add max_height property to TextEditorOutput component
325
+ - 55fed6084: Added `SpanAttributes` type export to fix `styled-components` type error.
326
+ - a5daf2815: Add export for Tier
327
+ - Updated dependencies [716e98717]
328
+ - @procore/core-icons@12.1.0
329
+
330
+ ## 12.6.0
331
+
332
+ ### Minor Changes
333
+
334
+ - 77396f11c: Add TinyMCE advlist plugin to default plugins for more bullet and counter styles
335
+
336
+ ## 12.5.0
337
+
338
+ ### Minor Changes
339
+
340
+ - 898ad719e: Add support for multiple fallbacks on the i18nProvider
341
+
342
+ ### Patch Changes
343
+
344
+ - 58d7677bf: Add export for DivAttributes
345
+
346
+ ## 12.4.2
347
+
348
+ ### Patch Changes
349
+
350
+ - 74dc723988: Extend MenuItemProps with AnchorItemProps
351
+
352
+ ## 12.4.1
353
+
354
+ ### Patch Changes
355
+
356
+ - ecc17b836: Added missing exports that were excluded after removing dist imports
357
+
358
+ ## 12.4.0
359
+
360
+ ### Minor Changes
361
+
362
+ - c3b8bc91c0: Add anchor navigation to DetailPage and SettingsPage layouts
363
+
364
+ ### Patch Changes
365
+
366
+ - b832463cbe: TextArea allows rows for larger than min-height default sizes (removes fixed height)
367
+ - 6c63b2cf22: Added `UNSAFE_EmptyStateSvg` export from `EmptyState`.
368
+ - 6c63b2cf22: Added `UNSAFE_ThumbnailDocumentIcon` export from `Thumbnail`.
369
+ - 1ba4e0af1c: Add exports for celi-select package dependencies
370
+ - 004a11a69c: Added `UNSAFE_TreeChevron`, `UNSAFE_TreeChevronContainer`, `UNSAFE_TreeFilenameCaption`, `UNSAFE_TreeIconContainer`, `UNSAFE_TreeRowContainer`, and `UNSAFE_TreeRowContent` export from the `Tree` component.
371
+
372
+ ## 12.3.0
373
+
374
+ ### Minor Changes
375
+
376
+ - 9f36515057: Add SettingsPage layout
377
+ - d378956ad7: Adds exports for TinyMCE
378
+
379
+ ## 12.2.0
380
+
381
+ ### Minor Changes
382
+
383
+ - 952834a3c0: Add exports intended for json-formulator v12 support
384
+
385
+ ### Patch Changes
386
+
387
+ - 2614939306: Update label typography font weight from 700 to 600
388
+
389
+ ## 12.1.0
390
+
391
+ ### Minor Changes
392
+
393
+ - d159f925da: Add missed exports of Dropzone for file-select library internal development
394
+
395
+ ## 12.0.0 (2024-05-28)
396
+
397
+ ### Major Changes
398
+
399
+ See [v12 migration guide](https://core.procore.com/latest/web/releases/migration-guides/core-react/v11-to-v12/) for the full list of changes and migration guides.
400
+
401
+ General changes:
402
+
403
+ - Imports from `dist` folder do not work anymore.
404
+ - `@procore/globalization-toolkit` is moved from dependencies to required peerDependencies.
405
+ - `react-beautiful-dnd` is moved from dependencies to required peerDependencies.
406
+ - `formik` peerDependency is now optional. Necessary when using `Form` components and hooks.
407
+ - resize observer polyfill remove
408
+
409
+ Other changes:
410
+
411
+ - `NumberInput` no longer uses the `locale` as prop from the component.
412
+ - `Page` and `DetailPage` subcomponent padding refactor.
413
+ - Removed deprecated components, hooks, and contexts:
414
+ - `SuccessBanner`
415
+ - `Sidebar`, `Sidebar.*`
416
+ - `Analytics`, `AnalyticsContext`, `AnalyticsProvider`, etc
417
+ - `AnchorContext`, `AnchorProvider`, `useAnchorContext`, etc
418
+ - `Autofocus`, `useAutofocus`
419
+ - `BoundingRectContext`, `useBoundingRectContext`, `useBoundingRect`, etc
420
+ - `BufferContext`, `useBufferContext`, etc
421
+ - `Event`, `EventProvider`, `useEvent`, `useEventContext` etc
422
+ - `InjectedScriptContext`, `InjectedScriptProvider`, `useInjectedScriptContext`, etc
423
+ - `ListNavigationContext`, `ListNavigationProvider`, `useListNavigationContext`, etc
424
+ - `ResizeObserver`
425
+ - `TextEntryContext`, `TextEntryProvider`, `useTextEntryContext`, etc
426
+ - `TimerContext`, `TimerProvider`, `useTimerContext`, etc
427
+ - `TriggerContext`, `TriggerProvider`, `useTriggerContext`, etc
428
+ - `VisibilityContext`, `VisibilityProvider`, `useVisibilityContext`, etc
package/README.md CHANGED
@@ -5,7 +5,7 @@ A set of React components implementing the design system spec.
5
5
  ## Requirements
6
6
 
7
7
  Node 16+
8
- YARN 1.22+
8
+ YARN 4+
9
9
 
10
10
  ## Usage
11
11
 
@@ -85,13 +85,13 @@ yarn storybook
85
85
 
86
86
  ## Testing
87
87
 
88
- Testing currently consists of Jest snapshots, Enzyme tests, and React Testing Library tests.
88
+ Testing currently consists of Jest snapshots and React Testing Library tests.
89
89
 
90
90
  ```sh
91
91
  yarn test
92
92
  ```
93
93
 
94
- Visual Regression Testing is ran in CI, pixel snapshots of Coverage stories.
94
+ Additional testing includes Visual Regression Testing (VRT) that is ran in CI, which compares pixel snapshots of Storybook Coverage stories.
95
95
 
96
96
  ## Building
97
97
 
@@ -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_21_0__sc-aacdj4-0"
8
+ componentId: "core-12_21_2__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_21_0__sc-aacdj4-1"
12
+ componentId: "core-12_21_2__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_21_0__sc-aacdj4-2"
25
+ componentId: "core-12_21_2__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_21_0__sc-7q2ydl-0"
31
+ componentId: "core-12_21_2__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_21_0__sc-7q2ydl-1"
35
+ componentId: "core-12_21_2__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_21_0__sc-7q2ydl-2"
39
+ componentId: "core-12_21_2__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_21_0__sc-7q2ydl-3"
43
+ componentId: "core-12_21_2__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_21_0__sc-7q2ydl-4"
50
+ componentId: "core-12_21_2__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;
@@ -11,7 +11,7 @@ export declare function getIcon(type: AvatarStackItemType, size: 'md' | 'sm'): R
11
11
  export declare function getAvatarIcon(type: AvatarStackItemType, size: AvatarStackSize): React.JSX.Element | null;
12
12
  export declare function getColorOrder(avatarItems: AvatarStackItem[]): Map<AvatarStackItemId, Color>;
13
13
  export declare function AvatarStackContactItem({ id, type, imageUrl, initials, inactive, name, linkUrl, description, }: AvatarStackItem): React.JSX.Element;
14
- export declare function AvatarContent({ imageUrl, initials, type, size, }: {
14
+ export declare function AvatarContent({ imageUrl, initials, type, size, ...props }: {
15
15
  imageUrl?: AvatarStackItem['imageUrl'];
16
16
  initials: AvatarStackItem['initials'];
17
17
  type: AvatarStackItem['type'];
@@ -1,19 +1,20 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["items", "title", "size", "getInitials", "getImageUrl", "onClickViewAll"];
2
+ var _excluded = ["imageUrl", "initials", "type", "size"],
3
+ _excluded2 = ["items", "title", "size", "getInitials", "getImageUrl", "onClickViewAll"];
3
4
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
5
  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."); }
5
6
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
6
7
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
8
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
9
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
11
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
15
  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
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
17
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
17
18
  import { Building, People } from '@procore/core-icons';
18
19
  import { useId } from '@react-aria/utils';
19
20
  import React, { forwardRef, useMemo, useState } from 'react';
@@ -107,11 +108,11 @@ export function AvatarStackContactItem(_ref2) {
107
108
  linkUrl = _ref2.linkUrl,
108
109
  description = _ref2.description;
109
110
  return /*#__PURE__*/React.createElement(StyledContactItem, {
110
- key: id,
111
+ disabled: inactive,
112
+ icon: getContactIcon(type),
111
113
  imageUrl: imageUrl,
112
114
  initials: initials,
113
- icon: getContactIcon(type),
114
- disabled: inactive
115
+ key: id
115
116
  }, /*#__PURE__*/React.createElement(ContactItem.Title, null, !inactive && linkUrl ? /*#__PURE__*/React.createElement(Link, {
116
117
  href: linkUrl
117
118
  }, name) : name), /*#__PURE__*/React.createElement(ContactItem.Description, null, type === 'group' ? /*#__PURE__*/React.createElement(Typography, {
@@ -122,20 +123,21 @@ export function AvatarContent(_ref3) {
122
123
  var imageUrl = _ref3.imageUrl,
123
124
  initials = _ref3.initials,
124
125
  type = _ref3.type,
125
- size = _ref3.size;
126
+ size = _ref3.size,
127
+ props = _objectWithoutProperties(_ref3, _excluded);
126
128
  var avatarIcon = getAvatarIcon(type, size);
127
129
  if (imageUrl) {
128
- return /*#__PURE__*/React.createElement(Avatar.Portrait, {
130
+ return /*#__PURE__*/React.createElement(Avatar.Portrait, _extends({}, props, {
129
131
  imageUrl: imageUrl
130
- });
132
+ }));
131
133
  }
132
134
  if (avatarIcon) {
133
- return /*#__PURE__*/React.createElement(Avatar.Icon, {
135
+ return /*#__PURE__*/React.createElement(Avatar.Icon, _extends({}, props, {
134
136
  icon: avatarIcon
135
- });
137
+ }));
136
138
  }
137
139
  if (initials) {
138
- return /*#__PURE__*/React.createElement(Avatar.Label, null, initials);
140
+ return /*#__PURE__*/React.createElement(Avatar.Label, props, initials);
139
141
  }
140
142
  return null;
141
143
  }
@@ -167,10 +169,10 @@ function AvatarWithPopover(_ref4) {
167
169
  description: item.description
168
170
  }))
169
171
  }, /*#__PURE__*/React.createElement(StyledAvatar, _extends({}, avatarProps, {
172
+ $color: colors.get(item.id),
170
173
  "aria-label": "".concat(item.name, ", ").concat(item.description),
171
174
  disabled: item.inactive,
172
- size: size,
173
- $color: colors.get(item.id)
175
+ size: size
174
176
  }), /*#__PURE__*/React.createElement(AvatarContent, {
175
177
  imageUrl: item.imageUrl,
176
178
  initials: item.initials,
@@ -189,9 +191,9 @@ export function FoldedAvatarStack(_ref5) {
189
191
  var overlayRef = React.useRef(null);
190
192
  var restAvatarId = useId();
191
193
  return /*#__PURE__*/React.createElement(Popover, {
192
- trigger: defaultPopoverTrigger,
193
194
  "aria-labelledby": restAvatarId,
194
195
  overlayRef: overlayRef,
196
+ trigger: defaultPopoverTrigger,
195
197
  beforeHide: function beforeHide(e) {
196
198
  return e.type !== 'blur';
197
199
  },
@@ -234,6 +236,7 @@ export function ViewAllModal(_ref6) {
234
236
  items = _ref6.items;
235
237
  var I18n = useI18nContext();
236
238
  var labelId = useId();
239
+ var text = "".concat(title, " (").concat(items.length, ")");
237
240
  return /*#__PURE__*/React.createElement(Modal, {
238
241
  role: "dialog",
239
242
  "aria-labelledby": labelId,
@@ -241,9 +244,9 @@ export function ViewAllModal(_ref6) {
241
244
  onClose: onClose
242
245
  }, /*#__PURE__*/React.createElement(Modal.Header, {
243
246
  onClose: onClose
244
- }, /*#__PURE__*/React.createElement("span", {
247
+ }, /*#__PURE__*/React.createElement(Modal.Heading, {
245
248
  id: labelId
246
- }, title, " (", items.length, ")")), /*#__PURE__*/React.createElement(StyledModalBody, null, items.map(function (item) {
249
+ }, text)), /*#__PURE__*/React.createElement(StyledModalBody, null, items.map(function (item) {
247
250
  return /*#__PURE__*/React.createElement(AvatarStackContactItem, {
248
251
  key: item.id,
249
252
  id: item.id,
@@ -286,7 +289,7 @@ var _AvatarStack = function _AvatarStack(_ref8, ref) {
286
289
  _ref8$getImageUrl = _ref8.getImageUrl,
287
290
  getImageUrl = _ref8$getImageUrl === void 0 ? defaultGetImageUrl : _ref8$getImageUrl,
288
291
  onClickViewAll = _ref8.onClickViewAll,
289
- props = _objectWithoutProperties(_ref8, _excluded);
292
+ props = _objectWithoutProperties(_ref8, _excluded2);
290
293
  var _useState = useState(false),
291
294
  _useState2 = _slicedToArray(_useState, 2),
292
295
  isModalOpen = _useState2[0],