@openproject/primer-view-components 0.0.0-20230808124600
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/LICENSE.txt +21 -0
- package/README.md +21 -0
- package/app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts +16 -0
- package/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +31 -0
- package/app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/assets/javascripts/app/components/primer/alpha/nav_list.d.ts +28 -0
- package/app/assets/javascripts/app/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/assets/javascripts/app/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +30 -0
- package/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +26 -0
- package/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +13 -0
- package/app/assets/javascripts/app/components/primer/anchored_position.d.ts +27 -0
- package/app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/beta/relative_time.d.ts +1 -0
- package/app/assets/javascripts/app/components/primer/focus_group.d.ts +19 -0
- package/app/assets/javascripts/app/components/primer/primer.d.ts +21 -0
- package/app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +1 -0
- package/app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/app/assets/javascripts/primer_view_components.js +2 -0
- package/app/assets/javascripts/primer_view_components.js.map +1 -0
- package/app/assets/styles/primer_view_components.css +1 -0
- package/app/assets/styles/primer_view_components.css.map +1 -0
- package/app/components/primer/alpha/action_bar.css +1 -0
- package/app/components/primer/alpha/action_bar.css.json +17 -0
- package/app/components/primer/alpha/action_bar_element.d.ts +16 -0
- package/app/components/primer/alpha/action_bar_element.js +172 -0
- package/app/components/primer/alpha/action_list.css +1 -0
- package/app/components/primer/alpha/action_list.css.json +134 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +31 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.js +241 -0
- package/app/components/primer/alpha/auto_complete.css +1 -0
- package/app/components/primer/alpha/auto_complete.css.json +23 -0
- package/app/components/primer/alpha/banner.css +1 -0
- package/app/components/primer/alpha/banner.css.json +24 -0
- package/app/components/primer/alpha/button_marketing.css +1 -0
- package/app/components/primer/alpha/button_marketing.css.json +33 -0
- package/app/components/primer/alpha/dialog.css +1 -0
- package/app/components/primer/alpha/dialog.css.json +80 -0
- package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/components/primer/alpha/dropdown/menu.js +1 -0
- package/app/components/primer/alpha/dropdown.css +1 -0
- package/app/components/primer/alpha/dropdown.css.json +40 -0
- package/app/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/components/primer/alpha/dropdown.js +1 -0
- package/app/components/primer/alpha/image_crop.d.ts +1 -0
- package/app/components/primer/alpha/image_crop.js +1 -0
- package/app/components/primer/alpha/layout.css +1 -0
- package/app/components/primer/alpha/layout.css.json +80 -0
- package/app/components/primer/alpha/menu.css +1 -0
- package/app/components/primer/alpha/menu.css.json +28 -0
- package/app/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/components/primer/alpha/modal_dialog.js +189 -0
- package/app/components/primer/alpha/nav_list.d.ts +28 -0
- package/app/components/primer/alpha/nav_list.js +248 -0
- package/app/components/primer/alpha/overlay.css +1 -0
- package/app/components/primer/alpha/overlay.css.json +8 -0
- package/app/components/primer/alpha/segmented_control.css +1 -0
- package/app/components/primer/alpha/segmented_control.css.json +33 -0
- package/app/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/components/primer/alpha/segmented_control.js +47 -0
- package/app/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/components/primer/alpha/tab_container.js +1 -0
- package/app/components/primer/alpha/tab_nav.css +1 -0
- package/app/components/primer/alpha/tab_nav.css.json +24 -0
- package/app/components/primer/alpha/text_field.css +1 -0
- package/app/components/primer/alpha/text_field.css.json +135 -0
- package/app/components/primer/alpha/toggle_switch.css +1 -0
- package/app/components/primer/alpha/toggle_switch.css.json +40 -0
- package/app/components/primer/alpha/toggle_switch.d.ts +30 -0
- package/app/components/primer/alpha/toggle_switch.js +165 -0
- package/app/components/primer/alpha/tool_tip.d.ts +26 -0
- package/app/components/primer/alpha/tool_tip.js +427 -0
- package/app/components/primer/alpha/underline_nav.css +1 -0
- package/app/components/primer/alpha/underline_nav.css.json +28 -0
- package/app/components/primer/alpha/x_banner.d.ts +13 -0
- package/app/components/primer/alpha/x_banner.js +49 -0
- package/app/components/primer/anchored_position.d.ts +27 -0
- package/app/components/primer/anchored_position.js +147 -0
- package/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/components/primer/beta/auto_complete/auto_complete.js +1 -0
- package/app/components/primer/beta/avatar.css +1 -0
- package/app/components/primer/beta/avatar.css.json +17 -0
- package/app/components/primer/beta/avatar_stack.css +1 -0
- package/app/components/primer/beta/avatar_stack.css.json +28 -0
- package/app/components/primer/beta/blankslate.css +1 -0
- package/app/components/primer/beta/blankslate.css.json +22 -0
- package/app/components/primer/beta/border_box.css +1 -0
- package/app/components/primer/beta/border_box.css.json +54 -0
- package/app/components/primer/beta/breadcrumbs.css +1 -0
- package/app/components/primer/beta/breadcrumbs.css.json +11 -0
- package/app/components/primer/beta/button.css +1 -0
- package/app/components/primer/beta/button.css.json +75 -0
- package/app/components/primer/beta/button_group.css +1 -0
- package/app/components/primer/beta/button_group.css.json +14 -0
- package/app/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/components/primer/beta/clipboard_copy.js +43 -0
- package/app/components/primer/beta/counter.css +1 -0
- package/app/components/primer/beta/counter.css.json +10 -0
- package/app/components/primer/beta/flash.css +1 -0
- package/app/components/primer/beta/flash.css.json +27 -0
- package/app/components/primer/beta/label.css +1 -0
- package/app/components/primer/beta/label.css.json +25 -0
- package/app/components/primer/beta/link.css +1 -0
- package/app/components/primer/beta/link.css.json +19 -0
- package/app/components/primer/beta/popover.css +1 -0
- package/app/components/primer/beta/popover.css.json +39 -0
- package/app/components/primer/beta/progress_bar.css +1 -0
- package/app/components/primer/beta/progress_bar.css.json +10 -0
- package/app/components/primer/beta/relative_time.d.ts +1 -0
- package/app/components/primer/beta/relative_time.js +1 -0
- package/app/components/primer/beta/state.css +1 -0
- package/app/components/primer/beta/state.css.json +13 -0
- package/app/components/primer/beta/subhead.css +1 -0
- package/app/components/primer/beta/subhead.css.json +12 -0
- package/app/components/primer/beta/timeline_item.css +1 -0
- package/app/components/primer/beta/timeline_item.css.json +16 -0
- package/app/components/primer/beta/truncate.css +1 -0
- package/app/components/primer/beta/truncate.css.json +12 -0
- package/app/components/primer/focus_group.d.ts +19 -0
- package/app/components/primer/focus_group.js +139 -0
- package/app/components/primer/primer.d.ts +21 -0
- package/app/components/primer/primer.js +21 -0
- package/app/components/primer/truncate.css +1 -0
- package/app/components/primer/truncate.css.json +13 -0
- package/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/lib/primer/forms/primer_multi_input.js +45 -0
- package/lib/primer/forms/primer_text_field.d.ts +1 -0
- package/lib/primer/forms/primer_text_field.js +73 -0
- package/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/lib/primer/forms/toggle_switch_input.js +34 -0
- package/package.json +101 -0
- package/static/arguments.json +4501 -0
- package/static/audited_at.json +107 -0
- package/static/classes.json +606 -0
- package/static/constants.json +1335 -0
- package/static/info_arch.json +14465 -0
- package/static/previews.json +6408 -0
- package/static/statuses.json +107 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 GitHub
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img width="300px" alt="Primer ViewComponents Logo" src="/static/assets/view-components.svg">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Primer ViewComponents</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">Fork of ViewComponents for the Primer Design System used for OpenProject.</p>
|
|
8
|
+
|
|
9
|
+
_Note: This library is under active pre-1.0 development. Breaking changes are likely in patch releases._
|
|
10
|
+
|
|
11
|
+
## Contribution
|
|
12
|
+
|
|
13
|
+
Please have a look at our [Contribution docs](./docs/contributors/README.md) to learn about adding or changing a ViewComponent.
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
Visit [https://primer.style/view_components/](https://primer.style/design/components/) to view the documentation of the Primer ViewComponents.
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare class ActionBarElement extends HTMLElement {
|
|
2
|
+
#private;
|
|
3
|
+
items: HTMLElement[];
|
|
4
|
+
itemContainer: HTMLElement;
|
|
5
|
+
moreMenu: HTMLElement;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
disconnectedCallback(): void;
|
|
8
|
+
menuItemClick(event: Event): void;
|
|
9
|
+
update(rect?: DOMRect): void;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface Window {
|
|
13
|
+
ActionBarElement: typeof ActionBarElement;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import '@oddbird/popover-polyfill';
|
|
2
|
+
import type { IncludeFragmentElement } from '@github/include-fragment-element';
|
|
3
|
+
type SelectVariant = 'none' | 'single' | 'multiple' | null;
|
|
4
|
+
type SelectedItem = {
|
|
5
|
+
label: string | null | undefined;
|
|
6
|
+
value: string | null | undefined;
|
|
7
|
+
element: Element;
|
|
8
|
+
};
|
|
9
|
+
export declare class ActionMenuElement extends HTMLElement {
|
|
10
|
+
#private;
|
|
11
|
+
includeFragment: IncludeFragmentElement;
|
|
12
|
+
get selectVariant(): SelectVariant;
|
|
13
|
+
set selectVariant(variant: SelectVariant);
|
|
14
|
+
get dynamicLabelPrefix(): string;
|
|
15
|
+
set dynamicLabelPrefix(value: string);
|
|
16
|
+
get dynamicLabel(): boolean;
|
|
17
|
+
set dynamicLabel(value: boolean);
|
|
18
|
+
get popoverElement(): HTMLElement | null;
|
|
19
|
+
get invokerElement(): HTMLButtonElement | null;
|
|
20
|
+
get invokerLabel(): HTMLElement | null;
|
|
21
|
+
get selectedItems(): SelectedItem[];
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
handleEvent(event: Event): void;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface Window {
|
|
28
|
+
ActionMenuElement: typeof ActionMenuElement;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@github/details-menu-element';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './dropdown/menu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@github/image-crop-element';
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class NavListElement extends HTMLElement {
|
|
2
|
+
#private;
|
|
3
|
+
items: HTMLElement[];
|
|
4
|
+
showMoreItem: HTMLElement;
|
|
5
|
+
focusMarkers: HTMLElement[];
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
get showMoreDisabled(): boolean;
|
|
8
|
+
set showMoreDisabled(value: boolean);
|
|
9
|
+
set currentPage(value: number);
|
|
10
|
+
get currentPage(): number;
|
|
11
|
+
get totalPages(): number;
|
|
12
|
+
get paginationSrc(): string;
|
|
13
|
+
selectItemById(itemId: string | null): boolean;
|
|
14
|
+
selectItemByHref(href: string | null): boolean;
|
|
15
|
+
selectItemByCurrentLocation(): boolean;
|
|
16
|
+
expandItem(item: HTMLElement): void;
|
|
17
|
+
collapseItem(item: HTMLElement): void;
|
|
18
|
+
itemIsExpanded(item: HTMLElement | null): boolean;
|
|
19
|
+
handleItemWithSubItemClick(e: Event): void;
|
|
20
|
+
handleItemWithSubItemKeydown(e: KeyboardEvent): void;
|
|
21
|
+
private showMore;
|
|
22
|
+
private setShowMoreItemState;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface Window {
|
|
26
|
+
NavListElement: typeof NavListElement;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare class SegmentedControlElement extends HTMLElement {
|
|
2
|
+
#private;
|
|
3
|
+
items: HTMLElement[];
|
|
4
|
+
connectedCallback(): void;
|
|
5
|
+
select(event: Event): void;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
SegmentedControlElement: typeof SegmentedControlElement;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@github/tab-container-element';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare class ToggleSwitchElement extends HTMLElement {
|
|
2
|
+
switch: HTMLElement;
|
|
3
|
+
loadingSpinner: HTMLElement;
|
|
4
|
+
errorIcon: HTMLElement;
|
|
5
|
+
private toggling;
|
|
6
|
+
get src(): string | null;
|
|
7
|
+
get csrf(): string | null;
|
|
8
|
+
get csrfField(): string;
|
|
9
|
+
isRemote(): boolean;
|
|
10
|
+
toggle(): Promise<void>;
|
|
11
|
+
turnOn(): void;
|
|
12
|
+
turnOff(): void;
|
|
13
|
+
isOn(): boolean;
|
|
14
|
+
isOff(): boolean;
|
|
15
|
+
isDisabled(): boolean;
|
|
16
|
+
disable(): void;
|
|
17
|
+
enable(): void;
|
|
18
|
+
private performToggle;
|
|
19
|
+
private setLoadingState;
|
|
20
|
+
private setSuccessState;
|
|
21
|
+
private setErrorState;
|
|
22
|
+
private setFinishedState;
|
|
23
|
+
private submitForm;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface Window {
|
|
27
|
+
ToggleSwitchElement: typeof ToggleSwitchElement;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import '@oddbird/popover-polyfill';
|
|
2
|
+
type Direction = 'n' | 's' | 'e' | 'w' | 'ne' | 'se' | 'nw' | 'sw';
|
|
3
|
+
declare class ToolTipElement extends HTMLElement {
|
|
4
|
+
#private;
|
|
5
|
+
styles(): string;
|
|
6
|
+
get htmlFor(): string;
|
|
7
|
+
set htmlFor(value: string);
|
|
8
|
+
get type(): 'description' | 'label';
|
|
9
|
+
set type(value: 'description' | 'label');
|
|
10
|
+
get direction(): Direction;
|
|
11
|
+
set direction(value: Direction);
|
|
12
|
+
get control(): HTMLElement | null;
|
|
13
|
+
set hiddenFromView(value: true | false);
|
|
14
|
+
get hiddenFromView(): true | false;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
handleEvent(event: Event): Promise<void>;
|
|
18
|
+
static observedAttributes: string[];
|
|
19
|
+
attributeChangedCallback(name: string): void;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface Window {
|
|
23
|
+
ToolTipElement: typeof ToolTipElement;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
import '@github/auto-complete-element';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@github/clipboard-copy-element';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@github/relative-time-element';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '@oddbird/popover-polyfill';
|
|
2
|
+
export default class FocusGroupElement extends HTMLElement {
|
|
3
|
+
#private;
|
|
4
|
+
get nowrap(): boolean;
|
|
5
|
+
set nowrap(value: boolean);
|
|
6
|
+
get direction(): 'horizontal' | 'vertical' | 'both';
|
|
7
|
+
set direction(value: 'horizontal' | 'vertical' | 'both');
|
|
8
|
+
get retain(): boolean;
|
|
9
|
+
set retain(value: boolean);
|
|
10
|
+
get mnemonics(): boolean;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
handleEvent(event: Event): void;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface Window {
|
|
17
|
+
FocusGroupElement: typeof FocusGroupElement;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import '@github/include-fragment-element';
|
|
2
|
+
import '@oddbird/popover-polyfill';
|
|
3
|
+
import './alpha/action_bar_element';
|
|
4
|
+
import './alpha/dropdown';
|
|
5
|
+
import './anchored_position';
|
|
6
|
+
import './focus_group';
|
|
7
|
+
import './alpha/image_crop';
|
|
8
|
+
import './alpha/modal_dialog';
|
|
9
|
+
import './alpha/nav_list';
|
|
10
|
+
import './alpha/segmented_control';
|
|
11
|
+
import './alpha/toggle_switch';
|
|
12
|
+
import './alpha/tool_tip';
|
|
13
|
+
import './alpha/x_banner';
|
|
14
|
+
import './beta/auto_complete/auto_complete';
|
|
15
|
+
import './beta/clipboard_copy';
|
|
16
|
+
import './beta/relative_time';
|
|
17
|
+
import './alpha/tab_container';
|
|
18
|
+
import '../../../lib/primer/forms/primer_multi_input';
|
|
19
|
+
import '../../../lib/primer/forms/primer_text_field';
|
|
20
|
+
import '../../../lib/primer/forms/toggle_switch_input';
|
|
21
|
+
import './alpha/action_menu/action_menu_element';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class PrimerMultiInputElement extends HTMLElement {
|
|
2
|
+
fields: HTMLInputElement[];
|
|
3
|
+
activateField(name: string): void;
|
|
4
|
+
private findField;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
PrimerMultiInputElement: typeof PrimerMultiInputElement;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@github/auto-check-element';
|