@pega/cosmos-react-core 10.0.0-build.1.9 → 10.0.0-build.10.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 (777) hide show
  1. package/lib/components/AIButton/AIButton.d.ts +3 -3
  2. package/lib/components/AIButton/AIButton.d.ts.map +1 -1
  3. package/lib/components/AIButton/AIButton.js +2 -1
  4. package/lib/components/AIButton/AIButton.js.map +1 -1
  5. package/lib/components/AIRewrite/AIRewrite.d.ts +1 -1
  6. package/lib/components/AIRewrite/AIRewrite.d.ts.map +1 -1
  7. package/lib/components/AIRewrite/AIRewrite.js +7 -3
  8. package/lib/components/AIRewrite/AIRewrite.js.map +1 -1
  9. package/lib/components/AIRewrite/AIRewrite.styles.d.ts +43 -7
  10. package/lib/components/AIRewrite/AIRewrite.styles.d.ts.map +1 -1
  11. package/lib/components/AIRewrite/AIRewrite.styles.js +5 -2
  12. package/lib/components/AIRewrite/AIRewrite.styles.js.map +1 -1
  13. package/lib/components/AIRewrite/AIRewrite.types.d.ts +2 -0
  14. package/lib/components/AIRewrite/AIRewrite.types.d.ts.map +1 -1
  15. package/lib/components/AIRewrite/AIRewrite.types.js.map +1 -1
  16. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  17. package/lib/components/AppShell/AppHeader.js +90 -9
  18. package/lib/components/AppShell/AppHeader.js.map +1 -1
  19. package/lib/components/AppShell/AppHeader.styles.d.ts +6 -2
  20. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -1
  21. package/lib/components/AppShell/AppHeader.styles.js +89 -56
  22. package/lib/components/AppShell/AppHeader.styles.js.map +1 -1
  23. package/lib/components/AppShell/AppNavigationPanel.d.ts.map +1 -1
  24. package/lib/components/AppShell/AppNavigationPanel.js +16 -7
  25. package/lib/components/AppShell/AppNavigationPanel.js.map +1 -1
  26. package/lib/components/AppShell/AppShell.d.ts +3 -2
  27. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  28. package/lib/components/AppShell/AppShell.js +134 -177
  29. package/lib/components/AppShell/AppShell.js.map +1 -1
  30. package/lib/components/AppShell/AppShell.styles.d.ts +20 -15
  31. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  32. package/lib/components/AppShell/AppShell.styles.js +145 -211
  33. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  34. package/lib/components/AppShell/AppShell.types.d.ts +117 -2
  35. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  36. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  37. package/lib/components/AppShell/AppShellContext.d.ts +3 -0
  38. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  39. package/lib/components/AppShell/AppShellContext.js +1 -0
  40. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  41. package/lib/components/AppShell/AppShellList.d.ts +2 -0
  42. package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
  43. package/lib/components/AppShell/AppShellList.js +8 -4
  44. package/lib/components/AppShell/AppShellList.js.map +1 -1
  45. package/lib/components/AppShell/AppShellList.styles.d.ts +1 -1
  46. package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -1
  47. package/lib/components/AppShell/AppShellList.styles.js +63 -23
  48. package/lib/components/AppShell/AppShellList.styles.js.map +1 -1
  49. package/lib/components/AppShell/AppTopNav.styles.d.ts.map +1 -1
  50. package/lib/components/AppShell/AppTopNav.styles.js +6 -2
  51. package/lib/components/AppShell/AppTopNav.styles.js.map +1 -1
  52. package/lib/components/AppShell/DocumentTabs.d.ts +6 -0
  53. package/lib/components/AppShell/DocumentTabs.d.ts.map +1 -0
  54. package/lib/components/AppShell/DocumentTabs.js +409 -0
  55. package/lib/components/AppShell/DocumentTabs.js.map +1 -0
  56. package/lib/components/AppShell/DocumentTabs.styles.d.ts +231 -0
  57. package/lib/components/AppShell/DocumentTabs.styles.d.ts.map +1 -0
  58. package/lib/components/AppShell/DocumentTabs.styles.js +564 -0
  59. package/lib/components/AppShell/DocumentTabs.styles.js.map +1 -0
  60. package/lib/components/AppShell/Drawer.d.ts +1 -2
  61. package/lib/components/AppShell/Drawer.d.ts.map +1 -1
  62. package/lib/components/AppShell/Drawer.js +4 -4
  63. package/lib/components/AppShell/Drawer.js.map +1 -1
  64. package/lib/components/AppShell/Drawer.styles.d.ts +1 -13
  65. package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -1
  66. package/lib/components/AppShell/Drawer.styles.js +15 -31
  67. package/lib/components/AppShell/Drawer.styles.js.map +1 -1
  68. package/lib/components/AppShell/HeaderActionButton.d.ts +20 -0
  69. package/lib/components/AppShell/HeaderActionButton.d.ts.map +1 -0
  70. package/lib/components/AppShell/HeaderActionButton.js +78 -0
  71. package/lib/components/AppShell/HeaderActionButton.js.map +1 -0
  72. package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
  73. package/lib/components/AppShell/NavigationList.js +4 -5
  74. package/lib/components/AppShell/NavigationList.js.map +1 -1
  75. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
  76. package/lib/components/AppShell/NavigationListItemWrapper.js +101 -58
  77. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
  78. package/lib/components/AppShell/Notifications.d.ts +28 -0
  79. package/lib/components/AppShell/Notifications.d.ts.map +1 -0
  80. package/lib/components/AppShell/Notifications.js +145 -0
  81. package/lib/components/AppShell/Notifications.js.map +1 -0
  82. package/lib/components/AppShell/Operator.d.ts.map +1 -1
  83. package/lib/components/AppShell/Operator.js +8 -5
  84. package/lib/components/AppShell/Operator.js.map +1 -1
  85. package/lib/components/AppShell/Panel/Panel.d.ts +15 -0
  86. package/lib/components/AppShell/Panel/Panel.d.ts.map +1 -0
  87. package/lib/components/AppShell/Panel/Panel.js +80 -0
  88. package/lib/components/AppShell/Panel/Panel.js.map +1 -0
  89. package/lib/components/AppShell/Panel/Panel.styles.d.ts +188 -0
  90. package/lib/components/AppShell/Panel/Panel.styles.d.ts.map +1 -0
  91. package/lib/components/AppShell/Panel/Panel.styles.js +85 -0
  92. package/lib/components/AppShell/Panel/Panel.styles.js.map +1 -0
  93. package/lib/components/AppShell/Panel/Panel.test-ids.d.ts +2 -0
  94. package/lib/components/AppShell/Panel/Panel.test-ids.d.ts.map +1 -0
  95. package/lib/components/AppShell/Panel/Panel.test-ids.js +3 -0
  96. package/lib/components/AppShell/Panel/Panel.test-ids.js.map +1 -0
  97. package/lib/components/AppShell/Panel/Panel.types.d.ts +33 -0
  98. package/lib/components/AppShell/Panel/Panel.types.d.ts.map +1 -0
  99. package/lib/components/AppShell/Panel/Panel.types.js +2 -0
  100. package/lib/components/AppShell/Panel/Panel.types.js.map +1 -0
  101. package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts +8 -0
  102. package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts.map +1 -0
  103. package/lib/components/AppShell/Panel/PanelHeaderActions.js +17 -0
  104. package/lib/components/AppShell/Panel/PanelHeaderActions.js.map +1 -0
  105. package/lib/components/AppShell/Panel/index.d.ts +4 -0
  106. package/lib/components/AppShell/Panel/index.d.ts.map +1 -0
  107. package/lib/components/AppShell/Panel/index.js +4 -0
  108. package/lib/components/AppShell/Panel/index.js.map +1 -0
  109. package/lib/components/AppShell/Panel/usePanel.d.ts +12 -0
  110. package/lib/components/AppShell/Panel/usePanel.d.ts.map +1 -0
  111. package/lib/components/AppShell/Panel/usePanel.js +30 -0
  112. package/lib/components/AppShell/Panel/usePanel.js.map +1 -0
  113. package/lib/components/AppShell/ThemeSwitcher.d.ts +1 -1
  114. package/lib/components/AppShell/ThemeSwitcher.d.ts.map +1 -1
  115. package/lib/components/AppShell/ThemeSwitcher.js +1 -0
  116. package/lib/components/AppShell/ThemeSwitcher.js.map +1 -1
  117. package/lib/components/AppShell/TopNavDrawerProvider.d.ts +11 -0
  118. package/lib/components/AppShell/TopNavDrawerProvider.d.ts.map +1 -0
  119. package/lib/components/AppShell/TopNavDrawerProvider.js +43 -0
  120. package/lib/components/AppShell/TopNavDrawerProvider.js.map +1 -0
  121. package/lib/components/AppShell/TouchAppShell.d.ts +16 -0
  122. package/lib/components/AppShell/TouchAppShell.d.ts.map +1 -0
  123. package/lib/components/AppShell/TouchAppShell.js +161 -0
  124. package/lib/components/AppShell/TouchAppShell.js.map +1 -0
  125. package/lib/components/AppShell/TouchAppShell.styles.d.ts +209 -0
  126. package/lib/components/AppShell/TouchAppShell.styles.d.ts.map +1 -0
  127. package/lib/components/AppShell/TouchAppShell.styles.js +188 -0
  128. package/lib/components/AppShell/TouchAppShell.styles.js.map +1 -0
  129. package/lib/components/AppShell/headerActionUtils.d.ts +12 -0
  130. package/lib/components/AppShell/headerActionUtils.d.ts.map +1 -0
  131. package/lib/components/AppShell/headerActionUtils.js +69 -0
  132. package/lib/components/AppShell/headerActionUtils.js.map +1 -0
  133. package/lib/components/AppShell/index.d.ts +2 -1
  134. package/lib/components/AppShell/index.d.ts.map +1 -1
  135. package/lib/components/AppShell/index.js.map +1 -1
  136. package/lib/components/AppShell/style-utils.d.ts.map +1 -1
  137. package/lib/components/AppShell/style-utils.js +22 -9
  138. package/lib/components/AppShell/style-utils.js.map +1 -1
  139. package/lib/components/Avatar/Avatar.d.ts +4 -4
  140. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  141. package/lib/components/Avatar/Avatar.js +45 -41
  142. package/lib/components/Avatar/Avatar.js.map +1 -1
  143. package/lib/components/Backdrop/Backdrop.d.ts +30 -30
  144. package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
  145. package/lib/components/Backdrop/Backdrop.js +3 -2
  146. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  147. package/lib/components/Badges/Alert.d.ts +1 -1
  148. package/lib/components/Badges/Count.d.ts +1 -1
  149. package/lib/components/Badges/Keyboard.d.ts +1 -1
  150. package/lib/components/Badges/Selection.d.ts +1 -1
  151. package/lib/components/Badges/Selection.js +1 -1
  152. package/lib/components/Badges/Selection.js.map +1 -1
  153. package/lib/components/Badges/Status.d.ts +1 -1
  154. package/lib/components/Badges/Tag.d.ts +1 -1
  155. package/lib/components/Banner/Banner.d.ts +1 -1
  156. package/lib/components/Banner/Banner.js +1 -5
  157. package/lib/components/Banner/Banner.js.map +1 -1
  158. package/lib/components/Banner/Banner.styles.d.ts +2 -2
  159. package/lib/components/Banner/Banner.styles.d.ts.map +1 -1
  160. package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
  161. package/lib/components/Button/BareRoleButton.js +4 -1
  162. package/lib/components/Button/BareRoleButton.js.map +1 -1
  163. package/lib/components/Button/Button.d.ts.map +1 -1
  164. package/lib/components/Button/Button.js +67 -25
  165. package/lib/components/Button/Button.js.map +1 -1
  166. package/lib/components/Checkbox/Checkbox.d.ts +1 -1
  167. package/lib/components/Checkbox/CheckboxCard.d.ts +1 -1
  168. package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  169. package/lib/components/ClassificationMarking/ClassificationMarking.styles.d.ts.map +1 -1
  170. package/lib/components/ClassificationMarking/ClassificationMarking.styles.js +5 -32
  171. package/lib/components/ClassificationMarking/ClassificationMarking.styles.js.map +1 -1
  172. package/lib/components/ColorPicker/ColorPicker.d.ts +1 -1
  173. package/lib/components/ComboBox/ComboBox.d.ts +1 -1
  174. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  175. package/lib/components/ComboBox/ComboBox.js +5 -8
  176. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  177. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  178. package/lib/components/ComboBox/ComboBox.styles.js +11 -6
  179. package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
  180. package/lib/components/ComboBox/ComboBox.types.d.ts +3 -3
  181. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  182. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  183. package/lib/components/ComboBox/ComboBoxInput.d.ts +1 -2
  184. package/lib/components/ComboBox/ComboBoxInput.d.ts.map +1 -1
  185. package/lib/components/ComboBox/ComboBoxInput.js +2 -2
  186. package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
  187. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts +4 -6
  188. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  189. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +99 -188
  190. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  191. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.d.ts +190 -0
  192. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.d.ts.map +1 -0
  193. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.js +72 -0
  194. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.js.map +1 -0
  195. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +5 -7
  196. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  197. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  198. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  199. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +29 -10
  200. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  201. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +5 -5
  202. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  203. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  204. package/lib/components/CompositeInput/CompositeInput.d.ts +1 -1
  205. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -1
  206. package/lib/components/CompositeInput/CompositeInput.js +18 -3
  207. package/lib/components/CompositeInput/CompositeInput.js.map +1 -1
  208. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  209. package/lib/components/Configuration/Configuration.js +3 -1
  210. package/lib/components/Configuration/Configuration.js.map +1 -1
  211. package/lib/components/CreditCard/CreditCardInput.d.ts +1 -1
  212. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  213. package/lib/components/Currency/CurrencyDisplay.js +13 -5
  214. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  215. package/lib/components/Currency/CurrencyInput.d.ts +1 -1
  216. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  217. package/lib/components/Currency/CurrencyInput.js +21 -14
  218. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  219. package/lib/components/Currency/utils.d.ts +8 -0
  220. package/lib/components/Currency/utils.d.ts.map +1 -1
  221. package/lib/components/Currency/utils.js +34 -4
  222. package/lib/components/Currency/utils.js.map +1 -1
  223. package/lib/components/DangerButton/DangerButton.d.ts +2 -2
  224. package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
  225. package/lib/components/DangerButton/DangerButton.js +8 -1
  226. package/lib/components/DangerButton/DangerButton.js.map +1 -1
  227. package/lib/components/DateTime/DateTime.types.d.ts +2 -4
  228. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  229. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  230. package/lib/components/DateTime/DateTimeDisplay.d.ts +9 -2
  231. package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
  232. package/lib/components/DateTime/DateTimeDisplay.js +34 -8
  233. package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
  234. package/lib/components/DateTime/Input/DateInput.d.ts +3 -1
  235. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  236. package/lib/components/DateTime/Input/DateInput.js +36 -21
  237. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  238. package/lib/components/DateTime/Input/DateRangeInput.d.ts +12 -4
  239. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  240. package/lib/components/DateTime/Input/DateRangeInput.js +28 -7
  241. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  242. package/lib/components/DateTime/Input/DateTime.styles.d.ts +3 -0
  243. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  244. package/lib/components/DateTime/Input/DateTime.styles.js +26 -2
  245. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  246. package/lib/components/DateTime/Input/DateTimeInput.d.ts +15 -3
  247. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  248. package/lib/components/DateTime/Input/DateTimeInput.js +164 -53
  249. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  250. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +1 -1
  251. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts +1 -1
  252. package/lib/components/DateTime/Input/MonthInput.d.ts +1 -1
  253. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  254. package/lib/components/DateTime/Input/MonthInput.js +4 -3
  255. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  256. package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
  257. package/lib/components/DateTime/Input/PartInput.js +3 -2
  258. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  259. package/lib/components/DateTime/Input/QuarterInput.d.ts +1 -1
  260. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  261. package/lib/components/DateTime/Input/QuarterInput.js +4 -4
  262. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  263. package/lib/components/DateTime/Input/TimeInput.d.ts +13 -4
  264. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  265. package/lib/components/DateTime/Input/TimeInput.js +67 -33
  266. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  267. package/lib/components/DateTime/Input/TimeRangeInput.d.ts +12 -4
  268. package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -1
  269. package/lib/components/DateTime/Input/TimeRangeInput.js +28 -10
  270. package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -1
  271. package/lib/components/DateTime/Input/WeekInput.d.ts +7 -4
  272. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  273. package/lib/components/DateTime/Input/WeekInput.js +31 -18
  274. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  275. package/lib/components/DateTime/Input/utils.d.ts +10 -1
  276. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  277. package/lib/components/DateTime/Input/utils.js +115 -5
  278. package/lib/components/DateTime/Input/utils.js.map +1 -1
  279. package/lib/components/DateTime/Picker/Calendar.js +2 -6
  280. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  281. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  282. package/lib/components/DateTime/Picker/Calendar.styles.js +5 -0
  283. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  284. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -1
  285. package/lib/components/DateTime/Picker/DatePicker.styles.js +37 -7
  286. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -1
  287. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  288. package/lib/components/DateTime/Picker/TimePicker.js +25 -47
  289. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  290. package/lib/components/DateTime/utils.d.ts +15 -4
  291. package/lib/components/DateTime/utils.d.ts.map +1 -1
  292. package/lib/components/DateTime/utils.js +24 -3
  293. package/lib/components/DateTime/utils.js.map +1 -1
  294. package/lib/components/Dialog/Dialog.types.d.ts +60 -20
  295. package/lib/components/Dialog/Dialog.types.d.ts.map +1 -1
  296. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  297. package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
  298. package/lib/components/Dialog/FormDialog.js +76 -42
  299. package/lib/components/Dialog/FormDialog.js.map +1 -1
  300. package/lib/components/Dialog/FormDialogWrapper.d.ts +5 -0
  301. package/lib/components/Dialog/FormDialogWrapper.d.ts.map +1 -0
  302. package/lib/components/Dialog/FormDialogWrapper.js +13 -0
  303. package/lib/components/Dialog/FormDialogWrapper.js.map +1 -0
  304. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  305. package/lib/components/Dialog/InfoDialog.js +6 -4
  306. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  307. package/lib/components/Dialog/InfoDialogWrapper.d.ts +4 -0
  308. package/lib/components/Dialog/InfoDialogWrapper.d.ts.map +1 -0
  309. package/lib/components/Dialog/InfoDialogWrapper.js +13 -0
  310. package/lib/components/Dialog/InfoDialogWrapper.js.map +1 -0
  311. package/lib/components/Dialog/TouchDialog.d.ts +5 -0
  312. package/lib/components/Dialog/TouchDialog.d.ts.map +1 -0
  313. package/lib/components/Dialog/TouchDialog.js +120 -0
  314. package/lib/components/Dialog/TouchDialog.js.map +1 -0
  315. package/lib/components/Dialog/TouchDialog.styles.d.ts +14 -0
  316. package/lib/components/Dialog/TouchDialog.styles.d.ts.map +1 -0
  317. package/lib/components/Dialog/TouchDialog.styles.js +79 -0
  318. package/lib/components/Dialog/TouchDialog.styles.js.map +1 -0
  319. package/lib/components/Dialog/TouchDialog.test-ids.d.ts +2 -0
  320. package/lib/components/Dialog/TouchDialog.test-ids.d.ts.map +1 -0
  321. package/lib/components/Dialog/TouchDialog.test-ids.js +3 -0
  322. package/lib/components/Dialog/TouchDialog.test-ids.js.map +1 -0
  323. package/lib/components/Dialog/TouchDialog.types.d.ts +57 -0
  324. package/lib/components/Dialog/TouchDialog.types.d.ts.map +1 -0
  325. package/lib/components/Dialog/TouchDialog.types.js +2 -0
  326. package/lib/components/Dialog/TouchDialog.types.js.map +1 -0
  327. package/lib/components/Dialog/TouchFormDialog.d.ts +5 -0
  328. package/lib/components/Dialog/TouchFormDialog.d.ts.map +1 -0
  329. package/lib/components/Dialog/TouchFormDialog.js +53 -0
  330. package/lib/components/Dialog/TouchFormDialog.js.map +1 -0
  331. package/lib/components/Dialog/TouchFormDialog.styles.d.ts +7 -0
  332. package/lib/components/Dialog/TouchFormDialog.styles.d.ts.map +1 -0
  333. package/lib/components/Dialog/TouchFormDialog.styles.js +39 -0
  334. package/lib/components/Dialog/TouchFormDialog.styles.js.map +1 -0
  335. package/lib/components/Dialog/TouchInfoDialog.d.ts +4 -0
  336. package/lib/components/Dialog/TouchInfoDialog.d.ts.map +1 -0
  337. package/lib/components/Dialog/TouchInfoDialog.js +21 -0
  338. package/lib/components/Dialog/TouchInfoDialog.js.map +1 -0
  339. package/lib/components/Dialog/index.d.ts +6 -2
  340. package/lib/components/Dialog/index.d.ts.map +1 -1
  341. package/lib/components/Dialog/index.js +5 -2
  342. package/lib/components/Dialog/index.js.map +1 -1
  343. package/lib/components/Drawer/Drawer.d.ts +12 -1
  344. package/lib/components/Drawer/Drawer.d.ts.map +1 -1
  345. package/lib/components/Drawer/Drawer.js +22 -23
  346. package/lib/components/Drawer/Drawer.js.map +1 -1
  347. package/lib/components/Drawer/ResizeHandle.d.ts +9 -2
  348. package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -1
  349. package/lib/components/Drawer/ResizeHandle.js +44 -20
  350. package/lib/components/Drawer/ResizeHandle.js.map +1 -1
  351. package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts.map +1 -1
  352. package/lib/components/EmojiPicker/EmojiPicker.styles.js +2 -2
  353. package/lib/components/EmojiPicker/EmojiPicker.styles.js.map +1 -1
  354. package/lib/components/EmptyState/EmptyState.d.ts +7 -2
  355. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
  356. package/lib/components/EmptyState/EmptyState.js +18 -11
  357. package/lib/components/EmptyState/EmptyState.js.map +1 -1
  358. package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts +2 -2
  359. package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts.map +1 -1
  360. package/lib/components/FieldGroup/FieldGroup.d.ts +69 -64
  361. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  362. package/lib/components/FieldGroup/FieldGroup.js +41 -41
  363. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  364. package/lib/components/FieldGroup/FieldGroupList.js +2 -2
  365. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  366. package/lib/components/FieldValueList/FieldValueList.d.ts +5 -3
  367. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  368. package/lib/components/FieldValueList/FieldValueList.js +17 -8
  369. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  370. package/lib/components/File/CompactList.js +1 -1
  371. package/lib/components/File/CompactList.js.map +1 -1
  372. package/lib/components/File/FileInput.d.ts +1 -1
  373. package/lib/components/File/FileItem.d.ts +40 -2
  374. package/lib/components/File/FileItem.d.ts.map +1 -1
  375. package/lib/components/File/FileItem.js +167 -23
  376. package/lib/components/File/FileItem.js.map +1 -1
  377. package/lib/components/File/FileList.d.ts +29 -29
  378. package/lib/components/File/FileList.d.ts.map +1 -1
  379. package/lib/components/File/FileList.js +6 -2
  380. package/lib/components/File/FileList.js.map +1 -1
  381. package/lib/components/File/FileUploadItem.js +1 -3
  382. package/lib/components/File/FileUploadItem.js.map +1 -1
  383. package/lib/components/File/FileVisual.js +1 -1
  384. package/lib/components/File/FileVisual.js.map +1 -1
  385. package/lib/components/File/index.d.ts +1 -1
  386. package/lib/components/File/index.d.ts.map +1 -1
  387. package/lib/components/File/index.js.map +1 -1
  388. package/lib/components/File/mimeTypes.json +1 -0
  389. package/lib/components/Form/Form.d.ts +1 -1
  390. package/lib/components/FormControl/FormControl.d.ts +10 -3
  391. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  392. package/lib/components/FormControl/FormControl.js +2 -11
  393. package/lib/components/FormControl/FormControl.js.map +1 -1
  394. package/lib/components/FormField/FormField.d.ts +10 -2
  395. package/lib/components/FormField/FormField.d.ts.map +1 -1
  396. package/lib/components/FormField/FormField.js +57 -58
  397. package/lib/components/FormField/FormField.js.map +1 -1
  398. package/lib/components/Fullscreen/Fullscreen.d.ts +1 -1
  399. package/lib/components/Fullscreen/Fullscreen.js +2 -2
  400. package/lib/components/Fullscreen/Fullscreen.js.map +1 -1
  401. package/lib/components/Fullscreen/FullscreenButton.d.ts +2 -2
  402. package/lib/components/Fullscreen/FullscreenButton.d.ts.map +1 -1
  403. package/lib/components/HTML/HTML.d.ts +1 -1
  404. package/lib/components/Icon/Icon.d.ts +5 -0
  405. package/lib/components/Icon/Icon.d.ts.map +1 -1
  406. package/lib/components/Icon/Icon.js +46 -4
  407. package/lib/components/Icon/Icon.js.map +1 -1
  408. package/lib/components/Icon/iconNames.d.ts +2 -1
  409. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  410. package/lib/components/Icon/iconNames.js +3 -0
  411. package/lib/components/Icon/iconNames.js.map +1 -1
  412. package/lib/components/Icon/icons/search-solid.icon.d.ts +1 -1
  413. package/lib/components/Icon/icons/search-solid.icon.js +3 -3
  414. package/lib/components/Icon/icons/search-solid.icon.js.map +1 -1
  415. package/lib/components/Icon/icons/share-external-solid.icon.d.ts +5 -0
  416. package/lib/components/Icon/icons/share-external-solid.icon.d.ts.map +1 -0
  417. package/lib/components/Icon/icons/share-external-solid.icon.js +7 -0
  418. package/lib/components/Icon/icons/share-external-solid.icon.js.map +1 -0
  419. package/lib/components/Icon/icons/share-external.icon.d.ts +5 -0
  420. package/lib/components/Icon/icons/share-external.icon.d.ts.map +1 -0
  421. package/lib/components/Icon/icons/share-external.icon.js +7 -0
  422. package/lib/components/Icon/icons/share-external.icon.js.map +1 -0
  423. package/lib/components/Icon/streamline-icons/share-external-solid.icon.d.ts +5 -0
  424. package/lib/components/Icon/streamline-icons/share-external-solid.icon.d.ts.map +1 -0
  425. package/lib/components/Icon/streamline-icons/share-external-solid.icon.js +7 -0
  426. package/lib/components/Icon/streamline-icons/share-external-solid.icon.js.map +1 -0
  427. package/lib/components/Icon/streamline-icons/share-external.icon.d.ts +5 -0
  428. package/lib/components/Icon/streamline-icons/share-external.icon.d.ts.map +1 -0
  429. package/lib/components/Icon/streamline-icons/share-external.icon.js +7 -0
  430. package/lib/components/Icon/streamline-icons/share-external.icon.js.map +1 -0
  431. package/lib/components/Icon/streamlineIconNames.d.ts +2 -1
  432. package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
  433. package/lib/components/Icon/streamlineIconNames.js +3 -0
  434. package/lib/components/Icon/streamlineIconNames.js.map +1 -1
  435. package/lib/components/InlineEdit/InlineEdit.d.ts +19 -4
  436. package/lib/components/InlineEdit/InlineEdit.d.ts.map +1 -1
  437. package/lib/components/InlineEdit/InlineEdit.js +45 -4
  438. package/lib/components/InlineEdit/InlineEdit.js.map +1 -1
  439. package/lib/components/InlineEdit/InlineEdit.styles.d.ts +43 -7
  440. package/lib/components/InlineEdit/InlineEdit.styles.d.ts.map +1 -1
  441. package/lib/components/InlineEdit/InlineEdit.styles.js +38 -20
  442. package/lib/components/InlineEdit/InlineEdit.styles.js.map +1 -1
  443. package/lib/components/Input/Input.d.ts +1 -1
  444. package/lib/components/Input/Input.js +3 -3
  445. package/lib/components/Input/Input.js.map +1 -1
  446. package/lib/components/Lightbox/Lightbox.d.ts +1 -1
  447. package/lib/components/Lightbox/Lightbox.js +2 -6
  448. package/lib/components/Lightbox/Lightbox.js.map +1 -1
  449. package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
  450. package/lib/components/Lightbox/Lightbox.styles.js +1 -0
  451. package/lib/components/Lightbox/Lightbox.styles.js.map +1 -1
  452. package/lib/components/Link/Link.d.ts +20 -17
  453. package/lib/components/Link/Link.d.ts.map +1 -1
  454. package/lib/components/Link/Link.js +89 -9
  455. package/lib/components/Link/Link.js.map +1 -1
  456. package/lib/components/Link/Link.test-ids.d.ts +1 -1
  457. package/lib/components/Link/Link.test-ids.d.ts.map +1 -1
  458. package/lib/components/Link/Link.test-ids.js +2 -1
  459. package/lib/components/Link/Link.test-ids.js.map +1 -1
  460. package/lib/components/List/CommaSeparatedList.js +1 -3
  461. package/lib/components/List/CommaSeparatedList.js.map +1 -1
  462. package/lib/components/List/List.js +1 -5
  463. package/lib/components/List/List.js.map +1 -1
  464. package/lib/components/ListToolbar/ListToolbar.d.ts +1 -1
  465. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  466. package/lib/components/ListToolbar/ListToolbar.js +93 -81
  467. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  468. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +821 -40
  469. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  470. package/lib/components/ListToolbar/ListToolbar.styles.js +341 -83
  471. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  472. package/lib/components/ListToolbar/ListToolbar.types.d.ts +2 -1
  473. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  474. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  475. package/lib/components/ListToolbar/PresetMenuPopover.d.ts.map +1 -1
  476. package/lib/components/ListToolbar/PresetMenuPopover.js +16 -5
  477. package/lib/components/ListToolbar/PresetMenuPopover.js.map +1 -1
  478. package/lib/components/Location/LocationInput.d.ts +2 -2
  479. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  480. package/lib/components/Location/LocationInput.js.map +1 -1
  481. package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
  482. package/lib/components/Menu/FlyoutMenuList.js +1 -1
  483. package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
  484. package/lib/components/Menu/Menu.d.ts +1 -1
  485. package/lib/components/Menu/Menu.d.ts.map +1 -1
  486. package/lib/components/Menu/Menu.js +12 -4
  487. package/lib/components/Menu/Menu.js.map +1 -1
  488. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  489. package/lib/components/Menu/Menu.styles.js +6 -0
  490. package/lib/components/Menu/Menu.styles.js.map +1 -1
  491. package/lib/components/Menu/Menu.test-ids.d.ts +1 -1
  492. package/lib/components/Menu/Menu.test-ids.d.ts.map +1 -1
  493. package/lib/components/Menu/Menu.test-ids.js +1 -1
  494. package/lib/components/Menu/Menu.test-ids.js.map +1 -1
  495. package/lib/components/Menu/Menu.types.d.ts +9 -0
  496. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  497. package/lib/components/Menu/Menu.types.js.map +1 -1
  498. package/lib/components/Menu/MenuItem.d.ts +1 -1
  499. package/lib/components/Menu/helpers.d.ts +14 -0
  500. package/lib/components/Menu/helpers.d.ts.map +1 -1
  501. package/lib/components/Menu/helpers.js +26 -0
  502. package/lib/components/Menu/helpers.js.map +1 -1
  503. package/lib/components/MenuButton/MenuButton.d.ts +1 -1
  504. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  505. package/lib/components/MenuButton/MenuButton.js +47 -7
  506. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  507. package/lib/components/MetaList/MetaList.d.ts +1 -1
  508. package/lib/components/Modal/DockedModals.d.ts.map +1 -1
  509. package/lib/components/Modal/DockedModals.js +4 -3
  510. package/lib/components/Modal/DockedModals.js.map +1 -1
  511. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  512. package/lib/components/Modal/MinimizedModal.js +4 -0
  513. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  514. package/lib/components/Modal/Modal.styles.d.ts.map +1 -1
  515. package/lib/components/Modal/Modal.styles.js +7 -3
  516. package/lib/components/Modal/Modal.styles.js.map +1 -1
  517. package/lib/components/MultiStepForm/FormProgress.styles.d.ts +25 -1
  518. package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -1
  519. package/lib/components/MultiStepForm/FormProgress.styles.js +168 -5
  520. package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -1
  521. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts +2 -2
  522. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts.map +1 -1
  523. package/lib/components/MultiStepForm/HorizontalFormProgress.js +48 -22
  524. package/lib/components/MultiStepForm/HorizontalFormProgress.js.map +1 -1
  525. package/lib/components/MultiStepForm/MultiStepForm.d.ts +29 -29
  526. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -1
  527. package/lib/components/MultiStepForm/MultiStepForm.js +2 -2
  528. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
  529. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +5 -0
  530. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -1
  531. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -1
  532. package/lib/components/MultiStepForm/VerticalFormProgress.d.ts +2 -2
  533. package/lib/components/MultiStepForm/VerticalFormProgress.d.ts.map +1 -1
  534. package/lib/components/MultiStepForm/VerticalFormProgress.js +45 -20
  535. package/lib/components/MultiStepForm/VerticalFormProgress.js.map +1 -1
  536. package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts +1 -1
  537. package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts.map +1 -1
  538. package/lib/components/MultiStepForm/useFormProgressOverflow.js +17 -9
  539. package/lib/components/MultiStepForm/useFormProgressOverflow.js.map +1 -1
  540. package/lib/components/Number/NumberDisplay.d.ts +5 -0
  541. package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
  542. package/lib/components/Number/NumberDisplay.js +3 -2
  543. package/lib/components/Number/NumberDisplay.js.map +1 -1
  544. package/lib/components/Number/NumberInput.d.ts +1 -1
  545. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  546. package/lib/components/Number/NumberInput.js +10 -5
  547. package/lib/components/Number/NumberInput.js.map +1 -1
  548. package/lib/components/Number/NumberInput.types.d.ts +11 -3
  549. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  550. package/lib/components/Number/NumberInput.types.js.map +1 -1
  551. package/lib/components/Number/NumberRangeInput.d.ts +1 -1
  552. package/lib/components/Number/NumberRangeInput.d.ts.map +1 -1
  553. package/lib/components/Number/NumberRangeInput.js +2 -2
  554. package/lib/components/Number/NumberRangeInput.js.map +1 -1
  555. package/lib/components/Number/utils.d.ts +3 -1
  556. package/lib/components/Number/utils.d.ts.map +1 -1
  557. package/lib/components/Number/utils.js +11 -9
  558. package/lib/components/Number/utils.js.map +1 -1
  559. package/lib/components/PageTemplates/CategorySubPage.styles.js +2 -2
  560. package/lib/components/PageTemplates/CategorySubPage.styles.js.map +1 -1
  561. package/lib/components/PageTemplates/DashboardPage.js +1 -1
  562. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  563. package/lib/components/PageTemplates/GridLayout/EditorBackground.js +1 -1
  564. package/lib/components/PageTemplates/GridLayout/EditorBackground.js.map +1 -1
  565. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.d.ts.map +1 -1
  566. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js +44 -10
  567. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js.map +1 -1
  568. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js +2 -9
  569. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js.map +1 -1
  570. package/lib/components/PageTemplates/PageTemplates.d.ts +7 -7
  571. package/lib/components/PageTemplates/PageTemplates.js +1 -1
  572. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  573. package/lib/components/Phone/PhoneDisplay.d.ts +10 -0
  574. package/lib/components/Phone/PhoneDisplay.d.ts.map +1 -1
  575. package/lib/components/Phone/PhoneDisplay.js +7 -2
  576. package/lib/components/Phone/PhoneDisplay.js.map +1 -1
  577. package/lib/components/Phone/PhoneInput.d.ts +11 -1
  578. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  579. package/lib/components/Phone/PhoneInput.js +21 -8
  580. package/lib/components/Phone/PhoneInput.js.map +1 -1
  581. package/lib/components/Phone/utils.d.ts +4 -2
  582. package/lib/components/Phone/utils.d.ts.map +1 -1
  583. package/lib/components/Phone/utils.js +17 -6
  584. package/lib/components/Phone/utils.js.map +1 -1
  585. package/lib/components/Popover/getResolvedTarget.d.ts +11 -0
  586. package/lib/components/Popover/getResolvedTarget.d.ts.map +1 -0
  587. package/lib/components/Popover/getResolvedTarget.js +13 -0
  588. package/lib/components/Popover/getResolvedTarget.js.map +1 -0
  589. package/lib/components/Popover/index.d.ts +1 -0
  590. package/lib/components/Popover/index.d.ts.map +1 -1
  591. package/lib/components/Popover/index.js +1 -0
  592. package/lib/components/Popover/index.js.map +1 -1
  593. package/lib/components/Preview/Preview.types.d.ts +1 -0
  594. package/lib/components/Preview/Preview.types.d.ts.map +1 -1
  595. package/lib/components/Preview/Preview.types.js.map +1 -1
  596. package/lib/components/Preview/PreviewManager.d.ts.map +1 -1
  597. package/lib/components/Preview/PreviewManager.js +10 -1
  598. package/lib/components/Preview/PreviewManager.js.map +1 -1
  599. package/lib/components/Preview/PreviewPanel.d.ts.map +1 -1
  600. package/lib/components/Preview/PreviewPanel.js +8 -3
  601. package/lib/components/Preview/PreviewPanel.js.map +1 -1
  602. package/lib/components/Progress/Progress.d.ts.map +1 -1
  603. package/lib/components/Progress/Progress.js +39 -7
  604. package/lib/components/Progress/Progress.js.map +1 -1
  605. package/lib/components/Progress/Progress.types.d.ts +10 -4
  606. package/lib/components/Progress/Progress.types.d.ts.map +1 -1
  607. package/lib/components/Progress/Progress.types.js.map +1 -1
  608. package/lib/components/QRCode/QRCode.d.ts +6 -1
  609. package/lib/components/QRCode/QRCode.d.ts.map +1 -1
  610. package/lib/components/QRCode/QRCode.js +17 -9
  611. package/lib/components/QRCode/QRCode.js.map +1 -1
  612. package/lib/components/QRCode/index.d.ts +1 -1
  613. package/lib/components/QRCode/index.d.ts.map +1 -1
  614. package/lib/components/QRCode/index.js.map +1 -1
  615. package/lib/components/RadioButton/RadioButton.d.ts +1 -1
  616. package/lib/components/RadioButton/RadioButtonCard.d.ts +1 -1
  617. package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  618. package/lib/components/RadioCheck/RadioCheck.d.ts +5 -3
  619. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  620. package/lib/components/RadioCheck/RadioCheck.js +63 -27
  621. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  622. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +3 -3
  623. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  624. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +46 -25
  625. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  626. package/lib/components/ResponsiveActions/ResponsiveActions.d.ts.map +1 -1
  627. package/lib/components/ResponsiveActions/ResponsiveActions.js +1 -0
  628. package/lib/components/ResponsiveActions/ResponsiveActions.js.map +1 -1
  629. package/lib/components/Scanner/Scanner.d.ts +21 -0
  630. package/lib/components/Scanner/Scanner.d.ts.map +1 -0
  631. package/lib/components/Scanner/Scanner.js +177 -0
  632. package/lib/components/Scanner/Scanner.js.map +1 -0
  633. package/lib/components/Scanner/Scanner.styles.d.ts +4 -0
  634. package/lib/components/Scanner/Scanner.styles.d.ts.map +1 -0
  635. package/lib/components/Scanner/Scanner.styles.js +17 -0
  636. package/lib/components/Scanner/Scanner.styles.js.map +1 -0
  637. package/lib/components/Scanner/Scanner.test-ids.d.ts +2 -0
  638. package/lib/components/Scanner/Scanner.test-ids.d.ts.map +1 -0
  639. package/lib/components/Scanner/Scanner.test-ids.js +3 -0
  640. package/lib/components/Scanner/Scanner.test-ids.js.map +1 -0
  641. package/lib/components/Scanner/index.d.ts +3 -0
  642. package/lib/components/Scanner/index.d.ts.map +1 -0
  643. package/lib/components/Scanner/index.js +2 -0
  644. package/lib/components/Scanner/index.js.map +1 -0
  645. package/lib/components/Select/Select.d.ts +3 -4
  646. package/lib/components/Select/Select.d.ts.map +1 -1
  647. package/lib/components/Select/Select.js +11 -6
  648. package/lib/components/Select/Select.js.map +1 -1
  649. package/lib/components/SelectionCard/SelectionCard.d.ts +2 -2
  650. package/lib/components/SelectionCard/SelectionCard.d.ts.map +1 -1
  651. package/lib/components/SelectionCard/SelectionCard.js +3 -3
  652. package/lib/components/SelectionCard/SelectionCard.js.map +1 -1
  653. package/lib/components/SelectionCard/SelectionCard.styles.js +1 -1
  654. package/lib/components/SelectionCard/SelectionCard.styles.js.map +1 -1
  655. package/lib/components/SelectionCard/SelectionCardDisplay.d.ts +6 -1
  656. package/lib/components/SelectionCard/SelectionCardDisplay.d.ts.map +1 -1
  657. package/lib/components/SelectionCard/SelectionCardDisplay.js +4 -2
  658. package/lib/components/SelectionCard/SelectionCardDisplay.js.map +1 -1
  659. package/lib/components/ShortcutManager/Store.d.ts +1 -1
  660. package/lib/components/ShortcutManager/Store.d.ts.map +1 -1
  661. package/lib/components/Signature/Signature.d.ts +28 -0
  662. package/lib/components/Signature/Signature.d.ts.map +1 -0
  663. package/lib/components/Signature/Signature.js +397 -0
  664. package/lib/components/Signature/Signature.js.map +1 -0
  665. package/lib/components/Signature/Signature.styles.d.ts +197 -0
  666. package/lib/components/Signature/Signature.styles.d.ts.map +1 -0
  667. package/lib/components/Signature/Signature.styles.js +119 -0
  668. package/lib/components/Signature/Signature.styles.js.map +1 -0
  669. package/lib/components/Signature/Signature.test-ids.d.ts +2 -0
  670. package/lib/components/Signature/Signature.test-ids.d.ts.map +1 -0
  671. package/lib/components/Signature/Signature.test-ids.js +3 -0
  672. package/lib/components/Signature/Signature.test-ids.js.map +1 -0
  673. package/lib/components/Signature/index.d.ts +4 -0
  674. package/lib/components/Signature/index.d.ts.map +1 -0
  675. package/lib/components/Signature/index.js +3 -0
  676. package/lib/components/Signature/index.js.map +1 -0
  677. package/lib/components/SkipLinks/SkipLinks.d.ts +1 -1
  678. package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -1
  679. package/lib/components/Slider/Slider.d.ts +1 -1
  680. package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts +1 -1
  681. package/lib/components/SpeechToTextButton/SpeechToTextButton.js +1 -1
  682. package/lib/components/SpeechToTextButton/SpeechToTextButton.js.map +1 -1
  683. package/lib/components/SummaryItem/SummaryItem.d.ts +57 -57
  684. package/lib/components/SummaryList/SummaryList.d.ts +1 -1
  685. package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
  686. package/lib/components/SummaryList/SummaryList.js +8 -4
  687. package/lib/components/SummaryList/SummaryList.js.map +1 -1
  688. package/lib/components/Switch/Switch.js +2 -2
  689. package/lib/components/Switch/Switch.js.map +1 -1
  690. package/lib/components/Tabs/Tab.d.ts +1 -1
  691. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  692. package/lib/components/Tabs/Tab.js +24 -8
  693. package/lib/components/Tabs/Tab.js.map +1 -1
  694. package/lib/components/Tabs/TabPanel.d.ts +28 -28
  695. package/lib/components/Text/Text.d.ts.map +1 -1
  696. package/lib/components/Text/Text.js +2 -0
  697. package/lib/components/Text/Text.js.map +1 -1
  698. package/lib/components/TextArea/TextArea.d.ts +1 -1
  699. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  700. package/lib/components/TextArea/TextArea.js +10 -24
  701. package/lib/components/TextArea/TextArea.js.map +1 -1
  702. package/lib/components/TextArea/TextArea.styles.d.ts +0 -1
  703. package/lib/components/TextArea/TextArea.styles.d.ts.map +1 -1
  704. package/lib/components/TextArea/TextArea.styles.js +1 -2
  705. package/lib/components/TextArea/TextArea.styles.js.map +1 -1
  706. package/lib/components/Toaster/Toaster.js +2 -6
  707. package/lib/components/Toaster/Toaster.js.map +1 -1
  708. package/lib/components/Tooltip/Tooltip.d.ts +1 -1
  709. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  710. package/lib/components/Tooltip/Tooltip.js +8 -2
  711. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  712. package/lib/components/Tree/StandardTree.js +1 -3
  713. package/lib/components/Tree/StandardTree.js.map +1 -1
  714. package/lib/components/Tree/StandardTree.styles.d.ts +2 -2
  715. package/lib/components/Tree/Tree.d.ts +1 -1
  716. package/lib/hooks/index.d.ts +1 -0
  717. package/lib/hooks/index.d.ts.map +1 -1
  718. package/lib/hooks/index.js +1 -0
  719. package/lib/hooks/index.js.map +1 -1
  720. package/lib/hooks/useAnimatedText.d.ts.map +1 -1
  721. package/lib/hooks/useAnimatedText.js +12 -1
  722. package/lib/hooks/useAnimatedText.js.map +1 -1
  723. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  724. package/lib/hooks/useBreakpoint.js +3 -1
  725. package/lib/hooks/useBreakpoint.js.map +1 -1
  726. package/lib/hooks/useComputedLengthPx.d.ts +10 -0
  727. package/lib/hooks/useComputedLengthPx.d.ts.map +1 -0
  728. package/lib/hooks/useComputedLengthPx.js +46 -0
  729. package/lib/hooks/useComputedLengthPx.js.map +1 -0
  730. package/lib/hooks/useI18n.d.ts +137 -14
  731. package/lib/hooks/useI18n.d.ts.map +1 -1
  732. package/lib/hooks/useScrollToggle.d.ts +2 -1
  733. package/lib/hooks/useScrollToggle.d.ts.map +1 -1
  734. package/lib/hooks/useScrollToggle.js +26 -8
  735. package/lib/hooks/useScrollToggle.js.map +1 -1
  736. package/lib/i18n/default.d.ts +136 -14
  737. package/lib/i18n/default.d.ts.map +1 -1
  738. package/lib/i18n/default.js +153 -22
  739. package/lib/i18n/default.js.map +1 -1
  740. package/lib/i18n/i18n.d.ts +136 -13
  741. package/lib/i18n/i18n.d.ts.map +1 -1
  742. package/lib/index.d.ts +4 -0
  743. package/lib/index.d.ts.map +1 -1
  744. package/lib/index.js +4 -0
  745. package/lib/index.js.map +1 -1
  746. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  747. package/lib/styles/GlobalStyle.js +3 -3
  748. package/lib/styles/GlobalStyle.js.map +1 -1
  749. package/lib/styles/utils.d.ts +24 -4
  750. package/lib/styles/utils.d.ts.map +1 -1
  751. package/lib/styles/utils.js +59 -13
  752. package/lib/styles/utils.js.map +1 -1
  753. package/lib/theme/index.d.ts +4 -0
  754. package/lib/theme/index.d.ts.map +1 -1
  755. package/lib/theme/index.js +4 -0
  756. package/lib/theme/index.js.map +1 -1
  757. package/lib/theme/theme.d.ts +321 -0
  758. package/lib/theme/theme.d.ts.map +1 -1
  759. package/lib/theme/themeDefinition.json +193 -5
  760. package/lib/theme/themeOverrides.schema.json +188 -1
  761. package/lib/theme/themes/aurigaDarkTheme.json +159 -0
  762. package/lib/theme/themes/aurigaTheme.json +150 -0
  763. package/lib/theme/themes/orionDarkTheme.json +3 -1
  764. package/lib/theme/themes/orionTheme.json +3 -3
  765. package/lib/theme/themes/velaDarkTheme.json +175 -0
  766. package/lib/theme/themes/velaTheme.json +169 -0
  767. package/lib/theme/themes/virgoDarkTheme.json +4 -4
  768. package/lib/theme/themes/virgoTheme.json +5 -5
  769. package/lib/utils/index.d.ts +1 -0
  770. package/lib/utils/index.d.ts.map +1 -1
  771. package/lib/utils/index.js +1 -0
  772. package/lib/utils/index.js.map +1 -1
  773. package/lib/utils/isTouchDevice.d.ts +3 -0
  774. package/lib/utils/isTouchDevice.d.ts.map +1 -0
  775. package/lib/utils/isTouchDevice.js +4 -0
  776. package/lib/utils/isTouchDevice.js.map +1 -0
  777. package/package.json +6 -5
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { forwardRef, useState, useCallback, useEffect, useMemo, useRef, useLayoutEffect } from 'react';
3
- import { Alert } from '../Badges';
2
+ import { forwardRef, useState, useCallback, useEffect, useMemo, useRef } from 'react';
4
3
  import Flex from '../Flex';
