@rogieking/figui3 6.27.0 → 6.28.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.
package/README.md CHANGED
@@ -372,7 +372,7 @@ Composes a `<fig-field>` and `<fig-select>` into a full-surface property control
372
372
 
373
373
  **Attributes:** `label`, `value`, `default`, `options`, `disabled`, `size`
374
374
 
375
- **Events:** `input`, `change` — forwarded from the inner select.
375
+ **Events:** `input`, `change`, `optionhover` — forwarded from the inner select. `optionhover` fires once when the pointer enters an enabled option, with the option value in `event.detail`, without changing the selection.
376
376
 
377
377
  Right-click and choose **Reset**, or call `resetToDefault()`, to restore `default` or the initial selection.
378
378
 
package/components.css CHANGED
@@ -3843,14 +3843,14 @@ fig-input-gradient {
3843
3843
  --fig-input-gradient-swatch-border-radius: var(--radius-medium);
3844
3844
  }
3845
3845
 
3846
- &[edit="false"],
3847
- &[edit="picker"] {
3846
+ &[edit="false"] {
3848
3847
  pointer-events: none;
3849
3848
  --fig-input-gradient-swatch-border-radius: var(--radius-medium);
3850
-
3851
3849
  }
3852
3850
 
3853
3851
  &[edit="picker"] {
3852
+ --fig-input-gradient-swatch-border-radius: var(--radius-medium);
3853
+
3854
3854
  & > fig-fill-picker {
3855
3855
  display: contents;
3856
3856
  }
@@ -4040,6 +4040,7 @@ fig-field {
4040
4040
  --fig-field-right-padding: var(--spacer-3);
4041
4041
  --fig-field-top-padding: var(--spacer-1);
4042
4042
  --fig-field-bottom-padding: var(--spacer-1);
4043
+ --fig-field-label-max-height: var(--spacer-5);
4043
4044
  --fig-field-label-ratio: 1fr;
4044
4045
  --fig-field-input-ratio: 2fr;
4045
4046
  display: grid;
@@ -4120,6 +4121,14 @@ fig-field {
4120
4121
  min-width: 0;
4121
4122
  }
4122
4123
 
4124
+ &:not([direction="vertical"]) > label {
4125
+ align-self: start;
4126
+ align-content: center;
4127
+ box-sizing: border-box;
4128
+ height: min(100%, var(--fig-field-label-max-height));
4129
+ padding-block: 0;
4130
+ }
4131
+
4123
4132
  & > *:not(.fig-field-chevron):not(label) {
4124
4133
  grid-area: input;
4125
4134
  }