@primer/primitives 8.2.1-rc.c20fc9f4 → 8.2.2-rc.535ae80a

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.
@@ -8,7 +8,7 @@
8
8
  "$extensions": {
9
9
  "org.primer.figma": {
10
10
  "collection": "base/typography",
11
- "scopes": ["all"]
11
+ "scopes": ["fontWeight"]
12
12
  }
13
13
  }
14
14
  },
@@ -18,7 +18,7 @@
18
18
  "$extensions": {
19
19
  "org.primer.figma": {
20
20
  "collection": "base/typography",
21
- "scopes": ["all"]
21
+ "scopes": ["fontWeight"]
22
22
  }
23
23
  }
24
24
  },
@@ -28,7 +28,7 @@
28
28
  "$extensions": {
29
29
  "org.primer.figma": {
30
30
  "collection": "base/typography",
31
- "scopes": ["all"]
31
+ "scopes": ["fontWeight"]
32
32
  }
33
33
  }
34
34
  },
@@ -38,7 +38,7 @@
38
38
  "$extensions": {
39
39
  "org.primer.figma": {
40
40
  "collection": "base/typography",
41
- "scopes": ["all"]
41
+ "scopes": ["fontWeight"]
42
42
  }
43
43
  }
44
44
  }
@@ -6,7 +6,7 @@
6
6
  "$extensions": {
7
7
  "org.primer.figma": {
8
8
  "collection": "typography",
9
- "scopes": ["all"]
9
+ "scopes": ["fontFamily"]
10
10
  }
11
11
  }
12
12
  },
@@ -16,7 +16,7 @@
16
16
  "$extensions": {
17
17
  "org.primer.figma": {
18
18
  "collection": "typography",
19
- "scopes": ["all"]
19
+ "scopes": ["fontFamily"]
20
20
  }
21
21
  }
22
22
  },
@@ -26,7 +26,7 @@
26
26
  "$extensions": {
27
27
  "org.primer.figma": {
28
28
  "collection": "typography",
29
- "scopes": ["all"]
29
+ "scopes": ["fontFamily"]
30
30
  }
31
31
  }
32
32
  }
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "org.primer.figma": {
44
44
  "collection": "typography",
45
- "scopes": ["all"],
45
+ "scopes": ["lineHeight"],
46
46
  "fontSizeInPx": 40
47
47
  }
48
48
  }
@@ -53,7 +53,7 @@
53
53
  "$extensions": {
54
54
  "org.primer.figma": {
55
55
  "collection": "typography",
56
- "scopes": ["all"]
56
+ "scopes": ["fontSize"]
57
57
  }
58
58
  }
59
59
  },
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "org.primer.figma": {
68
68
  "collection": "typography",
69
- "scopes": ["all"]
69
+ "scopes": ["lineHeight"]
70
70
  }
71
71
  }
72
72
  },
@@ -76,7 +76,7 @@
76
76
  "$extensions": {
77
77
  "org.primer.figma": {
78
78
  "collection": "typography",
79
- "scopes": ["all"]
79
+ "scopes": ["fontWeight"]
80
80
  }
81
81
  }
82
82
  },
@@ -99,7 +99,7 @@
99
99
  "$extensions": {
100
100
  "org.primer.figma": {
101
101
  "collection": "typography",
102
- "scopes": ["all"]
102
+ "scopes": ["fontSize"]
103
103
  }
104
104
  }
105
105
  },
@@ -109,7 +109,7 @@
109
109
  "$extensions": {
110
110
  "org.primer.figma": {
111
111
  "collection": "typography",
112
- "scopes": ["all"]
112
+ "scopes": ["fontSize"]
113
113
  }
114
114
  }
115
115
  },
@@ -119,7 +119,7 @@
119
119
  "$extensions": {
120
120
  "org.primer.figma": {
121
121
  "collection": "typography",
122
- "scopes": ["all"]
122
+ "scopes": ["fontSize"]
123
123
  }
124
124
  }
125
125
  }
@@ -134,7 +134,7 @@
134
134
  },
135
135
  "org.primer.figma": {
136
136
  "collection": "typography",
137
- "scopes": ["all"]
137
+ "scopes": ["lineHeight"]
138
138
  }
139
139
  }
140
140
  },
@@ -147,7 +147,7 @@
147
147
  },
148
148
  "org.primer.figma": {
149
149
  "collection": "typography",
150
- "scopes": ["all"]
150
+ "scopes": ["lineHeight"]
151
151
  }
152
152
  }
153
153
  },
@@ -160,7 +160,7 @@
160
160
  },
161
161
  "org.primer.figma": {
162
162
  "collection": "typography",
163
- "scopes": ["all"]
163
+ "scopes": ["lineHeight"]
164
164
  }
165
165
  }
166
166
  }
@@ -172,7 +172,7 @@
172
172
  "$extensions": {
173
173
  "org.primer.figma": {
174
174
  "collection": "typography",
175
- "scopes": ["all"]
175
+ "scopes": ["fontWeight"]
176
176
  }
177
177
  }
178
178
  },
@@ -182,7 +182,7 @@
182
182
  "$extensions": {
183
183
  "org.primer.figma": {
184
184
  "collection": "typography",
185
- "scopes": ["all"]
185
+ "scopes": ["fontWeight"]
186
186
  }
187
187
  }
188
188
  },
@@ -192,7 +192,7 @@
192
192
  "$extensions": {
193
193
  "org.primer.figma": {
194
194
  "collection": "typography",
195
- "scopes": ["all"]
195
+ "scopes": ["fontWeight"]
196
196
  }
197
197
  }
198
198
  }
