@heito/hxui 1.0.11
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/README.md +3 -0
- package/dist/index.es.js +794 -0
- package/dist/index.umd.js +56 -0
- package/dist/style.css +1 -0
- package/dist/types/components/animations/Height.vue.d.ts +40 -0
- package/dist/types/components/index.d.ts +12 -0
- package/dist/types/components/modules/ui/SelectOption.vue.d.ts +26 -0
- package/dist/types/components/ui/Button.vue.d.ts +24 -0
- package/dist/types/components/ui/ButtonGroup.vue.d.ts +12 -0
- package/dist/types/components/ui/Checkbox.vue.d.ts +26 -0
- package/dist/types/components/ui/Dialog.vue.d.ts +56 -0
- package/dist/types/components/ui/Image.vue.d.ts +6 -0
- package/dist/types/components/ui/Input.vue.d.ts +41 -0
- package/dist/types/components/ui/Label.vue.d.ts +12 -0
- package/dist/types/components/ui/Popover.vue.d.ts +45 -0
- package/dist/types/components/ui/Select.vue.d.ts +33 -0
- package/dist/types/components/ui/Skeleton.vue.d.ts +23 -0
- package/dist/types/components/ui/Tooltip.vue.d.ts +31 -0
- package/dist/types/components/ui/menu/Menu.vue.d.ts +19 -0
- package/dist/types/components/ui/menu/MenuButton.vue.d.ts +15 -0
- package/dist/types/components/ui/menu/MenuChildren.vue.d.ts +22 -0
- package/dist/types/components/ui/menu/MenuGroup.vue.d.ts +2 -0
- package/dist/types/components/ui/menu/MenuLabel.vue.d.ts +12 -0
- package/dist/types/components/ui/menu/MenuRadio.vue.d.ts +24 -0
- package/dist/types/components/ui/menu/MenuSeparator.vue.d.ts +2 -0
- package/dist/types/components/ui/notifications/Group.vue.d.ts +16 -0
- package/dist/types/components/ui/notifications/Notification.vue.d.ts +48 -0
- package/dist/types/index.d.ts +5 -0
- package/package.json +64 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.HeitoVueComponents={},h.Vue))})(this,(function(h,e){"use strict";const v=["disabled"],ee=e.defineComponent({__name:"Button",props:{variant:{default:"default"},disabled:{type:Boolean,default:!1}},emits:{click(n){return n}},setup(n,{emit:i}){const s=i;return(o,t)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["ui-button",o.variant]),disabled:o.disabled,onClick:t[0]||(t[0]=l=>s("click",l))},[e.renderSlot(o.$slots,"default",{},void 0,!0)],10,v))}}),B=(n,i)=>{const s=n.__vccOpts||n;for(const[o,t]of i)s[o]=t;return s},D=B(ee,[["__scopeId","data-v-33152a56"]]),te=["type","placeholder","min","max","maxlength"],H=B(e.defineComponent({__name:"Input",props:e.mergeModels({type:{default:"text"},disabled:{type:Boolean},placeholder:{},min:{},max:{}},{value:{},valueModifiers:{}}),emits:e.mergeModels({input(n){return n},change(n){return n},focus(n){return n},blur(n){return n}},["update:value"]),setup(n,{emit:i}){e.useSlots();const s=e.useModel(n,"value",{set(t){return t}}),o=i;return(t,l)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["ui-input",t.type])},[e.withDirectives(e.createElementVNode("input",{type:t.type,"onUpdate:modelValue":l[0]||(l[0]=r=>s.value=r),placeholder:t.placeholder,min:t.min,max:t.max,maxlength:t.max,onInput:l[1]||(l[1]=r=>o("input",r)),onChange:l[2]||(l[2]=r=>o("change",r)),onFocus:l[3]||(l[3]=r=>o("focus",r)),onBlur:l[4]||(l[4]=r=>o("blur",r))},null,40,te),[[e.vModelDynamic,s.value]])],2))}}),[["__scopeId","data-v-2f67079f"]]),I=B(e.defineComponent({__name:"Popover",props:{side:{default:()=>"bottom"},fixed:{type:Boolean,default:!1},transition:{default:()=>"show"},collisionPadding:{default:()=>4},closeOnClickOutside:{type:Boolean,default:!0},style:{default:""}},emits:["show","hide"],setup(n,{emit:i}){e.useSlots();const s=i,o=n,t=e.ref(!1),l=e.ref(null),r=e.computed(()=>{const f=typeof o.side=="string"?[o.side,"center"]:o.side;return l.value!==null&&(f[0]=l.value),f});let d=null,m=null,g=null;function k(f){t.value=!0,d=f,s("show")}function c(){t.value=!1,d=null,s("hide")}function p(f){t.value?c():k(f)}function a(f,y){if(!f||!y)return;const{width:$,height:V,x:F,y:b,top:P,left:E,right:M,bottom:O}=f?.getBoundingClientRect(),{width:Q,height:Y}=y?.getBoundingClientRect(),[T]=r.value,[K,x]=typeof o.collisionPadding=="number"?[o.collisionPadding,o.collisionPadding]:o.collisionPadding;l.value=null,T==="top"&&P-Y-x<0?l.value="bottom":T==="left"&&E-Q-K<0?l.value="right":T==="bottom"&&Y+O>window.innerHeight?l.value="top":T==="right"&&Q+M>window.innerWidth&&(l.value="left"),y.style.setProperty("--gap-h",`${K}px`),y.style.setProperty("--gap-v",`${x}px`),y.style.setProperty("--target-width",`${$}px`),y.style.setProperty("--target-height",`${V}px`),y.style.setProperty("--target-x",`${F}px`),y.style.setProperty("--target-y",`${b}px`)}function u(){m&&document.removeEventListener("scroll",m),g&&document.removeEventListener("click",g),m=null,g=null}function w(f){if(!d)return;const y=d?.currentTarget;m=()=>{!t.value||!y||a(y,f)},g=$=>{!o?.closeOnClickOutside||($.composedPath?.()||$.path)?.includes(f)||c()},document.addEventListener("scroll",m,{capture:!0,passive:!0}),e.nextTick(()=>{a(y,f),setTimeout(()=>g&&document.addEventListener("click",g),10)})}function C(){u(),d=null,l.value=null}return e.onUnmounted(()=>{C()}),(f,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(f.$slots,"default",{show:k,hide:c,toggle:p,isOpened:t.value},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:typeof f.transition=="string"?f.transition:f.transition?.name,onBeforeEnter:w,onAfterLeave:C},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["ui-popover",...r.value,{fixed:f.fixed}]),role:"dialog","aria-modal":"true",style:e.normalizeStyle(f.style)},[e.renderSlot(f.$slots,"content",{},void 0,!0)],6),[[e.vShow,t.value]])]),_:3},8,["name"])]))],64))}}),[["__scopeId","data-v-c4802e87"]]),oe={key:0},ne={key:1},A=B(e.defineComponent({__name:"SelectOption",props:{option:{}},emits:{click(n,i){return{event:n,option:i}}},setup(n,{emit:i}){const s=i,o=n;function t(l){o?.option?.type!=="option"||o?.option?.disabled===!0||s("click",l,o.option)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["option",!l.option?.type||l.option?.type==="option"?"default":l.option?.type,{disabled:l.option?.type==="option"&&l.option?.disabled}]),onClick:t},[l.option?.type==="option"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",null,e.toDisplayString(l.option?.label||l.option?.value),1),e.createElementVNode("div",null,e.toDisplayString(l.option?.text),1)])):l.option?.type==="label"?(e.openBlock(),e.createElementBlock("span",ne,e.toDisplayString(l.option?.value),1)):l.option?.type==="separator"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-1fea3155"]]);/**
|
|
2
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const le=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
|
|
7
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const j=n=>n==="";/**
|
|
12
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const ie=(...n)=>n.filter((i,s,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===s).join(" ").trim();/**
|
|
17
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const U=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
22
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const re=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
|
|
27
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const se=n=>{const i=re(n);return i.charAt(0).toUpperCase()+i.slice(1)};/**
|
|
32
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/var _={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
37
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const ae=({name:n,iconNode:i,absoluteStrokeWidth:s,"absolute-stroke-width":o,strokeWidth:t,"stroke-width":l,size:r=_.width,color:d=_.stroke,...m},{slots:g})=>e.h("svg",{..._,...m,width:r,height:r,stroke:d,"stroke-width":j(s)||j(o)||s===!0||o===!0?Number(t||l||_["stroke-width"])*24/Number(r):t||l||_["stroke-width"],class:ie("lucide",m.class,...n?[`lucide-${U(se(n))}-icon`,`lucide-${U(n)}`]:["lucide-icon"]),...!g.default&&!le(m)&&{"aria-hidden":"true"}},[...i.map(k=>e.h(...k)),...g.default?[g.default()]:[]]);/**
|
|
42
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const G=(n,i)=>(s,{slots:o,attrs:t})=>e.h(ae,{...t,...s,iconNode:i,name:n},o);/**
|
|
47
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const de=G("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
52
|
+
* @license lucide-vue-next v0.577.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const R=G("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ce={class:"options"},W=B(e.defineComponent({__name:"Select",props:{value:{type:[String,Number,Boolean]},placeholder:{},disabled:{type:Boolean,default:!1},side:{default:"bottom"},options:{}},emits:{select(n){return n}},setup(n,{emit:i}){const s=i,o=n,t=e.ref(169),l=e.ref(o?.value),r=e.computed(()=>o.options?.map(({type:c,...p})=>({type:c??"option",...p}))??[]),d=e.computed(()=>r.value.find(c=>c.type==="option"&&c.value===l.value)??null);let m;function g(c){c.type==="option"&&(l.value=c?.value,s("select",c),m&&m())}function k(c,p){const a=c?.currentTarget;a&&(p(c),m=()=>p(c),t.value=Math.min(Math.max(a?.clientWidth,169),window.innerWidth>512?512:window.innerWidth-24))}return(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ui-select",{selected:!!d.value}])},[e.createVNode(I,{side:c.side,style:e.normalizeStyle({width:`${t.value}px`})},{default:e.withCtx(({toggle:a})=>[e.createVNode(D,{variant:"outline",disabled:c.disabled,onClick:e.withModifiers(u=>k(u,a),["prevent","stop"])},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(d.value?d.value?.label||d.value?.value:c.placeholder),1),e.createVNode(e.unref(de),{style:{opacity:".5"}})]),_:2},1032,["disabled","onClick"])]),content:e.withCtx(()=>[e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(a,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[a?.type==="label"||a?.type==="separator"||a.type==="option"&&a?.useDefaultStyle===!0?(e.openBlock(),e.createBlock(A,{key:0,option:a,onClick:w=>g(a)},null,8,["option","onClick"])):e.renderSlot(c.$slots,"option",e.mergeProps({key:1,ref_for:!0},{option:a,index:u,select:()=>g(a)}),()=>[e.createVNode(A,{option:a,onClick:w=>g(a)},null,8,["option","onClick"])],!0)],64))),128))])]),_:3},8,["side","style"])],2))}}),[["__scopeId","data-v-760682cb"]]),pe={key:0,class:"header"},me={class:"buttons"},fe=["onClick"],Z=B(e.defineComponent({__name:"Dialog",props:{title:{},description:{},side:{default:()=>"center"},transition:{default:()=>"show-dialog"},collisionPadding:{default:()=>24},closeOnClickOutside:{type:Boolean,default:!0},buttons:{default:()=>[]},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:open","show","hide"],setup(n,{emit:i}){const s=e.useSlots(),o=i,t=n,l=e.ref(!1),r=e.computed(()=>typeof t.side=="string"?[t.side,"center"]:t.side),d=e.computed(()=>typeof t.collisionPadding=="number"?[t.collisionPadding,t.collisionPadding]:t.collisionPadding),m=e.computed(()=>!!t.title||!!t.description||!!s.title||!!s.description);function g(a){l.value=a,o("update:open",a)}function k(a){g(!0),o("show")}function c(){g(!1),o("hide")}function p(a){l.value?c():k()}return(a,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(a.$slots,"default",{show:k,hide:c,toggle:p,isOpened:l.value},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:typeof a.transition=="string"?a.transition:a.transition?.name},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["dialog",...r.value]),style:e.normalizeStyle({"--gap-v":d.value[0]+"px","--gap-h":d.value[1]+"px"})},[e.createElementVNode("div",{class:"background",onClick:u[0]||(u[0]=e.withModifiers(w=>a.closeOnClickOutside&&c(),["prevent","stop"]))}),e.createElementVNode("div",{class:"content",style:e.normalizeStyle(a.style)},[m.value?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("h2",null,[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)],!0)]),e.createElementVNode("p",null,[e.renderSlot(a.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(a.description),1)],!0)])])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"content",{show:k,hide:c,toggle:p,isOpened:l.value},void 0,!0),e.createElementVNode("div",me,[e.createElementVNode("div",{onClick:c},[e.createVNode(e.unref(R),{size:16})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(w,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,onClick:e.withModifiers(f=>w?.click?.(f),["prevent","stop"])},null,8,fe))),128))])],4)],6),[[e.vShow,l.value]])]),_:3},8,["name"])]))],64))}}),[["__scopeId","data-v-ad7af199"]]),q=B(e.defineComponent({__name:"Tooltip",props:e.mergeModels({side:{default:()=>"top"},collisionPadding:{default:()=>8},delay:{default:100}},{open:{type:Boolean},openModifiers:{}}),emits:["update:open"],setup(n){const i=e.useSlots(),s=e.useModel(n,"open");e.ref();const o=n,t=e.ref(null),l=e.computed(()=>{const p=typeof o.side=="string"?[o.side,"center"]:o.side;return t.value!==null&&(p[0]=t.value),p});let r=null,d=null;function m(p){if(!p||!d)return;const a=d.target,{width:u,height:w,x:C,y:f,top:y,left:$,right:V,bottom:F}=a?.getBoundingClientRect(),{width:b,height:P}=p?.getBoundingClientRect(),[E]=l.value,[M,O]=typeof o.collisionPadding=="number"?[o.collisionPadding,o.collisionPadding]:o.collisionPadding;E==="top"&&y-P-O<0?t.value="bottom":E==="left"&&$-b-M<0?t.value="right":E==="bottom"&&P+F>window.innerHeight?t.value="top":E==="right"&&b+V>window.innerWidth&&(t.value="left"),p.style.setProperty("--gap-h",`${M}px`),p.style.setProperty("--gap-v",`${O}px`),p.style.setProperty("--target-width",`${u}px`),p.style.setProperty("--target-height",`${w}px`),p.style.setProperty("--target-x",`${C}px`),p.style.setProperty("--target-y",`${f}px`)}function g(p){r&&clearTimeout(r),d=p,r=setTimeout(()=>{s.value=!0},o.delay)}const k=()=>{r&&(clearTimeout(r),r=null),d=null,s.value=!1};function c(){return(i.trigger?.()||[]).map(a=>e.h(a.type,{...a.props,onMouseenter(u){g(u),a.props?.onMouseenter?.(u)},onMouseleave(u){k(),a.props?.onMouseleave?.(u)},onFocus(u){g(u),a.props?.onFocus?.(u)},onBlur(u){k(),a.props?.onBlur?.(u)}},a.children))}return e.onUnmounted(()=>{r&&clearTimeout(r)}),(p,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(c),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"show",onBeforeEnter:a[0]||(a[0]=u=>m(u))},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip",...l.value])},[e.renderSlot(p.$slots,"default",{},void 0,!0)],2)):e.createCommentVNode("",!0)]),_:3})]))],64))}}),[["__scopeId","data-v-bccd013d"]]),z=B(e.defineComponent({__name:"Skeleton",props:{ready:{type:Boolean,default:!1},w:{default:"16px"},h:{default:"16px"}},setup(n){return(i,s)=>i.ready?e.renderSlot(i.$slots,"default",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"ui-skeleton",style:e.normalizeStyle({"--w":i.w,"--h":i.h})},[s[0]||(s[0]=e.createElementVNode("div",null,null,-1)),e.renderSlot(i.$slots,"content",{},void 0,!0)],4))}}),[["__scopeId","data-v-3b7cd939"]]),ue=["src","alt"],S=B(e.defineComponent({__name:"Image",props:{src:{},alt:{}},setup(n){const i=n,s=e.ref("loading");e.watch(()=>i.src,()=>o());function o(){const t=new Image;s.value="loading",t.onload=()=>{s.value="ready"},t.onerror=()=>{s.value="error"},t.src=i.src}return e.onMounted(()=>o()),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("img",{class:"ui-image",src:t.src,alt:t.alt},null,8,ue),[[e.vShow,s.value==="ready"]])]),_:1}),e.withDirectives(e.createVNode(z,{class:"ui-image",ready:!1},null,512),[[e.vShow,s.value!=="ready"]])],64))}}),[["__scopeId","data-v-9ea0741f"]]),N=B(e.defineComponent({__name:"Height",props:{showed:{type:Boolean},opacity:{type:Boolean,default:!1},duration:{type:Number,default:.3}},setup(n){const i=n,s=e.ref({"--opacity":i.opacity?0:1,"--duration":(i.duration||.3)+"s"});function o(r){r.style.height="auto";const{height:d}=window.getComputedStyle(r);r.style.height="0px",r.offsetHeight,r.style.height=d}function t(r){r.style.removeProperty("height")}function l(r){const{height:d}=window.getComputedStyle(r);r.style.height=d,r.offsetHeight,r.style.height="0px"}return(r,d)=>(e.openBlock(),e.createBlock(e.Transition,{name:"height",onEnter:d[0]||(d[0]=m=>o(m)),onAfterEnter:d[1]||(d[1]=m=>t(m)),onLeave:d[2]||(d[2]=m=>l(m)),onAfterLeave:d[3]||(d[3]=m=>t(m))},{default:e.withCtx(()=>[n.showed?(e.openBlock(),e.createElementBlock("div",{key:0,class:"height-content",style:e.normalizeStyle(s.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0)]),_:3}))}}),[["__scopeId","data-v-925752b4"]]),ge={class:"content"},he={class:"buttons"},ye=["onClick"],ke={class:"options"},L=B(e.defineComponent({__name:"Notification",props:{notification:{},showButtons:{type:Boolean},showOptions:{type:Boolean}},emits:{hide(){}},setup(n,{emit:i}){const s=i,o=e.ref(!1);return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["notification",{hide:o.value}])},[e.renderSlot(t.$slots,"before",{},void 0,!0),e.createElementVNode("header",null,[t.notification?.icon||t.notification?.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["i",{image:t.notification?.image,icon:t.notification?.icon}])},[t.notification?.image?(e.openBlock(),e.createBlock(S,{key:0,src:t.notification?.image},null,8,["src"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",ge,[e.createElementVNode("div",null,e.toDisplayString(t.notification?.title),1),e.createElementVNode("div",null,e.toDisplayString(t.notification?.text),1)])]),e.createVNode(N,{showed:t.showButtons&&t.notification?.buttons?.length>0},{default:e.withCtx(()=>[e.createElementVNode("ul",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.notification?.buttons,r=>(e.openBlock(),e.createElementBlock("li",{key:r?.label,onClick:e.withModifiers(d=>r?.click?r?.click(d):null,["stop","prevent"])},[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(r?.label),1),e.createElementVNode("div",null,e.toDisplayString(r?.text),1)])],8,ye))),128))])]),_:1},8,["showed"]),e.withDirectives(e.createElementVNode("ul",ke,[e.createElementVNode("li",{onClick:l[0]||(l[0]=e.withModifiers(r=>s("hide"),["stop","prevent"]))},[e.createVNode(e.unref(R))])],512),[[e.vShow,t.showOptions&&t.notification?.mode==="fixed"]]),e.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-1e6c986c"]]),Be={class:"content"},X=B(e.defineComponent({__name:"Group",props:{name:{},group:{}},setup(n){const i=e.ref(!1);return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group",{active:i.value}])},[e.createElementVNode("header",{onClick:o[0]||(o[0]=t=>i.value=!i.value)},[s.group?.image?(e.openBlock(),e.createBlock(S,{key:0,src:s.group?.image},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",Be,[e.createElementVNode("div",null,e.toDisplayString(s.group?.title||s.name),1),e.createElementVNode("div",null,e.toDisplayString(s.group?.text),1)])]),e.createVNode(N,{showed:i.value},{default:e.withCtx(()=>[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.group.list,t=>(e.openBlock(),e.createBlock(L,{key:t.id,notification:t,"show-buttons":!0},null,8,["notification"]))),128))])]),_:1},8,["showed"])],2))}}),[["__scopeId","data-v-36c3285a"]]),J=Object.freeze(Object.defineProperty({__proto__:null,AnimationHeight:N,Button:D,Dialog:Z,Image:S,Input:H,NotificationCard:L,NotificationGroup:X,Popover:I,Select:W,Skeleton:z,Tooltip:q},Symbol.toStringTag,{value:"Module"})),we={install(n){for(const i in J)n.component(i,J[i])}};h.AnimationHeight=N,h.Button=D,h.Dialog=Z,h.Image=S,h.Input=H,h.NotificationCard=L,h.NotificationGroup=X,h.Popover=I,h.Select=W,h.Skeleton=z,h.Tooltip=q,h.default=we,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
button[data-v-33152a56]{display:flex;margin:0;padding:0;border:none;background-color:transparent;-webkit-user-select:none;user-select:none}.ui-button[data-v-33152a56]{display:flex;padding:var(--hx-padding-xl);min-height:36px;color:#000;font-size:14px;align-items:center;justify-content:center;color:var(--hx-button-text-primary);border-radius:var(--hx-border-radius);background-color:var(--hx-button-background-primary);box-sizing:border-box;transition:filter .2s,box-shadow .2s,background-color .2s;gap:4px}[data-v-33152a56] svg.lucide{width:16px;height:16px}.ui-button[data-v-33152a56]:disabled{cursor:not-allowed;filter:brightness(.8);opacity:.7}.ui-button[data-v-33152a56]:not(:disabled):hover{cursor:pointer;filter:brightness(.8)}.ui-button[data-v-33152a56]:not(:disabled):active{filter:brightness(.6)}.ui-button.outline[data-v-33152a56]:not(:disabled):active{box-shadow:0 0 0 3px var(--background-secondary)}.ui-button:hover .content[data-v-33152a56],.ui-button:hover .after[data-v-33152a56],.ui-button:hover .before[data-v-33152a56]{z-index:2}.ui-button .content[data-v-33152a56]:hover,.ui-button .after[data-v-33152a56]:hover,.ui-button .before[data-v-33152a56]:hover{z-index:1}.ui-button:disabled .content[data-v-33152a56],.ui-button .before[data-v-33152a56]:disabled,.ui-button .after[data-v-33152a56]:disabled{cursor:not-allowed;filter:brightness(.7)}.ui-button.secondary[data-v-33152a56]{color:var(--hx-text-primary);background-color:#ffffff15}.ui-button.destructive[data-v-33152a56]{color:var(--hx-text-primary);background-color:var(--hx-color-red)}.ui-button.outline[data-v-33152a56]{color:var(--hx-text-primary);border:1px solid var(--hx-background-primary);background-color:var(--hx-background-secondary)}.ui-button.outline:has(.before)[data-v-33152a56]{border-left:none}.ui-button.outline:has(.before)[data-v-33152a56]:before{content:" ";position:absolute;width:1px;height:70%;top:50%;left:0;background-color:transparent;transform:translateY(-50%)}.ui-button.ghost[data-v-33152a56]{color:var(--text-primary);background-color:transparent}.ui-button.ghost[data-v-33152a56]:hover{background-color:#ffffff15}input[data-v-2f67079f]{padding:0;width:100%;color:var(--hx-text-primary);font-size:14px;border:none;background-color:transparent;outline:none}input[data-v-2f67079f]::-webkit-outer-spin-button,input[data-v-2f67079f]::-webkit-inner-spin-button{-webkit-appearance:none}input[type=number][data-v-2f67079f]{-moz-appearance:textfield}.ui-input[data-v-2f67079f]{display:flex;padding:6px 10px;min-height:32px;color:var(--hx-text-primary);font-size:14px;border-radius:var(--hx-border-radius);border:1px solid var(--hx-background-transparent);align-items:center;justify-self:start;background-color:var(--hx-background-secondary);transition:box-shadow .2s;box-sizing:border-box;-webkit-user-select:none;user-select:none;overflow:hidden}.ui-input[data-v-2f67079f]:has(>input:focus){box-shadow:0 0 0 3px var(--hx-background-secondary)}.before[data-v-2f67079f]{margin-right:4px}.after[data-v-2f67079f]{margin-left:4px}.ui-input.number[data-v-2f67079f]{padding:0}.ui-input.number input[data-v-2f67079f]{margin:0 6px;text-align:center}.number-btn[data-v-2f67079f]{cursor:pointer;padding:6px 10px;transition:filter .2s;background-color:var(--hx-background-secondary)}.number-btn.l[data-v-2f67079f]{border-right:1px solid var(--hx-background-transparent)}.number-btn.r[data-v-2f67079f]{border-left:1px solid var(--hx-background-transparent)}.number-btn[data-v-2f67079f]:hover{filter:brightness(.9)}.show-enter-active[data-v-c4802e87],.show-leave-active[data-v-c4802e87]{opacity:0}.ui-popover[data-v-c4802e87]{max-width:215px;min-width:128px;position:fixed;top:0;left:0;padding:4px;color:var(--hx-text-primary);border-radius:var(--hx-border-radius);border:1px solid var(--hx-background-transparent);background-color:var(--hx-background-secondary);transition:opacity .2s;box-sizing:border-box;z-index:1010}.ui-popover.top[data-v-c4802e87]{--v: calc(var(--target-y) - 100% - var(--gap-v))}.ui-popover.bottom[data-v-c4802e87]{--v: calc(var(--target-y) + var(--target-height) + var(--gap-v))}.ui-popover.top.start[data-v-c4802e87],.ui-popover.bottom.start[data-v-c4802e87]{transform:translate(var(--target-x),var(--v))}.ui-popover.top.center[data-v-c4802e87],.ui-popover.bottom.center[data-v-c4802e87]{transform:translate(calc(var(--target-x) + var(--target-width) / 2 - 50%),var(--v))}.ui-popover.top.end[data-v-c4802e87],.ui-popover.bottom.end[data-v-c4802e87]{transform:translate(calc(var(--target-x) + var(--target-width) - 100%),var(--v))}.ui-popover.left[data-v-c4802e87]{--h: calc(var(--target-x) - 100% - var(--gap-h))}.ui-popover.right[data-v-c4802e87]{--h: calc(var(--target-x) + var(--target-width) + var(--gap-h))}.ui-popover.left.start[data-v-c4802e87],.ui-popover.right.start[data-v-c4802e87]{transform:translate(var(--h),var(--target-y))}.ui-popover.left.center[data-v-c4802e87],.ui-popover.right.center[data-v-c4802e87]{transform:translate(var(--h),calc(var(--target-y) + var(--target-height) / 2 - 50%))}.ui-popover.left.end[data-v-c4802e87],.ui-popover.right.end[data-v-c4802e87]{transform:translate(var(--h),calc(var(--target-y) + var(--target-height) - 100%))}.option[data-v-1fea3155]{color:var(--text-primary);font-size:14px}.option.label[data-v-1fea3155]{margin:4px 0;font-size:12px;word-break:break-all;opacity:.7}.option.separator[data-v-1fea3155]:has(+.option.label){margin-bottom:0}.option.label+.option.separator[data-v-1fea3155]{margin-top:0}.option.separator[data-v-1fea3155]{margin-top:4px;margin-bottom:4px;border-top:1px solid var(--background-t)}.option.default[data-v-1fea3155]{display:flex;padding:4px 8px;border-radius:.5rem;align-items:center;background-color:var(--background-secondary);transition:.2s;overflow:hidden}.option.default[data-v-1fea3155]:not(.disabled):hover{cursor:pointer;filter:brightness(.8)}.option.default.disabled[data-v-1fea3155]{cursor:not-allowed;opacity:.7}.option.default>div[data-v-1fea3155]{max-width:100%;min-width:0;flex:1}.option.default>div div[data-v-1fea3155]{max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.option.default>div>div[data-v-1fea3155]:nth-child(2){font-size:12px}.show-select-options-enter-active[data-v-760682cb],.show-select-options-leave-active[data-v-760682cb]{opacity:0}.ui-select[data-v-760682cb]{position:relative;-webkit-user-select:none;user-select:none}.ui-button[data-v-760682cb]{width:100%}[data-v-760682cb] .ui-button{font-size:14px;justify-content:space-between}[data-v-760682cb] .ui-button span{opacity:.7}.ui-select.selected[data-v-760682cb] .ui-button span{opacity:1}.ui-select .options[data-v-760682cb]{display:flex;margin:4px 0;padding:8px;max-width:512px;width:clamp(169px,var(--width),512px);min-width:169px;position:fixed;border-radius:var(--hx-border-radius);border:1px solid var(--hx-background-transparent);flex-direction:column;background-color:var(--hx-background-secondary);transform:translate(calc(var(--width) / 2 - 50%));transition:opacity .2s;box-sizing:border-box;z-index:101}.show-dialog-enter-active[data-v-ad7af199],.show-dialog-leave-active[data-v-ad7af199]{opacity:0}.show-dialog-enter-active .content[data-v-ad7af199],.show-dialog-leave-active .content[data-v-ad7af199]{transform:scale(.65)}.dialog[data-v-ad7af199]{display:flex;padding:var(--gap-v, 4px) var(--gap-h, 4px);width:100vw;height:100vh;position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;transition:.2s;z-index:205}.dialog.center.start[data-v-ad7af199],.dialog.right.start[data-v-ad7af199],.dialog.left.start[data-v-ad7af199]{align-items:start}.dialog.center.end[data-v-ad7af199],.dialog.right.end[data-v-ad7af199],.dialog.left.end[data-v-ad7af199]{align-items:end}.dialog.top.start[data-v-ad7af199],.dialog.bottom.start[data-v-ad7af199]{justify-content:start}.dialog.top.end[data-v-ad7af199],.dialog.bottom.end[data-v-ad7af199]{justify-content:end}.dialog.center[data-v-ad7af199]{justify-content:center}.dialog.top[data-v-ad7af199]{align-items:start}.dialog.right[data-v-ad7af199]{justify-content:end}.dialog.bottom[data-v-ad7af199]{align-items:end}.dialog.left[data-v-ad7af199]{justify-content:start}.dialog.right .buttons[data-v-ad7af199],.dialog.top.end .buttons[data-v-ad7af199],.dialog.bottom.end .buttons[data-v-ad7af199]{left:-36px}.dialog .background[data-v-ad7af199]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#00000095;transition:2s;z-index:1}.dialog .content[data-v-ad7af199]{padding:12px;position:relative;color:var(--hx-text-primary);border-radius:var(--hx-border-radius);border:1px solid var(--hx-background-transparent);background-color:var(--hx-background-secondary);transition:transform .2s;z-index:2}.dialog .content .header[data-v-ad7af199]{margin-bottom:12px}.dialog .content .header h2[data-v-ad7af199]{font-size:18px;font-weight:600}.dialog .content .header p[data-v-ad7af199]{margin-top:4px;font-size:14px;opacity:.7}.dialog .buttons[data-v-ad7af199]{position:absolute;top:0;left:calc(100% + 12px)}.dialog .buttons div[data-v-ad7af199]{cursor:pointer;display:flex;width:28px;height:28px;border-radius:var(--hx-border-radius);border:1px solid var(--hx-background-transparent);align-items:center;justify-content:center;background-color:var(--hx-background-secondary)}.tooltip[data-v-bccd013d]{padding:4px 8px;position:fixed;top:0;left:0;font-size:12px;border-radius:var(--hx-border-radius);border:1px solid var(--hx-background-transparent);background-color:var(--hx-background-secondary);z-index:1000}.tooltip.top[data-v-bccd013d]{--v: calc(var(--target-y) - 100% - var(--gap-v))}.tooltip.bottom[data-v-bccd013d]{--v: calc(var(--target-y) + var(--target-height) + var(--gap-v))}.tooltip.top.start[data-v-bccd013d],.tooltip.bottom.start[data-v-bccd013d]{transform:translate(var(--target-x),var(--v))}.tooltip.top.center[data-v-bccd013d],.tooltip.bottom.center[data-v-bccd013d]{transform:translate(calc(var(--target-x) + var(--target-width) / 2 - 50%),var(--v))}.tooltip.top.end[data-v-bccd013d],.tooltip.bottom.end[data-v-bccd013d]{transform:translate(calc(var(--target-x) + var(--target-width) - 100%),var(--v))}.tooltip.left[data-v-bccd013d]{--h: calc(var(--target-x) - 100% - var(--gap-h))}.tooltip.right[data-v-bccd013d]{--h: calc(var(--target-x) + var(--target-width) + var(--gap-h))}.tooltip.left.start[data-v-bccd013d],.tooltip.right.start[data-v-bccd013d]{transform:translate(var(--h),var(--target-y))}.tooltip.left.center[data-v-bccd013d],.tooltip.right.center[data-v-bccd013d]{transform:translate(var(--h),calc(var(--target-y) + var(--target-height) / 2 - 50%))}.tooltip.left.end[data-v-bccd013d],.tooltip.right.end[data-v-bccd013d]{transform:translate(var(--h),calc(var(--target-y) + var(--target-height) - 100%))}:where(div.ui-skeleton[data-v-3b7cd939]){width:var(--w);height:var(--h)}div.ui-skeleton[data-v-3b7cd939]{display:flex;position:relative;align-items:center;justify-content:center;border-radius:.5rem;background-color:var(--hx-background-secondary);overflow:hidden}div.ui-skeleton div[data-v-3b7cd939]{width:100%;height:100%}div.ui-skeleton div[data-v-3b7cd939]:before{content:"";display:block;width:0;height:100%;position:absolute;top:5%;box-shadow:0 2px 15px 9px #fff6;animation:shades-3b7cd939 2s cubic-bezier(.455,.03,.515,.955) infinite;transform:skew(-20deg);z-index:5}@keyframes shades-3b7cd939{0%{left:0%;opacity:0}50%{opacity:1}to{left:100%;opacity:0}}img.ui-image[data-v-9ea0741f]{object-fit:cover;object-position:center;transition:opacity .2s}.fade-enter-active[data-v-9ea0741f],.fade-leave-active[data-v-9ea0741f]{transition:opacity .7s ease}.fade-enter-from[data-v-9ea0741f],.fade-leave-to[data-v-9ea0741f]{opacity:0}.height-enter-active[data-v-925752b4],.height-leave-active[data-v-925752b4]{transition:height var(--duration) ease-in-out;overflow:hidden;opacity:var(--opacity)}.height-enter[data-v-925752b4],.height-leave-to[data-v-925752b4]{height:0}.height-content[data-v-925752b4]{transition:all var(--duration) ease-in-out}.notification[data-v-1e6c986c]{pointer-events:all;padding:12px;max-width:512px;min-width:215px;position:relative;border-radius:.5rem;border:1px solid var(--hx-background-transparent);background-color:#0005;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:.2s}.notification header[data-v-1e6c986c]{display:flex;position:relative;align-items:center}.notification header .i[data-v-1e6c986c]{margin-right:12px;position:relative}.notification header .i.icon[data-v-1e6c986c]{max-width:32px;min-width:32px;height:32px}.notification header .i.image[data-v-1e6c986c]{max-width:48px;min-width:48px;height:48px}.notification header .i.image.icon[data-v-1e6c986c] .ui-image{mask-image:radial-gradient(circle 12px at center,transparent 100%,green 0%);mask-size:84px 84px,100%;-webkit-mask-image:radial-gradient(circle 12px at center,transparent 100%,green 0%);-webkit-mask-size:84px 84px,100%}.notification header .i.image.icon .ui-icon[data-v-1e6c986c]{width:20px;height:20px;position:absolute;bottom:-6px;right:-6px;border-radius:50%;z-index:2}.notification header .i.image.icon .ui-icon[data-v-1e6c986c]:after{background-color:transparent}.notification header .i[data-v-1e6c986c] .ui-image{width:100%;height:100%;border-radius:10px}.notification header .content[data-v-1e6c986c]{max-width:100%;min-width:0}.notification header .content div[data-v-1e6c986c]{max-width:100%;text-overflow:ellipsis;overflow:hidden}.notification header .content div[data-v-1e6c986c]:nth-child(1){font-size:14px;font-weight:600;white-space:nowrap}.notification header .content div[data-v-1e6c986c]:nth-child(2){display:-webkit-box;color:var(--hx-text-primary);font-size:12px;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical}.notification ul.buttons[data-v-1e6c986c]{display:grid;margin-top:8px;border-radius:.5rem;grid-template-columns:repeat(2,1fr);gap:2px;overflow:hidden;-webkit-user-select:none;user-select:none}.notification ul.buttons li[data-v-1e6c986c]{cursor:pointer;display:flex;padding:8px;align-items:center;background-color:transparent;box-sizing:border-box;transition:.2s}.notification ul.buttons li[data-v-1e6c986c]:hover{background-color:var(--hx-background-secondary)}.notification ul.buttons li[data-v-1e6c986c]:nth-child(odd):not(:has(+li)){grid-column:span 2}.notification ul.buttons li i[data-v-1e6c986c]{margin-right:8px;font-size:14px}.notification ul.buttons li>div[data-v-1e6c986c]{max-width:100%;min-width:0}.notification ul.buttons li>div div[data-v-1e6c986c]{max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.notification ul.buttons li>div div[data-v-1e6c986c]:nth-child(1){font-size:14px}.notification ul.buttons li>div div[data-v-1e6c986c]:nth-child(2){color:var(--hx-text-primary);font-size:12px}.notification ul.options[data-v-1e6c986c]{position:absolute;right:-10px;top:-10px}.notification ul.options li[data-v-1e6c986c]{cursor:pointer;display:flex;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--hx-background-primary);background-color:var(--hx-background-secondary)}.notification ul.options li i[data-v-1e6c986c]{font-size:14px}.group[data-v-36c3285a]{pointer-events:all;max-width:512px;min-width:215px;position:relative}.group.active header[data-v-36c3285a]{border-radius:15px 15px 0 0}.group header[data-v-36c3285a]{cursor:pointer;display:flex;padding:12px;align-items:center;border-radius:15px;background-color:var(--hx-background-secondary);transition:.2s;-webkit-user-select:none;user-select:none}.group header i[data-v-36c3285a]:nth-child(1){margin-right:8px}.group header[data-v-36c3285a] .ui-image{width:20px;height:20px;margin-right:8px;border-radius:50%}.group header .content[data-v-36c3285a]{max-width:100%;min-width:0}.group header .content div[data-v-36c3285a]{max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.group header .content div[data-v-36c3285a]:nth-child(1){font-size:12px;font-weight:700}.group header .content div[data-v-36c3285a]:nth-child(2){color:var(--hx-text-primary);font-size:10px}.group header i[data-v-36c3285a]:last-child{margin-left:auto}.group ul .notification[data-v-36c3285a]{margin-top:2px;border-radius:0}.group ul .notification[data-v-36c3285a]:last-child{border-radius:0 0 15px 15px}.dark:root{--hx-padding-xl: 6px 12px;--hx-text-primary: #e8e8e8;--hx-button-text-primary: #1e1e1e;--hx-background-primary: #010101;--hx-button-background-primary: #e8e8e8;--hx-background-secondary: #1e1e1e;--hx-background-transparent: #424242;--hx-color-red: tomato;--hx-border-radius-left-top: 7px;--hx-border-radius-right-top: 7px;--hx-border-radius-left-bottom: 7px;--hx-border-radius-right-bottom: 7px;--hx-border-radius: var(--hx-border-radius-left-top) var(--hx-border-radius-right-top) var(--hx-border-radius-left-bottom) var(--hx-border-radius-right-bottom)}.light:root{--hx-padding-xl: 6px 12px;--hx-text-primary: #e8e8e8;--hx-button-text-primary: #1e1e1e;--hx-background-primary: #010101;--hx-button-background-primary: #e8e8e8;--hx-background-secondary: #1e1e1e;--hx-background-transparent: #424242;--hx-color-red: tomato;--hx-border-radius-left-top: 7px;--hx-border-radius-right-top: 7px;--hx-border-radius-left-bottom: 7px;--hx-border-radius-right-bottom: 7px;--hx-border-radius: var(--hx-border-radius-left-top) var(--hx-border-radius-right-top) var(--hx-border-radius-left-bottom) var(--hx-border-radius-right-bottom)}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare var __VLS_12: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_12) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
showed: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
};
|
|
9
|
+
opacity: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
duration: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
showed: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
};
|
|
21
|
+
opacity: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
duration: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
duration: number;
|
|
31
|
+
opacity: boolean;
|
|
32
|
+
showed: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Button from './ui/Button.vue';
|
|
2
|
+
import Input from './ui/Input.vue';
|
|
3
|
+
import Select from './ui/Select.vue';
|
|
4
|
+
import Popover from './ui/Popover.vue';
|
|
5
|
+
import Dialog from './ui/Dialog.vue';
|
|
6
|
+
import Tooltip from './ui/Tooltip.vue';
|
|
7
|
+
import Image from './ui/Image.vue';
|
|
8
|
+
import Skeleton from './ui/Skeleton.vue';
|
|
9
|
+
import NotificationCard from './ui/notifications/Notification.vue';
|
|
10
|
+
import NotificationGroup from './ui/notifications/Group.vue';
|
|
11
|
+
import AnimationHeight from './animations/Height.vue';
|
|
12
|
+
export { Button, Input, Select, Popover, Dialog, Tooltip, Image, Skeleton, NotificationCard, NotificationGroup, AnimationHeight };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type OptionType = 'option' | 'label' | 'separator';
|
|
2
|
+
interface TemplateOption<Type = string> {
|
|
3
|
+
type?: Type;
|
|
4
|
+
}
|
|
5
|
+
export interface OptionOption extends TemplateOption<'option'> {
|
|
6
|
+
label?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
value: string | number | number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
useDefaultStyle?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface OptionLabel extends TemplateOption<'label'> {
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
export interface OptionSeparator extends TemplateOption<'separator'> {
|
|
16
|
+
}
|
|
17
|
+
export type Option = OptionOption | OptionLabel | OptionSeparator;
|
|
18
|
+
type __VLS_Props = {
|
|
19
|
+
option: Option;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
click: (event: MouseEvent, option: OptionOption) => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
onClick?: ((event: MouseEvent, option: OptionOption) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type ButtonVariant = 'default' | 'outline' | 'secondary' | 'ghost' | 'destructive' | 'link';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variant?: ButtonVariant;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
click: (event: MouseEvent) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
variant: ButtonVariant;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
value?: string | number | boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
+
modelValue?: any;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: any) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
value: string | number | boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
2
|
+
export type Side = 'top' | 'right' | 'bottom' | 'left' | 'center';
|
|
3
|
+
export type Align = 'start' | 'end';
|
|
4
|
+
export interface DefaultSlotProps {
|
|
5
|
+
show(event: MouseEvent): void;
|
|
6
|
+
hide(): void;
|
|
7
|
+
toggle(event: MouseEvent): void;
|
|
8
|
+
isOpened: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface DialogButton {
|
|
11
|
+
icon?: string;
|
|
12
|
+
label: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
click?: (event: MouseEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
type TransitionOptions = string | {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {
|
|
20
|
+
default(props: DefaultSlotProps): void;
|
|
21
|
+
content(props: DefaultSlotProps): void;
|
|
22
|
+
title(): void;
|
|
23
|
+
description(): void;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_Props = {
|
|
26
|
+
title?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
side?: Side | [Side, Align];
|
|
29
|
+
transition?: TransitionOptions;
|
|
30
|
+
collisionPadding?: number | [number, number];
|
|
31
|
+
closeOnClickOutside?: boolean;
|
|
32
|
+
buttons?: Array<DialogButton>;
|
|
33
|
+
style?: StyleValue;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
+
show: () => any;
|
|
37
|
+
hide: () => any;
|
|
38
|
+
"update:open": (bool: boolean) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
|
+
onShow?: (() => any) | undefined;
|
|
41
|
+
onHide?: (() => any) | undefined;
|
|
42
|
+
"onUpdate:open"?: ((bool: boolean) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
side: Side | [Side, Align];
|
|
45
|
+
transition: TransitionOptions;
|
|
46
|
+
collisionPadding: number | [number, number];
|
|
47
|
+
closeOnClickOutside: boolean;
|
|
48
|
+
buttons: Array<DialogButton>;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type Type = 'text' | 'password';
|
|
2
|
+
type InputEvent = Event & {
|
|
3
|
+
target: HTMLInputElement;
|
|
4
|
+
};
|
|
5
|
+
interface Props {
|
|
6
|
+
type?: Type;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
before(): any;
|
|
14
|
+
after(): any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Props = Props;
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
18
|
+
'value'?: any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
blur: (event: FocusEvent) => void;
|
|
22
|
+
change: (event: InputEvent) => void;
|
|
23
|
+
focus: (event: FocusEvent) => void;
|
|
24
|
+
input: (event: InputEvent) => void;
|
|
25
|
+
"update:value": (value: any) => void;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
28
|
+
onChange?: ((event: InputEvent) => any) | undefined;
|
|
29
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
30
|
+
onInput?: ((event: InputEvent) => any) | undefined;
|
|
31
|
+
"onUpdate:value"?: ((value: any) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
type: Type;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'vue';
|
|
2
|
+
export type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
export type Align = 'start' | 'center' | 'end';
|
|
4
|
+
interface DefaultSlotProps {
|
|
5
|
+
show(event: MouseEvent): void;
|
|
6
|
+
hide(): void;
|
|
7
|
+
toggle(event: MouseEvent): void;
|
|
8
|
+
isOpened: boolean;
|
|
9
|
+
}
|
|
10
|
+
type TransitionOptions = string | {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {
|
|
14
|
+
default(props: DefaultSlotProps): void;
|
|
15
|
+
content(): void;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
side?: Side | [Side, Align];
|
|
19
|
+
fixed?: boolean;
|
|
20
|
+
transition?: TransitionOptions;
|
|
21
|
+
collisionPadding?: number | [number, number];
|
|
22
|
+
closeOnClickOutside?: boolean;
|
|
23
|
+
style?: HTMLAttributes['style'];
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
show: () => any;
|
|
27
|
+
hide: () => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
onShow?: (() => any) | undefined;
|
|
30
|
+
onHide?: (() => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
33
|
+
fixed: boolean;
|
|
34
|
+
side: Side | [Side, Align];
|
|
35
|
+
transition: TransitionOptions;
|
|
36
|
+
collisionPadding: number | [number, number];
|
|
37
|
+
closeOnClickOutside: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type OptionOption, type Option, type OptionType } from '../modules/ui/SelectOption.vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: string | number | boolean;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
side?: 'top' | 'bottom';
|
|
7
|
+
options?: Array<Option & Partial<{
|
|
8
|
+
type: OptionType;
|
|
9
|
+
}>>;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_26: {
|
|
12
|
+
option: Option;
|
|
13
|
+
index: number;
|
|
14
|
+
select: () => void;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
option?: (props: typeof __VLS_26) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
select: (option: OptionOption) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onSelect?: ((option: OptionOption) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
side: "top" | "bottom";
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
ready: boolean;
|
|
3
|
+
w?: string;
|
|
4
|
+
h?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
content?: (props: typeof __VLS_3) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
ready: boolean;
|
|
14
|
+
w: string;
|
|
15
|
+
h: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
2
|
+
export type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
export type Align = 'start' | 'center' | 'end';
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
trigger(): Array<VNode>;
|
|
6
|
+
default(): Array<VNode>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
side?: Side | [Side, Align];
|
|
10
|
+
collisionPadding?: number | [number, number];
|
|
11
|
+
delay?: number;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
14
|
+
'open'?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:open": (value: boolean | undefined) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
side: Side | [Side, Align];
|
|
22
|
+
collisionPadding: number | [number, number];
|
|
23
|
+
delay: number;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type OptionType = 'button' | 'seperator';
|
|
2
|
+
interface Option {
|
|
3
|
+
type: OptionType;
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
options?: Array<Option>;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type OptionType = 'button' | 'seperator';
|
|
2
|
+
interface Option {
|
|
3
|
+
type: OptionType;
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
options?: Array<Option>;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_5: {}, __VLS_12: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_5) => any;
|
|
12
|
+
} & {
|
|
13
|
+
content?: (props: typeof __VLS_12) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|