@rogieking/figui3 8.9.13 → 8.9.15
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/.cursor/skills/fig-lab/SKILL.md +2 -2
- package/.cursor/skills/propkit/SKILL.md +1 -1
- package/README.md +5 -5
- package/components.css +2 -0
- package/dist/components.css +1 -1
- package/dist/fig-lab.css +1 -1
- package/dist/fig-lab.js +2 -2
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig-lab.css +27 -50
- package/fig-lab.js +115 -39
- package/fig.js +7 -1
- package/package.json +1 -1
|
@@ -49,8 +49,8 @@ Shared:
|
|
|
49
49
|
| Tag | Playground | Inner control | Notes |
|
|
50
50
|
|---|---|---|---|
|
|
51
51
|
| `propskit-switch` | `#propskit-switch` | `fig-switch` | `checked`, `default` boolean |
|
|
52
|
-
| `propskit-color` | `#propskit-color` | `fig-
|
|
53
|
-
| `propskit-gradient` | `#propskit-gradient` | `fig-input-gradient` | `edit
|
|
52
|
+
| `propskit-color` | `#propskit-color` | `fig-fill-picker` + `fig-swatch` | Solid swatch, same size as gradient. Opens the fill picker. `alpha` default true |
|
|
53
|
+
| `propskit-gradient` | `#propskit-gradient` | `fig-input-gradient` | Default `edit="picker"`. `mode="handle\|tip"` for inline edit |
|
|
54
54
|
| `propskit-select` | `#propskit-select` | `fig-select` | `options` or slotted `fig-select-options` |
|
|
55
55
|
| `propskit-text` | `#propskit-text` | `fig-input-text` | `type`, `readonly` |
|
|
56
56
|
| `propskit-number` | `#propskit-number` | `fig-input-number` | `min`, `max`, `step`, `precision`, `units`, `steppers` |
|
|
@@ -68,7 +68,7 @@ On `fig-*` and `<dialog is="fig-...">`, use `class` not `className`.
|
|
|
68
68
|
| Small discrete set (2–5) | `fig-segmented-control` | — |
|
|
69
69
|
| Larger / rich list | `fig-select` (editor) | `propskit-select` |
|
|
70
70
|
| Native select only | `fig-dropdown` | — |
|
|
71
|
-
| Color | `fig-input-color` `text="true"` | `propskit-color` |
|
|
71
|
+
| Color | `fig-input-color` `text="true"` | `propskit-color` (fill-picker swatch) |
|
|
72
72
|
| Fill | `fig-input-fill` | — |
|
|
73
73
|
| Gradient | `fig-input-gradient` | `propskit-gradient` |
|
|
74
74
|
| Image | `fig-image` `upload` | — |
|
package/README.md
CHANGED
|
@@ -392,11 +392,11 @@ Right-click and choose **Reset**, or call `resetToDefault()`, to restore `defaul
|
|
|
392
392
|
|
|
393
393
|
`<propskit-color>`
|
|
394
394
|
|
|
395
|
-
Composes a `<fig-field>` and
|
|
395
|
+
Composes a `<fig-field>` and a solid `fig-fill-picker` swatch into a full-surface property control. Clicking the swatch opens the color picker. There is no hex/opacity text field.
|
|
396
396
|
|
|
397
397
|
**Attributes:** `label`, `value`, `default`, `alpha`, `disabled`, `size`
|
|
398
398
|
|
|
399
|
-
**Events:** `input`, `change` —
|
|
399
|
+
**Events:** `input`, `change` — `{ color, alpha, opacity }` from the fill picker.
|
|
400
400
|
|
|
401
401
|
Right-click and choose **Reset**, or call `resetToDefault()`, to restore `default` or the initial color.
|
|
402
402
|
|
|
@@ -410,14 +410,14 @@ Right-click and choose **Reset**, or call `resetToDefault()`, to restore `defaul
|
|
|
410
410
|
|
|
411
411
|
`<propskit-gradient>`
|
|
412
412
|
|
|
413
|
-
Composes a `<fig-field>` and `<fig-input-gradient>` into a full-surface property control.
|
|
413
|
+
Composes a `<fig-field>` and `<fig-input-gradient>` into a full-surface property control. Defaults to `edit="picker"` — click the swatch to open the fill picker.
|
|
414
414
|
|
|
415
415
|
| Attribute | Type | Default | Description |
|
|
416
416
|
|---|---|---|---|
|
|
417
417
|
| `label` | string | `"Label"` | Field label text; use an empty value to hide it |
|
|
418
418
|
| `value` | JSON string | default gradient | Canonical `{ "type": "gradient", "gradient": { ... } }` data |
|
|
419
419
|
| `default` | JSON string | initial `value` | Right-click and group reset target |
|
|
420
|
-
| `edit` | boolean/string | `
|
|
420
|
+
| `edit` | boolean/string | `"picker"` | `true` (inline stops), `false`, or `"picker"` |
|
|
421
421
|
| `mode` | string | `"handle"` | `"handle"` or `"tip"` stop presentation |
|
|
422
422
|
| `disabled` | boolean | `false` | Disabled state |
|
|
423
423
|
| `size` | string | default | Set to `"large"` for the expanded layout |
|
|
@@ -426,7 +426,7 @@ Composes a `<fig-field>` and `<fig-input-gradient>` into a full-surface property
|
|
|
426
426
|
|
|
427
427
|
**Methods and state:** `defaultValue`, `isDefault`, and `resetToDefault()`. JSON defaults use structural equality, so object key order does not affect dirty state.
|
|
428
428
|
|
|
429
|
-
|
|
429
|
+
Click the swatch to open the fill picker. With `edit="true"`, the first stop receives focus; Arrow keys move the selected stop, Shift+Arrow moves by 5%, Tab cycles stops, and Delete/Backspace removes a stop while preserving the two-stop minimum.
|
|
430
430
|
|
|
431
431
|
```html
|
|
432
432
|
<propskit-gradient
|
package/components.css
CHANGED
|
@@ -5683,9 +5683,11 @@ fig-menu-item {
|
|
|
5683
5683
|
&[direction="vertical"] {
|
|
5684
5684
|
align-self: stretch;
|
|
5685
5685
|
width: 1px;
|
|
5686
|
+
max-width: 1px;
|
|
5686
5687
|
height: auto;
|
|
5687
5688
|
min-height: var(--spacer-3);
|
|
5688
5689
|
margin: 0;
|
|
5690
|
+
padding: 0;
|
|
5689
5691
|
}
|
|
5690
5692
|
|
|
5691
5693
|
&[borderless]:not([borderless="false"]) {
|