5
4
  import Icon, { registerIcon } from '../Icon';
6
5
  import * as timesIcon from '../Icon/icons/times.icon';
@@ -12,95 +11,64 @@ import * as caretRightIcon from '../Icon/icons/caret-right.icon';
12
11
  import * as sunIcon from '../Icon/icons/sun.icon';
13
12
  import * as moonIcon from '../Icon/icons/moon.icon';
14
13
  import * as circleMixedLeftIcon from '../Icon/icons/circle-mixed-left.icon';
15
- import * as shareIcon from '../Icon/icons/share.icon';
16
- import { useI18n, useBreakpoint, useConsolidatedRef, useElement, useTransitionState, useEvent, useOuterEvent, useScrollToggle, useTheme, useUID, usePreviewManager, useDirection } from '../../hooks';
14
+ import * as shareExternalIcon from '../Icon/icons/share-external.icon';
15
+ import { useI18n, useBreakpoint, useConsolidatedRef, useElement, useTransitionState, useEvent, useUID, usePreviewManager, useDirection } from '../../hooks';
16
+ import useThemeMode from '../../hooks/useThemeMode';
17
17
  import { openCloseStates } from '../../hooks/useTransitionState';
18
18
  import SkipLinks from '../SkipLinks';
19
19
  import Progress from '../Progress';
