@rogieking/figui3 4.1.0 → 4.1.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/base.css +1 -0
- package/components.css +25 -16
- package/package.json +1 -1
package/base.css
CHANGED
package/components.css
CHANGED
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
);
|
|
320
320
|
|
|
321
321
|
/* Icons - colorless shapes for use with mask-image */
|
|
322
|
-
--icon-chevron: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.87868 7.12132L8 9.24264L10.1213 7.12132' stroke='
|
|
322
|
+
--icon-chevron: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.87868 7.12132L8 9.24264L10.1213 7.12132' stroke='grey' stroke-linecap='round'/%3E%3C/svg%3E%0A");
|
|
323
323
|
--icon-checkmark: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.084 4.22266C11.2372 3.99292 11.5476 3.93084 11.7773 4.08398C12.0071 4.23716 12.0692 4.54758 11.916 4.77734L7.91602 10.7773C7.83292 10.902 7.6979 10.9833 7.54883 10.998C7.39993 11.0126 7.25229 10.9593 7.14648 10.8535L4.14648 7.85352C3.95126 7.65825 3.95123 7.34173 4.14648 7.14648C4.34174 6.95124 4.65825 6.95126 4.85352 7.14648L7.42188 9.71484L11.084 4.22266Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
324
324
|
--icon-reset: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' fill-rule='evenodd' d='M6.354 2.146a.5.5 0 0 1 0 .708L5.207 4H8.5a5 5 0 1 1-5 5 .5.5 0 0 1 1 0 4 4 0 1 0 4-4H5.207l1.147 1.146a.5.5 0 1 1-.708.708l-2-2a.5.5 0 0 1 0-.708l2-2a.5.5 0 0 1 .708 0' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
325
325
|
--icon-steppers: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.7245 6.08191C11.9186 5.95386 12.1826 5.97562 12.3534 6.14637L14.3534 8.14637L14.4179 8.22449C14.546 8.41852 14.5242 8.68253 14.3534 8.8534C14.1826 9.02426 13.9186 9.04601 13.7245 8.91785L13.6464 8.8534L11.9999 7.20691L10.3534 8.8534C10.1582 9.04866 9.84166 9.04866 9.6464 8.8534C9.45123 8.65813 9.45117 8.3416 9.6464 8.14637L11.6464 6.14637L11.7245 6.08191Z' fill='black'/%3E%3Cpath d='M13.7248 15.0822C13.9189 14.9541 14.1829 14.9758 14.3537 15.1467C14.5246 15.3176 14.5463 15.5815 14.4182 15.7756L14.3537 15.8537L12.3537 17.8537C12.1829 18.0246 11.9189 18.0463 11.7248 17.9182L11.6467 17.8537L9.64669 15.8537L9.58224 15.7756C9.45407 15.5815 9.47583 15.3176 9.64669 15.1467C9.81756 14.9758 10.0815 14.9541 10.2756 15.0822L10.3537 15.1467L12.0002 16.7932L13.6467 15.1467L13.7248 15.0822Z' fill='black' /%3E%3C/svg%3E%0A");
|
|
@@ -481,10 +481,12 @@ input[type="text"][list] {
|
|
|
481
481
|
display: flex;
|
|
482
482
|
appearance: none;
|
|
483
483
|
align-items: center;
|
|
484
|
-
flex: 1 0 0;
|
|
485
484
|
border: 0;
|
|
486
485
|
color: var(--figma-color-text);
|
|
487
486
|
background-color: var(--figma-color-bg);
|
|
487
|
+
background: calc(100% - var(--spacer-1)) 50% / 1rem no-repeat
|
|
488
|
+
var(--icon-chevron);
|
|
489
|
+
|
|
488
490
|
box-shadow: inset 0 0 0 1px var(--figma-color-border);
|
|
489
491
|
accent-color: var(--figma-color-bg-brand);
|
|
490
492
|
overflow: hidden;
|
|
@@ -696,14 +698,16 @@ select {
|
|
|
696
698
|
}
|
|
697
699
|
|
|
698
700
|
/* Dropdown */
|
|
701
|
+
fig-dropdown {
|
|
702
|
+
& > *:not(select) {
|
|
703
|
+
display: none !important;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
699
706
|
fig-dropdown,
|
|
707
|
+
select,
|
|
700
708
|
.fig-dropdown {
|
|
701
709
|
display: inline-flex;
|
|
702
710
|
position: relative;
|
|
703
|
-
|
|
704
|
-
& > *:not(select) {
|
|
705
|
-
display: none !important;
|
|
706
|
-
}
|
|
707
711
|
> select {
|
|
708
712
|
display: flex;
|
|
709
713
|
align-items: center;
|
|
@@ -736,6 +740,7 @@ fig-dropdown,
|
|
|
736
740
|
|
|
737
741
|
/* Button */
|
|
738
742
|
.fig-button,
|
|
743
|
+
button,
|
|
739
744
|
fig-button {
|
|
740
745
|
color: var(--figma-color-text-onbrand);
|
|
741
746
|
display: flex;
|
|
@@ -2036,6 +2041,7 @@ input[type="checkbox"].switch:checked:focus {
|
|
|
2036
2041
|
/* Checkbox */
|
|
2037
2042
|
input[type="checkbox"]:not(.switch) {
|
|
2038
2043
|
contain: strict;
|
|
2044
|
+
vertical-align: middle;
|
|
2039
2045
|
--size: 1rem;
|
|
2040
2046
|
appearance: none;
|
|
2041
2047
|
border-radius: var(--radius-medium);
|
|
@@ -2170,11 +2176,7 @@ fieldset {
|
|
|
2170
2176
|
padding: var(--spacer-2) 0;
|
|
2171
2177
|
|
|
2172
2178
|
& > legend {
|
|
2173
|
-
|
|
2174
|
-
font-weight: 500;
|
|
2175
|
-
font-size: 0.625rem;
|
|
2176
|
-
line-height: 0.875rem;
|
|
2177
|
-
color: var(--figma-color-text-secondary);
|
|
2179
|
+
padding: 0;
|
|
2178
2180
|
}
|
|
2179
2181
|
|
|
2180
2182
|
& > label {
|
|
@@ -2188,6 +2190,9 @@ fieldset {
|
|
|
2188
2190
|
|
|
2189
2191
|
/* Details */
|
|
2190
2192
|
details {
|
|
2193
|
+
padding: 0 var(--spacer-3);
|
|
2194
|
+
display: block;
|
|
2195
|
+
width: 100%;
|
|
2191
2196
|
& > summary {
|
|
2192
2197
|
font-weight: var(--body-medium-strong-fontWeight);
|
|
2193
2198
|
cursor: default;
|
|
@@ -2197,6 +2202,7 @@ details {
|
|
|
2197
2202
|
height: var(--spacer-5);
|
|
2198
2203
|
user-select: none;
|
|
2199
2204
|
color: var(--figma-color-text-secondary);
|
|
2205
|
+
margin-left: calc(var(--spacer-3) * -1);
|
|
2200
2206
|
|
|
2201
2207
|
&::before {
|
|
2202
2208
|
content: "";
|
|
@@ -3887,12 +3893,13 @@ fig-joystick {
|
|
|
3887
3893
|
|
|
3888
3894
|
/* Layer */
|
|
3889
3895
|
fig-layer {
|
|
3890
|
-
--indent: var(--spacer-
|
|
3896
|
+
--indent: var(--spacer-3);
|
|
3891
3897
|
display: block;
|
|
3892
3898
|
color: var(--figma-color-text);
|
|
3893
3899
|
position: relative;
|
|
3894
3900
|
user-select: none;
|
|
3895
3901
|
width: 100%;
|
|
3902
|
+
padding: 0 var(--spacer-2);
|
|
3896
3903
|
border-radius: var(--radius-medium);
|
|
3897
3904
|
|
|
3898
3905
|
/* When layer has children */
|
|
@@ -3909,7 +3916,7 @@ fig-layer {
|
|
|
3909
3916
|
align-items: center;
|
|
3910
3917
|
gap: var(--spacer-1);
|
|
3911
3918
|
padding: var(--spacer-1) var(--spacer-2);
|
|
3912
|
-
margin-left:
|
|
3919
|
+
margin-left: var(--spacer-1);
|
|
3913
3920
|
height: var(--spacer-4);
|
|
3914
3921
|
border-radius: var(--radius-medium);
|
|
3915
3922
|
position: relative;
|
|
@@ -3928,7 +3935,7 @@ fig-layer {
|
|
|
3928
3935
|
flex-shrink: 0;
|
|
3929
3936
|
transition: transform 0.15s;
|
|
3930
3937
|
position: absolute;
|
|
3931
|
-
left: calc(var(--spacer-
|
|
3938
|
+
left: calc(var(--spacer-2-5) * -1);
|
|
3932
3939
|
top: var(--spacer-1);
|
|
3933
3940
|
rotate: -90deg;
|
|
3934
3941
|
}
|
|
@@ -3975,8 +3982,11 @@ fig-layer {
|
|
|
3975
3982
|
|
|
3976
3983
|
/* Nested layers indentation */
|
|
3977
3984
|
> fig-layer {
|
|
3978
|
-
padding
|
|
3985
|
+
padding: 0;
|
|
3979
3986
|
margin-top: 1px;
|
|
3987
|
+
.fig-layer-row {
|
|
3988
|
+
padding-left: var(--indent);
|
|
3989
|
+
}
|
|
3980
3990
|
}
|
|
3981
3991
|
|
|
3982
3992
|
/* Collapsed state - hide children */
|
|
@@ -4943,4 +4953,3 @@ fig-color-tip {
|
|
|
4943
4953
|
}
|
|
4944
4954
|
}
|
|
4945
4955
|
}
|
|
4946
|
-
|
package/package.json
CHANGED