@swc-react/popover 0.34.1-rc.0 → 0.35.1-rc.15

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 +53 -43
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,40 +1,48 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Popover: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
- color?: string | undefined;
5
- lang?: string | undefined;
6
5
  slot?: string | undefined;
7
6
  style?: import("react").CSSProperties | undefined;
8
7
  title?: string | undefined;
9
- defaultChecked?: boolean | undefined;
10
- defaultValue?: string | number | readonly string[] | undefined;
11
- suppressContentEditableWarning?: boolean | undefined;
12
- suppressHydrationWarning?: boolean | undefined;
13
8
  accessKey?: string | undefined;
14
- className?: string | undefined;
15
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
16
- contextMenu?: string | undefined;
17
9
  draggable?: (boolean | "true" | "false") | undefined;
18
10
  hidden?: boolean | undefined;
11
+ lang?: string | undefined;
12
+ translate?: "yes" | "no" | undefined;
13
+ className?: string | undefined;
19
14
  id?: string | undefined;
15
+ prefix?: string | undefined;
16
+ children?: import("react").ReactNode;
17
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
18
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
20
19
  nonce?: string | undefined;
20
+ tabIndex?: number | undefined;
21
+ 'aria-describedby'?: string | undefined;
22
+ defaultChecked?: boolean | undefined;
23
+ defaultValue?: string | number | readonly string[] | undefined;
24
+ suppressContentEditableWarning?: boolean | undefined;
25
+ suppressHydrationWarning?: boolean | undefined;
26
+ autoFocus?: boolean | undefined;
27
+ contextMenu?: string | undefined;
21
28
  placeholder?: string | undefined;
22
29
  spellCheck?: (boolean | "true" | "false") | undefined;
23
- tabIndex?: number | undefined;
24
- translate?: "yes" | "no" | undefined;
25
30
  radioGroup?: string | undefined;
26
31
  role?: import("react").AriaRole | undefined;
27
32
  about?: string | undefined;
33
+ content?: string | undefined;
28
34
  datatype?: string | undefined;
29
35
  inlist?: any;
30
- prefix?: string | undefined;
31
36
  property?: string | undefined;
37
+ rel?: string | undefined;
32
38
  resource?: string | undefined;
39
+ rev?: string | undefined;
33
40
  typeof?: string | undefined;
34
41
  vocab?: string | undefined;
35
42
  autoCapitalize?: string | undefined;
36
43
  autoCorrect?: string | undefined;
37
44
  autoSave?: string | undefined;
45
+ color?: string | undefined;
38
46
  itemProp?: string | undefined;
39
47
  itemScope?: boolean | undefined;
40
48
  itemType?: string | undefined;
