@rogieking/figui3 9.4.6 → 9.4.8

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-editor.css CHANGED
@@ -693,6 +693,35 @@ fig-select {
693
693
  width: 100%;
694
694
  }
695
695
 
696
+ &[icon]:not([icon="false"]) {
697
+ --fig-select-icon-size: var(--spacer-4);
698
+
699
+ flex: 0 0 var(--fig-select-icon-size);
700
+ width: var(--fig-select-icon-size);
701
+
702
+ &[size="large"] {
703
+ --fig-select-icon-size: var(--spacer-5);
704
+ }
705
+
706
+ &::part(trigger) {
707
+ flex: 0 0 var(--fig-select-icon-size);
708
+ justify-content: center;
709
+ width: var(--fig-select-icon-size);
710
+ padding: 0;
711
+ }
712
+
713
+ &::part(label),
714
+ &::part(prepend) {
715
+ display: none;
716
+ }
717
+
718
+ &::after {
719
+ right: auto;
720
+ left: 50%;
721
+ transform: translate(-50%, -50%);
722
+ }
723
+ }
724
+
696
725
  &[disabled]:not([disabled="false"]) {
697
726
  pointer-events: none;
698
727
  color: var(--figma-color-text-tertiary);
package/fig-editor.js CHANGED
@@ -495,6 +495,7 @@ figEditorDefineElement("fig-select-options", FigSelectOptions);
495
495
  * A dropdown-styled select.
496
496
  * @attr {string} variant - Visual style. Use `ghost` for a borderless control.
497
497
  * @attr {string} size - Control size. Use `large` for a 32px-tall control.
498
+ * @attr {boolean} icon - Shows a square chevron-only trigger.
498
499
  * @attr {string} menu-anchor - CSS selector for an alternate menu anchor.
499
500
  * @property {Element|string|null} menuAnchor - Alternate menu anchor element or selector.
500
501
  * @event optionfocus - Fires with the focused option value during open-menu keyboard navigation.
package/fig.js CHANGED
@@ -5256,7 +5256,11 @@ class FigToolbelt extends HTMLElement {
5256
5256
  for (const slot of [this.#prependSlot, this.#appendSlot]) {
5257
5257
  const hidden = slot.assignedElements({ flatten: true }).length === 0;
5258
5258
  slot.hidden = hidden;
5259
- slot.style.display = hidden ? "none" : "";
5259
+ if (hidden) {
5260
+ slot.style.setProperty("display", "none", "important");
5261
+ } else {
5262
+ slot.style.removeProperty("display");
5263
+ }
5260
5264
  }
5261
5265
  }
5262
5266
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "9.4.6",
3
+ "version": "9.4.8",
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": "SEE LICENSE IN LICENSE",