@gerege-systems/eid-mongolia-sdk 0.29.0 → 0.29.1

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/dist/button.cjs CHANGED
@@ -721,16 +721,16 @@ var EidLoginButton = class extends Base {
721
721
  }
722
722
  this.trigger.replaceChildren(...nodes);
723
723
  this.trigger.classList.toggle("icon-only", iconOnly);
724
- const aria = this.getAttribute("aria-label") || (iconOnly ? text : null);
724
+ const aria = this.getAttribute("aria-label") || (iconOnly || brand ? text : null);
725
725
  if (aria) this.trigger.setAttribute("aria-label", aria);
726
726
  else this.trigger.removeAttribute("aria-label");
727
727
  }
728
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
728
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
729
729
  brand(logoAttrs = {}, textAttrs = {}) {
730
730
  const [pre, post] = this.t.withLogo;
731
731
  const box = el("span", { class: post && !pre ? "brand tight" : "brand" });
732
732
  if (pre) box.append(el("span", textAttrs, pre));
733
- box.append(logo(logoAttrs), el("span", { class: "sr-only" }, "eID"));
733
+ box.append(logo(logoAttrs));
734
734
  if (post) box.append(el("span", textAttrs, post));
735
735
  return box;
736
736
  }
@@ -781,7 +781,7 @@ var EidLoginButton = class extends Base {
781
781
  const head = el("div", { class: "head" });
782
782
  const x = el("button", { type: "button", class: "x", "aria-label": this.t.close }, "\xD7");
783
783
  x.addEventListener("click", () => this.close());
784
- const h2 = el("h2", { id: "eid-title" });
784
+ const h2 = el("h2", { id: "eid-title", "aria-label": this.t.title });
785
785
  h2.append(this.brand());
786
786
  head.append(h2, x);
787
787
  this.body = el("div");
package/dist/button.d.cts CHANGED
@@ -75,7 +75,7 @@ declare class EidLoginButton extends Base {
75
75
  attributeChangedCallback(name: string): void;
76
76
  /** Trigger-ийн агуулга: label / icon / variant / aria-label-аас. Хоосон товч хэзээ ч үүсгэхгүй. */
77
77
  private renderTrigger;
78
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
78
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
79
79
  private brand;
80
80
  disconnectedCallback(): void;
81
81
  /** Одоогийн бодит схем (`theme` + auto үед хуудас/OS). */
package/dist/button.d.ts CHANGED
@@ -75,7 +75,7 @@ declare class EidLoginButton extends Base {
75
75
  attributeChangedCallback(name: string): void;
76
76
  /** Trigger-ийн агуулга: label / icon / variant / aria-label-аас. Хоосон товч хэзээ ч үүсгэхгүй. */
77
77
  private renderTrigger;
78
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
78
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
79
79
  private brand;
80
80
  disconnectedCallback(): void;
81
81
  /** Одоогийн бодит схем (`theme` + auto үед хуудас/OS). */
package/dist/button.js CHANGED
@@ -692,16 +692,16 @@ var EidLoginButton = class extends Base {
692
692
  }
693
693
  this.trigger.replaceChildren(...nodes);
694
694
  this.trigger.classList.toggle("icon-only", iconOnly);
695
- const aria = this.getAttribute("aria-label") || (iconOnly ? text : null);
695
+ const aria = this.getAttribute("aria-label") || (iconOnly || brand ? text : null);
696
696
  if (aria) this.trigger.setAttribute("aria-label", aria);
697
697
  else this.trigger.removeAttribute("aria-label");
698
698
  }
699
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
699
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
700
700
  brand(logoAttrs = {}, textAttrs = {}) {
701
701
  const [pre, post] = this.t.withLogo;
702
702
  const box = el("span", { class: post && !pre ? "brand tight" : "brand" });
703
703
  if (pre) box.append(el("span", textAttrs, pre));
704
- box.append(logo(logoAttrs), el("span", { class: "sr-only" }, "eID"));
704
+ box.append(logo(logoAttrs));
705
705
  if (post) box.append(el("span", textAttrs, post));
706
706
  return box;
707
707
  }
@@ -752,7 +752,7 @@ var EidLoginButton = class extends Base {
752
752
  const head = el("div", { class: "head" });
753
753
  const x = el("button", { type: "button", class: "x", "aria-label": this.t.close }, "\xD7");
754
754
  x.addEventListener("click", () => this.close());
755
- const h2 = el("h2", { id: "eid-title" });
755
+ const h2 = el("h2", { id: "eid-title", "aria-label": this.t.title });
756
756
  h2.append(this.brand());
757
757
  head.append(h2, x);
758
758
  this.body = el("div");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gerege-systems/eid-mongolia-sdk",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "description": "e-ID Mongolia Relying Party SDK — иргэнээр утсаар нь нэвтрэлт ба хууль ёсны цахим гарын үсэг (RP-API v3, Smart-ID нийцтэй).",
5
5
  "license": "MIT",
6
6
  "type": "module",