@swc-react/tooltip 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 +37 -26
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,44 +1,48 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Tooltip: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
5
  slot?: string | undefined;
5
6
  style?: import("react").CSSProperties | undefined;
6
7
  title?: string | undefined;
7
8
  accessKey?: string | undefined;
8
- color?: string | undefined;
9
- lang?: string | undefined;
10
- 'aria-describedby'?: string | undefined;
11
- id?: string | undefined;
12
- tabIndex?: number | undefined;
13
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
14
- className?: string | undefined;
15
9
  draggable?: (boolean | "true" | "false") | undefined;
16
10
  hidden?: boolean | undefined;
11
+ lang?: string | undefined;
17
12
  translate?: "yes" | "no" | undefined;
13
+ className?: string | undefined;
14
+ id?: string | undefined;
18
15
  prefix?: string | undefined;
19
16
  children?: import("react").ReactNode;
20
17
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
21
- inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
18
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
19
  nonce?: string | undefined;
20
+ tabIndex?: number | undefined;
21
+ 'aria-describedby'?: string | undefined;
23
22
  defaultChecked?: boolean | undefined;
24
23
  defaultValue?: string | number | readonly string[] | undefined;
25
24
  suppressContentEditableWarning?: boolean | undefined;
26
25
  suppressHydrationWarning?: boolean | undefined;
26
+ autoFocus?: boolean | undefined;
27
27
  contextMenu?: string | undefined;
28
28
  placeholder?: string | undefined;
29
29
  spellCheck?: (boolean | "true" | "false") | undefined;
30
30
  radioGroup?: string | undefined;
31
31
  role?: import("react").AriaRole | undefined;
32
32
  about?: string | undefined;
33
+ content?: string | undefined;
33
34
  datatype?: string | undefined;
34
35
  inlist?: any;
35
36
  property?: string | undefined;
37
+ rel?: string | undefined;
36
38
  resource?: string | undefined;
39
+ rev?: string | undefined;
37
40
  typeof?: string | undefined;
38
41
  vocab?: string | undefined;
39
42
  autoCapitalize?: string | undefined;
40
43
  autoCorrect?: string | undefined;
41
44
  autoSave?: string | undefined;
45
+ color?: string | undefined;
42
46
  itemProp?: string | undefined;
43
47
  itemScope?: boolean | undefined;
44
48
  itemType?: string | undefined;
@@ -50,15 +54,20 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
50
54
  is?: string | undefined;
51
55
  'aria-activedescendant'?: string | undefined;
52
56
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
53
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
57
+ 'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
58
+ 'aria-braillelabel'?: string | undefined;
59
+ 'aria-brailleroledescription'?: string | undefined;
54
60
  'aria-busy'?: (boolean | "true" | "false") | undefined;
55
61
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
56
62
  'aria-colcount'?: number | undefined;
57
63
  'aria-colindex'?: number | undefined;
64
+ 'aria-colindextext'?: string | undefined;
58
65
  'aria-colspan'?: number | undefined;
59
66
  'aria-controls'?: string | undefined;
60
67
  'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
68
+ 'aria-description'?: string | undefined;
61
69
  'aria-details'?: string | undefined;
70
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
62
71
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
63
72
  'aria-errormessage'?: string | undefined;
64
73
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
@@ -86,6 +95,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
86
95
  'aria-roledescription'?: string | undefined;
87
96
  'aria-rowcount'?: number | undefined;
88
97
  'aria-rowindex'?: number | undefined;
98
+ 'aria-rowindextext'?: string | undefined;
89
99
  'aria-rowspan'?: number | undefined;
90
100
  'aria-selected'?: (boolean | "true" | "false") | undefined;
91
101
  'aria-setsize'?: number | undefined;
@@ -95,7 +105,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
95
105
  'aria-valuenow'?: number | undefined;
96
106
  'aria-valuetext'?: string | undefined;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("tooltip/src").Tooltip> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("tooltip/src").Tooltip> | undefined;
@@ -263,13 +273,17 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
263
273
  readonly attributes: NamedNodeMap;
264
274
  readonly localName: string;
265
275
  animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
266
- blur: () => void;
267
276
  click: () => void;
