solely 0.4.19 → 0.4.20
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.
- package/dist/components/commands/tooltip/types.d.ts +2 -5
- package/dist/components/elements/tooltip/index.cjs +1 -1
- package/dist/components/elements/tooltip/index.js +1 -1
- package/dist/components/elements/tooltip/types.d.ts +2 -5
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1 -1
- package/dist/components/tooltip-types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
5
|
-
export type TooltipTrigger = 'hover' | 'click' | 'focus' | 'manual';
|
|
1
|
+
import { TooltipPlacement, TooltipTrigger } from '../../tooltip-types';
|
|
2
|
+
export type { TooltipPlacement, TooltipTrigger };
|
|
6
3
|
export interface TooltipOptions {
|
|
7
4
|
/** 提示内容 */
|
|
8
5
|
content?: string | HTMLElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var t=Object.defineProperty,e=(e,i,s)=>((e,i,s)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s)(e,"symbol"!=typeof i?i+"":i,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./style.css.cjs"),s=require("./index.html.cjs"),n=require("../../../runtime/component/base-element.cjs"),o=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyTooltip=class extends n.default{constructor(){super(...arguments),e(this,"_clickOutsideHandler"),e(this,"_boundFocusHandler"),e(this,"_boundBlurHandler"),e(this,"_boundFocusable")}getTooltipClasses(){return{[`tooltip--${this.$data.placement}`]:!0,"is-visible":this.$data.visible}}show(){this.$data.visible||(this.$data.visible=!0,this.emit("show"))}hide(){this.$data.visible&&(this.$data.visible=!1,this.emit("hide"))}handleMouseEnter(t){"hover"===this.$data.trigger&&(t.stopPropagation(),this.show())}handleMouseLeave(t){"hover"===this.$data.trigger&&(t.stopPropagation(),this.hide())}handleFocus(t){"focus"===this.$data.trigger&&(t.stopPropagation(),this.show())}handleBlur(t){"focus"===this.$data.trigger&&(t.stopPropagation(),this.hide())}bindSlotEvents(){var t;if("manual"===this.$data.trigger)return;if("focus"!==this.$data.trigger)return;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("slot");e&&(this.unbindSlotEvents(),e.assignedElements().forEach(t=>{const e=t.querySelector("input, textarea, select, button, a, [tabindex]")||t;e&&(this._boundFocusHandler=this.handleFocus.bind(this),this._boundBlurHandler=this.handleBlur.bind(this),this._boundFocusable=e,e.addEventListener("focus",this._boundFocusHandler),e.addEventListener("blur",this._boundBlurHandler))}))}unbindSlotEvents(){this._boundFocusable&&(this._boundFocusHandler&&this._boundFocusable.removeEventListener("focus",this._boundFocusHandler),this._boundBlurHandler&&this._boundFocusable.removeEventListener("blur",this._boundBlurHandler),this._boundFocusable=void 0,this._boundFocusHandler=void 0,this._boundBlurHandler=void 0)}handleClick(t){"manual"!==this.$data.trigger&&"click"===this.$data.trigger&&(t.stopPropagation(),this.$data.visible?(this.hide(),this.unbindClickOutside()):(this.show(),this.bindClickOutside()))}bindClickOutside(){this._clickOutsideHandler||(this._clickOutsideHandler=t=>{t.composedPath().includes(this)||(this.hide(),this.unbindClickOutside())},document.addEventListener("click",this._clickOutsideHandler))}unbindClickOutside(){this._clickOutsideHandler&&(document.removeEventListener("click",this._clickOutsideHandler),this._clickOutsideHandler=void 0)}mounted(){this.refresh(),this.bindSlotEvents()}unmounted(){this.unbindClickOutside(),this.unbindSlotEvents()}},exports.SolelyTooltip=((t,e)=>{for(var i,s=e,n=t.length-1;n>=0;n--)(i=t[n])&&(s=i(s)||s);return s})([o.CustomElement({tagName:"solely-tooltip",template:s.__SOLELY_IR__,styles:i.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"content",type:"string",default:""},{name:"placement",type:"string",default:"top"},{name:"trigger",type:"string",default:"hover"},{name:"visible",type:"boolean",default:!1},{name:"color",type:"string",default:""},{name:"maxWidth",type:"number",default:250}]})],exports.SolelyTooltip);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=(e,i,s)=>((e,i,s)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s)(e,"symbol"!=typeof i?i+"":i,s);import i from"./style.css.js";import{__SOLELY_IR__ as s}from"./index.html.js";import n from"../../../runtime/component/base-element.js";import{CustomElement as o}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let d=class extends n{constructor(){super(...arguments),e(this,"_clickOutsideHandler"),e(this,"_boundFocusHandler"),e(this,"_boundBlurHandler"),e(this,"_boundFocusable")}getTooltipClasses(){return{[`tooltip--${this.$data.placement}`]:!0,"is-visible":this.$data.visible}}show(){this.$data.visible||(this.$data.visible=!0,this.emit("show"))}hide(){this.$data.visible&&(this.$data.visible=!1,this.emit("hide"))}handleMouseEnter(t){"hover"===this.$data.trigger&&(t.stopPropagation(),this.show())}handleMouseLeave(t){"hover"===this.$data.trigger&&(t.stopPropagation(),this.hide())}handleFocus(t){"focus"===this.$data.trigger&&(t.stopPropagation(),this.show())}handleBlur(t){"focus"===this.$data.trigger&&(t.stopPropagation(),this.hide())}bindSlotEvents(){var t;if("focus"!==this.$data.trigger)return;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("slot");e&&(this.unbindSlotEvents(),e.assignedElements().forEach(t=>{const e=t.querySelector("input, textarea, select, button, a, [tabindex]")||t;e&&(this._boundFocusHandler=this.handleFocus.bind(this),this._boundBlurHandler=this.handleBlur.bind(this),this._boundFocusable=e,e.addEventListener("focus",this._boundFocusHandler),e.addEventListener("blur",this._boundBlurHandler))}))}unbindSlotEvents(){this._boundFocusable&&(this._boundFocusHandler&&this._boundFocusable.removeEventListener("focus",this._boundFocusHandler),this._boundBlurHandler&&this._boundFocusable.removeEventListener("blur",this._boundBlurHandler),this._boundFocusable=void 0,this._boundFocusHandler=void 0,this._boundBlurHandler=void 0)}handleClick(t){"click"===this.$data.trigger&&(t.stopPropagation(),this.$data.visible?(this.hide(),this.unbindClickOutside()):(this.show(),this.bindClickOutside()))}bindClickOutside(){this._clickOutsideHandler||(this._clickOutsideHandler=t=>{t.composedPath().includes(this)||(this.hide(),this.unbindClickOutside())},document.addEventListener("click",this._clickOutsideHandler))}unbindClickOutside(){this._clickOutsideHandler&&(document.removeEventListener("click",this._clickOutsideHandler),this._clickOutsideHandler=void 0)}mounted(){this.refresh(),this.bindSlotEvents()}unmounted(){this.unbindClickOutside(),this.unbindSlotEvents()}};d=((t,e)=>{for(var i,s=e,n=t.length-1;n>=0;n--)(i=t[n])&&(s=i(s)||s);return s})([o({tagName:"solely-tooltip",template:s,styles:i,shadowDOM:{use:!0,mode:"open"},props:[{name:"content",type:"string",default:""},{name:"placement",type:"string",default:"top"},{name:"trigger",type:"string",default:"hover"},{name:"visible",type:"boolean",default:!1},{name:"color",type:"string",default:""},{name:"maxWidth",type:"number",default:250}]})],d);export{d as SolelyTooltip};
|
|
1
|
+
var t=Object.defineProperty,e=(e,i,s)=>((e,i,s)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s)(e,"symbol"!=typeof i?i+"":i,s);import i from"./style.css.js";import{__SOLELY_IR__ as s}from"./index.html.js";import n from"../../../runtime/component/base-element.js";import{CustomElement as o}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let d=class extends n{constructor(){super(...arguments),e(this,"_clickOutsideHandler"),e(this,"_boundFocusHandler"),e(this,"_boundBlurHandler"),e(this,"_boundFocusable")}getTooltipClasses(){return{[`tooltip--${this.$data.placement}`]:!0,"is-visible":this.$data.visible}}show(){this.$data.visible||(this.$data.visible=!0,this.emit("show"))}hide(){this.$data.visible&&(this.$data.visible=!1,this.emit("hide"))}handleMouseEnter(t){"hover"===this.$data.trigger&&(t.stopPropagation(),this.show())}handleMouseLeave(t){"hover"===this.$data.trigger&&(t.stopPropagation(),this.hide())}handleFocus(t){"focus"===this.$data.trigger&&(t.stopPropagation(),this.show())}handleBlur(t){"focus"===this.$data.trigger&&(t.stopPropagation(),this.hide())}bindSlotEvents(){var t;if("manual"===this.$data.trigger)return;if("focus"!==this.$data.trigger)return;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("slot");e&&(this.unbindSlotEvents(),e.assignedElements().forEach(t=>{const e=t.querySelector("input, textarea, select, button, a, [tabindex]")||t;e&&(this._boundFocusHandler=this.handleFocus.bind(this),this._boundBlurHandler=this.handleBlur.bind(this),this._boundFocusable=e,e.addEventListener("focus",this._boundFocusHandler),e.addEventListener("blur",this._boundBlurHandler))}))}unbindSlotEvents(){this._boundFocusable&&(this._boundFocusHandler&&this._boundFocusable.removeEventListener("focus",this._boundFocusHandler),this._boundBlurHandler&&this._boundFocusable.removeEventListener("blur",this._boundBlurHandler),this._boundFocusable=void 0,this._boundFocusHandler=void 0,this._boundBlurHandler=void 0)}handleClick(t){"manual"!==this.$data.trigger&&"click"===this.$data.trigger&&(t.stopPropagation(),this.$data.visible?(this.hide(),this.unbindClickOutside()):(this.show(),this.bindClickOutside()))}bindClickOutside(){this._clickOutsideHandler||(this._clickOutsideHandler=t=>{t.composedPath().includes(this)||(this.hide(),this.unbindClickOutside())},document.addEventListener("click",this._clickOutsideHandler))}unbindClickOutside(){this._clickOutsideHandler&&(document.removeEventListener("click",this._clickOutsideHandler),this._clickOutsideHandler=void 0)}mounted(){this.refresh(),this.bindSlotEvents()}unmounted(){this.unbindClickOutside(),this.unbindSlotEvents()}};d=((t,e)=>{for(var i,s=e,n=t.length-1;n>=0;n--)(i=t[n])&&(s=i(s)||s);return s})([o({tagName:"solely-tooltip",template:s,styles:i,shadowDOM:{use:!0,mode:"open"},props:[{name:"content",type:"string",default:""},{name:"placement",type:"string",default:"top"},{name:"trigger",type:"string",default:"hover"},{name:"visible",type:"boolean",default:!1},{name:"color",type:"string",default:""},{name:"maxWidth",type:"number",default:250}]})],d);export{d as SolelyTooltip};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
5
|
-
export type TooltipTrigger = 'hover' | 'click' | 'focus';
|
|
1
|
+
import { TooltipPlacement, TooltipTrigger } from '../../tooltip-types';
|
|
2
|
+
export type { TooltipPlacement, TooltipTrigger };
|
|
6
3
|
export interface TooltipProps {
|
|
7
4
|
/** 提示内容 */
|
|
8
5
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme/index.cjs"),r=require("./elements/button/index.cjs"),t=require("./elements/icon/index.cjs"),o=require("./elements/input/index.cjs"),l=require("./elements/fab/index.cjs"),n=require("./elements/card/index.cjs"),s=require("./elements/tag/index.cjs"),i=require("./elements/badge/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme/index.cjs"),r=require("./elements/button/index.cjs"),t=require("./elements/icon/index.cjs"),o=require("./elements/input/index.cjs"),l=require("./elements/fab/index.cjs"),n=require("./elements/card/index.cjs"),s=require("./elements/tag/index.cjs"),i=require("./elements/badge/index.cjs"),c=require("./elements/alert/index.cjs"),p=require("./elements/switch/index.cjs"),d=require("./elements/checkbox/index.cjs"),a=require("./elements/radio/index.cjs"),m=require("./elements/select/index.cjs"),y=require("./elements/progress/index.cjs"),x=require("./elements/divider/index.cjs"),u=require("./elements/tabs/index.cjs"),b=require("./elements/table/index.cjs"),S=require("./elements/skeleton/index.cjs"),j=require("./elements/empty/index.cjs"),g=require("./elements/pagination/index.cjs"),P=require("./elements/breadcrumb/index.cjs"),f=require("./elements/steps/index.cjs"),q=require("./elements/timeline/index.cjs"),O=require("./elements/backtop/index.cjs"),T=require("./elements/upload/index.cjs"),I=require("./elements/rate/index.cjs"),h=require("./elements/slider/index.cjs"),A=require("./elements/tree/index.cjs"),k=require("./elements/coordinate-input/index.cjs"),C=require("./elements/tooltip/index.cjs"),N=require("./elements/not-found/index.cjs"),B=require("./commands/message/index.cjs"),D=require("./commands/modal/index.cjs"),R=require("./commands/tooltip/index.cjs"),M=require("./commands/drawer/index.cjs"),v=require("./commands/popconfirm/index.cjs"),w=require("./commands/utils.cjs");exports.getTheme=e.getTheme,exports.initTheme=e.initTheme,exports.persistTheme=e.persistTheme,exports.setTheme=e.setTheme,exports.toggleTheme=e.toggleTheme,Object.defineProperty(exports,"SolelyButton",{enumerable:!0,get:()=>r.SolelyButton}),Object.defineProperty(exports,"SolelyIcon",{enumerable:!0,get:()=>t.SolelyIcon}),exports.getIcon=t.getIcon,exports.getRegisteredIcons=t.getRegisteredIcons,exports.hasIcon=t.hasIcon,exports.registerIcon=t.registerIcon,exports.registerIcons=t.registerIcons,Object.defineProperty(exports,"SolelyInput",{enumerable:!0,get:()=>o.SolelyInput}),Object.defineProperty(exports,"SolelyFab",{enumerable:!0,get:()=>l.SolelyFab}),Object.defineProperty(exports,"SolelyCard",{enumerable:!0,get:()=>n.SolelyCard}),Object.defineProperty(exports,"SolelyTag",{enumerable:!0,get:()=>s.SolelyTag}),Object.defineProperty(exports,"SolelyBadge",{enumerable:!0,get:()=>i.SolelyBadge}),Object.defineProperty(exports,"SolelyAlert",{enumerable:!0,get:()=>c.SolelyAlert}),Object.defineProperty(exports,"SolelySwitch",{enumerable:!0,get:()=>p.SolelySwitch}),Object.defineProperty(exports,"SolelyCheckbox",{enumerable:!0,get:()=>d.SolelyCheckbox}),Object.defineProperty(exports,"SolelyRadio",{enumerable:!0,get:()=>a.SolelyRadio}),Object.defineProperty(exports,"SolelySelect",{enumerable:!0,get:()=>m.SolelySelect}),Object.defineProperty(exports,"SolelyProgress",{enumerable:!0,get:()=>y.SolelyProgress}),Object.defineProperty(exports,"SolelyDivider",{enumerable:!0,get:()=>x.SolelyDivider}),Object.defineProperty(exports,"SolelyTabs",{enumerable:!0,get:()=>u.SolelyTabs}),Object.defineProperty(exports,"SolelyTable",{enumerable:!0,get:()=>b.SolelyTable}),Object.defineProperty(exports,"SolelySkeleton",{enumerable:!0,get:()=>S.SolelySkeleton}),Object.defineProperty(exports,"SolelyEmpty",{enumerable:!0,get:()=>j.SolelyEmpty}),Object.defineProperty(exports,"SolelyPagination",{enumerable:!0,get:()=>g.SolelyPagination}),Object.defineProperty(exports,"SolelyBreadcrumb",{enumerable:!0,get:()=>P.SolelyBreadcrumb}),Object.defineProperty(exports,"SolelySteps",{enumerable:!0,get:()=>f.SolelySteps}),Object.defineProperty(exports,"SolelyTimeline",{enumerable:!0,get:()=>q.SolelyTimeline}),Object.defineProperty(exports,"SolelyBackTop",{enumerable:!0,get:()=>O.SolelyBackTop}),Object.defineProperty(exports,"SolelyUpload",{enumerable:!0,get:()=>T.SolelyUpload}),Object.defineProperty(exports,"SolelyRate",{enumerable:!0,get:()=>I.SolelyRate}),Object.defineProperty(exports,"SolelySlider",{enumerable:!0,get:()=>h.SolelySlider}),Object.defineProperty(exports,"SolelyTree",{enumerable:!0,get:()=>A.SolelyTree}),Object.defineProperty(exports,"SolelyCoordinateInput",{enumerable:!0,get:()=>k.SolelyCoordinateInput}),Object.defineProperty(exports,"SolelyTooltip",{enumerable:!0,get:()=>C.SolelyTooltip}),Object.defineProperty(exports,"SolelyNotFound",{enumerable:!0,get:()=>N.SolelyNotFound}),exports.Message=B.Message,exports.Modal=D.Modal,exports.Tooltip=R.Tooltip,exports.Drawer=M.Drawer,exports.Popconfirm=v.Popconfirm,exports.ANIMATION_DURATION=w.ANIMATION_DURATION,exports.Z_INDEX=w.Z_INDEX,exports.addClosingAnimation=w.addClosingAnimation,exports.calculatePosition=w.calculatePosition,exports.createElement=w.createElement,exports.generateId=w.generateId,exports.injectStyle=w.injectStyle,exports.removeStyle=w.removeStyle,exports.safeAsyncCallback=w.safeAsyncCallback;
|
|
@@ -18,5 +18,4 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export * from './theme';
|
|
20
20
|
export * from './elements';
|
|
21
|
-
export
|
|
22
|
-
export type { MessageOptions, MessageInstance, MessageConfig, MessageType, MessagePlacement, ModalOptions, ModalInstance, ModalConfig, ModalType, ModalButton, TooltipOptions, TooltipInstance, TooltipConfig, DrawerOptions, DrawerInstance, DrawerConfig, DrawerPlacement, PopconfirmOptions, PopconfirmInstance, PopconfirmConfig, PopconfirmPlacement, } from './commands';
|
|
21
|
+
export * from './commands';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getTheme as e,initTheme as m,persistTheme as o,setTheme as t,toggleTheme as i}from"./theme/index.js";import{SolelyButton as r}from"./elements/button/index.js";import{SolelyIcon as
|
|
1
|
+
import{getTheme as e,initTheme as m,persistTheme as o,setTheme as t,toggleTheme as i}from"./theme/index.js";import{SolelyButton as r}from"./elements/button/index.js";import{SolelyIcon as s,getIcon as n,getRegisteredIcons as d,hasIcon as p,registerIcon as l,registerIcons as f}from"./elements/icon/index.js";import{SolelyInput as x}from"./elements/input/index.js";import{SolelyFab as j}from"./elements/fab/index.js";import{SolelyCard as a}from"./elements/card/index.js";import{SolelyTag as c}from"./elements/tag/index.js";import{SolelyBadge as b}from"./elements/badge/index.js";import{SolelyAlert as u}from"./elements/alert/index.js";import{SolelySwitch as g}from"./elements/switch/index.js";import{SolelyCheckbox as h}from"./elements/checkbox/index.js";import{SolelyRadio as k}from"./elements/radio/index.js";import{SolelySelect as w}from"./elements/select/index.js";import{SolelyProgress as v}from"./elements/progress/index.js";import{SolelyDivider as y}from"./elements/divider/index.js";import{SolelyTabs as q}from"./elements/tabs/index.js";import{SolelyTable as z}from"./elements/table/index.js";import{SolelySkeleton as A}from"./elements/skeleton/index.js";import{SolelyEmpty as B}from"./elements/empty/index.js";import{SolelyPagination as C}from"./elements/pagination/index.js";import{SolelyBreadcrumb as D}from"./elements/breadcrumb/index.js";import{SolelySteps as E}from"./elements/steps/index.js";import{SolelyTimeline as F}from"./elements/timeline/index.js";import{SolelyBackTop as G}from"./elements/backtop/index.js";import{SolelyUpload as H}from"./elements/upload/index.js";import{SolelyRate as I}from"./elements/rate/index.js";import{SolelySlider as J}from"./elements/slider/index.js";import{SolelyTree as K}from"./elements/tree/index.js";import{SolelyCoordinateInput as L}from"./elements/coordinate-input/index.js";import{SolelyTooltip as M}from"./elements/tooltip/index.js";import{SolelyNotFound as N}from"./elements/not-found/index.js";import{Message as O}from"./commands/message/index.js";import{Modal as P}from"./commands/modal/index.js";import{Tooltip as Q}from"./commands/tooltip/index.js";import{Drawer as R}from"./commands/drawer/index.js";import{Popconfirm as S}from"./commands/popconfirm/index.js";import{ANIMATION_DURATION as T,Z_INDEX as U,addClosingAnimation as V,calculatePosition as W,createElement as X,generateId as Y,injectStyle as Z,removeStyle as $,safeAsyncCallback as _}from"./commands/utils.js";export{T as ANIMATION_DURATION,R as Drawer,O as Message,P as Modal,S as Popconfirm,u as SolelyAlert,G as SolelyBackTop,b as SolelyBadge,D as SolelyBreadcrumb,r as SolelyButton,a as SolelyCard,h as SolelyCheckbox,L as SolelyCoordinateInput,y as SolelyDivider,B as SolelyEmpty,j as SolelyFab,s as SolelyIcon,x as SolelyInput,N as SolelyNotFound,C as SolelyPagination,v as SolelyProgress,k as SolelyRadio,I as SolelyRate,w as SolelySelect,A as SolelySkeleton,J as SolelySlider,E as SolelySteps,g as SolelySwitch,z as SolelyTable,q as SolelyTabs,c as SolelyTag,F as SolelyTimeline,M as SolelyTooltip,K as SolelyTree,H as SolelyUpload,Q as Tooltip,U as Z_INDEX,V as addClosingAnimation,W as calculatePosition,X as createElement,Y as generateId,n as getIcon,d as getRegisteredIcons,e as getTheme,p as hasIcon,m as initTheme,Z as injectStyle,o as persistTheme,l as registerIcon,f as registerIcons,$ as removeStyle,_ as safeAsyncCallback,t as setTheme,i as toggleTheme};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip 共享类型定义
|
|
3
|
+
* 供 elements 和 commands 模块复用
|
|
4
|
+
*/
|
|
5
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
6
|
+
export type TooltipTrigger = 'hover' | 'click' | 'focus' | 'manual';
|
package/package.json
CHANGED