@primer/view-components 0.0.93 → 0.0.95
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/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/components/primer/alpha/{modal-dialog-element.d.ts → modal_dialog.d.ts} +0 -0
- package/app/components/primer/alpha/{modal-dialog-element.js → modal_dialog.js} +0 -0
- package/app/components/primer/alpha/{toggle-switch-element.d.ts → toggle_switch.d.ts} +0 -0
- package/app/components/primer/alpha/{toggle-switch-element.js → toggle_switch.js} +7 -2
- package/app/components/primer/alpha/{tool-tip-element.d.ts → tool_tip.d.ts} +0 -0
- package/app/components/primer/alpha/{tool-tip-element.js → tool_tip.js} +17 -2
- package/app/components/primer/{clipboard_copy_component.d.ts → clipboard_copy.d.ts} +0 -0
- package/app/components/primer/{clipboard_copy_component.js → clipboard_copy.js} +1 -1
- package/app/components/primer/experimental/{overflow-menu-element.d.ts → action_bar.d.ts} +1 -0
- package/app/components/primer/experimental/action_bar.js +141 -0
- package/app/components/primer/primer.d.ts +7 -7
- package/app/components/primer/primer.js +7 -7
- package/package.json +9 -9
- package/static/arguments.json +2042 -0
- package/static/audited_at.json +84 -0
- package/static/constants.json +978 -0
- package/static/statuses.json +84 -0
- package/app/components/primer/experimental/action-bar-element.d.ts +0 -14
- package/app/components/primer/experimental/action-bar-element.js +0 -139
- package/app/components/primer/experimental/action-menu-element.d.ts +0 -31
- package/app/components/primer/experimental/action-menu-element.js +0 -334
- package/app/components/primer/experimental/overflow-menu-element.js +0 -113
|
@@ -0,0 +1,978 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Primer::Alpha::AutoComplete": {
|
|
3
|
+
"Item": "Primer::Alpha::AutoComplete::Item"
|
|
4
|
+
},
|
|
5
|
+
"Primer::Alpha::AutoComplete::Item": {
|
|
6
|
+
},
|
|
7
|
+
"Primer::Alpha::ButtonMarketing": {
|
|
8
|
+
"DEFAULT_SCHEME": "default",
|
|
9
|
+
"DEFAULT_TAG": "button",
|
|
10
|
+
"DEFAULT_TYPE": "button",
|
|
11
|
+
"DEFAULT_VARIANT": "default",
|
|
12
|
+
"SCHEME_MAPPINGS": {
|
|
13
|
+
"default": "",
|
|
14
|
+
"primary": "btn-signup-mktg",
|
|
15
|
+
"outline": "btn-muted-mktg",
|
|
16
|
+
"transparent": "btn-subtle-mktg"
|
|
17
|
+
},
|
|
18
|
+
"SCHEME_OPTIONS": [
|
|
19
|
+
"default",
|
|
20
|
+
"primary",
|
|
21
|
+
"outline",
|
|
22
|
+
"transparent"
|
|
23
|
+
],
|
|
24
|
+
"TAG_OPTIONS": [
|
|
25
|
+
"button",
|
|
26
|
+
"a"
|
|
27
|
+
],
|
|
28
|
+
"TYPE_OPTIONS": [
|
|
29
|
+
"button",
|
|
30
|
+
"submit"
|
|
31
|
+
],
|
|
32
|
+
"VARIANT_MAPPINGS": {
|
|
33
|
+
"default": "",
|
|
34
|
+
"large": "btn-large-mktg"
|
|
35
|
+
},
|
|
36
|
+
"VARIANT_OPTIONS": [
|
|
37
|
+
"default",
|
|
38
|
+
"large"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"Primer::Alpha::Dialog": {
|
|
42
|
+
"Body": "Primer::Alpha::Dialog::Body",
|
|
43
|
+
"DEFAULT_POSITION": "center",
|
|
44
|
+
"DEFAULT_POSITION_NARROW": "inherit",
|
|
45
|
+
"DEFAULT_SIZE": "medium",
|
|
46
|
+
"Footer": "Primer::Alpha::Dialog::Footer",
|
|
47
|
+
"Header": "Primer::Alpha::Dialog::Header",
|
|
48
|
+
"POSITION_MAPPINGS": {
|
|
49
|
+
"center": "Overlay-backdrop--center",
|
|
50
|
+
"left": "Overlay-backdrop--side Overlay-backdrop--placement-left",
|
|
51
|
+
"right": "Overlay-backdrop--side Overlay-backdrop--placement-right"
|
|
52
|
+
},
|
|
53
|
+
"POSITION_NARROW_MAPPINGS": {
|
|
54
|
+
"inherit": "",
|
|
55
|
+
"bottom": "Overlay-backdrop--side-whenNarrow Overlay-backdrop--placement-bottom-whenNarrow",
|
|
56
|
+
"fullscreen": "Overlay-backdrop--full-whenNarrow",
|
|
57
|
+
"left": "Overlay-backdrop--side-whenNarrow Overlay-backdrop--placement-left-whenNarrow",
|
|
58
|
+
"right": "Overlay-backdrop--side-whenNarrow Overlay-backdrop--placement-right-whenNarrow"
|
|
59
|
+
},
|
|
60
|
+
"POSITION_NARROW_OPTIONS": [
|
|
61
|
+
"inherit",
|
|
62
|
+
"bottom",
|
|
63
|
+
"fullscreen",
|
|
64
|
+
"left",
|
|
65
|
+
"right"
|
|
66
|
+
],
|
|
67
|
+
"POSITION_OPTIONS": [
|
|
68
|
+
"center",
|
|
69
|
+
"left",
|
|
70
|
+
"right"
|
|
71
|
+
],
|
|
72
|
+
"SIZE_MAPPINGS": {
|
|
73
|
+
"small": "Overlay--size-small-portrait",
|
|
74
|
+
"medium_portrait": "Overlay--size-medium-portrait",
|
|
75
|
+
"medium": "Overlay--size-medium",
|
|
76
|
+
"large": "Overlay--size-large",
|
|
77
|
+
"xlarge": "Overlay--size-xlarge"
|
|
78
|
+
},
|
|
79
|
+
"SIZE_OPTIONS": [
|
|
80
|
+
"small",
|
|
81
|
+
"medium_portrait",
|
|
82
|
+
"medium",
|
|
83
|
+
"large",
|
|
84
|
+
"xlarge"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"Primer::Alpha::Dialog::Body": {
|
|
88
|
+
},
|
|
89
|
+
"Primer::Alpha::Dialog::Footer": {
|
|
90
|
+
},
|
|
91
|
+
"Primer::Alpha::Dialog::Header": {
|
|
92
|
+
},
|
|
93
|
+
"Primer::Alpha::HiddenTextExpander": {
|
|
94
|
+
},
|
|
95
|
+
"Primer::Alpha::Layout": {
|
|
96
|
+
"FIRST_IN_SOURCE_DEFAULT": "sidebar",
|
|
97
|
+
"FIRST_IN_SOURCE_OPTIONS": [
|
|
98
|
+
"sidebar",
|
|
99
|
+
"main"
|
|
100
|
+
],
|
|
101
|
+
"GUTTER_DEFAULT": "default",
|
|
102
|
+
"GUTTER_MAPPINGS": {
|
|
103
|
+
"none": "Layout--gutter-none",
|
|
104
|
+
"condensed": "Layout--gutter-condensed",
|
|
105
|
+
"spacious": "Layout--gutter-spacious",
|
|
106
|
+
"default": ""
|
|
107
|
+
},
|
|
108
|
+
"GUTTER_OPTIONS": [
|
|
109
|
+
"none",
|
|
110
|
+
"condensed",
|
|
111
|
+
"spacious",
|
|
112
|
+
"default"
|
|
113
|
+
],
|
|
114
|
+
"Main": "Primer::Alpha::Layout::Main",
|
|
115
|
+
"SIDEBAR_COL_PLACEMENT_DEFAULT": "start",
|
|
116
|
+
"SIDEBAR_COL_PLACEMENT_OPTIONS": [
|
|
117
|
+
"start",
|
|
118
|
+
"end"
|
|
119
|
+
],
|
|
120
|
+
"SIDEBAR_ROW_PLACEMENT_DEFAULT": "start",
|
|
121
|
+
"SIDEBAR_ROW_PLACEMENT_OPTIONS": [
|
|
122
|
+
"start",
|
|
123
|
+
"end",
|
|
124
|
+
"none"
|
|
125
|
+
],
|
|
126
|
+
"SIDEBAR_WIDTH_DEFAULT": "default",
|
|
127
|
+
"SIDEBAR_WIDTH_MAPPINGS": {
|
|
128
|
+
"default": "",
|
|
129
|
+
"narrow": "Layout--sidebar-narrow",
|
|
130
|
+
"wide": "Layout--sidebar-wide"
|
|
131
|
+
},
|
|
132
|
+
"SIDEBAR_WIDTH_OPTIONS": [
|
|
133
|
+
"default",
|
|
134
|
+
"narrow",
|
|
135
|
+
"wide"
|
|
136
|
+
],
|
|
137
|
+
"STACKING_BREAKPOINT_DEFAULT": "md",
|
|
138
|
+
"STACKING_BREAKPOINT_MAPPINGS": {
|
|
139
|
+
"sm": "",
|
|
140
|
+
"md": "Layout--flowRow-until-md",
|
|
141
|
+
"lg": "Layout--flowRow-until-lg"
|
|
142
|
+
},
|
|
143
|
+
"STACKING_BREAKPOINT_OPTIONS": [
|
|
144
|
+
"sm",
|
|
145
|
+
"md",
|
|
146
|
+
"lg"
|
|
147
|
+
],
|
|
148
|
+
"Sidebar": "Primer::Alpha::Layout::Sidebar"
|
|
149
|
+
},
|
|
150
|
+
"Primer::Alpha::Layout::Main": {
|
|
151
|
+
"TAG_DEFAULT": "div",
|
|
152
|
+
"TAG_OPTIONS": [
|
|
153
|
+
"div",
|
|
154
|
+
"main"
|
|
155
|
+
],
|
|
156
|
+
"WIDTH_DEFAULT": "full",
|
|
157
|
+
"WIDTH_OPTIONS": [
|
|
158
|
+
"full",
|
|
159
|
+
"md",
|
|
160
|
+
"lg",
|
|
161
|
+
"xl"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"Primer::Alpha::Layout::Sidebar": {
|
|
165
|
+
"TAG_DEFAULT": "div",
|
|
166
|
+
"TAG_OPTIONS": [
|
|
167
|
+
"div",
|
|
168
|
+
"aside",
|
|
169
|
+
"nav",
|
|
170
|
+
"section"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"Primer::Alpha::TabNav": {
|
|
174
|
+
"BODY_TAG_DEFAULT": "ul",
|
|
175
|
+
"TAG_DEFAULT": "nav",
|
|
176
|
+
"TAG_OPTIONS": [
|
|
177
|
+
"nav",
|
|
178
|
+
"div"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
"Primer::Alpha::TabPanels": {
|
|
182
|
+
"BODY_TAG_DEFAULT": "ul",
|
|
183
|
+
"TAG_DEFAULT": "nav",
|
|
184
|
+
"TAG_OPTIONS": [
|
|
185
|
+
"nav",
|
|
186
|
+
"div"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"Primer::Alpha::TextField": {
|
|
190
|
+
},
|
|
191
|
+
"Primer::Alpha::ToggleSwitch": {
|
|
192
|
+
"SIZE_DEFAULT": "medium",
|
|
193
|
+
"SIZE_MAPPINGS": {
|
|
194
|
+
"medium": null,
|
|
195
|
+
"small": "ToggleSwitch--small"
|
|
196
|
+
},
|
|
197
|
+
"SIZE_OPTIONS": [
|
|
198
|
+
"medium",
|
|
199
|
+
"small"
|
|
200
|
+
],
|
|
201
|
+
"STATUS_LABEL_POSITION_DEFAULT": "start",
|
|
202
|
+
"STATUS_LABEL_POSITION_MAPPINGS": {
|
|
203
|
+
"start": null,
|
|
204
|
+
"end": "ToggleSwitch--statusAtEnd"
|
|
205
|
+
},
|
|
206
|
+
"STATUS_LABEL_POSITION_OPTIONS": [
|
|
207
|
+
"start",
|
|
208
|
+
"end"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"Primer::Alpha::Tooltip": {
|
|
212
|
+
"DIRECTION_DEFAULT": "s",
|
|
213
|
+
"DIRECTION_OPTIONS": [
|
|
214
|
+
"s",
|
|
215
|
+
"n",
|
|
216
|
+
"e",
|
|
217
|
+
"w",
|
|
218
|
+
"ne",
|
|
219
|
+
"nw",
|
|
220
|
+
"se",
|
|
221
|
+
"sw"
|
|
222
|
+
],
|
|
223
|
+
"TYPE_FALLBACK": "description",
|
|
224
|
+
"TYPE_OPTIONS": [
|
|
225
|
+
"label",
|
|
226
|
+
"description"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
"Primer::Alpha::UnderlineNav": {
|
|
230
|
+
"BODY_TAG_DEFAULT": "ul",
|
|
231
|
+
"TAG_DEFAULT": "nav",
|
|
232
|
+
"TAG_OPTIONS": [
|
|
233
|
+
"nav",
|
|
234
|
+
"div"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"Primer::Alpha::UnderlinePanels": {
|
|
238
|
+
},
|
|
239
|
+
"Primer::BaseComponent": {
|
|
240
|
+
"SELF_CLOSING_TAGS": [
|
|
241
|
+
"area",
|
|
242
|
+
"base",
|
|
243
|
+
"br",
|
|
244
|
+
"col",
|
|
245
|
+
"embed",
|
|
246
|
+
"hr",
|
|
247
|
+
"img",
|
|
248
|
+
"input",
|
|
249
|
+
"link",
|
|
250
|
+
"meta",
|
|
251
|
+
"param",
|
|
252
|
+
"source",
|
|
253
|
+
"track",
|
|
254
|
+
"wbr"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"Primer::Beta::AutoComplete": {
|
|
258
|
+
"DEFAULT_SIZE": "medium",
|
|
259
|
+
"Item": "Primer::Beta::AutoComplete::Item",
|
|
260
|
+
"SIZE_MAPPINGS": {
|
|
261
|
+
"small": "FormControl-small",
|
|
262
|
+
"medium": "FormControl-medium",
|
|
263
|
+
"large": "FormControl-large"
|
|
264
|
+
},
|
|
265
|
+
"SIZE_OPTIONS": [
|
|
266
|
+
"small",
|
|
267
|
+
"medium",
|
|
268
|
+
"large"
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"Primer::Beta::AutoComplete::Item": {
|
|
272
|
+
"ALLOWED_DESCRIPTION_VARIANTS": [
|
|
273
|
+
"inline",
|
|
274
|
+
"block"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"Primer::Beta::Avatar": {
|
|
278
|
+
"DEFAULT_SHAPE": "circle",
|
|
279
|
+
"DEFAULT_SIZE": 20,
|
|
280
|
+
"SHAPE_OPTIONS": [
|
|
281
|
+
"circle",
|
|
282
|
+
"square"
|
|
283
|
+
],
|
|
284
|
+
"SIZE_OPTIONS": [
|
|
285
|
+
16,
|
|
286
|
+
20,
|
|
287
|
+
24,
|
|
288
|
+
32,
|
|
289
|
+
40,
|
|
290
|
+
48,
|
|
291
|
+
80
|
|
292
|
+
],
|
|
293
|
+
"SMALL_THRESHOLD": 24
|
|
294
|
+
},
|
|
295
|
+
"Primer::Beta::AvatarStack": {
|
|
296
|
+
"ALIGN_DEFAULT": "left",
|
|
297
|
+
"ALIGN_OPTIONS": [
|
|
298
|
+
"left",
|
|
299
|
+
"right"
|
|
300
|
+
],
|
|
301
|
+
"BODY_TAG_OPTIONS": [
|
|
302
|
+
"div",
|
|
303
|
+
"span"
|
|
304
|
+
],
|
|
305
|
+
"DEFAULT_BODY_TAG": "div",
|
|
306
|
+
"DEFAULT_TAG": "div",
|
|
307
|
+
"TAG_OPTIONS": [
|
|
308
|
+
"div",
|
|
309
|
+
"span"
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
"Primer::Beta::BaseButton": {
|
|
313
|
+
"DEFAULT_TAG": "button",
|
|
314
|
+
"DEFAULT_TYPE": "button",
|
|
315
|
+
"TAG_OPTIONS": [
|
|
316
|
+
"button",
|
|
317
|
+
"a",
|
|
318
|
+
"summary"
|
|
319
|
+
],
|
|
320
|
+
"TYPE_OPTIONS": [
|
|
321
|
+
"button",
|
|
322
|
+
"reset",
|
|
323
|
+
"submit"
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
"Primer::Beta::Blankslate": {
|
|
327
|
+
"VISUAL_OPTIONS": [
|
|
328
|
+
"icon",
|
|
329
|
+
"spinner",
|
|
330
|
+
"image"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"Primer::Beta::BorderBox": {
|
|
334
|
+
"DEFAULT_PADDING": "default",
|
|
335
|
+
"DEFAULT_ROW_SCHEME": "default",
|
|
336
|
+
"Header": "Primer::Beta::BorderBox::Header",
|
|
337
|
+
"PADDING_MAPPINGS": {
|
|
338
|
+
"default": "",
|
|
339
|
+
"condensed": "Box--condensed",
|
|
340
|
+
"spacious": "Box--spacious"
|
|
341
|
+
},
|
|
342
|
+
"PADDING_SUGGESTION": "Perhaps you could consider using :padding options of default, condensed, and spacious?",
|
|
343
|
+
"ROW_SCHEME_MAPPINGS": {
|
|
344
|
+
"default": "",
|
|
345
|
+
"neutral": "Box-row--gray",
|
|
346
|
+
"info": "Box-row--blue",
|
|
347
|
+
"warning": "Box-row--yellow"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"Primer::Beta::BorderBox::Header": {
|
|
351
|
+
"TITLE_TAG_FALLBACK": "h2",
|
|
352
|
+
"TITLE_TAG_OPTIONS": [
|
|
353
|
+
"h1",
|
|
354
|
+
"h2",
|
|
355
|
+
"h3",
|
|
356
|
+
"h4",
|
|
357
|
+
"h5",
|
|
358
|
+
"h6"
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"Primer::Beta::Breadcrumbs": {
|
|
362
|
+
"ARGS_DENYLIST": {
|
|
363
|
+
"[:p, :pt, :pb, :pr, :pl, :px, :py]": "Padding system arguments are not allowed on Breadcrumbs. Consider using margins instead.",
|
|
364
|
+
"[:font_size]": "Breadcrumbs do not support the font_size system argument."
|
|
365
|
+
},
|
|
366
|
+
"ARIA_LABEL": {
|
|
367
|
+
"label": "Breadcrumb"
|
|
368
|
+
},
|
|
369
|
+
"FONT_SIZE_MESSAGE": "Breadcrumbs do not support the font_size system argument.",
|
|
370
|
+
"Item": "Primer::Beta::Breadcrumbs::Item",
|
|
371
|
+
"PADDING_MESSAGE": "Padding system arguments are not allowed on Breadcrumbs. Consider using margins instead."
|
|
372
|
+
},
|
|
373
|
+
"Primer::Beta::Breadcrumbs::Item": {
|
|
374
|
+
},
|
|
375
|
+
"Primer::Beta::Button": {
|
|
376
|
+
"ALIGN_CONTENT_MAPPINGS": {
|
|
377
|
+
"start": "Button-content--alignStart",
|
|
378
|
+
"center": ""
|
|
379
|
+
},
|
|
380
|
+
"ALIGN_CONTENT_OPTIONS": [
|
|
381
|
+
"start",
|
|
382
|
+
"center"
|
|
383
|
+
],
|
|
384
|
+
"DEFAULT_ALIGN_CONTENT": "center",
|
|
385
|
+
"DEFAULT_SCHEME": "default",
|
|
386
|
+
"DEFAULT_SIZE": "medium",
|
|
387
|
+
"LINK_SCHEME": "link",
|
|
388
|
+
"SCHEME_MAPPINGS": {
|
|
389
|
+
"default": "Button--secondary",
|
|
390
|
+
"primary": "Button--primary",
|
|
391
|
+
"secondary": "Button--secondary",
|
|
392
|
+
"danger": "Button--danger",
|
|
393
|
+
"outline": "btn-outline",
|
|
394
|
+
"invisible": "Button--invisible",
|
|
395
|
+
"link": "btn-link"
|
|
396
|
+
},
|
|
397
|
+
"SCHEME_OPTIONS": [
|
|
398
|
+
"default",
|
|
399
|
+
"primary",
|
|
400
|
+
"secondary",
|
|
401
|
+
"danger",
|
|
402
|
+
"outline",
|
|
403
|
+
"invisible",
|
|
404
|
+
"link"
|
|
405
|
+
],
|
|
406
|
+
"SIZE_MAPPINGS": {
|
|
407
|
+
"small": "Button--small",
|
|
408
|
+
"medium": "Button--medium",
|
|
409
|
+
"large": "Button--large"
|
|
410
|
+
},
|
|
411
|
+
"SIZE_OPTIONS": [
|
|
412
|
+
"small",
|
|
413
|
+
"medium",
|
|
414
|
+
"large"
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
"Primer::Beta::ButtonGroup": {
|
|
418
|
+
},
|
|
419
|
+
"Primer::Beta::CloseButton": {
|
|
420
|
+
"DEFAULT_TYPE": "button",
|
|
421
|
+
"TYPE_OPTIONS": [
|
|
422
|
+
"button",
|
|
423
|
+
"submit"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"Primer::Beta::Counter": {
|
|
427
|
+
"DEFAULT_SCHEME": "default",
|
|
428
|
+
"DEPRECATED_SCHEME_OPTIONS": [
|
|
429
|
+
"gray",
|
|
430
|
+
"light_gray"
|
|
431
|
+
],
|
|
432
|
+
"SCHEME_MAPPINGS": {
|
|
433
|
+
"default": "",
|
|
434
|
+
"primary": "Counter--primary",
|
|
435
|
+
"secondary": "Counter--secondary",
|
|
436
|
+
"gray": "Counter--primary",
|
|
437
|
+
"light_gray": "Counter--secondary"
|
|
438
|
+
},
|
|
439
|
+
"SCHEME_OPTIONS": [
|
|
440
|
+
"default",
|
|
441
|
+
"primary",
|
|
442
|
+
"secondary"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"Primer::Beta::Details": {
|
|
446
|
+
"BODY_TAG_DEFAULT": "div",
|
|
447
|
+
"BODY_TAG_OPTIONS": [
|
|
448
|
+
"ul",
|
|
449
|
+
"details-menu",
|
|
450
|
+
"details-dialog",
|
|
451
|
+
"div"
|
|
452
|
+
],
|
|
453
|
+
"NO_OVERLAY": "none",
|
|
454
|
+
"OVERLAY_MAPPINGS": {
|
|
455
|
+
"none": "",
|
|
456
|
+
"default": "details-overlay",
|
|
457
|
+
"dark": "details-overlay details-overlay-dark"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"Primer::Beta::Flash": {
|
|
461
|
+
"DEFAULT_SCHEME": "default",
|
|
462
|
+
"SCHEME_MAPPINGS": {
|
|
463
|
+
"default": "",
|
|
464
|
+
"warning": "flash-warn",
|
|
465
|
+
"danger": "flash-error",
|
|
466
|
+
"success": "flash-success"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"Primer::Beta::Heading": {
|
|
470
|
+
"TAG_FALLBACK": "h2",
|
|
471
|
+
"TAG_OPTIONS": [
|
|
472
|
+
"h1",
|
|
473
|
+
"h2",
|
|
474
|
+
"h3",
|
|
475
|
+
"h4",
|
|
476
|
+
"h5",
|
|
477
|
+
"h6"
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
"Primer::Beta::IconButton": {
|
|
481
|
+
"DEFAULT_SCHEME": "default",
|
|
482
|
+
"SCHEME_MAPPINGS": {
|
|
483
|
+
"default": "Button--secondary",
|
|
484
|
+
"danger": "Button--danger",
|
|
485
|
+
"invisible": "Button--invisible"
|
|
486
|
+
},
|
|
487
|
+
"SCHEME_OPTIONS": [
|
|
488
|
+
"default",
|
|
489
|
+
"danger",
|
|
490
|
+
"invisible"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"Primer::Beta::Text": {
|
|
494
|
+
"DEFAULT_TAG": "span"
|
|
495
|
+
},
|
|
496
|
+
"Primer::Beta::Truncate": {
|
|
497
|
+
"TruncateText": "Primer::Beta::Truncate::TruncateText"
|
|
498
|
+
},
|
|
499
|
+
"Primer::Beta::Truncate::TruncateText": {
|
|
500
|
+
},
|
|
501
|
+
"Primer::BlankslateComponent": {
|
|
502
|
+
},
|
|
503
|
+
"Primer::Box": {
|
|
504
|
+
},
|
|
505
|
+
"Primer::BoxComponent": {
|
|
506
|
+
},
|
|
507
|
+
"Primer::ButtonComponent": {
|
|
508
|
+
"DEFAULT_SCHEME": "default",
|
|
509
|
+
"DEFAULT_SIZE": "medium",
|
|
510
|
+
"LINK_SCHEME": "link",
|
|
511
|
+
"SCHEME_MAPPINGS": {
|
|
512
|
+
"default": "",
|
|
513
|
+
"primary": "btn-primary",
|
|
514
|
+
"danger": "btn-danger",
|
|
515
|
+
"outline": "btn-outline",
|
|
516
|
+
"invisible": "btn-invisible",
|
|
517
|
+
"link": "btn-link"
|
|
518
|
+
},
|
|
519
|
+
"SCHEME_OPTIONS": [
|
|
520
|
+
"default",
|
|
521
|
+
"primary",
|
|
522
|
+
"danger",
|
|
523
|
+
"outline",
|
|
524
|
+
"invisible",
|
|
525
|
+
"link"
|
|
526
|
+
],
|
|
527
|
+
"SIZE_MAPPINGS": {
|
|
528
|
+
"small": "btn-sm",
|
|
529
|
+
"medium": ""
|
|
530
|
+
},
|
|
531
|
+
"SIZE_OPTIONS": [
|
|
532
|
+
"small",
|
|
533
|
+
"medium"
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
"Primer::ClipboardCopy": {
|
|
537
|
+
},
|
|
538
|
+
"Primer::CloseButton": {
|
|
539
|
+
},
|
|
540
|
+
"Primer::ConditionalWrapper": {
|
|
541
|
+
},
|
|
542
|
+
"Primer::Content": {
|
|
543
|
+
},
|
|
544
|
+
"Primer::CounterComponent": {
|
|
545
|
+
},
|
|
546
|
+
"Primer::DetailsComponent": {
|
|
547
|
+
},
|
|
548
|
+
"Primer::Dropdown": {
|
|
549
|
+
"Menu": "Primer::Dropdown::Menu"
|
|
550
|
+
},
|
|
551
|
+
"Primer::Dropdown::Menu": {
|
|
552
|
+
"AS_DEFAULT": "default",
|
|
553
|
+
"AS_OPTIONS": [
|
|
554
|
+
"default",
|
|
555
|
+
"list"
|
|
556
|
+
],
|
|
557
|
+
"DIRECTION_DEFAULT": "se",
|
|
558
|
+
"DIRECTION_OPTIONS": [
|
|
559
|
+
"se",
|
|
560
|
+
"sw",
|
|
561
|
+
"w",
|
|
562
|
+
"e",
|
|
563
|
+
"ne",
|
|
564
|
+
"s"
|
|
565
|
+
],
|
|
566
|
+
"Item": "Primer::Dropdown::Menu::Item",
|
|
567
|
+
"SCHEME_DEFAULT": "default",
|
|
568
|
+
"SCHEME_MAPPINGS": {
|
|
569
|
+
"default": "",
|
|
570
|
+
"dark": "dropdown-menu-dark"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"Primer::Dropdown::Menu::Item": {
|
|
574
|
+
"BUTTON_TAGS": [
|
|
575
|
+
"button",
|
|
576
|
+
"summary"
|
|
577
|
+
],
|
|
578
|
+
"TAG_DEFAULT": "a",
|
|
579
|
+
"TAG_OPTIONS": [
|
|
580
|
+
"a",
|
|
581
|
+
"button",
|
|
582
|
+
"summary"
|
|
583
|
+
]
|
|
584
|
+
},
|
|
585
|
+
"Primer::DropdownMenuComponent": {
|
|
586
|
+
"DIRECTION_DEFAULT": "se",
|
|
587
|
+
"DIRECTION_OPTIONS": [
|
|
588
|
+
"se",
|
|
589
|
+
"sw",
|
|
590
|
+
"w",
|
|
591
|
+
"e",
|
|
592
|
+
"ne",
|
|
593
|
+
"s"
|
|
594
|
+
],
|
|
595
|
+
"SCHEME_DEFAULT": "default",
|
|
596
|
+
"SCHEME_MAPPINGS": {
|
|
597
|
+
"default": "",
|
|
598
|
+
"dark": "dropdown-menu-dark"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"Primer::FlexComponent": {
|
|
602
|
+
"ALIGN_ITEMS_DEFAULT": null,
|
|
603
|
+
"ALIGN_ITEMS_MAPPINGS": {
|
|
604
|
+
"start": "flex-items-start",
|
|
605
|
+
"end": "flex-items-end",
|
|
606
|
+
"center": "flex-items-center",
|
|
607
|
+
"baseline": "flex-items-baseline",
|
|
608
|
+
"stretch": "flex-items-stretch"
|
|
609
|
+
},
|
|
610
|
+
"ALIGN_ITEMS_OPTIONS": [
|
|
611
|
+
null,
|
|
612
|
+
"start",
|
|
613
|
+
"end",
|
|
614
|
+
"center",
|
|
615
|
+
"baseline",
|
|
616
|
+
"stretch"
|
|
617
|
+
],
|
|
618
|
+
"ALLOWED_DIRECTIONS": [
|
|
619
|
+
null,
|
|
620
|
+
"column",
|
|
621
|
+
"column_reverse",
|
|
622
|
+
"row",
|
|
623
|
+
"row_reverse"
|
|
624
|
+
],
|
|
625
|
+
"DEFAULT_DIRECTION": null,
|
|
626
|
+
"FLEX_WRAP_DEFAULT": null,
|
|
627
|
+
"FLEX_WRAP_OPTIONS": [
|
|
628
|
+
null,
|
|
629
|
+
true,
|
|
630
|
+
false
|
|
631
|
+
],
|
|
632
|
+
"INLINE_DEFAULT": false,
|
|
633
|
+
"INLINE_OPTIONS": [
|
|
634
|
+
false,
|
|
635
|
+
true
|
|
636
|
+
],
|
|
637
|
+
"JUSTIFY_CONTENT_DEFAULT": null,
|
|
638
|
+
"JUSTIFY_CONTENT_MAPPINGS": {
|
|
639
|
+
"flex_start": "flex-justify-start",
|
|
640
|
+
"flex_end": "flex-justify-end",
|
|
641
|
+
"center": "flex-justify-center",
|
|
642
|
+
"space_between": "flex-justify-between",
|
|
643
|
+
"space_around": "flex-justify-around"
|
|
644
|
+
},
|
|
645
|
+
"JUSTIFY_CONTENT_OPTIONS": [
|
|
646
|
+
null,
|
|
647
|
+
"flex_start",
|
|
648
|
+
"flex_end",
|
|
649
|
+
"center",
|
|
650
|
+
"space_between",
|
|
651
|
+
"space_around"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"Primer::FlexItemComponent": {
|
|
655
|
+
"FLEX_AUTO_ALLOWED_VALUES": [
|
|
656
|
+
false,
|
|
657
|
+
true
|
|
658
|
+
],
|
|
659
|
+
"FLEX_AUTO_DEFAULT": false
|
|
660
|
+
},
|
|
661
|
+
"Primer::HeadingComponent": {
|
|
662
|
+
},
|
|
663
|
+
"Primer::HellipButton": {
|
|
664
|
+
},
|
|
665
|
+
"Primer::HiddenTextExpander": {
|
|
666
|
+
},
|
|
667
|
+
"Primer::IconButton": {
|
|
668
|
+
"DEFAULT_SCHEME": "default",
|
|
669
|
+
"SCHEME_MAPPINGS": {
|
|
670
|
+
"default": "",
|
|
671
|
+
"danger": "btn-octicon-danger"
|
|
672
|
+
},
|
|
673
|
+
"SCHEME_OPTIONS": [
|
|
674
|
+
"default",
|
|
675
|
+
"danger"
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
"Primer::Image": {
|
|
679
|
+
},
|
|
680
|
+
"Primer::ImageCrop": {
|
|
681
|
+
},
|
|
682
|
+
"Primer::LabelComponent": {
|
|
683
|
+
"DEFAULT_SCHEME": "default",
|
|
684
|
+
"DEFAULT_SIZE": "medium",
|
|
685
|
+
"DEFAULT_TAG": "span",
|
|
686
|
+
"DEFAULT_VARIANT": "none",
|
|
687
|
+
"DEPRECATED_SCHEME_OPTIONS": [
|
|
688
|
+
"info",
|
|
689
|
+
"warning",
|
|
690
|
+
"orange",
|
|
691
|
+
"purple"
|
|
692
|
+
],
|
|
693
|
+
"DEPRECATED_VARIANT_OPTIONS": [
|
|
694
|
+
"large",
|
|
695
|
+
"inline"
|
|
696
|
+
],
|
|
697
|
+
"INLINE_CLASS": "Label--inline",
|
|
698
|
+
"SCHEME_MAPPINGS": {
|
|
699
|
+
"default": "",
|
|
700
|
+
"primary": "Label--primary",
|
|
701
|
+
"secondary": "Label--secondary",
|
|
702
|
+
"accent": "Label--accent",
|
|
703
|
+
"success": "Label--success",
|
|
704
|
+
"attention": "Label--attention",
|
|
705
|
+
"danger": "Label--danger",
|
|
706
|
+
"severe": "Label--severe",
|
|
707
|
+
"done": "Label--done",
|
|
708
|
+
"sponsors": "Label--sponsors",
|
|
709
|
+
"info": "Label--info",
|
|
710
|
+
"warning": "Label--warning",
|
|
711
|
+
"orange": "Label--orange",
|
|
712
|
+
"purple": "Label--purple"
|
|
713
|
+
},
|
|
714
|
+
"SCHEME_OPTIONS": [
|
|
715
|
+
"default",
|
|
716
|
+
"primary",
|
|
717
|
+
"secondary",
|
|
718
|
+
"accent",
|
|
719
|
+
"success",
|
|
720
|
+
"attention",
|
|
721
|
+
"danger",
|
|
722
|
+
"severe",
|
|
723
|
+
"done",
|
|
724
|
+
"sponsors"
|
|
725
|
+
],
|
|
726
|
+
"SIZE_MAPPINGS": {
|
|
727
|
+
"medium": null,
|
|
728
|
+
"large": "Label--large"
|
|
729
|
+
},
|
|
730
|
+
"SIZE_OPTIONS": [
|
|
731
|
+
"medium",
|
|
732
|
+
"large"
|
|
733
|
+
],
|
|
734
|
+
"TAG_OPTIONS": [
|
|
735
|
+
"span",
|
|
736
|
+
"summary",
|
|
737
|
+
"a",
|
|
738
|
+
"div"
|
|
739
|
+
],
|
|
740
|
+
"VARIANT_OPTIONS": [
|
|
741
|
+
"none"
|
|
742
|
+
]
|
|
743
|
+
},
|
|
744
|
+
"Primer::LayoutComponent": {
|
|
745
|
+
"ALLOWED_SIDEBAR_COLS": [
|
|
746
|
+
1,
|
|
747
|
+
2,
|
|
748
|
+
3,
|
|
749
|
+
4,
|
|
750
|
+
5,
|
|
751
|
+
6,
|
|
752
|
+
7,
|
|
753
|
+
8,
|
|
754
|
+
9,
|
|
755
|
+
10,
|
|
756
|
+
11
|
|
757
|
+
],
|
|
758
|
+
"ALLOWED_SIDES": [
|
|
759
|
+
"right",
|
|
760
|
+
"left"
|
|
761
|
+
],
|
|
762
|
+
"DEFAULT_SIDE": "right",
|
|
763
|
+
"DEFAULT_SIDEBAR_COL": 3,
|
|
764
|
+
"MAX_COL": 12
|
|
765
|
+
},
|
|
766
|
+
"Primer::LinkComponent": {
|
|
767
|
+
"DEFAULT_SCHEME": "default",
|
|
768
|
+
"DEFAULT_TAG": "a",
|
|
769
|
+
"SCHEME_MAPPINGS": {
|
|
770
|
+
"default": "",
|
|
771
|
+
"primary": "Link--primary",
|
|
772
|
+
"secondary": "Link--secondary"
|
|
773
|
+
},
|
|
774
|
+
"TAG_OPTIONS": [
|
|
775
|
+
"a",
|
|
776
|
+
"span"
|
|
777
|
+
]
|
|
778
|
+
},
|
|
779
|
+
"Primer::LocalTime": {
|
|
780
|
+
"DEFAULT_DIGIT_TYPE": "numeric",
|
|
781
|
+
"DEFAULT_TEXT_TYPE": "short",
|
|
782
|
+
"DIGIT_TYPE_OPTIONS": [
|
|
783
|
+
"numeric",
|
|
784
|
+
"2-digit"
|
|
785
|
+
],
|
|
786
|
+
"TEXT_TYPE_OPTIONS": [
|
|
787
|
+
"short",
|
|
788
|
+
"long"
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
"Primer::Markdown": {
|
|
792
|
+
"DEFAULT_TAG": "div",
|
|
793
|
+
"TAG_OPTIONS": [
|
|
794
|
+
"div",
|
|
795
|
+
"article",
|
|
796
|
+
"td"
|
|
797
|
+
]
|
|
798
|
+
},
|
|
799
|
+
"Primer::MenuComponent": {
|
|
800
|
+
"HEADING_TAG_FALLBACK": "h2",
|
|
801
|
+
"HEADING_TAG_OPTIONS": [
|
|
802
|
+
"h1",
|
|
803
|
+
"h2",
|
|
804
|
+
"h3",
|
|
805
|
+
"h4",
|
|
806
|
+
"h5",
|
|
807
|
+
"h6"
|
|
808
|
+
]
|
|
809
|
+
},
|
|
810
|
+
"Primer::Navigation::TabComponent": {
|
|
811
|
+
"ARIA_CURRENT_OPTIONS_FOR_ANCHOR": [
|
|
812
|
+
true,
|
|
813
|
+
"page"
|
|
814
|
+
],
|
|
815
|
+
"DEFAULT_ARIA_CURRENT_FOR_ANCHOR": "page"
|
|
816
|
+
},
|
|
817
|
+
"Primer::OcticonComponent": {
|
|
818
|
+
"SIZE_DEFAULT": "small",
|
|
819
|
+
"SIZE_MAPPINGS": {
|
|
820
|
+
"xsmall": 12,
|
|
821
|
+
"small": 16,
|
|
822
|
+
"medium": 24
|
|
823
|
+
},
|
|
824
|
+
"SIZE_MEDIUM": "medium",
|
|
825
|
+
"SIZE_OPTIONS": [
|
|
826
|
+
"xsmall",
|
|
827
|
+
"small",
|
|
828
|
+
"medium"
|
|
829
|
+
],
|
|
830
|
+
"SIZE_XSMALL": "xsmall"
|
|
831
|
+
},
|
|
832
|
+
"Primer::OcticonSymbolsComponent": {
|
|
833
|
+
},
|
|
834
|
+
"Primer::PopoverComponent": {
|
|
835
|
+
"CARET_DEFAULT": "top",
|
|
836
|
+
"CARET_MAPPINGS": {
|
|
837
|
+
"top": "",
|
|
838
|
+
"bottom": "Popover-message--bottom",
|
|
839
|
+
"bottom_right": "Popover-message--bottom-right",
|
|
840
|
+
"bottom_left": "Popover-message--bottom-left",
|
|
841
|
+
"left": "Popover-message--left",
|
|
842
|
+
"left_bottom": "Popover-message--left-bottom",
|
|
843
|
+
"left_top": "Popover-message--left-top",
|
|
844
|
+
"right": "Popover-message--right",
|
|
845
|
+
"right_bottom": "Popover-message--right-bottom",
|
|
846
|
+
"right_top": "Popover-message--right-top",
|
|
847
|
+
"top_left": "Popover-message--top-left",
|
|
848
|
+
"top_right": "Popover-message--top-right"
|
|
849
|
+
},
|
|
850
|
+
"DEFAULT_HEADING_TAG": "h4"
|
|
851
|
+
},
|
|
852
|
+
"Primer::ProgressBarComponent": {
|
|
853
|
+
"SIZE_DEFAULT": "default",
|
|
854
|
+
"SIZE_MAPPINGS": {
|
|
855
|
+
"default": "",
|
|
856
|
+
"small": "Progress--small",
|
|
857
|
+
"large": "Progress--large"
|
|
858
|
+
},
|
|
859
|
+
"SIZE_OPTIONS": [
|
|
860
|
+
"default",
|
|
861
|
+
"small",
|
|
862
|
+
"large"
|
|
863
|
+
]
|
|
864
|
+
},
|
|
865
|
+
"Primer::SpinnerComponent": {
|
|
866
|
+
"DEFAULT_SIZE": "medium",
|
|
867
|
+
"DEFAULT_STYLE": "box-sizing: content-box; color: var(--color-icon-primary);",
|
|
868
|
+
"SIZE_MAPPINGS": {
|
|
869
|
+
"small": 16,
|
|
870
|
+
"medium": 32,
|
|
871
|
+
"large": 64
|
|
872
|
+
},
|
|
873
|
+
"SIZE_OPTIONS": [
|
|
874
|
+
"small",
|
|
875
|
+
"medium",
|
|
876
|
+
"large"
|
|
877
|
+
]
|
|
878
|
+
},
|
|
879
|
+
"Primer::StateComponent": {
|
|
880
|
+
"DEPRECATED_SCHEME_MAPPINGS": {
|
|
881
|
+
"default": "",
|
|
882
|
+
"green": "State--open",
|
|
883
|
+
"red": "State--closed",
|
|
884
|
+
"purple": "State--merged"
|
|
885
|
+
},
|
|
886
|
+
"NEW_SCHEME_MAPPINGS": {
|
|
887
|
+
"open": "State--open",
|
|
888
|
+
"closed": "State--closed",
|
|
889
|
+
"merged": "State--merged"
|
|
890
|
+
},
|
|
891
|
+
"SCHEME_DEFAULT": "default",
|
|
892
|
+
"SCHEME_MAPPINGS": {
|
|
893
|
+
"open": "State--open",
|
|
894
|
+
"closed": "State--closed",
|
|
895
|
+
"merged": "State--merged",
|
|
896
|
+
"default": "",
|
|
897
|
+
"green": "State--open",
|
|
898
|
+
"red": "State--closed",
|
|
899
|
+
"purple": "State--merged"
|
|
900
|
+
},
|
|
901
|
+
"SCHEME_OPTIONS": [
|
|
902
|
+
"open",
|
|
903
|
+
"closed",
|
|
904
|
+
"merged",
|
|
905
|
+
"default",
|
|
906
|
+
"green",
|
|
907
|
+
"red",
|
|
908
|
+
"purple"
|
|
909
|
+
],
|
|
910
|
+
"SIZE_DEFAULT": "default",
|
|
911
|
+
"SIZE_MAPPINGS": {
|
|
912
|
+
"default": "",
|
|
913
|
+
"small": "State--small"
|
|
914
|
+
},
|
|
915
|
+
"SIZE_OPTIONS": [
|
|
916
|
+
"default",
|
|
917
|
+
"small"
|
|
918
|
+
],
|
|
919
|
+
"TAG_DEFAULT": "span",
|
|
920
|
+
"TAG_OPTIONS": [
|
|
921
|
+
"span",
|
|
922
|
+
"div"
|
|
923
|
+
]
|
|
924
|
+
},
|
|
925
|
+
"Primer::SubheadComponent": {
|
|
926
|
+
"DEFAULT_HEADING_TAG": "div",
|
|
927
|
+
"HEADING_TAG_OPTIONS": [
|
|
928
|
+
"div",
|
|
929
|
+
"h1",
|
|
930
|
+
"h2",
|
|
931
|
+
"h3",
|
|
932
|
+
"h4",
|
|
933
|
+
"h5",
|
|
934
|
+
"h6"
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"Primer::TabContainerComponent": {
|
|
938
|
+
},
|
|
939
|
+
"Primer::TimeAgoComponent": {
|
|
940
|
+
},
|
|
941
|
+
"Primer::TimelineItemComponent": {
|
|
942
|
+
"BadgeComponent": "Primer::TimelineItemComponent::BadgeComponent"
|
|
943
|
+
},
|
|
944
|
+
"Primer::TimelineItemComponent::BadgeComponent": {
|
|
945
|
+
},
|
|
946
|
+
"Primer::Tooltip": {
|
|
947
|
+
"ALIGN_DEFAULT": "default",
|
|
948
|
+
"ALIGN_MAPPING": {
|
|
949
|
+
"default": "",
|
|
950
|
+
"left_1": "tooltipped-align-left-1",
|
|
951
|
+
"right_1": "tooltipped-align-right-1",
|
|
952
|
+
"left_2": "tooltipped-align-left-2",
|
|
953
|
+
"right_2": "tooltipped-align-right-2"
|
|
954
|
+
},
|
|
955
|
+
"DELAY_DEFAULT": false,
|
|
956
|
+
"DIRECTION_DEFAULT": "n",
|
|
957
|
+
"DIRECTION_OPTIONS": [
|
|
958
|
+
"n",
|
|
959
|
+
"nw",
|
|
960
|
+
"ne",
|
|
961
|
+
"w",
|
|
962
|
+
"e",
|
|
963
|
+
"sw",
|
|
964
|
+
"s",
|
|
965
|
+
"se"
|
|
966
|
+
],
|
|
967
|
+
"MULTILINE_DEFAULT": false
|
|
968
|
+
},
|
|
969
|
+
"Primer::Truncate": {
|
|
970
|
+
"DEFAULT_TAG": "div",
|
|
971
|
+
"TAG_OPTIONS": [
|
|
972
|
+
"div",
|
|
973
|
+
"span",
|
|
974
|
+
"p",
|
|
975
|
+
"strong"
|
|
976
|
+
]
|
|
977
|
+
}
|
|
978
|
+
}
|