@swc-react/action-menu 0.33.3-overlay.66 → 0.34.0

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 +37 -35
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -7,15 +7,18 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
7
7
  tabIndex?: number | undefined;
8
8
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
9
9
  hidden?: boolean | undefined;
10
- accessKey?: string | undefined;
11
- color?: string | undefined;
12
- lang?: string | undefined;
13
- 'aria-describedby'?: string | undefined;
14
10
  id?: string | undefined;
15
11
  className?: string | undefined;
12
+ color?: string | undefined;
13
+ lang?: string | undefined;
14
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
15
+ accessKey?: string | undefined;
16
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
16
17
  role?: import("react").AriaRole | undefined;
17
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
18
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
18
+ 'aria-label'?: string | undefined;
19
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
20
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
21
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
19
22
  draggable?: (boolean | "true" | "false") | undefined;
20
23
  translate?: "yes" | "no" | undefined;
21
24
  prefix?: string | undefined;
@@ -23,11 +26,12 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
23
26
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
24
27
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
25
28
  nonce?: string | undefined;
26
- 'aria-label'?: string | undefined;
29
+ 'aria-describedby'?: string | undefined;
30
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
31
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
27
32
  'aria-activedescendant'?: string | undefined;
28
33
  'aria-labelledby'?: string | undefined;
29
34
  placeholder?: string | undefined;
30
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
31
35
  defaultChecked?: boolean | undefined;
32
36
  defaultValue?: string | number | readonly string[] | undefined;
33
37
  suppressContentEditableWarning?: boolean | undefined;
@@ -65,16 +69,12 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
65
69
  'aria-details'?: string | undefined;
66
70
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
67
71
  'aria-errormessage'?: string | undefined;
68
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
69
72
  'aria-flowto'?: string | undefined;
70
73
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
71
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
72
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
73
74
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
74
75
  'aria-keyshortcuts'?: string | undefined;
75
76
  'aria-level'?: number | undefined;
76
77
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
77
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
78
78
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
79
79
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
80
80
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
@@ -279,30 +279,20 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
279
279
  disabled: boolean;
280
280
  autofocus: boolean;
281
281
  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
282
  readonly target: HTMLButtonElement | import("action-menu/src").ActionMenu;
292
- open: boolean;
293
- readonly assignedSlot: HTMLSlotElement | null;
294
- placement: import("@floating-ui/core").Placement;
283
+ ariaHidden: string | null;
295
284
  shadowRoot: ShadowRoot;
296
- readonly parentElement: HTMLElement | null;
285
+ open: boolean;
297
286
  readonly renderOptions: import("lit-html").RenderOptions;
298
- ariaHidden: string | null;
287
+ placement: import("overlay/src").Placement;
288
+ overlayOpenCallback: () => Promise<void>;
289
+ remove: () => void;
299
290
  slotHasContent: boolean;
300
291
  readonly childNodes: NodeListOf<ChildNode>;
301
- focused: boolean;
292
+ quiet: boolean;
302
293
  value: string;
303
- readonly focusElement: HTMLElement;
304
- connectedCallback: () => void;
305
294
  disconnectedCallback: () => void;
295
+ connectedCallback: () => void;
306
296
  readonly renderRoot: HTMLElement | ShadowRoot;
307
297
  isUpdatePending: boolean;
308
298
  hasUpdated: boolean;
@@ -323,6 +313,14 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
323
313
  outerText: string;
324
314
  spellcheck: boolean;
325
315
  attachInternals: () => ElementInternals;
316
+ addEventListener: {
317
+ <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
318
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
319
+ };
320
+ removeEventListener: {
321
+ <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
322
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
323
+ };
326
324
  readonly classList: DOMTokenList;
327
325
  readonly clientHeight: number;
328
326
  readonly clientLeft: number;
@@ -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;
@@ -474,7 +474,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
474
474
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
475
475
  after: (...nodes: (string | Node)[]) => void;
476
476
  before: (...nodes: (string | Node)[]) => void;
477
- remove: () => void;
478
477
  replaceWith: (...nodes: (string | Node)[]) => void;
479
478
  innerHTML: string;
480
479
  readonly nextElementSibling: Element | null;
@@ -495,6 +494,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
495
494
  <E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
496
495
  };
497
496
  replaceChildren: (...nodes: (string | Node)[]) => void;
497
+ readonly assignedSlot: HTMLSlotElement | null;
498
498
  oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
499
499
  oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
500
500
  onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
@@ -592,21 +592,23 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
592
592
  readonly dataset: DOMStringMap;
593
593
  isLTR: boolean;
594
594
  hasVisibleFocusInTree: () => boolean;
595
+ focused: boolean;
596
+ readonly focusElement: HTMLElement;
595
597
  selects: "single" | undefined;
598
+ appliedLabel?: string | undefined;
596
599
  icons?: "none" | "only" | undefined;
597
600
  readonly: boolean;
601
+ selectedItem?: import("menu/src").MenuItem | undefined;
602
+ menuItems: import("menu/src").MenuItem[];
598
603
  optionsMenu: import("menu/src").Menu;
599
- quiet: boolean;
600
- selectedItem: import("menu/src").MenuItem | undefined;
601
- readonly menuItems: import("menu/src").MenuItem[];
602
- _selectedItem?: import("menu/src").MenuItem | undefined;
603
604
  forceFocusVisible: () => void;
604
605
  onButtonBlur: () => void;
605
606
  onHelperFocus: () => void;
606
607
  onButtonFocus: () => void;
607
608
  handleChange: (event: Event) => void;
608
609
  setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
609
- _selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
610
+ overlayCloseCallback: () => Promise<void>;
611
+ applyFocusElementLabel: (value?: string | undefined) => void;
610
612
  manageTextObservedSlot: () => void;
611
613
  } & {
612
614
  change: (e: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/action-menu",
3
- "version": "0.33.3-overlay.66+30e96d5ea",
3
+ "version": "0.34.0",
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.33.3-overlay.66+30e96d5ea"
33
+ "@spectrum-web-components/action-menu": "^0.34.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "30e96d5eaed31b7b2af916d78cabccb722889fe3"
43
+ "gitHead": "f9b3294d67cdd52b2c36897cdc1c20ceaeb019cf"
44
44
  }