@swc-react/action-menu 0.36.0 → 0.38.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 +35 -39
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -8,33 +8,31 @@ 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
- hidden?: boolean | undefined;
12
- rel?: string | undefined;
13
- id?: string | undefined;
14
- className?: string | undefined;
15
- color?: string | undefined;
16
- lang?: string | undefined;
17
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
18
11
  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
12
  draggable?: (boolean | "true" | "false") | undefined;
25
- translate?: "yes" | "no" | undefined;
13
+ hidden?: boolean | undefined;
14
+ lang?: string | undefined;
15
+ translate?: "no" | "yes" | undefined;
16
+ className?: string | undefined;
17
+ id?: string | undefined;
26
18
  prefix?: string | undefined;
27
19
  children?: import("react").ReactNode;
28
20
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
29
21
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
30
22
  nonce?: string | undefined;
23
+ rel?: string | undefined;
24
+ content?: string | undefined;
31
25
  'aria-describedby'?: string | undefined;
32
- 'aria-controls'?: string | undefined;
26
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
27
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
28
+ role?: import("react").AriaRole | undefined;
33
29
  'aria-selected'?: (boolean | "true" | "false") | undefined;
34
30
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
31
+ 'aria-label'?: string | undefined;
35
32
  'aria-activedescendant'?: string | undefined;
36
33
  'aria-labelledby'?: string | undefined;
37
34
  placeholder?: string | undefined;
35
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
38
36
  defaultChecked?: boolean | undefined;
39
37
  defaultValue?: string | number | readonly string[] | undefined;
40
38
  suppressContentEditableWarning?: boolean | undefined;
@@ -44,7 +42,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
44
42
  spellCheck?: (boolean | "true" | "false") | undefined;
45
43
  radioGroup?: string | undefined;
46
44
  about?: string | undefined;
47
- content?: string | undefined;
48
45
  datatype?: string | undefined;
49
46
  inlist?: any;
50
47
  property?: string | undefined;
@@ -55,6 +52,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
55
52
  autoCapitalize?: string | undefined;
56
53
  autoCorrect?: string | undefined;
57
54
  autoSave?: string | undefined;
55
+ color?: string | undefined;
58
56
  itemProp?: string | undefined;
59
57
  itemScope?: boolean | undefined;
60
58
  itemType?: string | undefined;
@@ -73,6 +71,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
73
71
  'aria-colindex'?: number | undefined;
74
72
  'aria-colindextext'?: string | undefined;
75
73
  'aria-colspan'?: number | undefined;
74
+ 'aria-controls'?: string | undefined;
76
75
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
77
76
  'aria-description'?: string | undefined;
78
77
  'aria-details'?: string | undefined;
@@ -84,6 +83,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
84
83
  'aria-keyshortcuts'?: string | undefined;
85
84
  'aria-level'?: number | undefined;
86
85
  '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,25 +289,13 @@ 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;
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>;
@@ -346,6 +334,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
346
334
  scrollLeft: number;
347
335
  scrollTop: number;
348
336
  readonly scrollWidth: number;
337
+ shadowRoot: ShadowRoot;
349
338
  readonly tagName: string;
350
339
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
351
340
  closest: {
@@ -402,6 +391,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
402
391
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
403
392
  webkitMatchesSelector: (selectors: string) => boolean;
404
393
  readonly baseURI: string;
394
+ readonly childNodes: NodeListOf<ChildNode>;
405
395
  readonly firstChild: ChildNode | null;
406
396
  readonly isConnected: boolean;
407
397
  readonly lastChild: ChildNode | null;
@@ -457,6 +447,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
457
447
  ariaDisabled: string | null;
458
448
  ariaExpanded: string | null;
459
449
  ariaHasPopup: string | null;
450
+ ariaHidden: string | null;
460
451
  ariaKeyShortcuts: string | null;
461
452
  ariaLabel: string | null;
462
453
  ariaLevel: string | null;
@@ -484,6 +475,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
484
475
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
485
476
  after: (...nodes: (string | Node)[]) => void;
486
477
  before: (...nodes: (string | Node)[]) => void;
478
+ remove: () => void;
487
479
  replaceWith: (...nodes: (string | Node)[]) => void;
488
480
  innerHTML: string;
489
481
  readonly nextElementSibling: Element | null;
@@ -600,26 +592,30 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
600
592
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
601
593
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
602
594
  readonly dataset: DOMStringMap;
603
- isLTR: boolean;
604
- hasVisibleFocusInTree: () => boolean;
595
+ readonly renderOptions: import("lit-html").RenderOptions;
596
+ slotHasContent: boolean;
597
+ placement: import("@floating-ui/utils").Placement;
598
+ open: boolean;
605
599
  focused: boolean;
600
+ value: string;
606
601
  readonly focusElement: HTMLElement;
602
+ isLTR: boolean;
603
+ hasVisibleFocusInTree: () => boolean;
607
604
  manageTextObservedSlot: () => void;
608
605
  selects: "single" | undefined;
609
606
  appliedLabel?: string | undefined;
610
607
  icons?: "none" | "only" | undefined;
611
608
  readonly: boolean;
612
- selectedItem?: import("menu/src").MenuItem | undefined;
613
- menuItems: import("menu/src").MenuItem[];
614
- optionsMenu: import("menu/src").Menu;
609
+ quiet: boolean;
610
+ selectedItem: import("menu/src").MenuItem | undefined;
611
+ _selectedItem?: import("menu/src").MenuItem | undefined;
615
612
  forceFocusVisible: () => void;
616
- onButtonBlur: () => void;
617
- onHelperFocus: () => void;
618
- onButtonFocus: () => void;
613
+ handleButtonBlur: () => void;
614
+ handleHelperFocus: () => void;
619
615
  handleChange: (event: Event) => void;
620
- setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
621
- overlayCloseCallback: () => Promise<void>;
616
+ _selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
622
617
  applyFocusElementLabel: (value?: string | undefined) => void;
618
+ static: "white" | "black" | undefined;
623
619
  } & {
624
620
  change: (e: Event) => void;
625
621
  }> & 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.36.0",
3
+ "version": "0.38.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.36.0"
33
+ "@spectrum-web-components/action-menu": "^0.38.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
43
+ "gitHead": "9a099b7543672f2fd4030833ab813b16c2cad62e"
44
44
  }