@egov-moldova/mud-site-kit 1.0.5 → 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/README.md +2 -1
- package/assets/footer-v2/age-logo.svg +67 -0
- package/assets/footer-v2/app-store-badge.svg +291 -0
- package/assets/footer-v2/evo-logo.svg +16 -0
- package/assets/footer-v2/evosign-logo.svg +12 -0
- package/assets/footer-v2/google-play-badge.svg +28 -0
- package/assets/footer-v2/guvernul-logo.svg +35 -0
- package/assets/footer-v2/mconnect-logo.svg +1 -0
- package/assets/footer-v2/mdate-logo.svg +53 -0
- package/assets/footer-v2/mdelivery-logo.svg +53 -0
- package/assets/footer-v2/mlearn-logo.svg +79 -0
- package/assets/footer-v2/mnotify-logo.svg +53 -0
- package/assets/footer-v2/mpass-logo.svg +53 -0
- package/assets/footer-v2/mpower-logo.svg +28 -0
- package/assets/footer-v2/msign-logo.svg +53 -0
- package/mud-site-kit.esm.js +1595 -306
- package/mud-site-kit.esm.js.map +1 -1
- package/mud-site-kit.iife.js +577 -62
- package/mud-site-kit.iife.js.map +1 -1
- package/package.json +1 -1
- package/types/components/{footer → footer-v2}/data/index.d.ts +1 -1
- package/types/components/footer-v2/index.d.ts +4 -0
- package/types/components/{footer/mud-footer.d.ts → footer-v2/mud-footer-v2.d.ts} +3 -3
- package/types/components/{footer → footer-v2}/resources/footer.assets.d.ts +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/types/index.d.ts +1 -0
- package/types/components/footer/index.d.ts +0 -4
- /package/types/components/{footer → footer-v2}/data/contacts.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/evosign.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/links.production.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mconnect.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mdate.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mdelivery.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mlearn.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mnotify.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mpass.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/mpower.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/msign.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/shared.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/data/texts.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/footer.styles.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/footer.template.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/resources/footer.icons.d.ts +0 -0
- /package/types/components/{footer → footer-v2}/types/footer.types.d.ts +0 -0
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,6 +1,6 @@
|
|
|
1
1
|
import type { FooterVariant } from '../types/footer.types';
|
|
2
2
|
export { shared } from './shared';
|
|
3
|
-
/** Registry: the `variant` attribute of <mud-footer> is looked up here. To add a variant, create its data file and register it. */
|
|
3
|
+
/** Registry: the `variant` attribute of <mud-footer-v2> is looked up here. To add a variant, create its data file and register it. */
|
|
4
4
|
export declare const variants: {
|
|
5
5
|
mconnect: FooterVariant;
|
|
6
6
|
mdate: FooterVariant;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MudComponent } from '../../mud-component';
|
|
2
2
|
import type { FooterLinks } from './types/footer.types';
|
|
3
3
|
/**
|
|
4
|
-
* <mud-footer variant="mpass"></mud-footer>
|
|
4
|
+
* <mud-footer-v2 variant="mpass"></mud-footer-v2>
|
|
5
5
|
*
|
|
6
6
|
* The language comes from <html lang> (ro | ru | en, default ro) and follows it when it changes.
|
|
7
7
|
*
|
|
8
8
|
* Attributes
|
|
9
9
|
* variant required. mconnect | mdate | mpass | msign | mpower | mnotify | mdelivery | mlearn | evosign
|
|
10
|
-
* assets-base optional. Folder URL that serves the logo files (default: ./assets/footer/ next to the bundle).
|
|
10
|
+
* assets-base optional. Folder URL that serves the logo files (default: ./assets/footer-v2/ next to the bundle).
|
|
11
11
|
* max-width optional. Max total width of the container, padding included (content = max-width - 2 * padding-x): a CSS length (1100px, 80rem) or a number of pixels (default: 1270px).
|
|
12
12
|
* padding-x optional. Left and right padding of the content, same format (default: 16px).
|
|
13
13
|
* links optional. The app's own addresses as JSON, same as the `links` property: {"logo":"/","items":{"faq":"/{lang}/faq"}}.
|
|
@@ -16,7 +16,7 @@ import type { FooterLinks } from './types/footer.types';
|
|
|
16
16
|
* links FooterLinks. The addresses of the app: `logo`, and `items` by link id (see data/<variant>.ts). They accept {lang}.
|
|
17
17
|
* There is no fallback: a link the app does not supply has no address and the console lists it. Generic links stay in the footer.
|
|
18
18
|
*/
|
|
19
|
-
export declare class
|
|
19
|
+
export declare class MudFooterV2 extends MudComponent {
|
|
20
20
|
private _links?;
|
|
21
21
|
private reported;
|
|
22
22
|
static get observedAttributes(): string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Logo file for each key used in the data layer. The files live in ./assets and are copied to dist/assets/footer. */
|
|
1
|
+
/** Logo file for each key used in the data layer. The files live in ./assets and are copied to dist/assets/footer-v2. */
|
|
2
2
|
export declare const files: Record<string, string>;
|
|
3
3
|
/** URL of a logo. `base` (the `assets-base` attribute) overrides where the files are served from. */
|
|
4
4
|
export declare function logoUrl(key: string, base?: string | null): string;
|
|
@@ -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;
|
package/types/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { configureMud, loadMud } from './mud-loader';
|
|
|
2
2
|
export { MudComponent } from './mud-component';
|
|
3
3
|
export * from './widgets/footer';
|
|
4
4
|
export * from './components/header';
|
|
5
|
+
export * from './components/footer-v2';
|
|
5
6
|
export * from './m-products';
|
|
6
7
|
export * from './components/mproducts-logo';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|