@swc-react/action-menu 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 +48 -43
  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 ActionMenu: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
5
  slot?: string | undefined;
@@ -6,47 +7,52 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
6
7
  title?: string | undefined;
7
8
  tabIndex?: number | undefined;
8
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
9
- hidden?: boolean | undefined;
10
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
10
11
  accessKey?: string | undefined;
11
- color?: string | undefined;
12
- lang?: string | undefined;
13
- 'aria-describedby'?: string | undefined;
14
- id?: string | undefined;
15
- className?: string | undefined;
16
- role?: import("react").AriaRole | undefined;
17
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
18
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
19
12
  draggable?: (boolean | "true" | "false") | undefined;
13
+ hidden?: boolean | undefined;
14
+ lang?: string | undefined;
20
15
  translate?: "yes" | "no" | undefined;
16
+ className?: string | undefined;
17
+ id?: string | undefined;
21
18
  prefix?: string | undefined;
22
19
  children?: import("react").ReactNode;
23
20
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
24
21
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
25
22
  nonce?: string | undefined;
23
+ 'aria-describedby'?: string | undefined;
24
+ rel?: string | undefined;
25
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
26
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
27
+ role?: import("react").AriaRole | undefined;
28
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
29
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
26
30
  'aria-label'?: string | undefined;
27
31
  'aria-activedescendant'?: string | undefined;
28
32
  'aria-labelledby'?: string | undefined;
29
33
  placeholder?: string | undefined;
30
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
31
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
32
34
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
33
35
  defaultChecked?: boolean | undefined;
34
36
  defaultValue?: string | number | readonly string[] | undefined;
35
37
  suppressContentEditableWarning?: boolean | undefined;
36
38
  suppressHydrationWarning?: boolean | undefined;
39
+ autoFocus?: boolean | undefined;
37
40
  contextMenu?: string | undefined;
38
41
  spellCheck?: (boolean | "true" | "false") | undefined;
39
42
  radioGroup?: string | undefined;
40
43
  about?: string | undefined;
44
+ content?: string | undefined;
41
45
  datatype?: string | undefined;
42
46
  inlist?: any;
43
47
  property?: string | undefined;
44
48
  resource?: string | undefined;
49
+ rev?: string | undefined;
45
50
  typeof?: string | undefined;
46
51
  vocab?: string | undefined;
47
52
  autoCapitalize?: string | undefined;
48
53
  autoCorrect?: string | undefined;
49
54
  autoSave?: string | undefined;
55
+ color?: string | undefined;
50
56
  itemProp?: string | undefined;
51
57
  itemScope?: boolean | undefined;
52
58
  itemType?: string | undefined;
@@ -58,18 +64,21 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
58
64
  is?: string | undefined;
59
65
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
60
66
  'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
67
+ 'aria-braillelabel'?: string | undefined;
68
+ 'aria-brailleroledescription'?: string | undefined;
61
69
  'aria-busy'?: (boolean | "true" | "false") | undefined;
62
70
  'aria-colcount'?: number | undefined;
63
71
  'aria-colindex'?: number | undefined;
72
+ 'aria-colindextext'?: string | undefined;
64
73
  'aria-colspan'?: number | undefined;
65
74
  'aria-controls'?: string | undefined;
66
75
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
76
+ 'aria-description'?: string | undefined;
67
77
  'aria-details'?: string | undefined;
68
78
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
69
79
  'aria-errormessage'?: string | undefined;
70
80
  'aria-flowto'?: string | undefined;
71
81
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
72
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
73
82
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
74
83
  'aria-keyshortcuts'?: string | undefined;
75
84
  'aria-level'?: number | undefined;
@@ -87,6 +96,7 @@ export declare const ActionMenu: 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 ActionMenu: 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("action-menu/src").ActionMenu> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("action-menu/src").ActionMenu> | undefined;
@@ -279,35 +289,13 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
279
289
  disabled: boolean;
280
290
  autofocus: boolean;
281
291
  normalize: () => void;
282
- addEventListener: {
283
- <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
284
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
285
- };
286
- dispatchEvent: (event: Event) => boolean;
287
- removeEventListener: {
288
- <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
289
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
290
- };
291
- readonly target: HTMLButtonElement | import("action-menu/src").ActionMenu;
292
- open: boolean;
293
- readonly assignedSlot: HTMLSlotElement | null;
294
- placement: import("@floating-ui/core").Placement;
295
- shadowRoot: ShadowRoot;
296
- readonly parentElement: HTMLElement | null;
297
- readonly renderOptions: import("lit-html").RenderOptions;
298
- ariaHidden: string | null;
299
- slotHasContent: boolean;
300
- readonly childNodes: NodeListOf<ChildNode>;
301
- focused: boolean;
302
- value: string;
303
- readonly focusElement: HTMLElement;
304
- connectedCallback: () => void;
305
- disconnectedCallback: () => void;
306
292
  readonly renderRoot: HTMLElement | ShadowRoot;
