@rogieking/figui3 8.9.15 → 8.9.16
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/figui3/SKILL.md +1 -1
- package/README.md +1 -1
- package/components.css +3 -1
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +4 -4
- package/fig.js +20 -8
- package/package.json +1 -1
|
@@ -154,7 +154,7 @@ Playground hashes: `/figui3#{id}`. Full attrs: [reference.md](reference.md).
|
|
|
154
154
|
| `fig-header` / `fig-footer` / `fig-content` | (containers) | Header: `borderless`, `compact`. Footer: `sticky` |
|
|
155
155
|
| `fig-tabs` / `fig-tab` | `#tabs` | Roving tabs. `content="#id"` for panels |
|
|
156
156
|
| `fig-segmented-control` / `fig-segment` | `#segmented-control` | Radio-group pattern |
|
|
157
|
-
| `fig-chooser` / `fig-choice` |
|
|
157
|
+
| `fig-chooser` / `fig-choice` | `#chooser` | Listbox. Omit `value` to select first; `value=""` means none. |
|
|
158
158
|
| `fig-separator` / `fig-menu-separator` | `#separator` | Optional `label`, `sticky`, `borderless` |
|
|
159
159
|
| `fig-menu` / `fig-menu-item` | `#menu` | `fig-menu-trigger`, `trigger="contextmenu"`, `position`, `offset`. Item also works in `fig-popup` (sticky separators, nested row menus). |
|
|
160
160
|
| `fig-icon` | `#icon` | Token mask (`name`, `size="small"`, `color`) |
|
package/README.md
CHANGED
|
@@ -1053,7 +1053,7 @@ When app code rebuilds a chooser by setting `fig-chooser.innerHTML`, the chooser
|
|
|
1053
1053
|
|
|
1054
1054
|
| Attribute | Type | Default | Description |
|
|
1055
1055
|
|---|---|---|---|
|
|
1056
|
-
| `value` | string | — | Selected choice value |
|
|
1056
|
+
| `value` | string | — | Selected choice value. Omit to select the first choice; `value=""` means none. |
|
|
1057
1057
|
| `choice-element` | string | `"fig-choice"` | CSS selector for child choices |
|
|
1058
1058
|
| `layout` | string | `"vertical"` | `"vertical"`, `"horizontal"`, `"grid"` |
|
|
1059
1059
|
| `columns` | number | `2` | Grid column count when `layout="grid"` |
|
package/components.css
CHANGED
|
@@ -5312,7 +5312,9 @@ fig-choice {
|
|
|
5312
5312
|
content: "";
|
|
5313
5313
|
position: absolute;
|
|
5314
5314
|
inset: 0;
|
|
5315
|
-
border-radius:
|
|
5315
|
+
border-radius: calc(
|
|
5316
|
+
var(--fig-choice-border-radius) + var(--fig-choice-selection-ring-width)
|
|
5317
|
+
);
|
|
5316
5318
|
pointer-events: none;
|
|
5317
5319
|
z-index: 1;
|
|
5318
5320
|
box-shadow: inset 0 0 0 calc(var(--fig-choice-selection-ring-width)*2) var(--figma-color-bg);
|