@rogieking/figui3 8.1.0 → 8.2.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
@@ -58,6 +58,13 @@ import "@rogieking/figui3/fig-editor.css";
58
58
  import "@rogieking/figui3/fig-editor.js";
59
59
  ```
60
60
 
61
+ Opt into experimental Lab and PropsKit components after the core imports:
62
+
63
+ ```js
64
+ import "@rogieking/figui3/fig-lab.css";
65
+ import "@rogieking/figui3/fig-lab.js";
66
+ ```
67
+
61
68
  Or use a CDN:
62
69
 
63
70
  ```html
@@ -327,6 +334,7 @@ each nested input to its own current `default`.
327
334
  | `direction` | string | `"horizontal"` | Field layout direction |
328
335
  | `size` | string | default | Set to `"large"` for the expanded layout |
329
336
  | `default` | number/string | initial `value` | Right-click reset target |
337
+ | `disabled` | boolean | `false` | Disable interaction |
330
338
  | *number attrs* | — | — | All `<fig-input-number>` attributes are forwarded |
331
339
 
332
340
  **Events:** `input`, `change` — forwarded from the inner number input.
@@ -455,6 +463,7 @@ Wraps a `<fig-field>` and `<fig-slider>` into a single labeled control. All slid
455
463
  | `direction` | string | `"column"` | Layout direction |
456
464
  | `size` | string | default | Set to `"large"` for the expanded layout |
457
465
  | `default` | number/string | initial `value` | Double-click and right-click reset target |
466
+ | `disabled` | boolean | `false` | Disable interaction |
458
467
  | *slider attrs* | — | — | All `<fig-slider>` attributes except host-only PropsKit attributes are forwarded |
459
468
 
460
469
  **Events:** `input`, `change` — forwarded from the inner slider.
@@ -514,6 +523,7 @@ A compact `<fig-group>` wrapper that combines `<propskit-color>` and `<propskit-
514
523
  | `collapsible` | boolean | `true` | Passed to the internal `fig-group` |
515
524
  | `open` | boolean | `true` | Passed to the internal `fig-group` |
516
525
  | `size` | string | default | Passed to both internal PropsKit controls |
526
+ | `disabled` | boolean | `false` | Disable both internal controls |
517
527
 
518
528
  The internal group always has `compact`. `value` uses the same `{ x, y, color }` shape as `<fig-canvas-control type="color">`.
519
529
 
@@ -542,6 +552,7 @@ A compact `<fig-group>` wrapper that combines `<propskit-position>` and `<propsk
542
552
  | `open` | boolean | `true` | Passed to the internal `fig-group` |
543
553
  | `units` | string | — | `"percent"` passes percentage units to position and radius; omit for no units |
544
554
  | `size` | string | default | Passed to both internal PropsKit controls |
555
+ | `disabled` | boolean | `false` | Disable both internal controls |
545
556
 
546
557
  The internal group always has `compact`. `value` uses the same `{ x, y, radius }` shape as `<fig-canvas-control type="point-radius">`. Numeric radius values use pixels; percentage strings preserve `%`.
547
558
 
@@ -571,6 +582,7 @@ A compact `<fig-group>` wrapper combining `<propskit-position>` with radius and
571
582
  | `open` | boolean | `true` | Passed to the internal `fig-group` |
572
583
  | `units` | string | — | `"percent"` passes percentage units to position and radius; omit for no units |
573
584
  | `size` | string | default | Passed to every internal PropsKit control |
585
+ | `disabled` | boolean | `false` | Disable every internal control |
574
586
 
575
587
  The internal group always has `compact`. `value` uses the same `{ x, y, radius, angle }` shape as `<fig-canvas-control type="point-radius-angle">`. Numeric radius values use pixels; percentage strings preserve `%`. Angles are degrees.
576
588
 
@@ -600,6 +612,7 @@ A compact `<fig-group>` wrapper combining start and end `<propskit-position>` co
600
612
  | `open` | boolean | `true` | Passed to the internal `fig-group` |
601
613
  | `units` | string | — | `"percent"` passes percentage units to both positions; omit for no units |
602
614
  | `size` | string | default | Passed to both position controls |
615
+ | `disabled` | boolean | `false` | Disable both position controls |
603
616
 
604
617
  The internal group always has `compact`. `value` uses the same `{ x, y, x2, y2 }` shape as `<fig-canvas-control type="point-point">`.
605
618
 
package/components.css CHANGED
@@ -1686,6 +1686,7 @@ fig-video {
1686
1686
 
1687
1687
  > fig-spinner[slot="overlay"][data-loading-indicator][data-generated] {
1688
1688
  place-self: center;
1689
+ max-width: none;
1689
1690
  z-index: 1;
1690
1691
  opacity: 1;
1691
1692
  pointer-events: none;
@@ -4300,6 +4301,7 @@ fig-field {
4300
4301
  fig-spinner {
4301
4302
  width: var(--spacer-4);
4302
4303
  height: var(--spacer-4);
4304
+ flex-shrink: 0;
4303
4305
  display: inline-flex;
4304
4306
  background-color: var(--figma-color-icon-tertiary);
4305
4307
  mask-image: var(--icon-24-spinner);