@rogieking/figui3 6.14.0 → 6.15.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 +85 -9
- package/components.css +2 -0
- package/dist/components.css +1 -1
- package/dist/fig-editor.css +1 -1
- package/dist/fig-lab.css +1 -1
- package/dist/fig-lab.js +16 -16
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig-lab.css +430 -59
- package/fig-lab.js +855 -59
- package/fig.js +1 -0
- package/package.json +1 -1
package/fig-lab.css
CHANGED
|
@@ -8,37 +8,408 @@
|
|
|
8
8
|
* <link rel="stylesheet" href="fig-lab.css">
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
propskit-switch {
|
|
12
|
+
--propskit-switch-height: 2rem;
|
|
13
|
+
--propskit-switch-vertical-padding: var(--spacer-1);
|
|
14
|
+
--propskit-switch-horizontal-padding: var(--spacer-3);
|
|
15
|
+
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: var(--propskit-switch-height);
|
|
19
|
+
padding: var(--propskit-switch-vertical-padding)
|
|
20
|
+
var(--propskit-switch-horizontal-padding);
|
|
21
|
+
|
|
22
|
+
&[size="large"] {
|
|
23
|
+
--propskit-switch-vertical-padding: 0px;
|
|
24
|
+
|
|
25
|
+
fig-field:not([direction="vertical"]) {
|
|
26
|
+
padding-right: var(--spacer-1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[disabled]:not([disabled="false"]) {
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
|
|
33
|
+
label {
|
|
34
|
+
color: var(--figma-color-text-disabled);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
fig-field:not([direction="vertical"]) {
|
|
39
|
+
position: relative;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
height: 100%;
|
|
43
|
+
padding: 0 0 0 var(--spacer-2);
|
|
44
|
+
border-radius: var(--radius-medium);
|
|
45
|
+
background-color: var(--figma-color-bg-secondary);
|
|
46
|
+
|
|
47
|
+
&::after {
|
|
48
|
+
content: "";
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: 0;
|
|
51
|
+
border-radius: inherit;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:hover::after {
|
|
56
|
+
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
& > label {
|
|
60
|
+
z-index: 1;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 0;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
color: var(--figma-color-text-secondary);
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
|
|
73
|
+
fig-icon:first-child {
|
|
74
|
+
margin-left: calc(var(--spacer-1) * -1);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
fig-segmented-control {
|
|
79
|
+
flex: 0 0 auto;
|
|
80
|
+
margin-left: auto;
|
|
81
|
+
min-width: 4.5rem;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
propskit-select {
|
|
87
|
+
--propskit-select-height: 2rem;
|
|
88
|
+
--propskit-select-vertical-padding: var(--spacer-1);
|
|
89
|
+
--propskit-select-horizontal-padding: var(--spacer-3);
|
|
90
|
+
--figma-focus-outline-offset: 1px;
|
|
91
|
+
|
|
92
|
+
display: block;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: var(--propskit-select-height);
|
|
95
|
+
padding: var(--propskit-select-vertical-padding)
|
|
96
|
+
var(--propskit-select-horizontal-padding);
|
|
97
|
+
|
|
98
|
+
&[size="large"] {
|
|
99
|
+
--propskit-select-vertical-padding: 0px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[disabled]:not([disabled="false"]) {
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
|
|
105
|
+
label {
|
|
106
|
+
color: var(--figma-color-text-disabled);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
fig-field:not([direction="vertical"]) {
|
|
111
|
+
position: relative;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
height: 100%;
|
|
115
|
+
border-radius: var(--radius-medium);
|
|
116
|
+
background-color: var(--figma-color-bg-secondary);
|
|
117
|
+
|
|
118
|
+
&::after {
|
|
119
|
+
content: "";
|
|
120
|
+
position: absolute;
|
|
121
|
+
inset: 0;
|
|
122
|
+
border-radius: inherit;
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:hover::after {
|
|
127
|
+
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
& > label {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0 auto 0 var(--spacer-2);
|
|
133
|
+
z-index: 1;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
width: calc(50% - var(--spacer-2));
|
|
137
|
+
min-width: 0;
|
|
138
|
+
margin: 0;
|
|
139
|
+
padding: 0;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
color: var(--figma-color-text-secondary);
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
pointer-events: none;
|
|
145
|
+
|
|
146
|
+
fig-icon:first-child {
|
|
147
|
+
margin-left: calc(var(--spacer-1) * -1);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
fig-dropdown {
|
|
152
|
+
position: relative;
|
|
153
|
+
flex: 0 0 auto;
|
|
154
|
+
width: fit-content;
|
|
155
|
+
min-width: 0;
|
|
156
|
+
margin-left: auto;
|
|
157
|
+
border-radius: var(--radius-medium);
|
|
158
|
+
|
|
159
|
+
select {
|
|
160
|
+
field-sizing: content;
|
|
161
|
+
width: auto;
|
|
162
|
+
min-width: 0;
|
|
163
|
+
background: transparent;
|
|
164
|
+
box-shadow: none;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
propskit-text {
|
|
171
|
+
--propskit-text-height: 2rem;
|
|
172
|
+
--propskit-text-vertical-padding: var(--spacer-1);
|
|
173
|
+
--propskit-text-horizontal-padding: var(--spacer-3);
|
|
174
|
+
--figma-focus-outline-offset: 1px;
|
|
175
|
+
|
|
176
|
+
display: block;
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: var(--propskit-text-height);
|
|
179
|
+
padding: var(--propskit-text-vertical-padding)
|
|
180
|
+
var(--propskit-text-horizontal-padding);
|
|
181
|
+
|
|
182
|
+
&[size="large"] {
|
|
183
|
+
--propskit-text-vertical-padding: 0px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&[disabled]:not([disabled="false"]) {
|
|
187
|
+
pointer-events: none;
|
|
188
|
+
|
|
189
|
+
label,
|
|
190
|
+
input {
|
|
191
|
+
color: var(--figma-color-text-disabled);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
fig-field:not([direction="vertical"]) {
|
|
196
|
+
position: relative;
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: var(--spacer-2);
|
|
200
|
+
height: 100%;
|
|
201
|
+
padding-left: var(--spacer-2);
|
|
202
|
+
border-radius: var(--radius-medium);
|
|
203
|
+
background-color: var(--figma-color-bg-secondary);
|
|
204
|
+
|
|
205
|
+
&::after {
|
|
206
|
+
content: "";
|
|
207
|
+
position: absolute;
|
|
208
|
+
inset: 0;
|
|
209
|
+
border-radius: inherit;
|
|
210
|
+
pointer-events: none;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&:hover::after {
|
|
214
|
+
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
& > label {
|
|
218
|
+
position: relative;
|
|
219
|
+
z-index: 1;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
flex: 0 0 auto;
|
|
223
|
+
width: auto;
|
|
224
|
+
max-width: 50%;
|
|
225
|
+
min-width: 0;
|
|
226
|
+
margin: 0;
|
|
227
|
+
padding: 0;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
color: var(--figma-color-text-secondary);
|
|
230
|
+
text-overflow: ellipsis;
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
|
|
234
|
+
fig-icon:first-child {
|
|
235
|
+
margin-left: calc(var(--spacer-1) * -1);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
fig-input-text {
|
|
240
|
+
--figma-focus-outline-offset: 1px;
|
|
241
|
+
|
|
242
|
+
position: relative;
|
|
243
|
+
align-self: center;
|
|
244
|
+
flex: 0 1 auto !important;
|
|
245
|
+
width: fit-content !important;
|
|
246
|
+
max-width: none;
|
|
247
|
+
min-width: 0;
|
|
248
|
+
margin-left: auto;
|
|
249
|
+
height: calc(
|
|
250
|
+
var(--propskit-text-height) - var(--propskit-text-vertical-padding) * 2
|
|
251
|
+
);
|
|
252
|
+
border-radius: var(--radius-medium);
|
|
253
|
+
background-color: transparent;
|
|
254
|
+
box-shadow: none;
|
|
255
|
+
|
|
256
|
+
&:has(input:focus) {
|
|
257
|
+
outline: var(--figma-focus-outline) !important;
|
|
258
|
+
outline-offset: var(--figma-focus-outline-offset) !important;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
input {
|
|
262
|
+
field-sizing: content;
|
|
263
|
+
width: auto;
|
|
264
|
+
max-width: 100%;
|
|
265
|
+
min-width: 0;
|
|
266
|
+
flex: 0 0 auto;
|
|
267
|
+
text-align: right;
|
|
268
|
+
|
|
269
|
+
&:not(:focus) {
|
|
270
|
+
overflow: hidden;
|
|
271
|
+
text-overflow: ellipsis;
|
|
272
|
+
white-space: nowrap;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
propskit-number {
|
|
280
|
+
--propskit-number-height: 2rem;
|
|
281
|
+
--propskit-number-vertical-padding: var(--spacer-1);
|
|
282
|
+
--propskit-number-horizontal-padding: var(--spacer-3);
|
|
283
|
+
--figma-focus-outline-offset: 1px;
|
|
284
|
+
|
|
285
|
+
display: block;
|
|
286
|
+
width: 100%;
|
|
287
|
+
height: var(--propskit-number-height);
|
|
288
|
+
padding: var(--propskit-number-vertical-padding)
|
|
289
|
+
var(--propskit-number-horizontal-padding);
|
|
290
|
+
|
|
291
|
+
&[size="large"] {
|
|
292
|
+
--propskit-number-vertical-padding: 0px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&[disabled]:not([disabled="false"]) {
|
|
296
|
+
pointer-events: none;
|
|
297
|
+
|
|
298
|
+
label,
|
|
299
|
+
input {
|
|
300
|
+
color: var(--figma-color-text-disabled);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
&[steppers]:not([steppers="false"]) fig-input-number input {
|
|
305
|
+
padding-right: 0;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
fig-field:not([direction="vertical"]) {
|
|
309
|
+
position: relative;
|
|
310
|
+
display: flex;
|
|
311
|
+
height: 100%;
|
|
312
|
+
border-radius: var(--radius-medium);
|
|
313
|
+
background-color: var(--figma-color-bg-secondary);
|
|
314
|
+
|
|
315
|
+
&::after {
|
|
316
|
+
content: "";
|
|
317
|
+
position: absolute;
|
|
318
|
+
inset: 0;
|
|
319
|
+
border-radius: inherit;
|
|
320
|
+
pointer-events: none;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&:hover::after {
|
|
324
|
+
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
& > label {
|
|
328
|
+
position: absolute;
|
|
329
|
+
inset: 0 auto 0 var(--spacer-2);
|
|
330
|
+
z-index: 1;
|
|
331
|
+
display: flex;
|
|
332
|
+
align-items: center;
|
|
333
|
+
width: calc(50% - var(--spacer-2));
|
|
334
|
+
min-width: 0;
|
|
335
|
+
margin: 0;
|
|
336
|
+
padding: 0;
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
color: var(--figma-color-text-secondary);
|
|
339
|
+
text-overflow: ellipsis;
|
|
340
|
+
white-space: nowrap;
|
|
341
|
+
pointer-events: none;
|
|
342
|
+
|
|
343
|
+
fig-icon:first-child {
|
|
344
|
+
margin-left: calc(var(--spacer-1) * -1);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
fig-input-number {
|
|
349
|
+
--figma-focus-outline-offset: 1px;
|
|
350
|
+
|
|
351
|
+
position: relative;
|
|
352
|
+
align-self: center;
|
|
353
|
+
flex: 0 0 auto;
|
|
354
|
+
width: fit-content;
|
|
355
|
+
min-width: 0;
|
|
356
|
+
margin-left: auto;
|
|
357
|
+
height: calc(
|
|
358
|
+
var(--propskit-number-height) -
|
|
359
|
+
var(--propskit-number-vertical-padding) * 2
|
|
360
|
+
);
|
|
361
|
+
border-radius: var(--radius-medium);
|
|
362
|
+
background-color: transparent;
|
|
363
|
+
box-shadow: none;
|
|
364
|
+
|
|
365
|
+
&:has(input:focus) {
|
|
366
|
+
outline: var(--figma-focus-outline) !important;
|
|
367
|
+
outline-offset: var(--figma-focus-outline-offset) !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
input {
|
|
371
|
+
field-sizing: content;
|
|
372
|
+
width: auto;
|
|
373
|
+
min-width: 0;
|
|
374
|
+
flex: 0 0 auto;
|
|
375
|
+
text-align: right;
|
|
376
|
+
font-variant-numeric: tabular-nums;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
propskit-slider {
|
|
383
|
+
--propskit-slider-elastic-distance: calc(var(--spacer-2) + 0.25rem);
|
|
384
|
+
--propskit-slider-elastic-size: 0px;
|
|
385
|
+
--propskit-slider-elastic-scale: 1;
|
|
386
|
+
--propskit-slider-elastic-origin: left center;
|
|
387
|
+
--propskit-slider-elastic-transition: 0.18s cubic-bezier(0.2, 1.45, 0.35, 1);
|
|
388
|
+
--propskit-slider-height: 2rem;
|
|
389
|
+
--propskit-slider-vertical-padding: var(--spacer-1);
|
|
390
|
+
--propskit-slider-horizontal-padding: var(--spacer-3);
|
|
20
391
|
--figma-focus-outline-offset: 1px;
|
|
21
|
-
--
|
|
392
|
+
--propskit-slider-progress-shadow: inset 0px 0.75px 0px 0px light-dark(transparent, rgba(255, 255, 255, 0.1));
|
|
22
393
|
--field-text-shadow: 0 1px 1.5px
|
|
23
394
|
light-dark(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
|
24
|
-
--
|
|
25
|
-
--
|
|
395
|
+
--propskit-slider-fig-slider-height: calc(var(--propskit-slider-height) - var(--propskit-slider-vertical-padding) * 2);
|
|
396
|
+
--propskit-slider-fig-slider-thumb-height: calc(var(--propskit-slider-fig-slider-height) - var(--spacer-2-5));
|
|
26
397
|
|
|
27
398
|
display: block;
|
|
28
399
|
position: relative;
|
|
29
400
|
width: 100%;
|
|
30
|
-
height: var(--
|
|
401
|
+
height: var(--propskit-slider-height);
|
|
31
402
|
border-radius: var(--radius-medium);
|
|
32
|
-
transform-origin: var(--
|
|
33
|
-
transition: transform var(--
|
|
34
|
-
padding-top: var(--
|
|
35
|
-
padding-bottom: var(--
|
|
36
|
-
padding-left: var(--
|
|
37
|
-
padding-right: var(--
|
|
403
|
+
transform-origin: var(--propskit-slider-elastic-origin);
|
|
404
|
+
transition: transform var(--propskit-slider-elastic-transition);
|
|
405
|
+
padding-top: var(--propskit-slider-vertical-padding);
|
|
406
|
+
padding-bottom: var(--propskit-slider-vertical-padding);
|
|
407
|
+
padding-left: var(--propskit-slider-horizontal-padding);
|
|
408
|
+
padding-right: var(--propskit-slider-horizontal-padding);
|
|
38
409
|
|
|
39
410
|
&[size="large"]{
|
|
40
|
-
--
|
|
41
|
-
--
|
|
411
|
+
--propskit-slider-vertical-padding: 0px;
|
|
412
|
+
--propskit-slider-fig-slider-thumb-height: calc(var(--propskit-slider-fig-slider-height) - var(--spacer-3));
|
|
42
413
|
}
|
|
43
414
|
|
|
44
415
|
label {
|
|
@@ -80,7 +451,7 @@ fig-field-slider {
|
|
|
80
451
|
max-width: none;
|
|
81
452
|
width: 100%;
|
|
82
453
|
flex: 1 1 auto;
|
|
83
|
-
color: var(--figma-color-text);
|
|
454
|
+
color: var(--figma-color-text-secondary);
|
|
84
455
|
padding: 0;
|
|
85
456
|
display: flex;
|
|
86
457
|
align-items: center;
|
|
@@ -97,8 +468,8 @@ fig-field-slider {
|
|
|
97
468
|
inset: 0;
|
|
98
469
|
padding: 0;
|
|
99
470
|
background-color: transparent;
|
|
100
|
-
--slider-height: var(--
|
|
101
|
-
--slider-field-height: calc(var(--
|
|
471
|
+
--slider-height: var(--propskit-slider-fig-slider-height);
|
|
472
|
+
--slider-field-height: calc(var(--propskit-slider-height) - var(--propskit-slider-vertical-padding) * 2);
|
|
102
473
|
--slider-thumb-width: var(--spacer-1);
|
|
103
474
|
--slider-thumb-color: light-dark(
|
|
104
475
|
var(--figma-color-text-secondary),
|
|
@@ -108,7 +479,7 @@ fig-field-slider {
|
|
|
108
479
|
var(--spacer-2) + (var(--spacer-3) - var(--spacer-2)) *
|
|
109
480
|
min(var(--slider-complete), calc(1 - var(--slider-complete))) * 2
|
|
110
481
|
);*/
|
|
111
|
-
--slider-thumb-height: var(--
|
|
482
|
+
--slider-thumb-height: var(--propskit-slider-fig-slider-thumb-height);
|
|
112
483
|
--slider-border-radius: var(--radius-medium);
|
|
113
484
|
--slider-tick-width: 0.125rem;
|
|
114
485
|
--slider-tick-height: var(--spacer-2);
|
|
@@ -127,12 +498,12 @@ fig-field-slider {
|
|
|
127
498
|
0px
|
|
128
499
|
);
|
|
129
500
|
--slider-thumb-travel-offset: var(--slider-thumb-edge-offset);
|
|
130
|
-
--
|
|
501
|
+
--propskit-slider-progress-offset: calc(
|
|
131
502
|
min(var(--slider-complete), calc(1 - var(--slider-complete))) *
|
|
132
503
|
var(--spacer-2)
|
|
133
504
|
);
|
|
134
|
-
--
|
|
135
|
-
var(--slider-percent) + var(--
|
|
505
|
+
--propskit-slider-progress-percent: calc(
|
|
506
|
+
var(--slider-percent) + var(--propskit-slider-progress-offset)
|
|
136
507
|
);
|
|
137
508
|
--slider-handle-shadow:
|
|
138
509
|
inset 0 0 0 var(--slider-thumb-height) var(--slider-thumb-color),
|
|
@@ -182,7 +553,7 @@ fig-field-slider {
|
|
|
182
553
|
}
|
|
183
554
|
}
|
|
184
555
|
&::before {
|
|
185
|
-
box-shadow: var(--
|
|
556
|
+
box-shadow: var(--propskit-slider-progress-shadow) !important;
|
|
186
557
|
background: var(--figma-color-bordertranslucent) !important;
|
|
187
558
|
min-width: 0 !important;
|
|
188
559
|
box-shadow: none !important;
|
|
@@ -201,7 +572,7 @@ fig-field-slider {
|
|
|
201
572
|
}
|
|
202
573
|
|
|
203
574
|
&:not([type="delta"]) .fig-slider-input-container::before {
|
|
204
|
-
width: var(--
|
|
575
|
+
width: var(--propskit-slider-progress-percent) !important;
|
|
205
576
|
}
|
|
206
577
|
|
|
207
578
|
&[type="delta"] .fig-slider-input-container::before {
|
|
@@ -255,22 +626,22 @@ fig-field-slider {
|
|
|
255
626
|
}
|
|
256
627
|
|
|
257
628
|
&[type="hue"] .fig-slider-input-container::after {
|
|
258
|
-
--
|
|
629
|
+
--propskit-slider-hue-fade-size: 30%;
|
|
259
630
|
background: var(--bg-hue);
|
|
260
631
|
mask-image: linear-gradient(
|
|
261
632
|
to right,
|
|
262
633
|
transparent 0%,
|
|
263
|
-
rgba(0, 0, 0, 0.16) calc(var(--
|
|
264
|
-
black var(--
|
|
265
|
-
rgba(0, 0, 0, 0.16) calc(var(--
|
|
634
|
+
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) - var(--propskit-slider-hue-fade-size)),
|
|
635
|
+
black var(--propskit-slider-progress-percent),
|
|
636
|
+
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) + var(--propskit-slider-hue-fade-size)),
|
|
266
637
|
transparent 100%
|
|
267
638
|
);
|
|
268
639
|
-webkit-mask-image: linear-gradient(
|
|
269
640
|
to right,
|
|
270
641
|
transparent 0%,
|
|
271
|
-
rgba(0, 0, 0, 0.16) calc(var(--
|
|
272
|
-
black var(--
|
|
273
|
-
rgba(0, 0, 0, 0.16) calc(var(--
|
|
642
|
+
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) - var(--propskit-slider-hue-fade-size)),
|
|
643
|
+
black var(--propskit-slider-progress-percent),
|
|
644
|
+
rgba(0, 0, 0, 0.16) calc(var(--propskit-slider-progress-percent) + var(--propskit-slider-hue-fade-size)),
|
|
274
645
|
transparent 100%
|
|
275
646
|
);
|
|
276
647
|
}
|
|
@@ -333,7 +704,7 @@ fig-field-slider {
|
|
|
333
704
|
}
|
|
334
705
|
|
|
335
706
|
&[data-elastic-dragging="true"] {
|
|
336
|
-
transform: scaleX(var(--
|
|
707
|
+
transform: scaleX(var(--propskit-slider-elastic-scale));
|
|
337
708
|
transition: none;
|
|
338
709
|
}
|
|
339
710
|
}
|
|
@@ -545,15 +916,15 @@ fig-input-angle {
|
|
|
545
916
|
}
|
|
546
917
|
|
|
547
918
|
/* Oscillator Input */
|
|
548
|
-
|
|
919
|
+
propskit-oscillator {
|
|
549
920
|
display: flex;
|
|
550
921
|
flex-direction: column;
|
|
551
922
|
width: 100%;
|
|
552
923
|
--aspect-ratio: 2 / 1;
|
|
553
924
|
--oscillator-stroke-width: 1;
|
|
554
|
-
--
|
|
925
|
+
--propskit-oscillator-playhead-radius: 4px;
|
|
555
926
|
|
|
556
|
-
.
|
|
927
|
+
.propskit-oscillator-svg-container {
|
|
557
928
|
border-radius: var(--radius-medium);
|
|
558
929
|
padding: var(--spacer-3) var(--spacer-5);
|
|
559
930
|
margin-bottom: var(--spacer-2);
|
|
@@ -576,7 +947,7 @@ fig-input-oscillator {
|
|
|
576
947
|
}
|
|
577
948
|
}
|
|
578
949
|
|
|
579
|
-
.
|
|
950
|
+
.propskit-oscillator-svg {
|
|
580
951
|
display: block;
|
|
581
952
|
width: 100%;
|
|
582
953
|
aspect-ratio: var(--aspect-ratio);
|
|
@@ -584,30 +955,30 @@ fig-input-oscillator {
|
|
|
584
955
|
position: relative;
|
|
585
956
|
z-index: 1;
|
|
586
957
|
|
|
587
|
-
.
|
|
958
|
+
.propskit-oscillator-handle{
|
|
588
959
|
opacity: 0;
|
|
589
960
|
}
|
|
590
961
|
&:hover,
|
|
591
962
|
&:focus-within,
|
|
592
963
|
&.dragging{
|
|
593
|
-
.
|
|
964
|
+
.propskit-oscillator-handle{
|
|
594
965
|
opacity: 1;
|
|
595
966
|
}
|
|
596
967
|
}
|
|
597
968
|
}
|
|
598
969
|
|
|
599
|
-
.
|
|
970
|
+
.propskit-oscillator-bounds {
|
|
600
971
|
fill: transparent;
|
|
601
972
|
}
|
|
602
973
|
|
|
603
|
-
.
|
|
974
|
+
.propskit-oscillator-baseline {
|
|
604
975
|
pointer-events: none;
|
|
605
976
|
stroke: var(--figma-color-bordertranslucent);
|
|
606
977
|
stroke-width: var(--oscillator-stroke-width);
|
|
607
978
|
stroke-linecap: round;
|
|
608
979
|
}
|
|
609
980
|
|
|
610
|
-
.
|
|
981
|
+
.propskit-oscillator-path {
|
|
611
982
|
pointer-events: none;
|
|
612
983
|
fill: none;
|
|
613
984
|
stroke: var(--figma-color-text);
|
|
@@ -616,20 +987,20 @@ fig-input-oscillator {
|
|
|
616
987
|
stroke-linecap: round;
|
|
617
988
|
}
|
|
618
989
|
|
|
619
|
-
.
|
|
990
|
+
.propskit-oscillator-playhead {
|
|
620
991
|
pointer-events: none;
|
|
621
|
-
r: var(--
|
|
992
|
+
r: var(--propskit-oscillator-playhead-radius);
|
|
622
993
|
fill: var(--handle-color);
|
|
623
994
|
stroke: var(--figma-color-bg);
|
|
624
995
|
stroke-width: 1px;
|
|
625
996
|
}
|
|
626
997
|
|
|
627
|
-
.
|
|
998
|
+
.propskit-oscillator-handle {
|
|
628
999
|
overflow: visible;
|
|
629
1000
|
pointer-events: all;
|
|
630
1001
|
cursor: default;
|
|
631
1002
|
|
|
632
|
-
.
|
|
1003
|
+
.propskit-oscillator-handle-inner {
|
|
633
1004
|
display: grid;
|
|
634
1005
|
place-items: center;
|
|
635
1006
|
width: 100%;
|
|
@@ -638,7 +1009,7 @@ fig-input-oscillator {
|
|
|
638
1009
|
}
|
|
639
1010
|
}
|
|
640
1011
|
|
|
641
|
-
.
|
|
1012
|
+
.propskit-oscillator-frequency-handle {
|
|
642
1013
|
cursor: ew-resize;
|
|
643
1014
|
|
|
644
1015
|
fig-handle,
|
|
@@ -651,7 +1022,7 @@ fig-input-oscillator {
|
|
|
651
1022
|
}
|
|
652
1023
|
}
|
|
653
1024
|
|
|
654
|
-
.
|
|
1025
|
+
.propskit-oscillator-amplitude-handle {
|
|
655
1026
|
cursor: ns-resize;
|
|
656
1027
|
|
|
657
1028
|
fig-handle,
|
|
@@ -664,28 +1035,28 @@ fig-input-oscillator {
|
|
|
664
1035
|
}
|
|
665
1036
|
}
|
|
666
1037
|
|
|
667
|
-
.
|
|
1038
|
+
.propskit-oscillator-waves {
|
|
668
1039
|
display: flex;
|
|
669
1040
|
flex-direction: column;
|
|
670
1041
|
gap: 0;
|
|
671
1042
|
}
|
|
672
1043
|
|
|
673
|
-
.
|
|
1044
|
+
.propskit-oscillator-wave {
|
|
674
1045
|
margin-bottom: 0;
|
|
675
1046
|
|
|
676
1047
|
> fig-header {
|
|
677
|
-
.
|
|
678
|
-
.
|
|
1048
|
+
.propskit-oscillator-remove-button,
|
|
1049
|
+
.propskit-oscillator-add-type-button {
|
|
679
1050
|
flex-shrink: 0;
|
|
680
1051
|
}
|
|
681
1052
|
}
|
|
682
1053
|
}
|
|
683
1054
|
|
|
684
|
-
.
|
|
1055
|
+
.propskit-oscillator-field {
|
|
685
1056
|
width: 100%;
|
|
686
1057
|
}
|
|
687
1058
|
|
|
688
|
-
.
|
|
1059
|
+
.propskit-oscillator-add-type-button {
|
|
689
1060
|
> fig-dropdown,
|
|
690
1061
|
> fig-dropdown > select {
|
|
691
1062
|
width: 100%;
|