@rogieking/figui3 8.9.4 → 8.9.6

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/fig-lab.js CHANGED
@@ -1387,6 +1387,7 @@ class PropskitSelect extends HTMLElement {
1387
1387
  #initialize() {
1388
1388
  this.#initialValue = this.getAttribute("value") ?? "";
1389
1389
  const customLabel = this.querySelector(":scope > label");
1390
+ const customOptions = this.querySelector(":scope > fig-select-options");
1390
1391
  const field = document.createElement("fig-field");
1391
1392
  const label = customLabel || document.createElement("label");
1392
1393
  this.#usesFigSelect = PropskitSelect.#canUseFigSelect();
@@ -1395,6 +1396,7 @@ class PropskitSelect extends HTMLElement {
1395
1396
  );
1396
1397
  // Match menu/control width to the full-surface field.
1397
1398
  select.setAttribute("full", "");
1399
+ if (this.#usesFigSelect && customOptions) select.append(customOptions);
1398
1400
  field.append(label, select);
1399
1401
  this.#field = field;
1400
1402
  this.#label = label;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "8.9.4",
3
+ "version": "8.9.6",
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",