@primer/view-components 0.16.0-rc.c533c149 → 0.16.0-rc.e938d510

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.
@@ -0,0 +1,18 @@
1
+ export declare class ModalDialogElement extends HTMLElement {
2
+ #private;
3
+ openButton: HTMLButtonElement | null;
4
+ get open(): boolean;
5
+ set open(value: boolean);
6
+ get showButtons(): NodeList;
7
+ connectedCallback(): void;
8
+ show(): void;
9
+ close(closedNotCancelled?: boolean): void;
10
+ }
11
+ declare global {
12
+ interface Window {
13
+ ModalDialogElement: typeof ModalDialogElement;
14
+ }
15
+ interface HTMLElementTagNameMap {
16
+ 'modal-dialog': ModalDialogElement;
17
+ }
18
+ }
@@ -2,9 +2,10 @@ import '@github/include-fragment-element';
2
2
  import './alpha/action_bar_element';
3
3
  import './alpha/dropdown';
4
4
  import './anchored_position';
5
- import './dialog_helper';
6
5
  import './focus_group';
6
+ import './scrollable_region';
7
7
  import './alpha/image_crop';
8
+ import './alpha/modal_dialog';
8
9
  import './beta/nav_list';
9
10
  import './beta/nav_list_group_element';
10
11
  import './alpha/segmented_control';
@@ -0,0 +1,13 @@
1
+ export declare class ScrollableRegionElement extends HTMLElement {
2
+ hasOverflow: boolean;
3
+ labelledBy: string;
4
+ observer: ResizeObserver;
5
+ connectedCallback(): void;
6
+ disconnectedCallback(): void;
7
+ attributeChangedCallback(name: string): void;
8
+ }
9
+ declare global {
10
+ interface Window {
11
+ ScrollableRegionElement: typeof ScrollableRegionElement;
12
+ }
13
+ }