@rogieking/figui3 8.9.5 → 8.9.7
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 +11 -1
- package/components.css +9 -0
- package/dist/components.css +1 -1
- package/dist/fig-lab.js +1 -1
- package/dist/fig.css +1 -1
- package/fig-lab.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -419,7 +419,7 @@ Right-click and choose **Reset**, or call `resetToDefault()`, to restore the def
|
|
|
419
419
|
|
|
420
420
|
`<propskit-select>`
|
|
421
421
|
|
|
422
|
-
Composes a `<fig-field>` and `<fig-select>` into a full-surface property control. Requires `fig-editor.js` (which registers `fig-select`). Options come from the `options` attribute (same formats as `fig-options`: comma-separated, newline-delimited, or a JSON array).
|
|
422
|
+
Composes a `<fig-field>` and `<fig-select>` into a full-surface property control. Requires `fig-editor.js` (which registers `fig-select`). Options can come from the `options` attribute (same formats as `fig-options`: comma-separated, newline-delimited, or a JSON array), or from an authored `<fig-select-options>` child for rich option content.
|
|
423
423
|
|
|
424
424
|
**Attributes:** `label`, `value`, `default`, `options`, `disabled`, `size`
|
|
425
425
|
|
|
@@ -431,6 +431,16 @@ Right-click and choose **Reset**, or call `resetToDefault()`, to restore `defaul
|
|
|
431
431
|
<propskit-select label="Alignment" value="Center" options="Left,Center,Right"></propskit-select>
|
|
432
432
|
```
|
|
433
433
|
|
|
434
|
+
```html
|
|
435
|
+
<propskit-select label="Interpolation" value="srgb">
|
|
436
|
+
<fig-select-options slot="panel">
|
|
437
|
+
<fig-select-option value="srgb" label="Classic — sRGB Linear">
|
|
438
|
+
<div><h3>Classic</h3><span>sRGB Linear</span></div>
|
|
439
|
+
</fig-select-option>
|
|
440
|
+
</fig-select-options>
|
|
441
|
+
</propskit-select>
|
|
442
|
+
```
|
|
443
|
+
|
|
434
444
|
---
|
|
435
445
|
|
|
436
446
|
#### Propskit Text
|
package/components.css
CHANGED
|
@@ -5563,6 +5563,15 @@ fig-menu-item {
|
|
|
5563
5563
|
}
|
|
5564
5564
|
}
|
|
5565
5565
|
|
|
5566
|
+
&[subtle]:not([subtle="false"]) {
|
|
5567
|
+
&:hover,
|
|
5568
|
+
&:focus-visible {
|
|
5569
|
+
&::before {
|
|
5570
|
+
background-color: var(--figma-color-bg-secondary);
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5566
5575
|
&[disabled]:not([disabled="false"]),
|
|
5567
5576
|
&[aria-disabled="true"] {
|
|
5568
5577
|
opacity: 0.4;
|