@rogieking/figui3 11.1.6 → 11.2.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/.cursor/skills/fig-editor/SKILL.md +7 -3
- package/.cursor/skills/fig-editor/components.md +52 -1
- package/.cursor/skills/fig-editor/reference.md +18 -0
- package/.cursor/skills/fig-lab/SKILL.md +2 -2
- package/.cursor/skills/fig-lab/components.md +0 -32
- package/.cursor/skills/fig-lab/reference.md +0 -14
- package/.cursor/skills/figui3/SKILL.md +2 -2
- package/.cursor/skills/figui3/components.md +17 -1
- package/.cursor/skills/figui3/react.md +1 -0
- package/CHANGELOG.md +29 -0
- package/README.md +31 -2
- package/components.css +18 -16
- package/dist/components.css +1 -1
- package/dist/fig-editor.css +1 -1
- package/dist/fig-editor.js +3 -3
- package/dist/fig-lab.css +1 -1
- package/dist/fig-lab.js +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +5 -5
- package/fig-editor.css +104 -20
- package/fig-editor.js +1016 -19
- package/fig-lab.css +0 -75
- package/fig-lab.js +0 -672
- package/fig.js +242 -26
- package/package.json +1 -1
package/fig-editor.css
CHANGED
|
@@ -139,6 +139,32 @@ dialog[is="fig-toast"] {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
/* Palette Editor */
|
|
143
|
+
.fig-palette-editor-popup {
|
|
144
|
+
width: 15rem;
|
|
145
|
+
padding: 0;
|
|
146
|
+
pointer-events: auto;
|
|
147
|
+
|
|
148
|
+
& > fig-content {
|
|
149
|
+
padding-top: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
fig-palette-editor {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
width: 100%;
|
|
157
|
+
min-width: 0;
|
|
158
|
+
|
|
159
|
+
> fig-reorder {
|
|
160
|
+
display: contents;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.fig-palette-editor-add {
|
|
164
|
+
width: 100%;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
142
168
|
/* Fill Picker */
|
|
143
169
|
fig-fill-picker {
|
|
144
170
|
display: contents;
|
|
@@ -304,7 +330,7 @@ fig-fill-picker {
|
|
|
304
330
|
aspect-ratio: auto;
|
|
305
331
|
width: calc(100% - var(--spacer-3) * 2);
|
|
306
332
|
margin: var(--spacer-2) var(--spacer-3);
|
|
307
|
-
margin-top:
|
|
333
|
+
margin-top: var(--spacer-4);
|
|
308
334
|
margin-bottom:0;
|
|
309
335
|
background: transparent;
|
|
310
336
|
&::after{
|
|
@@ -312,19 +338,7 @@ fig-fill-picker {
|
|
|
312
338
|
}
|
|
313
339
|
}
|
|
314
340
|
|
|
315
|
-
fig-
|
|
316
|
-
display: flex;
|
|
317
|
-
align-items: center;
|
|
318
|
-
grid-template-columns: unset;
|
|
319
|
-
grid-template-areas: unset;
|
|
320
|
-
padding-right: var(--spacer-2);
|
|
321
|
-
padding-left: var(--spacer-2);
|
|
322
|
-
gap: var(--spacer-2);
|
|
323
|
-
|
|
324
|
-
> *:not(.fig-field-chevron):not(label) {
|
|
325
|
-
grid-area: unset;
|
|
326
|
-
}
|
|
327
|
-
|
|
341
|
+
fig-header.fig-fill-picker-gradient-header {
|
|
328
342
|
.fig-fill-picker-gradient-type {
|
|
329
343
|
display: flex;
|
|
330
344
|
flex: 0 1 auto;
|
|
@@ -333,11 +347,7 @@ fig-fill-picker {
|
|
|
333
347
|
}
|
|
334
348
|
|
|
335
349
|
.fig-fill-picker-gradient-actions {
|
|
336
|
-
|
|
337
|
-
align-items: center;
|
|
338
|
-
flex-shrink: 0;
|
|
339
|
-
gap: var(--spacer-1);
|
|
340
|
-
margin-left: auto;
|
|
350
|
+
flex: 0 0 auto;
|
|
341
351
|
}
|
|
342
352
|
}
|
|
343
353
|
|
|
@@ -441,7 +451,6 @@ fig-fill-picker {
|
|
|
441
451
|
.fig-fill-picker-gradient-stops-list {
|
|
442
452
|
display: flex;
|
|
443
453
|
flex-direction: column;
|
|
444
|
-
gap: var(--spacer-1);
|
|
445
454
|
|
|
446
455
|
fig-reorder {
|
|
447
456
|
display: contents;
|
|
@@ -889,3 +898,78 @@ fig-select-option {
|
|
|
889
898
|
visibility: visible;
|
|
890
899
|
}
|
|
891
900
|
}
|
|
901
|
+
|
|
902
|
+
/* Drag to Reorder */
|
|
903
|
+
fig-reorder {
|
|
904
|
+
display: contents;
|
|
905
|
+
|
|
906
|
+
&:not([handle]):is(:not([disabled]), [disabled="false"])
|
|
907
|
+
> [data-reorder-item] {
|
|
908
|
+
cursor: grab;
|
|
909
|
+
|
|
910
|
+
> fig-header,
|
|
911
|
+
> fig-header *,
|
|
912
|
+
> label {
|
|
913
|
+
cursor: grab;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
> .dragging {
|
|
918
|
+
background-color: var(--figma-color-bg-secondary);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
&[disabled]:not([disabled="false"]) [data-reorder-handle] {
|
|
922
|
+
cursor: inherit;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
[data-reorder-handle] {
|
|
927
|
+
cursor: grab;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
body.fig-reorder-dragging {
|
|
931
|
+
&,
|
|
932
|
+
& * {
|
|
933
|
+
user-select: none !important;
|
|
934
|
+
-webkit-user-select: none !important;
|
|
935
|
+
cursor: grabbing !important;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.fig-reorder-indicator {
|
|
940
|
+
position: fixed;
|
|
941
|
+
pointer-events: none;
|
|
942
|
+
z-index: 1000000;
|
|
943
|
+
border-radius: 1px;
|
|
944
|
+
&::before{
|
|
945
|
+
content: "";
|
|
946
|
+
position: absolute;
|
|
947
|
+
top: 0;
|
|
948
|
+
left: var(--spacer-1);
|
|
949
|
+
width: 100%;
|
|
950
|
+
height: 100%;
|
|
951
|
+
background: var(--figma-color-border-selected);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
&.fig-reorder-indicator-ring {
|
|
955
|
+
&::after{
|
|
956
|
+
content: "";
|
|
957
|
+
position: absolute;
|
|
958
|
+
top: 1px;
|
|
959
|
+
left: 0;
|
|
960
|
+
transform: translate(-50%, -50%);
|
|
961
|
+
width: var(--spacer-2);
|
|
962
|
+
height: var(--spacer-2);
|
|
963
|
+
border: 2px solid var(--figma-color-border-selected);
|
|
964
|
+
border-radius: 50%;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
&[data-axis="vertical"] {
|
|
969
|
+
height: 2px;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
&[data-axis="horizontal"] {
|
|
973
|
+
width: 2px;
|
|
974
|
+
}
|
|
975
|
+
}
|