@@ -237,7 +237,7 @@
237
237
  "$extensions": {
238
238
  "org.primer.figma": {
239
239
  "collection": "typography",
240
- "scopes": ["all"]
240
+ "scopes": ["fontSize"]
241
241
  }
242
242
  }
243
243
  },
@@ -250,7 +250,7 @@
250
250
  },
251
251
  "org.primer.figma": {
252
252
  "collection": "typography",
253
- "scopes": ["all"]
253
+ "scopes": ["lineHeight"]
254
254
  }
255
255
  }
256
256
  },
@@ -260,7 +260,7 @@
260
260
  "$extensions": {
261
261
  "org.primer.figma": {
262
262
  "collection": "typography",
263
- "scopes": ["all"]
263
+ "scopes": ["fontWeight"]
264
264
  }
265
265
  }
266
266
  },
@@ -283,7 +283,7 @@
283
283
  "$extensions": {
284
284
  "org.primer.figma": {
285
285
  "collection": "typography",
286
- "scopes": ["all"]
286
+ "scopes": ["fontSize"]
287
287
  }
288
288
  }
289
289
  },
@@ -293,7 +293,7 @@
293
293
  "$extensions": {
294
294
  "org.primer.figma": {
295
295
  "collection": "typography",
296
- "scopes": ["all"]
296
+ "scopes": ["fontSize"]
297
297
  }
298
298
  }
299
299
  },
@@ -303,7 +303,7 @@
303
303
  "$extensions": {
304
304
  "org.primer.figma": {
305
305
  "collection": "typography",
306
- "scopes": ["all"]
306
+ "scopes": ["fontSize"]
307
307
  }
308
308
  }
309
309
  }
@@ -318,7 +318,7 @@
318
318
  },
319
319
  "org.primer.figma": {
320
320
  "collection": "typography",
321
- "scopes": ["all"]
321
+ "scopes": ["lineHeight"]
322
322
  }
323
323
  }
324
324
  },
@@ -331,7 +331,7 @@
331
331
  },
332
332
  "org.primer.figma": {
333
333
  "collection": "typography",
334
- "scopes": ["all"]
334
+ "scopes": ["lineHeight"]
335
335
  }
336
336
  }
337
337
  },
@@ -344,7 +344,7 @@
344
344
  },
345
345
  "org.primer.figma": {
346
346
  "collection": "typography",
347
- "scopes": ["all"]
347
+ "scopes": ["lineHeight"]
348
348
  }
349
349
  }
350
350
  }
@@ -355,7 +355,7 @@
355
355
  "$extensions": {
356
356
  "org.primer.figma": {
357
357
  "collection": "typography",
358
- "scopes": ["all"]
358
+ "scopes": ["fontWeight"]
359
359
  }
360
360
  }
361
361
  },
@@ -399,7 +399,7 @@
399
399
  "$extensions": {
400
400
  "org.primer.figma": {
401
401
  "collection": "typography",
402
- "scopes": ["all"]
402
+ "scopes": ["fontSize"]
403
403
  }
404
404
  }
405
405
  },
@@ -412,7 +412,7 @@
412
412
  },
413
413
  "org.primer.figma": {
414
414
  "collection": "typography",
415
- "scopes": ["all"]
415
+ "scopes": ["lineHeight"]
416
416
  }
417
417
  }
418
418
  },
@@ -422,7 +422,7 @@
422
422
  "$extensions": {
423
423
  "org.primer.figma": {
424
424
  "collection": "typography",
425
- "scopes": ["all"]
425
+ "scopes": ["fontWeight"]
426
426
  }
427
427
  }
428
428
  },
@@ -444,7 +444,7 @@
444
444
  "$extensions": {
445
445
  "org.primer.figma": {
446
446
  "collection": "typography",
447
- "scopes": ["all"]
447
+ "scopes": ["fontSize"]
448
448
  }
449
449
  }
450
450
  },
@@ -457,7 +457,7 @@
457
457
  },
458
458
  "org.primer.figma": {
459
459
  "collection": "typography",
460
- "scopes": ["all"]
460
+ "scopes": ["lineHeight"]
461
461
  }
462
462
  }
463
463
  },
@@ -467,7 +467,7 @@
467
467
  "$extensions": {
468
468
  "org.primer.figma": {
469
469
  "collection": "typography",
470
- "scopes": ["all"]
470
+ "scopes": ["fontWeight"]
471
471
  }
472
472
  }
473
473
  },
@@ -489,7 +489,7 @@
489
489
  "$extensions": {
490
490
  "org.primer.figma": {
491
491
  "collection": "typography",
492
- "scopes": ["all"]
492
+ "scopes": ["fontSize"]
493
493
  }
494
494
  }
495
495
  },
@@ -499,7 +499,7 @@
499
499
  "$extensions": {
500
500
  "org.primer.figma": {
501
501
  "collection": "typography",
502
- "scopes": ["all"]
502
+ "scopes": ["fontWeight"]
503
503
  }
504
504
  }
505
505
  },
@@ -29,6 +29,7 @@ const figmaScopes: Record<string, FigmaVariableScope[]> = {
29
29
  bgColor: ['FRAME_FILL', 'SHAPE_FILL'],
30
30
  fgColor: ['TEXT_FILL', 'SHAPE_FILL'],
31
31
  borderColor: ['STROKE_COLOR'],
32
+ opacity: ['OPACITY'],
32
33
  fontFamily: ['FONT_FAMILY'],
33
34
  fontStyle: ['FONT_STYLE'],
34
35
  fontWeight: ['FONT_WEIGHT'],
@@ -1,2 +1,2 @@
1
1
  export const joinFriendly = (array: string[], lastJoin = 'and') =>
2
- `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}`
2
+ array.length > 1 ? `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}` : `${array[0]}`