@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.
- package/CHANGELOG.md +29 -0
- package/dist/cjs/components/skip-links/skip-links-container.js +25 -17
- package/dist/cjs/context/skip-links/skip-links-data-context.js +28 -10
- package/dist/cjs/context/skip-links/skip-links-provider.js +17 -6
- package/dist/cjs/ui/menu-item/menu-item.js +1 -1
- package/dist/cjs/ui/page-layout/root.js +11 -1
- package/dist/es2019/components/skip-links/skip-links-container.js +24 -16
- package/dist/es2019/context/skip-links/skip-links-data-context.js +25 -8
- package/dist/es2019/context/skip-links/skip-links-provider.js +17 -6
- package/dist/es2019/ui/menu-item/menu-item.js +1 -1
- package/dist/es2019/ui/page-layout/root.js +11 -1
- package/dist/esm/components/skip-links/skip-links-container.js +23 -15
- package/dist/esm/context/skip-links/skip-links-data-context.js +26 -9
- package/dist/esm/context/skip-links/skip-links-provider.js +16 -5
- package/dist/esm/ui/menu-item/menu-item.js +1 -1
- package/dist/esm/ui/page-layout/root.js +11 -1
- package/dist/types/components/skip-links/skip-links-container.d.ts +13 -8
- package/dist/types/context/skip-links/skip-links-data-context.d.ts +15 -1
- package/dist/types/context/skip-links/skip-links-provider.d.ts +9 -4
- package/dist/types-ts4.5/components/skip-links/skip-links-container.d.ts +13 -8
- package/dist/types-ts4.5/context/skip-links/skip-links-data-context.d.ts +15 -1
- package/dist/types-ts4.5/context/skip-links/skip-links-provider.d.ts +9 -4
- package/package.json +9 -10
- package/afm-cc/tsconfig.json +0 -78
- package/afm-dev-agents/tsconfig.json +0 -78
- package/afm-jira/tsconfig.json +0 -78
- package/afm-passionfruit/tsconfig.json +0 -78
- package/afm-post-office/tsconfig.json +0 -78
- package/afm-rovo-extension/tsconfig.json +0 -78
- package/afm-townsquare/tsconfig.json +0 -78
- package/afm-volt/tsconfig.json +0 -78
- package/build/tsconfig.json +0 -23
- package/docs/00-intro.tsx +0 -14
- package/examples/advanced-layout.tsx +0 -144
- package/examples/button-menu-item.tsx +0 -426
- package/examples/company-hub-mock.tsx +0 -219
- package/examples/composition.tsx +0 -424
- package/examples/confluence-mock.tsx +0 -381
- package/examples/constellation/common/mock-content.tsx +0 -39
- package/examples/constellation/common/mock-top-bar.tsx +0 -20
- package/examples/constellation/layout/custom-skip-links.tsx +0 -12
- package/examples/constellation/layout/custom-theming--parse-hex.tsx +0 -19
- package/examples/constellation/layout/custom-theming--parse-hsl.tsx +0 -22
- package/examples/constellation/layout/custom-theming--parse-rgb.tsx +0 -22
- package/examples/constellation/layout/custom-theming--parse-user-color.tsx +0 -22
- package/examples/constellation/layout/custom-theming--rgb-object.tsx +0 -21
- package/examples/constellation/layout/expand-side-nav.tsx +0 -17
- package/examples/constellation/layout/toggle-side-nav-keyboard-shortcut.tsx +0 -25
- package/examples/constellation/side-nav-items/actions-and-actions-on-hover.tsx +0 -153
- package/examples/constellation/side-nav-items/button-menu-item.tsx +0 -133
- package/examples/constellation/side-nav-items/common/global-app-icon-tile.tsx +0 -43
- package/examples/constellation/side-nav-items/common/mock-side-nav.tsx +0 -18
- package/examples/constellation/side-nav-items/container-avatar.tsx +0 -32
- package/examples/constellation/side-nav-items/elem-after.tsx +0 -60
- package/examples/constellation/side-nav-items/elem-before.tsx +0 -116
- package/examples/constellation/side-nav-items/expandable-menu-item-default-variant.tsx +0 -219
- package/examples/constellation/side-nav-items/expandable-menu-item-link-variant.tsx +0 -278
- package/examples/constellation/side-nav-items/flyout-menu-item.tsx +0 -156
- package/examples/constellation/side-nav-items/link-menu-item.tsx +0 -161
- package/examples/constellation/side-nav-items/menu-divider.tsx +0 -114
- package/examples/constellation/side-nav-items/menu-section.tsx +0 -177
- package/examples/constellation/side-nav-items/right-to-left.tsx +0 -144
- package/examples/constellation/side-nav-items/top-level-spacer.tsx +0 -82
- package/examples/constellation/side-nav-items/truncation.tsx +0 -58
- package/examples/constellation/top-nav-items/app-logo.tsx +0 -19
- package/examples/constellation/top-nav-items/custom-logo.tsx +0 -28
- package/examples/constellation/top-nav-items/custom-theming--buttons.tsx +0 -27
- package/examples/constellation/top-nav-items/custom-theming--logo.tsx +0 -27
- package/examples/constellation/top-nav-items/custom-theming--search.tsx +0 -28
- package/examples/constellation/top-nav-items/custom-title.tsx +0 -20
- package/examples/constellation/top-nav-items/end-item.tsx +0 -23
- package/examples/constellation/top-nav-items/top-nav-button.tsx +0 -34
- package/examples/constellation/top-nav-items/top-nav-end.tsx +0 -25
- package/examples/constellation/top-nav-items/top-nav-middle.tsx +0 -19
- package/examples/constellation/top-nav-items/top-nav-start.tsx +0 -31
- package/examples/drag-and-drop/jira/data.tsx +0 -320
- package/examples/drag-and-drop/jira/entry.tsx +0 -89
- package/examples/drag-and-drop/jira/filters/filter-move-modal.tsx +0 -171
- package/examples/drag-and-drop/jira/filters/filter-tree-utils.tsx +0 -134
- package/examples/drag-and-drop/jira/filters/filters-menu-item.tsx +0 -470
- package/examples/drag-and-drop/jira/for-you/for-you-menu-item.tsx +0 -74
- package/examples/drag-and-drop/jira/projects/project-tile.tsx +0 -37
- package/examples/drag-and-drop/jira/projects/project.tsx +0 -257
- package/examples/drag-and-drop/jira/projects/projects-menu-item.tsx +0 -120
- package/examples/drag-and-drop/jira/recent/recent-menu-item.tsx +0 -30
- package/examples/drag-and-drop/jira/reducer.tsx +0 -78
- package/examples/drag-and-drop/jira/registry.tsx +0 -52
- package/examples/drag-and-drop/jira/reorder-actions.tsx +0 -75
- package/examples/drag-and-drop/jira/shared-top-level-flyout.tsx +0 -144
- package/examples/drag-and-drop/jira/sidebar.tsx +0 -361
- package/examples/drag-and-drop/jira/starred/starred-menu-item.tsx +0 -29
- package/examples/drag-and-drop/jira/state-context.tsx +0 -34
- package/examples/drag-and-drop/jira/top-level-shared-more-menu.tsx +0 -99
- package/examples/drag-and-drop/sidebar-example-container.tsx +0 -38
- package/examples/drag-and-drop/simple.tsx +0 -653
- package/examples/drag-and-drop/standalone-jira-sidebar-centered.tsx +0 -27
- package/examples/drag-and-drop/standalone-jira-sidebar.tsx +0 -18
- package/examples/drag-and-drop-in-the-sidebar-flyout.tsx +0 -161
- package/examples/drag-and-drop-jira-scaling-vr.tsx +0 -25
- package/examples/drag-and-drop-jira-sidebar-centered.tsx +0 -1
- package/examples/drag-and-drop-jira-sidebar-standalone.tsx +0 -1
- package/examples/drag-and-drop-jira.tsx +0 -1
- package/examples/drag-and-drop.tsx +0 -1
- package/examples/expandable-menu-item.tsx +0 -775
- package/examples/flyout-menu-item-async-content.tsx +0 -118
- package/examples/flyout-menu-item-multiple.tsx +0 -180
- package/examples/flyout-menu-item.tsx +0 -269
- package/examples/images/200x20.png +0 -0
- package/examples/images/200x200.png +0 -0
- package/examples/images/20x20.png +0 -0
- package/examples/images/20x200.png +0 -0
- package/examples/images/cd.svg +0 -9
- package/examples/images/koala.png +0 -0
- package/examples/images/koala.svg +0 -9
- package/examples/images/money.svg +0 -9
- package/examples/images/science.svg +0 -20
- package/examples/interactive-layout.tsx +0 -286
- package/examples/layers-in-main.tsx +0 -294
- package/examples/legacy-var-testing.tsx +0 -173
- package/examples/link-menu-item.tsx +0 -383
- package/examples/main-content-border.tsx +0 -148
- package/examples/menu-item-avatar.tsx +0 -41
- package/examples/menu-item-conditional-tooltip.tsx +0 -304
- package/examples/menu-item-focus-ring-bleed.tsx +0 -50
- package/examples/menu-item-integration.tsx +0 -207
- package/examples/menu-item-narrow.tsx +0 -290
- package/examples/menu-item-scroll-into-view.tsx +0 -283
- package/examples/menu-items-deeply-nested.tsx +0 -330
- package/examples/menu-list.tsx +0 -62
- package/examples/menu-section.tsx +0 -78
- package/examples/page-layout-all-slots-banner-height-zero.tsx +0 -3
- package/examples/page-layout-all-slots-custom-sizes.tsx +0 -3
- package/examples/page-layout-all-slots-rtl.tsx +0 -3
- package/examples/page-layout-all-slots-scrollable.tsx +0 -3
- package/examples/page-layout-all-slots.tsx +0 -3
- package/examples/page-layout-aside-border.tsx +0 -149
- package/examples/page-layout-content-is-iframes.tsx +0 -3
- package/examples/page-layout-edge-case-absolute-positioned-collapsed-custom-sizes.tsx +0 -3
- package/examples/page-layout-edge-case-absolute-positioned-collapsed.tsx +0 -3
- package/examples/page-layout-edge-case-absolute-positioned-panel-visible.tsx +0 -3
- package/examples/page-layout-edge-case-absolute-positioned-resizable.tsx +0 -3
- package/examples/page-layout-edge-case-absolute-positioned.tsx +0 -3
- package/examples/page-layout-edge-case-using-legacy-vars.tsx +0 -3
- package/examples/page-layout-full-screen.tsx +0 -251
- package/examples/page-layout-implicit-rows.tsx +0 -33
- package/examples/page-layout-main-aside-scrollable.tsx +0 -3
- package/examples/page-layout-main-aside.tsx +0 -3
- package/examples/page-layout-panel-aside-default-widths.tsx +0 -241
- package/examples/page-layout-resizable-rtl.tsx +0 -3
- package/examples/page-layout-resizable.tsx +0 -3
- package/examples/page-layout-side-nav-collapse-shortcut.tsx +0 -47
- package/examples/page-layout-side-nav-content-scroll-with-sticky.tsx +0 -135
- package/examples/page-layout-side-nav-custom-width-greater-than-max.tsx +0 -3
- package/examples/page-layout-side-nav-custom-width-smaller-than-min.tsx +0 -3
- package/examples/page-layout-side-nav-main-aside-scrollable.tsx +0 -3
- package/examples/page-layout-side-nav-main-aside.tsx +0 -3
- package/examples/page-layout-side-nav-onboarding.tsx +0 -155
- package/examples/page-layout-side-nav-overflowing-children.tsx +0 -3
- package/examples/page-layout-side-nav-slots.tsx +0 -173
- package/examples/page-layout-side-nav-with-menu-items.tsx +0 -3
- package/examples/page-layout-top-bar-side-nav-main-aside-scrollable.tsx +0 -3
- package/examples/page-layout-top-bar-side-nav-main-aside.tsx +0 -3
- package/examples/page-layout-top-bar-side-nav-main-scrollable.tsx +0 -3
- package/examples/page-layout-top-bar-side-nav-main.tsx +0 -3
- package/examples/page-layout.tsx +0 -941
- package/examples/panel-splitter.tsx +0 -199
- package/examples/resizable-slots.tsx +0 -357
- package/examples/side-nav-flyout.tsx +0 -256
- package/examples/stand-alone-iframe.tsx +0 -23
- package/examples/temp-icons/app-switcher-legacy.tsx +0 -14
- package/examples/temp-icons/atlassian-intelligence.tsx +0 -14
- package/examples/temp-icons/help.tsx +0 -18
- package/examples/temp-icons/menu.tsx +0 -14
- package/examples/temp-icons/settings.tsx +0 -14
- package/examples/top-level-spacer.tsx +0 -55
- package/examples/top-nav-custom-profile-image.tsx +0 -71
- package/examples/top-nav-side-nav-collapsed.tsx +0 -74
- package/examples/top-nav-with-long-name.tsx +0 -63
- package/examples/top-nav-with-temp-nav-app-icon-app-logo.tsx +0 -65
- package/examples/top-nav-with-temp-nav-app-icon-custom-logo.tsx +0 -63
- package/examples/top-navigation-custom-logo.tsx +0 -108
- package/examples/top-navigation-stress.tsx +0 -244
- package/examples/top-navigation-themed-buttons.tsx +0 -63
- package/examples/top-navigation-theming-logged-out.tsx +0 -75
- package/examples/top-navigation-theming-with-picker.tsx +0 -128
- package/examples/top-navigation-theming.tsx +0 -197
- package/examples/top-navigation.tsx +0 -126
- package/examples/utils/example-utils.tsx +0 -14
- package/examples/utils/long-placeholder-content.tsx +0 -161
- package/examples/utils/mock-root.tsx +0 -19
- package/examples/utils/mock-search.tsx +0 -67
- 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
- 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
- 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
- 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
- package/src/__tests__/informational-vr-tests/__snapshots__/layering/side-nav-expanded-on-mobile--mobile.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/layering/side-nav-expanded-on-mobile-without-panel--mobile.png +0 -0
- 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
- 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
- package/src/__tests__/informational-vr-tests/__snapshots__/menu-items-deeply-nested/side-nav-with-deeply-nested-menu-items--default.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop---hover-bug--desktop-chrome.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop---hover-bug--desktop-firefox.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop---hover-bug--desktop-webkit.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop--desktop-chrome.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop--desktop-firefox.png +0 -0
- package/src/__tests__/informational-vr-tests/__snapshots__/sidebar-drag-and-drop/sidebar-drag-and-drop--desktop-webkit.png +0 -0
- package/src/__tests__/informational-vr-tests/layering.vr.tsx +0 -76
- package/src/__tests__/informational-vr-tests/menu-items-deeply-nested.vr.tsx +0 -33
- package/src/__tests__/informational-vr-tests/sidebar-drag-and-drop.vr.tsx +0 -100
- package/src/__tests__/playwright/drag-and-drop-in-the-sidebar-flyout.spec.tsx +0 -235
- package/src/__tests__/playwright/expandable-menu-item.spec.tsx +0 -20
- package/src/__tests__/playwright/flyout-menu-item.spec.tsx +0 -22
- package/src/__tests__/playwright/legacy-vars.spec.tsx +0 -298
- package/src/__tests__/playwright/menu-item-in-sidebar-drag-and-drop.spec.tsx +0 -70
- package/src/__tests__/playwright/page-layout.spec.tsx +0 -23
- package/src/__tests__/playwright/panel.spec.tsx +0 -241
- package/src/__tests__/playwright/resizing.spec.tsx +0 -541
- package/src/__tests__/playwright/side-nav-flyout.spec.tsx +0 -223
- package/src/__tests__/playwright/side-nav-responsiveness.spec.tsx +0 -208
- package/src/__tests__/playwright/skip-links.spec.tsx +0 -111
- package/src/__tests__/playwright/top-nav-end.spec.tsx +0 -96
- package/src/__tests__/vr-tests/__snapshots__/a11y-scaling/app--desktop.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-no-panel-vr--desktop-large.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-no-panel-vr--desktop.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-no-panel-vr--mobile.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-scrolled-vr--desktop-large.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-scrolled-vr--desktop.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-scrolled-vr--mobile.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--desktop-large-splitter.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--desktop-large.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--desktop.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/scrollable-vr--mobile.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-no-panel-vr--desktop-large.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-no-panel-vr--desktop.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-no-panel-vr--mobile.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-vr--desktop-large.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-vr--desktop.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/layering/unscrollable-vr--mobile.png +0 -0
- package/src/__tests__/vr-tests/__snapshots__/skip-links/skip-links--light-mode.png +0 -0
- package/src/__tests__/vr-tests/a11y-scaling.vr.tsx +0 -12
- package/src/__tests__/vr-tests/layering.vr.tsx +0 -82
- package/src/__tests__/vr-tests/skip-links.vr.tsx +0 -14
- package/src/components/__tests__/unit/badge-container.test.tsx +0 -62
- package/src/components/__tests__/unit/list.test.tsx +0 -74
- package/src/components/badge-container.tsx +0 -72
- package/src/components/forward-ref-with-generic.tsx +0 -8
- package/src/components/list-item.tsx +0 -39
- package/src/components/list.tsx +0 -44
- package/src/components/skip-links/__tests__/unit/skip-links-container.test.tsx +0 -411
- package/src/components/skip-links/skip-link.tsx +0 -140
- package/src/components/skip-links/skip-links-container.tsx +0 -112
- package/src/context/skip-links/skip-links-context.tsx +0 -74
- package/src/context/skip-links/skip-links-data-context.tsx +0 -41
- package/src/context/skip-links/skip-links-provider.tsx +0 -74
- package/src/context/skip-links/types.tsx +0 -29
- package/src/context/top-nav-start/top-nav-start-context-provider.tsx +0 -26
- package/src/context/top-nav-start/top-nav-start-context.tsx +0 -21
- package/src/entry-points/experimental/color-utils/parse-hex.tsx +0 -1
- package/src/entry-points/experimental/color-utils/parse-hsl.tsx +0 -1
- package/src/entry-points/experimental/color-utils/parse-rgb.tsx +0 -1
- package/src/entry-points/experimental/color-utils/parse-user-color.tsx +0 -1
- package/src/entry-points/experimental/top-nav-button.tsx +0 -6
- package/src/entry-points/experimental/use-has-custom-theme.tsx +0 -1
- package/src/entry-points/experimental/use-legacy-search-theme.tsx +0 -1
- package/src/entry-points/layout/aside.tsx +0 -1
- package/src/entry-points/layout/banner.tsx +0 -1
- package/src/entry-points/layout/main.tsx +0 -7
- package/src/entry-points/layout/panel-splitter.tsx +0 -3
- package/src/entry-points/layout/panel.tsx +0 -1
- package/src/entry-points/layout/root.tsx +0 -1
- package/src/entry-points/layout/side-nav.tsx +0 -7
- package/src/entry-points/layout/skip-links.tsx +0 -2
- package/src/entry-points/layout/top-nav.tsx +0 -4
- package/src/entry-points/side-nav-items/button-menu-item.tsx +0 -3
- package/src/entry-points/side-nav-items/container-avatar.tsx +0 -1
- package/src/entry-points/side-nav-items/drag-and-drop/drag-preview.tsx +0 -1
- package/src/entry-points/side-nav-items/drag-and-drop/drop-indicator.tsx +0 -5
- package/src/entry-points/side-nav-items/drag-and-drop/group-drop-indicator.tsx +0 -1
- package/src/entry-points/side-nav-items/drag-and-drop/hitbox.tsx +0 -7
- package/src/entry-points/side-nav-items/drag-and-drop/use-menu-item-drag-and-drop.tsx +0 -4
- package/src/entry-points/side-nav-items/expandable-menu-item.tsx +0 -13
- package/src/entry-points/side-nav-items/flyout-menu-item.tsx +0 -13
- package/src/entry-points/side-nav-items/link-menu-item.tsx +0 -3
- package/src/entry-points/side-nav-items/menu-list-item.tsx +0 -1
- package/src/entry-points/side-nav-items/menu-list.tsx +0 -1
- package/src/entry-points/side-nav-items/menu-section.tsx +0 -3
- package/src/entry-points/side-nav-items/top-level-spacer.tsx +0 -1
- package/src/entry-points/top-nav-items/create-button.tsx +0 -1
- package/src/entry-points/top-nav-items/custom-title.tsx +0 -1
- package/src/entry-points/top-nav-items/help.tsx +0 -1
- package/src/entry-points/top-nav-items/index.tsx +0 -14
- package/src/entry-points/top-nav-items/log-in.tsx +0 -1
- package/src/entry-points/top-nav-items/notifications.tsx +0 -1
- package/src/entry-points/top-nav-items/profile.tsx +0 -1
- package/src/entry-points/top-nav-items/settings.tsx +0 -1
- package/src/index.tsx +0 -74
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/long-content-after-short-skeleton--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/long-skeleton--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/short-content-after-long-skeleton--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/short-skeleton--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/button-menu-item---disabled---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/button-menu-item---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/expandable-menu-item---not-selectable---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/expandable-menu-item---selectable---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/expandable-menu-item---selected---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/flyout-menu-item---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/flyout-menu-item---selected---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---pressed--default.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---scroll-into-view-behavior--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---scroll-into-view-behavior--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---scroll-into-view-behavior--desktop-safari.png +0 -0
- package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/menu-item/link-menu-item---selected---pressed--default.png +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/src/ui/menu-item/__tests__/informational-vr-tests/flyout-menu-item-async-content.vr.tsx +0 -33
- package/src/ui/menu-item/__tests__/informational-vr-tests/menu-item-increased-hitbox.vr.tsx +0 -79
- package/src/ui/menu-item/__tests__/informational-vr-tests/menu-item.vr.tsx +0 -151
- package/src/ui/menu-item/__tests__/playwright/flyout-menu-item.spec.tsx +0 -38
- package/src/ui/menu-item/__tests__/playwright/scroll-into-view.spec.tsx +0 -91
- package/src/ui/menu-item/__tests__/unit/_util.tsx +0 -40
- package/src/ui/menu-item/__tests__/unit/expandable-menu-item.test.tsx +0 -1119
- package/src/ui/menu-item/__tests__/unit/flyout-menu-item.test.tsx +0 -545
- package/src/ui/menu-item/__tests__/unit/menu-item.test.tsx +0 -649
- package/src/ui/menu-item/__tests__/unit/top-level-spacer.test.tsx +0 -94
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-combine--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-combine--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-after--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-after--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-before--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/button-menu-item-reorder-before--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-combine--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-combine--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-after--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-after--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-before--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-reorder-before--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-trigger--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/expandable-menu-item-trigger--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-combine--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-combine--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-after--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-after--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-before--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-reorder-before--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-trigger--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/flyout-menu-item-trigger--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine-blocked--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-combine-blocked--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after-blocked--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-after-blocked--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before-blocked--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/drag-and-drop/link-menu-item-reorder-before-blocked--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---action-focused--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---action-hovered--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---default-state--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---elembefore-focused--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---elembefore-hovered--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---menu-item-focused--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---custom-elembefore---menu-item-hovered--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---selected-with-dropdown-action-open--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---with-dropdown-action-open--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item---with-dropdown-action-open-and-hovered--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-collapsed-with-selected-child--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-expanded-with-actions-on-hover--default.png +0 -0
- 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
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-expanded-with-elem-after--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-nested--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-nested-rtl--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-selected--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-selected-with-icon--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover---hovered--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover---selected-and-hovered--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover--default.png +0 -0
- 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
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/expandable/expandable-menu-item-with-actions-on-hover-and-elem-after--default.png +0 -0
- 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
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-default-open-example--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-default-open-rtl--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-default-open-selected-vr--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-example--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/flyout-menu-item/flyout-menu-item-rtl--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled---hovered--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled---hovered--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled---hovered--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled-with-actions--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled-with-actions--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---disabled-with-actions--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---with-dropdown-action-open--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---with-dropdown-action-open--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item---with-dropdown-action-open--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-example--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-example--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-example--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-rtlexample--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-rtlexample--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-rtlexample--desktop-webkit.png +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-elem-after-and-hovered--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-elem-after-and-hovered--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-elem-after-and-hovered--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-popup--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-popup--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/button-menu-item-with-popup--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item---with-dropdown-action-open--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item---with-dropdown-action-open--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item---with-dropdown-action-open--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-bleed--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-bleed--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-bleed--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-example--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-example--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-example--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-rtlexample--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-rtlexample--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-rtlexample--desktop-webkit.png +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-elem-after-and-hovered--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-elem-after-and-hovered--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/link-menu-item-with-elem-after-and-hovered--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-item-avatar-example--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-item-avatar-example--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-item-avatar-example--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-items-in-a-narrow-container--desktop-chrome.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-items-in-a-narrow-container--desktop-firefox.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item/menu-items-in-a-narrow-container--desktop-webkit.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-long---description-long---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-long---description-none---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-long---description-short---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-short---description-long---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-short---description-none---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item--content-short---description-short---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item-add-action-button--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/button-menu-item-with-tooltip-disabled--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/expandable-menu-item--content-long---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/expandable-menu-item--content-short---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/expandable-menu-item-with-tooltip-disabled--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/flyout-menu-item--content-long---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/flyout-menu-item--content-short---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/flyout-menu-item-with-tooltip-disabled--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-long---description-long---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-long---description-none---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-long---description-short---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-short---description-long---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-short---description-none---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item--content-short---description-short---default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/link-menu-item-with-tooltip-disabled--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/menu-item-conditional-tooltip/menu-item-button-with-nested-children--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/__snapshots__/top-level-spacer/top-level-spacer-example--default.png +0 -0
- package/src/ui/menu-item/__tests__/vr-tests/drag-and-drop.vr.tsx +0 -172
- package/src/ui/menu-item/__tests__/vr-tests/expandable.vr.tsx +0 -248
- package/src/ui/menu-item/__tests__/vr-tests/flyout-menu-item.vr.tsx +0 -46
- package/src/ui/menu-item/__tests__/vr-tests/menu-item-conditional-tooltip.vr.tsx +0 -312
- package/src/ui/menu-item/__tests__/vr-tests/menu-item.vr.tsx +0 -210
- package/src/ui/menu-item/__tests__/vr-tests/top-level-spacer.vr.tsx +0 -17
- package/src/ui/menu-item/button-menu-item.tsx +0 -87
- package/src/ui/menu-item/constants.tsx +0 -15
- package/src/ui/menu-item/container-avatar.tsx +0 -39
- package/src/ui/menu-item/drag-and-drop/drag-preview.tsx +0 -98
- package/src/ui/menu-item/drag-and-drop/drop-indicator.tsx +0 -11
- package/src/ui/menu-item/drag-and-drop/group-drop-indicator.tsx +0 -7
- package/src/ui/menu-item/drag-and-drop/hitbox.tsx +0 -13
- package/src/ui/menu-item/drag-and-drop/use-menu-item-drag-and-drop.tsx +0 -243
- package/src/ui/menu-item/drag-handle.tsx +0 -42
- package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-content.tsx +0 -84
- package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-context.tsx +0 -61
- package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-level-context.tsx +0 -9
- package/src/ui/menu-item/expandable-menu-item/expandable-menu-item-trigger.tsx +0 -334
- package/src/ui/menu-item/expandable-menu-item/expandable-menu-item.tsx +0 -114
- package/src/ui/menu-item/flyout-menu-item/flyout-menu-item-content.tsx +0 -188
- package/src/ui/menu-item/flyout-menu-item/flyout-menu-item-context.tsx +0 -19
- package/src/ui/menu-item/flyout-menu-item/flyout-menu-item-trigger.tsx +0 -124
- package/src/ui/menu-item/flyout-menu-item/flyout-menu-item.tsx +0 -98
- package/src/ui/menu-item/link-menu-item.tsx +0 -119
- package/src/ui/menu-item/menu-item-signals.tsx +0 -6
- package/src/ui/menu-item/menu-item.tsx +0 -848
- package/src/ui/menu-item/menu-list-item.tsx +0 -12
- package/src/ui/menu-item/menu-list.tsx +0 -12
- package/src/ui/menu-item/top-level-spacer.tsx +0 -49
- package/src/ui/menu-item/types.tsx +0 -181
- package/src/ui/menu-item/use-scroll-menu-item-into-view.tsx +0 -78
- package/src/ui/menu-section/__tests__/unit/menu-section.test.tsx +0 -96
- package/src/ui/menu-section/__tests__/vr-tests/__snapshots__/divider/divider--default.png +0 -0
- package/src/ui/menu-section/__tests__/vr-tests/__snapshots__/menu-section/menu-section-example--default.png +0 -0
- package/src/ui/menu-section/__tests__/vr-tests/divider.vr.tsx +0 -14
- package/src/ui/menu-section/__tests__/vr-tests/menu-section.vr.tsx +0 -14
- package/src/ui/menu-section/divider.tsx +0 -33
- package/src/ui/menu-section/menu-section-context.tsx +0 -15
- package/src/ui/menu-section/menu-section-heading.tsx +0 -43
- package/src/ui/menu-section/menu-section.tsx +0 -70
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-lg---composition--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-lg---with-min-widths--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-lg--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-md---composition--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-md---with-min-widths--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-md--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-sm---with-min-widths--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-sm--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xl---composition--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xl---with-min-widths--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xl--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xs---with-min-widths--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/__snapshots__/top-nav/breakpoint-xs--firefox.png +0 -0
- package/src/ui/page-layout/__tests__/informational-vr-tests/page-layout.vr.tsx +0 -53
- package/src/ui/page-layout/__tests__/informational-vr-tests/slot-borders.vr.tsx +0 -54
- package/src/ui/page-layout/__tests__/informational-vr-tests/top-nav.vr.tsx +0 -170
- package/src/ui/page-layout/__tests__/unit/_test-utils.tsx +0 -185
- package/src/ui/page-layout/__tests__/unit/aside.test.tsx +0 -21
- package/src/ui/page-layout/__tests__/unit/banner.test.tsx +0 -31
- package/src/ui/page-layout/__tests__/unit/get-width.test.tsx +0 -12
- package/src/ui/page-layout/__tests__/unit/hoist-utils.test.tsx +0 -85
- package/src/ui/page-layout/__tests__/unit/page-layout.test.tsx +0 -300
- package/src/ui/page-layout/__tests__/unit/panel-splitter-and-suspense.test.tsx +0 -43
- package/src/ui/page-layout/__tests__/unit/panel-splitter.test.tsx +0 -885
- package/src/ui/page-layout/__tests__/unit/panel.test.tsx +0 -63
- package/src/ui/page-layout/__tests__/unit/react-safety.test.tsx +0 -30
- package/src/ui/page-layout/__tests__/unit/resizing.test.tsx +0 -714
- package/src/ui/page-layout/__tests__/unit/side-nav-flyout.test.tsx +0 -1154
- package/src/ui/page-layout/__tests__/unit/side-nav.test.tsx +0 -771
- package/src/ui/page-layout/__tests__/unit/sticky-header.test.tsx +0 -43
- package/src/ui/page-layout/__tests__/unit/top-nav-end.test.tsx +0 -132
- package/src/ui/page-layout/__tests__/unit/top-nav.test.tsx +0 -28
- package/src/ui/page-layout/__tests__/unit/use-expand-side-nav.test.tsx +0 -278
- package/src/ui/page-layout/__tests__/unit/use-toggle-side-nav.test.tsx +0 -233
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled-side-nav-collapsed--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-disabled-side-nav-collapsed--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-full-screen-mode--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-full-screen-mode--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-side-nav-collapsed--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/main-content-border/main-content-border---theming-enabled-side-nav-collapsed--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-banner-height-zero--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-banner-height-zero--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-custom-sizes--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-custom-sizes--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-rtl--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-rtl--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-scrollable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/all-slots-scrollable--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/aside-composed-with-border--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/aside-composed-with-border--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-collapsed--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-collapsed--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-custom-sizes--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-custom-sizes--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-panel-visible--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-panel-visible--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-resizable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-sibling-absolute-positioned-resizable--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-using-legacy-vars--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/edge-case-using-legacy-vars--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside-scrollable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/main-aside-scrollable--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/page-layout-implicit-rows--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/page-layout-implicit-rows--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---default-widths--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---default-widths--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---zero-widths--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-and-aside---zero-widths--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-default-background-color--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/panel-default-background-color--mobile.png +0 -0
- 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
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/resizable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-content-slot---scroll-with-sticky-child--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-custom-width-greater-than-max-width--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-custom-width-smaller-than-min-width--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside-scrollable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-main-aside-scrollable--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-overflowing-children--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-slots--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-with-menu-items--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/side-nav-with-menu-items--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside-scrollable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-aside-scrollable--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-scrollable--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/page-layout/top-bar-side-nav-main-scrollable--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/focused-panel-splitter-with-position-end--default.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/panel-splitter/focused-panel-splitter-with-position-start--default.png +0 -0
- 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
- 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
- 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
- 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
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-toggle-button-hovered--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-toggle-button-hovered--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-with-open-child-layer--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-collapsed-with-open-child-layer--mobile.png +0 -0
- 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
- 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
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-toggle-button-hovered--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-toggle-button-hovered--mobile.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-with-open-child-layer--desktop.png +0 -0
- package/src/ui/page-layout/__tests__/vr-tests/__snapshots__/side-nav-flyout/side-nav-default-expanded-with-open-child-layer--mobile.png +0 -0
- 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
- 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
- package/src/ui/page-layout/__tests__/vr-tests/main-content-border.vr.tsx +0 -47
- package/src/ui/page-layout/__tests__/vr-tests/page-layout.vr.tsx +0 -266
- package/src/ui/page-layout/__tests__/vr-tests/panel-splitter.vr.tsx +0 -72
- package/src/ui/page-layout/__tests__/vr-tests/side-nav-flyout.vr.tsx +0 -170
- package/src/ui/page-layout/aside.tsx +0 -210
- package/src/ui/page-layout/banner.tsx +0 -91
- package/src/ui/page-layout/constants.tsx +0 -56
- package/src/ui/page-layout/hoist-slot-sizes-context.tsx +0 -7
- package/src/ui/page-layout/hoist-utils.tsx +0 -64
- package/src/ui/page-layout/id-utils.tsx +0 -33
- package/src/ui/page-layout/main/main-sticky-header.tsx +0 -45
- package/src/ui/page-layout/main/main.tsx +0 -93
- package/src/ui/page-layout/panel-splitter/context.tsx +0 -60
- package/src/ui/page-layout/panel-splitter/convert-resize-bound-to-pixels.tsx +0 -20
- package/src/ui/page-layout/panel-splitter/get-percentage-within-pixel-bounds.tsx +0 -35
- package/src/ui/page-layout/panel-splitter/get-width.tsx +0 -33
- package/src/ui/page-layout/panel-splitter/keyboard-resize-manager.tsx +0 -89
- package/src/ui/page-layout/panel-splitter/panel-splitter.tsx +0 -560
- package/src/ui/page-layout/panel-splitter/provider.tsx +0 -66
- package/src/ui/page-layout/panel-splitter/types.tsx +0 -25
- package/src/ui/page-layout/panel.tsx +0 -308
- package/src/ui/page-layout/root.tsx +0 -162
- package/src/ui/page-layout/side-nav/element-context.tsx +0 -18
- package/src/ui/page-layout/side-nav/flyout-close-delay-ms.tsx +0 -12
- package/src/ui/page-layout/side-nav/side-nav-content.tsx +0 -57
- package/src/ui/page-layout/side-nav/side-nav-footer.tsx +0 -48
- package/src/ui/page-layout/side-nav/side-nav-header.tsx +0 -32
- package/src/ui/page-layout/side-nav/side-nav.tsx +0 -876
- package/src/ui/page-layout/side-nav/toggle-button-context.tsx +0 -21
- package/src/ui/page-layout/side-nav/toggle-button-provider.tsx +0 -28
- package/src/ui/page-layout/side-nav/toggle-button.tsx +0 -166
- package/src/ui/page-layout/side-nav/types.tsx +0 -18
- package/src/ui/page-layout/side-nav/use-expand-side-nav.tsx +0 -57
- package/src/ui/page-layout/side-nav/use-side-nav-visibility-callbacks.tsx +0 -75
- package/src/ui/page-layout/side-nav/use-side-nav-visibility.tsx +0 -43
- package/src/ui/page-layout/side-nav/use-toggle-side-nav.tsx +0 -47
- package/src/ui/page-layout/side-nav/visibility-context.tsx +0 -17
- package/src/ui/page-layout/side-nav/visibility-provider.tsx +0 -20
- package/src/ui/page-layout/top-nav/top-nav-end.tsx +0 -155
- package/src/ui/page-layout/top-nav/top-nav-middle.tsx +0 -90
- package/src/ui/page-layout/top-nav/top-nav-start.tsx +0 -82
- package/src/ui/page-layout/top-nav/top-nav.tsx +0 -127
- package/src/ui/page-layout/types.tsx +0 -20
- package/src/ui/page-layout/use-resizing-width-css-var-on-root-element.tsx +0 -70
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/long-product-name-tooltip--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover---custom-theming--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover---custom-theming--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-hover--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed---custom-theming--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed---custom-theming--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/nav-logo-pressed--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/responsive-menu-items--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/__snapshots__/top-navigation/responsive-menu-items-on-click--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/informational-vr-tests/top-navigation.vr.tsx +0 -120
- package/src/ui/top-nav-items/__tests__/playwright/theming.spec.tsx +0 -21
- package/src/ui/top-nav-items/__tests__/unit/chat-button.test.tsx +0 -40
- package/src/ui/top-nav-items/__tests__/unit/create-button.test.tsx +0 -34
- package/src/ui/top-nav-items/__tests__/unit/end-item.test.tsx +0 -43
- package/src/ui/top-nav-items/__tests__/unit/help.test.tsx +0 -101
- package/src/ui/top-nav-items/__tests__/unit/notifications.test.tsx +0 -63
- package/src/ui/top-nav-items/__tests__/unit/profile.test.tsx +0 -65
- package/src/ui/top-nav-items/__tests__/unit/settings.test.tsx +0 -51
- package/src/ui/top-nav-items/__tests__/unit/theming.test.tsx +0 -76
- package/src/ui/top-nav-items/__tests__/unit/top-nav-items.test.tsx +0 -181
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/log-in-button--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/search-right-elem--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theme-is-applied-with-an-hsl-color--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theme-is-applied-with-an-rgb-color--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theme-is-applied-with-customlogo--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-button-focus-state--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-button-hover-state--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-create-button-hover-state--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-link-button-focus-state--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-link-button-hover-state--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/themed-search-focus-state--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/theming-is-enabled--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-nav-custom-profile-image--default.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-nav-side-nav-collapsed--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-nav-side-nav-collapsed--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-example--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-example--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x200example--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x200example--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x20example--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image200x20example--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x200example--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x200example--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x20example--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-custom-logo-image20x20example--mobile.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-example--desktop.png +0 -0
- package/src/ui/top-nav-items/__tests__/vr-tests/__snapshots__/top-navigation/top-navigation-example--mobile.png +0 -0
- 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
- package/src/ui/top-nav-items/__tests__/vr-tests/top-navigation.vr.tsx +0 -160
- package/src/ui/top-nav-items/app-switcher.tsx +0 -81
- package/src/ui/top-nav-items/chat-button.tsx +0 -49
- package/src/ui/top-nav-items/create-button.tsx +0 -51
- package/src/ui/top-nav-items/custom-title.tsx +0 -83
- package/src/ui/top-nav-items/end-item.tsx +0 -120
- package/src/ui/top-nav-items/help.tsx +0 -69
- package/src/ui/top-nav-items/log-in.tsx +0 -66
- package/src/ui/top-nav-items/nav-logo/app-logo.tsx +0 -203
- package/src/ui/top-nav-items/nav-logo/custom-logo.tsx +0 -252
- package/src/ui/top-nav-items/nav-logo/logo-renderer.tsx +0 -66
- package/src/ui/top-nav-items/notifications.tsx +0 -67
- package/src/ui/top-nav-items/profile.tsx +0 -26
- package/src/ui/top-nav-items/search.tsx +0 -124
- package/src/ui/top-nav-items/settings.tsx +0 -16
- package/src/ui/top-nav-items/themed/__tests__/unit/button.test.tsx +0 -57
- package/src/ui/top-nav-items/themed/__tests__/unit/use-custom-theme.test.tsx +0 -43
- package/src/ui/top-nav-items/themed/button.tsx +0 -576
- package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/hex.test.tsx +0 -131
- package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/hsl.test.tsx +0 -117
- package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/rgb.test.tsx +0 -88
- package/src/ui/top-nav-items/themed/color-utils/__tests__/unit/try-parse-user-color.test.tsx +0 -35
- package/src/ui/top-nav-items/themed/color-utils/formats/hex.tsx +0 -47
- package/src/ui/top-nav-items/themed/color-utils/formats/hsl.tsx +0 -112
- package/src/ui/top-nav-items/themed/color-utils/formats/rgb.tsx +0 -41
- package/src/ui/top-nav-items/themed/color-utils/index.tsx +0 -111
- package/src/ui/top-nav-items/themed/color-utils/parse-user-color.tsx +0 -31
- package/src/ui/top-nav-items/themed/color-utils/types.tsx +0 -6
- package/src/ui/top-nav-items/themed/get-custom-theme-styles.tsx +0 -186
- package/src/ui/top-nav-items/themed/has-custom-theme-context.tsx +0 -13
- package/src/ui/top-nav-items/themed/migration.tsx +0 -70
- package/src/ui/top-nav-items/themed/palette.tsx +0 -53
- package/src/ui/top-nav-items/themed/search.tsx +0 -70
- package/src/ui/top-nav-items/themed/use-custom-theme.tsx +0 -51
- package/tsconfig.app.json +0 -91
- package/tsconfig.dev.json +0 -175
- 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
|
-
}
|