20
20
  import { registerAction } from '../ShortcutManager';
21
21
  import useShortcut from '../../hooks/useShortcut';
22
- import { debounce, getChildOfRootNode, isValidElement } from '../../utils';
22
+ import { isTouchDevice } from '../../utils';
23
23
  import useKeyboardCommands from '../KeyboardCommands';
24
24
  import Tooltip from '../Tooltip';
25
- import Drawer from '../Drawer';
26
- import useThemeMode from '../../hooks/useThemeMode';
27
- import AppShellContext, { AppShellDrawerContext } from './AppShellContext';
25
+ import AppShellContext from './AppShellContext';
28
26
  import AppHeader from './AppHeader';
29
- import AppShellDrawer from './Drawer';
30
27
  import AppTopNav from './AppTopNav';
31
- import { StyledAppMain, StyledBannerRegion, StyledMobileNav, mobileHeaderHeight, StyledMobileMoreMenuButton, menuButtonWidth, StyledMobileMoreMenu, StyledAppShellToggleButton, StyledAppShellTooltip, StyledSidebarNav, headerHeight, StyledShareIcon, topNavHeight, AppShellGlobalStyle } from './AppShell.styles';
28
+ import { StyledAppMain, StyledBannerRegion, StyledAppShellToggleButton, StyledAppShellTooltip, StyledSidebarNav, AppShellGlobalStyle } from './AppShell.styles';
32
29
  import { followingNodes, focusRegion } from './utils';
