@swc-react/popover 0.38.0 → 0.39.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 +13 -13
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -6,19 +6,21 @@ export declare const Popover: import("react").ComponentType<Partial<{
6
6
  style?: import("react").CSSProperties | undefined;
7
7
  title?: string | undefined;
8
8
  accessKey?: string | undefined;
9
+ tabIndex?: number | undefined;
10
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
11
+ rel?: string | undefined;
12
+ id?: string | undefined;
13
+ className?: string | undefined;
9
14
  content?: string | undefined;
10
15
  draggable?: (boolean | "true" | "false") | undefined;
11
16
  hidden?: boolean | undefined;
12
17
  lang?: string | undefined;
13
18
  translate?: "yes" | "no" | undefined;
14
- className?: string | undefined;
15
- id?: string | undefined;
16
19
  prefix?: string | undefined;
17
20
  children?: import("react").ReactNode;
18
21
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
19
- inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
20
23
  nonce?: string | undefined;
21
- tabIndex?: number | undefined;
22
24
  'aria-describedby'?: string | undefined;
23
25
  defaultChecked?: boolean | undefined;
24
26
  defaultValue?: string | number | readonly string[] | undefined;
@@ -34,7 +36,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
34
36
  datatype?: string | undefined;
35
37
  inlist?: any;
36
38
  property?: string | undefined;
37
- rel?: string | undefined;
38
39
  resource?: string | undefined;
39
40
  rev?: string | undefined;
40
41
  typeof?: string | undefined;
@@ -64,10 +65,9 @@ export declare const Popover: import("react").ComponentType<Partial<{
64
65
  'aria-colindextext'?: string | undefined;
65
66
  'aria-colspan'?: number | undefined;
66
67
  'aria-controls'?: string | undefined;
67
- 'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
68
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
68
69
  'aria-description'?: string | undefined;
69
70
  'aria-details'?: string | undefined;
70
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
71
71
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
72
72
  'aria-errormessage'?: string | undefined;
73
73
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
@@ -274,7 +274,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
274
274
  readonly localName: string;
275
275
  dialog: boolean;
276
276
  animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
277
- placement?: import("@floating-ui/utils").Placement | undefined;
277
+ readonly renderOptions: import("lit-html").RenderOptions;
278
278
  blur: () => void;
279
279
  click: () => void;
280
280
  focus: (options?: FocusOptions | undefined) => void;
@@ -282,9 +282,11 @@ export declare const Popover: import("react").ComponentType<Partial<{
282
282
  (options?: ScrollToOptions | undefined): void;
283
283
  (x: number, y: number): void;
284
284
  };
285
- open: boolean;
285
+ autofocus: boolean;
286
286
  normalize: () => void;
287
- readonly renderOptions: import("lit-html").RenderOptions;
287
+ ariaHidden: string | null;
288
+ readonly childNodes: NodeListOf<ChildNode>;
289
+ open: boolean;
288
290
  addEventListener: {
289
291
  <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
290
292
  (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -294,6 +296,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
294
296
  <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
295
297
  (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
296
298
  };
299
+ placement?: import("@floating-ui/utils").Placement | undefined;
297
300
  readonly renderRoot: HTMLElement | ShadowRoot;
298
301
  isUpdatePending: boolean;
299
302
  hasUpdated: boolean;
@@ -388,7 +391,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
388
391
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
389
392
  webkitMatchesSelector: (selectors: string) => boolean;
390
393
  readonly baseURI: string;
391
- readonly childNodes: NodeListOf<ChildNode>;
392
394
  readonly firstChild: ChildNode | null;
393
395
  readonly isConnected: boolean;
394
396
  readonly lastChild: ChildNode | null;
@@ -443,7 +445,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
443
445
  ariaDisabled: string | null;
444
446
  ariaExpanded: string | null;
445
447
  ariaHasPopup: string | null;
446
- ariaHidden: string | null;
447
448
  ariaKeyShortcuts: string | null;
448
449
  ariaLabel: string | null;
449
450
  ariaLevel: string | null;
@@ -587,7 +588,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
587
588
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
588
589
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
589
590
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
590
- autofocus: boolean;
591
591
  readonly dataset: DOMStringMap;
592
592
  tip: boolean;
593
593
  tipElement: HTMLSpanElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/popover",
3
- "version": "0.38.0",
3
+ "version": "0.39.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/popover": "^0.38.0"
33
+ "@spectrum-web-components/popover": "^0.39.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": "9a099b7543672f2fd4030833ab813b16c2cad62e"
43
+ "gitHead": "1a4b3c2d32e51b7f22a7f1196c3c0270512e7c4c"
44
44
  }