@atlaskit/navigation-system 0.182.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (790) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/components/skip-links/skip-links-container.js +25 -17
  3. package/dist/cjs/context/skip-links/skip-links-data-context.js +28 -10
  4. package/dist/cjs/context/skip-links/skip-links-provider.js +17 -6
  5. package/dist/cjs/ui/menu-item/menu-item.js +1 -1
  6. package/dist/cjs/ui/page-layout/root.js +11 -1
  7. package/dist/es2019/components/skip-links/skip-links-container.js +24 -16
  8. package/dist/es2019/context/skip-links/skip-links-data-context.js +25 -8
  9. package/dist/es2019/context/skip-links/skip-links-provider.js +17 -6
  10. package/dist/es2019/ui/menu-item/menu-item.js +1 -1
  11. package/dist/es2019/ui/page-layout/root.js +11 -1
  12. package/dist/esm/components/skip-links/skip-links-container.js +23 -15
  13. package/dist/esm/context/skip-links/skip-links-data-context.js +26 -9
  14. package/dist/esm/context/skip-links/skip-links-provider.js +16 -5
  15. package/dist/esm/ui/menu-item/menu-item.js +1 -1
  16. package/dist/esm/ui/page-layout/root.js +11 -1
  17. package/dist/types/components/skip-links/skip-links-container.d.ts +13 -8
  18. package/dist/types/context/skip-links/skip-links-data-context.d.ts +15 -1
  19. package/dist/types/context/skip-links/skip-links-provider.d.ts +9 -4
  20. package/dist/types-ts4.5/components/skip-links/skip-links-container.d.ts +13 -8
  21. package/dist/types-ts4.5/context/skip-links/skip-links-data-context.d.ts +15 -1
  22. package/dist/types-ts4.5/context/skip-links/skip-links-provider.d.ts +9 -4
  23. package/package.json +9 -10
  24. package/afm-cc/tsconfig.json +0 -78
  25. package/afm-dev-agents/tsconfig.json +0 -78
  26. package/afm-jira/tsconfig.json +0 -78
  27. package/afm-passionfruit/tsconfig.json +0 -78
  28. package/afm-post-office/tsconfig.json +0 -78
  29. package/afm-rovo-extension/tsconfig.json +0 -78
  30. package/afm-townsquare/tsconfig.json +0 -78
  31. package/afm-volt/tsconfig.json +0 -78
  32. package/build/tsconfig.json +0 -23
  33. package/docs/00-intro.tsx +0 -14
  34. package/examples/advanced-layout.tsx +0 -144
  35. package/examples/button-menu-item.tsx +0 -426
  36. package/examples/company-hub-mock.tsx +0 -219
  37. package/examples/composition.tsx +0 -424
  38. package/examples/confluence-mock.tsx +0 -381
  39. package/examples/constellation/common/mock-content.tsx +0 -39
  40. package/examples/constellation/common/mock-top-bar.tsx +0 -20
  41. package/examples/constellation/layout/custom-skip-links.tsx +0 -12
  42. package/examples/constellation/layout/custom-theming--parse-hex.tsx +0 -19
  43. package/examples/constellation/layout/custom-theming--parse-hsl.tsx +0 -22
  44. package/examples/constellation/layout/custom-theming--parse-rgb.tsx +0 -22
  45. package/examples/constellation/layout/custom-theming--parse-user-color.tsx +0 -22
  46. package/examples/constellation/layout/custom-theming--rgb-object.tsx +0 -21
  47. package/examples/constellation/layout/expand-side-nav.tsx +0 -17
  48. package/examples/constellation/layout/toggle-side-nav-keyboard-shortcut.tsx +0 -25
  49. package/examples/constellation/side-nav-items/actions-and-actions-on-hover.tsx +0 -153
  50. package/examples/constellation/side-nav-items/button-menu-item.tsx +0 -133
  51. package/examples/constellation/side-nav-items/common/global-app-icon-tile.tsx +0 -43
  52. package/examples/constellation/side-nav-items/common/mock-side-nav.tsx +0 -18
  53. package/examples/constellation/side-nav-items/container-avatar.tsx +0 -32
  54. package/examples/constellation/side-nav-items/elem-after.tsx +0 -60
  55. package/examples/constellation/side-nav-items/elem-before.tsx +0 -116
  56. package/examples/constellation/side-nav-items/expandable-menu-item-default-variant.tsx +0 -219
  57. package/examples/constellation/side-nav-items/expandable-menu-item-link-variant.tsx +0 -278
  58. package/examples/constellation/side-nav-items/flyout-menu-item.tsx +0 -156
  59. package/examples/constellation/side-nav-items/link-menu-item.tsx +0 -161
  60. package/examples/constellation/side-nav-items/menu-divider.tsx +0 -114
  61. package/examples/constellation/side-nav-items/menu-section.tsx +0 -177
  62. package/examples/constellation/side-nav-items/right-to-left.tsx +0 -144
  63. package/examples/constellation/side-nav-items/top-level-spacer.tsx +0 -82
  64. package/examples/constellation/side-nav-items/truncation.tsx +0 -58
  65. package/examples/constellation/top-nav-items/app-logo.tsx +0 -19
  66. package/examples/constellation/top-nav-items/custom-logo.tsx +0 -28
  67. package/examples/constellation/top-nav-items/custom-theming--buttons.tsx +0 -27
  68. package/examples/constellation/top-nav-items/custom-theming--logo.tsx +0 -27
  69. package/examples/constellation/top-nav-items/custom-theming--search.tsx +0 -28
  70. package/examples/constellation/top-nav-items/custom-title.tsx +0 -20
  71. package/examples/constellation/top-nav-items/end-item.tsx +0 -23
  72. package/examples/constellation/top-nav-items/top-nav-button.tsx +0 -34
  73. package/examples/constellation/top-nav-items/top-nav-end.tsx +0 -25
  74. package/examples/constellation/top-nav-items/top-nav-middle.tsx +0 -19
  75. package/examples/constellation/top-nav-items/top-nav-start.tsx +0 -31
  76. package/examples/drag-and-drop/jira/data.tsx +0 -320
  77. package/examples/drag-and-drop/jira/entry.tsx +0 -89
  78. package/examples/drag-and-drop/jira/filters/filter-move-modal.tsx +0 -171
  79. package/examples/drag-and-drop/jira/filters/filter-tree-utils.tsx +0 -134
  80. package/examples/drag-and-drop/jira/filters/filters-menu-item.tsx +0 -470
  81. package/examples/drag-and-drop/jira/for-you/for-you-menu-item.tsx +0 -74
  82. package/examples/drag-and-drop/jira/projects/project-tile.tsx +0 -37
  83. package/examples/drag-and-drop/jira/projects/project.tsx +0 -257
  84. package/examples/drag-and-drop/jira/projects/projects-menu-item.tsx +0 -120
  85. package/examples/drag-and-drop/jira/recent/recent-menu-item.tsx +0 -30
  86. package/examples/drag-and-drop/jira/reducer.tsx +0 -78
  87. package/examples/drag-and-drop/jira/registry.tsx +0 -52
  88. package/examples/drag-and-drop/jira/reorder-actions.tsx +0 -75
  89. package/examples/drag-and-drop/jira/shared-top-level-flyout.tsx +0 -144
  90. package/examples/drag-and-drop/jira/sidebar.tsx +0 -361
  91. package/examples/drag-and-drop/jira/starred/starred-menu-item.tsx +0 -29
  92. package/examples/drag-and-drop/jira/state-context.tsx +0 -34
  93. package/examples/drag-and-drop/jira/top-level-shared-more-menu.tsx +0 -99
  94. package/examples/drag-and-drop/sidebar-example-container.tsx +0 -38
  95. package/examples/drag-and-drop/simple.tsx +0 -653
  96. package/examples/drag-and-drop/standalone-jira-sidebar-centered.tsx +0 -27
  97. package/examples/drag-and-drop/standalone-jira-sidebar.tsx +0 -18
  98. package/examples/drag-and-drop-in-the-sidebar-flyout.tsx +0 -161
  99. package/examples/drag-and-drop-jira-scaling-vr.tsx +0 -25
  100. package/examples/drag-and-drop-jira-sidebar-centered.tsx +0 -1
  101. package/examples/drag-and-drop-jira-sidebar-standalone.tsx +0 -1
  102. package/examples/drag-and-drop-jira.tsx +0 -1
  103. package/examples/drag-and-drop.tsx +0 -1
  104. package/examples/expandable-menu-item.tsx +0 -775
  105. package/examples/flyout-menu-item-async-content.tsx +0 -118
  106. package/examples/flyout-menu-item-multiple.tsx +0 -180
  107. package/examples/flyout-menu-item.tsx +0 -269
  108. package/examples/images/200x20.png +0 -0
  109. package/examples/images/200x200.png +0 -0
  110. package/examples/images/20x20.png +0 -0
  111. package/examples/images/20x200.png +0 -0
  112. package/examples/images/cd.svg +0 -9
  113. package/examples/images/koala.png +0 -0
  114. package/examples/images/koala.svg +0 -9
  115. package/examples/images/money.svg +0 -9
  116. package/examples/images/science.svg +0 -20
  117. package/examples/interactive-layout.tsx +0 -286
  118. package/examples/layers-in-main.tsx +0 -294
  119. package/examples/legacy-var-testing.tsx +0 -173
  120. package/examples/link-menu-item.tsx +0 -383
  121. package/examples/main-content-border.tsx +0 -148
  122. package/examples/menu-item-avatar.tsx +0 -41
  123. package/examples/menu-item-conditional-tooltip.tsx +0 -304
  124. package/examples/menu-item-focus-ring-bleed.tsx +0 -50
  125. package/examples/menu-item-integration.tsx +0 -207
  126. package/examples/menu-item-narrow.tsx +0 -290
  127. package/examples/menu-item-scroll-into-view.tsx +0 -283
  128. package/examples/menu-items-deeply-nested.tsx +0 -330
  129. package/examples/menu-list.tsx +0 -62
  130. package/examples/menu-section.tsx +0 -78
  131. package/examples/page-layout-all-slots-banner-height-zero.tsx +0 -3
  132. package/examples/page-layout-all-slots-custom-sizes.tsx +0 -3
  133. package/examples/page-layout-all-slots-rtl.tsx +0 -3
  134. package/examples/page-layout-all-slots-scrollable.tsx +0 -3
  135. package/examples/page-layout-all-slots.tsx +0 -3
  136. package/examples/page-layout-aside-border.tsx +0 -149
  137. package/examples/page-layout-content-is-iframes.tsx +0 -3
  138. package/examples/page-layout-edge-case-absolute-positioned-collapsed-custom-sizes.tsx +0 -3
  139. package/examples/page-layout-edge-case-absolute-positioned-collapsed.tsx +0 -3
  140. package/examples/page-layout-edge-case-absolute-positioned-panel-visible.tsx +0 -3
  141. package/examples/page-layout-edge-case-absolute-positioned-resizable.tsx +0 -3
  142. package/examples/page-layout-edge-case-absolute-positioned.tsx +0 -3
  143. package/examples/page-layout-edge-case-using-legacy-vars.tsx +0 -3
  144. package/examples/page-layout-full-screen.tsx +0 -251
  145. package/examples/page-layout-implicit-rows.tsx +0 -33
  146. package/examples/page-layout-main-aside-scrollable.tsx +0 -3
  147. package/examples/page-layout-main-aside.tsx +0 -3
  148. package/examples/page-layout-panel-aside-default-widths.tsx +0 -241
  149. package/examples/page-layout-resizable-rtl.tsx +0 -3
  150. package/examples/page-layout-resizable.tsx +0 -3
  151. package/examples/page-layout-side-nav-collapse-shortcut.tsx +0 -47
  152. package/examples/page-layout-side-nav-content-scroll-with-sticky.tsx +0 -135
  153. package/examples/page-layout-side-nav-custom-width-greater-than-max.tsx +0 -3
  154. package/examples/page-layout-side-nav-custom-width-smaller-than-min.tsx +0 -3
  155. package/examples/page-layout-side-nav-main-aside-scrollable.tsx +0 -3
  156. package/examples/page-layout-side-nav-main-aside.tsx +0 -3
  157. package/examples/page-layout-side-nav-onboarding.tsx +0 -155
  158. package/examples/page-layout-side-nav-overflowing-children.tsx +0 -3
  159. package/examples/page-layout-side-nav-slots.tsx +0 -173
  160. package/examples/page-layout-side-nav-with-menu-items.tsx +0 -3
  161. package/examples/page-layout-top-bar-side-nav-main-aside-scrollable.tsx +0 -3
  162. package/examples/page-layout-top-bar-side-nav-main-aside.tsx +0 -3
  163. package/examples/page-layout-top-bar-side-nav-main-scrollable.tsx +0 -3
  164. package/examples/page-layout-top-bar-side-nav-main.tsx +0 -3
  165. package/examples/page-layout.tsx +0 -941
  166. package/examples/panel-splitter.tsx +0 -199
  167. package/examples/resizable-slots.tsx +0 -357
  168. package/examples/side-nav-flyout.tsx +0 -256
  169. package/examples/stand-alone-iframe.tsx +0 -23
  170. package/examples/temp-icons/app-switcher-legacy.tsx +0 -14
  171. package/examples/temp-icons/atlassian-intelligence.tsx +0 -14
  172. package/examples/temp-icons/help.tsx +0 -18
  173. package/examples/temp-icons/menu.tsx +0 -14
  174. package/examples/temp-icons/settings.tsx +0 -14
  175. package/examples/top-level-spacer.tsx +0 -55
  176. package/examples/top-nav-custom-profile-image.tsx +0 -71
  177. package/examples/top-nav-side-nav-collapsed.tsx +0 -74
  178. package/examples/top-nav-with-long-name.tsx +0 -63
  179. package/examples/top-nav-with-temp-nav-app-icon-app-logo.tsx +0 -65
  180. package/examples/top-nav-with-temp-nav-app-icon-custom-logo.tsx +0 -63
  181. package/examples/top-navigation-custom-logo.tsx +0 -108
  182. package/examples/top-navigation-stress.tsx +0 -244
  183. package/examples/top-navigation-themed-buttons.tsx +0 -63
  184. package/examples/top-navigation-theming-logged-out.tsx +0 -75
  185. package/examples/top-navigation-theming-with-picker.tsx +0 -128
  186. package/examples/top-navigation-theming.tsx +0 -197
  187. package/examples/top-navigation.tsx +0 -126
  188. package/examples/utils/example-utils.tsx +0 -14
  189. package/examples/utils/long-placeholder-content.tsx +0 -161
  190. package/examples/utils/mock-root.tsx +0 -19
  191. package/examples/utils/mock-search.tsx +0 -67
  192. package/src/__tests__/informational-vr-tests/__snapshots__/layering/layers-in-main-slot--desktop--platform-dst-nav4-layering-in-main-slot-fixes-false.png +0 -0
  193. package/src/__tests__/informational-vr-tests/__snapshots__/layering/layers-in-main-slot--desktop--platform-dst-nav4-layering-in-main-slot-fixes-true.png +0 -0
  194. package/src/__tests__/informational-vr-tests/__snapshots__/layering/layers-in-main-slot-short-viewport--desktop--platform-dst-nav4-layering-in-main-slot-fixes-false.png +0 -0
  195. package/src/__tests__/informational-vr-tests/__snapshots__/layering/layers-in-main-slot-short-viewport--desktop--platform-dst-nav4-layering-in-main-slot-fixes-true.png +0 -0
  196. package/src/__tests__/informational-vr-tests/__snapshots__/layering/side-nav-expanded-on-mobile--mobile.png +0 -0
  197. package/src/__tests__/informational-vr-tests/__snapshots__/layering/side-nav-expanded-on-mobile-without-panel--mobile.png +0 -0
  198. package/src/__tests__/informational-vr-tests/__snapshots__/menu-items-deeply-nested/side-nav-with-deeply-nested-menu-items---nested-menu-item-selected--default.png +0 -0
  199. package/src/__tests__/informational-vr-tests/__snapshots__/menu-items-deeply-nested/side-nav-with-deeply-nested-menu-items---scrolled-to-the-end--default.png +0 -0
  200. package/src/__tests__/informational-vr-tests/__snapshots__/menu-items-deeply-nested/side-nav-with-deeply-nested-menu-items--default.png +0 -0
  201. package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop---hover-bug--desktop-chrome.png +0 -0
  202. package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop---hover-bug--desktop-firefox.png +0 -0
  203. package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop---hover-bug--desktop-webkit.png +0 -0
  204. package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop--desktop-chrome.png +0 -0
  205. package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop--desktop-firefox.png +0 -0
  206. package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop--desktop-webkit.png +0 -0
  207. package/src/__tests__/informational-vr-tests/layering.vr.tsx +0 -76
  208. package/src/__tests__/informational-vr-tests/menu-items-deeply-nested.vr.tsx +0 -33
  209. package/src/__tests__/informational-vr-tests/sidebar-drag-and-drop.vr.tsx +0 -100
  210. package/src/__tests__/playwright/drag-and-drop-in-the-sidebar-flyout.spec.tsx +0 -235
  211. package/src/__tests__/playwright/expandable-menu-item.spec.tsx +0 -20
  212. package/src/__tests__/playwright/flyout-menu-item.spec.tsx +0 -22
  213. package/src/__tests__/playwright/legacy-vars.spec.tsx +0 -298
  214. package/src/__tests__/playwright/menu-item-in-sidebar-drag-and-drop.spec.tsx +0 -70
  215. package/src/__tests__/playwright/page-layout.spec.tsx +0 -23
  216. package/src/__tests__/playwright/panel.spec.tsx +0 -241
  217. package/src/__tests__/playwright/resizing.spec.tsx +0 -541
  218. package/src/__tests__/playwright/side-nav-flyout.spec.tsx +0 -223
  219. package/src/__tests__/playwright/side-nav-responsiveness.spec.tsx +0 -208
  220. package/src/__tests__/playwright/skip-links.spec.tsx +0 -111
  221. package/src/__tests__/playwright/top-nav-end.spec.tsx +0 -96
  222. package/src/__tests__/vr-tests/__snapshots__/a11y-scaling/app--desktop.png +0 -0
  223. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-no-panel-vr--desktop-large.png +0 -0
  224. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-no-panel-vr--desktop.png +0 -0
  225. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-no-panel-vr--mobile.png +0 -0
  226. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-scrolled-vr--desktop-large.png +0 -0
  227. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-scrolled-vr--desktop.png +0 -0
  228. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-scrolled-vr--mobile.png +0 -0
  229. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--desktop-large-splitter.png +0 -0
  230. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--desktop-large.png +0 -0
  231. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--desktop.png +0 -0
  232. package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--mobile.png +0 -0
  233. package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-no-panel-vr--desktop-large.png +0 -0
  234. package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-no-panel-vr--desktop.png +0 -0
  235. package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-no-panel-vr--mobile.png +0 -0
  236. package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-vr--desktop-large.png +0 -0
  237. package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-vr--desktop.png +0 -0
  238. package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-vr--mobile.png +0 -0
  239. package/src/__tests__/vr-tests/__snapshots__/skip-links/skip-links--light-mode.png +0 -0
  240. package/src/__tests__/vr-tests/a11y-scaling.vr.tsx +0 -12
  241. package/src/__tests__/vr-tests/layering.vr.tsx +0 -82
  242. package/src/__tests__/vr-tests/skip-links.vr.tsx +0 -14
  243. package/src/components/__tests__/unit/badge-container.test.tsx +0 -62
  244. package/src/components/__tests__/unit/list.test.tsx +0 -74
  245. package/src/components/badge-container.tsx +0 -72
  246. package/src/components/forward-ref-with-generic.tsx +0 -8
  247. package/src/components/list-item.tsx +0 -39
  248. package/src/components/list.tsx +0 -44
  249. package/src/components/skip-links/__tests__/unit/skip-links-container.test.tsx +0 -411
  250. package/src/components/skip-links/skip-link.tsx +0 -140
  251. package/src/components/skip-links/skip-links-container.tsx +0 -112
  252. package/src/context/skip-links/skip-links-context.tsx +0 -74
  253. package/src/context/skip-links/skip-links-data-context.tsx +0 -41
  254. package/src/context/skip-links/skip-links-provider.tsx +0 -74
  255. package/src/context/skip-links/types.tsx +0 -29
  256. package/src/context/top-nav-start/top-nav-start-context-provider.tsx +0 -26
  257. package/src/context/top-nav-start/top-nav-start-context.tsx +0 -21
  258. package/src/entry-points/experimental/color-utils/parse-hex.tsx +0 -1
  259. package/src/entry-points/experimental/color-utils/parse-hsl.tsx +0 -1
  260. package/src/entry-points/experimental/color-utils/parse-rgb.tsx +0 -1
  261. package/src/entry-points/experimental/color-utils/parse-user-color.tsx +0 -1
  262. package/src/entry-points/experimental/top-nav-button.tsx +0 -6
  263. package/src/entry-points/experimental/use-has-custom-theme.tsx +0 -1
  264. package/src/entry-points/experimental/use-legacy-search-theme.tsx +0 -1
  265. package/src/entry-points/layout/aside.tsx +0 -1
  266. package/src/entry-points/layout/banner.tsx +0 -1
  267. package/src/entry-points/layout/main.tsx +0 -7
  268. package/src/entry-points/layout/panel-splitter.tsx +0 -3
  269. package/src/entry-points/layout/panel.tsx +0 -1
  270. package/src/entry-points/layout/root.tsx +0 -1
  271. package/src/entry-points/layout/side-nav.tsx +0 -7
  272. package/src/entry-points/layout/skip-links.tsx +0 -2
  273. package/src/entry-points/layout/top-nav.tsx +0 -4
  274. package/src/entry-points/side-nav-items/button-menu-item.tsx +0 -3
  275. package/src/entry-points/side-nav-items/container-avatar.tsx +0 -1
  276. package/src/entry-points/side-nav-items/drag-and-drop/drag-preview.tsx +0 -1
  277. package/src/entry-points/side-nav-items/drag-and-drop/drop-indicator.tsx +0 -5
  278. package/src/entry-points/side-nav-items/drag-and-drop/group-drop-indicator.tsx +0 -1
  279. package/src/entry-points/side-nav-items/drag-and-drop/hitbox.tsx +0 -7
  280. package/src/entry-points/side-nav-items/drag-and-drop/use-menu-item-drag-and-drop.tsx +0 -4
  281. package/src/entry-points/side-nav-items/expandable-menu-item.tsx +0 -13
  282. package/src/entry-points/side-nav-items/flyout-menu-item.tsx +0 -13
  283. package/src/entry-points/side-nav-items/link-menu-item.tsx +0 -3
  284. package/src/entry-points/side-nav-items/menu-list-item.tsx +0 -1
  285. package/src/entry-points/side-nav-items/menu-list.tsx +0 -1
  286. package/src/entry-points/side-nav-items/menu-section.tsx +0 -3
  287. package/src/entry-points/side-nav-items/top-level-spacer.tsx +0 -1
  288. package/src/entry-points/top-nav-items/create-button.tsx +0 -1
  289. package/src/entry-points/top-nav-items/custom-title.tsx +0 -1
  290. package/src/entry-points/top-nav-items/help.tsx +0 -1
  291. package/src/entry-points/top-nav-items/index.tsx +0 -14
  292. package/src/entry-points/top-nav-items/log-in.tsx +0 -1
  293. package/src/entry-points/top-nav-items/notifications.tsx +0 -1
  294. package/src/entry-points/top-nav-items/profile.tsx +0 -1
  295. package/src/entry-points/top-nav-items/settings.tsx +0 -1
  296. package/src/index.tsx +0 -74
  297. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/long-content-after-short-skeleton--default.png +0 -0
  298. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/long-skeleton--default.png +0 -0
  299. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/short-content-after-long-skeleton--default.png +0 -0
  300. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/short-skeleton--default.png +0 -0
  301. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/button-menu-item---disabled---pressed--default.png +0 -0
  302. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/button-menu-item---pressed--default.png +0 -0
  303. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/expandable-menu-item---not-selectable---pressed--default.png +0 -0
  304. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/expandable-menu-item---selectable---pressed--default.png +0 -0
  305. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/expandable-menu-item---selected---pressed--default.png +0 -0
  306. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/flyout-menu-item---pressed--default.png +0 -0
  307. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/flyout-menu-item---selected---pressed--default.png +0 -0
  308. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---pressed--default.png +0 -0
  309. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---scroll-into-view-behavior--desktop-chrome.png +0 -0
  310. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---scroll-into-view-behavior--desktop-firefox.png +0 -0
  311. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---scroll-into-view-behavior--desktop-safari.png +0 -0
  312. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---selected---pressed--default.png +0 -0
  313. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-click-target---desktop-chrome.png +0 -0
  314. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-click-target---desktop-firefox.png +0 -0
  315. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-click-target---desktop-webkit.png +0 -0
  316. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-hover---desktop-chrome.png +0 -0
  317. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-hover---desktop-firefox.png +0 -0
  318. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-hover---desktop-webkit.png +0 -0
  319. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-too-far-back---desktop-chrome.png +0 -0
  320. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-too-far-back---desktop-firefox.png +0 -0
  321. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item-increased-hitbox/increasing-hitbox-for-nested-items-too-far-back---desktop-webkit.png +0 -0
  322. package/src/ui/menu-item/__tests__/informational-vr-tests/flyout-menu-item-async-content.vr.tsx +0 -33
  323. package/src/ui/menu-item/__tests__/informational-vr-tests/menu-item-increased-hitbox.vr.tsx +0 -79
  324. package/src/ui/menu-item/__tests__/informational-vr-tests/menu-item.vr.tsx +0 -151
  325. package/src/ui/menu-item/__tests__/playwright/flyout-menu-item.spec.tsx +0 -38
  326. package/src/ui/menu-item/__tests__/playwright/scroll-into-view.spec.tsx +0 -91
  327. package/src/ui/menu-item/__tests__/unit/_util.tsx +0 -40
  328. package/src/ui/menu-item/__tests__/unit/expandable-menu-item.test.tsx +0 -1119
  329. package/src/ui/menu-item/__tests__/unit/flyout-menu-item.test.tsx +0 -545
  330. package/src/ui/menu-item/__tests__/unit/menu-item.test.tsx +0 -649
  331. package/src/ui/menu-item/__tests__/unit/top-level-spacer.test.tsx +0 -94
  332. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item--desktop-chrome.png +0 -0
  333. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item--desktop-webkit.png +0 -0
  334. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-combine--desktop-chrome.png +0 -0
  335. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-combine--desktop-webkit.png +0 -0
  336. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-after--desktop-chrome.png +0 -0
  337. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-after--desktop-webkit.png +0 -0
  338. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-before--desktop-chrome.png +0 -0
  339. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-before--desktop-webkit.png +0 -0
  340. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-combine--desktop-chrome.png +0 -0
  341. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-combine--desktop-webkit.png +0 -0
  342. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-after--desktop-chrome.png +0 -0
  343. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-after--desktop-webkit.png +0 -0
  344. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-before--desktop-chrome.png +0 -0
  345. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-before--desktop-webkit.png +0 -0
  346. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-trigger--desktop-chrome.png +0 -0
  347. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-trigger--desktop-webkit.png +0 -0
  348. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-combine--desktop-chrome.png +0 -0
  349. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-combine--desktop-webkit.png +0 -0
  350. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-after--desktop-chrome.png +0 -0
  351. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-after--desktop-webkit.png +0 -0
  352. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-before--desktop-chrome.png +0 -0
  353. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-before--desktop-webkit.png +0 -0
  354. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-trigger--desktop-chrome.png +0 -0
  355. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-trigger--desktop-webkit.png +0 -0
  356. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item--desktop-chrome.png +0 -0
  357. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item--desktop-webkit.png +0 -0
  358. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine--desktop-chrome.png +0 -0
  359. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine--desktop-webkit.png +0 -0
  360. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine-blocked--desktop-chrome.png +0 -0
  361. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine-blocked--desktop-webkit.png +0 -0
  362. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after--desktop-chrome.png +0 -0
  363. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after--desktop-webkit.png +0 -0
  364. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after-blocked--desktop-chrome.png +0 -0
  365. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after-blocked--desktop-webkit.png +0 -0
  366. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before--desktop-chrome.png +0 -0
  367. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before--desktop-webkit.png +0 -0
  368. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before-blocked--desktop-chrome.png +0 -0
  369. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before-blocked--desktop-webkit.png +0 -0
  370. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---action-focused--default.png +0 -0
  371. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---action-hovered--default.png +0 -0
  372. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---default-state--default.png +0 -0
  373. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---elembefore-focused--default.png +0 -0
  374. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---elembefore-hovered--default.png +0 -0
  375. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---menu-item-focused--default.png +0 -0
  376. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---menu-item-hovered--default.png +0 -0
  377. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---selected-with-dropdown-action-open--default.png +0 -0
  378. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---with-dropdown-action-open--default.png +0 -0
  379. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---with-dropdown-action-open-and-hovered--default.png +0 -0
  380. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-collapsed-with-selected-child--default.png +0 -0
  381. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-expanded-with-actions-on-hover--default.png +0 -0
  382. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-expanded-with-actions-on-hover-and-elem-after--default.png +0 -0
  383. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-expanded-with-elem-after--default.png +0 -0
  384. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-nested--default.png +0 -0
  385. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-nested-rtl--default.png +0 -0
  386. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-selected--default.png +0 -0
  387. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-selected-with-icon--default.png +0 -0
  388. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions--default.png +0 -0
  389. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover---hovered--default.png +0 -0
  390. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover---selected-and-hovered--default.png +0 -0
  391. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover--default.png +0 -0
  392. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover-and-elem-after---hovered--default.png +0 -0
  393. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover-and-elem-after--default.png +0 -0
  394. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/a-flyout-menu-with-a-nested-popup-using-shouldrendertoparent---default.png +0 -0
  395. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-default-open-example--default.png +0 -0
  396. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-default-open-rtl--default.png +0 -0
  397. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-default-open-selected-vr--default.png +0 -0
  398. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-example--default.png +0 -0
  399. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-rtl--default.png +0 -0
  400. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled---hovered--desktop-chrome.png +0 -0
  401. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled---hovered--desktop-firefox.png +0 -0
  402. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled---hovered--desktop-webkit.png +0 -0
  403. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled--desktop-chrome.png +0 -0
  404. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled--desktop-firefox.png +0 -0
  405. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled--desktop-webkit.png +0 -0
  406. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled-with-actions--desktop-chrome.png +0 -0
  407. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled-with-actions--desktop-firefox.png +0 -0
  408. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled-with-actions--desktop-webkit.png +0 -0
  409. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---with-dropdown-action-open--desktop-chrome.png +0 -0
  410. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---with-dropdown-action-open--desktop-firefox.png +0 -0
  411. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---with-dropdown-action-open--desktop-webkit.png +0 -0
  412. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-example--desktop-chrome.png +0 -0
  413. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-example--desktop-firefox.png +0 -0
  414. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-example--desktop-webkit.png +0 -0
  415. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-rtlexample--desktop-chrome.png +0 -0
  416. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-rtlexample--desktop-firefox.png +0 -0
  417. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-rtlexample--desktop-webkit.png +0 -0
  418. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-actions-on-hover-appearing-on-focus--desktop-chrome.png +0 -0
  419. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-actions-on-hover-appearing-on-focus--desktop-firefox.png +0 -0
  420. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-actions-on-hover-appearing-on-focus--desktop-webkit.png +0 -0
  421. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-actions-on-hover-appearing-on-hover--desktop-chrome.png +0 -0
  422. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-actions-on-hover-appearing-on-hover--desktop-firefox.png +0 -0
  423. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-actions-on-hover-appearing-on-hover--desktop-webkit.png +0 -0
  424. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-elem-after-and-hovered--desktop-chrome.png +0 -0
  425. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-elem-after-and-hovered--desktop-firefox.png +0 -0
  426. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-elem-after-and-hovered--desktop-webkit.png +0 -0
  427. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-popup--desktop-chrome.png +0 -0
  428. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-popup--desktop-firefox.png +0 -0
  429. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-popup--desktop-webkit.png +0 -0
  430. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item---with-dropdown-action-open--desktop-chrome.png +0 -0
  431. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item---with-dropdown-action-open--desktop-firefox.png +0 -0
  432. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item---with-dropdown-action-open--desktop-webkit.png +0 -0
  433. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-bleed--desktop-chrome.png +0 -0
  434. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-bleed--desktop-firefox.png +0 -0
  435. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-bleed--desktop-webkit.png +0 -0
  436. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-example--desktop-chrome.png +0 -0
  437. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-example--desktop-firefox.png +0 -0
  438. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-example--desktop-webkit.png +0 -0
  439. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-rtlexample--desktop-chrome.png +0 -0
  440. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-rtlexample--desktop-firefox.png +0 -0
  441. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-rtlexample--desktop-webkit.png +0 -0
  442. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-actions-on-hover-appearing-on-focus--desktop-chrome.png +0 -0
  443. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-actions-on-hover-appearing-on-focus--desktop-firefox.png +0 -0
  444. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-actions-on-hover-appearing-on-focus--desktop-webkit.png +0 -0
  445. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-actions-on-hover-appearing-on-hover--desktop-chrome.png +0 -0
  446. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-actions-on-hover-appearing-on-hover--desktop-firefox.png +0 -0
  447. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-actions-on-hover-appearing-on-hover--desktop-webkit.png +0 -0
  448. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-elem-after-and-hovered--desktop-chrome.png +0 -0
  449. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-elem-after-and-hovered--desktop-firefox.png +0 -0
  450. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-elem-after-and-hovered--desktop-webkit.png +0 -0
  451. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-item-avatar-example--desktop-chrome.png +0 -0
  452. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-item-avatar-example--desktop-firefox.png +0 -0
  453. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-item-avatar-example--desktop-webkit.png +0 -0
  454. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-items-in-a-narrow-container--desktop-chrome.png +0 -0
  455. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-items-in-a-narrow-container--desktop-firefox.png +0 -0
  456. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-items-in-a-narrow-container--desktop-webkit.png +0 -0
  457. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-long---description-long---default.png +0 -0
  458. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-long---description-none---default.png +0 -0
  459. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-long---description-short---default.png +0 -0
  460. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-short---description-long---default.png +0 -0
  461. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-short---description-none---default.png +0 -0
  462. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-short---description-short---default.png +0 -0
  463. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item-add-action-button--default.png +0 -0
  464. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item-with-tooltip-disabled--default.png +0 -0
  465. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/expandable-menu-item--content-long---default.png +0 -0
  466. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/expandable-menu-item--content-short---default.png +0 -0
  467. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/expandable-menu-item-with-tooltip-disabled--default.png +0 -0
  468. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/flyout-menu-item--content-long---default.png +0 -0
  469. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/flyout-menu-item--content-short---default.png +0 -0
  470. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/flyout-menu-item-with-tooltip-disabled--default.png +0 -0
  471. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-long---description-long---default.png +0 -0
  472. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-long---description-none---default.png +0 -0
  473. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-long---description-short---default.png +0 -0
  474. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-short---description-long---default.png +0 -0
  475. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-short---description-none---default.png +0 -0
  476. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-short---description-short---default.png +0 -0
  477. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item-with-tooltip-disabled--default.png +0 -0
  478. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/menu-item-button-with-nested-children--default.png +0 -0
  479. package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/top-level-spacer/top-level-spacer-example--default.png +0 -0
  480. package/src/ui/menu-item/__tests__/vr-tests/drag-and-drop.vr.tsx +0 -172
  481. package/src/ui/menu-item/__tests__/vr-tests/expandable.vr.tsx +0 -248
  482. package/src/ui/menu-item/__tests__/vr-tests/flyout-menu-item.vr.tsx +0 -46
  483. package/src/ui/menu-item/__tests__/vr-tests/menu-item-conditional-tooltip.vr.tsx +0 -312
  484. package/src/ui/menu-item/__tests__/vr-tests/menu-item.vr.tsx +0 -210
  485. package/src/ui/menu-item/__tests__/vr-tests/top-level-spacer.vr.tsx +0 -17
  486. package/src/ui/menu-item/button-menu-item.tsx +0 -87
  487. package/src/ui/menu-item/constants.tsx +0 -15
  488. package/src/ui/menu-item/container-avatar.tsx +0 -39
  489. package/src/ui/menu-item/drag-and-drop/drag-preview.tsx +0 -98
  490. package/src/ui/menu-item/drag-and-drop/drop-indicator.tsx +0 -11
  491. package/src/ui/menu-item/drag-and-drop/group-drop-indicator.tsx +0 -7
  492. package/src/ui/menu-item/drag-and-drop/hitbox.tsx +0 -13
  493. package/src/ui/menu-item/drag-and-drop/use-menu-item-drag-and-drop.tsx +0 -243
  494. package/src/ui/menu-item/drag-handle.tsx +0 -42
  495. package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-content.tsx +0 -84
  496. package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-context.tsx +0 -61
  497. package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-level-context.tsx +0 -9
  498. package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-trigger.tsx +0 -334
  499. package/src/ui/menu-item/expandable-menu-item/expandable-menu-item.tsx +0 -114
  500. package/src/ui/menu-item/flyout-menu-item/flyout-menu-item-content.tsx +0 -188
  501. package/src/ui/menu-item/flyout-menu-item/flyout-menu-item-context.tsx +0 -19
  502. package/src/ui/menu-item/flyout-menu-item/flyout-menu-item-trigger.tsx +0 -124
  503. package/src/ui/menu-item/flyout-menu-item/flyout-menu-item.tsx +0 -98
  504. package/src/ui/menu-item/link-menu-item.tsx +0 -119
  505. package/src/ui/menu-item/menu-item-signals.tsx +0 -6
  506. package/src/ui/menu-item/menu-item.tsx +0 -848
  507. package/src/ui/menu-item/menu-list-item.tsx +0 -12
  508. package/src/ui/menu-item/menu-list.tsx +0 -12
  509. package/src/ui/menu-item/top-level-spacer.tsx +0 -49
  510. package/src/ui/menu-item/types.tsx +0 -181
  511. package/src/ui/menu-item/use-scroll-menu-item-into-view.tsx +0 -78
  512. package/src/ui/menu-section/__tests__/unit/menu-section.test.tsx +0 -96
  513. package/src/ui/menu-section/__tests__/vr-tests/__snapshots__/divider/divider--default.png +0 -0
  514. package/src/ui/menu-section/__tests__/vr-tests/__snapshots__/menu-section/menu-section-example--default.png +0 -0
  515. package/src/ui/menu-section/__tests__/vr-tests/divider.vr.tsx +0 -14
  516. package/src/ui/menu-section/__tests__/vr-tests/menu-section.vr.tsx +0 -14
  517. package/src/ui/menu-section/divider.tsx +0 -33
  518. package/src/ui/menu-section/menu-section-context.tsx +0 -15
  519. package/src/ui/menu-section/menu-section-heading.tsx +0 -43
  520. package/src/ui/menu-section/menu-section.tsx +0 -70
  521. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/page-layout/large-panel-default-width-on-mobile--desktop--platform-design-system-nav4-panel-mobile-width-fix-false.png +0 -0
  522. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/page-layout/large-panel-default-width-on-mobile--desktop--platform-design-system-nav4-panel-mobile-width-fix-true.png +0 -0
  523. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/page-layout/small-panel-default-width-on-mobile--desktop--platform-design-system-nav4-panel-mobile-width-fix-false.png +0 -0
  524. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/page-layout/small-panel-default-width-on-mobile--desktop--platform-design-system-nav4-panel-mobile-width-fix-true.png +0 -0
  525. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-false-platform-design-system-nav4-sidenav-border-false.png +0 -0
  526. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-false-platform-design-system-nav4-sidenav-border-true.png +0 -0
  527. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-true-platform-design-system-nav4-sidenav-border-false.png +0 -0
  528. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-true-platform-design-system-nav4-sidenav-border-true.png +0 -0
  529. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-flyout--default--platform-design-system-nav4-panel-default-border-false-platform-design-system-nav4-sidenav-border-false.png +0 -0
  530. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-flyout--default--platform-design-system-nav4-panel-default-border-false-platform-design-system-nav4-sidenav-border-true.png +0 -0
  531. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-flyout--default--platform-design-system-nav4-panel-default-border-true-platform-design-system-nav4-sidenav-border-false.png +0 -0
  532. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/above-md-breakpoint---side-nav-flyout--default--platform-design-system-nav4-panel-default-border-true-platform-design-system-nav4-sidenav-border-true.png +0 -0
  533. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/below-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-false-platform-design-system-nav4-sidenav-border-false.png +0 -0
  534. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/below-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-false-platform-design-system-nav4-sidenav-border-true.png +0 -0
  535. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/below-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-true-platform-design-system-nav4-sidenav-border-false.png +0 -0
  536. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/slot-borders/below-md-breakpoint---side-nav-expanded--default--platform-design-system-nav4-panel-default-border-true-platform-design-system-nav4-sidenav-border-true.png +0 -0
  537. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-lg---composition--firefox.png +0 -0
  538. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-lg---with-min-widths--firefox.png +0 -0
  539. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-lg--firefox.png +0 -0
  540. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-md---composition--firefox.png +0 -0
  541. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-md---with-min-widths--firefox.png +0 -0
  542. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-md--firefox.png +0 -0
  543. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-sm---with-min-widths--firefox.png +0 -0
  544. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-sm--firefox.png +0 -0
  545. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xl---composition--firefox.png +0 -0
  546. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xl---with-min-widths--firefox.png +0 -0
  547. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xl--firefox.png +0 -0
  548. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xs---with-min-widths--firefox.png +0 -0
  549. package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xs--firefox.png +0 -0
  550. package/src/ui/page-layout/__tests__/informational-vr-tests/page-layout.vr.tsx +0 -53
  551. package/src/ui/page-layout/__tests__/informational-vr-tests/slot-borders.vr.tsx +0 -54
  552. package/src/ui/page-layout/__tests__/informational-vr-tests/top-nav.vr.tsx +0 -170
  553. package/src/ui/page-layout/__tests__/unit/_test-utils.tsx +0 -185
  554. package/src/ui/page-layout/__tests__/unit/aside.test.tsx +0 -21
  555. package/src/ui/page-layout/__tests__/unit/banner.test.tsx +0 -31
  556. package/src/ui/page-layout/__tests__/unit/get-width.test.tsx +0 -12
  557. package/src/ui/page-layout/__tests__/unit/hoist-utils.test.tsx +0 -85
  558. package/src/ui/page-layout/__tests__/unit/page-layout.test.tsx +0 -300
  559. package/src/ui/page-layout/__tests__/unit/panel-splitter-and-suspense.test.tsx +0 -43
  560. package/src/ui/page-layout/__tests__/unit/panel-splitter.test.tsx +0 -885
  561. package/src/ui/page-layout/__tests__/unit/panel.test.tsx +0 -63
  562. package/src/ui/page-layout/__tests__/unit/react-safety.test.tsx +0 -30
  563. package/src/ui/page-layout/__tests__/unit/resizing.test.tsx +0 -714
  564. package/src/ui/page-layout/__tests__/unit/side-nav-flyout.test.tsx +0 -1154
  565. package/src/ui/page-layout/__tests__/unit/side-nav.test.tsx +0 -771
  566. package/src/ui/page-layout/__tests__/unit/sticky-header.test.tsx +0 -43
  567. package/src/ui/page-layout/__tests__/unit/top-nav-end.test.tsx +0 -132
  568. package/src/ui/page-layout/__tests__/unit/top-nav.test.tsx +0 -28
  569. package/src/ui/page-layout/__tests__/unit/use-expand-side-nav.test.tsx +0 -278
  570. package/src/ui/page-layout/__tests__/unit/use-toggle-side-nav.test.tsx +0 -233
  571. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled--desktop.png +0 -0
  572. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled--mobile.png +0 -0
  573. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled-side-nav-collapsed--desktop.png +0 -0
  574. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled-side-nav-collapsed--mobile.png +0 -0
  575. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled--desktop.png +0 -0
  576. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled--mobile.png +0 -0
  577. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-full-screen-mode--desktop.png +0 -0
  578. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-full-screen-mode--mobile.png +0 -0
  579. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-side-nav-collapsed--desktop.png +0 -0
  580. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-side-nav-collapsed--mobile.png +0 -0
  581. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots--desktop.png +0 -0
  582. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots--mobile.png +0 -0
  583. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-banner-height-zero--desktop.png +0 -0
  584. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-banner-height-zero--mobile.png +0 -0
  585. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-custom-sizes--desktop.png +0 -0
  586. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-custom-sizes--mobile.png +0 -0
  587. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-rtl--desktop.png +0 -0
  588. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-rtl--mobile.png +0 -0
  589. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-scrollable--desktop.png +0 -0
  590. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-scrollable--mobile.png +0 -0
  591. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/aside-composed-with-border--desktop.png +0 -0
  592. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/aside-composed-with-border--mobile.png +0 -0
  593. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned--desktop.png +0 -0
  594. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned--mobile.png +0 -0
  595. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-collapsed--desktop.png +0 -0
  596. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-collapsed--mobile.png +0 -0
  597. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-custom-sizes--desktop.png +0 -0
  598. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-custom-sizes--mobile.png +0 -0
  599. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-panel-visible--desktop.png +0 -0
  600. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-panel-visible--mobile.png +0 -0
  601. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-resizable--desktop.png +0 -0
  602. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-resizable--mobile.png +0 -0
  603. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-using-legacy-vars--desktop.png +0 -0
  604. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-using-legacy-vars--mobile.png +0 -0
  605. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside--desktop.png +0 -0
  606. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside--mobile.png +0 -0
  607. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside-scrollable--desktop.png +0 -0
  608. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside-scrollable--mobile.png +0 -0
  609. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/page-layout-implicit-rows--desktop.png +0 -0
  610. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/page-layout-implicit-rows--mobile.png +0 -0
  611. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---default-widths--desktop.png +0 -0
  612. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---default-widths--mobile.png +0 -0
  613. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---zero-widths--desktop.png +0 -0
  614. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---zero-widths--mobile.png +0 -0
  615. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-default-background-color--desktop.png +0 -0
  616. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-default-background-color--mobile.png +0 -0
  617. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-should-have-correct-width-when-there-is-no-sidenav-mounted--desktop.png +0 -0
  618. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/resizable--desktop.png +0 -0
  619. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-content-slot---scroll-with-sticky-child--desktop.png +0 -0
  620. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-custom-width-greater-than-max-width--desktop.png +0 -0
  621. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-custom-width-smaller-than-min-width--desktop.png +0 -0
  622. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside--desktop.png +0 -0
  623. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside--mobile.png +0 -0
  624. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside-scrollable--desktop.png +0 -0
  625. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside-scrollable--mobile.png +0 -0
  626. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-overflowing-children--desktop.png +0 -0
  627. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-slots--desktop.png +0 -0
  628. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-with-menu-items--desktop.png +0 -0
  629. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-with-menu-items--mobile.png +0 -0
  630. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main--desktop.png +0 -0
  631. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main--mobile.png +0 -0
  632. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside--desktop.png +0 -0
  633. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside--mobile.png +0 -0
  634. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside-scrollable--desktop.png +0 -0
  635. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside-scrollable--mobile.png +0 -0
  636. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-scrollable--desktop.png +0 -0
  637. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-scrollable--mobile.png +0 -0
  638. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/focused-panel-splitter-with-position-end--default.png +0 -0
  639. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/focused-panel-splitter-with-position-start--default.png +0 -0
  640. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/hovered-panel-splitter-with-position-end--default--platform-nav4-panel-splitter-keyboard-a11y-false.png +0 -0
  641. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/hovered-panel-splitter-with-position-end--default--platform-nav4-panel-splitter-keyboard-a11y-true.png +0 -0
  642. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/hovered-panel-splitter-with-position-start--default--platform-nav4-panel-splitter-keyboard-a11y-false.png +0 -0
  643. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/hovered-panel-splitter-with-position-start--default--platform-nav4-panel-splitter-keyboard-a11y-true.png +0 -0
  644. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed--desktop.png +0 -0
  645. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed--mobile.png +0 -0
  646. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-toggle-button-hovered--desktop.png +0 -0
  647. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-toggle-button-hovered--mobile.png +0 -0
  648. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-with-open-child-layer--desktop.png +0 -0
  649. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-with-open-child-layer--mobile.png +0 -0
  650. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-with-open-child-layer-toggle-button-hovered--desktop.png +0 -0
  651. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-with-open-child-layer-toggle-button-hovered--mobile.png +0 -0
  652. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded--desktop.png +0 -0
  653. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded--mobile.png +0 -0
  654. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-toggle-button-hovered--desktop.png +0 -0
  655. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-toggle-button-hovered--mobile.png +0 -0
  656. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-with-open-child-layer--desktop.png +0 -0
  657. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-with-open-child-layer--mobile.png +0 -0
  658. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-with-open-child-layer-toggle-button-hovered--desktop.png +0 -0
  659. package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-with-open-child-layer-toggle-button-hovered--mobile.png +0 -0
  660. package/src/ui/page-layout/__tests__/vr-tests/main-content-border.vr.tsx +0 -47
  661. package/src/ui/page-layout/__tests__/vr-tests/page-layout.vr.tsx +0 -266
  662. package/src/ui/page-layout/__tests__/vr-tests/panel-splitter.vr.tsx +0 -72
  663. package/src/ui/page-layout/__tests__/vr-tests/side-nav-flyout.vr.tsx +0 -170
  664. package/src/ui/page-layout/aside.tsx +0 -210
  665. package/src/ui/page-layout/banner.tsx +0 -91
  666. package/src/ui/page-layout/constants.tsx +0 -56
  667. package/src/ui/page-layout/hoist-slot-sizes-context.tsx +0 -7
  668. package/src/ui/page-layout/hoist-utils.tsx +0 -64
  669. package/src/ui/page-layout/id-utils.tsx +0 -33
  670. package/src/ui/page-layout/main/main-sticky-header.tsx +0 -45
  671. package/src/ui/page-layout/main/main.tsx +0 -93
  672. package/src/ui/page-layout/panel-splitter/context.tsx +0 -60
  673. package/src/ui/page-layout/panel-splitter/convert-resize-bound-to-pixels.tsx +0 -20
  674. package/src/ui/page-layout/panel-splitter/get-percentage-within-pixel-bounds.tsx +0 -35
  675. package/src/ui/page-layout/panel-splitter/get-width.tsx +0 -33
  676. package/src/ui/page-layout/panel-splitter/keyboard-resize-manager.tsx +0 -89
  677. package/src/ui/page-layout/panel-splitter/panel-splitter.tsx +0 -560
  678. package/src/ui/page-layout/panel-splitter/provider.tsx +0 -66
  679. package/src/ui/page-layout/panel-splitter/types.tsx +0 -25
  680. package/src/ui/page-layout/panel.tsx +0 -308
  681. package/src/ui/page-layout/root.tsx +0 -162
  682. package/src/ui/page-layout/side-nav/element-context.tsx +0 -18
  683. package/src/ui/page-layout/side-nav/flyout-close-delay-ms.tsx +0 -12
  684. package/src/ui/page-layout/side-nav/side-nav-content.tsx +0 -57
  685. package/src/ui/page-layout/side-nav/side-nav-footer.tsx +0 -48
  686. package/src/ui/page-layout/side-nav/side-nav-header.tsx +0 -32
  687. package/src/ui/page-layout/side-nav/side-nav.tsx +0 -876
  688. package/src/ui/page-layout/side-nav/toggle-button-context.tsx +0 -21
  689. package/src/ui/page-layout/side-nav/toggle-button-provider.tsx +0 -28
  690. package/src/ui/page-layout/side-nav/toggle-button.tsx +0 -166
  691. package/src/ui/page-layout/side-nav/types.tsx +0 -18
  692. package/src/ui/page-layout/side-nav/use-expand-side-nav.tsx +0 -57
  693. package/src/ui/page-layout/side-nav/use-side-nav-visibility-callbacks.tsx +0 -75
  694. package/src/ui/page-layout/side-nav/use-side-nav-visibility.tsx +0 -43
  695. package/src/ui/page-layout/side-nav/use-toggle-side-nav.tsx +0 -47
  696. package/src/ui/page-layout/side-nav/visibility-context.tsx +0 -17
  697. package/src/ui/page-layout/side-nav/visibility-provider.tsx +0 -20
  698. package/src/ui/page-layout/top-nav/top-nav-end.tsx +0 -155
  699. package/src/ui/page-layout/top-nav/top-nav-middle.tsx +0 -90
  700. package/src/ui/page-layout/top-nav/top-nav-start.tsx +0 -82
  701. package/src/ui/page-layout/top-nav/top-nav.tsx +0 -127
  702. package/src/ui/page-layout/types.tsx +0 -20
  703. package/src/ui/page-layout/use-resizing-width-css-var-on-root-element.tsx +0 -70
  704. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/long-product-name-tooltip--default.png +0 -0
  705. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover---custom-theming--desktop.png +0 -0
  706. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover---custom-theming--mobile.png +0 -0
  707. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover--desktop.png +0 -0
  708. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover--mobile.png +0 -0
  709. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed---custom-theming--desktop.png +0 -0
  710. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed---custom-theming--mobile.png +0 -0
  711. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed--desktop.png +0 -0
  712. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed--mobile.png +0 -0
  713. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/responsive-menu-items--mobile.png +0 -0
  714. package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/responsive-menu-items-on-click--mobile.png +0 -0
  715. package/src/ui/top-nav-items/__tests__/informational-vr-tests/top-navigation.vr.tsx +0 -120
  716. package/src/ui/top-nav-items/__tests__/playwright/theming.spec.tsx +0 -21
  717. package/src/ui/top-nav-items/__tests__/unit/chat-button.test.tsx +0 -40
  718. package/src/ui/top-nav-items/__tests__/unit/create-button.test.tsx +0 -34
  719. package/src/ui/top-nav-items/__tests__/unit/end-item.test.tsx +0 -43
  720. package/src/ui/top-nav-items/__tests__/unit/help.test.tsx +0 -101
  721. package/src/ui/top-nav-items/__tests__/unit/notifications.test.tsx +0 -63
  722. package/src/ui/top-nav-items/__tests__/unit/profile.test.tsx +0 -65
  723. package/src/ui/top-nav-items/__tests__/unit/settings.test.tsx +0 -51
  724. package/src/ui/top-nav-items/__tests__/unit/theming.test.tsx +0 -76
  725. package/src/ui/top-nav-items/__tests__/unit/top-nav-items.test.tsx +0 -181
  726. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/log-in-button--desktop.png +0 -0
  727. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/search-right-elem--default.png +0 -0
  728. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theme-is-applied-with-an-hsl-color--desktop.png +0 -0
  729. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theme-is-applied-with-an-rgb-color--desktop.png +0 -0
  730. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theme-is-applied-with-customlogo--desktop.png +0 -0
  731. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-button-focus-state--default.png +0 -0
  732. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-button-hover-state--default.png +0 -0
  733. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-create-button-hover-state--desktop.png +0 -0
  734. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-link-button-focus-state--default.png +0 -0
  735. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-link-button-hover-state--default.png +0 -0
  736. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-search-focus-state--default.png +0 -0
  737. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theming-is-enabled--desktop.png +0 -0
  738. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-nav-custom-profile-image--default.png +0 -0
  739. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-nav-side-nav-collapsed--desktop.png +0 -0
  740. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-nav-side-nav-collapsed--mobile.png +0 -0
  741. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-example--desktop.png +0 -0
  742. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-example--mobile.png +0 -0
  743. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x200example--desktop.png +0 -0
  744. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x200example--mobile.png +0 -0
  745. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x20example--desktop.png +0 -0
  746. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x20example--mobile.png +0 -0
  747. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x200example--desktop.png +0 -0
  748. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x200example--mobile.png +0 -0
  749. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x20example--desktop.png +0 -0
  750. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x20example--mobile.png +0 -0
  751. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-example--desktop.png +0 -0
  752. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-example--mobile.png +0 -0
  753. package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-with-a-large-search-input-in-focus-state--default.png +0 -0
  754. package/src/ui/top-nav-items/__tests__/vr-tests/top-navigation.vr.tsx +0 -160
  755. package/src/ui/top-nav-items/app-switcher.tsx +0 -81
  756. package/src/ui/top-nav-items/chat-button.tsx +0 -49
  757. package/src/ui/top-nav-items/create-button.tsx +0 -51
  758. package/src/ui/top-nav-items/custom-title.tsx +0 -83
  759. package/src/ui/top-nav-items/end-item.tsx +0 -120
  760. package/src/ui/top-nav-items/help.tsx +0 -69
  761. package/src/ui/top-nav-items/log-in.tsx +0 -66
  762. package/src/ui/top-nav-items/nav-logo/app-logo.tsx +0 -203
  763. package/src/ui/top-nav-items/nav-logo/custom-logo.tsx +0 -252
  764. package/src/ui/top-nav-items/nav-logo/logo-renderer.tsx +0 -66
  765. package/src/ui/top-nav-items/notifications.tsx +0 -67
  766. package/src/ui/top-nav-items/profile.tsx +0 -26
  767. package/src/ui/top-nav-items/search.tsx +0 -124
  768. package/src/ui/top-nav-items/settings.tsx +0 -16
  769. package/src/ui/top-nav-items/themed/__tests__/unit/button.test.tsx +0 -57
  770. package/src/ui/top-nav-items/themed/__tests__/unit/use-custom-theme.test.tsx +0 -43
  771. package/src/ui/top-nav-items/themed/button.tsx +0 -576
  772. package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/hex.test.tsx +0 -131
  773. package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/hsl.test.tsx +0 -117
  774. package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/rgb.test.tsx +0 -88
  775. package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/try-parse-user-color.test.tsx +0 -35
  776. package/src/ui/top-nav-items/themed/color-utils/formats/hex.tsx +0 -47
  777. package/src/ui/top-nav-items/themed/color-utils/formats/hsl.tsx +0 -112
  778. package/src/ui/top-nav-items/themed/color-utils/formats/rgb.tsx +0 -41
  779. package/src/ui/top-nav-items/themed/color-utils/index.tsx +0 -111
  780. package/src/ui/top-nav-items/themed/color-utils/parse-user-color.tsx +0 -31
  781. package/src/ui/top-nav-items/themed/color-utils/types.tsx +0 -6
  782. package/src/ui/top-nav-items/themed/get-custom-theme-styles.tsx +0 -186
  783. package/src/ui/top-nav-items/themed/has-custom-theme-context.tsx +0 -13
  784. package/src/ui/top-nav-items/themed/migration.tsx +0 -70
  785. package/src/ui/top-nav-items/themed/palette.tsx +0 -53
  786. package/src/ui/top-nav-items/themed/search.tsx +0 -70
  787. package/src/ui/top-nav-items/themed/use-custom-theme.tsx +0 -51
  788. package/tsconfig.app.json +0 -91
  789. package/tsconfig.dev.json +0 -175
  790. package/tsconfig.json +0 -20
