@egov-moldova/mud-site-kit 1.0.5 → 1.0.6

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.
Files changed (43) hide show
  1. package/README.md +2 -1
  2. package/assets/footer-v2/age-logo.svg +67 -0
  3. package/assets/footer-v2/app-store-badge.svg +291 -0
  4. package/assets/footer-v2/evo-logo.svg +16 -0
  5. package/assets/footer-v2/evosign-logo.svg +12 -0
  6. package/assets/footer-v2/google-play-badge.svg +28 -0
  7. package/assets/footer-v2/guvernul-logo.svg +35 -0
  8. package/assets/footer-v2/mconnect-logo.svg +1 -0
  9. package/assets/footer-v2/mdate-logo.svg +53 -0
  10. package/assets/footer-v2/mdelivery-logo.svg +53 -0
  11. package/assets/footer-v2/mlearn-logo.svg +79 -0
  12. package/assets/footer-v2/mnotify-logo.svg +53 -0
  13. package/assets/footer-v2/mpass-logo.svg +53 -0
  14. package/assets/footer-v2/mpower-logo.svg +28 -0
  15. package/assets/footer-v2/msign-logo.svg +53 -0
  16. package/mud-site-kit.esm.js +1576 -301
  17. package/mud-site-kit.esm.js.map +1 -1
  18. package/mud-site-kit.iife.js +564 -62
  19. package/mud-site-kit.iife.js.map +1 -1
  20. package/package.json +1 -1
  21. package/types/components/{footer → footer-v2}/data/index.d.ts +1 -1
  22. package/types/components/footer-v2/index.d.ts +4 -0
  23. package/types/components/{footer/mud-footer.d.ts → footer-v2/mud-footer-v2.d.ts} +3 -3
  24. package/types/components/{footer → footer-v2}/resources/footer.assets.d.ts +1 -1
  25. package/types/index.d.ts +1 -0
  26. package/types/components/footer/index.d.ts +0 -4
  27. /package/types/components/{footer → footer-v2}/data/contacts.d.ts +0 -0
  28. /package/types/components/{footer → footer-v2}/data/evosign.d.ts +0 -0
  29. /package/types/components/{footer → footer-v2}/data/links.production.d.ts +0 -0
  30. /package/types/components/{footer → footer-v2}/data/mconnect.d.ts +0 -0
  31. /package/types/components/{footer → footer-v2}/data/mdate.d.ts +0 -0
  32. /package/types/components/{footer → footer-v2}/data/mdelivery.d.ts +0 -0
  33. /package/types/components/{footer → footer-v2}/data/mlearn.d.ts +0 -0
  34. /package/types/components/{footer → footer-v2}/data/mnotify.d.ts +0 -0
  35. /package/types/components/{footer → footer-v2}/data/mpass.d.ts +0 -0
  36. /package/types/components/{footer → footer-v2}/data/mpower.d.ts +0 -0
  37. /package/types/components/{footer → footer-v2}/data/msign.d.ts +0 -0
  38. /package/types/components/{footer → footer-v2}/data/shared.d.ts +0 -0
  39. /package/types/components/{footer → footer-v2}/data/texts.d.ts +0 -0
  40. /package/types/components/{footer → footer-v2}/footer.styles.d.ts +0 -0
  41. /package/types/components/{footer → footer-v2}/footer.template.d.ts +0 -0
  42. /package/types/components/{footer → footer-v2}/resources/footer.icons.d.ts +0 -0
  43. /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.5",
3
+ "version": "1.0.6",
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;
@@ -0,0 +1,4 @@
1
+ export { MudFooterV2 } from './mud-footer-v2';
2
+ export { variants as footerV2Variants, shared as footerV2Shared } from './data';
3
+ export type { FooterVariantName as FooterV2VariantName } from './data';
4
+ export type * as FooterV2Types from './types/footer.types';
@@ -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 MudFooter extends MudComponent {
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;
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';
@@ -1,4 +0,0 @@
1
- export { MudFooter } from './mud-footer';
2
- export { variants, shared as footerShared } from './data';
3
- export type { FooterVariantName } from './data';
4
- export type * from './types/footer.types';