@primer/view-components 0.35.0-rc.03ac8a4d → 0.35.0-rc.04d28044
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/{app/components → components}/primer/primer.d.ts +3 -3
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar_element.js +0 -3
- package/app/components/primer/alpha/action_list.css +1 -1
- package/app/components/primer/alpha/auto_complete.css +1 -1
- package/app/components/primer/alpha/banner.css +1 -1
- package/app/components/primer/alpha/dropdown.css +1 -1
- package/app/components/primer/alpha/stack.css +1 -0
- package/app/components/primer/alpha/stack.css.json +90 -0
- package/app/components/primer/alpha/stack_item.css +1 -0
- package/app/components/primer/alpha/stack_item.css.json +12 -0
- package/app/components/primer/alpha/tab_nav.css +1 -1
- package/app/components/primer/alpha/text_field.css +1 -1
- package/app/components/primer/alpha/toggle_switch.css +1 -1
- package/app/components/primer/alpha/underline_nav.css +1 -1
- package/app/components/primer/beta/avatar.css +1 -1
- package/app/components/primer/beta/avatar_stack.css +1 -1
- package/app/components/primer/beta/blankslate.css +1 -1
- package/app/components/primer/beta/border_box.css +1 -1
- package/app/components/primer/beta/button.css +1 -1
- package/app/components/primer/beta/counter.css +1 -1
- package/app/components/primer/beta/popover.css +1 -1
- package/app/components/primer/beta/progress_bar.css +1 -1
- package/app/components/primer/beta/state.css +1 -1
- package/app/components/primer/primer.js +3 -3
- package/app/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/lib/primer/forms/primer_text_field.d.ts +28 -0
- package/app/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/package.json +6 -5
- package/static/arguments.json +86 -0
- package/static/audited_at.json +2 -0
- package/static/classes.json +6 -0
- package/static/constants.json +24 -0
- package/static/info_arch.json +172 -0
- package/static/previews.json +68 -0
- package/static/statuses.json +2 -0
- package/app/components/primer/alpha/action_bar_element.d.ts +0 -17
- package/app/components/primer/alpha/action_list.d.ts +0 -16
- package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +0 -42
- package/app/components/primer/alpha/dropdown/menu.d.ts +0 -1
- package/app/components/primer/alpha/dropdown.d.ts +0 -1
- package/app/components/primer/alpha/image_crop.d.ts +0 -1
- package/app/components/primer/alpha/modal_dialog.d.ts +0 -18
- package/app/components/primer/alpha/segmented_control.d.ts +0 -12
- package/app/components/primer/alpha/select_panel_element.d.ts +0 -63
- package/app/components/primer/alpha/tab_container.d.ts +0 -1
- package/app/components/primer/alpha/toggle_switch.d.ts +0 -34
- package/app/components/primer/alpha/tool_tip.d.ts +0 -27
- package/app/components/primer/alpha/x_banner.d.ts +0 -18
- package/app/components/primer/anchored_position.d.ts +0 -27
- package/app/components/primer/aria_live.d.ts +0 -8
- package/app/components/primer/beta/auto_complete/auto_complete.d.ts +0 -1
- package/app/components/primer/beta/clipboard_copy.d.ts +0 -1
- package/app/components/primer/beta/nav_list.d.ts +0 -20
- package/app/components/primer/beta/nav_list_group_element.d.ts +0 -19
- package/app/components/primer/beta/relative_time.d.ts +0 -1
- package/app/components/primer/dialog_helper.d.ts +0 -15
- package/app/components/primer/focus_group.d.ts +0 -19
- package/app/components/primer/primer.d.ts +0 -28
- package/app/components/primer/scrollable_region.d.ts +0 -13
- package/app/components/primer/shared_events.d.ts +0 -11
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_list.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_menu/action_menu_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown/menu.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/image_crop.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/modal_dialog.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/tab_container.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/toggle_switch.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/tool_tip.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/x_banner.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/anchored_position.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/aria_live.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/auto_complete/auto_complete.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/clipboard_copy.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/nav_list.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/nav_list_group_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/relative_time.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/dialog_helper.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/focus_group.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/scrollable_region.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/shared_events.d.ts +0 -0
- /package/{lib → app/lib}/primer/forms/primer_multi_input.js +0 -0
- /package/{lib → app/lib}/primer/forms/primer_text_field.js +0 -0
- /package/{lib → app/lib}/primer/forms/toggle_switch_input.js +0 -0
@@ -1,34 +0,0 @@
|
|
1
|
-
declare class ToggleSwitchElement extends HTMLElement {
|
2
|
-
switch: HTMLElement;
|
3
|
-
loadingSpinner: HTMLElement;
|
4
|
-
errorIcon: HTMLElement;
|
5
|
-
turbo: boolean;
|
6
|
-
private toggling;
|
7
|
-
get src(): string | null;
|
8
|
-
get csrf(): string | null;
|
9
|
-
get csrfField(): string;
|
10
|
-
isRemote(): boolean;
|
11
|
-
toggle(): Promise<void>;
|
12
|
-
turnOn(): void;
|
13
|
-
turnOff(): void;
|
14
|
-
isOn(): boolean;
|
15
|
-
isOff(): boolean;
|
16
|
-
isDisabled(): boolean;
|
17
|
-
disable(): void;
|
18
|
-
enable(): void;
|
19
|
-
private performToggle;
|
20
|
-
private setLoadingState;
|
21
|
-
private setSuccessState;
|
22
|
-
private setErrorState;
|
23
|
-
private setFinishedState;
|
24
|
-
private submitForm;
|
25
|
-
}
|
26
|
-
declare global {
|
27
|
-
interface Window {
|
28
|
-
ToggleSwitchElement: typeof ToggleSwitchElement;
|
29
|
-
Turbo: {
|
30
|
-
renderStreamMessage: (message: string) => void;
|
31
|
-
};
|
32
|
-
}
|
33
|
-
}
|
34
|
-
export {};
|
@@ -1,27 +0,0 @@
|
|
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 showReason(): "focus" | "mouse";
|
7
|
-
get htmlFor(): string;
|
8
|
-
set htmlFor(value: string);
|
9
|
-
get type(): 'description' | 'label';
|
10
|
-
set type(value: 'description' | 'label');
|
11
|
-
get direction(): Direction;
|
12
|
-
set direction(value: Direction);
|
13
|
-
get control(): HTMLElement | null;
|
14
|
-
set hiddenFromView(value: true | false);
|
15
|
-
get hiddenFromView(): true | false;
|
16
|
-
connectedCallback(): void;
|
17
|
-
disconnectedCallback(): void;
|
18
|
-
handleEvent(event: Event): Promise<void>;
|
19
|
-
static observedAttributes: string[];
|
20
|
-
attributeChangedCallback(name: string): void;
|
21
|
-
}
|
22
|
-
declare global {
|
23
|
-
interface Window {
|
24
|
-
ToolTipElement: typeof ToolTipElement;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
declare global {
|
2
|
-
interface HTMLElementEventMap {
|
3
|
-
'banner:dismiss': CustomEvent<void>;
|
4
|
-
}
|
5
|
-
}
|
6
|
-
declare class XBannerElement extends HTMLElement {
|
7
|
-
#private;
|
8
|
-
titleText: HTMLElement;
|
9
|
-
dismiss(): void;
|
10
|
-
show(): void;
|
11
|
-
hide(): void;
|
12
|
-
}
|
13
|
-
declare global {
|
14
|
-
interface Window {
|
15
|
-
XBannerElement: typeof XBannerElement;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
export {};
|
@@ -1,27 +0,0 @@
|
|
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
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/auto-complete-element';
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/clipboard-copy-element';
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export declare class NavListElement extends HTMLElement {
|
2
|
-
#private;
|
3
|
-
items: HTMLElement[];
|
4
|
-
topLevelList: HTMLElement;
|
5
|
-
connectedCallback(): void;
|
6
|
-
disconnectedCallback(): void;
|
7
|
-
selectItemById(itemId: string | null): boolean;
|
8
|
-
selectItemByHref(href: string | null): boolean;
|
9
|
-
selectItemByCurrentLocation(): boolean;
|
10
|
-
expandItem(item: HTMLElement): void;
|
11
|
-
collapseItem(item: HTMLElement): void;
|
12
|
-
itemIsExpanded(item: HTMLElement | null): boolean;
|
13
|
-
handleItemWithSubItemClick(e: Event): void;
|
14
|
-
handleItemWithSubItemKeydown(e: KeyboardEvent): void;
|
15
|
-
}
|
16
|
-
declare global {
|
17
|
-
interface Window {
|
18
|
-
NavListElement: typeof NavListElement;
|
19
|
-
}
|
20
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export declare class NavListGroupElement extends HTMLElement {
|
2
|
-
#private;
|
3
|
-
showMoreItem: HTMLElement;
|
4
|
-
focusMarkers: HTMLElement[];
|
5
|
-
connectedCallback(): void;
|
6
|
-
get showMoreDisabled(): boolean;
|
7
|
-
set showMoreDisabled(value: boolean);
|
8
|
-
set currentPage(value: number);
|
9
|
-
get currentPage(): number;
|
10
|
-
get totalPages(): number;
|
11
|
-
get paginationSrc(): string;
|
12
|
-
private showMore;
|
13
|
-
private setShowMoreItemState;
|
14
|
-
}
|
15
|
-
declare global {
|
16
|
-
interface Window {
|
17
|
-
NavListGroupElement: typeof NavListGroupElement;
|
18
|
-
}
|
19
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/relative-time-element';
|
@@ -1,15 +0,0 @@
|
|
1
|
-
export declare class DialogHelperElement extends HTMLElement {
|
2
|
-
#private;
|
3
|
-
get dialog(): HTMLDialogElement | null;
|
4
|
-
connectedCallback(): void;
|
5
|
-
disconnectedCallback(): void;
|
6
|
-
handleEvent(event: MouseEvent): void;
|
7
|
-
}
|
8
|
-
declare global {
|
9
|
-
interface Window {
|
10
|
-
DialogHelperElement: typeof DialogHelperElement;
|
11
|
-
}
|
12
|
-
interface HTMLElementTagNameMap {
|
13
|
-
'dialog-helper': DialogHelperElement;
|
14
|
-
}
|
15
|
-
}
|
@@ -1,19 +0,0 @@
|
|
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
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import '@github/include-fragment-element';
|
2
|
-
import '@github/remote-input-element';
|
3
|
-
import './alpha/action_list';
|
4
|
-
import './alpha/action_bar_element';
|
5
|
-
import './alpha/dropdown';
|
6
|
-
import './anchored_position';
|
7
|
-
import './dialog_helper';
|
8
|
-
import './focus_group';
|
9
|
-
import './scrollable_region';
|
10
|
-
import './aria_live';
|
11
|
-
import './shared_events';
|
12
|
-
import './alpha/image_crop';
|
13
|
-
import './alpha/modal_dialog';
|
14
|
-
import './beta/nav_list';
|
15
|
-
import './beta/nav_list_group_element';
|
16
|
-
import './alpha/segmented_control';
|
17
|
-
import './alpha/toggle_switch';
|
18
|
-
import './alpha/tool_tip';
|
19
|
-
import './alpha/x_banner';
|
20
|
-
import './beta/auto_complete/auto_complete';
|
21
|
-
import './beta/clipboard_copy';
|
22
|
-
import './beta/relative_time';
|
23
|
-
import './alpha/tab_container';
|
24
|
-
import '../../../lib/primer/forms/primer_multi_input';
|
25
|
-
import '../../../lib/primer/forms/primer_text_field';
|
26
|
-
import '../../../lib/primer/forms/toggle_switch_input';
|
27
|
-
import './alpha/action_menu/action_menu_element';
|
28
|
-
import './alpha/select_panel_element';
|
@@ -1,13 +0,0 @@
|
|
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
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
export type ItemActivatedEvent = {
|
2
|
-
item: Element;
|
3
|
-
checked: boolean;
|
4
|
-
value: string | null;
|
5
|
-
};
|
6
|
-
declare global {
|
7
|
-
interface HTMLElementEventMap {
|
8
|
-
itemActivated: CustomEvent<ItemActivatedEvent>;
|
9
|
-
beforeItemActivated: CustomEvent<ItemActivatedEvent>;
|
10
|
-
}
|
11
|
-
}
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown/menu.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/modal_dialog.d.ts
RENAMED
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts
RENAMED
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts
RENAMED
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/tab_container.d.ts
RENAMED
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/alpha/toggle_switch.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/beta/clipboard_copy.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
/package/app/assets/javascripts/{app/components → components}/primer/beta/relative_time.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|