33
- import AppNavigationPanel, { CaseTypes, Links } from './AppNavigationPanel';
30
+ import AppNavigationPanel from './AppNavigationPanel';
34
31
  import NavigationList from './NavigationList';
35
- registerIcon(timesIcon, plusIcon, caseSolidIcon, barsIcon, caretRightIcon, caretLeftIcon, sunIcon, moonIcon, circleMixedLeftIcon, shareIcon);
32
+ import DocumentTabs, { getTabElementId, getTabPanelId } from './DocumentTabs';
33
+ import { StyledDocumentTabPanel } from './DocumentTabs.styles';
34
+ import TopNavDrawerProvider from './TopNavDrawerProvider';
35
+ import TouchAppShell from './TouchAppShell';
36
+ import { useNotificationsPopover } from './Notifications';
37
+ import { usePanel } from './Panel';
38
+ import getHeaderActionUtilItems from './headerActionUtils';
39
+ registerIcon(timesIcon, plusIcon, caseSolidIcon, barsIcon, caretRightIcon, caretLeftIcon, sunIcon, moonIcon, circleMixedLeftIcon, shareExternalIcon);
36
40
  registerAction({ id: 'NextRegion', defaultKeyBinding: 'F9' }, { id: 'PrevRegion', defaultKeyBinding: 'Shift+F9' }, { id: 'KeyboardCommands', defaultKeyBinding: 'CommandOrControl+/' });
