@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.
- package/01. Elements/navigation/items/navigation-item/docs/README.md +4 -0
- package/01. Elements/navigation/items/navigation-item/src/navigation-item.scss +6 -3
- package/02. Layouts/application/app-shell/docs/README.md +4 -0
- package/02. Layouts/application/app-shell/docs/api.json +20 -1
- package/02. Layouts/application/app-shell/src/app-shell.scss +14 -2
- package/03. Components/navigation/bars/bottom-navigation-bar/bottom-navigation-bar.definition.json +35 -0
- package/03. Components/navigation/bars/bottom-navigation-bar/docs/README.md +9 -0
- package/03. Components/navigation/bars/bottom-navigation-bar/docs/api.json +31 -0
- package/03. Components/navigation/bars/bottom-navigation-bar/examples/index.json +10 -0
- package/03. Components/navigation/bars/bottom-navigation-bar/examples/standard/code.html +9 -0
- package/03. Components/navigation/bars/bottom-navigation-bar/examples/standard/preview.html +9 -0
- package/03. Components/navigation/bars/bottom-navigation-bar/src/bottom-navigation-bar.scss +38 -0
- package/03. Components/navigation/drawers/navigation-drawer/docs/README.md +5 -0
- package/03. Components/navigation/drawers/navigation-drawer/docs/api.json +36 -0
- package/03. Components/navigation/drawers/navigation-drawer/examples/index.json +10 -0
- package/03. Components/navigation/drawers/navigation-drawer/examples/standard/code.html +9 -0
- package/03. Components/navigation/drawers/navigation-drawer/examples/standard/preview.html +9 -0
- package/03. Components/navigation/drawers/navigation-drawer/navigation-drawer.definition.json +36 -0
- package/03. Components/navigation/drawers/navigation-drawer/src/navigation-drawer.scss +25 -0
- package/03. Components/navigation/rails/global-navigation-rail/docs/README.md +11 -0
- package/03. Components/navigation/rails/global-navigation-rail/docs/api.json +51 -0
- package/03. Components/navigation/rails/global-navigation-rail/examples/basic/code.html +21 -0
- package/03. Components/navigation/rails/global-navigation-rail/examples/basic/preview.html +21 -0
- package/03. Components/navigation/rails/global-navigation-rail/examples/horizontal/code.html +21 -0
- package/03. Components/navigation/rails/global-navigation-rail/examples/horizontal/preview.html +21 -0
- package/03. Components/navigation/rails/global-navigation-rail/examples/index.json +17 -0
- package/03. Components/navigation/rails/global-navigation-rail/global-navigation-rail.definition.json +37 -0
- package/03. Components/navigation/rails/global-navigation-rail/src/global-navigation-rail.scss +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/docs/README.md +41 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/docs/api.json +71 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/closed/code.html +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/closed/preview.html +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/index.json +24 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/joined/code.html +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/joined/preview.html +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/pinned/code.html +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/examples/pinned/preview.html +74 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/floating-contextual-navigation.definition.json +42 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/src/floating-contextual-navigation.js +227 -0
- package/03. Components/navigation/sidebars/floating-contextual-navigation/src/floating-contextual-navigation.scss +85 -0
- package/03. Components/navigation/sidebars/floating-sidebar/docs/README.md +18 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/animated/code.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/animated/preview.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/branded/code.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/branded/preview.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/grouped/code.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/grouped/preview.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/long/code.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/long/preview.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/profile/code.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/profile/preview.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/standard/code.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/examples/standard/preview.html +2 -2
- package/03. Components/navigation/sidebars/floating-sidebar/src/floating-sidebar.js +14 -9
- package/03. Components/navigation/sidebars/floating-sidebar/src/floating-sidebar.scss +70 -16
- package/03. Components/navigation/sidebars/responsive-navigation/docs/README.md +25 -0
- package/03. Components/navigation/sidebars/responsive-navigation/docs/api.json +51 -0
- package/03. Components/navigation/sidebars/responsive-navigation/examples/drawer-only/code.html +95 -0
- package/03. Components/navigation/sidebars/responsive-navigation/examples/drawer-only/preview.html +95 -0
- package/03. Components/navigation/sidebars/responsive-navigation/examples/index.json +17 -0
- package/03. Components/navigation/sidebars/responsive-navigation/examples/standard/code.html +95 -0
- package/03. Components/navigation/sidebars/responsive-navigation/examples/standard/preview.html +95 -0
- package/03. Components/navigation/sidebars/responsive-navigation/responsive-navigation.definition.json +37 -0
- package/03. Components/navigation/sidebars/responsive-navigation/src/responsive-navigation.js +152 -0
- package/03. Components/navigation/sidebars/responsive-navigation/src/responsive-navigation.scss +82 -0
- package/dist/catalogue.json +88 -0
- package/dist/components/app-shell.css +10 -2
- package/dist/components/bottom-navigation-bar.css +44 -0
- package/dist/components/floating-contextual-navigation.css +84 -0
- package/dist/components/floating-sidebar.css +64 -11
- package/dist/components/global-navigation-rail.css +75 -0
- package/dist/components/navigation-drawer.css +23 -0
- package/dist/components/navigation-item.css +5 -3
- package/dist/components/responsive-navigation.css +92 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<header class="bcc-floating-sidebar__header">
|
|
4
4
|
<strong class="bcc-floating-sidebar__brand">Workspace</strong>
|
|
5
5
|
<button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-sidebar__toggle" type="button" aria-label="Collapse sidebar" aria-expanded="true">
|
|
6
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
7
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
6
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-left-01"></iconify-icon></span>
|
|
7
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-right-01"></iconify-icon></span>
|
|
8
8
|
</button>
|
|
9
9
|
</header>
|
|
10
10
|
<nav class="bcc-navigation-menu" aria-label="Floating sidebar navigation">
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<header class="bcc-floating-sidebar__header">
|
|
4
4
|
<strong class="bcc-floating-sidebar__brand">Workspace</strong>
|
|
5
5
|
<button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-sidebar__toggle" type="button" aria-label="Collapse sidebar" aria-expanded="true">
|
|
6
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
7
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
6
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-left-01"></iconify-icon></span>
|
|
7
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-right-01"></iconify-icon></span>
|
|
8
8
|
</button>
|
|
9
9
|
</header>
|
|
10
10
|
<nav class="bcc-navigation-menu" aria-label="Floating sidebar navigation">
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<aside class="bcl-sidebar__aside bcc-floating-sidebar__rail" aria-label="Workspace sidebar">
|
|
3
3
|
<header class="bcc-floating-sidebar__header">
|
|
4
4
|
<button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-sidebar__toggle" type="button" aria-label="Collapse sidebar" aria-expanded="true">
|
|
5
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
6
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
5
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-left-01"></iconify-icon></span>
|
|
6
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-right-01"></iconify-icon></span>
|
|
7
7
|
</button>
|
|
8
8
|
</header>
|
|
9
9
|
<nav class="bcc-navigation-menu" aria-label="Floating sidebar navigation">
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<aside class="bcl-sidebar__aside bcc-floating-sidebar__rail" aria-label="Workspace sidebar">
|
|
3
3
|
<header class="bcc-floating-sidebar__header">
|
|
4
4
|
<button class="bce-button bce-button--ghost bce-button--icon-only bcc-floating-sidebar__toggle" type="button" aria-label="Collapse sidebar" aria-expanded="true">
|
|
5
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
6
|
-
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:
|
|
5
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--collapse" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-left-01"></iconify-icon></span>
|
|
6
|
+
<span class="bcc-floating-sidebar__toggle-icon bcc-floating-sidebar__toggle-icon--expand" aria-hidden="true"><iconify-icon icon="hugeicons:arrow-right-01"></iconify-icon></span>
|
|
7
7
|
</button>
|
|
8
8
|
</header>
|
|
9
9
|
<nav class="bcc-navigation-menu" aria-label="Floating sidebar navigation">
|
|
@@ -12,6 +12,13 @@ export function mountFloatingSidebar(root) {
|
|
|
12
12
|
if (!root?.querySelector) throw new TypeError('Floating Sidebar requires an element root');
|
|
13
13
|
if (instances.has(root)) return instances.get(root);
|
|
14
14
|
|
|
15
|
+
// A composed, panel-only Sidebar has no independent expand/collapse control.
|
|
16
|
+
if (root.classList.contains('bcc-floating-sidebar--embedded')) {
|
|
17
|
+
const controller = { destroy() { instances.delete(root); } };
|
|
18
|
+
instances.set(root, controller);
|
|
19
|
+
return controller;
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
const toggle = root.querySelector('.bcc-floating-sidebar__toggle');
|
|
16
23
|
const rail = root.querySelector('.bcc-floating-sidebar__rail');
|
|
17
24
|
const nav = root.querySelector('.bcc-navigation-menu');
|
|
@@ -22,15 +29,14 @@ export function mountFloatingSidebar(root) {
|
|
|
22
29
|
throw new Error('Floating Sidebar toggle must belong to this instance');
|
|
23
30
|
}
|
|
24
31
|
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
const
|
|
32
|
+
// Opt into the Navigation Item's existing collapse transition only for this
|
|
33
|
+
// animated instance. Keep track of ownership so teardown preserves consumer classes.
|
|
34
|
+
const animatedItems = [];
|
|
28
35
|
if (root.classList.contains('bcc-floating-sidebar--animated')) {
|
|
29
36
|
for (const item of nav.querySelectorAll('.bce-navigation-item--collapsible')) {
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
37
|
+
if (item.classList.contains('bce-navigation-item--animated')) continue;
|
|
38
|
+
item.classList.add('bce-navigation-item--animated');
|
|
39
|
+
animatedItems.push(item);
|
|
34
40
|
}
|
|
35
41
|
}
|
|
36
42
|
|
|
@@ -63,8 +69,7 @@ export function mountFloatingSidebar(root) {
|
|
|
63
69
|
if (destroyed) return;
|
|
64
70
|
destroyed = true;
|
|
65
71
|
toggle.removeEventListener('click', onClick);
|
|
66
|
-
|
|
67
|
-
for (const item of addedMotionClasses) item.classList.remove('bce-navigation-item--animated');
|
|
72
|
+
for (const item of animatedItems) item.classList.remove('bce-navigation-item--animated');
|
|
68
73
|
instances.delete(root);
|
|
69
74
|
},
|
|
70
75
|
};
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
// own link presentation. This Asset owns floating treatment and rail state only.
|
|
4
4
|
.bcc-floating-sidebar {
|
|
5
5
|
--bcc-floating-sidebar-width: var(--bc-size-ui-256);
|
|
6
|
-
--bcc-floating-sidebar-rail-width:
|
|
6
|
+
--bcc-floating-sidebar-rail-width: calc(
|
|
7
|
+
var(--bcc-floating-sidebar-padding) * 2 +
|
|
8
|
+
var(--bc-size-ui-16) * 2 +
|
|
9
|
+
var(--bc-size-ui-20)
|
|
10
|
+
);
|
|
7
11
|
--bcc-floating-sidebar-gap: var(--bc-fluid-md);
|
|
8
12
|
--bcc-floating-sidebar-padding: var(--bc-fluid-xs);
|
|
9
13
|
--bcc-floating-sidebar-surface: var(--bc-color-canvas-secondary);
|
|
10
14
|
--bcc-floating-sidebar-radius: var(--bc-radius-lg);
|
|
11
15
|
--bcc-floating-sidebar-toggle-size: var(--bc-size-ui-40);
|
|
16
|
+
--bcc-floating-sidebar-height: calc(100dvh - var(--bcc-floating-sidebar-gap) - var(--bcc-floating-sidebar-gap));
|
|
12
17
|
|
|
13
18
|
// The generic Sidebar Layout still supplies the structural regions.
|
|
14
19
|
// This design fixes its aside to the required width, preserving a flexible main.
|
|
@@ -24,7 +29,8 @@
|
|
|
24
29
|
flex: 0 0 var(--bcc-floating-sidebar-width);
|
|
25
30
|
box-sizing: border-box;
|
|
26
31
|
inline-size: var(--bcc-floating-sidebar-width);
|
|
27
|
-
|
|
32
|
+
block-size: var(--bcc-floating-sidebar-height);
|
|
33
|
+
max-block-size: var(--bcc-floating-sidebar-height);
|
|
28
34
|
min-inline-size: 0;
|
|
29
35
|
padding: var(--bcc-floating-sidebar-padding);
|
|
30
36
|
overflow-x: clip;
|
|
@@ -33,6 +39,11 @@
|
|
|
33
39
|
background: var(--bcc-floating-sidebar-surface);
|
|
34
40
|
}
|
|
35
41
|
|
|
42
|
+
// Opt out of viewport height where a content-sized sidebar is more appropriate.
|
|
43
|
+
.bcc-floating-sidebar--fit-content > .bcc-floating-sidebar__rail {
|
|
44
|
+
block-size: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
36
47
|
.bcc-floating-sidebar > .bcc-floating-sidebar__main {
|
|
37
48
|
flex: 1 1 0;
|
|
38
49
|
min-inline-size: 0;
|
|
@@ -83,34 +94,55 @@
|
|
|
83
94
|
display: inline-flex;
|
|
84
95
|
align-items: center;
|
|
85
96
|
justify-content: center;
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: 0;
|
|
99
|
+
margin: auto;
|
|
86
100
|
inline-size: var(--bc-size-ui-20);
|
|
87
101
|
block-size: var(--bc-size-ui-20);
|
|
102
|
+
transform: translateX(0);
|
|
103
|
+
opacity: 1;
|
|
104
|
+
pointer-events: none;
|
|
88
105
|
}
|
|
89
106
|
.bcc-floating-sidebar__toggle-icon > iconify-icon { inline-size: 100%; block-size: 100%; }
|
|
90
|
-
.bcc-floating-sidebar__toggle-icon--expand {
|
|
107
|
+
.bcc-floating-sidebar__toggle-icon--expand { opacity: 0; transform: translateX(-3px); }
|
|
108
|
+
.bcc-floating-sidebar--animated .bcc-floating-sidebar__toggle-icon {
|
|
109
|
+
transition: opacity var(--bc-motion-interaction), transform var(--bc-motion-interaction);
|
|
110
|
+
}
|
|
91
111
|
|
|
92
112
|
.bcc-floating-sidebar[data-collapsed="true"] > .bcc-floating-sidebar__rail {
|
|
93
113
|
flex-basis: var(--bcc-floating-sidebar-rail-width);
|
|
94
114
|
inline-size: var(--bcc-floating-sidebar-rail-width);
|
|
95
|
-
|
|
96
|
-
.bcc-floating-sidebar[data-collapsed="true"] .bcc-floating-sidebar__header {
|
|
97
|
-
// Header geometry remains unchanged while the rail animates.
|
|
115
|
+
scrollbar-width: none;
|
|
98
116
|
}
|
|
99
117
|
.bcc-floating-sidebar[data-collapsed="true"] .bcc-floating-sidebar__brand,
|
|
100
118
|
.bcc-floating-sidebar[data-collapsed="true"] .bcc-floating-sidebar__footer {
|
|
101
119
|
display: none;
|
|
102
120
|
}
|
|
103
|
-
.bcc-floating-sidebar[data-collapsed="true"] .bcc-floating-sidebar__toggle-icon--collapse {
|
|
104
|
-
|
|
121
|
+
.bcc-floating-sidebar[data-collapsed="true"] .bcc-floating-sidebar__toggle-icon--collapse {
|
|
122
|
+
opacity: 0;
|
|
123
|
+
transform: translateX(-3px);
|
|
124
|
+
}
|
|
125
|
+
.bcc-floating-sidebar[data-collapsed="true"] .bcc-floating-sidebar__toggle-icon--expand {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform: translateX(0);
|
|
128
|
+
}
|
|
105
129
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
130
|
+
.bcc-floating-sidebar[data-collapsed="true"] > .bcc-floating-sidebar__rail::-webkit-scrollbar {
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Keep group headings in document flow while their space collapses.
|
|
135
|
+
// This prevents an instantaneous vertical jump in Navigation Items.
|
|
136
|
+
.bcc-floating-sidebar .bcc-navigation-menu__heading {
|
|
137
|
+
max-block-size: var(--bc-size-ui-40);
|
|
112
138
|
overflow: hidden;
|
|
113
|
-
|
|
139
|
+
}
|
|
140
|
+
.bcc-floating-sidebar--animated .bcc-navigation-menu__heading {
|
|
141
|
+
transition: max-block-size var(--bc-motion-interaction), opacity var(--bc-motion-interaction);
|
|
142
|
+
}
|
|
143
|
+
.bcc-floating-sidebar[data-collapsed="true"] .bcc-navigation-menu__heading {
|
|
144
|
+
max-block-size: 0;
|
|
145
|
+
opacity: 0;
|
|
114
146
|
}
|
|
115
147
|
|
|
116
148
|
// Motion is genuinely opt-in. Width uses the same token in both directions;
|
|
@@ -134,5 +166,27 @@
|
|
|
134
166
|
}
|
|
135
167
|
|
|
136
168
|
@media (prefers-reduced-motion: reduce) {
|
|
137
|
-
.bcc-floating-sidebar--animated > .bcc-floating-sidebar__rail
|
|
169
|
+
.bcc-floating-sidebar--animated > .bcc-floating-sidebar__rail,
|
|
170
|
+
.bcc-floating-sidebar--animated .bcc-navigation-menu__heading,
|
|
171
|
+
.bcc-floating-sidebar--animated .bcc-floating-sidebar__toggle-icon { transition: none; }
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Reuse the floating rail surface within a larger navigation Component.
|
|
175
|
+
// This mode has no independent sidebar main region or collapse controller.
|
|
176
|
+
.bcc-floating-sidebar--embedded {
|
|
177
|
+
display: block;
|
|
178
|
+
inline-size: 100%;
|
|
179
|
+
block-size: 100%;
|
|
180
|
+
min-inline-size: 0;
|
|
181
|
+
--bcc-floating-sidebar-width: 100%;
|
|
182
|
+
--bcc-floating-sidebar-gap: 0px;
|
|
183
|
+
--bcc-floating-sidebar-height: 100%;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.bcc-floating-sidebar--embedded > .bcc-floating-sidebar__rail {
|
|
187
|
+
position: static;
|
|
188
|
+
flex: none;
|
|
189
|
+
inline-size: 100%;
|
|
190
|
+
block-size: 100%;
|
|
191
|
+
max-block-size: none;
|
|
138
192
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Responsive Navigation
|
|
2
|
+
|
|
3
|
+
Composes Floating Contextual Navigation with the same Global Navigation Rail in horizontal presentation and a contextual Navigation Drawer. It does not duplicate Rail or Sidebar styling.
|
|
4
|
+
|
|
5
|
+
## Responsive presentation
|
|
6
|
+
|
|
7
|
+
Set `data-small-pattern="drawer"` on the root to use a menu-launcher and drawer without the bottom bar. Omit this attribute (or use `bottom-drawer`) for the default bottom bar plus drawer.
|
|
8
|
+
|
|
9
|
+
At or below 48rem, the Small presentation activates and the Large presentation becomes inert. The horizontal Rail switches Hubs directly; a separate labelled control opens the selected Hub's Navigation Menu in the Drawer. Above 48rem the contextual navigation is active. Hover previews are capability-sensitive and never the only navigation interaction.
|
|
10
|
+
|
|
11
|
+
`mountResponsiveNavigation(root)` supplies `selectHub(id)`, `openMenu()`, `closeMenu()` and `destroy()`. All Hub IDs must correspond to one large Hub, one small Rail control and one mobile content section. Routing and page content remain the consuming application's responsibility.
|
|
12
|
+
|
|
13
|
+
The 48rem breakpoint is deliberately shared between CSS and the default JavaScript media query. An application needing different thresholds must override both styles and `data-responsive-query` together; changing only one will make inert state and visual state disagree.
|
|
14
|
+
|
|
15
|
+
## Behaviour ownership
|
|
16
|
+
|
|
17
|
+
BufferCore Disclosure owns drawer visibility, Escape and ARIA; Focus Trap and Scroll Lock manage the modal overlay. The composition coordinates presentation, selected Hub, backdrop and focus restoration. The standalone Navigation Drawer owns only its surface. All styling uses BufferCore Semantics rather than Primitives.
|
|
18
|
+
|
|
19
|
+
## Updated responsive contract
|
|
20
|
+
|
|
21
|
+
Use **Small / Medium / Large** for presentation size, not device names. Small (at or below 48rem) uses the existing Global Navigation Rail in horizontal orientation plus a contextual Drawer; `data-small-pattern="drawer"` provides a launcher-only alternative. Medium (above 48rem up to 64rem) retains the vertical Rail and a floating Sidebar overlay without consuming workspace width. Large uses the original contextual pinning and reserved space. These are initial defaults, not device or input-method detection.
|
|
22
|
+
|
|
23
|
+
The controller uses one matchMedia boundary for the Small presentation; Medium and Large share the same underlying contextual controller. CSS owns the Medium overlay track. CSS and JavaScript query thresholds must agree. A wide touch device can still use click/tap; hover preview is optional and never the sole way to navigate.
|
|
24
|
+
|
|
25
|
+
The Bottom Navigation Bar Asset remains independently available for backwards compatibility, but Responsive Navigation no longer depends on it: the Global Navigation Rail handles horizontal layout and shares the same visual system.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"variants": [
|
|
3
|
+
{
|
|
4
|
+
"id": "standard",
|
|
5
|
+
"className": "bcc-responsive-navigation",
|
|
6
|
+
"default": true
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"anatomy": [
|
|
10
|
+
"root",
|
|
11
|
+
"large contextual navigation",
|
|
12
|
+
"small horizontal Global Navigation Rail",
|
|
13
|
+
"scrim",
|
|
14
|
+
"drawer with corresponding Hub sections"
|
|
15
|
+
],
|
|
16
|
+
"properties": [
|
|
17
|
+
{
|
|
18
|
+
"name": "Media query",
|
|
19
|
+
"type": "data-responsive-query",
|
|
20
|
+
"description": "Optional matchMedia query; must match authoring CSS breakpoint."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Current Hub",
|
|
24
|
+
"type": "data-hub",
|
|
25
|
+
"description": "Selected Hub ID, synchronised across presentations."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Small pattern",
|
|
29
|
+
"type": "data-small-pattern",
|
|
30
|
+
"description": "bottom-drawer (default) or drawer; data-mobile-pattern accepted for compatibility"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"accessibility": [
|
|
34
|
+
"Only the active presentation remains interactive.",
|
|
35
|
+
"Bottom controls use aria-pressed and a separate menu toggle.",
|
|
36
|
+
"Drawer uses BufferCore Disclosure, Focus Trap and Scroll Lock with Escape and focus return.",
|
|
37
|
+
"Touch usage never depends on hover."
|
|
38
|
+
],
|
|
39
|
+
"tags": [
|
|
40
|
+
"navigation",
|
|
41
|
+
"responsive",
|
|
42
|
+
"small",
|
|
43
|
+
"medium",
|
|
44
|
+
"large",
|
|
45
|
+
"composition"
|
|
46
|
+
],
|
|
47
|
+
"notes": [
|
|
48
|
+
"Small presentation switches to horizontal Global Navigation Rail and Drawer. Medium uses vertical Rail and overlay Sidebar. Large reserves space when pinned.",
|
|
49
|
+
"Keep the matchMedia query aligned with the stylesheet."
|
|
50
|
+
]
|
|
51
|
+
}
|
package/03. Components/navigation/sidebars/responsive-navigation/examples/drawer-only/code.html
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<div class="bcc-responsive-navigation" data-hub="clients" data-mobile-pattern="drawer">
|
|
2
|
+
<div class="bcc-floating-contextual-navigation bcc-responsive-navigation__large" data-responsive-large data-state="pinned" data-hub="clients">
|
|
3
|
+
<aside class="bcc-global-navigation-rail bcc-floating-contextual-navigation__global" aria-label="Atlas Hubs">
|
|
4
|
+
<nav class="bcc-navigation-menu" aria-label="Hubs">
|
|
5
|
+
<ul class="bcc-navigation-menu__list">
|
|
6
|
+
<li class="bcc-navigation-menu__item">
|
|
7
|
+
<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">
|
|
8
|
+
<span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span>
|
|
9
|
+
</button>
|
|
10
|
+
</li>
|
|
11
|
+
<li class="bcc-navigation-menu__item">
|
|
12
|
+
<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">
|
|
13
|
+
<span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span>
|
|
14
|
+
</button>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="bcc-navigation-menu__item">
|
|
17
|
+
<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">
|
|
18
|
+
<span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span>
|
|
19
|
+
</button>
|
|
20
|
+
</li>
|
|
21
|
+
</ul>
|
|
22
|
+
</nav>
|
|
23
|
+
</aside>
|
|
24
|
+
<aside class="bcc-floating-contextual-navigation__panel" id="atlas-context-panel" aria-label="Hub navigation" aria-hidden="false">
|
|
25
|
+
<div class="bcl-sidebar bcc-floating-sidebar bcc-floating-sidebar--embedded">
|
|
26
|
+
<div class="bcl-sidebar__aside bcc-floating-sidebar__rail">
|
|
27
|
+
<div class="bcc-floating-contextual-navigation__panel-header">
|
|
28
|
+
<strong data-contextual-title>Clients</strong>
|
|
29
|
+
<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">
|
|
30
|
+
<iconify-icon icon="hugeicons:arrow-left-01" aria-hidden="true"></iconify-icon>
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
<section data-contextual-content="home" hidden>
|
|
34
|
+
<nav class="bcc-navigation-menu" aria-label="Home workspaces">
|
|
35
|
+
<h3 class="bcc-navigation-menu__heading">Workspace</h3>
|
|
36
|
+
<ul class="bcc-navigation-menu__list">
|
|
37
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard"><span class="bce-navigation-item__label">Dashboard</span></a></li>
|
|
38
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-activity"><span class="bce-navigation-item__label">Activity</span></a></li>
|
|
39
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
|
|
40
|
+
</ul>
|
|
41
|
+
</nav>
|
|
42
|
+
</section>
|
|
43
|
+
<section data-contextual-content="clients">
|
|
44
|
+
<nav class="bcc-navigation-menu" aria-label="Clients workspaces">
|
|
45
|
+
<h3 class="bcc-navigation-menu__heading">Workspace</h3>
|
|
46
|
+
<ul class="bcc-navigation-menu__list">
|
|
47
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
|
|
48
|
+
<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>
|
|
49
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects"><span class="bce-navigation-item__label">Projects</span></a></li>
|
|
50
|
+
</ul>
|
|
51
|
+
<h3 class="bcc-navigation-menu__heading">Management</h3>
|
|
52
|
+
<ul class="bcc-navigation-menu__list">
|
|
53
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-agreements"><span class="bce-navigation-item__label">Agreements</span></a></li>
|
|
54
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</nav>
|
|
57
|
+
</section>
|
|
58
|
+
<section data-contextual-content="creative" hidden>
|
|
59
|
+
<nav class="bcc-navigation-menu" aria-label="Creative workspaces">
|
|
60
|
+
<h3 class="bcc-navigation-menu__heading">Workspace</h3>
|
|
61
|
+
<ul class="bcc-navigation-menu__list">
|
|
62
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
|
|
63
|
+
<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>
|
|
64
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-assets"><span class="bce-navigation-item__label">Assets</span></a></li>
|
|
65
|
+
</ul>
|
|
66
|
+
</nav>
|
|
67
|
+
</section>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</aside>
|
|
71
|
+
<main class="bcc-floating-contextual-navigation__workspace bc-p-sm"><h2>Workspace</h2></main>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="bcc-responsive-navigation__small" data-responsive-small>
|
|
75
|
+
<div class="bcc-responsive-navigation__launcher"><button type="button" class="bce-button" data-responsive-drawer-launch aria-label="Open navigation menu" aria-expanded="false"><iconify-icon icon="hugeicons:menu-01" aria-hidden="true"></iconify-icon> Menu</button></div>
|
|
76
|
+
<main class="bcc-responsive-navigation__content bc-p-sm"><h2>Workspace</h2></main>
|
|
77
|
+
<div class="bcc-responsive-navigation__bottom">
|
|
78
|
+
<nav class="bcc-global-navigation-rail" data-orientation="horizontal" aria-label="Primary Hubs"><div class="bcc-navigation-menu"><ul class="bcc-navigation-menu__list">
|
|
79
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-hub="home" aria-label="Home"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span><span class="bce-navigation-item__label">Home</span></button></li>
|
|
80
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-hub="clients" aria-label="Clients"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span><span class="bce-navigation-item__label">Clients</span></button></li>
|
|
81
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-hub="creative" aria-label="Creative"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span><span class="bce-navigation-item__label">Creative</span></button></li>
|
|
82
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-menu-toggle aria-label="Open navigation menu"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:menu-01"></iconify-icon></span><span class="bce-navigation-item__label">Menu</span></button></li>
|
|
83
|
+
</ul></div></nav>
|
|
84
|
+
</div>
|
|
85
|
+
<button type="button" class="bcc-responsive-navigation__scrim" data-responsive-scrim aria-label="Close navigation menu" hidden></button>
|
|
86
|
+
<div class="bcc-responsive-navigation__drawer" data-responsive-drawer id="responsive-workspace-drawer" hidden>
|
|
87
|
+
<aside class="bcc-navigation-drawer" aria-label="Hub navigation">
|
|
88
|
+
<div class="bcc-navigation-drawer__header"><strong data-responsive-title>Clients</strong><button type="button" class="bce-button bce-button--ghost bce-button--icon-only" data-responsive-close aria-label="Close menu"><iconify-icon icon="hugeicons:cancel-01" aria-hidden="true"></iconify-icon></button></div>
|
|
89
|
+
<section data-responsive-content="home" hidden><nav class="bcc-navigation-menu" aria-label="Home pages"><ul class="bcc-navigation-menu__list"><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard">Dashboard</a></li></ul></nav></section>
|
|
90
|
+
<section data-responsive-content="clients"><nav class="bcc-navigation-menu" aria-label="Client pages"><ul class="bcc-navigation-menu__list"><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview">Overview</a></li><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects">Projects</a></li></ul></nav></section>
|
|
91
|
+
<section data-responsive-content="creative" hidden><nav class="bcc-navigation-menu" aria-label="Creative pages"><ul class="bcc-navigation-menu__list"><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview">Overview</a></li></ul></nav></section>
|
|
92
|
+
</aside>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
package/03. Components/navigation/sidebars/responsive-navigation/examples/drawer-only/preview.html
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<div class="bcc-responsive-navigation" data-hub="clients" data-mobile-pattern="drawer">
|
|
2
|
+
<div class="bcc-floating-contextual-navigation bcc-responsive-navigation__large" data-responsive-large data-state="pinned" data-hub="clients">
|
|
3
|
+
<aside class="bcc-global-navigation-rail bcc-floating-contextual-navigation__global" aria-label="Atlas Hubs">
|
|
4
|
+
<nav class="bcc-navigation-menu" aria-label="Hubs">
|
|
5
|
+
<ul class="bcc-navigation-menu__list">
|
|
6
|
+
<li class="bcc-navigation-menu__item">
|
|
7
|
+
<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">
|
|
8
|
+
<span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span>
|
|
9
|
+
</button>
|
|
10
|
+
</li>
|
|
11
|
+
<li class="bcc-navigation-menu__item">
|
|
12
|
+
<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">
|
|
13
|
+
<span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span>
|
|
14
|
+
</button>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="bcc-navigation-menu__item">
|
|
17
|
+
<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">
|
|
18
|
+
<span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span>
|
|
19
|
+
</button>
|
|
20
|
+
</li>
|
|
21
|
+
</ul>
|
|
22
|
+
</nav>
|
|
23
|
+
</aside>
|
|
24
|
+
<aside class="bcc-floating-contextual-navigation__panel" id="atlas-context-panel" aria-label="Hub navigation" aria-hidden="false">
|
|
25
|
+
<div class="bcl-sidebar bcc-floating-sidebar bcc-floating-sidebar--embedded">
|
|
26
|
+
<div class="bcl-sidebar__aside bcc-floating-sidebar__rail">
|
|
27
|
+
<div class="bcc-floating-contextual-navigation__panel-header">
|
|
28
|
+
<strong data-contextual-title>Clients</strong>
|
|
29
|
+
<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">
|
|
30
|
+
<iconify-icon icon="hugeicons:arrow-left-01" aria-hidden="true"></iconify-icon>
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
<section data-contextual-content="home" hidden>
|
|
34
|
+
<nav class="bcc-navigation-menu" aria-label="Home workspaces">
|
|
35
|
+
<h3 class="bcc-navigation-menu__heading">Workspace</h3>
|
|
36
|
+
<ul class="bcc-navigation-menu__list">
|
|
37
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard"><span class="bce-navigation-item__label">Dashboard</span></a></li>
|
|
38
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-activity"><span class="bce-navigation-item__label">Activity</span></a></li>
|
|
39
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
|
|
40
|
+
</ul>
|
|
41
|
+
</nav>
|
|
42
|
+
</section>
|
|
43
|
+
<section data-contextual-content="clients">
|
|
44
|
+
<nav class="bcc-navigation-menu" aria-label="Clients workspaces">
|
|
45
|
+
<h3 class="bcc-navigation-menu__heading">Workspace</h3>
|
|
46
|
+
<ul class="bcc-navigation-menu__list">
|
|
47
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
|
|
48
|
+
<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>
|
|
49
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects"><span class="bce-navigation-item__label">Projects</span></a></li>
|
|
50
|
+
</ul>
|
|
51
|
+
<h3 class="bcc-navigation-menu__heading">Management</h3>
|
|
52
|
+
<ul class="bcc-navigation-menu__list">
|
|
53
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-agreements"><span class="bce-navigation-item__label">Agreements</span></a></li>
|
|
54
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-settings"><span class="bce-navigation-item__label">Settings</span></a></li>
|
|
55
|
+
</ul>
|
|
56
|
+
</nav>
|
|
57
|
+
</section>
|
|
58
|
+
<section data-contextual-content="creative" hidden>
|
|
59
|
+
<nav class="bcc-navigation-menu" aria-label="Creative workspaces">
|
|
60
|
+
<h3 class="bcc-navigation-menu__heading">Workspace</h3>
|
|
61
|
+
<ul class="bcc-navigation-menu__list">
|
|
62
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview"><span class="bce-navigation-item__label">Overview</span></a></li>
|
|
63
|
+
<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>
|
|
64
|
+
<li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-assets"><span class="bce-navigation-item__label">Assets</span></a></li>
|
|
65
|
+
</ul>
|
|
66
|
+
</nav>
|
|
67
|
+
</section>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</aside>
|
|
71
|
+
<main class="bcc-floating-contextual-navigation__workspace bc-p-sm"><h2>Workspace</h2></main>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="bcc-responsive-navigation__small" data-responsive-small>
|
|
75
|
+
<div class="bcc-responsive-navigation__launcher"><button type="button" class="bce-button" data-responsive-drawer-launch aria-label="Open navigation menu" aria-expanded="false"><iconify-icon icon="hugeicons:menu-01" aria-hidden="true"></iconify-icon> Menu</button></div>
|
|
76
|
+
<main class="bcc-responsive-navigation__content bc-p-sm"><h2>Workspace</h2></main>
|
|
77
|
+
<div class="bcc-responsive-navigation__bottom">
|
|
78
|
+
<nav class="bcc-global-navigation-rail" data-orientation="horizontal" aria-label="Primary Hubs"><div class="bcc-navigation-menu"><ul class="bcc-navigation-menu__list">
|
|
79
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-hub="home" aria-label="Home"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:home-01"></iconify-icon></span><span class="bce-navigation-item__label">Home</span></button></li>
|
|
80
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-hub="clients" aria-label="Clients"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:user-group"></iconify-icon></span><span class="bce-navigation-item__label">Clients</span></button></li>
|
|
81
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-hub="creative" aria-label="Creative"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:folder-01"></iconify-icon></span><span class="bce-navigation-item__label">Creative</span></button></li>
|
|
82
|
+
<li class="bcc-navigation-menu__item"><button type="button" class="bce-navigation-item" data-responsive-menu-toggle aria-label="Open navigation menu"><span class="bce-navigation-item__icon" aria-hidden="true"><iconify-icon icon="hugeicons:menu-01"></iconify-icon></span><span class="bce-navigation-item__label">Menu</span></button></li>
|
|
83
|
+
</ul></div></nav>
|
|
84
|
+
</div>
|
|
85
|
+
<button type="button" class="bcc-responsive-navigation__scrim" data-responsive-scrim aria-label="Close navigation menu" hidden></button>
|
|
86
|
+
<div class="bcc-responsive-navigation__drawer" data-responsive-drawer id="responsive-workspace-drawer" hidden>
|
|
87
|
+
<aside class="bcc-navigation-drawer" aria-label="Hub navigation">
|
|
88
|
+
<div class="bcc-navigation-drawer__header"><strong data-responsive-title>Clients</strong><button type="button" class="bce-button bce-button--ghost bce-button--icon-only" data-responsive-close aria-label="Close menu"><iconify-icon icon="hugeicons:cancel-01" aria-hidden="true"></iconify-icon></button></div>
|
|
89
|
+
<section data-responsive-content="home" hidden><nav class="bcc-navigation-menu" aria-label="Home pages"><ul class="bcc-navigation-menu__list"><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#home-dashboard">Dashboard</a></li></ul></nav></section>
|
|
90
|
+
<section data-responsive-content="clients"><nav class="bcc-navigation-menu" aria-label="Client pages"><ul class="bcc-navigation-menu__list"><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-overview">Overview</a></li><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#clients-projects">Projects</a></li></ul></nav></section>
|
|
91
|
+
<section data-responsive-content="creative" hidden><nav class="bcc-navigation-menu" aria-label="Creative pages"><ul class="bcc-navigation-menu__list"><li class="bcc-navigation-menu__item"><a class="bce-navigation-item" href="#creative-overview">Overview</a></li></ul></nav></section>
|
|
92
|
+
</aside>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "standard",
|
|
4
|
+
"title": "Desktop contextual to bottom bar and drawer",
|
|
5
|
+
"description": "Resize across the default 48rem threshold; direct Hub switching and menu drawer.",
|
|
6
|
+
"preview": "examples/standard/preview.html",
|
|
7
|
+
"code": "examples/standard/code.html",
|
|
8
|
+
"isBase": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "drawer-only",
|
|
12
|
+
"title": "Drawer-only mobile presentation",
|
|
13
|
+
"description": "Alternative mobile pattern: hamburger launcher with a full navigation drawer.",
|
|
14
|
+
"preview": "examples/drawer-only/preview.html",
|
|
15
|
+
"code": "examples/drawer-only/code.html"
|
|
16
|
+
}
|
|
17
|
+
]
|