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
0 commit comments