307
293
  isUpdatePending: boolean;
308
294
  hasUpdated: boolean;
309
295
  addController: (controller: import("lit").ReactiveController) => void;
310
296
  removeController: (controller: import("lit").ReactiveController) => void;
297
+ connectedCallback: () => void;
298
+ disconnectedCallback: () => void;
311
299
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
312
300
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
313
301
  readonly updateComplete: Promise<boolean>;
@@ -323,6 +311,14 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
323
311
  outerText: string;
324
312
  spellcheck: boolean;
325
313
  attachInternals: () => ElementInternals;
314
+ addEventListener: {
315
+ <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
316
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
317
+ };
318
+ removeEventListener: {
319
+ <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
320
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
321
+ };
326
322
  readonly classList: DOMTokenList;
327
323
  readonly clientHeight: number;
328
324
  readonly clientLeft: number;
@@ -338,6 +334,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
338
334
  scrollLeft: number;
339
335
  scrollTop: number;
340
336
  readonly scrollWidth: number;
337
+ shadowRoot: ShadowRoot;
341
338
  readonly tagName: string;
342
339
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
343
340
  closest: {
@@ -394,6 +391,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
394
391
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
395
392
  webkitMatchesSelector: (selectors: string) => boolean;
396
393
  readonly baseURI: string;
394
+ readonly childNodes: NodeListOf<ChildNode>;
397
395
  readonly firstChild: ChildNode | null;
398
396
  readonly isConnected: boolean;
399
397
  readonly lastChild: ChildNode | null;
@@ -401,6 +399,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
401
399
  readonly nodeName: string;
402
400
  readonly nodeType: number;
403
401
  nodeValue: string | null;
402
+ readonly parentElement: HTMLElement | null;
404
403
  readonly parentNode: ParentNode | null;
405
404
  readonly previousSibling: ChildNode | null;
406
405
  textContent: string | null;
@@ -436,6 +435,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
436
435
  readonly NOTATION_NODE: number;
437
436
  readonly PROCESSING_INSTRUCTION_NODE: number;
438
437
  readonly TEXT_NODE: number;
438
+ dispatchEvent: (event: Event) => boolean;
439
439
  ariaAtomic: string | null;
440
440
  ariaAutoComplete: string | null;
441
441
  ariaBusy: string | null;
@@ -447,6 +447,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
447
447
  ariaDisabled: string | null;
448
448
  ariaExpanded: string | null;
449
449
  ariaHasPopup: string | null;
450
+ ariaHidden: string | null;
450
451
  ariaKeyShortcuts: string | null;
451
452
  ariaLabel: string | null;
452
453
  ariaLevel: string | null;
@@ -495,6 +496,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
495
496
  <E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
496
497
  };
497
498
  replaceChildren: (...nodes: (string | Node)[]) => void;
499
+ readonly assignedSlot: HTMLSlotElement | null;
498
500
  oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
499
501
  oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
500
502
  onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
@@ -590,25 +592,28 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
590
592
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
591
593
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
592
594
  readonly dataset: DOMStringMap;
595
+ placement: import("@floating-ui/utils").Placement;
596
+ open: boolean;
597
+ readonly renderOptions: import("lit-html").RenderOptions;
598
+ focused: boolean;
599
+ value: string;
600
+ readonly focusElement: HTMLElement;
593
601
  isLTR: boolean;
594
602
  hasVisibleFocusInTree: () => boolean;
595
603
  selects: "single" | undefined;
596
604
  appliedLabel?: string | undefined;
597
605
  icons?: "none" | "only" | undefined;
598
606
  readonly: boolean;
599
- optionsMenu: import("menu/src").Menu;
600
607
  quiet: boolean;
601
608
  selectedItem: import("menu/src").MenuItem | undefined;
602
- readonly menuItems: import("menu/src").MenuItem[];
603
609
  _selectedItem?: import("menu/src").MenuItem | undefined;
604
610
  forceFocusVisible: () => void;
605
- onButtonBlur: () => void;
606
- onHelperFocus: () => void;
607
- onButtonFocus: () => void;
611
+ handleButtonBlur: () => void;
612
+ handleHelperFocus: () => void;
608
613
  handleChange: (event: Event) => void;
609
- setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
610
614
  _selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
611
615
  applyFocusElementLabel: (value?: string | undefined) => void;
616
+ slotHasContent: boolean;
612
617
  manageTextObservedSlot: () => void;
613
618
  } & {
614
619
  change: (e: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/action-menu",
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/action-menu": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/action-menu": "^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
  }