Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 24, 2024
1 parent e783286 commit c07ca68
Show file tree
Hide file tree
Showing 36 changed files with 437 additions and 32 deletions.
6 changes: 0 additions & 6 deletions .changeset/chatty-apples-hope.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-apes-judge.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-readers-own.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-donkeys-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-readers-switch.md

This file was deleted.

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# CHANGELOG

## 0.35.0

### Minor Changes

- [#3074](https://github.com/primer/view_components/pull/3074) [`25109d0`](https://github.com/primer/view_components/commit/25109d0a9686e8dcc8b81a08ba11cd648178aa57) Thanks [@owenniblock](https://github.com/owenniblock)! - [SelectPanel] replace loading label using parameter loading_label
[SelectPanel] show additional loading content with loading_description

- [#3072](https://github.com/primer/view_components/pull/3072) [`18b2074`](https://github.com/primer/view_components/commit/18b2074e4a6e77ea47bd0e78c93358aaeefce842) Thanks [@camertron](https://github.com/camertron)! - [Forms] Fix position of caption for checkbox and radio groups

- [#3071](https://github.com/primer/view_components/pull/3071) [`e043069`](https://github.com/primer/view_components/commit/e043069782f1a88970c09feb0fe05566e21b18ce) Thanks [@camertron](https://github.com/camertron)! - [SelectPanel] Use checkboxes for multi-select

- [#3083](https://github.com/primer/view_components/pull/3083) [`5907105`](https://github.com/primer/view_components/commit/590710582e7c29b3d6bc8b142c1e9b8f95709c68) Thanks [@jamieshark](https://github.com/jamieshark)! - [SelectPanel] Adds banner scheme as param.

### Patch Changes

- [#3095](https://github.com/primer/view_components/pull/3095) [`26f1fbc`](https://github.com/primer/view_components/commit/26f1fbcacade2c05fabb42d8231ac22fbc1e3b52) Thanks [@owenniblock](https://github.com/owenniblock)! - Clear input on SelectPanel when dialog closed

## 0.34.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
primer_view_components (0.34.0)
primer_view_components (0.35.0)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
octicons (>= 18.0.0)
Expand Down
17 changes: 17 additions & 0 deletions components/primer/alpha/action_bar_element.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ActionMenuElement } from './action_menu/action_menu_element';
declare class ActionBarElement extends HTMLElement {
#private;
items: HTMLElement[];
itemContainer: HTMLElement;
moreMenu: ActionMenuElement;
connectedCallback(): void;
disconnectedCallback(): void;
menuItemClick(event: Event): void;
update(): void;
}
declare global {
interface Window {
ActionBarElement: typeof ActionBarElement;
}
}
export {};
16 changes: 16 additions & 0 deletions components/primer/alpha/action_list.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export declare class ActionListTruncationObserver {
resizeObserver: ResizeObserver;
constructor(el: HTMLElement);
unobserve(el: HTMLElement): void;
update(el: HTMLElement): void;
}
export declare class ActionListElement extends HTMLElement {
#private;
connectedCallback(): void;
disconnectedCallback(): void;
}
declare global {
interface Window {
ActionListElement: typeof ActionListElement;
}
}
42 changes: 42 additions & 0 deletions components/primer/alpha/action_menu/action_menu_element.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import '@oddbird/popover-polyfill';
import type { IncludeFragmentElement } from '@github/include-fragment-element';
type SelectVariant = 'none' | 'single' | 'multiple' | null;
type SelectedItem = {
label: string | null | undefined;
value: string | null | undefined;
element: Element;
};
export declare class ActionMenuElement extends HTMLElement {
#private;
includeFragment: IncludeFragmentElement;
get selectVariant(): SelectVariant;
set selectVariant(variant: SelectVariant);
get dynamicLabelPrefix(): string;
set dynamicLabelPrefix(value: string);
get dynamicLabel(): boolean;
set dynamicLabel(value: boolean);
get popoverElement(): HTMLElement | null;
get invokerElement(): HTMLButtonElement | null;
get invokerLabel(): HTMLElement | null;
get selectedItems(): SelectedItem[];
connectedCallback(): void;
disconnectedCallback(): void;
handleEvent(event: Event): void;
get items(): HTMLElement[];
getItemById(itemId: string): HTMLElement | null;
isItemDisabled(item: Element | null): boolean;
disableItem(item: Element | null): void;
enableItem(item: Element | null): void;
isItemHidden(item: Element | null): boolean;
hideItem(item: Element | null): void;
showItem(item: Element | null): void;
isItemChecked(item: Element | null): boolean;
checkItem(item: Element | null): void;
uncheckItem(item: Element | null): void;
}
declare global {
interface Window {
ActionMenuElement: typeof ActionMenuElement;
}
}
export {};
1 change: 1 addition & 0 deletions components/primer/alpha/dropdown.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './dropdown/menu';
1 change: 1 addition & 0 deletions components/primer/alpha/dropdown/menu.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@github/details-menu-element';
1 change: 1 addition & 0 deletions components/primer/alpha/image_crop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@github/image-crop-element';
18 changes: 18 additions & 0 deletions components/primer/alpha/modal_dialog.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export declare class ModalDialogElement extends HTMLElement {
#private;
openButton: HTMLButtonElement | null;
get open(): boolean;
set open(value: boolean);
get showButtons(): NodeList;
connectedCallback(): void;
show(): void;
close(closedNotCancelled?: boolean): void;
}
declare global {
interface Window {
ModalDialogElement: typeof ModalDialogElement;
}
interface HTMLElementTagNameMap {
'modal-dialog': ModalDialogElement;
}
}
12 changes: 12 additions & 0 deletions components/primer/alpha/segmented_control.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare class SegmentedControlElement extends HTMLElement {
#private;
items: HTMLElement[];
connectedCallback(): void;
select(event: Event): void;
}
declare global {
interface Window {
SegmentedControlElement: typeof SegmentedControlElement;
}
}
export {};
63 changes: 63 additions & 0 deletions components/primer/alpha/select_panel_element.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import { IncludeFragmentElement } from '@github/include-fragment-element';
import type { AnchorAlignment, AnchorSide } from '@primer/behaviors';
import '@oddbird/popover-polyfill';
type SelectVariant = 'none' | 'single' | 'multiple' | null;
type SelectedItem = {
label: string | null | undefined;
value: string | null | undefined;
inputName: string | null | undefined;
};
export type SelectPanelItem = HTMLLIElement;
export type FilterFn = (item: SelectPanelItem, query: string) => boolean;
export declare class SelectPanelElement extends HTMLElement {
#private;
includeFragment: IncludeFragmentElement;
dialog: HTMLDialogElement;
filterInputTextField: HTMLInputElement;
remoteInput: HTMLElement;
list: HTMLElement;
ariaLiveContainer: HTMLElement;
noResults: HTMLElement;
fragmentErrorElement: HTMLElement;
bannerErrorElement: HTMLElement;
bodySpinner: HTMLElement;
filterFn?: FilterFn;
get open(): boolean;
get selectVariant(): SelectVariant;
get ariaSelectionType(): string;
set selectVariant(variant: SelectVariant);
get dynamicLabelPrefix(): string;
get dynamicAriaLabelPrefix(): string;
set dynamicLabelPrefix(value: string);
get dynamicLabel(): boolean;
set dynamicLabel(value: boolean);
get invokerElement(): HTMLButtonElement | null;
get closeButton(): HTMLButtonElement | null;
get invokerLabel(): HTMLElement | null;
get selectedItems(): SelectedItem[];
get align(): AnchorAlignment;
get side(): AnchorSide;
updateAnchorPosition(): void;
connectedCallback(): void;
disconnectedCallback(): void;
handleEvent(event: Event): void;
show(): void;
hide(): void;
get visibleItems(): SelectPanelItem[];
get items(): SelectPanelItem[];
get focusableItem(): HTMLElement | undefined;
getItemById(itemId: string): SelectPanelItem | null;
isItemDisabled(item: SelectPanelItem | null): boolean;
disableItem(item: SelectPanelItem | null): void;
enableItem(item: SelectPanelItem | null): void;
isItemHidden(item: SelectPanelItem | null): boolean;
isItemChecked(item: SelectPanelItem | null): boolean;
checkItem(item: SelectPanelItem | null): void;
uncheckItem(item: SelectPanelItem | null): void;
}
declare global {
interface Window {
SelectPanelElement: typeof SelectPanelElement;
}
}
export {};
1 change: 1 addition & 0 deletions components/primer/alpha/tab_container.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@github/tab-container-element';
34 changes: 34 additions & 0 deletions components/primer/alpha/toggle_switch.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
declare class ToggleSwitchElement extends HTMLElement {
switch: HTMLElement;
loadingSpinner: HTMLElement;
errorIcon: HTMLElement;
turbo: boolean;
private toggling;
get src(): string | null;
get csrf(): string | null;
get csrfField(): string;
isRemote(): boolean;
toggle(): Promise<void>;
turnOn(): void;
turnOff(): void;
isOn(): boolean;
isOff(): boolean;
isDisabled(): boolean;
disable(): void;
enable(): void;
private performToggle;
private setLoadingState;
private setSuccessState;
private setErrorState;
private setFinishedState;
private submitForm;
}
declare global {
interface Window {
ToggleSwitchElement: typeof ToggleSwitchElement;
Turbo: {
renderStreamMessage: (message: string) => void;
};
}
}
export {};
27 changes: 27 additions & 0 deletions components/primer/alpha/tool_tip.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import '@oddbird/popover-polyfill';
type Direction = 'n' | 's' | 'e' | 'w' | 'ne' | 'se' | 'nw' | 'sw';
declare class ToolTipElement extends HTMLElement {
#private;
styles(): string;
get showReason(): "focus" | "mouse";
get htmlFor(): string;
set htmlFor(value: string);
get type(): 'description' | 'label';
set type(value: 'description' | 'label');
get direction(): Direction;
set direction(value: Direction);
get control(): HTMLElement | null;
set hiddenFromView(value: true | false);
get hiddenFromView(): true | false;
connectedCallback(): void;
disconnectedCallback(): void;
handleEvent(event: Event): Promise<void>;
static observedAttributes: string[];
attributeChangedCallback(name: string): void;
}
declare global {
interface Window {
ToolTipElement: typeof ToolTipElement;
}
}
export {};
18 changes: 18 additions & 0 deletions components/primer/alpha/x_banner.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare global {
interface HTMLElementEventMap {
'banner:dismiss': CustomEvent<void>;
}
}
declare class XBannerElement extends HTMLElement {
#private;
titleText: HTMLElement;
dismiss(): void;
show(): void;
hide(): void;
}
declare global {
interface Window {
XBannerElement: typeof XBannerElement;
}
}
export {};
27 changes: 27 additions & 0 deletions components/primer/anchored_position.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { AnchorAlignment, AnchorSide, PositionSettings } from '@primer/behaviors';
export default class AnchoredPositionElement extends HTMLElement implements PositionSettings {
#private;
get align(): AnchorAlignment;
set align(value: AnchorAlignment);
get side(): AnchorSide;
set side(value: AnchorSide);
get anchorOffset(): number;
set anchorOffset(value: number | 'normal' | 'spacious');
get anchor(): string;
set anchor(value: string);
get anchorElement(): HTMLElement | null;
set anchorElement(value: HTMLElement | null);
get alignmentOffset(): number;
set alignmentOffset(value: number);
get allowOutOfBounds(): boolean;
set allowOutOfBounds(value: boolean);
connectedCallback(): void;
static observedAttributes: string[];
attributeChangedCallback(): void;
update(): void;
}
declare global {
interface Window {
AnchoredPositionElement: typeof AnchoredPositionElement;
}
}
8 changes: 8 additions & 0 deletions components/primer/aria_live.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export declare function announceFromElement(el: HTMLElement, options?: {
assertive?: boolean;
element?: HTMLElement;
}): void;
export declare function announce(message: string, options?: {
assertive?: boolean;
element?: HTMLElement;
}): void;
1 change: 1 addition & 0 deletions components/primer/beta/auto_complete/auto_complete.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@github/auto-complete-element';
1 change: 1 addition & 0 deletions components/primer/beta/clipboard_copy.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@github/clipboard-copy-element';
20 changes: 20 additions & 0 deletions components/primer/beta/nav_list.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export declare class NavListElement extends HTMLElement {
#private;
items: HTMLElement[];
topLevelList: HTMLElement;
connectedCallback(): void;
disconnectedCallback(): void;
selectItemById(itemId: string | null): boolean;
selectItemByHref(href: string | null): boolean;
selectItemByCurrentLocation(): boolean;
expandItem(item: HTMLElement): void;
collapseItem(item: HTMLElement): void;
itemIsExpanded(item: HTMLElement | null): boolean;
handleItemWithSubItemClick(e: Event): void;
handleItemWithSubItemKeydown(e: KeyboardEvent): void;
}
declare global {
interface Window {
NavListElement: typeof NavListElement;
}
}
Loading

0 comments on commit c07ca68

Please sign in to comment.