@swc-react/action-menu 0.35.1-rc.26 → 0.36.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 +38 -33
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -8,30 +8,33 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
8
8
  tabIndex?: number | undefined;
9
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
10
10
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
11
- accessKey?: string | undefined;
12
- draggable?: (boolean | "true" | "false") | undefined;
13
11
  hidden?: boolean | undefined;
12
+ rel?: string | undefined;
13
+ id?: string | undefined;
14
+ className?: string | undefined;
15
+ color?: string | undefined;
14
16
  lang?: string | undefined;
17
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
18
+ accessKey?: string | undefined;
19
+ role?: import("react").AriaRole | undefined;
20
+ 'aria-label'?: string | undefined;
21
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
22
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
23
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
24
+ draggable?: (boolean | "true" | "false") | undefined;
15
25
  translate?: "yes" | "no" | undefined;
16
- className?: string | undefined;
17
- id?: string | undefined;
18
26
  prefix?: string | undefined;
19
27
  children?: import("react").ReactNode;
20
28
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
21
29
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
30
  nonce?: string | undefined;
23
31
  '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;
32
+ 'aria-controls'?: string | undefined;
28
33
  'aria-selected'?: (boolean | "true" | "false") | undefined;
29
34
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
30
- 'aria-label'?: string | undefined;
31
35
  'aria-activedescendant'?: string | undefined;
32
36
  'aria-labelledby'?: string | undefined;
33
37
  placeholder?: string | undefined;
34
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
35
38
  defaultChecked?: boolean | undefined;
36
39
  defaultValue?: string | number | readonly string[] | undefined;
37
40
  suppressContentEditableWarning?: boolean | undefined;
@@ -52,7 +55,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
52
55
  autoCapitalize?: string | undefined;
53
56
  autoCorrect?: string | undefined;
54
57
  autoSave?: string | undefined;
55
- color?: string | undefined;
56
58
  itemProp?: string | undefined;
57
59
  itemScope?: boolean | undefined;
58
60
  itemType?: string | undefined;
@@ -71,7 +73,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
71
73
  'aria-colindex'?: number | undefined;
72
74
  'aria-colindextext'?: string | undefined;
73
75
  'aria-colspan'?: number | undefined;
74
- 'aria-controls'?: string | undefined;
75
76
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
76
77
  'aria-description'?: string | undefined;
77
78
  'aria-details'?: string | undefined;
@@ -83,7 +84,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
83
84
  'aria-keyshortcuts'?: string | undefined;
84
85
  'aria-level'?: number | undefined;
85
86
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
86
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
87
87
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
88
88
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
89
89
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
@@ -289,13 +289,25 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
289
289
  disabled: boolean;
290
290
  autofocus: boolean;
291
291
  normalize: () => void;
292
+ readonly renderOptions: import("lit-html").RenderOptions;
293
+ readonly target: HTMLButtonElement | import("action-menu/src").ActionMenu;
294
+ ariaHidden: string | null;
295
+ slotHasContent: boolean;
296
+ readonly childNodes: NodeListOf<ChildNode>;
297
+ shadowRoot: ShadowRoot;
298
+ open: boolean;
299
+ placement: import("overlay/src").Placement;
300
+ overlayOpenCallback: () => Promise<void>;
301
+ remove: () => void;
302
+ quiet: boolean;
303
+ value: string;
304
+ disconnectedCallback: () => void;
305
+ connectedCallback: () => void;
292
306
  readonly renderRoot: HTMLElement | ShadowRoot;
293
307
  isUpdatePending: boolean;
294
308
  hasUpdated: boolean;
295
309
  addController: (controller: import("lit").ReactiveController) => void;
296
310
  removeController: (controller: import("lit").ReactiveController) => void;
297
- connectedCallback: () => void;
298
- disconnectedCallback: () => void;
299
311
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
300
312
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
301
313
  readonly updateComplete: Promise<boolean>;
@@ -334,7 +346,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
334
346
  scrollLeft: number;
335
347
  scrollTop: number;
336
348
  readonly scrollWidth: number;
337
- shadowRoot: ShadowRoot;
338
349
  readonly tagName: string;
339
350
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
340
351
  closest: {
@@ -391,7 +402,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
391
402
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
392
403
  webkitMatchesSelector: (selectors: string) => boolean;
393
404
  readonly baseURI: string;
394
- readonly childNodes: NodeListOf<ChildNode>;
395
405
  readonly firstChild: ChildNode | null;
396
406
  readonly isConnected: boolean;
397
407
  readonly lastChild: ChildNode | null;
@@ -447,7 +457,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
447
457
  ariaDisabled: string | null;
448
458
  ariaExpanded: string | null;
449
459
  ariaHasPopup: string | null;
450
- ariaHidden: string | null;
451
460
  ariaKeyShortcuts: string | null;
452
461
  ariaLabel: string | null;
453
462
  ariaLevel: string | null;
@@ -475,7 +484,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
475
484
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
476
485
  after: (...nodes: (string | Node)[]) => void;
477
486
  before: (...nodes: (string | Node)[]) => void;
478
- remove: () => void;
479
487
  replaceWith: (...nodes: (string | Node)[]) => void;
480
488
  innerHTML: string;
481
489
  readonly nextElementSibling: Element | null;
@@ -592,29 +600,26 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
592
600
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
593
601
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
594
602
  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;
601
603
  isLTR: boolean;
602
604
  hasVisibleFocusInTree: () => boolean;
605
+ focused: boolean;
606
+ readonly focusElement: HTMLElement;
607
+ manageTextObservedSlot: () => void;
603
608
  selects: "single" | undefined;
604
609
  appliedLabel?: string | undefined;
605
610
  icons?: "none" | "only" | undefined;
606
611
  readonly: boolean;
607
- quiet: boolean;
608
- selectedItem: import("menu/src").MenuItem | undefined;
609
- _selectedItem?: import("menu/src").MenuItem | undefined;
612
+ selectedItem?: import("menu/src").MenuItem | undefined;
613
+ menuItems: import("menu/src").MenuItem[];
614
+ optionsMenu: import("menu/src").Menu;
610
615
  forceFocusVisible: () => void;
611
- handleButtonBlur: () => void;
612
- handleHelperFocus: () => void;
616
+ onButtonBlur: () => void;
617
+ onHelperFocus: () => void;
618
+ onButtonFocus: () => void;
613
619
  handleChange: (event: Event) => void;
614
- _selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
620
+ setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
621
+ overlayCloseCallback: () => Promise<void>;
615
622
  applyFocusElementLabel: (value?: string | undefined) => void;
616
- slotHasContent: boolean;
617
- manageTextObservedSlot: () => void;
618
623
  } & {
619
624
  change: (e: Event) => void;
620
625
  }> & import("react").RefAttributes<import("action-menu/src").ActionMenu>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/action-menu",
3
- "version": "0.35.1-rc.26+05bd08374",
3
+ "version": "0.36.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.35.1-rc.26+05bd08374"
33
+ "@spectrum-web-components/action-menu": "^0.36.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": "05bd0837417e287acdf2685d1ca05ab4d138fc95"
43
+ "gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
44
44
  }