@egov-moldova/mud-site-kit 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egov-moldova/mud-site-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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",
package/types/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export { configureMud, loadMud } from './mud-loader';
2
2
  export { MudWidget } from './mud-widget';
3
3
  export * from './widgets/footer';
4
+ export * from './m-products';
5
+ export * from './widgets/mproducts-logo';
@@ -0,0 +1,5 @@
1
+ /** Products of the M family (Shared infrastructure platforms > M Products). */
2
+ export declare const mProducts: readonly ["mpass", "msign", "mconnect", "mpay", "mpower", "mnotify", "mdelivery", "mdocs", "mlog", "mlearn", "mcloud"];
3
+ export type MProduct = (typeof mProducts)[number];
4
+ /** Public URL of the logomark (icon only, no name or description) of an M product. `base` overrides where the files are served from. */
5
+ export declare function mProductLogoUrl(product: MProduct, base?: string): string;
@@ -7,7 +7,7 @@ import { MudWidget } from '../../mud-widget';
7
7
  * Attributes
8
8
  * variant required. mconnect | mdate | mpass | msign | mpower | mnotify | mdelivery | mlearn | evosign
9
9
  * assets-base optional. Folder URL that serves the logo files (default: ./assets/footer/ next to the bundle).
10
- * max-width optional. Max width of the content: a CSS length (1100px, 80rem) or a number of pixels (default: 1270px).
10
+ * 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).
11
11
  * padding-x optional. Left and right padding of the content, same format (default: 16px).
12
12
  */
13
13
  export declare class MudFooter extends MudWidget {
@@ -0,0 +1,2 @@
1
+ export { MudMProductsLogo, mProductLogos } from './mud-mproducts-logo';
2
+ export type { MProductName } from './mud-mproducts-logo';
@@ -0,0 +1,32 @@
1
+ /** Inline SVG markup (logomark) of each M product. */
2
+ export declare const mProductLogos: {
3
+ mpass: string;
4
+ msign: string;
5
+ mconnect: string;
6
+ mpay: string;
7
+ mpower: string;
8
+ mnotify: string;
9
+ mdelivery: string;
10
+ mdocs: string;
11
+ mlog: string;
12
+ mlearn: string;
13
+ mcloud: string;
14
+ };
15
+ export type MProductName = keyof typeof mProductLogos;
16
+ /**
17
+ * <mud-mproducts-logo product="mpass" size="48"></mud-mproducts-logo>
18
+ *
19
+ * The logomark of an M product, rendered as inline SVG (no extra request). The logo always fills the tag, so it can be sized with the attributes below or with CSS on the tag (`style="width:64px;height:64px"`, a class, ...).
20
+ *
21
+ * Attributes
22
+ * product required. mpass | msign | mconnect | mpay | mpower | mnotify | mdelivery | mdocs | mlog | mlearn | mcloud
23
+ * size optional. Width and height of the logo (it is square): CSS length or number of pixels (default: 40px).
24
+ * label optional. Accessible name (default: the product name). Use label="" for a purely decorative logo.
25
+ */
26
+ export declare class MudMProductsLogo extends HTMLElement {
27
+ private readonly root;
28
+ static get observedAttributes(): string[];
29
+ connectedCallback(): void;
30
+ attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
31
+ private render;
32
+ }