@rogieking/figui3 8.0.3 → 8.1.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/README.md +151 -0
- package/dist/fig-editor.css +1 -1
- package/dist/fig-lab.css +1 -1
- package/dist/fig-lab.js +14 -14
- package/fig-editor.css +0 -1
- package/fig-lab.css +115 -17
- package/fig-lab.js +1475 -1
- package/package.json +1 -1
package/fig-editor.css
CHANGED
package/fig-lab.css
CHANGED
|
@@ -1201,24 +1201,9 @@ propskit-slider {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
1203
|
&[type="hue"] .fig-slider-input-container::after {
|
|
1204
|
-
--propskit-slider-hue-fade-size: 30%;
|
|
1205
1204
|
background: var(--bg-hue);
|
|
1206
|
-
mask-image:
|
|
1207
|
-
|
|
1208
|
-
transparent 0%,
|
|
1209
|
-
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) - var(--propskit-slider-hue-fade-size)),
|
|
1210
|
-
black var(--propskit-slider-progress-percent),
|
|
1211
|
-
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) + var(--propskit-slider-hue-fade-size)),
|
|
1212
|
-
transparent 100%
|
|
1213
|
-
);
|
|
1214
|
-
-webkit-mask-image: linear-gradient(
|
|
1215
|
-
to right,
|
|
1216
|
-
transparent 0%,
|
|
1217
|
-
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) - var(--propskit-slider-hue-fade-size)),
|
|
1218
|
-
black var(--propskit-slider-progress-percent),
|
|
1219
|
-
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) + var(--propskit-slider-hue-fade-size)),
|
|
1220
|
-
transparent 100%
|
|
1221
|
-
);
|
|
1205
|
+
mask-image: none;
|
|
1206
|
+
-webkit-mask-image: none;
|
|
1222
1207
|
}
|
|
1223
1208
|
|
|
1224
1209
|
&[type="opacity"] .fig-slider-input-container::before {
|
|
@@ -1366,6 +1351,119 @@ propskit-slider {
|
|
|
1366
1351
|
}
|
|
1367
1352
|
}
|
|
1368
1353
|
|
|
1354
|
+
propskit-color-point,
|
|
1355
|
+
propskit-point-point,
|
|
1356
|
+
propskit-point-radius,
|
|
1357
|
+
propskit-point-radius-angle {
|
|
1358
|
+
display: contents;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
propskit-position {
|
|
1362
|
+
--propskit-position-height: 1.5rem;
|
|
1363
|
+
--propskit-position-vertical-padding: var(--spacer-1);
|
|
1364
|
+
--propskit-position-horizontal-padding: var(--spacer-3);
|
|
1365
|
+
--figma-focus-outline-offset: 1px;
|
|
1366
|
+
|
|
1367
|
+
display: flex;
|
|
1368
|
+
flex-direction: column;
|
|
1369
|
+
gap: var(--spacer-1);
|
|
1370
|
+
box-sizing: border-box;
|
|
1371
|
+
width: 100%;
|
|
1372
|
+
padding: var(--propskit-position-vertical-padding)
|
|
1373
|
+
var(--propskit-position-horizontal-padding);
|
|
1374
|
+
|
|
1375
|
+
&[size="large"] {
|
|
1376
|
+
--propskit-position-height: 2rem;
|
|
1377
|
+
|
|
1378
|
+
.propskit-position-row {
|
|
1379
|
+
--fig-field-label-max-height: var(--spacer-5);
|
|
1380
|
+
padding-left: var(--spacer-2-5);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
&[disabled]:not([disabled="false"]) {
|
|
1385
|
+
pointer-events: none;
|
|
1386
|
+
|
|
1387
|
+
.propskit-position-row > label {
|
|
1388
|
+
color: var(--figma-color-text-disabled);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
.propskit-position-row > [data-propskit-position-axis] {
|
|
1392
|
+
opacity: 0.5;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.propskit-position-row {
|
|
1397
|
+
position: relative;
|
|
1398
|
+
display: flex;
|
|
1399
|
+
align-items: center;
|
|
1400
|
+
box-sizing: border-box;
|
|
1401
|
+
width: 100%;
|
|
1402
|
+
min-width: 0;
|
|
1403
|
+
height: var(--propskit-position-height);
|
|
1404
|
+
min-height: var(--propskit-position-height);
|
|
1405
|
+
padding: 0 var(--spacer-1) 0 var(--spacer-2);
|
|
1406
|
+
padding-right: 0;
|
|
1407
|
+
border-radius: var(--radius-medium);
|
|
1408
|
+
background-color: var(--figma-color-bg-secondary);
|
|
1409
|
+
|
|
1410
|
+
&::after {
|
|
1411
|
+
content: "";
|
|
1412
|
+
position: absolute;
|
|
1413
|
+
inset: 0;
|
|
1414
|
+
border-radius: inherit;
|
|
1415
|
+
pointer-events: none;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
&:hover::after {
|
|
1419
|
+
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
& > label {
|
|
1423
|
+
position: relative;
|
|
1424
|
+
z-index: 1;
|
|
1425
|
+
display: flex;
|
|
1426
|
+
align-items: center;
|
|
1427
|
+
flex: 1 1 auto;
|
|
1428
|
+
min-width: 0;
|
|
1429
|
+
margin: 0 auto 0 0;
|
|
1430
|
+
padding: 0;
|
|
1431
|
+
overflow: hidden;
|
|
1432
|
+
color: var(--figma-color-text-secondary);
|
|
1433
|
+
text-overflow: ellipsis;
|
|
1434
|
+
white-space: nowrap;
|
|
1435
|
+
pointer-events: none;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
& > [data-propskit-position-axis] {
|
|
1439
|
+
position: relative;
|
|
1440
|
+
z-index: 1;
|
|
1441
|
+
flex: 0 1 auto;
|
|
1442
|
+
min-width: 0;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
fig-input-number {
|
|
1447
|
+
width: 3.85rem;
|
|
1448
|
+
border: 0;
|
|
1449
|
+
background-color: transparent;
|
|
1450
|
+
box-shadow: none;
|
|
1451
|
+
outline: none !important;
|
|
1452
|
+
|
|
1453
|
+
&:hover,
|
|
1454
|
+
&:focus-within {
|
|
1455
|
+
border: 0;
|
|
1456
|
+
background-color: transparent;
|
|
1457
|
+
box-shadow: none;
|
|
1458
|
+
outline: none !important;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
fig-input-number[data-propskit-position-axis="y"] {
|
|
1463
|
+
margin-left: calc(-1 * var(--spacer-2));
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1369
1467
|
/* Canvas Control */
|
|
1370
1468
|
body {
|
|
1371
1469
|
--fig-lab-cursor: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_20065_231516)"><g filter="url(%23filter0_d_20065_231516)"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.93938 2.93938C3.35531 2.52345 3.97597 2.38901 4.52673 2.59555L15.5267 6.72055C16.1416 6.95111 16.535 7.55477 16.4976 8.21034C16.4603 8.86592 16.0009 9.421 15.3638 9.58026L10.737 10.737L9.58026 15.3638C9.421 16.0009 8.86592 16.4603 8.21034 16.4976C7.55477 16.535 6.95111 16.1416 6.72055 15.5267L2.59555 4.52673C2.38901 3.97597 2.52345 3.35531 2.93938 2.93938Z" fill="white"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M4.17558 3.53185C3.99199 3.463 3.7851 3.50782 3.64646 3.64646C3.50782 3.7851 3.463 3.99199 3.53185 4.17558L7.65685 15.1756C7.7337 15.3805 7.93492 15.5117 8.15345 15.4992C8.37197 15.4868 8.557 15.3336 8.61009 15.1213L9.91232 9.91232L15.1213 8.61009C15.3336 8.557 15.4868 8.37197 15.4992 8.15345C15.5117 7.93492 15.3805 7.7337 15.1756 7.65685L4.17558 3.53185Z" fill="black"/></g><defs><filter id="filter0_d_20065_231516" x="-0.5" y="0.5" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="1"/><feGaussianBlur stdDeviation="1.5"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_20065_231516"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_20065_231516" result="shape"/></filter><clipPath id="clip0_20065_231516"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>') 3 3, default;
|