37
- function TopNavDrawerProvider({ children, topOffset }) {
38
- const [item, setItem] = useState(undefined);
39
- const [drawerOpen, setDrawerOpen] = useState(false);
40
- // Delay opening the drawer by one render pass after item is set.
41
- // The cosmos-core Drawer only fires onAfterOpen on a false→true open transition.
42
- // Batching setItem + setDrawerOpen(true) in the same event handler causes the
43
- // Drawer to mount with open=true from the start (no transition), so onAfterOpen
44
- // never fires and item.onDrawerOpen() (data fetching) is never called.
45
- // Setting drawerOpen in a separate useEffect gives the Drawer a proper transition.
46
- useEffect(() => {
47
- if (item)
48
- setDrawerOpen(true);
49
- }, [item]);
50
- const ctxValue = useMemo(() => ({
51
- drawerOpen,
52
- openItemName: item?.name,
53
- closeDrawer: () => setDrawerOpen(false),
54
- openDrawer: (next) => {
55
- // Spread to create a new object reference each time so useEffect([item])
56
- // always fires — even when the same item is re-opened after the drawer closes.
57
- setItem({ ...next });
58
- },
59
- refreshDrawer: (next) => {
60
- setItem({ ...next });
61
- }
62
- }), [drawerOpen, item?.name]);
63
- return (_jsxs(AppShellDrawerContext.Provider, { value: ctxValue, children: [children, item && (_jsx(AppShellDrawer, { drawerOpen: drawerOpen, setDrawerOpen: setDrawerOpen, content: item.drawerView, header: item.drawerHeader || item.name, topOffset: topOffset, onDrawerClose: () => {
64
- setItem(undefined);
65
- item.onDrawerClose?.();
66
- }, onDrawerOpen: item.onDrawerOpen }))] }));
67
- }
68
41
  const AppShell = forwardRef(function AppShell(props, ref) {
69
42
  const t = useI18n();
70
- const { appInfo, contextSwitcher, searchInput, appHeader, searchPage, searchLabel = t('sitewide'), caseTypes, links, agent, banners, progress, main, operator, utils, headerUtils, helpMenu, cases, defaultExpanded = false, collapsedHoverMenus = false, shareApp, navOrientation = 'side-rail', ...restProps } = props;
71
- const { disableScroll, enableScroll } = useScrollToggle();
43
+ const { appInfo, contextSwitcher, searchInput, appHeader, searchPage, searchLabel = t('sitewide'), caseTypes, links, agent, banners, progress, main, operator, notifications, utils, headerUtils, helpMenu, cases, defaultExpanded = false, collapsedHoverMenus = false, shareApp, portalSwitcher, navOrientation = 'side-rail', documentTabs, utilsList, headerActions, panel1, popover, ...restProps } = props;
44
+ const skipLinks = useMemo(() => [
45
+ {
46
+ label: t('go_to_main_content'),
47
+ target: { ariaLabel: t('main_content'), selector: 'main' }
48
+ }
49
+ ], [t]);
72
50
  const navRef = useConsolidatedRef(ref);
73
- const mobileButtonRef = useRef(null);
74
51
  const navId = useUID();
75
52
  const [expandCollapseEl, setExpandCollapseEl] = useElement();
76
- const [mobileNavOpen, setMobileNavOpen] = useState(false);
77
53
  const [drawerOpen, setDrawerOpen] = useState(false);
78
- const [mobileNavLinksCount, setMobileNavLinksCount] = useState(0);
79
54
  const { previewActive, setPreviewActive } = usePreviewManager();
80
55
  const focusedImperatively = useRef(false);
81
56
  const [headerEl, setHeaderEl] = useElement();
82
- const [mobileHeaderEl, setMobileHeaderEl] = useElement();
83
57
  const isSmallOrAbove = useBreakpoint('sm');
84
- const isTopBar = navOrientation === 'top-bar' && isSmallOrAbove;
85
- const showAppHeader = isTopBar ? isSmallOrAbove : !!appHeader && isSmallOrAbove;
86
- const showMainContent = showAppHeader ? !!(headerEl || mobileHeaderEl) : true;
58
+ const isMediumOrAbove = useBreakpoint('md');
59
+ const isTopBar = navOrientation === 'top-bar' || !isSmallOrAbove;
60
+ const showAppHeader = isTopBar || (!!appHeader && isSmallOrAbove);
61
+ const showMainContent = showAppHeader ? !!headerEl : true;
87
62
  const openNavTimeoutId = useRef();
88
63
  const closeNavTimeoutId = useRef();
89
64
  const [searchContainerEl, setSearchContainerEl] = useState(null);
90
65
  const openKeyboardCommands = useKeyboardCommands();
91
- const theme = useTheme();
92
66
  const { state: sidebarNavState, set: setSidebarNavState } = useTransitionState({
93
67
  ref: navRef,
94
68
  property: 'width',
95
69
  states: openCloseStates,
96
70
  defaultState: defaultExpanded ? 'open' : 'closed'
97
71
  });
98
- const skipLinks = useMemo(() => [
99
- {
100
- label: t('go_to_main_content'),
101
- target: { ariaLabel: t('main_content'), selector: 'main' }
102
- }
103
- ], [t]);
104
72
  const openNav = useCallback((delay = 0) => {
105
73
  if (closeNavTimeoutId.current)
106
74
  clearTimeout(closeNavTimeoutId.current);
@@ -118,57 +86,6 @@ const AppShell = forwardRef(function AppShell(props, ref) {
118
86
  const onFocus = useCallback(() => {
119
87
  focusedImperatively.current = false;
120
88
  }, []);
121
- const mobileNavRef = useRef(null);
122
- useOuterEvent('focusin', [mobileNavRef, mobileButtonRef], () => setMobileNavOpen(false));
123
- useEffect(() => {
124
- if (mobileNavOpen) {
125
- disableScroll();
126
- }
127
- else {
128
- enableScroll();
129
- }
130
- }, [mobileNavOpen]);
131
- useEffect(() => {
132
- if (!navRef.current)
133
- return;
134
- const targetNode = getChildOfRootNode(navRef);
135
- if (!targetNode)
136
- return;
137
- if (!targetNode.style.getPropertyValue('--app-header-height')) {
138
- targetNode.style.setProperty('--app-header-height', showAppHeader ? headerHeight : '0');
139
- }
140
- }, [showAppHeader]);
141
- useEffect(() => {
142
- if (mobileNavOpen) {
143
- const onKeyDown = ({ key }) => {
144
- if (key === 'Escape')
145
- setMobileNavOpen(false);
146
- };
147
- document.addEventListener('keydown', onKeyDown);
148
- return () => {
149
- document.removeEventListener('keydown', onKeyDown);
150
- };
151
- }
152
- }, [mobileNavOpen]);
153
- useEffect(() => {
154
- if (isSmallOrAbove && mobileNavOpen)
155
- setMobileNavOpen(false);
156
- }, [isSmallOrAbove, mobileNavOpen]);
157
- useLayoutEffect(() => {
158
- if (!mobileHeaderEl)
159
- return;
160
- const resizeObserver = new ResizeObserver(debounce(() => {
161
- const screenWidth = document.documentElement.clientWidth;
162
- const regionsPaddingInlinePixels = 2 *
163
- Number.parseInt(window.getComputedStyle(mobileHeaderEl).getPropertyValue('padding-inline-start'), 10);
164
- const availableWidth = screenWidth * 0.9 - regionsPaddingInlinePixels;
165
- setMobileNavLinksCount(Math.max(Math.floor(availableWidth / menuButtonWidth(theme)) - (caseTypes?.length ? 2 : 1), 0));
166
- }, 0));
167
- resizeObserver.observe(document.documentElement);
168
- return () => {
169
- resizeObserver.disconnect();
170
- };
171
- }, [mobileHeaderEl, caseTypes?.length]);
172
89
  const activatedEl = useRef(document.body);
173
90
  useEvent('click', e => {
174
91
  activatedEl.current = document.elementFromPoint(e.clientX, e.clientY) ?? document.body;
@@ -209,9 +126,81 @@ const AppShell = forwardRef(function AppShell(props, ref) {
209
126
  useShortcut('KeyboardCommands', () => {
210
127
  openKeyboardCommands();
211
128
  });
129
+ const { start, end } = useDirection();
130
+ const { panel: panel1Element, panelOpen: panel1Open } = usePanel(panel1);
131
+ // Panel1 replaces the util drawer.
132
+ useEffect(() => {
133
+ if (!panel1Open)
134
+ return;
135
+ setDrawerOpen(false);
136
+ closeNav();
137
+ }, [panel1Open]);
138
+ // Opening a util while panel1 is open makes the consumer close panel1.
139
+ useEffect(() => {
140
+ if (drawerOpen && panel1Open)
141
+ panel1?.onClose?.();
142
+ }, [drawerOpen]);
143
+ return (_jsxs(AppShellContext.Provider, { value: useMemo(() => ({
144
+ navOpen: sidebarNavState === 'open' || sidebarNavState === 'opening',
145
+ drawerOpen,
146
+ setDrawerOpen,
147
+ collapsedHoverMenus,
148
+ navState: sidebarNavState,
149
+ focusedImperatively,
150
+ headerEl,
151
+ appHeaderEl: headerEl ?? null,
152
+ searchContainerEl,
153
+ setSearchContainerEl,
154
+ isMobileNav: false,
155
+ isTopBar,
156
+ previewActive,
157
+ setPreviewActive,
158
+ startPanelOpen: panel1Open
159
+ }), [
160
+ sidebarNavState,
161
+ drawerOpen,
162
+ collapsedHoverMenus,
163
+ isTopBar,
164
+ headerEl,
165
+ searchContainerEl,
166
+ previewActive,
167
+ panel1Open
168
+ ]), children: [_jsx(SkipLinks, { items: skipLinks }), showAppHeader && (_jsx(AppHeader, { ...appInfo, contextSwitcher: contextSwitcher, searchInput: searchInput, searchLabel: searchLabel, operator: operator, notifications: notifications, headerUtils: headerUtils, helpMenu: helpMenu, searchPage: searchPage, shareApp: shareApp, portalSwitcher: portalSwitcher, headerActions: headerActions, panel1: panel1, popover: popover, ref: setHeaderEl })), isTopBar && (_jsx(TopNavDrawerProvider, { forceClosed: panel1Open, onOpen: () => {
169
+ if (panel1Open)
170
+ panel1?.onClose?.();
171
+ }, children: _jsx(AppTopNav, { appInfo: appInfo, links: links, caseTypes: caseTypes, cases: cases, agent: agent, utils: utils, searchInput: searchInput, searchPage: searchPage, searchLabel: searchLabel }) })), !isTopBar && isSmallOrAbove && (_jsxs(Flex, { ...restProps, container: {
172
+ direction: 'column',
173
+ justify: 'between'
174
+ }, id: navId, as: StyledSidebarNav, portalAgent: !!agent, ref: navRef, "data-app-region": true, inert: panel1Open && !isMediumOrAbove ? '' : undefined, onFocus: onFocus, "aria-label": t('app_shell_main_navigation_label'), children: [_jsx(AppNavigationPanel, { navState: sidebarNavState, appInfo: !showAppHeader ? appInfo : undefined, searchInput: !showAppHeader ? searchInput : undefined, searchLabel: searchLabel, caseTypes: caseTypes, links: links, cases: cases, utils: utilsList, onClick: () => {
175
+ if (['closing', 'closed'].includes(sidebarNavState)) {
176
+ openNav(0);
177
+ }
178
+ else {
179
+ closeNav(0);
180
+ }
181
+ }, agent: agent }), _jsxs(Flex, { container: { justify: 'center' }, children: [_jsx(StyledAppShellToggleButton, { icon: true, ref: setExpandCollapseEl, compact: true, variant: 'simple', onClick: () => {
182
+ setSidebarNavState(sidebarNavState === 'closed' ? 'open' : 'closed');
183
+ }, "aria-label": sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation'), "aria-expanded": sidebarNavState === 'open' || sidebarNavState === 'opening', "aria-controls": navId, children: ['closed', 'closing'].includes(sidebarNavState) ? (_jsx(Icon, { name: `arrow-micro-${end}` })) : (_jsx(Icon, { name: `arrow-micro-${start}` })) }), ['open', 'closed'].includes(sidebarNavState) && (_jsx(Tooltip, { target: expandCollapseEl, placement: 'right', as: StyledAppShellTooltip, showDelay: 'none', hideDelay: 'none', children: sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation') }))] })] })), panel1Element, showMainContent && (_jsxs(_Fragment, { children: [documentTabs && _jsx(DocumentTabs, { ...documentTabs }), (() => {
184
+ const mainRegion = (_jsxs(StyledAppMain, { previewActive: previewActive, isTopBar: isTopBar, "aria-busy": !!progress, "data-app-region": true, children: [_jsx(Progress, { visible: !!progress, placement: 'local', message: typeof progress === 'string' ? progress : t('loading') }), banners && _jsx(StyledBannerRegion, { children: banners }), main] }));
185
+ if (!documentTabs)
186
+ return mainRegion;
187
+ return (_jsx(StyledDocumentTabPanel, { role: 'tabpanel', id: documentTabs.currentTabId ? getTabPanelId(documentTabs.currentTabId) : undefined, "aria-labelledby": documentTabs.currentTabId ? getTabElementId(documentTabs.currentTabId) : undefined, tabIndex: 0, children: mainRegion }));
188
+ })()] })), _jsx(AppShellGlobalStyle, { isTopBar: isTopBar, showAppHeader: showAppHeader, isTouchDevice: false, isExtraSmallScreen: !isSmallOrAbove, hasDocumentTabs: !!documentTabs, navOpen: sidebarNavState === 'open' || sidebarNavState === 'opening', startPanelOpen: panel1Open, startPanelWidth: panel1?.width })] }));
189
+ });
190
+ const AppShellMain = forwardRef(function AppShellMain(props, ref) {
191
+ const t = useI18n();
192
+ const { start } = useDirection();
193
+ const navId = useUID();
194
+ const { appInfo, appHeader, contextSwitcher, searchPage, searchInput, searchLabel = t('sitewide'), caseTypes, links, cases, agent, utils, operator, notifications, headerUtils, helpMenu, shareApp, banners, progress, main, bottomTouchPanel, documentTabs, navOrientation = 'side-rail', headerActions, panel1, popover, ...restProps } = props;
195
+ const isSmallOrAbove = useBreakpoint('sm');
196
+ const isTopBar = navOrientation === 'top-bar' || !isSmallOrAbove;
197
+ const showAppHeader = isTouchDevice
198
+ ? isSmallOrAbove
199
+ : isTopBar || (!!appHeader && isSmallOrAbove);
200
+ const { themeMode, onThemeModeChange } = useThemeMode();
212
201
  const contextSwitcherUtilItem = useMemo(() => {
213
202
  const { contexts, onContextClick, label: contextSwitcherLabel = t('switch_to') } = contextSwitcher ?? {};
214
- if (!showAppHeader && contexts && contexts?.length > 1 && !!onContextClick) {
203
+ if (!showAppHeader && contexts && contexts.length > 1 && onContextClick) {
215
204
  return {
216
205
  name: contextSwitcherLabel,
217
206
  primary: contextSwitcherLabel,
@@ -221,29 +210,29 @@ const AppShell = forwardRef(function AppShell(props, ref) {
221
210
  primary: context.primary,
222
211
  'aria-current': !!context.selected,
223
212
  visual: context.visual,
224
- onClick: e => {
225
- onContextClick(context.id, e);
226
- }
213
+ onClick: e => onContextClick(context.id, e)
227
214
  })), singleSelect: true }))
228
215
  };
229
216
  }
230
- }, [
231
- showAppHeader,
232
- contextSwitcher?.contexts,
233
- contextSwitcher?.label,
234
- contextSwitcher?.onContextClick
235
- ]);
217
+ }, [contextSwitcher, showAppHeader, t]);
236
218
  const shareLabel = shareApp?.label ?? t('app_shell_share');
219
+ const headerActionUtilItems = useMemo(() => !showAppHeader && headerActions?.length
220
+ ? getHeaderActionUtilItems(headerActions, {
221
+ panel1,
222
+ popover,
223
+ newTabHint: t('opens_in_a_new_tab')
224
+ })
225
+ : [], [headerActions, panel1, popover, showAppHeader, t]);
237
226
  const shareApplicationUtilItem = useMemo(() => {
238
227
  if (!showAppHeader && shareApp) {
239
228
  return {
240
229
  name: shareLabel,
241
230
  primary: shareLabel,
242
- visual: _jsx(StyledShareIcon, { name: 'share' }),
231
+ visual: _jsx(Icon, { name: 'share-external' }),
243
232
  onClick: shareApp.onClick
244
233
  };
245
234
  }
246
- }, [showAppHeader, shareApp, shareLabel]);
235
+ }, [shareApp, shareLabel, showAppHeader]);
247
236
  const operatorInfoUtilItem = useMemo(() => {
248
237
  if (!showAppHeader && operator) {
249
238
  return {
@@ -253,17 +242,14 @@ const AppShell = forwardRef(function AppShell(props, ref) {
253
242
  items: operator.actions
254
243
  };
255
244
  }
256
- }, [showAppHeader, operator]);
257
- const { themeMode, onThemeModeChange } = useThemeMode();
245
+ }, [operator, showAppHeader, t]);
258
246
  const themeSwitcherUtilItem = useMemo(() => {
259
247
  if (!showAppHeader && onThemeModeChange) {
260
- let currentThemeIcon = 'circle-mixed-left'; // default for system
261
- if (themeMode === 'dark') {
248
+ let currentThemeIcon = 'circle-mixed-left';
249
+ if (themeMode === 'dark')
262
250
  currentThemeIcon = 'moon';
263
- }
264
- else if (themeMode === 'light') {
251
+ else if (themeMode === 'light')
265
252
  currentThemeIcon = 'sun';
266
- }
267
253
  return {
268
254
  name: t('theme_mode'),
269
255
  primary: t('theme_mode'),
@@ -290,63 +276,34 @@ const AppShell = forwardRef(function AppShell(props, ref) {
290
276
  ]
291
277
  };
292
278
  }
293
- }, [showAppHeader, onThemeModeChange, themeMode]);
294
- const { start, end } = useDirection();
279
+ }, [onThemeModeChange, showAppHeader, t, themeMode]);
280
+ // With the app header shown, `AppHeader` renders its own notifications button and popover.
281
+ const navNotifications = showAppHeader ? undefined : notifications;
282
+ const { toggle: toggleNotificationsPopover, popover: notificationsPopover } = useNotificationsPopover(navNotifications, start);
283
+ const notificationsUtilItem = useMemo(() => {
284
+ if (!navNotifications)
285
+ return;
286
+ const { visual, name, count } = navNotifications;
287
+ return { visual, name, count, onClick: e => toggleNotificationsPopover(e.currentTarget) };
288
+ }, [navNotifications, toggleNotificationsPopover]);
295
289
  const utilsList = useMemo(() => [
296
290
  ...(utils ?? []),
291
+ ...(notificationsUtilItem ? [notificationsUtilItem] : []),
297
292
  ...(contextSwitcherUtilItem ? [contextSwitcherUtilItem] : []),
293
+ ...headerActionUtilItems,
298
294
  ...(shareApplicationUtilItem ? [shareApplicationUtilItem] : []),
299
295
  ...(operatorInfoUtilItem ? [operatorInfoUtilItem] : []),
300
296
  ...(themeSwitcherUtilItem ? [themeSwitcherUtilItem] : [])
301
297
  ], [
302
- utils,
303
298
  contextSwitcherUtilItem,
304
- shareApplicationUtilItem,
299
+ notificationsUtilItem,
300
+ headerActionUtilItems,
305
301
  operatorInfoUtilItem,
306
- themeSwitcherUtilItem
302
+ shareApplicationUtilItem,
303
+ themeSwitcherUtilItem,
304
+ utils
307
305
  ]);
308
- return (_jsxs(AppShellContext.Provider, { value: useMemo(() => ({
309
- navOpen: sidebarNavState === 'open' || sidebarNavState === 'opening' || mobileNavOpen,
310
- drawerOpen,
311
- setDrawerOpen,
312
- collapsedHoverMenus,
313
- navState: sidebarNavState,
314
- focusedImperatively,
315
- headerEl: headerEl || mobileHeaderEl,
316
- appHeaderEl: headerEl ?? null,
317
- searchContainerEl,
318
- setSearchContainerEl,
319
- isMobileNav: !isSmallOrAbove,
320
- previewActive,
321
- setPreviewActive
322
- }), [
323
- sidebarNavState,
324
- drawerOpen,
325
- mobileNavOpen,
326
- isSmallOrAbove,
327
- headerEl,
328
- mobileHeaderEl,
329
- searchContainerEl,
330
- previewActive
331
- ]), children: [_jsx(SkipLinks, { items: skipLinks }), showAppHeader && (_jsx(AppHeader, { ...appInfo, contextSwitcher: contextSwitcher, searchInput: searchInput, searchLabel: searchLabel, operator: operator, headerUtils: headerUtils, helpMenu: helpMenu, searchPage: searchPage, shareApp: shareApp, ref: setHeaderEl })), isTopBar && (_jsx(TopNavDrawerProvider, { topOffset: showAppHeader ? `calc(${headerHeight} + ${topNavHeight})` : topNavHeight, children: _jsx(AppTopNav, { appInfo: appInfo, links: links, caseTypes: caseTypes, cases: cases, agent: agent, utils: utils, searchInput: searchInput, searchPage: searchPage, searchLabel: searchLabel }) })), !isTopBar && isSmallOrAbove && (_jsxs(Flex, { ...restProps, container: {
332
- direction: 'column',
333
- justify: 'between'
334
- }, id: navId, as: StyledSidebarNav, withAppHeader: showAppHeader, portalAgent: !!agent, ref: navRef, "data-app-region": true, onFocus: onFocus, "aria-label": t('app_shell_main_navigation_label'), children: [_jsx(AppNavigationPanel, { navState: sidebarNavState, appInfo: !showAppHeader ? appInfo : undefined, searchInput: !showAppHeader ? searchInput : undefined, searchLabel: searchLabel, caseTypes: caseTypes, links: links, cases: cases, utils: utilsList, onClick: () => {
335
- if (['closing', 'closed'].includes(sidebarNavState)) {
336
- openNav(0);
337
- }
338
- else {
339
- closeNav(0);
340
- }
341
- }, agent: agent }), _jsxs(Flex, { container: { justify: 'center' }, children: [_jsx(StyledAppShellToggleButton, { icon: true, ref: setExpandCollapseEl, compact: true, variant: 'simple', onClick: () => {
342
- setSidebarNavState(sidebarNavState === 'closed' ? 'open' : 'closed');
343
- }, "aria-label": sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation'), "aria-expanded": sidebarNavState === 'open' || sidebarNavState === 'opening', "aria-controls": navId, children: ['closed', 'closing'].includes(sidebarNavState) ? (_jsx(Icon, { name: `arrow-micro-${end}` })) : (_jsx(Icon, { name: `arrow-micro-${start}` })) }), ['open', 'closed'].includes(sidebarNavState) && (_jsx(Tooltip, { target: expandCollapseEl, placement: 'right', as: StyledAppShellTooltip, showDelay: 'none', hideDelay: 'none', children: sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation') }))] })] })), !isSmallOrAbove && (_jsxs(_Fragment, { children: [_jsxs(Flex, { as: StyledMobileNav, container: { alignItems: 'center', gap: 0.25 }, ref: setMobileHeaderEl, "data-app-region": true, children: [caseTypes && caseTypes.length > 0 && _jsx(CaseTypes, { caseTypes: caseTypes, mobileNavBar: true }), links && _jsx(Links, { links: links.slice(0, mobileNavLinksCount), mobileNavBar: true }), _jsxs(StyledMobileMoreMenuButton, { ref: mobileButtonRef, variant: 'simple', onClick: () => setMobileNavOpen(prev => !prev), label: t('app_shell_more'), icon: true, "aria-expanded": mobileNavOpen, "aria-controls": navId, children: [_jsx(Icon, { name: 'bars' }), !mobileNavOpen &&
344
- utils?.some(item => (isValidElement(item) ? false : !!item.count)) && (_jsx(Alert, { variant: 'urgent' })), _jsx("span", { children: t('app_shell_more') })] })] }), _jsx(Drawer, { open: mobileNavOpen, ref: mobileNavRef, onAfterClose: () => {
345
- setMobileNavOpen(false);
346
- }, position: 'fixed', placement: 'bottom', size: '100dvh', nullWhenClosed: true, children: _jsx(Flex, { ...restProps, container: {
347
- direction: 'column',
348
- justify: 'between'
349
- }, id: navId, as: StyledMobileMoreMenu, ref: ref, "aria-label": t('app_shell_main_navigation_label'), children: _jsx(AppNavigationPanel, { appInfo: appInfo, navState: 'open', searchInput: searchInput, searchLabel: searchLabel, links: links?.slice(mobileNavLinksCount), cases: cases, utils: utilsList, agent: agent }) }) })] })), showMainContent && (_jsxs(StyledAppMain, { appHeader: showAppHeader, previewActive: previewActive, headerOffset: isSmallOrAbove ? headerEl?.offsetHeight : undefined, "$navOrientation": navOrientation, "aria-busy": !!progress, "data-app-region": true, children: [_jsx(Progress, { visible: !!progress, placement: 'local', message: typeof progress === 'string' ? progress : t('loading') }), banners && _jsx(StyledBannerRegion, { children: banners }), main] })), _jsx(AppShellGlobalStyle, { navHeight: isSmallOrAbove ? '0rem' : mobileHeaderHeight })] }));
306
+ return (_jsxs(_Fragment, { children: [isTouchDevice ? (_jsx(TouchAppShell, { appInfo: appInfo, appHeader: appHeader, contextSwitcher: contextSwitcher, searchPage: searchPage, searchInput: searchInput, searchLabel: searchLabel, caseTypes: caseTypes, links: links, cases: cases, agent: agent, utils: utils, utilsList: utilsList, operator: operator, notifications: notifications, headerUtils: headerUtils, helpMenu: helpMenu, shareApp: shareApp, banners: banners, progress: progress, main: main, bottomTouchPanel: bottomTouchPanel, documentTabs: documentTabs, headerActions: headerActions, panel1: panel1, popover: popover, navId: navId, restProps: restProps })) : (_jsx(AppShell, { ...props, utilsList: utilsList, ref: ref })), notificationsPopover] }));
350
307
  });
