@pure-ds/core 0.5.24 → 0.5.25

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@pure-ds/core",
3
3
  "shortname": "pds",
4
- "version": "0.5.24",
4
+ "version": "0.5.25",
5
5
  "description": "Pure Design System - Why develop a Design System when you can generate one?",
6
6
  "repository": {
7
7
  "type": "git",
@@ -245,7 +245,7 @@ customElements.define(
245
245
  this.shadowRoot.innerHTML +=
246
246
  "\n <form>\n <fieldset role=\"radiogroup\" aria-label=\"Theme\" class=\"buttons\">\n <legend>Theme</legend>\n <label>\n <input type=\"radio\" name=\"theme\" value=\"system\">\n <span>\n <pds-icon icon=\"moon-stars\"></pds-icon>\n System\n </span>\n </label>\n <label>\n <input type=\"radio\" name=\"theme\" value=\"light\">\n <span>\n <pds-icon icon=\"sun\"></pds-icon>\n Light\n </span>\n </label>\n <label>\n <input type=\"radio\" name=\"theme\" value=\"dark\">\n <span>\n <pds-icon icon=\"moon\"></pds-icon>\n Dark\n </span>\n </label>\n </fieldset>\n </form>";
247
247
 
248
- this.#updateCheckedState();
248
+ this.updateCheckedState();
249
249
 
250
250
  this.shadowRoot.addEventListener("change", (e) => {
251
251
  if (e.target.type === "radio" && e.target.name === "theme") {
@@ -255,7 +255,7 @@ customElements.define(
255
255
  });
256
256
 
257
257
  const observer = new MutationObserver(() => {
258
- this.#updateCheckedState();
258
+ this.updateCheckedState();
259
259
  });
260
260
 
261
261
  observer.observe(document.documentElement, {
@@ -264,7 +264,7 @@ customElements.define(
264
264
  });
265
265
  }
266
266
 
267
- #updateCheckedState() {
267
+ updateCheckedState() {
268
268
  const currentTheme = PDS.theme || "system";
269
269
  const radios = this.shadowRoot.querySelectorAll('input[type="radio"]');
270
270
  radios.forEach((radio) => {
@@ -29,8 +29,6 @@ class PDSRegistry {
29
29
  setStaticMode(paths = {}) {
30
30
  this._mode = "static";
31
31
  this._staticPaths = { ...this._staticPaths, ...paths };
32
- // Note: No access to config in static mode, using console
33
- console.log("[PDS Registry] Switched to STATIC mode", this._staticPaths);
34
32
  }
35
33
 
36
34
  /**