@rogieking/figui3 4.10.1 → 4.11.0
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/components.css +38 -43
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +21 -21
- package/fig.js +44 -8
- package/package.json +1 -1
package/components.css
CHANGED
|
@@ -487,7 +487,7 @@ input[type="text"][list] {
|
|
|
487
487
|
|
|
488
488
|
&:not([multiple]) {
|
|
489
489
|
height: var(--spacer-4);
|
|
490
|
-
padding: 0
|
|
490
|
+
padding: 0 var(--spacer-4) 0 var(--spacer-2);
|
|
491
491
|
background: calc(100% - var(--spacer-1)) 50% / 1rem no-repeat
|
|
492
492
|
var(--icon-chevron);
|
|
493
493
|
}
|
|
@@ -687,8 +687,8 @@ input[type="text"][list] {
|
|
|
687
687
|
align-items: center;
|
|
688
688
|
gap: 0;
|
|
689
689
|
min-width: 0;
|
|
690
|
-
&:
|
|
691
|
-
|
|
690
|
+
&:has(> svg) {
|
|
691
|
+
margin-left: calc(var(--spacer-2) * -1);
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
& svg {
|
|
@@ -1406,8 +1406,10 @@ fig-image,
|
|
|
1406
1406
|
fig-video {
|
|
1407
1407
|
--fig-media-fit: contain;
|
|
1408
1408
|
--fig-media-aspect-ratio: 4/3;
|
|
1409
|
+
--fig-media-size: 100%;
|
|
1409
1410
|
display: inline-flex;
|
|
1410
|
-
max-width:
|
|
1411
|
+
max-width:var(--fig-media-size);
|
|
1412
|
+
max-height:var(--fig-media-size);
|
|
1411
1413
|
background-color: var(--figma-color-bg-secondary);
|
|
1412
1414
|
border-radius: var(--radius-medium);
|
|
1413
1415
|
overflow: hidden;
|
|
@@ -1417,6 +1419,22 @@ fig-video {
|
|
|
1417
1419
|
justify-content: center;
|
|
1418
1420
|
position: relative;
|
|
1419
1421
|
|
|
1422
|
+
&[size="small"] {
|
|
1423
|
+
--fig-media-size: 2rem;
|
|
1424
|
+
min-height: auto;
|
|
1425
|
+
width: var(--fig-media-size);
|
|
1426
|
+
}
|
|
1427
|
+
&[size="medium"] {
|
|
1428
|
+
--fig-media-size: 4rem;
|
|
1429
|
+
min-height: auto;
|
|
1430
|
+
width: var(--fig-media-size);
|
|
1431
|
+
}
|
|
1432
|
+
&[size="large"] {
|
|
1433
|
+
--fig-media-size: 6rem;
|
|
1434
|
+
min-height: auto;
|
|
1435
|
+
width: var(--fig-media-size);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1420
1438
|
& > *{
|
|
1421
1439
|
position: absolute;
|
|
1422
1440
|
z-index: 1;
|
|
@@ -3423,8 +3441,7 @@ fig-input-palette {
|
|
|
3423
3441
|
display: inline-grid !important;
|
|
3424
3442
|
grid-template-columns: 1fr 24px;
|
|
3425
3443
|
grid-template-areas:
|
|
3426
|
-
"inline button"
|
|
3427
|
-
"expanded expanded";
|
|
3444
|
+
"inline button";
|
|
3428
3445
|
gap: var(--spacer-2);
|
|
3429
3446
|
min-width: 0;
|
|
3430
3447
|
border-radius: var(--radius-medium);
|
|
@@ -3487,6 +3504,9 @@ fig-input-palette {
|
|
|
3487
3504
|
}
|
|
3488
3505
|
}
|
|
3489
3506
|
&[open]:not([open="false"]):not([edit="false"]) {
|
|
3507
|
+
grid-template-areas:
|
|
3508
|
+
"inline button"
|
|
3509
|
+
"expanded expanded";
|
|
3490
3510
|
.palette-colors-expanded {
|
|
3491
3511
|
display: grid;
|
|
3492
3512
|
}
|
|
@@ -4671,11 +4691,7 @@ fig-chooser {
|
|
|
4671
4691
|
> :not(.fig-chooser-nav-start):not(.fig-chooser-nav-end) {
|
|
4672
4692
|
flex: 1 1 0%;
|
|
4673
4693
|
}
|
|
4674
|
-
|
|
4675
|
-
fig-image[full],
|
|
4676
|
-
fig-video[full] {
|
|
4677
|
-
min-width: 3rem;
|
|
4678
|
-
}
|
|
4694
|
+
|
|
4679
4695
|
> * {
|
|
4680
4696
|
&:not(.fig-chooser-nav-start):not(.fig-chooser-nav-end) {
|
|
4681
4697
|
margin-inline-end: var(--fig-chooser-gap);
|
|
@@ -4717,15 +4733,16 @@ fig-chooser {
|
|
|
4717
4733
|
display: flex;
|
|
4718
4734
|
align-items: center;
|
|
4719
4735
|
justify-content: center;
|
|
4736
|
+
left: 0;
|
|
4737
|
+
right: 0;
|
|
4738
|
+
width: 100%;
|
|
4739
|
+
height: var(--chooser-fade-size);
|
|
4720
4740
|
cursor: pointer;
|
|
4721
4741
|
opacity: 0;
|
|
4722
4742
|
pointer-events: none;
|
|
4723
4743
|
color: var(--figma-color-icon);
|
|
4724
|
-
|
|
4744
|
+
background: var(--figma-color-bg) !important;
|
|
4725
4745
|
|
|
4726
|
-
&:hover {
|
|
4727
|
-
background: var(--figma-color-bg) !important;
|
|
4728
|
-
}
|
|
4729
4746
|
|
|
4730
4747
|
&::after {
|
|
4731
4748
|
content: "";
|
|
@@ -4742,17 +4759,8 @@ fig-chooser {
|
|
|
4742
4759
|
|
|
4743
4760
|
.fig-chooser-nav-start {
|
|
4744
4761
|
top: 0;
|
|
4745
|
-
left: 0;
|
|
4746
|
-
right: 0;
|
|
4747
|
-
width: 100%;
|
|
4748
|
-
height: var(--chooser-fade-size);
|
|
4749
4762
|
margin-bottom: calc(var(--chooser-fade-size) * -1);
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
&:hover {
|
|
4753
|
-
box-shadow: 0 1px 0 0 var(--figma-color-border) !important;
|
|
4754
|
-
}
|
|
4755
|
-
|
|
4763
|
+
box-shadow: 0 1px 0 0 var(--figma-color-border);
|
|
4756
4764
|
&::after {
|
|
4757
4765
|
rotate: 180deg;
|
|
4758
4766
|
}
|
|
@@ -4760,16 +4768,8 @@ fig-chooser {
|
|
|
4760
4768
|
|
|
4761
4769
|
.fig-chooser-nav-end {
|
|
4762
4770
|
bottom: 0;
|
|
4763
|
-
left: 0;
|
|
4764
|
-
right: 0;
|
|
4765
|
-
width: 100%;
|
|
4766
|
-
height: var(--chooser-fade-size);
|
|
4767
4771
|
margin-top: calc(var(--chooser-fade-size) * -1);
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
&:hover {
|
|
4771
|
-
box-shadow: 0 -1px 0 0 var(--figma-color-border) !important;
|
|
4772
|
-
}
|
|
4772
|
+
box-shadow: 0 -1px 0 0 var(--figma-color-border);
|
|
4773
4773
|
}
|
|
4774
4774
|
|
|
4775
4775
|
&[layout="horizontal"] {
|
|
@@ -4787,11 +4787,8 @@ fig-chooser {
|
|
|
4787
4787
|
left: 0;
|
|
4788
4788
|
right: auto;
|
|
4789
4789
|
margin-right: calc(var(--chooser-fade-size) * -1);
|
|
4790
|
-
|
|
4790
|
+
box-shadow: 1px 0 0 0 var(--figma-color-border);
|
|
4791
4791
|
|
|
4792
|
-
&:hover {
|
|
4793
|
-
box-shadow: 1px 0 0 0 var(--figma-color-border) !important;
|
|
4794
|
-
}
|
|
4795
4792
|
|
|
4796
4793
|
&::after {
|
|
4797
4794
|
rotate: 90deg;
|
|
@@ -4802,11 +4799,8 @@ fig-chooser {
|
|
|
4802
4799
|
right: 0;
|
|
4803
4800
|
left: auto;
|
|
4804
4801
|
margin-left: calc(var(--chooser-fade-size) * -1);
|
|
4805
|
-
|
|
4802
|
+
box-shadow: -1px 0 0 0 var(--figma-color-border);
|
|
4806
4803
|
|
|
4807
|
-
&:hover {
|
|
4808
|
-
box-shadow: -1px 0 0 0 var(--figma-color-border) !important;
|
|
4809
|
-
}
|
|
4810
4804
|
|
|
4811
4805
|
&::after {
|
|
4812
4806
|
rotate: -90deg;
|
|
@@ -4944,7 +4938,8 @@ fig-handle {
|
|
|
4944
4938
|
pointer-events: none;
|
|
4945
4939
|
cursor: default;
|
|
4946
4940
|
}
|
|
4947
|
-
&[type="color"]
|
|
4941
|
+
&[type="color"],
|
|
4942
|
+
&[type="canvas"] {
|
|
4948
4943
|
&::after {
|
|
4949
4944
|
display: block;
|
|
4950
4945
|
}
|