@rogieking/figui3 2.10.4 → 2.10.5

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/components.css CHANGED
@@ -1911,6 +1911,7 @@ fig-slider {
1911
1911
  }
1912
1912
  fig-input-text,
1913
1913
  fig-input-number {
1914
+ flex-basis: 5rem;
1914
1915
  border-top-left-radius: 0;
1915
1916
  border-bottom-left-radius: 0;
1916
1917
  border-left: 1px solid var(--figma-color-bg);
package/fig.js CHANGED
@@ -1587,6 +1587,8 @@ class FigSlider extends HTMLElement {
1587
1587
  "color",
1588
1588
  "units",
1589
1589
  "transform",
1590
+ "text",
1591
+ "default",
1590
1592
  ];
1591
1593
  }
1592
1594
 
@@ -1611,6 +1613,8 @@ class FigSlider extends HTMLElement {
1611
1613
  break;
1612
1614
  case "value":
1613
1615
  this.value = newValue;
1616
+ this.input.value = newValue;
1617
+ this.#syncProperties();
1614
1618
  if (this.figInputNumber) {
1615
1619
  this.figInputNumber.setAttribute("value", newValue);
1616
1620
  }
@@ -1621,6 +1625,10 @@ class FigSlider extends HTMLElement {
1621
1625
  this.figInputNumber.setAttribute("transform", this.transform);
1622
1626
  }
1623
1627
  break;
1628
+ case "default":
1629
+ this.default = newValue;
1630
+ this.#syncProperties();
1631
+ break;
1624
1632
  case "min":
1625
1633
  case "max":
1626
1634
  case "step":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "2.10.4",
3
+ "version": "2.10.5",
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",