@swc-react/action-menu 0.31.1-react.3 → 0.32.1-overlay.33
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.
- package/index.d.ts +1 -0
- package/index.dev.js +1 -0
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/next.d.ts +33 -33
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EventName } from '@lit-labs/react';
|
|
2
2
|
import { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';
|
|
3
|
+
import '@spectrum-web-components/action-menu/sp-action-menu.js';
|
|
3
4
|
export declare const ActionMenu: import("@lit-labs/react").ReactWebComponent<SpActionMenu, {
|
|
4
5
|
change: EventName<Event>;
|
|
5
6
|
}>;
|
package/index.dev.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { createComponent } from "@lit-labs/react";
|
|
4
4
|
import { ActionMenu as SpActionMenu } from "@spectrum-web-components/action-menu";
|
|
5
|
+
import "@spectrum-web-components/action-menu/sp-action-menu.js";
|
|
5
6
|
export const ActionMenu = createComponent({
|
|
6
7
|
displayName: "ActionMenu",
|
|
7
8
|
elementClass: SpActionMenu,
|
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>,\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,cAAc,oBAAoB;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nimport '@spectrum-web-components/action-menu/sp-action-menu.js';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>,\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,cAAc,oBAAoB;AAE3C,OAAO;AAEA,aAAM,aAAa,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA,EACZ;AACJ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{ActionMenu as n}from"@spectrum-web-components/action-menu";export const ActionMenu=t({displayName:"ActionMenu",elementClass:n,react:e,tagName:"sp-action-menu",events:{change:"change"}});
|
|
1
|
+
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{ActionMenu as n}from"@spectrum-web-components/action-menu";import"@spectrum-web-components/action-menu/sp-action-menu.js";export const ActionMenu=t({displayName:"ActionMenu",elementClass:n,react:e,tagName:"sp-action-menu",events:{change:"change"}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>,\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
|
|
5
|
-
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,cAAcC,MAAoB,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nimport '@spectrum-web-components/action-menu/sp-action-menu.js';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>,\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,cAAcC,MAAoB,uCAE3C,MAAO,yDAEA,aAAM,WAAaD,EAAgB,CACtC,YAAa,aACb,aAAcC,EACd,MAAOF,EACP,QAAS,iBACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpActionMenu"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -7,16 +7,15 @@ 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
|
-
|
|
11
|
-
className?: string | undefined;
|
|
10
|
+
accessKey?: string | undefined;
|
|
12
11
|
color?: string | undefined;
|
|
13
12
|
lang?: string | undefined;
|
|
14
|
-
'aria-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
'aria-describedby'?: string | undefined;
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
className?: string | undefined;
|
|
17
16
|
role?: import("react").AriaRole | undefined;
|
|
18
|
-
'aria-
|
|
19
|
-
'aria-
|
|
17
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
18
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
20
19
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
21
20
|
translate?: "yes" | "no" | undefined;
|
|
22
21
|
prefix?: string | undefined;
|
|
@@ -24,12 +23,11 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
24
23
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
25
24
|
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
26
25
|
nonce?: string | undefined;
|
|
27
|
-
'aria-
|
|
28
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
26
|
+
'aria-label'?: string | undefined;
|
|
30
27
|
'aria-activedescendant'?: string | undefined;
|
|
31
28
|
'aria-labelledby'?: string | undefined;
|
|
32
29
|
placeholder?: string | undefined;
|
|
30
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
33
31
|
defaultChecked?: boolean | undefined;
|
|
34
32
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
35
33
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -71,10 +69,12 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
71
69
|
'aria-flowto'?: string | undefined;
|
|
72
70
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
73
71
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
72
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
74
73
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
75
74
|
'aria-keyshortcuts'?: string | undefined;
|
|
76
75
|
'aria-level'?: number | undefined;
|
|
77
76
|
'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,20 +279,30 @@ 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
|
+
};
|
|
282
291
|
readonly target: HTMLButtonElement | import("action-menu/src").ActionMenu;
|
|
283
|
-
ariaHidden: string | null;
|
|
284
|
-
shadowRoot: ShadowRoot;
|
|
285
292
|
open: boolean;
|
|
293
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
294
|
+
placement: import("@floating-ui/core").Placement;
|
|
295
|
+
shadowRoot: ShadowRoot;
|
|
296
|
+
readonly parentElement: HTMLElement | null;
|
|
286
297
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
287
|
-
|
|
288
|
-
overlayOpenCallback: () => Promise<void>;
|
|
289
|
-
remove: () => void;
|
|
298
|
+
ariaHidden: string | null;
|
|
290
299
|
slotHasContent: boolean;
|
|
291
300
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
292
|
-
|
|
301
|
+
focused: boolean;
|
|
293
302
|
value: string;
|
|
294
|
-
|
|
303
|
+
readonly focusElement: HTMLElement;
|
|
295
304
|
connectedCallback: () => void;
|
|
305
|
+
disconnectedCallback: () => void;
|
|
296
306
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
297
307
|
isUpdatePending: boolean;
|
|
298
308
|
hasUpdated: boolean;
|
|
@@ -313,14 +323,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
313
323
|
outerText: string;
|
|
314
324
|
spellcheck: boolean;
|
|
315
325
|
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
|
-
};
|
|
324
326
|
readonly classList: DOMTokenList;
|
|
325
327
|
readonly clientHeight: number;
|
|
326
328
|
readonly clientLeft: number;
|
|
@@ -399,7 +401,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
399
401
|
readonly nodeName: string;
|
|
400
402
|
readonly nodeType: number;
|
|
401
403
|
nodeValue: string | null;
|
|
402
|
-
readonly parentElement: HTMLElement | null;
|
|
403
404
|
readonly parentNode: ParentNode | null;
|
|
404
405
|
readonly previousSibling: ChildNode | null;
|
|
405
406
|
textContent: string | null;
|
|
@@ -435,7 +436,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
435
436
|
readonly NOTATION_NODE: number;
|
|
436
437
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
437
438
|
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,6 +474,7 @@ 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;
|
|
477
478
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
478
479
|
innerHTML: string;
|
|
479
480
|
readonly nextElementSibling: Element | null;
|
|
@@ -494,7 +495,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
494
495
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
495
496
|
};
|
|
496
497
|
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,21 @@ 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;
|
|
597
595
|
selects: "single" | undefined;
|
|
598
596
|
icons?: "none" | "only" | undefined;
|
|
599
597
|
readonly: boolean;
|
|
600
|
-
selectedItem?: import("menu/src").MenuItem | undefined;
|
|
601
|
-
menuItems: import("menu/src").MenuItem[];
|
|
602
598
|
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
603
|
forceFocusVisible: () => void;
|
|
604
604
|
onButtonBlur: () => void;
|
|
605
605
|
onHelperFocus: () => void;
|
|
606
606
|
onButtonFocus: () => void;
|
|
607
607
|
handleChange: (event: Event) => void;
|
|
608
608
|
setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
|
|
609
|
-
|
|
609
|
+
_selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
|
|
610
610
|
manageTextObservedSlot: () => void;
|
|
611
611
|
} & {
|
|
612
612
|
change: (e: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/action-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1-overlay.33+8b9227d00",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/action-menu": "^0.
|
|
33
|
+
"@spectrum-web-components/action-menu": "^0.32.1-overlay.33+8b9227d00"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"next": "
|
|
36
|
+
"next": "~13.4"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"next": {
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8b9227d00900eacee1c6d194064f10062f27ab3e"
|
|
44
44
|
}
|