@rogieking/figui3 2.31.1 → 2.31.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.
Files changed (2) hide show
  1. package/fig.js +3 -0
  2. package/package.json +1 -1
package/fig.js CHANGED
@@ -2400,6 +2400,7 @@ class FigSlider extends HTMLElement {
2400
2400
  #regenerateInnerHTML() {
2401
2401
  this.value = Number(this.getAttribute("value") || 0);
2402
2402
  this.type = this.getAttribute("type") || "range";
2403
+ this.variant = this.getAttribute("variant") || "default";
2403
2404
  this.text =
2404
2405
  this.hasAttribute("text") && this.getAttribute("text") !== "false";
2405
2406
  this.units = this.getAttribute("units") || "";
@@ -2620,6 +2621,7 @@ class FigSlider extends HTMLElement {
2620
2621
  "min",
2621
2622
  "max",
2622
2623
  "type",
2624
+ "variant",
2623
2625
  "disabled",
2624
2626
  "color",
2625
2627
  "units",
@@ -2682,6 +2684,7 @@ class FigSlider extends HTMLElement {
2682
2684
  case "max":
2683
2685
  case "step":
2684
2686
  case "type":
2687
+ case "variant":
2685
2688
  case "units":
2686
2689
  this[name] = newValue;
2687
2690
  this.#regenerateInnerHTML();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "2.31.1",
3
+ "version": "2.31.2",
4
4
  "description": "A lightweight web components library for building Figma plugin and widget UIs with native look and feel",
5
5
  "author": "Rogie King",
6
6
  "license": "MIT",