351
- export default AppShell;
308
+ export default AppShellMain;
352
309
  //# sourceMappingURL=AppShell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"A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B,EACxB,GAAG,EAAE,GAAG,gBACI,CAAC,CAAC,iCAAiC,CAAC,YAEhD,KAAC,kBAAkB,IACjB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAC,MAAM,EACf,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,EACxC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,KAAK,GACZ,GACG,GACA,IACR,CACJ,EACA,eAAe,IAAI,CAClB,MAAC,aAAa,IACZ,SAAS,EAAE,aAAa,EACxB,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,qBAChD,cAAc,eACpB,CAAC,CAAC,QAAQ,sCAGrB,KAAC,QAAQ,IACP,OAAO,EAAE,CAAC,CAAC,QAAQ,EACnB,SAAS,EAAC,OAAO,EACjB,OAAO,EAAE,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAC/D,EAED,OAAO,IAAI,KAAC,kBAAkB,cAAE,OAAO,GAAsB,EAC7D,IAAI,IACS,CACjB,EACD,KAAC,mBAAmB,IAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAkB,GAAI,IACvD,CAC5B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import {\n forwardRef,\n useState,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useLayoutEffect\n} from 'react';\nimport type { PropsWithoutRef, ReactNode, Ref } from 'react';\n\nimport { Alert } from '../Badges';\nimport Flex from '../Flex';\nimport Icon, { registerIcon } from '../Icon';\nimport * as timesIcon from '../Icon/icons/times.icon';\nimport * as plusIcon from '../Icon/icons/plus.icon';\nimport * as caseSolidIcon from '../Icon/icons/case-solid.icon';\nimport * as barsIcon from '../Icon/icons/bars.icon';\nimport * as caretLeftIcon from '../Icon/icons/caret-left.icon';\nimport * as caretRightIcon from '../Icon/icons/caret-right.icon';\nimport * as sunIcon from '../Icon/icons/sun.icon';\nimport * as moonIcon from '../Icon/icons/moon.icon';\nimport * as circleMixedLeftIcon from '../Icon/icons/circle-mixed-left.icon';\nimport * as shareIcon from '../Icon/icons/share.icon';\nimport {\n useI18n,\n useBreakpoint,\n useConsolidatedRef,\n useElement,\n useTransitionState,\n useEvent,\n useOuterEvent,\n useScrollToggle,\n useTheme,\n useUID,\n usePreviewManager,\n useDirection\n} from '../../hooks';\nimport { openCloseStates } from '../../hooks/useTransitionState';\nimport SkipLinks from '../SkipLinks';\nimport type { SkipLinksProps } from '../SkipLinks';\nimport Progress from '../Progress';\nimport { registerAction } from '../ShortcutManager';\nimport useShortcut from '../../hooks/useShortcut';\nimport { debounce, getChildOfRootNode, isValidElement } from '../../utils';\nimport useKeyboardCommands from '../KeyboardCommands';\nimport Tooltip from '../Tooltip';\nimport Drawer from '../Drawer';\nimport useThemeMode from '../../hooks/useThemeMode';\n\nimport AppShellContext, { AppShellDrawerContext } from './AppShellContext';\nimport AppHeader from './AppHeader';\nimport AppShellDrawer from './Drawer';\nimport AppTopNav from './AppTopNav';\nimport {\n StyledAppMain,\n StyledBannerRegion,\n StyledMobileNav,\n mobileHeaderHeight,\n StyledMobileMoreMenuButton,\n menuButtonWidth,\n StyledMobileMoreMenu,\n StyledAppShellToggleButton,\n StyledAppShellTooltip,\n StyledSidebarNav,\n headerHeight,\n StyledShareIcon,\n topNavHeight,\n AppShellGlobalStyle\n} from './AppShell.styles';\nimport type { AppShellProps, UtilItemProps } from './AppShell.types';\nimport { followingNodes, focusRegion } from './utils';\nimport AppNavigationPanel, { CaseTypes, Links } from './AppNavigationPanel';\nimport NavigationList from './NavigationList';\n\nregisterIcon(\n timesIcon,\n plusIcon,\n caseSolidIcon,\n barsIcon,\n caretRightIcon,\n caretLeftIcon,\n sunIcon,\n moonIcon,\n circleMixedLeftIcon,\n shareIcon\n);\nregisterAction(\n { id: 'NextRegion', defaultKeyBinding: 'F9' },\n { id: 'PrevRegion', defaultKeyBinding: 'Shift+F9' },\n { id: 'KeyboardCommands', defaultKeyBinding: 'CommandOrControl+/' }\n);\n\ninterface TopNavDrawerProviderProps {\n children: ReactNode;\n topOffset: string;\n}\n\nfunction TopNavDrawerProvider({ children, topOffset }: TopNavDrawerProviderProps) {\n const [item, setItem] = useState<UtilItemProps | undefined>(undefined);\n const [drawerOpen, setDrawerOpen] = useState(false);\n\n // Delay opening the drawer by one render pass after item is set.\n // The cosmos-core Drawer only fires onAfterOpen on a false→true open transition.\n // Batching setItem + setDrawerOpen(true) in the same event handler causes the\n // Drawer to mount with open=true from the start (no transition), so onAfterOpen\n // never fires and item.onDrawerOpen() (data fetching) is never called.\n // Setting drawerOpen in a separate useEffect gives the Drawer a proper transition.\n useEffect(() => {\n if (item) setDrawerOpen(true);\n }, [item]);\n\n const ctxValue = useMemo(\n () => ({\n drawerOpen,\n openItemName: item?.name,\n closeDrawer: () => setDrawerOpen(false),\n openDrawer: (next: UtilItemProps) => {\n // Spread to create a new object reference each time so useEffect([item])\n // always fires — even when the same item is re-opened after the drawer closes.\n setItem({ ...next });\n },\n refreshDrawer: (next: UtilItemProps) => {\n setItem({ ...next });\n }\n }),\n [drawerOpen, item?.name]\n );\n\n return (\n <AppShellDrawerContext.Provider value={ctxValue}>\n {children}\n {item && (\n <AppShellDrawer\n drawerOpen={drawerOpen}\n setDrawerOpen={setDrawerOpen}\n content={item.drawerView}\n header={item.drawerHeader || item.name}\n topOffset={topOffset}\n onDrawerClose={() => {\n setItem(undefined);\n item.onDrawerClose?.();\n }}\n onDrawerOpen={item.onDrawerOpen}\n />\n )}\n </AppShellDrawerContext.Provider>\n );\n}\n\nconst AppShell = forwardRef(function AppShell(\n props: PropsWithoutRef<AppShellProps>,\n ref: Ref<HTMLDivElement>\n) {\n const t = useI18n();\n\n const {\n appInfo,\n contextSwitcher,\n searchInput,\n appHeader,\n searchPage,\n searchLabel = t('sitewide'),\n caseTypes,\n links,\n agent,\n banners,\n progress,\n main,\n operator,\n utils,\n headerUtils,\n helpMenu,\n cases,\n defaultExpanded = false,\n collapsedHoverMenus = false,\n shareApp,\n navOrientation = 'side-rail',\n ...restProps\n } = props;\n\n const { disableScroll, enableScroll } = useScrollToggle();\n const navRef = useConsolidatedRef(ref);\n const mobileButtonRef = useRef<HTMLButtonElement>(null);\n const navId = useUID();\n const [expandCollapseEl, setExpandCollapseEl] = useElement<HTMLButtonElement>();\n\n const [mobileNavOpen, setMobileNavOpen] = useState(false);\n const [drawerOpen, setDrawerOpen] = useState(false);\n const [mobileNavLinksCount, setMobileNavLinksCount] = useState(0);\n\n const { previewActive, setPreviewActive } = usePreviewManager();\n\n const focusedImperatively = useRef(false);\n const [headerEl, setHeaderEl] = useElement<HTMLDivElement>();\n const [mobileHeaderEl, setMobileHeaderEl] = useElement<HTMLDivElement>();\n\n const isSmallOrAbove = useBreakpoint('sm');\n const isTopBar = navOrientation === 'top-bar' && isSmallOrAbove;\n\n const showAppHeader = isTopBar ? isSmallOrAbove : !!appHeader && isSmallOrAbove;\n const showMainContent = showAppHeader ? !!(headerEl || mobileHeaderEl) : true;\n\n const openNavTimeoutId = useRef<ReturnType<typeof setTimeout>>();\n const closeNavTimeoutId = useRef<ReturnType<typeof setTimeout>>();\n\n const [searchContainerEl, setSearchContainerEl] = useState<HTMLElement | null>(null);\n\n const openKeyboardCommands = useKeyboardCommands();\n\n const theme = useTheme();\n\n const { state: sidebarNavState, set: setSidebarNavState } = useTransitionState({\n ref: navRef,\n property: 'width',\n states: openCloseStates,\n defaultState: defaultExpanded ? 'open' : 'closed'\n });\n\n const skipLinks: SkipLinksProps['items'] = useMemo(\n () => [\n {\n label: t('go_to_main_content'),\n target: { ariaLabel: t('main_content'), selector: 'main' }\n }\n ],\n [t]\n );\n\n const openNav = useCallback((delay: number = 0) => {\n if (closeNavTimeoutId.current) clearTimeout(closeNavTimeoutId.current);\n openNavTimeoutId.current = setTimeout(() => {\n setSidebarNavState('open');\n }, delay);\n }, []);\n\n const closeNav = useCallback((delay: number = 0) => {\n if (openNavTimeoutId.current) clearTimeout(openNavTimeoutId.current);\n closeNavTimeoutId.current = setTimeout(() => {\n setSidebarNavState('closed');\n }, delay);\n }, []);\n\n const onFocus = useCallback(() => {\n focusedImperatively.current = false;\n }, []);\n\n const mobileNavRef = useRef<HTMLDivElement>(null);\n\n useOuterEvent('focusin', [mobileNavRef, mobileButtonRef], () => setMobileNavOpen(false));\n\n useEffect(() => {\n if (mobileNavOpen) {\n disableScroll();\n } else {\n enableScroll();\n }\n }, [mobileNavOpen]);\n\n useEffect(() => {\n if (!navRef.current) return;\n const targetNode = getChildOfRootNode(navRef);\n if (!targetNode) return;\n if (!targetNode.style.getPropertyValue('--app-header-height')) {\n targetNode.style.setProperty('--app-header-height', showAppHeader ? headerHeight : '0');\n }\n }, [showAppHeader]);\n\n useEffect(() => {\n if (mobileNavOpen) {\n const onKeyDown = ({ key }: KeyboardEvent) => {\n if (key === 'Escape') setMobileNavOpen(false);\n };\n\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('keydown', onKeyDown);\n };\n }\n }, [mobileNavOpen]);\n\n useEffect(() => {\n if (isSmallOrAbove && mobileNavOpen) setMobileNavOpen(false);\n }, [isSmallOrAbove, mobileNavOpen]);\n\n useLayoutEffect(() => {\n if (!mobileHeaderEl) return;\n\n const resizeObserver = new ResizeObserver(\n debounce(() => {\n const screenWidth = document.documentElement.clientWidth;\n const regionsPaddingInlinePixels =\n 2 *\n Number.parseInt(\n window.getComputedStyle(mobileHeaderEl).getPropertyValue('padding-inline-start'),\n 10\n );\n const availableWidth = screenWidth * 0.9 - regionsPaddingInlinePixels;\n setMobileNavLinksCount(\n Math.max(\n Math.floor(availableWidth / menuButtonWidth(theme)) - (caseTypes?.length ? 2 : 1),\n 0\n )\n );\n }, 0)\n );\n\n resizeObserver.observe(document.documentElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [mobileHeaderEl, caseTypes?.length]);\n\n const activatedEl = useRef<Element>(document.body);\n useEvent('click', e => {\n activatedEl.current = document.elementFromPoint(e.clientX, e.clientY) ?? document.body;\n });\n\n useShortcut('NextRegion', () => {\n const activeElement =\n document.activeElement && document.activeElement !== document.body\n ? document.activeElement\n : activatedEl.current;\n const regionEls = followingNodes<HTMLElement>(\n document.createNodeIterator(document.body, NodeFilter.SHOW_ELEMENT, node =>\n // safe to treat as Element, as we requested to give us only elements\n (node as Element).hasAttribute('data-app-region') || node === activeElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP\n ),\n activeElement\n );\n // try to focus first visibleregion\n const focusedNode = regionEls.find(node => focusRegion(node));\n if (!focusedNode) (activeElement as HTMLElement).focus();\n });\n\n useShortcut('PrevRegion', () => {\n const activeElement =\n document.activeElement && document.activeElement !== document.body\n ? document.activeElement\n : activatedEl.current;\n const regionEls = followingNodes<HTMLElement>(\n document.createNodeIterator(document.body, NodeFilter.SHOW_ELEMENT, node =>\n // safe to treat as Element, as we requested to give us only elements\n (node as Element).hasAttribute('data-app-region') || node === activeElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP\n ),\n activeElement\n );\n regionEls.reverse();\n\n // removing active element parent from the list to avoid focusing back to the same region\n // but only if element is not region himself - in that case we want to keep its parent on the list\n // as it is different focusable region\n if (regionEls[0].contains(activeElement) && !activeElement.hasAttribute('data-app-region'))\n regionEls.splice(0, 1);\n const focusedNode = regionEls.find(node => focusRegion(node));\n if (!focusedNode) (activeElement as HTMLElement).focus();\n });\n\n useShortcut('KeyboardCommands', () => {\n openKeyboardCommands();\n });\n\n const contextSwitcherUtilItem: UtilItemProps | undefined = useMemo(() => {\n const {\n contexts,\n onContextClick,\n label: contextSwitcherLabel = t('switch_to')\n } = contextSwitcher ?? {};\n if (!showAppHeader && contexts && contexts?.length > 1 && !!onContextClick) {\n return {\n name: contextSwitcherLabel,\n primary: contextSwitcherLabel,\n visual: <Icon name='dot-9-solid' />,\n drawerView: (\n <NavigationList\n items={contexts!.map(context => ({\n ...context,\n primary: context.primary,\n 'aria-current': !!context.selected,\n visual: context.visual,\n onClick: e => {\n onContextClick(context.id, e);\n }\n }))}\n singleSelect\n />\n )\n };\n }\n }, [\n showAppHeader,\n contextSwitcher?.contexts,\n contextSwitcher?.label,\n contextSwitcher?.onContextClick\n ]);\n\n const shareLabel = shareApp?.label ?? t('app_shell_share');\n\n const shareApplicationUtilItem: UtilItemProps | undefined = useMemo(() => {\n if (!showAppHeader && shareApp) {\n return {\n name: shareLabel,\n primary: shareLabel,\n visual: <StyledShareIcon name='share' />,\n onClick: shareApp.onClick\n };\n }\n }, [showAppHeader, shareApp, shareLabel]);\n\n const operatorInfoUtilItem: UtilItemProps | undefined = useMemo(() => {\n if (!showAppHeader && operator) {\n return {\n name: operator.name,\n primary: t('app_shell_user_account'),\n visual: operator.avatar,\n items: operator.actions\n };\n }\n }, [showAppHeader, operator]);\n\n const { themeMode, onThemeModeChange } = useThemeMode();\n\n const themeSwitcherUtilItem: UtilItemProps | undefined = useMemo(() => {\n if (!showAppHeader && onThemeModeChange) {\n let currentThemeIcon = 'circle-mixed-left'; // default for system\n if (themeMode === 'dark') {\n currentThemeIcon = 'moon';\n } else if (themeMode === 'light') {\n currentThemeIcon = 'sun';\n }\n\n return {\n name: t('theme_mode'),\n primary: t('theme_mode'),\n visual: <Icon name={currentThemeIcon} />,\n items: [\n {\n id: 'light',\n primary: t('theme_light'),\n visual: <Icon name='sun' />,\n onClick: () => onThemeModeChange('light')\n },\n {\n id: 'dark',\n primary: t('theme_dark'),\n visual: <Icon name='moon' />,\n onClick: () => onThemeModeChange('dark')\n },\n {\n id: 'system',\n primary: t('theme_system'),\n visual: <Icon name='circle-mixed-left' />,\n onClick: () => onThemeModeChange('system')\n }\n ]\n };\n }\n }, [showAppHeader, onThemeModeChange, themeMode]);\n\n const { start, end } = useDirection();\n\n const utilsList = useMemo(\n () => [\n ...(utils ?? []),\n ...(contextSwitcherUtilItem ? [contextSwitcherUtilItem] : []),\n ...(shareApplicationUtilItem ? [shareApplicationUtilItem] : []),\n ...(operatorInfoUtilItem ? [operatorInfoUtilItem] : []),\n ...(themeSwitcherUtilItem ? [themeSwitcherUtilItem] : [])\n ],\n [\n utils,\n contextSwitcherUtilItem,\n shareApplicationUtilItem,\n operatorInfoUtilItem,\n themeSwitcherUtilItem\n ]\n );\n\n return (\n <AppShellContext.Provider\n value={useMemo(\n () => ({\n navOpen: sidebarNavState === 'open' || sidebarNavState === 'opening' || mobileNavOpen,\n drawerOpen,\n setDrawerOpen,\n collapsedHoverMenus,\n navState: sidebarNavState,\n focusedImperatively,\n headerEl: headerEl || mobileHeaderEl,\n appHeaderEl: headerEl ?? null,\n searchContainerEl,\n setSearchContainerEl,\n isMobileNav: !isSmallOrAbove,\n previewActive,\n setPreviewActive\n }),\n [\n sidebarNavState,\n drawerOpen,\n mobileNavOpen,\n isSmallOrAbove,\n headerEl,\n mobileHeaderEl,\n searchContainerEl,\n previewActive\n ]\n )}\n >\n <SkipLinks items={skipLinks} />\n {showAppHeader && (\n <AppHeader\n {...appInfo}\n contextSwitcher={contextSwitcher}\n searchInput={searchInput}\n searchLabel={searchLabel}\n operator={operator}\n headerUtils={headerUtils}\n helpMenu={helpMenu}\n searchPage={searchPage}\n shareApp={shareApp}\n ref={setHeaderEl}\n />\n )}\n {isTopBar && (\n <TopNavDrawerProvider\n topOffset={showAppHeader ? `calc(${headerHeight} + ${topNavHeight})` : topNavHeight}\n >\n <AppTopNav\n appInfo={appInfo}\n links={links}\n caseTypes={caseTypes}\n cases={cases}\n agent={agent}\n utils={utils}\n searchInput={searchInput}\n searchPage={searchPage}\n searchLabel={searchLabel}\n />\n </TopNavDrawerProvider>\n )}\n {!isTopBar && isSmallOrAbove && (\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n justify: 'between'\n }}\n id={navId}\n as={StyledSidebarNav}\n withAppHeader={showAppHeader}\n portalAgent={!!agent}\n ref={navRef}\n data-app-region\n onFocus={onFocus}\n aria-label={t('app_shell_main_navigation_label')}\n >\n <AppNavigationPanel\n navState={sidebarNavState}\n appInfo={!showAppHeader ? appInfo : undefined}\n searchInput={!showAppHeader ? searchInput : undefined}\n searchLabel={searchLabel}\n caseTypes={caseTypes}\n links={links}\n cases={cases}\n utils={utilsList}\n onClick={() => {\n if (['closing', 'closed'].includes(sidebarNavState)) {\n openNav(0);\n } else {\n closeNav(0);\n }\n }}\n agent={agent}\n />\n <Flex container={{ justify: 'center' }}>\n <StyledAppShellToggleButton\n icon\n ref={setExpandCollapseEl}\n compact\n variant='simple'\n onClick={() => {\n setSidebarNavState(sidebarNavState === 'closed' ? 'open' : 'closed');\n }}\n aria-label={\n sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation')\n }\n aria-expanded={sidebarNavState === 'open' || sidebarNavState === 'opening'}\n aria-controls={navId}\n >\n {['closed', 'closing'].includes(sidebarNavState) ? (\n <Icon name={`arrow-micro-${end}`} />\n ) : (\n <Icon name={`arrow-micro-${start}`} />\n )}\n </StyledAppShellToggleButton>\n\n {['open', 'closed'].includes(sidebarNavState) && (\n <Tooltip\n target={expandCollapseEl}\n placement='right'\n as={StyledAppShellTooltip}\n showDelay='none'\n hideDelay='none'\n >\n {sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation')}\n </Tooltip>\n )}\n </Flex>\n </Flex>\n )}\n {!isSmallOrAbove && (\n <>\n <Flex\n as={StyledMobileNav}\n container={{ alignItems: 'center', gap: 0.25 }}\n ref={setMobileHeaderEl}\n data-app-region\n >\n {caseTypes && caseTypes.length > 0 && <CaseTypes caseTypes={caseTypes} mobileNavBar />}\n {links && <Links links={links.slice(0, mobileNavLinksCount)} mobileNavBar />}\n <StyledMobileMoreMenuButton\n ref={mobileButtonRef}\n variant='simple'\n onClick={() => setMobileNavOpen(prev => !prev)}\n label={t('app_shell_more')}\n icon\n aria-expanded={mobileNavOpen}\n aria-controls={navId}\n >\n <Icon name='bars' />\n {!mobileNavOpen &&\n utils?.some(item => (isValidElement(item) ? false : !!item.count)) && (\n <Alert variant='urgent' />\n )}\n <span>{t('app_shell_more')}</span>\n </StyledMobileMoreMenuButton>\n </Flex>\n <Drawer\n open={mobileNavOpen}\n ref={mobileNavRef}\n onAfterClose={() => {\n setMobileNavOpen(false);\n }}\n position='fixed'\n placement='bottom'\n size='100dvh'\n nullWhenClosed\n >\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n justify: 'between'\n }}\n id={navId}\n as={StyledMobileMoreMenu}\n ref={ref}\n aria-label={t('app_shell_main_navigation_label')}\n >\n <AppNavigationPanel\n appInfo={appInfo}\n navState='open'\n searchInput={searchInput}\n searchLabel={searchLabel}\n links={links?.slice(mobileNavLinksCount)}\n cases={cases}\n utils={utilsList}\n agent={agent}\n />\n </Flex>\n </Drawer>\n </>\n )}\n {showMainContent && (\n <StyledAppMain\n appHeader={showAppHeader}\n previewActive={previewActive}\n headerOffset={isSmallOrAbove ? headerEl?.offsetHeight : undefined}\n $navOrientation={navOrientation}\n aria-busy={!!progress}\n data-app-region\n >\n <Progress\n visible={!!progress}\n placement='local'\n message={typeof progress === 'string' ? progress : t('loading')}\n />\n\n {banners && <StyledBannerRegion>{banners}</StyledBannerRegion>}\n {main}\n </StyledAppMain>\n )}\n <AppShellGlobalStyle navHeight={isSmallOrAbove ? '0rem' : mobileHeaderHeight} />\n </AppShellContext.Provider>\n );\n});\n\nexport default AppShell;\n"]}
