@buffercreations/levelsui 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/01. Elements/navigation/items/navigation-item/docs/README.md +4 -0
  2. package/01. Elements/navigation/items/navigation-item/src/navigation-item.scss +6 -3
  3. package/02. Layouts/application/app-shell/docs/README.md +4 -0
  4. package/02. Layouts/application/app-shell/docs/api.json +20 -1
  5. package/02. Layouts/application/app-shell/src/app-shell.scss +14 -2
  6. package/03. Components/navigation/bars/bottom-navigation-bar/bottom-navigation-bar.definition.json +35 -0
  7. package/03. Components/navigation/bars/bottom-navigation-bar/docs/README.md +9 -0
  8. package/03. Components/navigation/bars/bottom-navigation-bar/docs/api.json +31 -0
  9. package/03. Components/navigation/bars/bottom-navigation-bar/examples/index.json +10 -0
  10. package/03. Components/navigation/bars/bottom-navigation-bar/examples/standard/code.html +9 -0
  11. package/03. Components/navigation/bars/bottom-navigation-bar/examples/standard/preview.html +9 -0
  12. package/03. Components/navigation/bars/bottom-navigation-bar/src/bottom-navigation-bar.scss +38 -0
  13. package/03. Components/navigation/drawers/navigation-drawer/docs/README.md +5 -0
  14. package/03. Components/navigation/drawers/navigation-drawer/docs/api.json +36 -0
  15. package/03. Components/navigation/drawers/navigation-drawer/examples/index.json +10 -0
  16. package/03. Components/navigation/drawers/navigation-drawer/examples/standard/code.html +9 -0
  17. package/03. Components/navigation/drawers/navigation-drawer/examples/standard/preview.html +9 -0
  18. package/03. Components/navigation/drawers/navigation-drawer/navigation-drawer.definition.json +36 -0
  19. package/03. Components/navigation/drawers/navigation-drawer/src/navigation-drawer.scss +25 -0
  20. package/03. Components/navigation/rails/global-navigation-rail/docs/README.md +11 -0
  21. package/03. Components/navigation/rails/global-navigation-rail/docs/api.json +51 -0
  22. package/03. Components/navigation/rails/global-navigation-rail/examples/basic/code.html +21 -0
  23. package/03. Components/navigation/rails/global-navigation-rail/examples/basic/preview.html +21 -0
  24. package/03. Components/navigation/rails/global-navigation-rail/examples/horizontal/code.html +21 -0
  25. package/03. Components/navigation/rails/global-navigation-rail/examples/horizontal/preview.html +21 -0
  26. package/03. Components/navigation/rails/global-navigation-rail/examples/index.json +17 -0
  27. package/03. Components/navigation/rails/global-navigation-rail/global-navigation-rail.definition.json +37 -0
  28. package/03. Components/navigation/rails/global-navigation-rail/src/global-navigation-rail.scss +74 -0
  29. package/03. Components/navigation/sidebars/floating-contextual-navigation/docs/README.md +41 -0
  30. package/03. Components/navigation/sidebars/floating-contextual-navigation/docs/api.json +71 -0
  31. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/closed/code.html +74 -0
  32. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/closed/preview.html +74 -0
  33. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/index.json +24 -0
  34. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/joined/code.html +74 -0
  35. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/joined/preview.html +74 -0
  36. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/pinned/code.html +74 -0
  37. package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/pinned/preview.html +74 -0
  38. package/03. Components/navigation/sidebars/floating-contextual-navigation/floating-contextual-navigation.definition.json +42 -0
  39. package/03. Components/navigation/sidebars/floating-contextual-navigation/src/floating-contextual-navigation.js +227 -0
  40. package/03. Components/navigation/sidebars/floating-contextual-navigation/src/floating-contextual-navigation.scss +85 -0
  41. package/03. Components/navigation/sidebars/floating-sidebar/docs/README.md +18 -0
  42. package/03. Components/navigation/sidebars/floating-sidebar/examples/animated/code.html +2 -2
  43. package/03. Components/navigation/sidebars/floating-sidebar/examples/animated/preview.html +2 -2
  44. package/03. Components/navigation/sidebars/floating-sidebar/examples/branded/code.html +2 -2
  45. package/03. Components/navigation/sidebars/floating-sidebar/examples/branded/preview.html +2 -2
  46. package/03. Components/navigation/sidebars/floating-sidebar/examples/grouped/code.html +2 -2
  47. package/03. Components/navigation/sidebars/floating-sidebar/examples/grouped/preview.html +2 -2
  48. package/03. Components/navigation/sidebars/floating-sidebar/examples/long/code.html +2 -2
  49. package/03. Components/navigation/sidebars/floating-sidebar/examples/long/preview.html +2 -2
  50. package/03. Components/navigation/sidebars/floating-sidebar/examples/profile/code.html +2 -2
  51. package/03. Components/navigation/sidebars/floating-sidebar/examples/profile/preview.html +2 -2
  52. package/03. Components/navigation/sidebars/floating-sidebar/examples/standard/code.html +2 -2
  53. package/03. Components/navigation/sidebars/floating-sidebar/examples/standard/preview.html +2 -2
  54. package/03. Components/navigation/sidebars/floating-sidebar/src/floating-sidebar.js +14 -9
  55. package/03. Components/navigation/sidebars/floating-sidebar/src/floating-sidebar.scss +70 -16
  56. package/03. Components/navigation/sidebars/responsive-navigation/docs/README.md +25 -0
  57. package/03. Components/navigation/sidebars/responsive-navigation/docs/api.json +51 -0
  58. package/03. Components/navigation/sidebars/responsive-navigation/examples/drawer-only/code.html +95 -0
  59. package/03. Components/navigation/sidebars/responsive-navigation/examples/drawer-only/preview.html +95 -0
  60. package/03. Components/navigation/sidebars/responsive-navigation/examples/index.json +17 -0
  61. package/03. Components/navigation/sidebars/responsive-navigation/examples/standard/code.html +95 -0
  62. package/03. Components/navigation/sidebars/responsive-navigation/examples/standard/preview.html +95 -0
  63. package/03. Components/navigation/sidebars/responsive-navigation/responsive-navigation.definition.json +37 -0
  64. package/03. Components/navigation/sidebars/responsive-navigation/src/responsive-navigation.js +152 -0
  65. package/03. Components/navigation/sidebars/responsive-navigation/src/responsive-navigation.scss +82 -0
  66. package/dist/catalogue.json +88 -0
  67. package/dist/components/app-shell.css +10 -2
  68. package/dist/components/bottom-navigation-bar.css +44 -0
  69. package/dist/components/floating-contextual-navigation.css +84 -0
  70. package/dist/components/floating-sidebar.css +64 -11
  71. package/dist/components/global-navigation-rail.css +75 -0
  72. package/dist/components/navigation-drawer.css +23 -0
  73. package/dist/components/navigation-item.css +5 -3
  74. package/dist/components/responsive-navigation.css +92 -0
  75. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "kind": "authored",
