@primer/view-components 0.1.0-rc.dfa70354 → 0.1.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/package.json +1 -1
- package/static/arguments.json +98 -0
- package/static/audited_at.json +4 -0
- package/static/constants.json +102 -0
- package/static/previews.json +21 -0
- package/static/statuses.json +4 -0
package/package.json
CHANGED
package/static/arguments.json
CHANGED
|
@@ -2039,6 +2039,104 @@
|
|
|
2039
2039
|
}
|
|
2040
2040
|
]
|
|
2041
2041
|
},
|
|
2042
|
+
{
|
|
2043
|
+
"component": "Overlay",
|
|
2044
|
+
"status": "alpha",
|
|
2045
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/overlay.rb",
|
|
2046
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/overlay/default/",
|
|
2047
|
+
"parameters": [
|
|
2048
|
+
{
|
|
2049
|
+
"name": "id",
|
|
2050
|
+
"type": "String",
|
|
2051
|
+
"default": "`self.class.generate_id`",
|
|
2052
|
+
"description": "The id of the Overlay."
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"name": "title",
|
|
2056
|
+
"type": "String",
|
|
2057
|
+
"default": "N/A",
|
|
2058
|
+
"description": "Describes the content of the Overlay."
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"name": "subtitle",
|
|
2062
|
+
"type": "String",
|
|
2063
|
+
"default": "`nil`",
|
|
2064
|
+
"description": "Provides dditional context for the Overlay, also setting the `aria-describedby` attribute."
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"name": "popover",
|
|
2068
|
+
"type": "Symbol",
|
|
2069
|
+
"default": "`:auto`",
|
|
2070
|
+
"description": "The popover behaviour. One of `:auto` or `:manual`."
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
"name": "popover",
|
|
2074
|
+
"type": "Symbol",
|
|
2075
|
+
"default": "`:auto`",
|
|
2076
|
+
"description": "The popover behaviour. One of `:auto` or `:manual`."
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"name": "size",
|
|
2080
|
+
"type": "Symbol",
|
|
2081
|
+
"default": "`:auto`",
|
|
2082
|
+
"description": "The size of the Overlay. One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"name": "padding",
|
|
2086
|
+
"type": "Symbol",
|
|
2087
|
+
"default": "`:normal`",
|
|
2088
|
+
"description": "The padding given to the Overlay body. One of `:condensed`, `:none`, or `:normal`."
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "anchor",
|
|
2092
|
+
"type": "String",
|
|
2093
|
+
"default": "`nil`",
|
|
2094
|
+
"description": "An ID of the element to anchor onto. Defaults to the `show_button`."
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"name": "anchor_align",
|
|
2098
|
+
"type": "Symbol",
|
|
2099
|
+
"default": "`:start`",
|
|
2100
|
+
"description": "The anchor alignment of the Overlay. One of `:center`, `:end`, or `:start`."
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "anchor_side",
|
|
2104
|
+
"type": "Symbol",
|
|
2105
|
+
"default": "`:outside_bottom`",
|
|
2106
|
+
"description": "The side to anchor the Overlay to. One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"name": "anchor_offset",
|
|
2110
|
+
"type": "Symbol",
|
|
2111
|
+
"default": "`:normal`",
|
|
2112
|
+
"description": "The anchor offset to give the Overlay. One of `:normal` or `:spacious`."
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "allow_out_of_bounds",
|
|
2116
|
+
"type": "Boolean",
|
|
2117
|
+
"default": "`false`",
|
|
2118
|
+
"description": "Allow the Overlay to overflow its container."
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"name": "visually_hide_title",
|
|
2122
|
+
"type": "Boolean",
|
|
2123
|
+
"default": "`false`",
|
|
2124
|
+
"description": "If true will hide the heading title, while still making it available to Screen Readers."
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"name": "role",
|
|
2128
|
+
"type": "String",
|
|
2129
|
+
"default": "N/A",
|
|
2130
|
+
"description": "The ARIA role. One of `:dialog` or `:menu`."
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"name": "system_arguments",
|
|
2134
|
+
"type": "Hash",
|
|
2135
|
+
"default": "N/A",
|
|
2136
|
+
"description": "[System arguments](/system-arguments)"
|
|
2137
|
+
}
|
|
2138
|
+
]
|
|
2139
|
+
},
|
|
2042
2140
|
{
|
|
2043
2141
|
"component": "NavList",
|
|
2044
2142
|
"status": "alpha",
|
package/static/audited_at.json
CHANGED
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
"Primer::Alpha::NavList::Item": "",
|
|
32
32
|
"Primer::Alpha::NavList::Section": "",
|
|
33
33
|
"Primer::Alpha::OcticonSymbols": "",
|
|
34
|
+
"Primer::Alpha::Overlay": "",
|
|
35
|
+
"Primer::Alpha::Overlay::Body": "",
|
|
36
|
+
"Primer::Alpha::Overlay::Footer": "",
|
|
37
|
+
"Primer::Alpha::Overlay::Header": "",
|
|
34
38
|
"Primer::Alpha::RadioButton": "",
|
|
35
39
|
"Primer::Alpha::RadioButtonGroup": "",
|
|
36
40
|
"Primer::Alpha::SegmentedControl": "2023-02-01",
|
package/static/constants.json
CHANGED
|
@@ -335,6 +335,108 @@
|
|
|
335
335
|
},
|
|
336
336
|
"Primer::Alpha::OcticonSymbols": {
|
|
337
337
|
},
|
|
338
|
+
"Primer::Alpha::Overlay": {
|
|
339
|
+
"ALIGN_CONTENT_MAPPINGS": {
|
|
340
|
+
"start": "Overlay-footer--alignStart",
|
|
341
|
+
"center": "Overlay-footer--alignCenter",
|
|
342
|
+
"end": "Overlay-footer--alignEnd"
|
|
343
|
+
},
|
|
344
|
+
"ALIGN_CONTENT_OPTIONS": [
|
|
345
|
+
"start",
|
|
346
|
+
"center",
|
|
347
|
+
"end"
|
|
348
|
+
],
|
|
349
|
+
"ANCHOR_ALIGN_OPTIONS": [
|
|
350
|
+
"start",
|
|
351
|
+
"center",
|
|
352
|
+
"end"
|
|
353
|
+
],
|
|
354
|
+
"ANCHOR_OFFSET_OPTIONS": [
|
|
355
|
+
"normal",
|
|
356
|
+
"spacious"
|
|
357
|
+
],
|
|
358
|
+
"ANCHOR_SIDE_MAPPINGS": {
|
|
359
|
+
"inside_top": "inside-top",
|
|
360
|
+
"inside_bottom": "inside-bottom",
|
|
361
|
+
"inside_left": "inside-left",
|
|
362
|
+
"inside_right": "inside-right",
|
|
363
|
+
"inside_center": "inside-center",
|
|
364
|
+
"outside_top": "outside-top",
|
|
365
|
+
"outside_bottom": "outside-bottom",
|
|
366
|
+
"outside_left": "outside-left",
|
|
367
|
+
"outside_right": "outside-right"
|
|
368
|
+
},
|
|
369
|
+
"ANCHOR_SIDE_OPTIONS": [
|
|
370
|
+
"inside_top",
|
|
371
|
+
"inside_bottom",
|
|
372
|
+
"inside_left",
|
|
373
|
+
"inside_right",
|
|
374
|
+
"inside_center",
|
|
375
|
+
"outside_top",
|
|
376
|
+
"outside_bottom",
|
|
377
|
+
"outside_left",
|
|
378
|
+
"outside_right"
|
|
379
|
+
],
|
|
380
|
+
"Body": "Primer::Alpha::Overlay::Body",
|
|
381
|
+
"DEFAULT_ALIGN_CONTENT": "end",
|
|
382
|
+
"DEFAULT_ANCHOR_ALIGN": "start",
|
|
383
|
+
"DEFAULT_ANCHOR_OFFSET": "normal",
|
|
384
|
+
"DEFAULT_ANCHOR_SIDE": "outside_bottom",
|
|
385
|
+
"DEFAULT_PADDING": "normal",
|
|
386
|
+
"DEFAULT_POPOVER": "auto",
|
|
387
|
+
"DEFAULT_SIZE": "auto",
|
|
388
|
+
"Footer": "Primer::Alpha::Overlay::Footer",
|
|
389
|
+
"Header": "Primer::Alpha::Overlay::Header",
|
|
390
|
+
"PADDING_MAPPINGS": {
|
|
391
|
+
"normal": null,
|
|
392
|
+
"condensed": "Overlay-body--paddingCondensed",
|
|
393
|
+
"none": "Overlay-body--paddingNone"
|
|
394
|
+
},
|
|
395
|
+
"PADDING_OPTIONS": [
|
|
396
|
+
"normal",
|
|
397
|
+
"condensed",
|
|
398
|
+
"none"
|
|
399
|
+
],
|
|
400
|
+
"POPOVER_OPTIONS": [
|
|
401
|
+
"auto",
|
|
402
|
+
"manual"
|
|
403
|
+
],
|
|
404
|
+
"ROLE_OPTIONS": [
|
|
405
|
+
"dialog",
|
|
406
|
+
"menu"
|
|
407
|
+
],
|
|
408
|
+
"SIZE_MAPPINGS": {
|
|
409
|
+
"auto": "Overlay--size-auto",
|
|
410
|
+
"small": "Overlay--size-small",
|
|
411
|
+
"medium": "Overlay--size-medium",
|
|
412
|
+
"medium_portrait": "Overlay--size-medium-portrait",
|
|
413
|
+
"large": "Overlay--size-large",
|
|
414
|
+
"xlarge": "Overlay--size-xlarge"
|
|
415
|
+
},
|
|
416
|
+
"SIZE_OPTIONS": [
|
|
417
|
+
"auto",
|
|
418
|
+
"small",
|
|
419
|
+
"medium",
|
|
420
|
+
"medium_portrait",
|
|
421
|
+
"large",
|
|
422
|
+
"xlarge"
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
"Primer::Alpha::Overlay::Body": {
|
|
426
|
+
},
|
|
427
|
+
"Primer::Alpha::Overlay::Footer": {
|
|
428
|
+
},
|
|
429
|
+
"Primer::Alpha::Overlay::Header": {
|
|
430
|
+
"DEFAULT_SIZE": "medium",
|
|
431
|
+
"SIZE_MAPPINGS": {
|
|
432
|
+
"medium": null,
|
|
433
|
+
"large": "Overlay-header--large"
|
|
434
|
+
},
|
|
435
|
+
"SIZE_OPTIONS": [
|
|
436
|
+
"medium",
|
|
437
|
+
"large"
|
|
438
|
+
]
|
|
439
|
+
},
|
|
338
440
|
"Primer::Alpha::RadioButton": {
|
|
339
441
|
},
|
|
340
442
|
"Primer::Alpha::RadioButtonGroup": {
|
package/static/previews.json
CHANGED
|
@@ -1263,6 +1263,27 @@
|
|
|
1263
1263
|
}
|
|
1264
1264
|
]
|
|
1265
1265
|
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "overlay",
|
|
1268
|
+
"lookup_path": "primer/alpha/overlay",
|
|
1269
|
+
"examples": [
|
|
1270
|
+
{
|
|
1271
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/overlay/playground",
|
|
1272
|
+
"preview_path": "/lookbook/preview/primer/alpha/overlay/playground",
|
|
1273
|
+
"name": "playground"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/overlay/default",
|
|
1277
|
+
"preview_path": "/lookbook/preview/primer/alpha/overlay/default",
|
|
1278
|
+
"name": "default"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/overlay/middle_of_page",
|
|
1282
|
+
"preview_path": "/lookbook/preview/primer/alpha/overlay/middle_of_page",
|
|
1283
|
+
"name": "middle_of_page"
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1286
|
+
},
|
|
1266
1287
|
{
|
|
1267
1288
|
"name": "popover",
|
|
1268
1289
|
"lookup_path": "primer/beta/popover",
|
package/static/statuses.json
CHANGED
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
"Primer::Alpha::NavList::Item": "alpha",
|
|
32
32
|
"Primer::Alpha::NavList::Section": "alpha",
|
|
33
33
|
"Primer::Alpha::OcticonSymbols": "alpha",
|
|
34
|
+
"Primer::Alpha::Overlay": "alpha",
|
|
35
|
+
"Primer::Alpha::Overlay::Body": "alpha",
|
|
36
|
+
"Primer::Alpha::Overlay::Footer": "alpha",
|
|
37
|
+
"Primer::Alpha::Overlay::Header": "alpha",
|
|
34
38
|
"Primer::Alpha::RadioButton": "alpha",
|
|
35
39
|
"Primer::Alpha::RadioButtonGroup": "alpha",
|
|
36
40
|
"Primer::Alpha::SegmentedControl": "alpha",
|