277
+ placement?: import("@floating-ui/utils").Placement | undefined;
278
+ blur: () => void;
268
279
  focus: (options?: FocusOptions | undefined) => void;
269
280
  scroll: {
270
281
  (options?: ScrollToOptions | undefined): void;
271
282
  (x: number, y: number): void;
272
283
  };
284
+ open: boolean;
285
+ normalize: () => void;
286
+ readonly renderOptions: import("lit-html").RenderOptions;
273
287
  addEventListener: {
274
288
  <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
275
289
  (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -279,24 +293,13 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
279
293
  <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
280
294
  (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
281
295
  };
282
- open: boolean;
283
- readonly assignedSlot: HTMLSlotElement | null;
284
- placement?: import("@floating-ui/core").Placement | undefined;
285
- shadowRoot: ShadowRoot;
286
- offset: number;
287
- normalize: () => void;
288
- readonly parentElement: HTMLElement | null;
289
- readonly renderOptions: import("lit-html").RenderOptions;
290
- autofocus: boolean;
291
- ariaHidden: string | null;
292
- readonly childNodes: NodeListOf<ChildNode>;
293
- connectedCallback: () => void;
294
- disconnectedCallback: () => void;
295
296
  readonly renderRoot: HTMLElement | ShadowRoot;
296
297
  isUpdatePending: boolean;
297
298
  hasUpdated: boolean;
298
299
  addController: (controller: import("lit").ReactiveController) => void;
299
300
  removeController: (controller: import("lit").ReactiveController) => void;
301
+ connectedCallback: () => void;
302
+ disconnectedCallback: () => void;
300
303
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
301
304
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
302
305
  readonly updateComplete: Promise<boolean>;
@@ -327,6 +330,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
327
330
  scrollLeft: number;
328
331
  scrollTop: number;
329
332
  readonly scrollWidth: number;
333
+ shadowRoot: ShadowRoot;
330
334
  readonly tagName: string;
331
335
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
332
336
  closest: {
@@ -383,6 +387,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
383
387
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
384
388
  webkitMatchesSelector: (selectors: string) => boolean;
385
389
  readonly baseURI: string;
390
+ readonly childNodes: NodeListOf<ChildNode>;
386
391
  readonly firstChild: ChildNode | null;
387
392
  readonly isConnected: boolean;
388
393
  readonly lastChild: ChildNode | null;
@@ -390,6 +395,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
390
395
  readonly nodeName: string;
391
396
  readonly nodeType: number;
392
397
  nodeValue: string | null;
398
+ readonly parentElement: HTMLElement | null;
393
399
  readonly parentNode: ParentNode | null;
394
400
  readonly previousSibling: ChildNode | null;
395
401
  textContent: string | null;
@@ -436,6 +442,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
436
442
  ariaDisabled: string | null;
437
443
  ariaExpanded: string | null;
438
444
  ariaHasPopup: string | null;
445
+ ariaHidden: string | null;
439
446
  ariaKeyShortcuts: string | null;
440
447
  ariaLabel: string | null;
441
448
  ariaLevel: string | null;
@@ -484,6 +491,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
484
491
  <E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
485
492
  };
486
493
  replaceChildren: (...nodes: (string | Node)[]) => void;
494
+ readonly assignedSlot: HTMLSlotElement | null;
487
495
  oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
488
496
  oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
489
497
  onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
@@ -578,13 +586,16 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
578
586
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
579
587
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
580
588
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
589
+ autofocus: boolean;
581
590
  readonly dataset: DOMStringMap;
582
- isLTR: boolean;
583
- hasVisibleFocusInTree: () => boolean;
591
+ offset: number;
592
+ tipPadding?: number | undefined;
584
593
  selfManaged: boolean;
585
594
  tipElement: HTMLSpanElement;
586
595
  variant: string;
587
596
  render: () => import("lit-html").TemplateResult<2 | 1>;
597
+ isLTR: boolean;
598
+ hasVisibleFocusInTree: () => boolean;
588
599
  } & {
589
600
  transitionrun: (e: TransitionEvent) => void;
590
601
  transitionend: (e: TransitionEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/tooltip",
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/tooltip": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/tooltip": "^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
  }