@swc-react/popover 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 +12 -12
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Popover as SpPopover } from '@spectrum-web-components/popover';
|
|
2
|
+
import '@spectrum-web-components/popover/sp-popover.js';
|
|
2
3
|
export declare const Popover: import("@lit-labs/react").ReactWebComponent<SpPopover, {}>;
|
|
3
4
|
export declare type PopoverType = EventTarget & SpPopover;
|
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 { Popover as SpPopover } from "@spectrum-web-components/popover";
|
|
5
|
+
import "@spectrum-web-components/popover/sp-popover.js";
|
|
5
6
|
export const Popover = createComponent({
|
|
6
7
|
displayName: "Popover",
|
|
7
8
|
elementClass: SpPopover,
|
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 { Popover as SpPopover } from '@spectrum-web-components/popover';\n\nexport const Popover = createComponent({\n displayName: 'Popover',\n elementClass: SpPopover,\n react: React,\n tagName: 'sp-popover',\n events: {},\n});\n\nexport type PopoverType = EventTarget & SpPopover;\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,WAAW,iBAAiB;
|
|
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 { Popover as SpPopover } from '@spectrum-web-components/popover';\n\nimport '@spectrum-web-components/popover/sp-popover.js';\n\nexport const Popover = createComponent({\n displayName: 'Popover',\n elementClass: SpPopover,\n react: React,\n tagName: 'sp-popover',\n events: {},\n});\n\nexport type PopoverType = EventTarget & SpPopover;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,WAAW,iBAAiB;AAErC,OAAO;AAEA,aAAM,UAAU,gBAAgB;AAAA,EACnC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import*as
|
|
1
|
+
"use strict";import*as o from"react";import{createComponent as e}from"@lit-labs/react";import{Popover as p}from"@spectrum-web-components/popover";import"@spectrum-web-components/popover/sp-popover.js";export const Popover=e({displayName:"Popover",elementClass:p,react:o,tagName:"sp-popover",events:{}});
|
|
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 { Popover as SpPopover } from '@spectrum-web-components/popover';\n\nexport const Popover = createComponent({\n displayName: 'Popover',\n elementClass: SpPopover,\n react: React,\n tagName: 'sp-popover',\n events: {},\n});\n\nexport type PopoverType = EventTarget & SpPopover;\n"],
|
|
5
|
-
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAChC,OAAS,WAAWC,MAAiB,
|
|
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 { Popover as SpPopover } from '@spectrum-web-components/popover';\n\nimport '@spectrum-web-components/popover/sp-popover.js';\n\nexport const Popover = createComponent({\n displayName: 'Popover',\n elementClass: SpPopover,\n react: React,\n tagName: 'sp-popover',\n events: {},\n});\n\nexport type PopoverType = EventTarget & SpPopover;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAChC,OAAS,WAAWC,MAAiB,mCAErC,MAAO,iDAEA,aAAM,QAAUD,EAAgB,CACnC,YAAa,UACb,aAAcC,EACd,MAAOF,EACP,QAAS,aACT,OAAQ,CAAC,CACb,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpPopover"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -6,13 +6,11 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
6
6
|
slot?: string | undefined;
|
|
7
7
|
style?: import("react").CSSProperties | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
10
|
-
accessKey?: string | undefined;
|
|
11
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
12
9
|
defaultChecked?: boolean | undefined;
|
|
13
10
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
14
11
|
suppressContentEditableWarning?: boolean | undefined;
|
|
15
12
|
suppressHydrationWarning?: boolean | undefined;
|
|
13
|
+
accessKey?: string | undefined;
|
|
16
14
|
className?: string | undefined;
|
|
17
15
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
18
16
|
contextMenu?: string | undefined;
|
|
@@ -45,18 +43,18 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
45
43
|
results?: number | undefined;
|
|
46
44
|
security?: string | undefined;
|
|
47
45
|
unselectable?: "on" | "off" | undefined;
|
|
48
|
-
inputMode?: "
|
|
46
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
49
47
|
is?: string | undefined;
|
|
50
48
|
'aria-activedescendant'?: string | undefined;
|
|
51
49
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
52
|
-
'aria-autocomplete'?: "
|
|
50
|
+
'aria-autocomplete'?: "inline" | "list" | "none" | "both" | undefined;
|
|
53
51
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
54
52
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
55
53
|
'aria-colcount'?: number | undefined;
|
|
56
54
|
'aria-colindex'?: number | undefined;
|
|
57
55
|
'aria-colspan'?: number | undefined;
|
|
58
56
|
'aria-controls'?: string | undefined;
|
|
59
|
-
'aria-current'?: boolean | "time" | "
|
|
57
|
+
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
60
58
|
'aria-describedby'?: string | undefined;
|
|
61
59
|
'aria-details'?: string | undefined;
|
|
62
60
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -66,12 +64,14 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
66
64
|
'aria-flowto'?: string | undefined;
|
|
67
65
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
68
66
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
67
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
69
68
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
70
69
|
'aria-keyshortcuts'?: string | undefined;
|
|
71
70
|
'aria-label'?: string | undefined;
|
|
72
71
|
'aria-labelledby'?: string | undefined;
|
|
73
72
|
'aria-level'?: number | undefined;
|
|
74
73
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
74
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
76
76
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
77
77
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
@@ -272,11 +272,10 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
272
272
|
(options?: ScrollToOptions | undefined): void;
|
|
273
273
|
(x: number, y: number): void;
|
|
274
274
|
};
|
|
275
|
-
|
|
276
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
277
|
-
placement: import("overlay/src/overlay-types").Placement;
|
|
278
|
-
remove: () => void;
|
|
275
|
+
placement?: import("@floating-ui/core").Placement | undefined;
|
|
279
276
|
tip: boolean;
|
|
277
|
+
tipElement: HTMLSpanElement;
|
|
278
|
+
normalize: () => void;
|
|
280
279
|
readonly accessKeyLabel: string;
|
|
281
280
|
autocapitalize: string;
|
|
282
281
|
inert: boolean;
|
|
@@ -392,7 +391,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
392
391
|
isSameNode: (otherNode: Node | null) => boolean;
|
|
393
392
|
lookupNamespaceURI: (prefix: string | null) => string | null;
|
|
394
393
|
lookupPrefix: (namespace: string | null) => string | null;
|
|
395
|
-
normalize: () => void;
|
|
396
394
|
removeChild: <T_2 extends Node>(child: T_2) => T_2;
|
|
397
395
|
replaceChild: <T_3 extends Node>(node: Node, child: T_3) => T_3;
|
|
398
396
|
readonly ATTRIBUTE_NODE: number;
|
|
@@ -450,9 +448,11 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
450
448
|
ariaValueMin: string | null;
|
|
451
449
|
ariaValueNow: string | null;
|
|
452
450
|
ariaValueText: string | null;
|
|
451
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
453
452
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
454
453
|
after: (...nodes: (string | Node)[]) => void;
|
|
455
454
|
before: (...nodes: (string | Node)[]) => void;
|
|
455
|
+
remove: () => void;
|
|
456
456
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
457
457
|
innerHTML: string;
|
|
458
458
|
readonly nextElementSibling: Element | null;
|
|
@@ -570,9 +570,9 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
570
570
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
571
571
|
autofocus: boolean;
|
|
572
572
|
readonly dataset: DOMStringMap;
|
|
573
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
573
574
|
connectedCallback: () => void;
|
|
574
575
|
disconnectedCallback: () => void;
|
|
575
|
-
onOverlayQuery: (event: CustomEvent<import("overlay/src/overlay-types").OverlayDisplayQueryDetail>) => void;
|
|
576
576
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
577
577
|
isUpdatePending: boolean;
|
|
578
578
|
hasUpdated: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/popover",
|
|
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/popover": "^0.
|
|
33
|
+
"@spectrum-web-components/popover": "^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
|
}
|