@@ -1,210 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type CSSProperties, useContext, useEffect, useRef, useState } from 'react';
6
-
7
- import { cssMap, jsx } from '@compiled/react';
8
-
9
- import type { StrictXCSSProp } from '@atlaskit/css';
10
- import usePreviousValue from '@atlaskit/ds-lib/use-previous-value';
11
- import { media } from '@atlaskit/primitives/responsive';
12
-
13
- import { useSkipLinkInternal } from '../../context/skip-links/skip-links-context';
14
-
15
- import {
16
- asidePanelSplitterId,
17
- asideVar,
18
- contentHeightWhenFixed,
19
- contentInsetBlockStart,
20
- UNSAFE_asideLayoutVar,
21
- } from './constants';
22
- import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
23
- import { DangerouslyHoistCssVarToDocumentRoot } from './hoist-utils';
24
- import { useLayoutId } from './id-utils';
25
- import { PanelSplitterProvider } from './panel-splitter/provider';
26
- import type { ResizeBounds } from './panel-splitter/types';
27
- import type { CommonSlotProps } from './types';
28
- import { useResizingWidthCssVarOnRootElement } from './use-resizing-width-css-var-on-root-element';
29
-
30
- const panelSplitterResizingVar = '--n_asdRsz';
31
- /**
32
- * The bounds for Aside and Panel are purposely set to support the current usage in Jira.
33
- *
34
- * Jira sets the slot's width to `0px` when there is no active content to display in it.
35
- * - This means the min width needs to support `0px`.
36
- * The Conversation Assistant component in Jira (rendered in a nav3 RightSidebar, or a nav4 Aside) has a custom resizing
37
- * implementation, which has a maximum width of `50vw`.
38
- * - This means the max width needs to support `50vw`.
39
- *
40
- * This is not the final implementation and will be updated once Jira's usage has been fixed.
41
- * Ticket to track this is: https://jplat.atlassian.net/browse/BLU-3951
42
- *
43
- * We're using two different bounds for each slot here, to support the `0px` min width when programatically set using the
44
- * `defaultWidth` prop, and another one that is used when resizing the slots which has a sensible min width.
45
- */
46
- const asideWidthSlotBounds: ResizeBounds = { min: '0px', max: '50vw' };
47
- const asideWidthResizeBounds: ResizeBounds = { min: '120px', max: '50vw' };
48
-
49
- function getResizeBounds() {
50
- return asideWidthResizeBounds;
51
- }
52
-
53
- const styles = cssMap({
54
- root: {
55
- gridArea: 'aside',
56
- boxSizing: 'border-box',
57
- position: 'relative',
58
- '@media (min-width: 64rem)': {
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
60
- width: `var(${panelSplitterResizingVar}, var(${asideVar}))`,
61
- justifySelf: 'end',
62
- },
63
- },
64
- inner: {
65
- // This sets the sticky point to be just below top bar + banner. It's needed to ensure the stick
66
- // point is exactly where this element is rendered to with no wiggle room. Unfortunately the CSS
67
- // spec for sticky doesn't support "stick to where I'm initially rendered" so we need to tell it.
68
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
69
- insetBlockStart: contentInsetBlockStart,
70
- overflow: 'auto',
71
- // We want the direct child of the "aside" grid item to also take up the full height of the grid item.
72
- // An example use case is for consumers to add a border that takes up the full height of the aside slot.
73
- height: '100%',
74
- '@media (min-width: 64rem)': {
75
- // Height is set so it takes up all of the available viewport space minus top bar + banner.
76
- // This is only set on larger viewports meaning stickiness only occurs on them.
77
- // On small viewports it is not sticky.
78
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
79
- height: contentHeightWhenFixed,
80
- position: 'sticky',
81
- },
82
- },
83
- });
84
-
85
- /**
86
- * The Aside is rendered to the right (inline end) of the Main area.
87
- *
88
- * You can optionally render a `PanelSplitter` as a child to make the aside area resizable.
89
- */
90
- export function Aside({
91
- children,
92
- xcss,
93
- defaultWidth = 330,
94
- label = 'Aside',
95
- skipLinkLabel = label,
96
- testId,
97
- id: providedId,
98
- }: CommonSlotProps & {
99
- /**
100
- * The content of the layout area.
101
- */
102
- children: React.ReactNode;
103
- /**
104
- * The accessible name of the slot, announced by screen readers.
105
- */
106
- label?: string;
107
- /**
108
- * Bounded style overrides.
109
- */
110
- xcss?: StrictXCSSProp<'backgroundColor', never>;
111
- /**
112
- * The default width of the layout area.
113
- *
114
- * It should be between the resize bounds - the minimum is 120px and the maximum is 50% of the viewport width.
115
- */
116
- defaultWidth?: number;
117
- }) {
118
- const dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
119
- const id = useLayoutId({ providedId });
120
-
121
- /**
122
- * Don't show the skip link if the slot has 0 width.
123
- *
124
- * Remove `isHidden` usage after https://jplat.atlassian.net/browse/BLU-3951
125
- */
126
- useSkipLinkInternal({
127
- id,
128
- label: skipLinkLabel,
129
- isHidden: defaultWidth === 0,
130
- });
131
- const ref = useRef<HTMLDivElement | null>(null);
132
- const [width, setWidth] = useState(defaultWidth);
133
- // Used to track the previous value of the `defaultWidth` prop, for logging dev warnings when it changes.
134
- const previousWidthProp = usePreviousValue(defaultWidth);
135
-
136
- /**
137
- * Updates the width state based on changes to `defaultWidth`.
138
- * This is temporary and needed to support the current usage in Jira, and will be removed once it is no longer needed.
139
- * https://jplat.atlassian.net/browse/BLU-3951
140
- */
141
- useEffect(() => {
142
- setWidth(defaultWidth);
143
- }, [defaultWidth]);
144
-
145
- // Putting the warning in a separate effect to avoid adding `previousWidthProp` as an effect dependency when updating width.
146
- useEffect(() => {
147
- if (process.env.NODE_ENV !== 'production') {
148
- if (previousWidthProp !== undefined && defaultWidth !== previousWidthProp) {
149
- // eslint-disable-next-line no-console
150
- console.warn(
151
- 'Page Layout warning\n\n',
152
- 'The value of the `defaultWidth` prop on the `Aside` layout slot component has changed. This should not be changed after the component has been mounted.\n\n',
153
- 'In the future, changes to the `defaultWidth` prop will not be respected. It is only supported as a stopgap to enable migration from Nav3 to Nav4.\n\n',
154
- );
155
- }
156
- }
157
- }, [defaultWidth, previousWidthProp]);
158
-
159
- const asideVariableWidth = `clamp(${asideWidthSlotBounds.min}, ${width}px, ${asideWidthSlotBounds.max})`;
160
-
161
- useResizingWidthCssVarOnRootElement({
162
- isEnabled: dangerouslyHoistSlotSizes,
163
- panelId: asidePanelSplitterId,
164
- cssVar: panelSplitterResizingVar,
165
- });
166
-
167
- return (
168
- <aside
169
- id={id}
170
- data-layout-slot
171
- aria-label={label}
172
- css={styles.root}
173
- className={xcss}
174
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
175
- style={{ [asideVar]: asideVariableWidth } as CSSProperties}
176
- data-testid={testId}
177
- ref={ref}
178
- >
179
- {dangerouslyHoistSlotSizes && (
180
- // ------ START UNSAFE STYLES ------
181
- // These styles are only needed for the UNSAFE legacy use case for Jira + Confluence.
182
- // When they aren't needed anymore we can delete them wholesale.
183
- <DangerouslyHoistCssVarToDocumentRoot
184
- variableName={UNSAFE_asideLayoutVar}
185
- value="0px"
186
- mediaQuery={media.above.md}
187
- responsiveValue={`var(${panelSplitterResizingVar}, ${asideVariableWidth})`}
188
- />
189
- // ------ END UNSAFE STYLES ------
190
- )}
191
- <PanelSplitterProvider
192
- panelId={asidePanelSplitterId}
193
- panelRef={ref}
194
- panelWidth={width}
195
- onCompleteResize={setWidth}
196
- getResizeBounds={getResizeBounds}
197
- resizingCssVar={panelSplitterResizingVar}
198
- position="start"
199
- >
200
- {/**
201
- * Fixed styles are added here rather than on the `aside` container element, so that the panel splitter
202
- * component can overflow out of the `Aside` container, to increase the interactive grab area
203
- */}
204
- <div css={styles.inner} data-testid={testId ? `${testId}--inner` : undefined}>
205
- {children}
206
- </div>
207
- </PanelSplitterProvider>
208
- </aside>
209
- );
210
- }
@@ -1,91 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { useContext } from 'react';
6
-
7
- import { cssMap, jsx } from '@compiled/react';
8
-
9
- import type { StrictXCSSProp } from '@atlaskit/css';
10
-
11
- import { useSkipLinkInternal } from '../../context/skip-links/skip-links-context';
12
-
13
- import { bannerMountedVar, localSlotLayers, UNSAFE_bannerVar } from './constants';
14
- import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
15
- import { DangerouslyHoistCssVarToDocumentRoot, HoistCssVarToLocalGrid } from './hoist-utils';
16
- import { useLayoutId } from './id-utils';
17
- import type { CommonSlotProps } from './types';
18
-
19
- const styles = cssMap({
20
- root: {
21
- gridArea: 'banner',
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
23
- height: `var(${bannerMountedVar})`,
24
- insetBlockStart: 0,
25
- position: 'sticky',
26
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
27
- zIndex: localSlotLayers.banner,
28
- overflow: 'hidden',
29
- },
30
- });
31
-
32
- /**
33
- * The banner layout area. It will always be displayed at the top of the screen.
34
- *
35
- * Should be used to render a `Banner` component from `@atlaskit/banner`.
36
- */
37
- export function Banner({
38
- children,
39
- xcss,
40
- // 48px has been chosen to align with the height of the Banner component from `@atlaskit/banner`.
41
- height = 48,
42
- skipLinkLabel = 'Banner',
43
- testId,
44
- id: providedId,
45
- }: CommonSlotProps & {
46
- /**
47
- * The content of the layout area.
48
- * Should include a Banner component from `@atlaskit/banner`.
49
- */
50
- children: React.ReactNode;
51
- /**
52
- * Bounded style overrides.
53
- */
54
- xcss?: StrictXCSSProp<'backgroundColor', never>;
55
- /**
56
- * The height of the layout area.
57
- *
58
- * Defaults to 48px.
59
- */
60
- height?: number;
61
- }) {
62
- const dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
63
- const id = useLayoutId({ providedId });
64
-
65
- /**
66
- * Don't show the skip link if the slot has 0 height.
67
- */
68
- useSkipLinkInternal({
69
- id,
70
- label: skipLinkLabel,
71
- isHidden: height === 0,
72
- });
73
-
74
- return (
75
- /**
76
- * Intentionally not using `role="banner"` because each page should only have one `banner` landmark,
77
- * and the top bar is more suitable as the `banner` landmark.
78
- */
79
- <div id={id} data-layout-slot css={styles.root} className={xcss} data-testid={testId}>
80
- <HoistCssVarToLocalGrid variableName={bannerMountedVar} value={height} />
81
- {dangerouslyHoistSlotSizes && (
82
- // ------ START UNSAFE STYLES ------
83
- // These styles are only needed for the UNSAFE legacy use case for Jira + Confluence.
84
- // When they aren't needed anymore we can delete them wholesale.
85
- <DangerouslyHoistCssVarToDocumentRoot variableName={UNSAFE_bannerVar} value={height} />
86
- // ------ END UNSAFE STYLES ------
87
- )}
88
- {children}
89
- </div>
90
- );
91
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * These variables are shared across the different page layout slots.
3
- * This violates the [UI styling standard](https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-imported-style-values/usage).
4
- * We have chosen to ignore this rule to prevent duplicating them across the different slots, and to provide a high level view of them and how they relate.
5
- */
6
-
7
- // These are "compressed" to discourage usage.
8
- export const sideNavVar = '--n_sNvw';
9
- export const asideVar = '--n_asDw';
10
- export const panelVar = '--n_pnlW';
11
- export const bannerMountedVar = '--n_bnrM';
12
- export const topNavMountedVar = '--n_tNvM';
13
-
14
- /**
15
- * Captures the current width of the side navigation, at all times, including during resizing.
16
- *
17
- * The standard `sideNavVar` only captures the 'committed' width, not the resizing width.
18
- */
19
- export const sideNavLiveWidthVar = '--n_sNvlw';
20
-
21
- export const sideNavPanelSplitterId = Symbol('SideNav PanelSplitter');
22
- export const asidePanelSplitterId = Symbol('Aside PanelSplitter');
23
- export const panelPanelSplitterId = Symbol('Panel PanelSplitter');
24
-
25
- // We aren't using template literals here because Compiled can't compiled them in platform ATM.
26
- export const contentHeightWhenFixed = `calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))`;
27
- export const contentInsetBlockStart = `calc(var(--n_bnrM, 0px) + var(--n_tNvM, 0px))`;
28
-
29
- // We define variables as they can change their size depending on the viewport width. That isn't needed for
30
- // general grid item slots because, well, they just take up the size of the grid item! In this instance since
31
- // the UNSAFE absolutely positioned sibling isn't on the grid it needs extra layout information.
32
- // Note: THESE ARE THE SAME VALUES AS THE LEGACY PAGE LAYOUT.
33
- // WHEN WE ELIMINATE USAGE OF THOSE VARIABLES THESE CAN BE RENAMED TO BE HASHED.
34
- export const UNSAFE_topNavVar = '--topNavigationHeight';
35
- export const UNSAFE_bannerVar = '--bannerHeight';
36
- export const UNSAFE_sideNavLayoutVar = '--leftSidebarWidth';
37
- export const UNSAFE_asideLayoutVar = '--rightSidebarWidth';
38
- export const UNSAFE_panelLayoutVar = '--rightPanelWidth';
39
-
40
- // The following UNSAFE variables are used to absolutely position elements that aren't a child of page layout.
41
- // Known use cases: Legacy pages rendered inside Confluence and Jira.
42
- export const UNSAFE_MAIN_BLOCK_START_FOR_LEGACY_PAGES_ONLY = `calc(var(${UNSAFE_bannerVar}, 0px) + var(${UNSAFE_topNavVar}, 0px))`;
43
- export const UNSAFE_MAIN_INLINE_START_FOR_LEGACY_PAGES_ONLY = `var(${UNSAFE_sideNavLayoutVar}, 0px)`;
44
- export const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY = `calc(var(${UNSAFE_asideLayoutVar}, 0px) + var(${UNSAFE_panelLayoutVar}, 0px))`;
45
-
46
- /**
47
- * We define the z-indexes here so each page slot can be locally layered against each other.
48
- * For globally defined values such as flag, modal, etc, we can continue to
49
- * rely on accessing them through global means.
50
- */
51
- export const localSlotLayers = {
52
- topBar: 4,
53
- banner: 4,
54
- sideNav: 2,
55
- panelSmallViewports: 1,
56
- };
@@ -1,7 +0,0 @@
1
- import { createContext } from 'react';
2
-
3
- /**
4
- * Context for whether the slot sizes are to be hoisted to the document root.
5
- * It is set by consumers using a prop on the page layout `Root` element.
6
- */
7
- export const DangerouslyHoistSlotSizes = createContext(false);
@@ -1,64 +0,0 @@
1
- import React from 'react';
2
-
3
- import { type MediaQuery } from '@atlaskit/primitives/responsive';
4
-
5
- import { gridRootId } from './root';
6
-
7
- /**
8
- * This is not ideal and shouldn't be used by anything outside of `<Banner>` and `<TopNav>`.
9
- *
10
- * This makes the other page layout elements aware that the banner and top bar have been mounted, provides them
11
- * with their heights. This is needed to power the stick points of page layout elements like SideNav and Panel.
12
- *
13
- * We should clean this up once we have a better solution, such as moving the size props for banner and top bar into `Root`.
14
- */
15
- export const HoistCssVarToLocalGrid = ({
16
- variableName,
17
- value,
18
- }: {
19
- variableName: string;
20
- value: number;
21
- // Using a global style is required for SSR, as we can't use React hooks
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
23
- }) => <style>{`#${gridRootId} { ${variableName}: ${value}px }`}</style>;
24
-
25
- const getCssStringValue = (value: string | number): string =>
26
- typeof value === 'number' ? `${value}px` : value;
27
-
28
- /**
29
- * Hoists CSS variables to the document root. This is support the legacy edge case of monolith pages being injected as a
30
- * sibling to the page layout, as opposed to within the `Main` slot.
31
- */
32
- export const DangerouslyHoistCssVarToDocumentRoot = ({
33
- variableName,
34
- value,
35
- mediaQuery,
36
- responsiveValue,
37
- }: {
38
- variableName: string;
39
- value: string | number;
40
- mediaQuery?: MediaQuery;
41
- responsiveValue?: string | number;
42
- }) => {
43
- /**
44
- * Note don't put multiple variables in multiple lines. eg
45
- * <style>
46
- * {css1}
47
- * {css2}
48
- * </style>
49
- *
50
- * React will insert an empty HTML comment in between the text in SSR.
51
- * This is not a valid tag and will break the page.
52
- * <style>foo<!-- -->bar</style>
53
- */
54
- let style = `:root { ${variableName}: ${getCssStringValue(value)} }`;
55
- if (mediaQuery && responsiveValue) {
56
- style += ` ${mediaQuery} { :root { ${variableName}: ${getCssStringValue(responsiveValue)} } }`;
57
- }
58
-
59
- return (
60
- // Using a global style is required for SSR, as we can't use React hooks
61
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
62
- <style>{style}</style>
63
- );
64
- };
@@ -1,33 +0,0 @@
1
- import { useId } from '@atlaskit/ds-lib/use-id';
2
-
3
- // Exposing a hook as a convenience for consumers, so they don't need to import
4
- // from ds-lib themselves.
5
- /**
6
- * Returns a unique ID for use by layout elements and skip links.
7
- * You can use this for custom skip links.
8
- */
9
- export function useSkipLinkId(): string {
10
- const uniqueId = useId();
11
-
12
- return uniqueId;
13
- }
14
-
15
- /**
16
- * Returns an ID for use by the layout element and skip links.
17
- *
18
- * If the consumer has already provided an ID, it will be used instead.
19
- * Otherwise, a unique ID will be returned.
20
- */
21
- export function useLayoutId({
22
- providedId,
23
- }: {
24
- /**
25
- * The ID provided by the consumer. If provided, it will be used instead.
26
- */
27
- providedId?: string;
28
- } = {}): string {
29
- const uniqueId = useSkipLinkId();
30
- const id = providedId ? providedId : uniqueId;
31
-
32
- return id;
33
- }
@@ -1,45 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
-
7
- import { cssMap, jsx } from '@compiled/react';
8
-
9
- import type { StrictXCSSProp } from '@atlaskit/css';
10
-
11
- const stickyHeaderStyles = cssMap({
12
- root: {
13
- position: 'sticky',
14
- zIndex: 1,
15
- insetBlockStart: 0,
16
- },
17
- });
18
-
19
- /**
20
- * The sticky header of the main layout area.
21
- */
22
- export function MainStickyHeader({
23
- children,
24
- xcss,
25
- testId,
26
- }: {
27
- /**
28
- * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
29
- */
30
- testId?: string;
31
- /**
32
- * The content of the layout area.
33
- */
34
- children?: React.ReactNode;
35
- /**
36
- * Bounded style overrides.
37
- */
38
- xcss?: StrictXCSSProp<'backgroundColor', never>;
39
- }) {
40
- return (
41
- <div data-testid={testId} className={xcss} css={stickyHeaderStyles.root}>
42
- {children}
43
- </div>
44
- );
45
- }
@@ -1,93 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- * @jsxFrag
5
- */
6
- import { Fragment } from 'react';
7
-
8
- import { cssMap, jsx } from '@compiled/react';
9
-
10
- import type { StrictXCSSProp } from '@atlaskit/css';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
-
13
- import { useSkipLink } from '../../../context/skip-links/skip-links-context';
14
- import { contentHeightWhenFixed, contentInsetBlockStart } from '../constants';
15
- import { useLayoutId } from '../id-utils';
16
- import type { CommonSlotProps } from '../types';
17
-
18
- const mainElementStyles = cssMap({
19
- root: {
20
- gridArea: 'main',
21
- isolation: 'isolate',
22
- // This sets the sticky point to be just below top bar + banner. It's needed to ensure the stick
23
- // point is exactly where this element is rendered to with no wiggle room. Unfortunately the CSS
24
- // spec for sticky doesn't support "stick to where I'm initially rendered" so we need to tell it.
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
26
- insetBlockStart: contentInsetBlockStart,
27
- overflow: 'auto',
28
- '@media (min-width: 64rem)': {
29
- isolation: 'auto',
30
- // Height is set so it takes up all of the available viewport space minus top bar + banner.
31
- // This is only set on larger viewports meaning stickiness only occurs on them.
32
- // On small viewports it is not sticky.
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
34
- height: contentHeightWhenFixed,
35
- position: 'sticky',
36
- },
37
- },
38
- containPaint: {
39
- // Clips children that go outside of the slot.
40
- // This is effectively already the case due to Main having the lowest z-index of the slots + having its own stacking context.
41
- contain: 'paint',
42
- },
43
- });
44
-
45
- /**
46
- * Use the Main area for the main page content. It has a fluid width and will expand to fill available space.
47
- */
48
- export function Main({
49
- children,
50
- xcss,
51
- skipLinkLabel = 'Main Content',
52
- testId,
53
- id: providedId,
54
- }: CommonSlotProps & {
55
- /**
56
- * The content of the layout area.
57
- * This is where you should put the main content of your page.
58
- */
59
- children: React.ReactNode;
60
- /**
61
- * Bounded style overrides.
62
- */
63
- xcss?: StrictXCSSProp<'backgroundColor', never>;
64
- }) {
65
- const id = useLayoutId({ providedId });
66
-
67
- useSkipLink(id, skipLinkLabel);
68
-
69
- return (
70
- <Fragment>
71
- <div
72
- id={id}
73
- data-layout-slot
74
- className={xcss}
75
- role="main"
76
- css={[
77
- mainElementStyles.root,
78
- /**
79
- * When enabled the Main slot will:
80
- *
81
- * - clip any children that extend outside (effectively what happened before anyway due to z-indexing)
82
- * - become the containing block for absolute and fixed position descendants
83
- * - act as the boundary for popups, so they will flip and shift to stay inside of Main
84
- */
85
- fg('platform_dst_nav4_layering_in_main_slot_fixes') && mainElementStyles.containPaint,
86
- ]}
87
- data-testid={testId}
88
- >
89
- {children}
90
- </div>
91
- </Fragment>
92
- );
93
- }
@@ -1,60 +0,0 @@
1
- import { createContext, type MutableRefObject } from 'react';
2
-
3
- import { type ResizeBounds } from './types';
4
-
5
- // Disabling the rule to allow for `Type` suffix, to differentiate from the Context object.
6
- // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
7
- export type PanelSplitterContextType = {
8
- /**
9
- * An optional identifier for the panel splitter, which is attached to the `pragmatic-drag-and-drop` drag data.
10
- */
11
- panelId?: symbol;
12
- /**
13
- * A ref to the page layout element that will be resized by the splitter.
14
- */
15
- panelRef: MutableRefObject<HTMLDivElement | null>;
16
- /**
17
- * The "saved" width of the panel element. Used to calculate the new width of the panel when dragging.
18
- */
19
- panelWidth: number;
20
- /**
21
- * Called when the user finishes resizing the panel. It should update the width of the panel element.
22
- */
23
- onCompleteResize: (newWidth: number) => void;
24
- /**
25
- * The minimum and maximum bounds for resizing the panel.
26
- * The bounds can be provided as `px` or `vw` values.
27
- */
28
- getResizeBounds: () => ResizeBounds;
29
- /**
30
- * A ref to the portal element where the panel splitter will be rendered.
31
- * Internally set by the PanelSplitterProvider.
32
- * Used to render the panel splitter outside of an overflow container.
33
- */
34
- portalRef: MutableRefObject<HTMLDivElement | null>;
35
- /**
36
- * The CSS variable that will be set on the panel element to temporarily resize it while dragging the splitter
37
- */
38
- resizingCssVar: string;
39
- /**
40
- * The side of the panel/element that the splitter element is positioned on. Uses logical values to support right-to-left languages.
41
- *
42
- * Defaults to `start`.
43
- *
44
- * For left-to-right languages, `start` is the left side and `end` is the right side.
45
- */
46
- position: 'start' | 'end';
47
-
48
- /**
49
- * Whether the panel splitter is enabled and should be rendered.
50
- *
51
- * Defaults to `true`.
52
- * If `false`, the panel splitter will not be rendered.
53
- */
54
- isEnabled?: boolean;
55
- };
56
-
57
- /**
58
- * Context for the panel splitter. Only internally exported.
59
- */
60
- export const PanelSplitterContext = createContext<PanelSplitterContextType | null>(null);
@@ -1,20 +0,0 @@
1
- import type { ResizeBound } from './types';
2
-
3
- /**
4
- * Resize bounds can either be provided in `vw` or `px` units. This function will convert the value into pixels.
5
- *
6
- * It accesses the `window` object to get the viewport width, so should only be used in the browser.
7
- */
8
- export function convertResizeBoundToPixels(resizeBound: ResizeBound): number {
9
- if (resizeBound.endsWith('vw')) {
10
- // Max width was provided in `vw` units, so is relative to the viewport width.
11
- // e.g. 50vw = 50% of the viewport width.
12
- // `parseInt` will remove the `vw` suffix.
13
- const maxWidthFraction = parseInt(resizeBound) / 100;
14
- return Math.floor(window.innerWidth * maxWidthFraction);
15
- }
16
-
17
- // Max width was provided in `px` units, so we can parse it directly.
18
- // `parseInt` will remove the `px` suffix.
19
- return Math.floor(parseInt(resizeBound));
20
- }