@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/README.md +11 -1
- package/components.css +10 -9
- 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
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
inset 0px 0.5px 0px 0px light-dark(transparent, rgba(255, 255, 255, 0.08)),
|
|
439
439
|
inset 0px 0.75px 0px 0px light-dark(transparent, rgba(255, 255, 255, 0.075));
|
|
440
440
|
|
|
441
|
+
--fig-popover-shadow:
|
|
442
|
+
drop-shadow(0px 1px 1.5px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)))
|
|
443
|
+
drop-shadow(0px 2.5px 6px light-dark(rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.5)))
|
|
444
|
+
drop-shadow(0px 0px 0.5px light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)));
|
|
445
|
+
|
|
441
446
|
--figma-elevation-500-modal-window:
|
|
442
447
|
0px 0px 0.5px 0px light-dark(rgba(0, 0, 0, 0.08), transparent),
|
|
443
448
|
0px 10px 24px 0px light-dark(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45)),
|
|
@@ -3116,6 +3121,7 @@ dialog[is="fig-popup"] {
|
|
|
3116
3121
|
--fig-popup-tip-clip-path: path(
|
|
3117
3122
|
"M16 0H0L0 1H0.757359C1.55301 1 2.31607 1.31607 2.87868 1.87868L6.29587 5.29587C7.23704 6.23704 8.76296 6.23704 9.70413 5.29587L13.1213 1.87868C13.6839 1.31607 14.447 1 15.2426 1H16V0Z"
|
|
3118
3123
|
);
|
|
3124
|
+
--fig-popup-shadow: var(--figma-elevation-400-menu-panel);
|
|
3119
3125
|
|
|
3120
3126
|
z-index: var(--z-index);
|
|
3121
3127
|
position: fixed;
|
|
@@ -3125,6 +3131,7 @@ dialog[is="fig-popup"] {
|
|
|
3125
3131
|
overflow: auto;
|
|
3126
3132
|
border-radius: var(--fig-popup-radius);
|
|
3127
3133
|
background-color: var(--fig-popup-bg-color);
|
|
3134
|
+
box-shadow: var(--fig-popup-shadow);
|
|
3128
3135
|
|
|
3129
3136
|
&[autoresize]:not([autoresize="false"]) {
|
|
3130
3137
|
width: max-content;
|
|
@@ -3171,9 +3178,7 @@ dialog[is="fig-popup"] {
|
|
|
3171
3178
|
&[variant="popover"] {
|
|
3172
3179
|
overflow: visible;
|
|
3173
3180
|
box-shadow: inset 0 0.5px 0 0 rgba(255, 255, 255, 0.1);
|
|
3174
|
-
filter:
|
|
3175
|
-
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
3176
|
-
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
3181
|
+
filter: var(--fig-popover-shadow);
|
|
3177
3182
|
|
|
3178
3183
|
&:after {
|
|
3179
3184
|
content: "";
|
|
@@ -3221,9 +3226,7 @@ dialog[is="fig-popup"] {
|
|
|
3221
3226
|
min-width: 0;
|
|
3222
3227
|
box-shadow: inset 0 0.5px 0 0
|
|
3223
3228
|
light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1));
|
|
3224
|
-
filter:
|
|
3225
|
-
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
3226
|
-
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
3229
|
+
filter: var(--fig-popover-shadow);
|
|
3227
3230
|
pointer-events: none;
|
|
3228
3231
|
|
|
3229
3232
|
& > span {
|
|
@@ -5471,9 +5474,7 @@ fig-color-tip {
|
|
|
5471
5474
|
background-color: var(--figma-color-bg);
|
|
5472
5475
|
border-radius: var(--radius-medium, 0.3125rem);
|
|
5473
5476
|
box-shadow: inset 0 0.5px 0 0 rgba(255, 255, 255, 0.1);
|
|
5474
|
-
filter:
|
|
5475
|
-
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
5476
|
-
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
5477
|
+
filter: var(--fig-popover-shadow);
|
|
5477
5478
|
|
|
5478
5479
|
&[control="add"],
|
|
5479
5480
|
&[control="remove"] {
|