@rogieking/figui3 10.0.5 → 10.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [10.0.6]
6
+
7
+ ### Added
8
+
9
+ - Added `overflow="buttons|fade"` to `fig-tabs`, with paging buttons by default and buttonless horizontal fades as an option.
10
+
11
+ ### Fixed
12
+
13
+ - Removed overflow-button layout gaps from tab strips.
14
+
5
15
  ## [10.0.5]
6
16
 
7
17
  ### Changed
package/README.md CHANGED
@@ -814,16 +814,23 @@ Use `--fig-toolbelt-gap`, `--fig-toolbelt-group-gap`, `--fig-toolbelt-group-sepa
814
814
  | `value` | string | — | Selected tab value |
815
815
  | `name` | string | — | Tabs group identifier |
816
816
  | `disabled` | boolean | `false` | Disable all tabs |
817
+ | `overflow` | string | `"buttons"` | `"buttons"` adds paging controls; `"fade"` uses horizontal edge fades without buttons |
817
818
 
818
819
  **Events:** `input`, `change` with selected tab value.
819
820
 
820
821
  Tabs use `role="tablist"` / `role="tab"` and roving focus. Use `content="#panel-id"` on each `<fig-tab>` to associate generated tab panels. Focus-visible tabs use the shared focus outline tokens.
822
+ Overflow buttons are enabled by default. Set `overflow="fade"` for buttonless scrolling with `fig-overflow-fade fig-overflow-fade-horizontal` applied to the tabs container.
821
823
 
822
824
  ```html
823
825
  <fig-tabs value="tab1">
824
826
  <fig-tab value="tab1">General</fig-tab>
825
827
  <fig-tab value="tab2">Advanced</fig-tab>
826
828
  </fig-tabs>
829
+
830
+ <fig-tabs value="tab1" overflow="fade">
831
+ <fig-tab value="tab1">General</fig-tab>
832
+ <fig-tab value="tab2">Advanced</fig-tab>
833
+ </fig-tabs>
827
834
  ```
828
835
 
829
836
  ---
package/components.css CHANGED
@@ -1357,7 +1357,7 @@ fig-tabs,
1357
1357
  display: flex;
1358
1358
  flex-direction: row;
1359
1359
  flex-wrap: nowrap;
1360
- gap: var(--spacer-1);
1360
+ gap: 0;
1361
1361
  min-width: 0;
1362
1362
  overflow: auto hidden;
1363
1363
  padding: var(--spacer-1) 0;
@@ -1371,6 +1371,10 @@ fig-tabs,
1371
1371
 
1372
1372
  > fig-tab {
1373
1373
  flex-shrink: 0;
1374
+
1375
+ & + fig-tab {
1376
+ margin-left: var(--spacer-1);
1377
+ }
1374
1378
  }
1375
1379
 
1376
1380
  > .fig-overflow {
@@ -1381,12 +1385,12 @@ fig-tabs,
1381
1385
  top: 0;
1382
1386
  z-index: 3;
1383
1387
  width: var(--spacer-4);
1384
- margin-left: calc(var(--spacer-2-5) * -1);
1385
- margin-right: calc(var(--spacer-2-5) * -1);
1388
+ margin-inline: 0;
1386
1389
  }
1387
1390
 
1388
1391
  > .fig-overflow-start {
1389
1392
  left: 0;
1393
+ margin-right: calc(var(--spacer-4) * -1);
1390
1394
  order: -1;
1391
1395
  right: auto;
1392
1396
  box-shadow: 1px 0 0 0 var(--figma-color-bordertranslucent);
@@ -1402,6 +1406,7 @@ fig-tabs,
1402
1406
 
1403
1407
  > .fig-overflow-end {
1404
1408
  left: auto;
1409
+ margin-left: calc(var(--spacer-4) * -1);
1405
1410
  order: 1;
1406
1411
  right: 0;
1407
1412
  box-shadow: -1px 0 0 0 var(--figma-color-bordertranslucent);