Skip to content

Commit fae8ccc

Browse files
committed
Test setup - DisclosurePrimitive aria-controls changes
1 parent 4ad154b commit fae8ccc

File tree

1,265 files changed

+38715
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,265 files changed

+38715
-2
lines changed

packages/components/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist/
5-
/declarations/
4+
# /dist/
5+
# /declarations/
66

77
# dependencies
88
/bower_components/

packages/components/declarations/components.d.ts

+205
Large diffs are not rendered by default.

packages/components/declarations/components.d.ts.map

+1
Original file line numberDiff line numberDiff line change
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
import Component from '@glimmer/component';
6+
import type { ComponentLike } from '@glint/template';
7+
import type { HdsAccordionItemSignature } from './item/index.ts';
8+
import type { HdsAccordionForceStates, HdsAccordionSizes, HdsAccordionTypes, HdsAccordionItemTitleTags } from './types.ts';
9+
export interface HdsAccordionSignature {
10+
Args: {
11+
size?: HdsAccordionSizes;
12+
type?: HdsAccordionTypes;
13+
forceState?: HdsAccordionForceStates;
14+
titleTag?: HdsAccordionItemTitleTags;
15+
};
16+
Blocks: {
17+
default: [
18+
{
19+
Item?: ComponentLike<HdsAccordionItemSignature>;
20+
}
21+
];
22+
};
23+
Element: HTMLDivElement;
24+
}
25+
export default class HdsAccordion extends Component<HdsAccordionSignature> {
26+
/**
27+
* Sets the size for the component
28+
*
29+
* @param size
30+
* @type {HdsAccordionSizes}
31+
* @default 'medium'
32+
*/
33+
get size(): HdsAccordionSizes;
34+
get titleTag(): HdsAccordionItemTitleTags;
35+
/**
36+
* Sets the type of the component
37+
*
38+
* @param type
39+
* @type {HdsAccordionTypes}
40+
* @default 'card'
41+
*/
42+
get type(): HdsAccordionTypes;
43+
/**
44+
* Get the class names to apply to the component.
45+
* @method classNames
46+
* @return {string} The "class" attribute to apply to the component.
47+
*/
48+
get classNames(): string;
49+
}
50+
//# sourceMappingURL=index.d.ts.map

packages/components/declarations/components/hds/accordion/index.d.ts.map

+1
Original file line numberDiff line numberDiff line change
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
import Component from '@glimmer/component';
6+
import type { HdsAccordionSizes } from '../types.ts';
7+
export interface HdsAccordionItemButtonSignature {
8+
Args: {
9+
ariaLabel?: string;
10+
ariaLabelledBy?: string;
11+
contentId?: string;
12+
isOpen?: boolean;
13+
onClickToggle?: (event: MouseEvent, ...args: any[]) => void;
14+
parentContainsInteractive?: boolean;
15+
size?: HdsAccordionSizes;
16+
id?: string;
17+
};
18+
Element: HTMLButtonElement;
19+
}
20+
export default class HdsAccordionItemButton extends Component<HdsAccordionItemButtonSignature> {
21+
onClick(event: MouseEvent): void;
22+
/**
23+
* Get the class names to apply to the component.
24+
* @method ItemButton#classNames
25+
* @return {string} The "class" attribute to apply to the component.
26+
*/
27+
get classNames(): string;
28+
}
29+
//# sourceMappingURL=button.d.ts.map

packages/components/declarations/components/hds/accordion/item/button.d.ts.map

+1
Original file line numberDiff line numberDiff line change
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
import Component from '@glimmer/component';
6+
import { HdsAccordionSizeValues, HdsAccordionTypeValues } from '../types.ts';
7+
import type { HdsAccordionForceStates, HdsAccordionSizes, HdsAccordionTypes, HdsAccordionItemTitleTags } from '../types.ts';
8+
export declare const SIZES: string[];
9+
export declare const DEFAULT_SIZE = HdsAccordionSizeValues.Medium;
10+
export declare const TYPES: string[];
11+
export declare const DEFAULT_TYPE = HdsAccordionTypeValues.Card;
12+
export interface HdsAccordionItemSignature {
13+
Args: {
14+
ariaLabel?: string;
15+
containsInteractive?: boolean;
16+
forceState?: HdsAccordionForceStates;
17+
isOpen?: boolean;
18+
isStatic?: boolean;
19+
onClickToggle?: (event: MouseEvent, ...args: any[]) => void;
20+
size?: HdsAccordionSizes;
21+
titleTag?: HdsAccordionItemTitleTags;
22+
type?: HdsAccordionTypes;
23+
};
24+
Blocks: {
25+
toggle?: [];
26+
content: [
27+
{
28+
close: (...args: any[]) => void;
29+
}
30+
];
31+
};
32+
Element: HTMLElement;
33+
}
34+
export default class HdsAccordionItem extends Component<HdsAccordionItemSignature> {
35+
private _titleId;
36+
get ariaLabelledBy(): string | undefined;
37+
/**
38+
* @param containsInteractive
39+
* @type {boolean}
40+
* @default false
41+
*/
42+
get containsInteractive(): boolean;
43+
/**
44+
* @param toggleTextSize
45+
* @type {HdsTextSizes}
46+
* @default 'medium'
47+
*/
48+
get toggleTextSize(): number;
49+
/**
50+
* Sets the size for the component
51+
*
52+
* @param size
53+
* @type {HdsAccordionSizes}
54+
* @default 'medium'
55+
*/
56+
get size(): HdsAccordionSizes;
57+
/**
58+
* Sets the type of the component
59+
*
60+
* @param type
61+
* @type {HdsAccordionTypes}
62+
* @default 'card'
63+
*/
64+
get type(): HdsAccordionTypes;
65+
get titleTag(): HdsAccordionItemTitleTags;
66+
/**
67+
* Get the class names to apply to the component.
68+
* @method classNames
69+
* @return {string} The "class" attribute to apply to the component.
70+
*/
71+
get classNames(): string;
72+
}
73+
//# sourceMappingURL=index.d.ts.map

packages/components/declarations/components/hds/accordion/item/index.d.ts.map

+1
Original file line numberDiff line numberDiff line change
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
export declare enum HdsAccordionTypeValues {
6+
Card = "card",
7+
Flush = "flush"
8+
}
9+
export type HdsAccordionTypes = `${HdsAccordionTypeValues}`;
10+
export declare enum HdsAccordionSizeValues {
11+
Small = "small",
12+
Medium = "medium",
13+
Large = "large"
14+
}
15+
export type HdsAccordionSizes = `${HdsAccordionSizeValues}`;
16+
export declare enum HdsAccordionForceStateValues {
17+
Open = "open",
18+
Close = "close"
19+
}
20+
export type HdsAccordionForceStates = `${HdsAccordionForceStateValues}`;
21+
export declare enum HdsAccordionItemTitleTagValues {
22+
Div = "div",
23+
H1 = "h1",
24+
H2 = "h2",
25+
H3 = "h3",
26+
H4 = "h4",
27+
H5 = "h5",
28+
H6 = "h6"
29+
}
30+
export type HdsAccordionItemTitleTags = `${HdsAccordionItemTitleTagValues}`;
31+
//# sourceMappingURL=types.d.ts.map

packages/components/declarations/components/hds/accordion/types.d.ts.map

+1
Original file line numberDiff line numberDiff line change

0 commit comments

Comments
 (0)