@aria-ui/tooltip
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -5,5 +5,5 @@ import { BaseElement, ConnectableElement, SingalState } from '@aria-ui/core'; | ||
/** | ||
* @group TooltipPositioner | ||
* @group TooltipContent | ||
*/ | ||
interface TooltipPositionerProps extends Omit<OverlayPositionerProps, "hoist"> { | ||
interface TooltipContentProps extends Omit<OverlayPositionerProps, "hoist"> { | ||
/** | ||
@@ -19,3 +19,3 @@ * {@inheritDoc @aria-ui/overlay!OverlayPositionerProps.hoist} | ||
*/ | ||
declare const defaultTooltipPositionerProps: Readonly<{ | ||
declare const defaultTooltipContentProps: Readonly<{ | ||
hoist: true; | ||
@@ -42,5 +42,5 @@ strategy: "absolute"; | ||
/** | ||
* @group TooltipPositioner | ||
* @group TooltipContent | ||
*/ | ||
interface TooltipPositionerDataAttributes { | ||
interface TooltipContentDataAttributes { | ||
"data-state": "open" | "closed"; | ||
@@ -50,59 +50,59 @@ } | ||
/** | ||
* A custom TooltipPositioner element. | ||
* A custom TooltipContent element. | ||
* | ||
* Properties: {@link TooltipPositionerProps} | ||
* Properties: {@link TooltipContentProps} | ||
* | ||
* @group TooltipPositioner | ||
* @group TooltipContent | ||
*/ | ||
declare class TooltipPositionerElement extends BaseElement implements TooltipPositionerProps { | ||
declare class TooltipContentElement extends BaseElement implements TooltipContentProps { | ||
private _s; | ||
constructor(props?: Partial<TooltipPositionerProps>); | ||
/** @hidden */ get strategy(): TooltipPositionerProps["strategy"]; | ||
/** @hidden */ set strategy(v: TooltipPositionerProps["strategy"]); | ||
/** @hidden */ get placement(): TooltipPositionerProps["placement"]; | ||
/** @hidden */ set placement(v: TooltipPositionerProps["placement"]); | ||
/** @hidden */ get autoUpdate(): TooltipPositionerProps["autoUpdate"]; | ||
/** @hidden */ set autoUpdate(v: TooltipPositionerProps["autoUpdate"]); | ||
/** @hidden */ get hoist(): TooltipPositionerProps["hoist"]; | ||
/** @hidden */ set hoist(v: TooltipPositionerProps["hoist"]); | ||
/** @hidden */ get transform(): TooltipPositionerProps["transform"]; | ||
/** @hidden */ set transform(v: TooltipPositionerProps["transform"]); | ||
/** @hidden */ get offset(): TooltipPositionerProps["offset"]; | ||
/** @hidden */ set offset(v: TooltipPositionerProps["offset"]); | ||
/** @hidden */ get flip(): TooltipPositionerProps["flip"]; | ||
/** @hidden */ set flip(v: TooltipPositionerProps["flip"]); | ||
/** @hidden */ get shift(): TooltipPositionerProps["shift"]; | ||
/** @hidden */ set shift(v: TooltipPositionerProps["shift"]); | ||
/** @hidden */ get overlap(): TooltipPositionerProps["overlap"]; | ||
/** @hidden */ set overlap(v: TooltipPositionerProps["overlap"]); | ||
/** @hidden */ get fitViewport(): TooltipPositionerProps["fitViewport"]; | ||
/** @hidden */ set fitViewport(v: TooltipPositionerProps["fitViewport"]); | ||
/** @hidden */ get sameWidth(): TooltipPositionerProps["sameWidth"]; | ||
/** @hidden */ set sameWidth(v: TooltipPositionerProps["sameWidth"]); | ||
/** @hidden */ get sameHeight(): TooltipPositionerProps["sameHeight"]; | ||
/** @hidden */ set sameHeight(v: TooltipPositionerProps["sameHeight"]); | ||
/** @hidden */ get inline(): TooltipPositionerProps["inline"]; | ||
/** @hidden */ set inline(v: TooltipPositionerProps["inline"]); | ||
/** @hidden */ get hide(): TooltipPositionerProps["hide"]; | ||
/** @hidden */ set hide(v: TooltipPositionerProps["hide"]); | ||
/** @hidden */ get boundary(): TooltipPositionerProps["boundary"]; | ||
/** @hidden */ set boundary(v: TooltipPositionerProps["boundary"]); | ||
/** @hidden */ get rootBoundary(): TooltipPositionerProps["rootBoundary"]; | ||
/** @hidden */ set rootBoundary(v: TooltipPositionerProps["rootBoundary"]); | ||
/** @hidden */ get overflowPadding(): TooltipPositionerProps["overflowPadding"]; | ||
/** @hidden */ set overflowPadding(v: TooltipPositionerProps["overflowPadding"]); | ||
/** @hidden */ get elementContext(): TooltipPositionerProps["elementContext"]; | ||
/** @hidden */ set elementContext(v: TooltipPositionerProps["elementContext"]); | ||
/** @hidden */ get altBoundary(): TooltipPositionerProps["altBoundary"]; | ||
/** @hidden */ set altBoundary(v: TooltipPositionerProps["altBoundary"]); | ||
constructor(props?: Partial<TooltipContentProps>); | ||
/** @hidden */ get strategy(): TooltipContentProps["strategy"]; | ||
/** @hidden */ set strategy(v: TooltipContentProps["strategy"]); | ||
/** @hidden */ get placement(): TooltipContentProps["placement"]; | ||
/** @hidden */ set placement(v: TooltipContentProps["placement"]); | ||
/** @hidden */ get autoUpdate(): TooltipContentProps["autoUpdate"]; | ||
/** @hidden */ set autoUpdate(v: TooltipContentProps["autoUpdate"]); | ||
/** @hidden */ get hoist(): TooltipContentProps["hoist"]; | ||
/** @hidden */ set hoist(v: TooltipContentProps["hoist"]); | ||
/** @hidden */ get transform(): TooltipContentProps["transform"]; | ||
/** @hidden */ set transform(v: TooltipContentProps["transform"]); | ||
/** @hidden */ get offset(): TooltipContentProps["offset"]; | ||
/** @hidden */ set offset(v: TooltipContentProps["offset"]); | ||
/** @hidden */ get flip(): TooltipContentProps["flip"]; | ||
/** @hidden */ set flip(v: TooltipContentProps["flip"]); | ||
/** @hidden */ get shift(): TooltipContentProps["shift"]; | ||
/** @hidden */ set shift(v: TooltipContentProps["shift"]); | ||
/** @hidden */ get overlap(): TooltipContentProps["overlap"]; | ||
/** @hidden */ set overlap(v: TooltipContentProps["overlap"]); | ||
/** @hidden */ get fitViewport(): TooltipContentProps["fitViewport"]; | ||
/** @hidden */ set fitViewport(v: TooltipContentProps["fitViewport"]); | ||
/** @hidden */ get sameWidth(): TooltipContentProps["sameWidth"]; | ||
/** @hidden */ set sameWidth(v: TooltipContentProps["sameWidth"]); | ||
/** @hidden */ get sameHeight(): TooltipContentProps["sameHeight"]; | ||
/** @hidden */ set sameHeight(v: TooltipContentProps["sameHeight"]); | ||
/** @hidden */ get inline(): TooltipContentProps["inline"]; | ||
/** @hidden */ set inline(v: TooltipContentProps["inline"]); | ||
/** @hidden */ get hide(): TooltipContentProps["hide"]; | ||
/** @hidden */ set hide(v: TooltipContentProps["hide"]); | ||
/** @hidden */ get boundary(): TooltipContentProps["boundary"]; | ||
/** @hidden */ set boundary(v: TooltipContentProps["boundary"]); | ||
/** @hidden */ get rootBoundary(): TooltipContentProps["rootBoundary"]; | ||
/** @hidden */ set rootBoundary(v: TooltipContentProps["rootBoundary"]); | ||
/** @hidden */ get overflowPadding(): TooltipContentProps["overflowPadding"]; | ||
/** @hidden */ set overflowPadding(v: TooltipContentProps["overflowPadding"]); | ||
/** @hidden */ get elementContext(): TooltipContentProps["elementContext"]; | ||
/** @hidden */ set elementContext(v: TooltipContentProps["elementContext"]); | ||
/** @hidden */ get altBoundary(): TooltipContentProps["altBoundary"]; | ||
/** @hidden */ set altBoundary(v: TooltipContentProps["altBoundary"]); | ||
} | ||
/** | ||
* Properties: {@link TooltipPositionerProps} | ||
* Properties: {@link TooltipContentProps} | ||
* | ||
* Data attributes: {@link TooltipPositionerDataAttributes} | ||
* Data attributes: {@link TooltipContentDataAttributes} | ||
* | ||
* @group TooltipPositioner | ||
* @group TooltipContent | ||
*/ | ||
declare function useTooltipPositioner(element: ConnectableElement, props?: Partial<TooltipPositionerProps>): SingalState<TooltipPositionerProps>; | ||
declare function useTooltipContent(element: ConnectableElement, props?: Partial<TooltipContentProps>): SingalState<TooltipContentProps>; | ||
@@ -169,2 +169,2 @@ /** | ||
export { type TooltipPositionerDataAttributes, TooltipPositionerElement, type TooltipPositionerProps, TooltipRootElement, type TooltipRootProps, TooltipTriggerElement, defaultTooltipPositionerProps, defaultTooltipRootProps, useTooltipPositioner, useTooltipRoot, useTooltipTrigger }; | ||
export { type TooltipContentDataAttributes, TooltipContentElement, type TooltipContentProps, TooltipRootElement, type TooltipRootProps, TooltipTriggerElement, defaultTooltipContentProps, defaultTooltipRootProps, useTooltipContent, useTooltipRoot, useTooltipTrigger }; |
@@ -1,5 +0,5 @@ | ||
// src/tooltip-positioner.element.gen.ts | ||
// src/tooltip-content.element.gen.ts | ||
import { BaseElement } from "@aria-ui/core"; | ||
// src/tooltip-positioner.state.ts | ||
// src/tooltip-content.state.ts | ||
import { | ||
@@ -12,5 +12,5 @@ useAriaAttribute, | ||
// src/tooltip-positioner.props.ts | ||
// src/tooltip-content.props.ts | ||
import { defaultOverlayPositionerProps } from "@aria-ui/overlay"; | ||
var defaultTooltipPositionerProps = Object.freeze({ | ||
var defaultTooltipContentProps = Object.freeze({ | ||
...defaultOverlayPositionerProps, | ||
@@ -27,6 +27,6 @@ hoist: true | ||
// src/tooltip-positioner.state.ts | ||
function useTooltipPositioner(element, props) { | ||
// src/tooltip-content.state.ts | ||
function useTooltipContent(element, props) { | ||
const state = useOverlayPositioner(element, { | ||
...defaultTooltipPositionerProps, | ||
...defaultTooltipContentProps, | ||
...props | ||
@@ -43,7 +43,7 @@ }); | ||
// src/tooltip-positioner.element.gen.ts | ||
var TooltipPositionerElement = class extends BaseElement { | ||
// src/tooltip-content.element.gen.ts | ||
var TooltipContentElement = class extends BaseElement { | ||
constructor(props) { | ||
super(); | ||
this._s = useTooltipPositioner(this, props); | ||
this._s = useTooltipContent(this, props); | ||
} | ||
@@ -343,10 +343,10 @@ /** @hidden */ | ||
export { | ||
TooltipPositionerElement, | ||
TooltipContentElement, | ||
TooltipRootElement, | ||
TooltipTriggerElement, | ||
defaultTooltipPositionerProps, | ||
defaultTooltipContentProps, | ||
defaultTooltipRootProps, | ||
useTooltipPositioner, | ||
useTooltipContent, | ||
useTooltipRoot, | ||
useTooltipTrigger | ||
}; |
{ | ||
"name": "@aria-ui/tooltip", | ||
"type": "module", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
# @aria-ui/tooltip | ||
## TooltipPositioner | ||
## TooltipContent | ||
### TooltipPositionerElement | ||
### TooltipContentElement | ||
A custom TooltipPositioner element. | ||
A custom TooltipContent element. | ||
Properties: [TooltipPositionerProps](README.md#tooltippositionerprops) | ||
Properties: [TooltipContentProps](README.md#tooltipcontentprops) | ||
```ts | ||
new TooltipPositionerElement(props?: Partial<TooltipPositionerProps>): TooltipPositionerElement | ||
new TooltipContentElement(props?: Partial<TooltipContentProps>): TooltipContentElement | ||
``` | ||
### TooltipPositionerDataAttributes | ||
### TooltipContentDataAttributes | ||
@@ -21,3 +21,3 @@ | Property | Type | | ||
### TooltipPositionerProps | ||
### TooltipContentProps | ||
@@ -46,14 +46,14 @@ | Property | Type | Description | | ||
### useTooltipPositioner() | ||
### useTooltipContent() | ||
```ts | ||
function useTooltipPositioner( | ||
function useTooltipContent( | ||
element: ConnectableElement, | ||
props?: Partial<TooltipPositionerProps>, | ||
): SingalState<TooltipPositionerProps>; | ||
props?: Partial<TooltipContentProps>, | ||
): SingalState<TooltipContentProps>; | ||
``` | ||
Properties: [TooltipPositionerProps](README.md#tooltippositionerprops) | ||
Properties: [TooltipContentProps](README.md#tooltipcontentprops) | ||
Data attributes: [TooltipPositionerDataAttributes](README.md#tooltippositionerdataattributes) | ||
Data attributes: [TooltipContentDataAttributes](README.md#tooltipcontentdataattributes) | ||
@@ -60,0 +60,0 @@ ## TooltipRoot |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20703
491