@rogieking/figui3 10.0.6 → 10.0.7

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,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [10.0.7]
6
+
7
+ ### Added
8
+
9
+ - Added a single-tab playground example.
10
+
11
+ ### Changed
12
+
13
+ - Unified `fig-select-option` and `fig-menu-item` row styles.
14
+ - Replaced select-option pseudo-element checkmarks with slotted small `fig-icon` checkmarks.
15
+
16
+ ### Fixed
17
+
18
+ - Prevented selected tabs from emitting redundant `input` and `change` events when clicked again.
19
+
5
20
  ## [10.0.6]
6
21
 
7
22
  ### Added
package/components.css CHANGED
@@ -1372,6 +1372,13 @@ fig-tabs,
1372
1372
  > fig-tab {
1373
1373
  flex-shrink: 0;
1374
1374
 
1375
+ /* Single tab */
1376
+ &:first-of-type:last-of-type{
1377
+ background-color: transparent;
1378
+ padding-inline: 0;
1379
+ margin-inline: 0;
1380
+ }
1381
+
1375
1382
  & + fig-tab {
1376
1383
  margin-left: var(--spacer-1);
1377
1384
  }
@@ -6800,7 +6807,7 @@ fig-menu::part(listbox) {
6800
6807
  height: max-content;
6801
6808
  }
6802
6809
 
6803
- fig-menu-item {
6810
+ :is(fig-menu-item, fig-select-option) {
6804
6811
  --fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-4,1rem) var(--spacer-1,0.25rem) var(--spacer-3,0.75rem);
6805
6812
  box-sizing: border-box;
6806
6813
  display: flex;
@@ -6818,6 +6825,10 @@ fig-menu-item {
6818
6825
  position: relative;
6819
6826
  isolation: isolate;
6820
6827
 
6828
+ &:has(fig-icon[slot="prepend"]){
6829
+ --fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-4,1rem) var(--spacer-1,0.25rem) var(--spacer-2,0.5rem);
6830
+ }
6831
+
6821
6832
  h3{
6822
6833
  margin: 0 0 var(--spacer-1) 0;
6823
6834
  }
@@ -6870,18 +6881,13 @@ fig-menu-item {
6870
6881
  &:has(> [slot="append"]) {
6871
6882
  --fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-3,0.75rem) var(--spacer-1,0.25rem) var(--spacer-3,0.75rem);
6872
6883
  }
6873
- &:has(> [slot="prepend"]) {
6884
+ &:has(> [slot="prepend"]:not([data-fig-select-checkmark])) {
6874
6885
  --fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-3,0.75rem) var(--spacer-1,0.25rem) var(--spacer-2,0.5rem);
6875
6886
  }
6876
- &:has(> [slot="prepend"]):has(> [slot="append"]) {
6887
+ &:has(> [slot="prepend"]:not([data-fig-select-checkmark])):has(> [slot="append"]) {
6877
6888
  --fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-3,0.75rem) var(--spacer-1,0.25rem) var(--spacer-2,0.5rem);
6878
6889
  }
6879
6890
 
6880
- &:not(:has(> :not([slot="prepend"], [slot="append"]))) > [slot="prepend"] {
6881
- display: inline-flex;
6882
- vertical-align: middle;
6883
- }
6884
-
6885
6891
  &[subtle]:not([subtle="false"]) {
6886
6892
  &:hover,
6887
6893
  &:focus-visible {