@rogieking/figui3 4.11.0 → 4.12.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 +0 -1
- package/components.css +19 -36
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig.js +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -609,7 +609,6 @@ A selection list controller. `<fig-choice>` elements are selectable options with
|
|
|
609
609
|
| `drag` | boolean | `false` | Enable drag-to-scroll |
|
|
610
610
|
| `overflow` | string | — | Overflow behavior |
|
|
611
611
|
| `loop` | boolean | `false` | Loop keyboard navigation |
|
|
612
|
-
| `padding` | boolean | `true` | Internal padding (`padding="false"` removes it) |
|
|
613
612
|
|
|
614
613
|
**fig-choice attributes:**
|
|
615
614
|
|
package/components.css
CHANGED
|
@@ -662,14 +662,11 @@ input[type="text"][list] {
|
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
-
/* Customizable select button content (closed state) */
|
|
666
|
-
&:has(> button) {
|
|
667
|
-
padding-left: 0;
|
|
668
|
-
}
|
|
669
665
|
& > button {
|
|
670
|
-
display: inline-
|
|
666
|
+
display: inline-flex;
|
|
671
667
|
align-items: center;
|
|
672
|
-
|
|
668
|
+
justify-content: flex-start;
|
|
669
|
+
gap: var(--spacer-1, 0.25rem);
|
|
673
670
|
width: 100%;
|
|
674
671
|
border: 0;
|
|
675
672
|
background: transparent;
|
|
@@ -4665,13 +4662,6 @@ fig-chooser {
|
|
|
4665
4662
|
}
|
|
4666
4663
|
}
|
|
4667
4664
|
|
|
4668
|
-
&[padding="false"] {
|
|
4669
|
-
gap: var(--fig-chooser-gap);
|
|
4670
|
-
fig-choice {
|
|
4671
|
-
--fig-choice-padding: 0px;
|
|
4672
|
-
}
|
|
4673
|
-
}
|
|
4674
|
-
|
|
4675
4665
|
&[overflow="scrollbar"] {
|
|
4676
4666
|
scrollbar-width: thin;
|
|
4677
4667
|
scrollbar-color: var(--figma-color-border) transparent;
|
|
@@ -4743,25 +4733,21 @@ fig-chooser {
|
|
|
4743
4733
|
color: var(--figma-color-icon);
|
|
4744
4734
|
background: var(--figma-color-bg) !important;
|
|
4745
4735
|
|
|
4736
|
+
.fig-chooser-nav-chevron{
|
|
4737
|
+
position: relative;
|
|
4738
|
+
}
|
|
4746
4739
|
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
display: block;
|
|
4750
|
-
width: 1rem;
|
|
4751
|
-
height: 1rem;
|
|
4752
|
-
mask-image: var(--icon-chevron);
|
|
4753
|
-
mask-size: contain;
|
|
4754
|
-
mask-repeat: no-repeat;
|
|
4755
|
-
mask-position: center;
|
|
4756
|
-
background: currentColor;
|
|
4740
|
+
&:active .fig-chooser-nav-chevron {
|
|
4741
|
+
transform: translateY(1px);
|
|
4757
4742
|
}
|
|
4758
4743
|
}
|
|
4759
4744
|
|
|
4760
4745
|
.fig-chooser-nav-start {
|
|
4761
4746
|
top: 0;
|
|
4762
4747
|
margin-bottom: calc(var(--chooser-fade-size) * -1);
|
|
4763
|
-
box-shadow: 0 1px 0 0 var(--figma-color-
|
|
4764
|
-
|
|
4748
|
+
box-shadow: 0 1px 0 0 var(--figma-color-bordertranslucent);
|
|
4749
|
+
|
|
4750
|
+
.fig-chooser-nav-chevron {
|
|
4765
4751
|
rotate: 180deg;
|
|
4766
4752
|
}
|
|
4767
4753
|
}
|
|
@@ -4769,7 +4755,7 @@ fig-chooser {
|
|
|
4769
4755
|
.fig-chooser-nav-end {
|
|
4770
4756
|
bottom: 0;
|
|
4771
4757
|
margin-top: calc(var(--chooser-fade-size) * -1);
|
|
4772
|
-
box-shadow: 0 -1px 0 0 var(--figma-color-
|
|
4758
|
+
box-shadow: 0 -1px 0 0 var(--figma-color-bordertranslucent);
|
|
4773
4759
|
}
|
|
4774
4760
|
|
|
4775
4761
|
&[layout="horizontal"] {
|
|
@@ -4787,10 +4773,9 @@ fig-chooser {
|
|
|
4787
4773
|
left: 0;
|
|
4788
4774
|
right: auto;
|
|
4789
4775
|
margin-right: calc(var(--chooser-fade-size) * -1);
|
|
4790
|
-
box-shadow: 1px 0 0 0 var(--figma-color-
|
|
4791
|
-
|
|
4776
|
+
box-shadow: 1px 0 0 0 var(--figma-color-bordertranslucent);
|
|
4792
4777
|
|
|
4793
|
-
|
|
4778
|
+
.fig-chooser-nav-chevron {
|
|
4794
4779
|
rotate: 90deg;
|
|
4795
4780
|
}
|
|
4796
4781
|
}
|
|
@@ -4799,10 +4784,9 @@ fig-chooser {
|
|
|
4799
4784
|
right: 0;
|
|
4800
4785
|
left: auto;
|
|
4801
4786
|
margin-left: calc(var(--chooser-fade-size) * -1);
|
|
4802
|
-
box-shadow: -1px 0 0 0 var(--figma-color-
|
|
4787
|
+
box-shadow: -1px 0 0 0 var(--figma-color-bordertranslucent);
|
|
4803
4788
|
|
|
4804
|
-
|
|
4805
|
-
&::after {
|
|
4789
|
+
.fig-chooser-nav-chevron {
|
|
4806
4790
|
rotate: -90deg;
|
|
4807
4791
|
}
|
|
4808
4792
|
}
|
|
@@ -4832,15 +4816,14 @@ fig-choice {
|
|
|
4832
4816
|
gap: var(--spacer-2);
|
|
4833
4817
|
outline: none;
|
|
4834
4818
|
cursor: default;
|
|
4835
|
-
|
|
4836
4819
|
padding: var(--fig-choice-padding);
|
|
4837
4820
|
|
|
4838
4821
|
&:hover:not([selected]):not([disabled]):not([aria-disabled="true"]) {
|
|
4839
4822
|
background-color: var(--figma-color-bg-secondary);
|
|
4840
4823
|
}
|
|
4841
4824
|
|
|
4842
|
-
&[padding="false"] {
|
|
4843
|
-
--fig-choice-padding:
|
|
4825
|
+
&[padding]:not([padding="false"]) {
|
|
4826
|
+
--fig-choice-padding: var(--spacer-2);
|
|
4844
4827
|
}
|
|
4845
4828
|
|
|
4846
4829
|
&[selected] {
|
|
@@ -4852,7 +4835,7 @@ fig-choice {
|
|
|
4852
4835
|
border-radius: var(--fig-choice-border-radius);
|
|
4853
4836
|
pointer-events: none;
|
|
4854
4837
|
z-index: 1;
|
|
4855
|
-
box-shadow: inset 0 0 0
|
|
4838
|
+
box-shadow: inset 0 0 0 calc(var(--fig-choice-selection-ring-width)*2) var(--figma-color-bg);
|
|
4856
4839
|
outline: var(--fig-choice-selection-ring-width) solid
|
|
4857
4840
|
var(--figma-color-border-selected);
|
|
4858
4841
|
outline-offset: calc(var(--fig-choice-selection-ring-width) * -1);
|