@@ -43,19 +51,21 @@ export declare const Popover: import("react").ComponentType<Partial<{
43
51
  results?: number | undefined;
44
52
  security?: string | undefined;
45
53
  unselectable?: "on" | "off" | undefined;
46
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
47
54
  is?: string | undefined;
48
55
  'aria-activedescendant'?: string | undefined;
49
56
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
50
- 'aria-autocomplete'?: "inline" | "list" | "none" | "both" | undefined;
57
+ 'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
58
+ 'aria-braillelabel'?: string | undefined;
59
+ 'aria-brailleroledescription'?: string | undefined;
51
60
  'aria-busy'?: (boolean | "true" | "false") | undefined;
52
61
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
53
62
  'aria-colcount'?: number | undefined;
54
63
  'aria-colindex'?: number | undefined;
64
+ 'aria-colindextext'?: string | undefined;
55
65
  'aria-colspan'?: number | undefined;
56
66
  'aria-controls'?: string | undefined;
57
67
  'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
58
- 'aria-describedby'?: string | undefined;
68
+ 'aria-description'?: string | undefined;
59
69
  'aria-details'?: string | undefined;
60
70
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
61
71
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
@@ -85,6 +95,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
85
95
  'aria-roledescription'?: string | undefined;
86
96
  'aria-rowcount'?: number | undefined;
87
97
  'aria-rowindex'?: number | undefined;
98
+ 'aria-rowindextext'?: string | undefined;
88
99
  'aria-rowspan'?: number | undefined;
89
100
  'aria-selected'?: (boolean | "true" | "false") | undefined;
90
101
  'aria-setsize'?: number | undefined;
@@ -93,9 +104,8 @@ export declare const Popover: import("react").ComponentType<Partial<{
93
104
  'aria-valuemin'?: number | undefined;
94
105
  'aria-valuenow'?: number | undefined;
95
106
  'aria-valuetext'?: string | undefined;
96
- children?: import("react").ReactNode;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("popover/src").Popover> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("popover/src").Popover> | undefined;
@@ -262,9 +272,9 @@ export declare const Popover: import("react").ComponentType<Partial<{
262
272
  } & {
263
273
  readonly attributes: NamedNodeMap;
264
274
  readonly localName: string;
265
- shadowRoot: ShadowRoot;
266
275
  dialog: boolean;
267
- open: boolean;
276
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
277
+ placement?: import("@floating-ui/utils").Placement | undefined;
268
278
  blur: () => void;
269
279
  click: () => void;
270
280
  focus: (options?: FocusOptions | undefined) => void;
@@ -272,10 +282,28 @@ export declare const Popover: import("react").ComponentType<Partial<{
272
282
  (options?: ScrollToOptions | undefined): void;
273
283
  (x: number, y: number): void;
274
284
  };
275
- placement?: import("@floating-ui/core").Placement | undefined;
276
- tip: boolean;
277
- tipElement: HTMLSpanElement;
285
+ open: boolean;
278
286
  normalize: () => void;
287
+ readonly renderOptions: import("lit-html").RenderOptions;
288
+ addEventListener: {
289
+ <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
290
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
291
+ };
292
+ dispatchEvent: (event: Event) => boolean;
293
+ removeEventListener: {
294
+ <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
295
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
296
+ };
297
+ readonly renderRoot: HTMLElement | ShadowRoot;
298
+ isUpdatePending: boolean;
299
+ hasUpdated: boolean;
300
+ addController: (controller: import("lit").ReactiveController) => void;
301
+ removeController: (controller: import("lit").ReactiveController) => void;
302
+ connectedCallback: () => void;
303
+ disconnectedCallback: () => void;
304
+ attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
305
+ requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
306
+ readonly updateComplete: Promise<boolean>;
279
307
  readonly accessKeyLabel: string;
280
308
  autocapitalize: string;
281
309
  inert: boolean;
@@ -288,14 +316,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
288
316
  outerText: string;
289
317
  spellcheck: boolean;
290
318
  attachInternals: () => ElementInternals;
291
- addEventListener: {
292
- <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
293
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
294
- };
295
- removeEventListener: {
296
- <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
297
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
298
- };
299
319
  readonly classList: DOMTokenList;
300
320
  readonly clientHeight: number;
301
321
  readonly clientLeft: number;
@@ -311,6 +331,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
311
331
  scrollLeft: number;
312
332
  scrollTop: number;
313
333
  readonly scrollWidth: number;
334
+ shadowRoot: ShadowRoot;
314
335
  readonly tagName: string;
315
336
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
316
337
  closest: {
@@ -411,7 +432,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
411
432
  readonly NOTATION_NODE: number;
412
433
  readonly PROCESSING_INSTRUCTION_NODE: number;
413
434
  readonly TEXT_NODE: number;
414
- dispatchEvent: (event: Event) => boolean;
415
435
  ariaAtomic: string | null;
416
436
  ariaAutoComplete: string | null;
417
437
  ariaBusy: string | null;
@@ -448,7 +468,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
448
468
  ariaValueMin: string | null;
449
469
  ariaValueNow: string | null;
450
470
  ariaValueText: string | null;
451
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
452
471
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
453
472
  after: (...nodes: (string | Node)[]) => void;
454
473
  before: (...nodes: (string | Node)[]) => void;
@@ -570,17 +589,8 @@ export declare const Popover: import("react").ComponentType<Partial<{
570
589
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
571
590
  autofocus: boolean;
572
591
  readonly dataset: DOMStringMap;
573
- readonly renderOptions: import("lit-html").RenderOptions;
574
- connectedCallback: () => void;
575
- disconnectedCallback: () => void;
576
- readonly renderRoot: HTMLElement | ShadowRoot;
577
- isUpdatePending: boolean;
578
- hasUpdated: boolean;
579
- addController: (controller: import("lit").ReactiveController) => void;
580
- removeController: (controller: import("lit").ReactiveController) => void;
581
- attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
582
- requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
583
- readonly updateComplete: Promise<boolean>;
592
+ tip: boolean;
593
+ tipElement: HTMLSpanElement;
584
594
  isLTR: boolean;
585
595
  hasVisibleFocusInTree: () => boolean;
586
596
  } & {}> & import("react").RefAttributes<import("popover/src").Popover>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/popover",
3
- "version": "0.34.1-rc.0+1647bfed5",
3
+ "version": "0.35.1-rc.15+9b76319e4",
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.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/popover": "^0.35.1-rc.15+9b76319e4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
43
+ "gitHead": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
44
44
  }