@loadsmart/miranda-wc
Advanced tools
Comparing version 2.0.0-beta.10 to 2.0.0-beta.11
@@ -5,3 +5,3 @@ import type { PropertyValues } from 'lit'; | ||
export declare const POPOVER_PLACEMENT_VALUES: string[]; | ||
export declare abstract class Popover extends Component { | ||
export declare class Popover extends Component { | ||
#private; | ||
@@ -46,5 +46,5 @@ static get properties(): { | ||
updated(changedProperties: PropertyValues<this>): void; | ||
abstract getReferenceElement(): HTMLElement | null; | ||
abstract getFloatingElement(): HTMLElement | null; | ||
abstract getArrowElement(): HTMLElement | null; | ||
getReferenceElement(): HTMLElement | null; | ||
getFloatingElement(): HTMLElement | null; | ||
getArrowElement(): HTMLElement | null; | ||
getFloatingOffset: () => number; | ||
@@ -51,0 +51,0 @@ get reference(): HTMLElement | null; |
@@ -1,10 +0,16 @@ | ||
import { convertTriggerFromAttribute } from './tooltip.helpers'; | ||
import type { PropertyValues } from 'lit'; | ||
import { Popover } from '../popover'; | ||
import type { PopoverProps, PopoverPlacement } from '../popover'; | ||
export type TooltipTrigger = 'hover' | 'focus' | 'click'; | ||
/** | ||
* TODO: a bit verbose, but it represents what we need for the time being. | ||
* A PR with improvements or simplifications is welcome. | ||
*/ | ||
export type TooltipTrigger = 'click' | 'focus' | 'hover' | 'click,focus' | 'click,hover' | 'focus,hover' | 'click,focus,hover'; | ||
export type TooltipPlacement = PopoverPlacement; | ||
export interface TooltipProps extends PopoverProps { | ||
trigger: string; | ||
trigger?: TooltipTrigger; | ||
anchor: string; | ||
} | ||
export declare class Tooltip extends Popover implements TooltipProps { | ||
declare const Tooltip_base: typeof Popover; | ||
export declare class Tooltip extends Tooltip_base implements TooltipProps { | ||
#private; | ||
@@ -15,6 +21,6 @@ static styles: (import("lit").CSSResult | import("lit").CSSResult[])[][]; | ||
type: StringConstructor; | ||
converter: { | ||
fromAttribute: typeof convertTriggerFromAttribute; | ||
}; | ||
}; | ||
anchor: { | ||
type: StringConstructor; | ||
}; | ||
position: { | ||
@@ -40,6 +46,9 @@ type: StringConstructor; | ||
*/ | ||
trigger: TooltipTrigger[]; | ||
trigger: TooltipProps['trigger']; | ||
anchor: TooltipProps['anchor']; | ||
constructor(); | ||
connectedCallback(): void; | ||
connectedCallback(): Promise<void>; | ||
disconnectedCallback(): void; | ||
firstUpdated(): void; | ||
update(changedProperties: PropertyValues<this>): void; | ||
getReferenceElement(): HTMLElement | null; | ||
@@ -55,2 +64,3 @@ getFloatingElement(): HTMLElement | null; | ||
} | ||
export {}; | ||
//# sourceMappingURL=tooltip.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare function convertTriggerFromAttribute(value?: string | null): string[]; | ||
export declare function convertTriggerFromAttribute(value?: string | string[] | null): string[]; | ||
//# sourceMappingURL=tooltip.helpers.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export{ak as ALIGN_ITEMS_VALUES,ad as AVAILABLE_ICONS,A as Accordion,c as AccordionContent,a as AccordionTitle,b3 as ActionableTag,B as BackButton,d as Badge,k as Banner,e as BannerActionPrimary,f as BannerActionSecondary,g as BannerActions,h as BannerDescription,i as BannerIcon,j as BannerTitle,l as Body,am as Box,m as Button,C as Card,s as CardActionPrimary,u as CardActionSecondary,v as CardActionTertiary,n as CardBody,q as CardDivider,r as CardFooter,o as CardSubtitle,p as CardTitle,w as Checkbox,x as CloseButton,aA as Column,ay as Container,y as DIALOG_SIZES,z as DIALOG_VARIANTS,O as DRAWER_SIZES,D as Dialog,E as DialogActionPrimary,F as DialogActionSecondary,G as DialogActionTertiary,H as DialogActions,I as DialogBody,J as DialogClose,K as DialogFooter,L as DialogHeader,M as Divider,N as Drawer,P as DrawerActionPrimary,Q as DrawerActionSecondary,R as DrawerActionTertiary,S as DrawerActions,T as DrawerBody,U as DrawerClose,V as DrawerHeader,W as Dropdown,Z as DropdownItem,Y as DropdownMenu,X as DropdownTrigger,a3 as EMPTY_STATE_VARIANTS,a2 as EmptyState,_ as EmptyStateAction,$ as EmptyStateHeader,a0 as EmptyStateIllustration,a1 as EmptyStateMessage,a7 as FIELD_STATUSES,a4 as Field,a5 as FieldHint,a6 as FieldLabel,as as Grid,ao as Group,a8 as Header,a9 as HeaderActions,aa as HeaderContent,ab as HeaderTitle,ae as Icon,al as JUSTIFY_CONTENT_VALUES,af as Label,ah as LabeledValue,ai as LabeledValueLabel,aj as LabeledValueValue,aB as Link,bk as LogoLoader,aC as PageContent,aD as Pagination,aE as ProgressBar,aF as ProgressBarCountdown,aG as Radio,aH as RadioGroup,az as Row,aI as Section,aJ as SectionTitle,au as Sidebar,aK as SpinnerWheel,aq as Stack,aM as Step,aL as Steps,ac as SubHeader,aN as Switch,aw as Switcher,bj as TOOLTIP_PLACEMENT_VALUES,b0 as Tab,b1 as TabPanel,aO as Table,a_ as TableActions,aT as TableBody,aW as TableCell,aZ as TableFeedback,aU as TableFoot,aQ as TableHead,aR as TableHeadCell,aV as TableRow,aY as TableToolbar,a$ as Tabs,b2 as Tag,b4 as Text,b5 as TextArea,b6 as TextField,b7 as Timeline,b8 as TimelineExpandableItem,b9 as TimelineItem,ba as TimelineItemBody,bb as TimelineItemFooter,bc as TimelineItemHeader,bd as TimelineItemHeaderSubtitle,be as TimelineItemHeaderTitle,bf as TimelineItemIcon,bh as Toggle,bg as ToggleGroup,bi as Tooltip,an as defaultBoxProps,at as defaultGridProps,ap as defaultGroupProps,ag as defaultLabeledValueProps,av as defaultSidebarProps,ar as defaultStackProps,ax as defaultSwitcherProps,aX as defaultTableCellProps,aS as defaultTableHeadCellProps,aP as defaultTableProps,t as typographyVariants}from"./index-DCMo18JF.js"; | ||
export{ak as ALIGN_ITEMS_VALUES,ad as AVAILABLE_ICONS,A as Accordion,c as AccordionContent,a as AccordionTitle,b3 as ActionableTag,B as BackButton,d as Badge,k as Banner,e as BannerActionPrimary,f as BannerActionSecondary,g as BannerActions,h as BannerDescription,i as BannerIcon,j as BannerTitle,l as Body,am as Box,m as Button,C as Card,s as CardActionPrimary,u as CardActionSecondary,v as CardActionTertiary,n as CardBody,q as CardDivider,r as CardFooter,o as CardSubtitle,p as CardTitle,w as Checkbox,x as CloseButton,aA as Column,ay as Container,y as DIALOG_SIZES,z as DIALOG_VARIANTS,O as DRAWER_SIZES,D as Dialog,E as DialogActionPrimary,F as DialogActionSecondary,G as DialogActionTertiary,H as DialogActions,I as DialogBody,J as DialogClose,K as DialogFooter,L as DialogHeader,M as Divider,N as Drawer,P as DrawerActionPrimary,Q as DrawerActionSecondary,R as DrawerActionTertiary,S as DrawerActions,T as DrawerBody,U as DrawerClose,V as DrawerHeader,W as Dropdown,Z as DropdownItem,Y as DropdownMenu,X as DropdownTrigger,a3 as EMPTY_STATE_VARIANTS,a2 as EmptyState,_ as EmptyStateAction,$ as EmptyStateHeader,a0 as EmptyStateIllustration,a1 as EmptyStateMessage,a7 as FIELD_STATUSES,a4 as Field,a5 as FieldHint,a6 as FieldLabel,as as Grid,ao as Group,a8 as Header,a9 as HeaderActions,aa as HeaderContent,ab as HeaderTitle,ae as Icon,al as JUSTIFY_CONTENT_VALUES,af as Label,ah as LabeledValue,ai as LabeledValueLabel,aj as LabeledValueValue,aB as Link,bk as LogoLoader,aC as PageContent,aD as Pagination,aE as ProgressBar,aF as ProgressBarCountdown,aG as Radio,aH as RadioGroup,az as Row,aI as Section,aJ as SectionTitle,au as Sidebar,aK as SpinnerWheel,aq as Stack,aM as Step,aL as Steps,ac as SubHeader,aN as Switch,aw as Switcher,bj as TOOLTIP_PLACEMENT_VALUES,b0 as Tab,b1 as TabPanel,aO as Table,a_ as TableActions,aT as TableBody,aW as TableCell,aZ as TableFeedback,aU as TableFoot,aQ as TableHead,aR as TableHeadCell,aV as TableRow,aY as TableToolbar,a$ as Tabs,b2 as Tag,b4 as Text,b5 as TextArea,b6 as TextField,b7 as Timeline,b8 as TimelineExpandableItem,b9 as TimelineItem,ba as TimelineItemBody,bb as TimelineItemFooter,bc as TimelineItemHeader,bd as TimelineItemHeaderSubtitle,be as TimelineItemHeaderTitle,bf as TimelineItemIcon,bh as Toggle,bg as ToggleGroup,bi as Tooltip,an as defaultBoxProps,at as defaultGridProps,ap as defaultGroupProps,ag as defaultLabeledValueProps,av as defaultSidebarProps,ar as defaultStackProps,ax as defaultSwitcherProps,aX as defaultTableCellProps,aS as defaultTableHeadCellProps,aP as defaultTableProps,t as typographyVariants}from"./index-XywMmB6I.js"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@loadsmart/miranda-wc", | ||
"version": "2.0.0-beta.10", | ||
"version": "2.0.0-beta.11", | ||
"description": "Miranda Web Components component library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1198651
10656