@primer/view-components 0.0.124-rc.a89f53b0 → 0.1.0-rc.543b7ef9
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/assets/styles/primer_view_components.css +2 -2
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/overlay.css +1 -0
- package/app/components/primer/alpha/overlay.css.json +11 -0
- package/app/components/primer/anchored_position.d.ts +27 -0
- package/app/components/primer/anchored_position.js +149 -0
- package/app/components/primer/primer.d.ts +2 -0
- package/app/components/primer/primer.js +2 -0
- package/package.json +2 -1
- package/static/arguments.json +104 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Overlay[popover]{border-width:0;padding:0;position:absolute}.Overlay[popover]:not(:open){display:none}anchored-position{display:block}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AnchorAlignment, AnchorSide, PositionSettings } from '@primer/behaviors';
|
|
2
|
+
export default class AnchoredPositionElement extends HTMLElement implements PositionSettings {
|
|
3
|
+
#private;
|
|
4
|
+
get align(): AnchorAlignment;
|
|
5
|
+
set align(value: AnchorAlignment);
|
|
6
|
+
get side(): AnchorSide;
|
|
7
|
+
set side(value: AnchorSide);
|
|
8
|
+
get anchorOffset(): number;
|
|
9
|
+
set anchorOffset(value: number | 'normal' | 'spacious');
|
|
10
|
+
get anchor(): string;
|
|
11
|
+
set anchor(value: string);
|
|
12
|
+
get anchorElement(): HTMLElement | null;
|
|
13
|
+
set anchorElement(value: HTMLElement | null);
|
|
14
|
+
get alignmentOffset(): number;
|
|
15
|
+
set alignmentOffset(value: number);
|
|
16
|
+
get allowOutOfBounds(): boolean;
|
|
17
|
+
set allowOutOfBounds(value: boolean);
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
static observedAttributes: string[];
|
|
20
|
+
attributeChangedCallback(): void;
|
|
21
|
+
update(): void;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface Window {
|
|
25
|
+
AnchoredPositionElement: typeof AnchoredPositionElement;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
+
};
|
|
12
|
+
var _AnchoredPositionElement_anchorElement, _AnchoredPositionElement_animationFrame;
|
|
13
|
+
import { getAnchoredPosition } from '@primer/behaviors';
|
|
14
|
+
const updateWhenVisible = (() => {
|
|
15
|
+
const anchors = new Set();
|
|
16
|
+
let intersectionObserver = null;
|
|
17
|
+
let resizeObserver = null;
|
|
18
|
+
function updateVisibleAnchors() {
|
|
19
|
+
for (const anchor of anchors) {
|
|
20
|
+
anchor.update();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return (el) => {
|
|
24
|
+
// eslint-disable-next-line github/prefer-observers
|
|
25
|
+
window.addEventListener('resize', updateVisibleAnchors);
|
|
26
|
+
intersectionObserver || (intersectionObserver = new IntersectionObserver(entries => {
|
|
27
|
+
for (const entry of entries) {
|
|
28
|
+
const target = entry.target;
|
|
29
|
+
if (entry.isIntersecting) {
|
|
30
|
+
target.update();
|
|
31
|
+
anchors.add(target);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
anchors.delete(target);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
resizeObserver || (resizeObserver = new ResizeObserver(() => {
|
|
39
|
+
for (const anchor of anchors) {
|
|
40
|
+
anchor.update();
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
resizeObserver.observe(el.ownerDocument.documentElement);
|
|
44
|
+
intersectionObserver.observe(el);
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
export default class AnchoredPositionElement extends HTMLElement {
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments);
|
|
50
|
+
_AnchoredPositionElement_anchorElement.set(this, null);
|
|
51
|
+
_AnchoredPositionElement_animationFrame.set(this, void 0);
|
|
52
|
+
}
|
|
53
|
+
get align() {
|
|
54
|
+
const value = this.getAttribute('align');
|
|
55
|
+
if (value === 'center' || value === 'end')
|
|
56
|
+
return value;
|
|
57
|
+
return 'start';
|
|
58
|
+
}
|
|
59
|
+
set align(value) {
|
|
60
|
+
this.setAttribute('align', `${value}`);
|
|
61
|
+
}
|
|
62
|
+
get side() {
|
|
63
|
+
const value = this.getAttribute('side');
|
|
64
|
+
if (value === 'inside-top' ||
|
|
65
|
+
value === 'inside-bottom' ||
|
|
66
|
+
value === 'inside-left' ||
|
|
67
|
+
value === 'inside-right' ||
|
|
68
|
+
value === 'inside-center' ||
|
|
69
|
+
value === 'outside-top' ||
|
|
70
|
+
value === 'outside-left' ||
|
|
71
|
+
value === 'outside-right') {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return 'outside-bottom';
|
|
75
|
+
}
|
|
76
|
+
set side(value) {
|
|
77
|
+
this.setAttribute('side', `${value}`);
|
|
78
|
+
}
|
|
79
|
+
get anchorOffset() {
|
|
80
|
+
const alias = this.getAttribute('anchor-offset');
|
|
81
|
+
if (alias === 'spacious' || alias === '8')
|
|
82
|
+
return 8;
|
|
83
|
+
return 4;
|
|
84
|
+
}
|
|
85
|
+
set anchorOffset(value) {
|
|
86
|
+
this.setAttribute('anchor-offset', `${value}`);
|
|
87
|
+
}
|
|
88
|
+
get anchor() {
|
|
89
|
+
return this.getAttribute('anchor') || '';
|
|
90
|
+
}
|
|
91
|
+
set anchor(value) {
|
|
92
|
+
this.setAttribute('anchor', `${value}`);
|
|
93
|
+
}
|
|
94
|
+
get anchorElement() {
|
|
95
|
+
if (__classPrivateFieldGet(this, _AnchoredPositionElement_anchorElement, "f"))
|
|
96
|
+
return __classPrivateFieldGet(this, _AnchoredPositionElement_anchorElement, "f");
|
|
97
|
+
const idRef = this.anchor;
|
|
98
|
+
if (!idRef)
|
|
99
|
+
return null;
|
|
100
|
+
return this.ownerDocument.getElementById(idRef);
|
|
101
|
+
}
|
|
102
|
+
set anchorElement(value) {
|
|
103
|
+
__classPrivateFieldSet(this, _AnchoredPositionElement_anchorElement, value, "f");
|
|
104
|
+
if (!__classPrivateFieldGet(this, _AnchoredPositionElement_anchorElement, "f")) {
|
|
105
|
+
this.removeAttribute('anchor');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
get alignmentOffset() {
|
|
109
|
+
return Number(this.getAttribute('alignment-offset'));
|
|
110
|
+
}
|
|
111
|
+
set alignmentOffset(value) {
|
|
112
|
+
this.setAttribute('alignment-offset', `${value}`);
|
|
113
|
+
}
|
|
114
|
+
get allowOutOfBounds() {
|
|
115
|
+
return this.hasAttribute('allow-out-of-bounds');
|
|
116
|
+
}
|
|
117
|
+
set allowOutOfBounds(value) {
|
|
118
|
+
this.toggleAttribute('allow-out-of-bounds', value);
|
|
119
|
+
}
|
|
120
|
+
connectedCallback() {
|
|
121
|
+
this.update();
|
|
122
|
+
this.addEventListener('beforetoggle', () => this.update());
|
|
123
|
+
updateWhenVisible(this);
|
|
124
|
+
}
|
|
125
|
+
attributeChangedCallback() {
|
|
126
|
+
this.update();
|
|
127
|
+
}
|
|
128
|
+
update() {
|
|
129
|
+
if (!this.isConnected)
|
|
130
|
+
return;
|
|
131
|
+
cancelAnimationFrame(__classPrivateFieldGet(this, _AnchoredPositionElement_animationFrame, "f"));
|
|
132
|
+
__classPrivateFieldSet(this, _AnchoredPositionElement_animationFrame, requestAnimationFrame(() => {
|
|
133
|
+
const anchor = this.anchorElement;
|
|
134
|
+
if (!anchor)
|
|
135
|
+
return;
|
|
136
|
+
const { left, top, anchorSide, anchorAlign } = getAnchoredPosition(this, anchor, this);
|
|
137
|
+
this.style.top = `${top}px`;
|
|
138
|
+
this.style.left = `${left}px`;
|
|
139
|
+
this.classList.remove('Overlay--anchorAlign-start', 'Overlay--anchorAlign-center', 'Overlay--anchorAlign-end', 'Overlay--anchorSide-insideTop', 'Overlay--anchorSide-insideBottom', 'Overlay--anchorSide-insideLeft', 'Overlay--anchorSide-insideRight', 'Overlay--anchorSide-insideCenter', 'Overlay--anchorSide-outsideTop', 'Overlay--anchorSide-outsideLeft', 'Overlay--anchorSide-outsideRight');
|
|
140
|
+
this.classList.add(`Overlay--anchorAlign-${anchorAlign}`, `Overlay--anchorSide-${anchorSide}`);
|
|
141
|
+
}), "f");
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
_AnchoredPositionElement_anchorElement = new WeakMap(), _AnchoredPositionElement_animationFrame = new WeakMap();
|
|
145
|
+
AnchoredPositionElement.observedAttributes = ['align', 'side', 'anchor', 'alignment-offset', 'allow-out-of-bounds'];
|
|
146
|
+
if (!customElements.get('anchored-position')) {
|
|
147
|
+
window.AnchoredPositionElement = AnchoredPositionElement;
|
|
148
|
+
customElements.define('anchored-position', AnchoredPositionElement);
|
|
149
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-rc.543b7ef9",
|
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@github/mini-throttle": "^2.1.0",
|
|
54
54
|
"@github/relative-time-element": "^4.0.0",
|
|
55
55
|
"@github/tab-container-element": "^3.1.2",
|
|
56
|
+
"@oddbird/popover-polyfill": "^0.0.8",
|
|
56
57
|
"@primer/behaviors": "^1.2.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
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",
|
|
@@ -2249,6 +2347,12 @@
|
|
|
2249
2347
|
"default": "`nil`",
|
|
2250
2348
|
"description": "CSS classes that will be added to the label."
|
|
2251
2349
|
},
|
|
2350
|
+
{
|
|
2351
|
+
"name": "label_arguments",
|
|
2352
|
+
"type": "Hash",
|
|
2353
|
+
"default": "`{}`",
|
|
2354
|
+
"description": "[System arguments](/system-arguments) used to construct the label."
|
|
2355
|
+
},
|
|
2252
2356
|
{
|
|
2253
2357
|
"name": "content_arguments",
|
|
2254
2358
|
"type": "Hash",
|
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",
|