4
+ "id": "global-navigation-rail",
5
+ "displayName": "Global Navigation Rail",
6
+ "description": "Icon-first global navigation rail with vertical and horizontal orientations, composed from Navigation Menu and Navigation Item.",
7
+ "level": "components",
8
+ "category": [
9
+ "navigation",
10
+ "rails"
11
+ ],
12
+ "className": "bcc-global-navigation-rail",
13
+ "source": {
14
+ "scss": "03. Components/navigation/rails/global-navigation-rail/src/global-navigation-rail.scss",
15
+ "css": "dist/components/global-navigation-rail.css"
16
+ },
17
+ "dependencies": {
18
+ "css": [
19
+ "foundations"
20
+ ],
21
+ "components": [
22
+ "navigation-menu"
23
+ ]
24
+ },
25
+ "documentation": {
26
+ "guide": "docs/README.md",
27
+ "api": "docs/api.json",
28
+ "examples": "examples/index.json"
29
+ },
30
+ "customisation": {
31
+ "variables": [
32
+ "--bcc-global-navigation-rail-width",
33
+ "--bcc-global-navigation-rail-height",
34
+ "--bcc-global-navigation-rail-surface"
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,74 @@
1
+ // Global Navigation Rail — Level 03 / Components.
2
+ // Navigation Menu and Navigation Item own the links, icons and interaction states.
3
+ .bcc-global-navigation-rail {
4
+ --bcc-global-navigation-rail-width: var(--bc-size-ui-64);
5
+ --bcc-global-navigation-rail-height: 100%;
6
+ --bcc-global-navigation-rail-surface: var(--bc-color-canvas-secondary);
7
+
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ box-sizing: border-box;
12
+ gap: var(--bc-fluid-xs);
13
+ inline-size: var(--bcc-global-navigation-rail-width);
14
+ block-size: var(--bcc-global-navigation-rail-height);
15
+ min-block-size: 0;
16
+ padding: var(--bc-fluid-2xs);
17
+ border-radius: var(--bc-radius-lg);
18
+ background: var(--bcc-global-navigation-rail-surface);
19
+ }
20
+
21
+ .bcc-global-navigation-rail > .bcc-navigation-menu {
22
+ inline-size: 100%;
23
+ min-inline-size: 0;
24
+ }
25
+
26
+ .bcc-global-navigation-rail__footer {
27
+ margin-block-start: auto;
28
+ inline-size: 100%;
29
+ }
30
+
31
+ // The same Rail, Menu and Item anatomy can occupy a horizontal track.
32
+ // Placement (bottom/header/inline) belongs to the consuming composition.
33
+ .bcc-global-navigation-rail[data-orientation="horizontal"] {
34
+ --bcc-global-navigation-rail-width: 100%;
35
+ --bcc-global-navigation-rail-height: auto;
36
+ flex-direction: row;
37
+ align-items: stretch;
38
+ padding-block-end: max(var(--bc-fluid-2xs), env(safe-area-inset-bottom));
39
+ }
40
+ .bcc-global-navigation-rail[data-orientation="horizontal"] > .bcc-navigation-menu {
41
+ min-inline-size: 0;
42
+ flex: 1 1 auto;
43
+ }
44
+ .bcc-global-navigation-rail[data-orientation="horizontal"] .bcc-navigation-menu__list {
45
+ display: flex;
46
+ flex-direction: row;
47
+ align-items: stretch;
48
+ justify-content: space-around;
49
+ gap: var(--bc-fluid-2xs);
50
+ }
51
+ .bcc-global-navigation-rail[data-orientation="horizontal"] .bcc-navigation-menu__item {
52
+ flex: 1 1 0;
53
+ min-inline-size: 0;
54
+ }
55
+ .bcc-global-navigation-rail[data-orientation="horizontal"] .bce-navigation-item {
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: center;
59
+ justify-content: center;
60
+ inline-size: 100%;
61
+ min-block-size: var(--bc-size-ui-48);
62
+ gap: var(--bc-fluid-3xs);
63
+ }
64
+ .bcc-global-navigation-rail[data-orientation="horizontal"] .bce-navigation-item__label {
65
+ max-inline-size: 100%;
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ white-space: nowrap;
69
+ }
70
+ .bcc-global-navigation-rail[data-orientation="horizontal"] > .bcc-global-navigation-rail__footer {
71
+ margin-block-start: 0;
72
+ margin-inline-start: auto;
73
+ inline-size: auto;
74
+ }
@@ -0,0 +1,41 @@
1
+ # Floating Contextual Navigation
2
+
3
+ Combines **Global Navigation Rail** and the existing **Floating Sidebar** treatment. The rail selects the Hub; the contextual panel holds its navigation. This Component manages state without changing App Shell or duplicating either child Asset's link styling.
4
+
5
+ ## Behaviour
6
+
7
+ - **Hover/focus a Hub icon:** temporarily show that Hub's navigation over the workspace.
8
+ - **Click a closed Hub:** pin its contextual navigation open; the workspace gives it room.
9
+ - **Click the pinned Hub again:** close the contextual navigation completely.
10
+ - **Click a different Hub:** keep the panel open and switch its content to that Hub.
11
+ - **Hover another Hub while one is pinned:** preview the hovered Hub; leaving restores the pinned Hub without changing its selection.
12
+ - **Close button inside the contextual panel:** immediately close the panel and clear pinning, even while the pointer remains over the navigation. Restoring rail focus must not reopen the preview. An explicit close suppresses **automatic pointer hover** preview until the pointer exits the navigation surfaces; keyboard navigation and explicit `preview()` calls remain available.
13
+ - **Escape:** close and restore focus to the relevant rail control.
14
+
15
+ Navigation Item owns the common visual treatment for both native rail links and the contextual Hub buttons, including selected `aria-pressed` state. Contextual Navigation does not apply custom Hub button colours, border or dimensions.
16
+
17
+ Only the contextual panel includes a close control. **No global-rail toggle** is added. Touch users activate Hub icons by tapping; keyboard users can focus and activate them.
18
+
19
+ ## Anatomy and setup
20
+
21
+ Use a native `button` with `data-contextual-hub="hub-id"` per rail Hub. Each needs a corresponding child section of the single panel marked `data-contextual-content="hub-id"`. The controller makes only one section visible, sets `aria-pressed` and `aria-expanded`, and dispatches `contextualnavigationchange` with `{state, hub, pinnedHub}`. Atlas or another application owns the Hub data, routing and persistence.
22
+
23
+ The panel header has one Asset-owned class for its layout, powered by BufferCore Semantic spacing; it does not stack utility classes on top of custom anatomy. The contextual panel reuses `bcc-floating-sidebar--embedded`, and its close control is `data-contextual-close`. **No independent Floating Sidebar collapse controller** runs inside the embedded example.
24
+
25
+ ## Gap option
26
+
27
+ Default spacing uses `--bcc-floating-contextual-navigation-gap: var(--bc-fluid-2xs)` between rail and panel. To join them, add `bcc-floating-contextual-navigation--joined`. Consumers can provide a different gap by overriding the existing CSS custom property in a stylesheet or Flavour. Both the overlay position and the pinned layout reservation use the same gap.
28
+
29
+ No new Core Behaviours, Foundations SCSS changes or optional Asset implementations are introduced. BufferCore's existing `--bc-motion-interaction` handles layout and panel transitions. Reduced-motion preferences are respected.
30
+
31
+ ## Shared Behaviour ownership
32
+
33
+ Escape dismissal is registered through BufferCore `registerDismissal` only while the panel is visible, and released on close/destroy. The contextual controller retains its Hub selection, hover-preview, pinning, content and focus-return orchestration. The independently mounted Floating Sidebar retains its collapse behaviour only when not embedded.
34
+
35
+ ## Responsive ownership
36
+
37
+ The `40rem` Floating Sidebar and `48rem` contextual layout thresholds are component-specific design decisions, not the shared BufferCore medium/large breakpoint bands. Keep these thresholds local unless responsive behaviour is deliberately migrated to the shared bands.
38
+
39
+ ## Responsive ownership
40
+
41
+ The `40rem` Floating Sidebar and `48rem` contextual layout thresholds are component-specific design decisions, not the shared BufferCore medium/large breakpoint bands. Keep these thresholds local unless responsive behaviour is deliberately migrated to the shared bands.
@@ -0,0 +1,71 @@
1
+ {
2
+ "variants": [
3
+ {
4
+ "id": "standard",
5
+ "className": "bcc-floating-contextual-navigation",
6
+ "default": true
7
+ },
8
+ {
9
+ "id": "joined",
10
+ "className": "bcc-floating-contextual-navigation--joined",
11
+ "description": "Rail and contextual Sidebar touch, with zero intervening gap."
12
+ }
13
+ ],
14
+ "anatomy": [
15
+ "root (required)",
16
+ "global navigation rail (required)",
17
+ "contextual panel (required)",
18
+ "workspace content region (required)"
19
+ ],
20
+ "properties": [
21
+ {
22
+ "name": "Hub",
23
+ "type": "data-contextual-hub",
24
+ "description": "Unique Hub ID on each global rail button; clicking pins or toggles that Hub."
25
+ },
26
+ {
27
+ "name": "Hub content",
28
+ "type": "data-contextual-content",
29
+ "description": "One matching section per Hub, inside the single contextual panel."
30
+ },
31
+ {
32
+ "name": "State",
33
+ "type": "data-state",
34
+ "default": "closed",
35
+ "description": "closed, preview or pinned, owned by the component controller."
36
+ },
37
+ {
38
+ "name": "Panel width",
39
+ "type": "CSS variable",
40
+ "description": "--bcc-floating-contextual-navigation-panel-width"
41
+ },
42
+ {
43
+ "name": "Gap",
44
+ "type": "CSS variable",
45
+ "description": "--bcc-floating-contextual-navigation-gap; --joined sets it to 0px."
46
+ }
47
+ ],
48
+ "accessibility": [
49
+ "Hub controls are buttons with accessible names, aria-pressed (pinned) and aria-expanded (currently visible).",
50
+ "One panel has a close button; the global rail has no separate open/close toggle.",
51
+ "Only the matching Hub content is visible; inactive sections use hidden.",
52
+ "Closed contextual navigation is inert and aria-hidden.",
53
+ "Hover preview is also available through focus, and clicking/tapping pins the selected Hub.",
54
+ "Escape closes the panel and restores focus to the relevant Hub control."
55
+ ],
56
+ "tags": [
57
+ "navigation",
58
+ "floating",
59
+ "global rail",
60
+ "sidebar",
61
+ "contextual",
62
+ "hover preview",
63
+ "pinning"
64
+ ],
65
+ "notes": [
66
+ "Reuses Floating Sidebar embedded styling and Global Navigation Rail.",
67
+ "Supports independent hovered and pinned Hub selection without duplicating the panel.",
68
+ "Navigation routing and Hub content are supplied by the consumer application.",
69
+ "No changes to App Shell or BufferCore Foundations."
70
+ ]
71
+ }
@@ -0,0 +1,74 @@
1
+ <div class="bcc-floating-contextual-navigation" data-state="closed">
2
+ <aside class="bcc-global-navigation-rail bcc-floating-contextual-navigation__global" aria-label="Atlas Hubs">
3
+ <nav class="bcc-navigation-menu" aria-label="Hubs">
4
+ <ul class="bcc-navigation-menu__list">
5
+ <li class="bcc-navigation-menu__item">
6
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="home" aria-label="Home" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
7
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span>
8
+ </button>
9
+ </li>
10
+ <li class="bcc-navigation-menu__item">
11
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="clients" aria-label="Clients" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
12
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span>
13
+ </button>
14
+ </li>
15
+ <li class="bcc-navigation-menu__item">
16
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="creative" aria-label="Creative" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
17
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span>
18
+ </button>
19
+ </li>
20
+ </ul>
21
+ </nav>
22
+ </aside>
23
+ <aside class="bcc-floating-contextual-navigation__panel" id="atlas-context-panel" aria-label="Hub navigation" aria-hidden="true">
24
+ <div class="bcl-sidebar bcc-floating-sidebar bcc-floating-sidebar--embedded">
25
+ <div class="bcl-sidebar__aside bcc-floating-sidebar__rail">
26
+ <div class="bcc-floating-contextual-navigation__panel-header">
27
+ <strong data-contextual-title>Clients</strong>
28
+ <button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-contextual-navigation__close" type="button" data-contextual-close aria-label="Close contextual navigation">
29
+ <iconify-icon icon="hugeicons:arrow-left-01" aria-hidden="true"></iconify-icon>
30
+ </button>
31
+ </div>
32
+ <section data-contextual-content="home" hidden>
33
+ <nav class="bcc-navigation-menu" aria-label="Home workspaces">
34
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
35
+ <ul class="bcc-navigation-menu__list">
36
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard"><span class="bce-navigation-item__label">Dashboard</span></a></li>
37
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-activity"><span class="bce-navigation-item__label">Activity</span></a></li>
38
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
39
+ </ul>
40
+ </nav>
41
+ </section>
42
+ <section data-contextual-content="clients" hidden>
43
+ <nav class="bcc-navigation-menu" aria-label="Clients workspaces">
44
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
45
+ <ul class="bcc-navigation-menu__list">
46
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
47
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-client-directory"><span class="bce-navigation-item__label">Client Directory</span></a></li>
48
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects"><span class="bce-navigation-item__label">Projects</span></a></li>
49
+ </ul>
50
+ <h3 class="bcc-navigation-menu__heading">Management</h3>
51
+ <ul class="bcc-navigation-menu__list">
52
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-agreements"><span class="bce-navigation-item__label">Agreements</span></a></li>
53
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
54
+ </ul>
55
+ </nav>
56
+ </section>
57
+ <section data-contextual-content="creative" hidden>
58
+ <nav class="bcc-navigation-menu" aria-label="Creative workspaces">
59
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
60
+ <ul class="bcc-navigation-menu__list">
61
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
62
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-design-studio"><span class="bce-navigation-item__label">Design Studio</span></a></li>
63
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-assets"><span class="bce-navigation-item__label">Assets</span></a></li>
64
+ </ul>
65
+ </nav>
66
+ </section>
67
+ </div>
68
+ </div>
69
+ </aside>
70
+ <main class="bcc-floating-contextual-navigation__workspace bc-p-sm">
71
+ <h2>Workspace</h2>
72
+ <p>Hover a Hub icon for a temporary preview. Click it to pin its navigation; click again to close.</p>
73
+ </main>
74
+ </div>
@@ -0,0 +1,74 @@
1
+ <div class="bcc-floating-contextual-navigation" data-state="closed">
2
+ <aside class="bcc-global-navigation-rail bcc-floating-contextual-navigation__global" aria-label="Atlas Hubs">
3
+ <nav class="bcc-navigation-menu" aria-label="Hubs">
4
+ <ul class="bcc-navigation-menu__list">
5
+ <li class="bcc-navigation-menu__item">
6
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="home" aria-label="Home" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
7
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span>
8
+ </button>
9
+ </li>
10
+ <li class="bcc-navigation-menu__item">
11
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="clients" aria-label="Clients" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
12
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span>
13
+ </button>
14
+ </li>
15
+ <li class="bcc-navigation-menu__item">
16
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="creative" aria-label="Creative" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
17
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span>
18
+ </button>
19
+ </li>
20
+ </ul>
21
+ </nav>
22
+ </aside>
23
+ <aside class="bcc-floating-contextual-navigation__panel" id="atlas-context-panel" aria-label="Hub navigation" aria-hidden="true">
24
+ <div class="bcl-sidebar bcc-floating-sidebar bcc-floating-sidebar--embedded">
25
+ <div class="bcl-sidebar__aside bcc-floating-sidebar__rail">
26
+ <div class="bcc-floating-contextual-navigation__panel-header">
27
+ <strong data-contextual-title>Clients</strong>
28
+ <button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-contextual-navigation__close" type="button" data-contextual-close aria-label="Close contextual navigation">
29
+ <iconify-icon icon="hugeicons:arrow-left-01" aria-hidden="true"></iconify-icon>
30
+ </button>
31
+ </div>
32
+ <section data-contextual-content="home" hidden>
33
+ <nav class="bcc-navigation-menu" aria-label="Home workspaces">
34
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
35
+ <ul class="bcc-navigation-menu__list">
36
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard"><span class="bce-navigation-item__label">Dashboard</span></a></li>
37
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-activity"><span class="bce-navigation-item__label">Activity</span></a></li>
38
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
39
+ </ul>
40
+ </nav>
41
+ </section>
42
+ <section data-contextual-content="clients" hidden>
43
+ <nav class="bcc-navigation-menu" aria-label="Clients workspaces">
44
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
45
+ <ul class="bcc-navigation-menu__list">
46
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
47
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-client-directory"><span class="bce-navigation-item__label">Client Directory</span></a></li>
48
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects"><span class="bce-navigation-item__label">Projects</span></a></li>
49
+ </ul>
50
+ <h3 class="bcc-navigation-menu__heading">Management</h3>
51
+ <ul class="bcc-navigation-menu__list">
52
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-agreements"><span class="bce-navigation-item__label">Agreements</span></a></li>
53
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
54
+ </ul>
55
+ </nav>
56
+ </section>
57
+ <section data-contextual-content="creative" hidden>
58
+ <nav class="bcc-navigation-menu" aria-label="Creative workspaces">
59
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
60
+ <ul class="bcc-navigation-menu__list">
61
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
62
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-design-studio"><span class="bce-navigation-item__label">Design Studio</span></a></li>
63
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-assets"><span class="bce-navigation-item__label">Assets</span></a></li>
64
+ </ul>
65
+ </nav>
66
+ </section>
67
+ </div>
68
+ </div>
69
+ </aside>
70
+ <main class="bcc-floating-contextual-navigation__workspace bc-p-sm">
71
+ <h2>Workspace</h2>
72
+ <p>Hover a Hub icon for a temporary preview. Click it to pin its navigation; click again to close.</p>
73
+ </main>
74
+ </div>
@@ -0,0 +1,24 @@
1
+ [
2
+ {
3
+ "id": "closed",
4
+ "title": "Closed / hover preview",
5
+ "description": "Hover an individual Hub icon to preview its navigation. Click a Hub to pin; click the same Hub again to close.",
6
+ "preview": "examples/closed/preview.html",
7
+ "code": "examples/closed/code.html",
8
+ "isBase": true
9
+ },
10
+ {
11
+ "id": "pinned",
12
+ "title": "Pinned open",
13
+ "description": "Contextual sidebar begins pinned and uses layout width instead of overlaying workspace.",
14
+ "preview": "examples/pinned/preview.html",
15
+ "code": "examples/pinned/code.html"
16
+ },
17
+ {
18
+ "id": "joined",
19
+ "title": "Joined rail and panel",
20
+ "description": "Pinned Hub navigation with zero gap between the rail and contextual Sidebar. All Hub interactions remain available.",
21
+ "preview": "examples/joined/preview.html",
22
+ "code": "examples/joined/code.html"
23
+ }
24
+ ]
@@ -0,0 +1,74 @@
1
+ <div class="bcc-floating-contextual-navigation bcc-floating-contextual-navigation--joined" data-state="pinned" data-hub="clients">
2
+ <aside class="bcc-global-navigation-rail bcc-floating-contextual-navigation__global" aria-label="Atlas Hubs">
3
+ <nav class="bcc-navigation-menu" aria-label="Hubs">
4
+ <ul class="bcc-navigation-menu__list">
5
+ <li class="bcc-navigation-menu__item">
6
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="home" aria-label="Home" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
7
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span>
8
+ </button>
9
+ </li>
10
+ <li class="bcc-navigation-menu__item">
11
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="clients" aria-label="Clients" aria-pressed="true" aria-expanded="true" aria-controls="atlas-context-panel">
12
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span>
13
+ </button>
14
+ </li>
15
+ <li class="bcc-navigation-menu__item">
16
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="creative" aria-label="Creative" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
17
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span>
18
+ </button>
19
+ </li>
20
+ </ul>
21
+ </nav>
22
+ </aside>
23
+ <aside class="bcc-floating-contextual-navigation__panel" id="atlas-context-panel" aria-label="Hub navigation" aria-hidden="false">
24
+ <div class="bcl-sidebar bcc-floating-sidebar bcc-floating-sidebar--embedded">
25
+ <div class="bcl-sidebar__aside bcc-floating-sidebar__rail">
26
+ <div class="bcc-floating-contextual-navigation__panel-header">
27
+ <strong data-contextual-title>Clients</strong>
28
+ <button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-contextual-navigation__close" type="button" data-contextual-close aria-label="Close contextual navigation">
29
+ <iconify-icon icon="hugeicons:arrow-left-01" aria-hidden="true"></iconify-icon>
30
+ </button>
31
+ </div>
32
+ <section data-contextual-content="home" hidden>
33
+ <nav class="bcc-navigation-menu" aria-label="Home workspaces">
34
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
35
+ <ul class="bcc-navigation-menu__list">
36
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard"><span class="bce-navigation-item__label">Dashboard</span></a></li>
37
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-activity"><span class="bce-navigation-item__label">Activity</span></a></li>
38
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
39
+ </ul>
40
+ </nav>
41
+ </section>
42
+ <section data-contextual-content="clients">
43
+ <nav class="bcc-navigation-menu" aria-label="Clients workspaces">
44
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
45
+ <ul class="bcc-navigation-menu__list">
46
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
47
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-client-directory"><span class="bce-navigation-item__label">Client Directory</span></a></li>
48
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects"><span class="bce-navigation-item__label">Projects</span></a></li>
49
+ </ul>
50
+ <h3 class="bcc-navigation-menu__heading">Management</h3>
51
+ <ul class="bcc-navigation-menu__list">
52
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-agreements"><span class="bce-navigation-item__label">Agreements</span></a></li>
53
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
54
+ </ul>
55
+ </nav>
56
+ </section>
57
+ <section data-contextual-content="creative" hidden>
58
+ <nav class="bcc-navigation-menu" aria-label="Creative workspaces">
59
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
60
+ <ul class="bcc-navigation-menu__list">
61
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
62
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-design-studio"><span class="bce-navigation-item__label">Design Studio</span></a></li>
63
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-assets"><span class="bce-navigation-item__label">Assets</span></a></li>
64
+ </ul>
65
+ </nav>
66
+ </section>
67
+ </div>
68
+ </div>
69
+ </aside>
70
+ <main class="bcc-floating-contextual-navigation__workspace bc-p-sm">
71
+ <h2>Workspace</h2>
72
+ <p>Hover a Hub icon for a temporary preview. Click it to pin its navigation; click again to close.</p>
73
+ </main>
74
+ </div>
@@ -0,0 +1,74 @@
1
+ <div class="bcc-floating-contextual-navigation bcc-floating-contextual-navigation--joined" data-state="pinned" data-hub="clients">
2
+ <aside class="bcc-global-navigation-rail bcc-floating-contextual-navigation__global" aria-label="Atlas Hubs">
3
+ <nav class="bcc-navigation-menu" aria-label="Hubs">
4
+ <ul class="bcc-navigation-menu__list">
5
+ <li class="bcc-navigation-menu__item">
6
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="home" aria-label="Home" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
7
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span>
8
+ </button>
9
+ </li>
10
+ <li class="bcc-navigation-menu__item">
11
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="clients" aria-label="Clients" aria-pressed="true" aria-expanded="true" aria-controls="atlas-context-panel">
12
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span>
13
+ </button>
14
+ </li>
15
+ <li class="bcc-navigation-menu__item">
16
+ <button type="button" class="bce-navigation-item bce-navigation-item--icon-only" data-contextual-hub="creative" aria-label="Creative" aria-pressed="false" aria-expanded="false" aria-controls="atlas-context-panel">
17
+ <span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span>
18
+ </button>
19
+ </li>
20
+ </ul>
21
+ </nav>
22
+ </aside>
23
+ <aside class="bcc-floating-contextual-navigation__panel" id="atlas-context-panel" aria-label="Hub navigation" aria-hidden="false">
24
+ <div class="bcl-sidebar bcc-floating-sidebar bcc-floating-sidebar--embedded">
25
+ <div class="bcl-sidebar__aside bcc-floating-sidebar__rail">
26
+ <div class="bcc-floating-contextual-navigation__panel-header">
27
+ <strong data-contextual-title>Clients</strong>
28
+ <button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-contextual-navigation__close" type="button" data-contextual-close aria-label="Close contextual navigation">
29
+ <iconify-icon icon="hugeicons:arrow-left-01" aria-hidden="true"></iconify-icon>
30
+ </button>
31
+ </div>
32
+ <section data-contextual-content="home" hidden>
33
+ <nav class="bcc-navigation-menu" aria-label="Home workspaces">
34
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
35
+ <ul class="bcc-navigation-menu__list">
36
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard"><span class="bce-navigation-item__label">Dashboard</span></a></li>
37
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-activity"><span class="bce-navigation-item__label">Activity</span></a></li>
38
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
39
+ </ul>
40
+ </nav>
41
+ </section>
42
+ <section data-contextual-content="clients">
43
+ <nav class="bcc-navigation-menu" aria-label="Clients workspaces">
44
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
45
+ <ul class="bcc-navigation-menu__list">
46
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
47
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-client-directory"><span class="bce-navigation-item__label">Client Directory</span></a></li>
48
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects"><span class="bce-navigation-item__label">Projects</span></a></li>
49
+ </ul>
50
+ <h3 class="bcc-navigation-menu__heading">Management</h3>
51
+ <ul class="bcc-navigation-menu__list">
52
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-agreements"><span class="bce-navigation-item__label">Agreements</span></a></li>
53
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
54
+ </ul>
55
+ </nav>
56
+ </section>
57
+ <section data-contextual-content="creative" hidden>
58
+ <nav class="bcc-navigation-menu" aria-label="Creative workspaces">
59
+ <h3 class="bcc-navigation-menu__heading">Workspace</h3>
60
+ <ul class="bcc-navigation-menu__list">
61
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
62
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-design-studio"><span class="bce-navigation-item__label">Design Studio</span></a></li>
63
+ <li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-assets"><span class="bce-navigation-item__label">Assets</span></a></li>
64
+ </ul>
65
+ </nav>
66
+ </section>
67
+ </div>
68
+ </div>
69
+ </aside>
70
+ <main class="bcc-floating-contextual-navigation__workspace bc-p-sm">
71
+ <h2>Workspace</h2>
72
+ <p>Hover a Hub icon for a temporary preview. Click it to pin its navigation; click again to close.</p>
73
+ </main>
74
+ </div>