1
+ {"version":3,"file":"AppShell.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGtF,OAAO,IAAI,MAAM,SAAS,CAAC;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M,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GACpB,CACH,CAAC,CAAC,CAAC,CACF,KAAC,QAAQ,OAAK,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,GAAI,CACxD,EACA,oBAAoB,IACpB,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,YAAY,CAAC","sourcesContent":["import { forwardRef, useState, useCallback, useEffect, useMemo, useRef } from 'react';\nimport type { PropsWithoutRef, Ref } from 'react';\n\nimport Flex from '../Flex';\nimport Icon, { registerIcon } from '../Icon';\nimport * as timesIcon from '../Icon/icons/times.icon';\nimport * as plusIcon from '../Icon/icons/plus.icon';\nimport * as caseSolidIcon from '../Icon/icons/case-solid.icon';\nimport * as barsIcon from '../Icon/icons/bars.icon';\nimport * as caretLeftIcon from '../Icon/icons/caret-left.icon';\nimport * as caretRightIcon from '../Icon/icons/caret-right.icon';\nimport * as sunIcon from '../Icon/icons/sun.icon';\nimport * as moonIcon from '../Icon/icons/moon.icon';\nimport * as circleMixedLeftIcon from '../Icon/icons/circle-mixed-left.icon';\nimport * as shareExternalIcon from '../Icon/icons/share-external.icon';\nimport {\n useI18n,\n useBreakpoint,\n useConsolidatedRef,\n useElement,\n useTransitionState,\n useEvent,\n useUID,\n usePreviewManager,\n useDirection\n} from '../../hooks';\nimport useThemeMode from '../../hooks/useThemeMode';\nimport { openCloseStates } from '../../hooks/useTransitionState';\nimport SkipLinks from '../SkipLinks';\nimport type { SkipLinksProps } from '../SkipLinks';\nimport Progress from '../Progress';\nimport { registerAction } from '../ShortcutManager';\nimport useShortcut from '../../hooks/useShortcut';\nimport { isTouchDevice } from '../../utils';\nimport useKeyboardCommands from '../KeyboardCommands';\nimport Tooltip from '../Tooltip';\n\nimport AppShellContext from './AppShellContext';\nimport AppHeader from './AppHeader';\nimport AppTopNav from './AppTopNav';\nimport {\n StyledAppMain,\n StyledBannerRegion,\n StyledAppShellToggleButton,\n StyledAppShellTooltip,\n StyledSidebarNav,\n AppShellGlobalStyle\n} from './AppShell.styles';\nimport type { AppShellProps, UtilItemProps } from './AppShell.types';\nimport { followingNodes, focusRegion } from './utils';\nimport AppNavigationPanel from './AppNavigationPanel';\nimport NavigationList from './NavigationList';\nimport DocumentTabs, { getTabElementId, getTabPanelId } from './DocumentTabs';\nimport { StyledDocumentTabPanel } from './DocumentTabs.styles';\nimport TopNavDrawerProvider from './TopNavDrawerProvider';\nimport TouchAppShell from './TouchAppShell';\nimport type { TouchAppShellProps } from './TouchAppShell';\nimport { useNotificationsPopover } from './Notifications';\nimport { usePanel } from './Panel';\nimport getHeaderActionUtilItems from './headerActionUtils';\n\ninterface DesktopAppShellProps extends AppShellProps {\n utilsList: NonNullable<AppShellProps['utils']>;\n}\n\nregisterIcon(\n timesIcon,\n plusIcon,\n caseSolidIcon,\n barsIcon,\n caretRightIcon,\n caretLeftIcon,\n sunIcon,\n moonIcon,\n circleMixedLeftIcon,\n shareExternalIcon\n);\nregisterAction(\n { id: 'NextRegion', defaultKeyBinding: 'F9' },\n { id: 'PrevRegion', defaultKeyBinding: 'Shift+F9' },\n { id: 'KeyboardCommands', defaultKeyBinding: 'CommandOrControl+/' }\n);\n\nconst AppShell = forwardRef(function AppShell(\n props: PropsWithoutRef<DesktopAppShellProps>,\n ref: Ref<HTMLDivElement>\n) {\n const t = useI18n();\n\n const {\n appInfo,\n contextSwitcher,\n searchInput,\n appHeader,\n searchPage,\n searchLabel = t('sitewide'),\n caseTypes,\n links,\n agent,\n banners,\n progress,\n main,\n operator,\n notifications,\n utils,\n headerUtils,\n helpMenu,\n cases,\n defaultExpanded = false,\n collapsedHoverMenus = false,\n shareApp,\n portalSwitcher,\n navOrientation = 'side-rail',\n documentTabs,\n utilsList,\n headerActions,\n panel1,\n popover,\n ...restProps\n } = props;\n\n const skipLinks: SkipLinksProps['items'] = useMemo(\n () => [\n {\n label: t('go_to_main_content'),\n target: { ariaLabel: t('main_content'), selector: 'main' }\n }\n ],\n [t]\n );\n\n const navRef = useConsolidatedRef(ref);\n const navId = useUID();\n const [expandCollapseEl, setExpandCollapseEl] = useElement<HTMLButtonElement>();\n\n const [drawerOpen, setDrawerOpen] = useState(false);\n\n const { previewActive, setPreviewActive } = usePreviewManager();\n\n const focusedImperatively = useRef(false);\n const [headerEl, setHeaderEl] = useElement<HTMLDivElement>();\n\n const isSmallOrAbove = useBreakpoint('sm');\n const isMediumOrAbove = useBreakpoint('md');\n const isTopBar = navOrientation === 'top-bar' || !isSmallOrAbove;\n\n const showAppHeader = isTopBar || (!!appHeader && isSmallOrAbove);\n const showMainContent = showAppHeader ? !!headerEl : true;\n\n const openNavTimeoutId = useRef<ReturnType<typeof setTimeout>>();\n const closeNavTimeoutId = useRef<ReturnType<typeof setTimeout>>();\n\n const [searchContainerEl, setSearchContainerEl] = useState<HTMLElement | null>(null);\n\n const openKeyboardCommands = useKeyboardCommands();\n\n const { state: sidebarNavState, set: setSidebarNavState } = useTransitionState({\n ref: navRef,\n property: 'width',\n states: openCloseStates,\n defaultState: defaultExpanded ? 'open' : 'closed'\n });\n\n const openNav = useCallback((delay: number = 0) => {\n if (closeNavTimeoutId.current) clearTimeout(closeNavTimeoutId.current);\n openNavTimeoutId.current = setTimeout(() => {\n setSidebarNavState('open');\n }, delay);\n }, []);\n\n const closeNav = useCallback((delay: number = 0) => {\n if (openNavTimeoutId.current) clearTimeout(openNavTimeoutId.current);\n closeNavTimeoutId.current = setTimeout(() => {\n setSidebarNavState('closed');\n }, delay);\n }, []);\n\n const onFocus = useCallback(() => {\n focusedImperatively.current = false;\n }, []);\n\n const activatedEl = useRef<Element>(document.body);\n useEvent('click', e => {\n activatedEl.current = document.elementFromPoint(e.clientX, e.clientY) ?? document.body;\n });\n\n useShortcut('NextRegion', () => {\n const activeElement =\n document.activeElement && document.activeElement !== document.body\n ? document.activeElement\n : activatedEl.current;\n const regionEls = followingNodes<HTMLElement>(\n document.createNodeIterator(document.body, NodeFilter.SHOW_ELEMENT, node =>\n // safe to treat as Element, as we requested to give us only elements\n (node as Element).hasAttribute('data-app-region') || node === activeElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP\n ),\n activeElement\n );\n // try to focus first visibleregion\n const focusedNode = regionEls.find(node => focusRegion(node));\n if (!focusedNode) (activeElement as HTMLElement).focus();\n });\n\n useShortcut('PrevRegion', () => {\n const activeElement =\n document.activeElement && document.activeElement !== document.body\n ? document.activeElement\n : activatedEl.current;\n const regionEls = followingNodes<HTMLElement>(\n document.createNodeIterator(document.body, NodeFilter.SHOW_ELEMENT, node =>\n // safe to treat as Element, as we requested to give us only elements\n (node as Element).hasAttribute('data-app-region') || node === activeElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP\n ),\n activeElement\n );\n regionEls.reverse();\n\n // removing active element parent from the list to avoid focusing back to the same region\n // but only if element is not region himself - in that case we want to keep its parent on the list\n // as it is different focusable region\n if (regionEls[0].contains(activeElement) && !activeElement.hasAttribute('data-app-region'))\n regionEls.splice(0, 1);\n const focusedNode = regionEls.find(node => focusRegion(node));\n if (!focusedNode) (activeElement as HTMLElement).focus();\n });\n\n useShortcut('KeyboardCommands', () => {\n openKeyboardCommands();\n });\n\n const { start, end } = useDirection();\n\n const { panel: panel1Element, panelOpen: panel1Open } = usePanel(panel1);\n\n // Panel1 replaces the util drawer.\n useEffect(() => {\n if (!panel1Open) return;\n setDrawerOpen(false);\n closeNav();\n }, [panel1Open]);\n\n // Opening a util while panel1 is open makes the consumer close panel1.\n useEffect(() => {\n if (drawerOpen && panel1Open) panel1?.onClose?.();\n }, [drawerOpen]);\n\n return (\n <AppShellContext.Provider\n value={useMemo(\n () => ({\n navOpen: sidebarNavState === 'open' || sidebarNavState === 'opening',\n drawerOpen,\n setDrawerOpen,\n collapsedHoverMenus,\n navState: sidebarNavState,\n focusedImperatively,\n headerEl,\n appHeaderEl: headerEl ?? null,\n searchContainerEl,\n setSearchContainerEl,\n isMobileNav: false,\n isTopBar,\n previewActive,\n setPreviewActive,\n startPanelOpen: panel1Open\n }),\n [\n sidebarNavState,\n drawerOpen,\n collapsedHoverMenus,\n isTopBar,\n headerEl,\n searchContainerEl,\n previewActive,\n panel1Open\n ]\n )}\n >\n <SkipLinks items={skipLinks} />\n {showAppHeader && (\n <AppHeader\n {...appInfo}\n contextSwitcher={contextSwitcher}\n searchInput={searchInput}\n searchLabel={searchLabel}\n operator={operator}\n notifications={notifications}\n headerUtils={headerUtils}\n helpMenu={helpMenu}\n searchPage={searchPage}\n shareApp={shareApp}\n portalSwitcher={portalSwitcher}\n headerActions={headerActions}\n panel1={panel1}\n popover={popover}\n ref={setHeaderEl}\n />\n )}\n {isTopBar && (\n <TopNavDrawerProvider\n forceClosed={panel1Open}\n onOpen={() => {\n if (panel1Open) panel1?.onClose?.();\n }}\n >\n <AppTopNav\n appInfo={appInfo}\n links={links}\n caseTypes={caseTypes}\n cases={cases}\n agent={agent}\n utils={utils}\n searchInput={searchInput}\n searchPage={searchPage}\n searchLabel={searchLabel}\n />\n </TopNavDrawerProvider>\n )}\n {!isTopBar && isSmallOrAbove && (\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n justify: 'between'\n }}\n id={navId}\n as={StyledSidebarNav}\n portalAgent={!!agent}\n ref={navRef}\n data-app-region\n inert={panel1Open && !isMediumOrAbove ? '' : undefined}\n onFocus={onFocus}\n aria-label={t('app_shell_main_navigation_label')}\n >\n <AppNavigationPanel\n navState={sidebarNavState}\n appInfo={!showAppHeader ? appInfo : undefined}\n searchInput={!showAppHeader ? searchInput : undefined}\n searchLabel={searchLabel}\n caseTypes={caseTypes}\n links={links}\n cases={cases}\n utils={utilsList}\n onClick={() => {\n if (['closing', 'closed'].includes(sidebarNavState)) {\n openNav(0);\n } else {\n closeNav(0);\n }\n }}\n agent={agent}\n />\n <Flex container={{ justify: 'center' }}>\n <StyledAppShellToggleButton\n icon\n ref={setExpandCollapseEl}\n compact\n variant='simple'\n onClick={() => {\n setSidebarNavState(sidebarNavState === 'closed' ? 'open' : 'closed');\n }}\n aria-label={\n sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation')\n }\n aria-expanded={sidebarNavState === 'open' || sidebarNavState === 'opening'}\n aria-controls={navId}\n >\n {['closed', 'closing'].includes(sidebarNavState) ? (\n <Icon name={`arrow-micro-${end}`} />\n ) : (\n <Icon name={`arrow-micro-${start}`} />\n )}\n </StyledAppShellToggleButton>\n\n {['open', 'closed'].includes(sidebarNavState) && (\n <Tooltip\n target={expandCollapseEl}\n placement='right'\n as={StyledAppShellTooltip}\n showDelay='none'\n hideDelay='none'\n >\n {sidebarNavState === 'closed' ? t('expand_navigation') : t('collapse_navigation')}\n </Tooltip>\n )}\n </Flex>\n </Flex>\n )}\n {/* Before main so Tab order follows the visual order and leaving the panel reaches the page. */}\n {panel1Element}\n {showMainContent && (\n <>\n {documentTabs && <DocumentTabs {...documentTabs} />}\n {(() => {\n const mainRegion = (\n <StyledAppMain\n previewActive={previewActive}\n isTopBar={isTopBar}\n aria-busy={!!progress}\n data-app-region\n >\n <Progress\n visible={!!progress}\n placement='local'\n message={typeof progress === 'string' ? progress : t('loading')}\n />\n {banners && <StyledBannerRegion>{banners}</StyledBannerRegion>}\n {main}\n </StyledAppMain>\n );\n if (!documentTabs) return mainRegion;\n return (\n <StyledDocumentTabPanel\n role='tabpanel'\n id={\n documentTabs.currentTabId ? getTabPanelId(documentTabs.currentTabId) : undefined\n }\n aria-labelledby={\n documentTabs.currentTabId ? getTabElementId(documentTabs.currentTabId) : undefined\n }\n tabIndex={0}\n >\n {mainRegion}\n </StyledDocumentTabPanel>\n );\n })()}\n </>\n )}\n <AppShellGlobalStyle\n isTopBar={isTopBar}\n showAppHeader={showAppHeader}\n isTouchDevice={false}\n isExtraSmallScreen={!isSmallOrAbove}\n hasDocumentTabs={!!documentTabs}\n navOpen={sidebarNavState === 'open' || sidebarNavState === 'opening'}\n startPanelOpen={panel1Open}\n startPanelWidth={panel1?.width}\n />\n </AppShellContext.Provider>\n );\n});\n\nconst AppShellMain = forwardRef<\n HTMLDivElement,\n PropsWithoutRef<AppShellProps & Pick<TouchAppShellProps, 'bottomTouchPanel'>>\n>(function AppShellMain(props, ref) {\n const t = useI18n();\n const { start } = useDirection();\n const navId = useUID();\n const {\n appInfo,\n appHeader,\n contextSwitcher,\n searchPage,\n searchInput,\n searchLabel = t('sitewide'),\n caseTypes,\n links,\n cases,\n agent,\n utils,\n operator,\n notifications,\n headerUtils,\n helpMenu,\n shareApp,\n banners,\n progress,\n main,\n bottomTouchPanel,\n documentTabs,\n navOrientation = 'side-rail',\n headerActions,\n panel1,\n popover,\n ...restProps\n } = props;\n\n const isSmallOrAbove = useBreakpoint('sm');\n const isTopBar = navOrientation === 'top-bar' || !isSmallOrAbove;\n const showAppHeader = isTouchDevice\n ? isSmallOrAbove\n : isTopBar || (!!appHeader && isSmallOrAbove);\n const { themeMode, onThemeModeChange } = useThemeMode();\n\n const contextSwitcherUtilItem: UtilItemProps | undefined = useMemo(() => {\n const {\n contexts,\n onContextClick,\n label: contextSwitcherLabel = t('switch_to')\n } = contextSwitcher ?? {};\n if (!showAppHeader && contexts && contexts.length > 1 && onContextClick) {\n return {\n name: contextSwitcherLabel,\n primary: contextSwitcherLabel,\n visual: <Icon name='dot-9-solid' />,\n drawerView: (\n <NavigationList\n items={contexts.map(context => ({\n ...context,\n primary: context.primary,\n 'aria-current': !!context.selected,\n visual: context.visual,\n onClick: e => onContextClick(context.id, e)\n }))}\n singleSelect\n />\n )\n };\n }\n }, [contextSwitcher, showAppHeader, t]);\n\n const shareLabel = shareApp?.label ?? t('app_shell_share');\n const headerActionUtilItems = useMemo(\n () =>\n !showAppHeader && headerActions?.length\n ? getHeaderActionUtilItems(headerActions, {\n panel1,\n popover,\n newTabHint: t('opens_in_a_new_tab')\n })\n : [],\n [headerActions, panel1, popover, showAppHeader, t]\n );\n const shareApplicationUtilItem: UtilItemProps | undefined = useMemo(() => {\n if (!showAppHeader && shareApp) {\n return {\n name: shareLabel,\n primary: shareLabel,\n visual: <Icon name='share-external' />,\n onClick: shareApp.onClick\n };\n }\n }, [shareApp, shareLabel, showAppHeader]);\n\n const operatorInfoUtilItem: UtilItemProps | undefined = useMemo(() => {\n if (!showAppHeader && operator) {\n return {\n name: operator.name,\n primary: t('app_shell_user_account'),\n visual: operator.avatar,\n items: operator.actions\n };\n }\n }, [operator, showAppHeader, t]);\n\n const themeSwitcherUtilItem: UtilItemProps | undefined = useMemo(() => {\n if (!showAppHeader && onThemeModeChange) {\n let currentThemeIcon = 'circle-mixed-left';\n if (themeMode === 'dark') currentThemeIcon = 'moon';\n else if (themeMode === 'light') currentThemeIcon = 'sun';\n\n return {\n name: t('theme_mode'),\n primary: t('theme_mode'),\n visual: <Icon name={currentThemeIcon} />,\n items: [\n {\n id: 'light',\n primary: t('theme_light'),\n visual: <Icon name='sun' />,\n onClick: () => onThemeModeChange('light')\n },\n {\n id: 'dark',\n primary: t('theme_dark'),\n visual: <Icon name='moon' />,\n onClick: () => onThemeModeChange('dark')\n },\n {\n id: 'system',\n primary: t('theme_system'),\n visual: <Icon name='circle-mixed-left' />,\n onClick: () => onThemeModeChange('system')\n }\n ]\n };\n }\n }, [onThemeModeChange, showAppHeader, t, themeMode]);\n\n // With the app header shown, `AppHeader` renders its own notifications button and popover.\n const navNotifications = showAppHeader ? undefined : notifications;\n const { toggle: toggleNotificationsPopover, popover: notificationsPopover } =\n useNotificationsPopover(navNotifications, start);\n\n const notificationsUtilItem = useMemo<UtilItemProps | undefined>(() => {\n if (!navNotifications) return;\n const { visual, name, count } = navNotifications;\n return { visual, name, count, onClick: e => toggleNotificationsPopover(e.currentTarget) };\n }, [navNotifications, toggleNotificationsPopover]);\n\n const utilsList = useMemo<NonNullable<AppShellProps['utils']>>(\n () => [\n ...(utils ?? []),\n ...(notificationsUtilItem ? [notificationsUtilItem] : []),\n ...(contextSwitcherUtilItem ? [contextSwitcherUtilItem] : []),\n ...headerActionUtilItems,\n ...(shareApplicationUtilItem ? [shareApplicationUtilItem] : []),\n ...(operatorInfoUtilItem ? [operatorInfoUtilItem] : []),\n ...(themeSwitcherUtilItem ? [themeSwitcherUtilItem] : [])\n ],\n [\n contextSwitcherUtilItem,\n notificationsUtilItem,\n headerActionUtilItems,\n operatorInfoUtilItem,\n shareApplicationUtilItem,\n themeSwitcherUtilItem,\n utils\n ]\n );\n\n return (\n <>\n {isTouchDevice ? (\n <TouchAppShell\n appInfo={appInfo}\n appHeader={appHeader}\n contextSwitcher={contextSwitcher}\n searchPage={searchPage}\n searchInput={searchInput}\n searchLabel={searchLabel}\n caseTypes={caseTypes}\n links={links}\n cases={cases}\n agent={agent}\n utils={utils}\n utilsList={utilsList}\n operator={operator}\n notifications={notifications}\n headerUtils={headerUtils}\n helpMenu={helpMenu}\n shareApp={shareApp}\n banners={banners}\n progress={progress}\n main={main}\n bottomTouchPanel={bottomTouchPanel}\n documentTabs={documentTabs}\n headerActions={headerActions}\n panel1={panel1}\n popover={popover}\n navId={navId}\n restProps={restProps}\n />\n ) : (\n <AppShell {...props} utilsList={utilsList} ref={ref} />\n )}\n {notificationsPopover}\n </>\n );\n});\n\nexport default AppShellMain;\n"]}