@rogieking/figui3 3.20.0 → 3.20.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.
Files changed (2) hide show
  1. package/fig.js +8 -0
  2. package/package.json +1 -1
package/fig.js CHANGED
@@ -3656,6 +3656,10 @@ class FigInputText extends HTMLElement {
3656
3656
  this[name] = this.input[name] = newValue;
3657
3657
  this.input.setAttribute("name", newValue);
3658
3658
  break;
3659
+ case "placeholder":
3660
+ this.placeholder = newValue ?? "";
3661
+ this.input.placeholder = this.placeholder;
3662
+ break;
3659
3663
  default:
3660
3664
  this[name] = this.input[name] = newValue;
3661
3665
  break;
@@ -4141,6 +4145,10 @@ class FigInputNumber extends HTMLElement {
4141
4145
  this[name] = this.input[name] = newValue;
4142
4146
  this.input.setAttribute("name", newValue);
4143
4147
  break;
4148
+ case "placeholder":
4149
+ this.placeholder = newValue ?? "";
4150
+ this.input.placeholder = this.placeholder;
4151
+ break;
4144
4152
  default:
4145
4153
  this[name] = this.input[name] = newValue;
4146
4154
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "3.20.0",
3
+ "version": "3.20.1",
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",