@swc-react/accordion 0.34.1-rc.0 → 0.35.1-rc.15

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.
Files changed (2) hide show
  1. package/next.d.ts +33 -14
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Accordion: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
5
  slot?: string | undefined;
@@ -6,6 +7,7 @@ export declare const Accordion: import("react").ComponentType<Partial<{
6
7
  title?: string | undefined;
7
8
  tabIndex?: number | undefined;
8
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
10
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
9
11
  accessKey?: string | undefined;
10
12
  draggable?: (boolean | "true" | "false") | undefined;
11
13
  hidden?: boolean | undefined;
@@ -22,16 +24,20 @@ export declare const Accordion: import("react").ComponentType<Partial<{
22
24
  defaultValue?: string | number | readonly string[] | undefined;
23
25
  suppressContentEditableWarning?: boolean | undefined;
24
26
  suppressHydrationWarning?: boolean | undefined;
27
+ autoFocus?: boolean | undefined;
25
28
  contextMenu?: string | undefined;
26
29
  placeholder?: string | undefined;
27
30
  spellCheck?: (boolean | "true" | "false") | undefined;
28
31
  radioGroup?: string | undefined;
29
32
  role?: import("react").AriaRole | undefined;
30
33
  about?: string | undefined;
34
+ content?: string | undefined;
31
35
  datatype?: string | undefined;
32
36
  inlist?: any;
33
37
  property?: string | undefined;
38
+ rel?: string | undefined;
34
39
  resource?: string | undefined;
40
+ rev?: string | undefined;
35
41
  typeof?: string | undefined;
36
42
  vocab?: string | undefined;
37
43
  autoCapitalize?: string | undefined;
@@ -50,14 +56,18 @@ export declare const Accordion: import("react").ComponentType<Partial<{
50
56
  'aria-activedescendant'?: string | undefined;
51
57
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
52
58
  'aria-autocomplete'?: "both" | "none" | "list" | "inline" | undefined;
59
+ 'aria-braillelabel'?: string | undefined;
60
+ 'aria-brailleroledescription'?: string | undefined;
53
61
  'aria-busy'?: (boolean | "true" | "false") | undefined;
54
62
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
55
63
  'aria-colcount'?: number | undefined;
56
64
  'aria-colindex'?: number | undefined;
65
+ 'aria-colindextext'?: string | undefined;
57
66
  'aria-colspan'?: number | undefined;
58
67
  'aria-controls'?: string | undefined;
59
68
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
60
69
  'aria-describedby'?: string | undefined;
70
+ 'aria-description'?: string | undefined;
61
71
  'aria-details'?: string | undefined;
62
72
  'aria-dropeffect'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
63
73
  'aria-errormessage'?: string | undefined;
@@ -65,7 +75,6 @@ export declare const Accordion: import("react").ComponentType<Partial<{
65
75
  'aria-flowto'?: string | undefined;
66
76
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
67
77
  'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | undefined;
68
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
69
78
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
70
79
  'aria-keyshortcuts'?: string | undefined;
71
80
  'aria-label'?: string | undefined;
@@ -86,6 +95,7 @@ export declare const Accordion: import("react").ComponentType<Partial<{
86
95
  'aria-roledescription'?: string | undefined;
87
96
  'aria-rowcount'?: number | undefined;
88
97
  'aria-rowindex'?: number | undefined;
98
+ 'aria-rowindextext'?: string | undefined;
89
99
  'aria-rowspan'?: number | undefined;
90
100
  'aria-selected'?: (boolean | "true" | "false") | undefined;
91
101
  'aria-setsize'?: number | undefined;
@@ -95,7 +105,7 @@ export declare const Accordion: import("react").ComponentType<Partial<{
95
105
  'aria-valuenow'?: number | undefined;
96
106
  'aria-valuetext'?: string | undefined;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("accordion/src").Accordion> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("accordion/src").Accordion> | undefined;
@@ -273,17 +283,13 @@ export declare const Accordion: import("react").ComponentType<Partial<{
273
283
  animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
274
284
  autofocus: boolean;
275
285
  normalize: () => void;
276
- allowMultiple: boolean;
277
- density?: "compact" | "spacious" | undefined;
278
- focusGroupController: import("@spectrum-web-components/reactive-controllers/src/FocusGroup").FocusGroupController<import("accordion/src").AccordionItem>;
279
- readonly renderOptions: import("lit-html").RenderOptions;
280
- connectedCallback: () => void;
281
- disconnectedCallback: () => void;
282
286
  readonly renderRoot: HTMLElement | ShadowRoot;
283
287
  isUpdatePending: boolean;
284
288
  hasUpdated: boolean;
285
289
  addController: (controller: import("lit").ReactiveController) => void;
286
290
  removeController: (controller: import("lit").ReactiveController) => void;
291
+ connectedCallback: () => void;
292
+ disconnectedCallback: () => void;
287
293
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
288
294
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
289
295
  readonly updateComplete: Promise<boolean>;
@@ -580,6 +586,10 @@ export declare const Accordion: import("react").ComponentType<Partial<{
580
586
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
581
587
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
582
588
  readonly dataset: DOMStringMap;
589
+ allowMultiple: boolean;
590
+ density?: "compact" | "spacious" | undefined;
591
+ focusGroupController: import("@spectrum-web-components/reactive-controllers/src/FocusGroup").FocusGroupController<import("accordion/src").AccordionItem>;
592
+ readonly renderOptions: import("lit-html").RenderOptions;
583
593
  isLTR: boolean;
584
594
  hasVisibleFocusInTree: () => boolean;
585
595
  } & {}> & import("react").RefAttributes<import("accordion/src").Accordion>>;
@@ -590,6 +600,7 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
590
600
  title?: string | undefined;
591
601
  tabIndex?: number | undefined;
592
602
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
603
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
593
604
  accessKey?: string | undefined;
594
605
  draggable?: (boolean | "true" | "false") | undefined;
595
606
  hidden?: boolean | undefined;
@@ -606,16 +617,20 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
606
617
  defaultValue?: string | number | readonly string[] | undefined;
607
618
  suppressContentEditableWarning?: boolean | undefined;
608
619
  suppressHydrationWarning?: boolean | undefined;
620
+ autoFocus?: boolean | undefined;
609
621
  contextMenu?: string | undefined;
610
622
  placeholder?: string | undefined;
611
623
  spellCheck?: (boolean | "true" | "false") | undefined;
612
624
  radioGroup?: string | undefined;
613
625
  role?: import("react").AriaRole | undefined;
614
626
  about?: string | undefined;
627
+ content?: string | undefined;
615
628
  datatype?: string | undefined;
616
629
  inlist?: any;
617
630
  property?: string | undefined;
631
+ rel?: string | undefined;
618
632
  resource?: string | undefined;
633
+ rev?: string | undefined;
619
634
  typeof?: string | undefined;
620
635
  vocab?: string | undefined;
621
636
  autoCapitalize?: string | undefined;
@@ -634,14 +649,18 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
634
649
  'aria-activedescendant'?: string | undefined;
635
650
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
636
651
  'aria-autocomplete'?: "both" | "none" | "list" | "inline" | undefined;
652
+ 'aria-braillelabel'?: string | undefined;
653
+ 'aria-brailleroledescription'?: string | undefined;
637
654
  'aria-busy'?: (boolean | "true" | "false") | undefined;
638
655
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
639
656
  'aria-colcount'?: number | undefined;
640
657
  'aria-colindex'?: number | undefined;
658
+ 'aria-colindextext'?: string | undefined;
641
659
  'aria-colspan'?: number | undefined;
642
660
  'aria-controls'?: string | undefined;
643
661
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
644
662
  'aria-describedby'?: string | undefined;
663
+ 'aria-description'?: string | undefined;
645
664
  'aria-details'?: string | undefined;
646
665
  'aria-dropeffect'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
647
666
  'aria-errormessage'?: string | undefined;
@@ -649,7 +668,6 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
649
668
  'aria-flowto'?: string | undefined;
650
669
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
651
670
  'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | undefined;
652
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
653
671
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
654
672
  'aria-keyshortcuts'?: string | undefined;
655
673
  'aria-label'?: string | undefined;
@@ -670,6 +688,7 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
670
688
  'aria-roledescription'?: string | undefined;
671
689
  'aria-rowcount'?: number | undefined;
672
690
  'aria-rowindex'?: number | undefined;
691
+ 'aria-rowindextext'?: string | undefined;
673
692
  'aria-rowspan'?: number | undefined;
674
693
  'aria-selected'?: (boolean | "true" | "false") | undefined;
675
694
  'aria-setsize'?: number | undefined;
@@ -679,7 +698,7 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
679
698
  'aria-valuenow'?: number | undefined;
680
699
  'aria-valuetext'?: string | undefined;
681
700
  dangerouslySetInnerHTML?: {
682
- __html: string;
701
+ __html: string | TrustedHTML;
683
702
  } | undefined;
684
703
  onCopy?: import("react").ClipboardEventHandler<import("accordion/src").AccordionItem> | undefined;
685
704
  onCopyCapture?: import("react").ClipboardEventHandler<import("accordion/src").AccordionItem> | undefined;
@@ -859,15 +878,13 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
859
878
  disabled: boolean;
860
879
  autofocus: boolean;
861
880
  normalize: () => void;
862
- open: boolean;
863
- readonly renderOptions: import("lit-html").RenderOptions;
864
- connectedCallback: () => void;
865
- disconnectedCallback: () => void;
866
881
  readonly renderRoot: HTMLElement | ShadowRoot;
867
882
  isUpdatePending: boolean;
868
883
  hasUpdated: boolean;
869
884
  addController: (controller: import("lit").ReactiveController) => void;
870
885
  removeController: (controller: import("lit").ReactiveController) => void;
886
+ connectedCallback: () => void;
887
+ disconnectedCallback: () => void;
871
888
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
872
889
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
873
890
  readonly updateComplete: Promise<boolean>;
@@ -1164,6 +1181,8 @@ export declare const AccordionItem: import("react").ComponentType<Partial<{
1164
1181
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1165
1182
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1166
1183
  readonly dataset: DOMStringMap;
1184
+ open: boolean;
1185
+ readonly renderOptions: import("lit-html").RenderOptions;
1167
1186
  isLTR: boolean;
1168
1187
  hasVisibleFocusInTree: () => boolean;
1169
1188
  readonly focusElement: HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/accordion",
3
- "version": "0.34.1-rc.0+1647bfed5",
3
+ "version": "0.35.1-rc.15+9b76319e4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit-labs/react": "^1.1.1",
33
- "@spectrum-web-components/accordion": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/accordion": "^0.35.1-rc.15+9b76319e4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
43
+ "gitHead": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
44
44
  }