@rogieking/figui3 6.26.0 → 6.27.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/.cursor/skills/propkit/SKILL.md +2 -0
- package/README.md +24 -5
- package/dist/fig-editor.css +1 -1
- package/dist/fig-lab.css +1 -1
- package/dist/fig-lab.js +21 -18
- package/fig-lab.css +46 -13
- package/fig-lab.js +347 -137
- package/package.json +1 -1
package/fig-lab.css
CHANGED
|
@@ -1053,11 +1053,16 @@ propskit-slider {
|
|
|
1053
1053
|
);
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
|
-
&[type="opacity"] .fig-slider-input-container::
|
|
1057
|
-
|
|
1056
|
+
&[type="opacity"] .fig-slider-input-container::before {
|
|
1057
|
+
display: block;
|
|
1058
|
+
width: 100% !important;
|
|
1059
|
+
clip-path: inset(
|
|
1060
|
+
0 calc(100% - var(--propskit-slider-progress-percent)) 0 0 round
|
|
1061
|
+
var(--slider-border-radius)
|
|
1062
|
+
);
|
|
1058
1063
|
background:
|
|
1059
1064
|
linear-gradient(to right, transparent, var(--color)),
|
|
1060
|
-
var(--slider-checkerboard);
|
|
1065
|
+
var(--slider-checkerboard) !important;
|
|
1061
1066
|
}
|
|
1062
1067
|
}
|
|
1063
1068
|
datalist {
|
|
@@ -1077,6 +1082,7 @@ propskit-slider {
|
|
|
1077
1082
|
right: var(--propskit-slider-number-right);
|
|
1078
1083
|
top: 2px;
|
|
1079
1084
|
bottom: 2px;
|
|
1085
|
+
z-index: 2;
|
|
1080
1086
|
width: fit-content;
|
|
1081
1087
|
min-width: fit-content;
|
|
1082
1088
|
max-width: max-content;
|
|
@@ -1085,6 +1091,14 @@ propskit-slider {
|
|
|
1085
1091
|
border-radius: var(--radius-medium);
|
|
1086
1092
|
outline: none !important;
|
|
1087
1093
|
|
|
1094
|
+
&[theme="light"] {
|
|
1095
|
+
--propskit-slider-filled-text-color: #fff;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
&[theme="dark"] {
|
|
1099
|
+
--propskit-slider-filled-text-color: #000;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1088
1102
|
&:hover,
|
|
1089
1103
|
&:has(input:focus) {
|
|
1090
1104
|
box-shadow: none !important;
|
|
@@ -1102,6 +1116,33 @@ propskit-slider {
|
|
|
1102
1116
|
}
|
|
1103
1117
|
}
|
|
1104
1118
|
|
|
1119
|
+
&[type="opacity"][color] {
|
|
1120
|
+
fig-slider {
|
|
1121
|
+
container-type: inline-size;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
fig-input-number[theme] input {
|
|
1125
|
+
--propskit-slider-number-fill-edge: clamp(
|
|
1126
|
+
0px,
|
|
1127
|
+
calc(
|
|
1128
|
+
100% + var(--propskit-slider-number-right) -
|
|
1129
|
+
(1 - var(--slider-complete)) * 100cqw
|
|
1130
|
+
),
|
|
1131
|
+
100%
|
|
1132
|
+
);
|
|
1133
|
+
background-image: linear-gradient(
|
|
1134
|
+
to right,
|
|
1135
|
+
var(--propskit-slider-filled-text-color) 0
|
|
1136
|
+
var(--propskit-slider-number-fill-edge),
|
|
1137
|
+
var(--figma-color-text) var(--propskit-slider-number-fill-edge) 100%
|
|
1138
|
+
) !important;
|
|
1139
|
+
background-clip: text;
|
|
1140
|
+
-webkit-background-clip: text;
|
|
1141
|
+
color: transparent !important;
|
|
1142
|
+
-webkit-text-fill-color: transparent;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1105
1146
|
&[data-elastic-dragging="true"] {
|
|
1106
1147
|
transform: scaleX(var(--propskit-slider-elastic-scale));
|
|
1107
1148
|
transition: none;
|
|
@@ -1326,8 +1367,8 @@ propskit-oscillator {
|
|
|
1326
1367
|
flex-direction: column;
|
|
1327
1368
|
width: 100%;
|
|
1328
1369
|
--aspect-ratio: 2 / 1;
|
|
1329
|
-
--oscillator-stroke-width:
|
|
1330
|
-
--propskit-oscillator-playhead-radius:
|
|
1370
|
+
--oscillator-stroke-width: 2;
|
|
1371
|
+
--propskit-oscillator-playhead-radius: 5px;
|
|
1331
1372
|
|
|
1332
1373
|
.propskit-oscillator-svg-container {
|
|
1333
1374
|
border-radius: var(--radius-medium);
|
|
@@ -1465,14 +1506,6 @@ propskit-oscillator {
|
|
|
1465
1506
|
width: var(--spacer-4);
|
|
1466
1507
|
height: var(--spacer-4);
|
|
1467
1508
|
min-width: var(--spacer-4);
|
|
1468
|
-
|
|
1469
|
-
&::part(trigger) {
|
|
1470
|
-
padding: 0;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
&::part(label) {
|
|
1474
|
-
display: none;
|
|
1475
|
-
}
|
|
1476
1509
|
}
|
|
1477
1510
|
|
|
1478
1511
|
&[disabled]:not([disabled="false"]) {
|