@rogieking/figui3 1.4.7 → 1.4.9

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.
Files changed (2) hide show
  1. package/fig.css +61 -7
  2. package/package.json +1 -1
package/fig.css CHANGED
@@ -53,6 +53,7 @@
53
53
  --figma-color-border-danger-strong: #dc3412;
54
54
  --figma-color-border-disabled: #e6e6e6;
55
55
  --figma-color-border-disabled-strong: #0000004d;
56
+ --figma-color-border-menu: #383838;
56
57
  --figma-color-border-onbrand: #007be5;
57
58
  --figma-color-border-onbrand-strong: #ffffff;
58
59
  --figma-color-border-oncomponent: #8638e5;
@@ -460,7 +461,7 @@
460
461
  --figma-elevation-400-menu-panel: 0px 0.5px 0px 0px
461
462
  rgba(255, 255, 255, 0.08) inset,
462
463
  0px 10px 16px 0px rgba(0, 0, 0, 0.35),
463
- 0px 0px 0.5px 0px rgba(255, 255, 255, 0.35) inset,
464
+ inset 0px 0.75px 0px rgba(255, 255, 255, 0.075),
464
465
  0px 2px 5px 0px rgba(0, 0, 0, 0.35);
465
466
 
466
467
  --figma-elevation-500-modal-window: 0px 10px 24px rgba(0, 0, 0, 0.45),
@@ -652,22 +653,74 @@ input[type="text"][list] {
652
653
  option {
653
654
  display: flex;
654
655
  gap: var(--spacer-1);
655
- padding: 0 var(--spacer-2) 0 var(--spacer-1);
656
- border-radius: var(--radius-medium);
657
- min-width: 5rem;
656
+ padding: 0 var(--spacer-4) 0 calc(var(--spacer-1) * 2 + var(--spacer-1));
658
657
  font-weight: var(--body-medium-fontWeight);
659
658
  color: var(--figma-color-text-menu);
660
- &:hover {
661
- background-color: var(--figma-color-bg-menu-hover);
659
+ position: relative;
660
+ &[hidden] {
661
+ display: none;
662
+ }
663
+ &:not(:checked):before {
664
+ content: "";
665
+ display: block;
666
+ position: absolute;
667
+ inset: 0 var(--spacer-2);
668
+ border-radius: var(--radius-medium);
669
+ z-index: -1;
670
+ background-color: transparent;
671
+ }
672
+ &:not(:disabled) {
673
+ &:hover,
674
+ &:active,
675
+ &:focus {
676
+ background-color: transparent;
677
+ outline: 0;
678
+ &:before {
679
+ background-color: var(--figma-color-bg-menu-hover);
680
+ }
681
+ }
662
682
  }
663
683
  }
684
+
664
685
  optgroup {
665
686
  color: var(--figma-color-text-menu-secondary);
666
687
  text-align: left;
688
+ position: relative;
689
+ padding: 0 var(--spacer-1) 0 calc(var(--spacer-1) * 2 + var(--spacer-1));
667
690
  font-weight: var(--body-medium-fontWeight);
691
+ &::-internal-optgroup-label {
692
+ display: none;
693
+ }
668
694
  legend {
669
695
  padding: var(--spacer-1, 0.3rem) var(--spacer-1, 1rem);
670
696
  }
697
+ option {
698
+ margin: 0 calc(var(--spacer-1) * -1);
699
+ margin-left: calc((var(--spacer-1) * 2 + var(--spacer-1)) * -1);
700
+ }
701
+ &:not(:first-child) {
702
+ margin-top: var(--spacer-2);
703
+ padding-top: var(--spacer-2);
704
+
705
+ &:before {
706
+ content: "";
707
+ display: block;
708
+ position: absolute;
709
+ left: 0;
710
+ right: 0;
711
+ top: 1px;
712
+ height: 1px;
713
+ background-color: var(--figma-color-border-menu);
714
+ margin-bottom: var(--spacer-2);
715
+ }
716
+ }
717
+ }
718
+ option[hidden="true"]:first-child + optgroup {
719
+ margin-top: 0;
720
+ padding-top: 0;
721
+ &:before {
722
+ display: none;
723
+ }
671
724
  }
672
725
  }
673
726
  ::picker-icon {
@@ -677,12 +730,13 @@ input[type="text"][list] {
677
730
  ::picker(select) {
678
731
  appearance: base-select;
679
732
  scrollbar-width: thin;
733
+ outline: 0;
680
734
  scrollbar-color: var(--figma-color-text-menu-tertiary)
681
735
  var(--figma-color-bg-menu);
682
736
  border-radius: var(--radius-large);
683
737
  border: 0;
684
738
  background-color: var(--figma-color-bg-menu);
685
- padding: var(--spacer-2);
739
+ padding: var(--spacer-2) 0;
686
740
  box-shadow: var(--figma-elevation-400-menu-panel);
687
741
  }
688
742
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {