@ecopages/radiant-ui 0.1.0-beta.1 → 0.1.0-beta.2

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.
@@ -1,10 +1,10 @@
1
1
  import { RadiantElement } from '@ecopages/radiant';
2
- import { type Placement } from '@floating-ui/dom';
2
+ import type { RuiPlacement } from '../shared/placement';
3
3
  export type RuiTooltipProps = {
4
4
  /** Accessible description shown in the tooltip. */
5
5
  content?: string;
6
- /** Floating-ui placement. Default: `top`. */
7
- placement?: Placement;
6
+ /** Placement of the tooltip surface relative to its anchor. Default: `top`. */
7
+ placement?: RuiPlacement;
8
8
  /** Delay in ms before showing on hover/focus. Default: `200`. */
9
9
  delay?: number;
10
10
  };
@@ -30,7 +30,7 @@ type RuiTooltipBindings = {
30
30
  */
31
31
  export declare class RuiTooltip extends RadiantElement<RuiTooltipBindings> {
32
32
  content: string;
33
- placement: Placement;
33
+ placement: RuiPlacement;
34
34
  delay: number;
35
35
  tooltipTarget: HTMLElement;
36
36
  /**
@@ -42,9 +42,9 @@ export declare class RuiTooltip extends RadiantElement<RuiTooltipBindings> {
42
42
  private open;
43
43
  private showTimer;
44
44
  private hideTimer;
45
- private cleanup;
46
45
  private tooltipId;
47
46
  private describedEl;
47
+ private cleanupFloating;
48
48
  /**
49
49
  * Pointer enter/leave must be host listeners: those events do not bubble, and
50
50
  * `@onEvent` only supports delegated (bubbling) listeners.
@@ -55,7 +55,7 @@ export declare class RuiTooltip extends RadiantElement<RuiTooltipBindings> {
55
55
  private teardownFloating;
56
56
  private getAnchor;
57
57
  private wireTrigger;
58
- updatePosition(): void;
58
+ private attachFloating;
59
59
  onDescribedPropsUpdated(): void;
60
60
  private setOpen;
61
61
  private scheduleShow;