@egov-moldova/mud-site-kit 1.0.6 → 1.0.7
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/mud-site-kit.esm.js +145 -131
- package/mud-site-kit.esm.js.map +1 -1
- package/mud-site-kit.iife.js +83 -70
- package/mud-site-kit.iife.js.map +1 -1
- package/package.json +1 -1
- package/types/components/header/data/texts.d.ts +0 -5
- package/types/components/header/header.styles.d.ts +1 -1
- package/types/components/header/types/header.types.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egov-moldova/mud-site-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Native custom elements (mud-*) for the AGE platforms, built on the MUD design system (@egov-moldova/mud). Ships as an ES module and a CDN script.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "\n:host {\n display: block;\n position: sticky; /* header stays on top while scrolling; set position: static on the element to turn off */\n top: var(--header-sticky-top, 0px); /* minus the banner height: the banner scrolls away, the rest stays pinned */\n z-index: 1000;\n\n --mud-black: #121212;\n --mud-white: #ffffff;\n --mud-gray-50: #f5f5f5;\n --mud-gray-100: #f1f1f1;\n --mud-gray-250: #d9d9d9;\n --mud-gray-700: #383838;\n --mud-blue-sky-600: #0058d2;\n --mud-blue-sky-700: #0046a8;\n --mud-blue-sky-800: #00357e;\n --mud-focus-ring: #3379db;\n --mud-red-600: #d92d20;\n --mud-alert-bg: #fee4e2;\n --mud-alert-icon: #b91c1c;\n --mud-font-family: \"Onest\", system-ui, -apple-system, sans-serif;\n --header-max-width: 1270px;\n --header-padding-x: 16px; /* same gutter as <mud-footer>, so the two line up */\n}\n\n:host([menu-open]) {\n z-index: 2147483000; /* the open menu must sit above everything else on the page */\n}\n\n.mud-header,\n.mud-header * {\n box-sizing: border-box;\n}\n\n.mud-header {\n background: var(--mud-white);\n color: var(--mud-black);\n font-family: var(--mud-font-family);\n}\n\n.mud-header a,\n.mud-header button {\n font-family: inherit;\n}\n\n.mud-container {\n width: 100%;\n max-width: var(--header-max-width);\n margin-inline: auto;\n padding-inline: var(--header-padding-x);\n}\n\n/* ---------- alert banner (optional) ---------- */\n.mud-header__banner {\n background: var(--mud-alert-bg);\n color: var(--mud-gray-700);\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n padding: 12px 0;\n}\n\n.mud-header__banner .mud-container {\n display: flex;\n align-items: flex-start;\n gap: 12px; /* [icon + message] block on the left, close cross on the right */\n}\n\n.mud-header__banner-icon {\n flex: 0 0 20px;\n width: 20px;\n height: 20px;\n margin-top: 1px;\n}\n\n.mud-header__banner-text {\n flex: 1 1 auto;\n margin: 0;\n text-align: left; /* the message reads as one block with the alert icon */\n}\n\n.mud-header__banner-title,\n.mud-header__banner-link {\n font-weight: 500;\n}\n\n.mud-header__banner-link {\n color: inherit;\n text-decoration: underline;\n}\n\n.mud-header__banner-close {\n flex: 0 0 20px;\n margin-top: 1px;\n width: 20px;\n height: 20px;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--mud-gray-700);\n cursor: pointer;\n}\n\n.mud-header__banner-close:hover {\n background: rgba(0, 0, 0, 0.08);\n}\n\n/* ---------- top strip: Guvernul + language ---------- */\n.mud-header__pre {\n height: 32px;\n background: var(--mud-gray-100);\n border-bottom: 1px solid var(--mud-gray-250);\n}\n\n.mud-header__pre .mud-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n}\n\n.mud-header__gov {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n color: #000;\n font-size: 12px;\n line-height: 16px;\n font-weight: 500;\n text-decoration: none;\n}\n\n.mud-header__gov img {\n display: block;\n width: 18px;\n height: 21px;\n}\n\n.mud-header__lang {\n display: flex;\n gap: 12px;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.mud-header__lang button {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--mud-gray-700);\n font-size: 14px;\n line-height: 22.4px;\n font-weight: 400;\n cursor: pointer;\n}\n\n.mud-header__lang button[aria-current=\"true\"] {\n color: var(--mud-black);\n text-decoration: underline;\n}\n\n.mud-header__lang button:hover {\n color: var(--mud-black);\n}\n\n/* ---------- main bar: logo + buttons ---------- */\n.mud-header__bar {\n background: var(--mud-white);\n border-bottom: 1px solid var(--mud-gray-250);\n}\n\n.mud-header__bar .mud-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n height: 67px;\n}\n\n.mud-header__brand {\n display: flex;\n gap: 12px;\n color: inherit;\n text-decoration: none;\n}\n\n.mud-header__brand-logo {\n display: block;\n flex-shrink: 0;\n width: 40px;\n height: 40px;\n margin-top: 8px;\n}\n\n.mud-header__brand-details {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mud-header__brand-name {\n font-weight: 600;\n font-size: 18px;\n line-height: 26px;\n letter-spacing: -0.18px;\n color: var(--mud-black);\n}\n\n.mud-header__brand-tagline {\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n color: var(--mud-gray-700);\n}\n\n.mud-tagline-line {\n display: block;\n white-space: nowrap; /* the box is exactly as wide as the longest line */\n}\n\n.mud-header__nav {\n display: flex;\n align-self: stretch; /* links fill the bar height so the hover and the active border reach its edges */\n margin: 0 auto 0 29px; /* 29px + the 16px flex gap = 45px from the logo to the link box; + 20px link padding = first text 65px after the logo */\n padding: 0;\n list-style: none;\n}\n\n.mud-header__nav li {\n display: flex;\n}\n\n.mud-header__nav a {\n display: flex;\n align-items: center;\n padding: 0 20px; /* 20px + 20px = 40px between two link texts */\n border-bottom: 3px solid transparent;\n color: var(--mud-black);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n text-decoration: none;\n}\n\n.mud-header__nav a:hover {\n background: var(--mud-gray-50);\n}\n\n.mud-header__nav a[aria-current=\"page\"] {\n color: var(--mud-blue-sky-600);\n border-bottom-color: var(--mud-blue-sky-600);\n}\n\n.mud-header__actions {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.mud-header__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 40px;\n width: 40px;\n height: 40px;\n border-radius: 9999px;\n color: var(--mud-black);\n text-decoration: none;\n}\n\n.mud-header__icon-btn:hover {\n background: var(--mud-gray-50);\n}\n\n/* cart counter, same look as .cart-badge on mconnect.gov.md: anchored to the 24px icon, sticking out of its top-right corner */\n.mud-header__icon-wrapper {\n position: relative;\n display: inline-flex;\n}\n\n.mud-header__badge {\n position: absolute;\n top: -50%;\n right: -50%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 16px;\n padding-inline: 2px;\n border-radius: 9999px;\n background: var(--mud-red-600);\n color: var(--mud-white);\n font-size: 12px;\n font-weight: inherit;\n line-height: 16px;\n}\n\n.mud-header__btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 10px 16px;\n border: 1px solid transparent;\n border-radius: 9999px;\n font-size: 14px;\n font-weight: 500;\n line-height: 1.375;\n text-align: center;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;\n}\n\n.mud-header__btn--primary {\n background: var(--mud-blue-sky-600);\n color: var(--mud-white);\n}\n\n.mud-header__btn--primary:hover {\n background: var(--mud-blue-sky-700);\n}\n\n.mud-header__btn--primary:active {\n background: var(--mud-blue-sky-800);\n}\n\n.mud-header a:focus-visible,\n.mud-header button:focus-visible {\n outline: 2px solid var(--mud-white);\n box-shadow: 0 0 0 4px var(--mud-focus-ring);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .mud-header__btn {\n transition: none;\n }\n}\n\n/* ---------- burger + full-screen menu (tablet and phone) ---------- */\n.mud-header__burger {\n display: none;\n flex: 0 0 40px;\n width: 40px;\n height: 40px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 9999px;\n background: transparent;\n color: var(--mud-black);\n cursor: pointer;\n}\n\n.mud-header__panel {\n position: fixed;\n inset: 0;\n z-index: 2000;\n overflow-y: auto;\n background: var(--mud-white);\n color: var(--mud-black);\n font-family: var(--mud-font-family);\n}\n\n.mud-header__panel[hidden] {\n display: none;\n}\n\n.mud-header__panel-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 68px;\n padding: 0 16px;\n}\n\n.mud-header__panel-logo img {\n display: block;\n width: 40px;\n height: 40px;\n}\n\n.mud-header__panel-tools {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.mud-header__panel-close {\n width: 40px;\n height: 40px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 9999px;\n background: transparent;\n color: var(--mud-black);\n cursor: pointer;\n}\n\n.mud-header__langmenu {\n position: relative;\n}\n\n.mud-header__langbtn {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n height: 40px;\n margin: 0;\n padding: 0 16px;\n border: 0;\n border-radius: 9999px;\n background: var(--mud-gray-100);\n color: var(--mud-black);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n cursor: pointer;\n}\n\n.mud-header__langbtn[aria-expanded=\"true\"] {\n background: var(--mud-gray-250);\n}\n\n.mud-header__langlist {\n position: absolute;\n top: 48px;\n right: 0;\n z-index: 1;\n min-width: 172px;\n margin: 0;\n padding: 8px;\n list-style: none;\n background: var(--mud-white);\n border-radius: 16px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);\n}\n\n.mud-header__langlist[hidden] {\n display: none;\n}\n\n.mud-header__langlist button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n height: 48px;\n margin: 0;\n padding: 0 16px;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: var(--mud-gray-700);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n text-align: left;\n cursor: pointer;\n}\n\n.mud-header__langlist button:hover {\n background: var(--mud-gray-100);\n}\n\n.mud-header__langlist button[aria-selected=\"true\"] {\n background: #f5f5f5;\n color: var(--mud-blue-sky-600);\n}\n\n.mud-header__panel-nav {\n margin: 8px 0 0;\n padding: 0 16px;\n list-style: none;\n}\n\n.mud-header__panel-nav a {\n display: block;\n padding: 14px 0;\n color: var(--mud-black);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n text-decoration: none;\n}\n\n.mud-header__panel-nav a[aria-current=\"page\"] {\n color: var(--mud-blue-sky-600);\n}\n\n/* ---------- responsive ---------- */\n@media screen and (max-width: 991px) {\n /* menu links move into the burger panel */\n .mud-header__nav {\n display: none;\n }\n\n .mud-header--has-nav .mud-header__burger {\n display: block;\n }\n\n .mud-header__actions {\n margin-left: auto;\n }\n}\n\n@media screen and (min-width: 992px) {\n .mud-header__panel {\n display: none;\n }\n}\n\n@media screen and (max-width: 576px) {\n .mud-header__pre {\n display: none;\n }\n\n .mud-header__brand-details {\n display: none;\n }\n}\n";
|
|
1
|
+
declare const _default: "\n:host {\n display: block;\n position: sticky; /* header stays on top while scrolling; set position: static on the element to turn off */\n top: var(--header-sticky-top, 0px); /* minus the banner height: the banner scrolls away, the rest stays pinned */\n z-index: 1000;\n\n --mud-black: #121212;\n --mud-white: #ffffff;\n --mud-gray-50: #f5f5f5;\n --mud-gray-100: #f1f1f1;\n --mud-gray-250: #d9d9d9;\n --mud-gray-700: #383838;\n --mud-blue-sky-600: #0058d2;\n --mud-blue-sky-700: #0046a8;\n --mud-blue-sky-800: #00357e;\n --mud-focus-ring: #3379db;\n --mud-red-600: #d92d20;\n --mud-alert-bg: #fee4e2;\n --mud-alert-icon: #b91c1c;\n --mud-font-family: \"Onest\", system-ui, -apple-system, sans-serif;\n --header-max-width: 1270px;\n --header-padding-x: 16px; /* same gutter as <mud-footer>, so the two line up */\n}\n\n:host([menu-open]) {\n z-index: 2147483000; /* the open menu must sit above everything else on the page */\n}\n\n.mud-header,\n.mud-header * {\n box-sizing: border-box;\n}\n\n.mud-header {\n background: var(--mud-white);\n color: var(--mud-black);\n font-family: var(--mud-font-family);\n}\n\n.mud-header a,\n.mud-header button {\n font-family: inherit;\n}\n\n.mud-container {\n width: 100%;\n max-width: var(--header-max-width);\n margin-inline: auto;\n padding-inline: var(--header-padding-x);\n}\n\n/* ---------- alert banner (optional) ---------- */\n.mud-header__banner {\n background: var(--mud-alert-bg);\n color: var(--mud-gray-700);\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n padding: 12px 0;\n}\n\n.mud-header__banner .mud-container {\n display: flex;\n align-items: flex-start;\n gap: 12px; /* [icon + message] block on the left, close cross on the right */\n}\n\n.mud-header__banner-icon {\n flex: 0 0 20px;\n width: 20px;\n height: 20px;\n margin-top: 1px;\n}\n\n.mud-header__banner-text {\n flex: 1 1 auto;\n margin: 0;\n text-align: left; /* the message reads as one block with the alert icon */\n}\n\n.mud-header__banner-title,\n.mud-header__banner-link {\n font-weight: 500;\n}\n\n.mud-header__banner-link {\n color: inherit;\n text-decoration: underline;\n}\n\n.mud-header__banner-close {\n flex: 0 0 20px;\n margin-top: 1px;\n width: 20px;\n height: 20px;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--mud-gray-700);\n cursor: pointer;\n}\n\n.mud-header__banner-close:hover {\n background: rgba(0, 0, 0, 0.08);\n}\n\n/* ---------- top strip: Guvernul + language ---------- */\n.mud-header__pre {\n height: 32px;\n background: var(--mud-gray-100);\n border-bottom: 1px solid var(--mud-gray-250);\n}\n\n.mud-header__pre .mud-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n}\n\n.mud-header__gov {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n color: #000;\n font-size: 12px;\n line-height: 16px;\n font-weight: 500;\n text-decoration: none;\n}\n\n.mud-header__gov img {\n display: block;\n width: 18px;\n height: 21px;\n}\n\n.mud-header__lang {\n display: flex;\n gap: 12px;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.mud-header__lang button {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--mud-gray-700);\n font-size: 14px;\n line-height: 22.4px;\n font-weight: 400;\n cursor: pointer;\n}\n\n.mud-header__lang button[aria-current=\"true\"] {\n color: var(--mud-black);\n text-decoration: underline;\n}\n\n.mud-header__lang button:hover {\n color: var(--mud-black);\n}\n\n/* ---------- main bar: logo + buttons ---------- */\n.mud-header__bar {\n background: var(--mud-white);\n border-bottom: 1px solid var(--mud-gray-250);\n}\n\n.mud-header__bar .mud-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n height: 67px;\n}\n\n.mud-header__brand {\n display: flex;\n gap: 12px;\n color: inherit;\n text-decoration: none;\n}\n\n.mud-header__brand-logo {\n display: block;\n flex-shrink: 0;\n width: 40px;\n height: 40px;\n margin-top: 8px;\n}\n\n.mud-header__brand-details {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mud-header__brand-name {\n font-weight: 600;\n font-size: 18px;\n line-height: 26px;\n letter-spacing: -0.18px;\n color: var(--mud-black);\n}\n\n.mud-header__brand-tagline {\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n color: var(--mud-gray-700);\n}\n\n.mud-tagline-line {\n display: block;\n white-space: nowrap; /* the box is exactly as wide as the longest line */\n}\n\n.mud-header__nav {\n display: flex;\n align-self: stretch; /* links fill the bar height so the hover and the active border reach its edges */\n margin: 0 auto 0 29px; /* 29px + the 16px flex gap = 45px from the logo to the link box; + 20px link padding = first text 65px after the logo */\n padding: 0;\n list-style: none;\n}\n\n.mud-header__nav li {\n display: flex;\n}\n\n.mud-header__nav a {\n display: flex;\n align-items: center;\n padding: 0 20px; /* 20px + 20px = 40px between two link texts */\n border-bottom: 3px solid transparent;\n color: var(--mud-black);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n text-decoration: none;\n}\n\n.mud-header__nav a:hover {\n background: var(--mud-gray-50);\n}\n\n.mud-header__nav a[aria-current=\"page\"] {\n color: var(--mud-blue-sky-600);\n border-bottom-color: var(--mud-blue-sky-600);\n}\n\n.mud-header__actions {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.mud-header__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 40px;\n width: 40px;\n height: 40px;\n border-radius: 9999px;\n color: var(--mud-black);\n text-decoration: none;\n}\n\n.mud-header__icon-btn:hover {\n background: var(--mud-gray-50);\n}\n\n/* cart counter, same look as .cart-badge on mconnect.gov.md: anchored to the 24px icon, sticking out of its top-right corner */\n.mud-header__icon-wrapper {\n position: relative;\n display: inline-flex;\n}\n\n.mud-header__badge {\n position: absolute;\n top: -50%;\n right: -50%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 16px;\n padding-inline: 2px;\n border-radius: 9999px;\n background: var(--mud-red-600);\n color: var(--mud-white);\n font-size: 12px;\n font-weight: inherit;\n line-height: 16px;\n}\n\n.mud-header__btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 10px 16px;\n border: 1px solid transparent;\n border-radius: 9999px;\n font-size: 14px;\n font-weight: 500;\n line-height: 1.375;\n text-align: center;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;\n}\n\n.mud-header__btn--primary {\n background: var(--mud-blue-sky-600);\n color: var(--mud-white);\n}\n\n.mud-header__btn--primary:hover {\n background: var(--mud-blue-sky-700);\n}\n\n.mud-header__btn--primary:active {\n background: var(--mud-blue-sky-800);\n}\n\n.mud-header__btn--secondary {\n background: #e8f0fb;\n color: var(--mud-blue-sky-600);\n}\n\n.mud-header__btn--secondary:hover {\n background: #d3e2f8;\n}\n\n.mud-header__btn--secondary:active {\n background: #b8d0f3;\n}\n\n.mud-header a:focus-visible,\n.mud-header button:focus-visible {\n outline: 2px solid var(--mud-white);\n box-shadow: 0 0 0 4px var(--mud-focus-ring);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .mud-header__btn {\n transition: none;\n }\n}\n\n/* ---------- burger + full-screen menu (tablet and phone) ---------- */\n.mud-header__burger {\n display: none;\n flex: 0 0 40px;\n width: 40px;\n height: 40px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 9999px;\n background: transparent;\n color: var(--mud-black);\n cursor: pointer;\n}\n\n.mud-header__panel {\n position: fixed;\n inset: 0;\n z-index: 2000;\n overflow-y: auto;\n background: var(--mud-white);\n color: var(--mud-black);\n font-family: var(--mud-font-family);\n}\n\n.mud-header__panel[hidden] {\n display: none;\n}\n\n.mud-header__panel-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 68px;\n padding: 0 16px;\n}\n\n.mud-header__panel-logo img {\n display: block;\n width: 40px;\n height: 40px;\n}\n\n.mud-header__panel-tools {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n\n.mud-header__panel-close {\n width: 40px;\n height: 40px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 9999px;\n background: transparent;\n color: var(--mud-black);\n cursor: pointer;\n}\n\n.mud-header__langmenu {\n position: relative;\n}\n\n.mud-header__langbtn {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n height: 40px;\n margin: 0;\n padding: 0 16px;\n border: 0;\n border-radius: 9999px;\n background: var(--mud-gray-100);\n color: var(--mud-black);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n cursor: pointer;\n}\n\n.mud-header__langbtn[aria-expanded=\"true\"] {\n background: var(--mud-gray-250);\n}\n\n.mud-header__langlist {\n position: absolute;\n top: 48px;\n right: 0;\n z-index: 1;\n min-width: 172px;\n margin: 0;\n padding: 8px;\n list-style: none;\n background: var(--mud-white);\n border-radius: 16px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);\n}\n\n.mud-header__langlist[hidden] {\n display: none;\n}\n\n.mud-header__langlist button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n height: 48px;\n margin: 0;\n padding: 0 16px;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: var(--mud-gray-700);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n text-align: left;\n cursor: pointer;\n}\n\n.mud-header__langlist button:hover {\n background: var(--mud-gray-100);\n}\n\n.mud-header__langlist button[aria-selected=\"true\"] {\n background: #f5f5f5;\n color: var(--mud-blue-sky-600);\n}\n\n.mud-header__panel-nav {\n margin: 8px 0 0;\n padding: 0 16px;\n list-style: none;\n}\n\n.mud-header__panel-nav a {\n display: block;\n padding: 14px 0;\n color: var(--mud-black);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n text-decoration: none;\n}\n\n.mud-header__panel-nav a[aria-current=\"page\"] {\n color: var(--mud-blue-sky-600);\n}\n\n/* ---------- responsive ---------- */\n@media screen and (max-width: 991px) {\n /* menu links move into the burger panel */\n .mud-header__nav {\n display: none;\n }\n\n .mud-header--has-nav .mud-header__burger {\n display: block;\n }\n\n .mud-header__actions {\n margin-left: auto;\n }\n}\n\n@media screen and (min-width: 992px) {\n .mud-header__panel {\n display: none;\n }\n}\n\n@media screen and (max-width: 576px) {\n .mud-header__pre {\n display: none;\n }\n\n .mud-header__brand-details {\n display: none;\n }\n}\n";
|
|
2
2
|
export default _default;
|
|
@@ -14,7 +14,7 @@ export interface HeaderAppLink {
|
|
|
14
14
|
}
|
|
15
15
|
export type HeaderLink = HeaderFixedLink | HeaderAppLink;
|
|
16
16
|
/** Buttons a variant can list in `buttons`; their label and address are in `shared.buttons`. */
|
|
17
|
-
export type HeaderButtonName = 'login';
|
|
17
|
+
export type HeaderButtonName = 'login' | 'signature';
|
|
18
18
|
/** Round icon link left of the buttons. `id` is a key of header.icons.ts and of `links.icons`; the address comes from the host app. */
|
|
19
19
|
export interface HeaderIcon {
|
|
20
20
|
id: string;
|
|
@@ -63,8 +63,10 @@ export interface HeaderShared {
|
|
|
63
63
|
label: Text;
|
|
64
64
|
href: string;
|
|
65
65
|
};
|
|
66
|
+
/** `href` is a generic address kept here (opens in a new tab); a button without it takes its address from the host app (`links`). */
|
|
66
67
|
buttons: Record<HeaderButtonName, {
|
|
67
68
|
label: Text;
|
|
69
|
+
href?: string;
|
|
68
70
|
}>;
|
|
69
71
|
/** Site-wide alert banner above the header, on every variant. */
|
|
70
72
|
banner: HeaderBanner;
|