@rogieking/figui3 8.9.3 → 8.9.5
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 +28 -20
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +2 -2
- package/fig.js +7 -5
- package/package.json +1 -1
package/components.css
CHANGED
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
inset 0px 0.5px 0px 0px light-dark(transparent, rgba(255, 255, 255, 0.08)),
|
|
439
439
|
inset 0px 0.75px 0px 0px light-dark(transparent, rgba(255, 255, 255, 0.075));
|
|
440
440
|
|
|
441
|
+
--fig-popover-shadow:
|
|
442
|
+
drop-shadow(0px 1px 1.5px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)))
|
|
443
|
+
drop-shadow(0px 2.5px 6px light-dark(rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.5)))
|
|
444
|
+
drop-shadow(0px 0px 0.5px light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)));
|
|
445
|
+
|
|
441
446
|
--figma-elevation-500-modal-window:
|
|
442
447
|
0px 0px 0.5px 0px light-dark(rgba(0, 0, 0, 0.08), transparent),
|
|
443
448
|
0px 10px 24px 0px light-dark(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45)),
|
|
@@ -1829,7 +1834,7 @@ fig-easing-curve {
|
|
|
1829
1834
|
.fig-easing-curve-svg-container {
|
|
1830
1835
|
border-radius: var(--radius-medium);
|
|
1831
1836
|
background: var(--figma-color-bg-secondary);
|
|
1832
|
-
padding:
|
|
1837
|
+
padding: 45px;
|
|
1833
1838
|
overflow: hidden;
|
|
1834
1839
|
&:is(:hover, :active, :focus, :focus-visible, :focus-within) {
|
|
1835
1840
|
overflow: visible;
|
|
@@ -1867,14 +1872,10 @@ fig-easing-curve {
|
|
|
1867
1872
|
fill: transparent;
|
|
1868
1873
|
}
|
|
1869
1874
|
.fig-easing-curve-arm {
|
|
1870
|
-
stroke: var(--figma-color-
|
|
1875
|
+
stroke: var(--figma-color-border-brand-strong);
|
|
1871
1876
|
stroke-width: var(--stroke-width);
|
|
1872
1877
|
stroke-linejoin: round;
|
|
1873
1878
|
stroke-linecap: round;
|
|
1874
|
-
|
|
1875
|
-
&.is-active {
|
|
1876
|
-
stroke: var(--figma-color-bg-brand);
|
|
1877
|
-
}
|
|
1878
1879
|
}
|
|
1879
1880
|
.fig-easing-curve-path {
|
|
1880
1881
|
fill: none;
|
|
@@ -3120,6 +3121,7 @@ dialog[is="fig-popup"] {
|
|
|
3120
3121
|
--fig-popup-tip-clip-path: path(
|
|
3121
3122
|
"M16 0H0L0 1H0.757359C1.55301 1 2.31607 1.31607 2.87868 1.87868L6.29587 5.29587C7.23704 6.23704 8.76296 6.23704 9.70413 5.29587L13.1213 1.87868C13.6839 1.31607 14.447 1 15.2426 1H16V0Z"
|
|
3122
3123
|
);
|
|
3124
|
+
--fig-popup-shadow: var(--figma-elevation-400-menu-panel);
|
|
3123
3125
|
|
|
3124
3126
|
z-index: var(--z-index);
|
|
3125
3127
|
position: fixed;
|
|
@@ -3129,6 +3131,7 @@ dialog[is="fig-popup"] {
|
|
|
3129
3131
|
overflow: auto;
|
|
3130
3132
|
border-radius: var(--fig-popup-radius);
|
|
3131
3133
|
background-color: var(--fig-popup-bg-color);
|
|
3134
|
+
box-shadow: var(--fig-popup-shadow);
|
|
3132
3135
|
|
|
3133
3136
|
&[autoresize]:not([autoresize="false"]) {
|
|
3134
3137
|
width: max-content;
|
|
@@ -3175,9 +3178,7 @@ dialog[is="fig-popup"] {
|
|
|
3175
3178
|
&[variant="popover"] {
|
|
3176
3179
|
overflow: visible;
|
|
3177
3180
|
box-shadow: inset 0 0.5px 0 0 rgba(255, 255, 255, 0.1);
|
|
3178
|
-
filter:
|
|
3179
|
-
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
3180
|
-
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
3181
|
+
filter: var(--fig-popover-shadow);
|
|
3181
3182
|
|
|
3182
3183
|
&:after {
|
|
3183
3184
|
content: "";
|
|
@@ -3225,9 +3226,7 @@ dialog[is="fig-popup"] {
|
|
|
3225
3226
|
min-width: 0;
|
|
3226
3227
|
box-shadow: inset 0 0.5px 0 0
|
|
3227
3228
|
light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1));
|
|
3228
|
-
filter:
|
|
3229
|
-
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
3230
|
-
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
3229
|
+
filter: var(--fig-popover-shadow);
|
|
3231
3230
|
pointer-events: none;
|
|
3232
3231
|
|
|
3233
3232
|
& > span {
|
|
@@ -5304,7 +5303,7 @@ fig-handle {
|
|
|
5304
5303
|
--fig-handle-hit-area-opacity: 0;
|
|
5305
5304
|
--fig-handle-hit-area-size: 0;
|
|
5306
5305
|
--fig-handle-inner-bg: var(--figma-color-bg-brand);
|
|
5307
|
-
--fig-handle-inner-outline: 1px solid var(--figma-color-
|
|
5306
|
+
--fig-handle-inner-outline: 1px solid var(--figma-color-border-selected);
|
|
5308
5307
|
--fig-handle-inner-shadow: none;
|
|
5309
5308
|
--fig-handle-inner-radius: 50%;
|
|
5310
5309
|
--fig-handle-outline: 1.5px solid var(--fig-handle-outline-color);
|
|
@@ -5312,7 +5311,7 @@ fig-handle {
|
|
|
5312
5311
|
--fig-handle-outline-color: transparent;
|
|
5313
5312
|
--fig-handle-outline-offset: 0px;
|
|
5314
5313
|
--fig-handle-padding: 0.25rem;
|
|
5315
|
-
--fig-handle-shadow:
|
|
5314
|
+
--fig-handle-shadow: var(--figma-elevation-100-canvas);
|
|
5316
5315
|
--fig-handle-width: var(--width);
|
|
5317
5316
|
|
|
5318
5317
|
margin: 0;
|
|
@@ -5330,7 +5329,6 @@ fig-handle {
|
|
|
5330
5329
|
/* Used for active state/color handles */
|
|
5331
5330
|
&::after {
|
|
5332
5331
|
content: "";
|
|
5333
|
-
color-scheme: light only;
|
|
5334
5332
|
width: 100%;
|
|
5335
5333
|
height: 100%;
|
|
5336
5334
|
background: var(--fig-handle-inner-bg);
|
|
@@ -5409,8 +5407,8 @@ fig-handle {
|
|
|
5409
5407
|
&[tip="add"],
|
|
5410
5408
|
&[tip="remove"] {
|
|
5411
5409
|
--fig-handle-inner-bg: linear-gradient(var(--fill), var(--fill)), var(--fig-handle-checkerboard);
|
|
5412
|
-
--fig-handle-padding: 0.25rem;
|
|
5413
|
-
--fig-handle-inner-outline:
|
|
5410
|
+
--fig-handle-padding: calc(0.25rem - 1px);
|
|
5411
|
+
--fig-handle-inner-outline: transparent;
|
|
5414
5412
|
position: relative;
|
|
5415
5413
|
overflow: visible;
|
|
5416
5414
|
|
|
@@ -5422,6 +5420,18 @@ fig-handle {
|
|
|
5422
5420
|
z-index: 10;
|
|
5423
5421
|
}
|
|
5424
5422
|
}
|
|
5423
|
+
&[type="minimal"]{
|
|
5424
|
+
--fig-handle-shadow: none;
|
|
5425
|
+
--fig-handle-bg: var(--figma-color-border-brand-strong);
|
|
5426
|
+
--fig-handle-outline: none;
|
|
5427
|
+
--fig-handle-inner-bg: var(--figma-color-bg);
|
|
5428
|
+
--fig-handle-padding: 2px;
|
|
5429
|
+
--fig-handle-inner-outline: transparent;
|
|
5430
|
+
--width: 10px;
|
|
5431
|
+
--height: 10px;
|
|
5432
|
+
}
|
|
5433
|
+
|
|
5434
|
+
|
|
5425
5435
|
&[disabled]:not([disabled="false"]),
|
|
5426
5436
|
&[aria-disabled="true"] {
|
|
5427
5437
|
--fig-handle-outline-color: transparent;
|
|
@@ -5464,9 +5474,7 @@ fig-color-tip {
|
|
|
5464
5474
|
background-color: var(--figma-color-bg);
|
|
5465
5475
|
border-radius: var(--radius-medium, 0.3125rem);
|
|
5466
5476
|
box-shadow: inset 0 0.5px 0 0 rgba(255, 255, 255, 0.1);
|
|
5467
|
-
filter:
|
|
5468
|
-
drop-shadow(0px 2.5px 6px rgba(0, 0, 0, 0.13))
|
|
5469
|
-
drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.15));
|
|
5477
|
+
filter: var(--fig-popover-shadow);
|
|
5470
5478
|
|
|
5471
5479
|
&[control="add"],
|
|
5472
5480
|
&[control="remove"] {
|