@swc-react/top-nav 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 +34 -16
  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 TopNav: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
5
  slot?: string | undefined;
@@ -6,10 +7,9 @@ export declare const TopNav: import("react").ComponentType<Partial<{
6
7
  title?: string | undefined;
7
8
  tabIndex?: number | undefined;
8
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
10
+ rel?: string | undefined;
9
11
  id?: string | undefined;
10
12
  className?: string | undefined;
11
- role?: import("react").AriaRole | undefined;
12
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
13
13
  accessKey?: string | undefined;
14
14
  draggable?: (boolean | "true" | "false") | undefined;
15
15
  hidden?: boolean | undefined;
@@ -20,6 +20,8 @@ export declare const TopNav: import("react").ComponentType<Partial<{
20
20
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
21
21
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
22
  nonce?: string | undefined;
23
+ role?: import("react").AriaRole | undefined;
24
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
23
25
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
24
26
  'aria-orientation'?: "vertical" | "horizontal" | undefined;
25
27
  'aria-controls'?: string | undefined;
@@ -28,15 +30,18 @@ export declare const TopNav: import("react").ComponentType<Partial<{
28
30
  defaultValue?: string | number | readonly string[] | undefined;
29
31
  suppressContentEditableWarning?: boolean | undefined;
30
32
  suppressHydrationWarning?: boolean | undefined;
33
+ autoFocus?: boolean | undefined;
31
34
  contextMenu?: string | undefined;
32
35
  placeholder?: string | undefined;
33
36
  spellCheck?: (boolean | "true" | "false") | undefined;
34
37
  radioGroup?: string | undefined;
35
38
  about?: string | undefined;
39
+ content?: string | undefined;
36
40
  datatype?: string | undefined;
37
41
  inlist?: any;
38
42
  property?: string | undefined;
39
43
  resource?: string | undefined;
44
+ rev?: string | undefined;
40
45
  typeof?: string | undefined;
41
46
  vocab?: string | undefined;
42
47
  autoCapitalize?: string | undefined;
@@ -54,14 +59,18 @@ export declare const TopNav: import("react").ComponentType<Partial<{
54
59
  is?: string | undefined;
55
60
  'aria-activedescendant'?: string | undefined;
56
61
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
57
- 'aria-autocomplete'?: "both" | "list" | "none" | "inline" | undefined;
62
+ 'aria-autocomplete'?: "both" | "none" | "list" | "inline" | undefined;
63
+ 'aria-braillelabel'?: string | undefined;
64
+ 'aria-brailleroledescription'?: string | undefined;
58
65
  'aria-busy'?: (boolean | "true" | "false") | undefined;
59
66
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
60
67
  'aria-colcount'?: number | undefined;
61
68
  'aria-colindex'?: number | undefined;
69
+ 'aria-colindextext'?: string | undefined;
62
70
  'aria-colspan'?: number | undefined;
63
71
  'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
64
72
  'aria-describedby'?: string | undefined;
73
+ 'aria-description'?: string | undefined;
65
74
  'aria-details'?: string | undefined;
66
75
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
67
76
  'aria-errormessage'?: string | undefined;
@@ -87,6 +96,7 @@ export declare const TopNav: import("react").ComponentType<Partial<{
87
96
  'aria-roledescription'?: string | undefined;
88
97
  'aria-rowcount'?: number | undefined;
89
98
  'aria-rowindex'?: number | undefined;
99
+ 'aria-rowindextext'?: string | undefined;
90
100
  'aria-rowspan'?: number | undefined;
91
101
  'aria-setsize'?: number | undefined;
92
102
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
@@ -95,7 +105,7 @@ export declare const TopNav: 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("top-nav/src").TopNav> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("top-nav/src").TopNav> | undefined;
@@ -276,14 +286,13 @@ export declare const TopNav: import("react").ComponentType<Partial<{
276
286
  normalize: () => void;
277
287
  ariaHidden: string | null;
278
288
  readonly childNodes: NodeListOf<ChildNode>;
279
- selected: string | undefined;
280
- connectedCallback: () => void;
281
- disconnectedCallback: () => void;
282
289
  readonly renderRoot: HTMLElement | ShadowRoot;
283
290
  isUpdatePending: boolean;
284
291
  hasUpdated: boolean;
285
292
  addController: (controller: import("lit").ReactiveController) => void;
286
293
  removeController: (controller: import("lit").ReactiveController) => void;
294
+ connectedCallback: () => void;
295
+ disconnectedCallback: () => void;
287
296
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
288
297
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
289
298
  readonly updateComplete: Promise<boolean>;
@@ -578,6 +587,7 @@ export declare const TopNav: import("react").ComponentType<Partial<{
578
587
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
579
588
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
580
589
  readonly dataset: DOMStringMap;
590
+ selected: string | undefined;
581
591
  isLTR: boolean;
582
592
  hasVisibleFocusInTree: () => boolean;
583
593
  quiet: boolean;
@@ -591,10 +601,9 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
591
601
  title?: string | undefined;
592
602
  tabIndex?: number | undefined;
593
603
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
604
+ rel?: string | undefined;
594
605
  id?: string | undefined;
595
606
  className?: string | undefined;
596
- role?: import("react").AriaRole | undefined;
597
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
598
607
  accessKey?: string | undefined;
599
608
  draggable?: (boolean | "true" | "false") | undefined;
600
609
  hidden?: boolean | undefined;
@@ -605,6 +614,8 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
605
614
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
606
615
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
607
616
  nonce?: string | undefined;
617
+ role?: import("react").AriaRole | undefined;
618
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
608
619
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
609
620
  'aria-orientation'?: "vertical" | "horizontal" | undefined;
610
621
  'aria-controls'?: string | undefined;
@@ -613,15 +624,18 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
613
624
  defaultValue?: string | number | readonly string[] | undefined;
614
625
  suppressContentEditableWarning?: boolean | undefined;
615
626
  suppressHydrationWarning?: boolean | undefined;
627
+ autoFocus?: boolean | undefined;
616
628
  contextMenu?: string | undefined;
617
629
  placeholder?: string | undefined;
618
630
  spellCheck?: (boolean | "true" | "false") | undefined;
619
631
  radioGroup?: string | undefined;
620
632
  about?: string | undefined;
633
+ content?: string | undefined;
621
634
  datatype?: string | undefined;
622
635
  inlist?: any;
623
636
  property?: string | undefined;
624
637
  resource?: string | undefined;
638
+ rev?: string | undefined;
625
639
  typeof?: string | undefined;
626
640
  vocab?: string | undefined;
627
641
  autoCapitalize?: string | undefined;
@@ -639,14 +653,18 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
639
653
  is?: string | undefined;
640
654
  'aria-activedescendant'?: string | undefined;
641
655
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
642
- 'aria-autocomplete'?: "both" | "list" | "none" | "inline" | undefined;
656
+ 'aria-autocomplete'?: "both" | "none" | "list" | "inline" | undefined;
657
+ 'aria-braillelabel'?: string | undefined;
658
+ 'aria-brailleroledescription'?: string | undefined;
643
659
  'aria-busy'?: (boolean | "true" | "false") | undefined;
644
660
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
645
661
  'aria-colcount'?: number | undefined;
646
662
  'aria-colindex'?: number | undefined;
663
+ 'aria-colindextext'?: string | undefined;
647
664
  'aria-colspan'?: number | undefined;
648
665
  'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
649
666
  'aria-describedby'?: string | undefined;
667
+ 'aria-description'?: string | undefined;
650
668
  'aria-details'?: string | undefined;
651
669
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
652
670
  'aria-errormessage'?: string | undefined;
@@ -672,6 +690,7 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
672
690
  'aria-roledescription'?: string | undefined;
673
691
  'aria-rowcount'?: number | undefined;
674
692
  'aria-rowindex'?: number | undefined;
693
+ 'aria-rowindextext'?: string | undefined;
675
694
  'aria-rowspan'?: number | undefined;
676
695
  'aria-setsize'?: number | undefined;
677
696
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
@@ -680,7 +699,7 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
680
699
  'aria-valuenow'?: number | undefined;
681
700
  'aria-valuetext'?: string | undefined;
682
701
  dangerouslySetInnerHTML?: {
683
- __html: string;
702
+ __html: string | TrustedHTML;
684
703
  } | undefined;
685
704
  onCopy?: import("react").ClipboardEventHandler<import("top-nav/src").TopNavItem> | undefined;
686
705
  onCopyCapture?: import("react").ClipboardEventHandler<import("top-nav/src").TopNavItem> | undefined;
@@ -863,18 +882,15 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
863
882
  download?: string | undefined;
864
883
  href?: string | undefined;
865
884
  target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
866
- rel?: string | undefined;
867
885
  ariaHidden: string | null;
868
886
  readonly childNodes: NodeListOf<ChildNode>;
869
- selected: boolean;
870
- value: string;
871
- connectedCallback: () => void;
872
- disconnectedCallback: () => void;
873
887
  readonly renderRoot: HTMLElement | ShadowRoot;
874
888
  isUpdatePending: boolean;
875
889
  hasUpdated: boolean;
876
890
  addController: (controller: import("lit").ReactiveController) => void;
877
891
  removeController: (controller: import("lit").ReactiveController) => void;
892
+ connectedCallback: () => void;
893
+ disconnectedCallback: () => void;
878
894
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
879
895
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
880
896
  readonly updateComplete: Promise<boolean>;
@@ -1169,6 +1185,8 @@ export declare const TopNavItem: import("react").ComponentType<Partial<{
1169
1185
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1170
1186
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1171
1187
  readonly dataset: DOMStringMap;
1188
+ selected: boolean;
1189
+ value: string;
1172
1190
  isLTR: boolean;
1173
1191
  hasVisibleFocusInTree: () => boolean;
1174
1192
  readonly focusElement: HTMLAnchorElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/top-nav",
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/top-nav": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/top-nav": "^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
  }