-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,346 changed files
with
41,841 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
packages/components/declarations/components/hds/accordion/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
import Component from '@glimmer/component'; | ||
import type { ComponentLike } from '@glint/template'; | ||
import type { HdsAccordionItemSignature } from './item/index.ts'; | ||
import type { HdsAccordionForceStates, HdsAccordionSizes, HdsAccordionTypes, HdsAccordionItemTitleTags } from './types.ts'; | ||
export interface HdsAccordionSignature { | ||
Args: { | ||
size?: HdsAccordionSizes; | ||
type?: HdsAccordionTypes; | ||
forceState?: HdsAccordionForceStates; | ||
titleTag?: HdsAccordionItemTitleTags; | ||
}; | ||
Blocks: { | ||
default: [ | ||
{ | ||
Item?: ComponentLike<HdsAccordionItemSignature>; | ||
} | ||
]; | ||
}; | ||
Element: HTMLDivElement; | ||
} | ||
export default class HdsAccordion extends Component<HdsAccordionSignature> { | ||
/** | ||
* Sets the size for the component | ||
* | ||
* @param size | ||
* @type {HdsAccordionSizes} | ||
* @default 'medium' | ||
*/ | ||
get size(): HdsAccordionSizes; | ||
get titleTag(): HdsAccordionItemTitleTags; | ||
/** | ||
* Sets the type of the component | ||
* | ||
* @param type | ||
* @type {HdsAccordionTypes} | ||
* @default 'card' | ||
*/ | ||
get type(): HdsAccordionTypes; | ||
/** | ||
* Get the class names to apply to the component. | ||
* @method classNames | ||
* @return {string} The "class" attribute to apply to the component. | ||
*/ | ||
get classNames(): string; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
1 change: 1 addition & 0 deletions
1
packages/components/declarations/components/hds/accordion/index.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
packages/components/declarations/components/hds/accordion/item/button.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
import Component from '@glimmer/component'; | ||
import type { HdsAccordionSizes } from '../types.ts'; | ||
export interface HdsAccordionItemButtonSignature { | ||
Args: { | ||
ariaLabel?: string; | ||
ariaLabelledBy?: string; | ||
contentId?: string; | ||
isOpen?: boolean; | ||
onClickToggle?: (event: MouseEvent, ...args: any[]) => void; | ||
parentContainsInteractive?: boolean; | ||
size?: HdsAccordionSizes; | ||
id?: string; | ||
}; | ||
Element: HTMLButtonElement; | ||
} | ||
export default class HdsAccordionItemButton extends Component<HdsAccordionItemButtonSignature> { | ||
onClick(event: MouseEvent): void; | ||
/** | ||
* Get the class names to apply to the component. | ||
* @method ItemButton#classNames | ||
* @return {string} The "class" attribute to apply to the component. | ||
*/ | ||
get classNames(): string; | ||
} | ||
//# sourceMappingURL=button.d.ts.map |
1 change: 1 addition & 0 deletions
1
packages/components/declarations/components/hds/accordion/item/button.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
79 changes: 79 additions & 0 deletions
79
packages/components/declarations/components/hds/accordion/item/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
import Component from '@glimmer/component'; | ||
import { HdsAccordionSizeValues, HdsAccordionTypeValues } from '../types.ts'; | ||
import type { HdsAccordionForceStates, HdsAccordionSizes, HdsAccordionTypes, HdsAccordionItemTitleTags } from '../types.ts'; | ||
export declare const SIZES: string[]; | ||
export declare const DEFAULT_SIZE = HdsAccordionSizeValues.Medium; | ||
export declare const TYPES: string[]; | ||
export declare const DEFAULT_TYPE = HdsAccordionTypeValues.Card; | ||
export interface HdsAccordionItemSignature { | ||
Args: { | ||
ariaLabel?: string; | ||
containsInteractive?: boolean; | ||
forceState?: HdsAccordionForceStates; | ||
isOpen?: boolean; | ||
isStatic?: boolean; | ||
onClickToggle?: (event: MouseEvent, ...args: any[]) => void; | ||
size?: HdsAccordionSizes; | ||
titleTag?: HdsAccordionItemTitleTags; | ||
type?: HdsAccordionTypes; | ||
}; | ||
Blocks: { | ||
toggle?: []; | ||
content: [ | ||
{ | ||
close: (...args: any[]) => void; | ||
} | ||
]; | ||
}; | ||
Element: HTMLElement; | ||
} | ||
export default class HdsAccordionItem extends Component<HdsAccordionItemSignature> { | ||
/** | ||
* Generates a unique ID for the Content | ||
* | ||
* @param _contentId | ||
*/ | ||
private _contentId; | ||
private _titleId; | ||
get ariaLabelledBy(): string | undefined; | ||
/** | ||
* @param containsInteractive | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
get containsInteractive(): boolean; | ||
/** | ||
* @param toggleTextSize | ||
* @type {HdsTextSizes} | ||
* @default 'medium' | ||
*/ | ||
get toggleTextSize(): number; | ||
/** | ||
* Sets the size for the component | ||
* | ||
* @param size | ||
* @type {HdsAccordionSizes} | ||
* @default 'medium' | ||
*/ | ||
get size(): HdsAccordionSizes; | ||
/** | ||
* Sets the type of the component | ||
* | ||
* @param type | ||
* @type {HdsAccordionTypes} | ||
* @default 'card' | ||
*/ | ||
get type(): HdsAccordionTypes; | ||
get titleTag(): HdsAccordionItemTitleTags; | ||
/** | ||
* Get the class names to apply to the component. | ||
* @method classNames | ||
* @return {string} The "class" attribute to apply to the component. | ||
*/ | ||
get classNames(): string; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
1 change: 1 addition & 0 deletions
1
packages/components/declarations/components/hds/accordion/item/index.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
packages/components/declarations/components/hds/accordion/types.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
export declare enum HdsAccordionTypeValues { | ||
Card = "card", | ||
Flush = "flush" | ||
} | ||
export type HdsAccordionTypes = `${HdsAccordionTypeValues}`; | ||
export declare enum HdsAccordionSizeValues { | ||
Small = "small", | ||
Medium = "medium", | ||
Large = "large" | ||
} | ||
export type HdsAccordionSizes = `${HdsAccordionSizeValues}`; | ||
export declare enum HdsAccordionForceStateValues { | ||
Open = "open", | ||
Close = "close" | ||
} | ||
export type HdsAccordionForceStates = `${HdsAccordionForceStateValues}`; | ||
export declare enum HdsAccordionItemTitleTagValues { | ||
Div = "div", | ||
H1 = "h1", | ||
H2 = "h2", | ||
H3 = "h3", | ||
H4 = "h4", | ||
H5 = "h5", | ||
H6 = "h6" | ||
} | ||
export type HdsAccordionItemTitleTags = `${HdsAccordionItemTitleTagValues}`; | ||
//# sourceMappingURL=types.d.ts.map |
Oops, something went wrong.