@threadlabs/looma 0.46.1 → 0.46.2
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/README.md +4 -2
- package/components/ui-site-header/ui-site-header.html +0 -3
- package/dist/index.js +1 -1
- package/docs/catalog.json +3 -3
- package/package.json +1 -1
- package/styles/ui-site-header.css +0 -6
- package/vue/UiSiteHeader.vue +0 -7
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/components.css +0 -7
package/docs/catalog.json
CHANGED
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
],
|
|
464
464
|
"schemaVersion": 1,
|
|
465
465
|
"package": "@threadlabs/looma",
|
|
466
|
-
"version": "0.46.
|
|
466
|
+
"version": "0.46.2",
|
|
467
467
|
"groups": [
|
|
468
468
|
{
|
|
469
469
|
"id": "layout",
|
|
@@ -17985,7 +17985,7 @@
|
|
|
17985
17985
|
"tag": "ui-site-header",
|
|
17986
17986
|
"package": "@threadlabs/looma",
|
|
17987
17987
|
"root": "header",
|
|
17988
|
-
"description": "Supply brand, navigation, and optional actions once. Below the breakpoint, SiteHeader automatically
|
|
17988
|
+
"description": "Supply brand, navigation, and optional actions once. Below the breakpoint, SiteHeader automatically puts the hamburger in the inline navigation's position beside the brand, with the same gap (mirrored in RTL). Optional actions stay at the trailing edge. It presents the same navigation in a full-height, scrollable drawer with a dark backdrop. It handles focus, Escape, outside press, link selection, and page scroll locking. Applications supply links and routing; no menu slot, duplicate links, IDs, or drawer wiring are needed. Before JavaScript, navigation remains available inline unless a custom native menu supplies its mobile navigation. Native custom menu controls remain usable before upgrade. Use TopBar for contextual application tools.",
|
|
17989
17989
|
"designTokens": {
|
|
17990
17990
|
"sources": [
|
|
17991
17991
|
"packages/looma/src/components/ui-site-header/ui-site-header.html"
|
|
@@ -18261,7 +18261,7 @@
|
|
|
18261
18261
|
"id": "@threadlabs/looma/ui-site-header/01-default",
|
|
18262
18262
|
"name": "01-default",
|
|
18263
18263
|
"title": "Site navigation",
|
|
18264
|
-
"description": "A full-width header keeps its logo visible, places desktop navigation beside it, and puts search and account controls at the trailing edge. Below 64rem, the
|
|
18264
|
+
"description": "A full-width header keeps its logo visible, places desktop navigation beside it, and puts search and account controls at the trailing edge. Below 64rem, the hamburger takes the inline navigation's position beside the logo, keeping the same gap. It opens the same navigation in a full-height, scrollable drawer with a dark backdrop. No menu trigger, duplicate links, IDs, or event wiring are needed. Pass actions individually so the header reserves their adjustable hit areas.",
|
|
18265
18265
|
"markup": "<ui-site-header>\n <a slot=\"brand\" href=\"#home\" aria-label=\"Folio home\"><ui-icon name=\"compass\"></ui-icon>Folio</a>\n <a slot=\"navigation\" href=\"#guide\" aria-current=\"page\">Guide</a>\n <a slot=\"navigation\" href=\"#components\">Components</a>\n <a slot=\"navigation\" href=\"#journal\">Journal</a>\n <ui-icon-button slot=\"actions\" id=\"site-header-search-trigger\" size=\"sm\" label=\"Search pages\"><ui-icon name=\"search\"></ui-icon></ui-icon-button>\n <ui-icon-button slot=\"actions\" id=\"site-header-account-trigger\" size=\"sm\" label=\"Account\"><ui-icon name=\"user-round\"></ui-icon></ui-icon-button>\n</ui-site-header>\n<ui-popover for=\"site-header-search-trigger\"><ui-form-field>\n <label slot=\"label\" for=\"site-header-search\">Search pages</label><ui-input id=\"site-header-search\" type=\"search\" placeholder=\"Find a page\"></ui-input>\n </ui-form-field></ui-popover>\n<ui-popover for=\"site-header-account-trigger\"><nav aria-label=\"Account\">\n <ui-stack gap=\"s\"><a href=\"#profile\">Your profile</a><a href=\"#settings\">Settings</a></ui-stack>\n </nav></ui-popover>",
|
|
18266
18266
|
"resizable": false,
|
|
18267
18267
|
"bindings": "",
|
package/package.json
CHANGED
|
@@ -104,9 +104,6 @@
|
|
|
104
104
|
flex-wrap: nowrap !important;
|
|
105
105
|
align-items: center !important;
|
|
106
106
|
}
|
|
107
|
-
:scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="drawer"] .brand {
|
|
108
|
-
flex: 1 1 0;
|
|
109
|
-
}
|
|
110
107
|
:scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty)) .menu {
|
|
111
108
|
display: grid !important;
|
|
112
109
|
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
@@ -379,9 +376,6 @@
|
|
|
379
376
|
flex-wrap: nowrap !important;
|
|
380
377
|
align-items: center !important;
|
|
381
378
|
}
|
|
382
|
-
:where([data-component~="ui-site-header"])[data-ui-site-header-state~="drawer"] .brand:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
|
|
383
|
-
flex: 1 1 0;
|
|
384
|
-
}
|
|
385
379
|
:where([data-component~="ui-site-header"])[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
|
|
386
380
|
display: grid !important;
|
|
387
381
|
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
package/vue/UiSiteHeader.vue
CHANGED
|
@@ -417,9 +417,6 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
417
417
|
flex-wrap: nowrap !important;
|
|
418
418
|
align-items: center !important;
|
|
419
419
|
}
|
|
420
|
-
:global(:scope[data-ui-site-header-state~="drawer"] .brand:where([data-hn-ui-site-header])) {
|
|
421
|
-
flex: 1 1 0;
|
|
422
|
-
}
|
|
423
420
|
:global(:scope[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty))
|
|
424
421
|
.menu:where([data-hn-ui-site-header])) {
|
|
425
422
|
display: grid !important;
|
|
@@ -717,10 +714,6 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
717
714
|
flex-wrap: nowrap !important;
|
|
718
715
|
align-items: center !important;
|
|
719
716
|
}
|
|
720
|
-
:global(:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
721
|
-
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
722
|
-
flex: 1 1 0;
|
|
723
|
-
}
|
|
724
717
|
:global(:where(.ui-site-header)[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty))
|
|
725
718
|
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
726
719
|
display: grid !important;
|
package/vue/components.css
CHANGED
|
@@ -10193,9 +10193,6 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10193
10193
|
flex-wrap: nowrap !important;
|
|
10194
10194
|
align-items: center !important;
|
|
10195
10195
|
}
|
|
10196
|
-
:scope[data-ui-site-header-state~="drawer"] .brand:where([data-hn-ui-site-header]) {
|
|
10197
|
-
flex: 1 1 0;
|
|
10198
|
-
}
|
|
10199
10196
|
:scope[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty))
|
|
10200
10197
|
.menu:where([data-hn-ui-site-header]) {
|
|
10201
10198
|
display: grid !important;
|
|
@@ -10486,10 +10483,6 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10486
10483
|
flex-wrap: nowrap !important;
|
|
10487
10484
|
align-items: center !important;
|
|
10488
10485
|
}
|
|
10489
|
-
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10490
|
-
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10491
|
-
flex: 1 1 0;
|
|
10492
|
-
}
|
|
10493
10486
|
:where(.ui-site-header)[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty))
|
|
10494
10487
|
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10495
10488
|
display: grid !important;
|