mortise-tenon-design 0.0.7 → 0.0.8
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 +1 -1
- package/components/button/index.d.ts +36 -0
- package/components/button/src/button.vue.d.ts +25 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +1 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
- package/es/components/button/index.mjs +3 -3
- package/es/components/button/index.mjs.map +1 -0
- package/es/components/button/src/button.vue.mjs +3 -2
- package/es/components/button/src/button.vue.mjs.map +1 -0
- package/es/components/button/src/button.vue2.mjs +2 -4
- package/es/components/button/src/button.vue2.mjs.map +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -0
- package/es/style.css +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/lib/components/button/index.js +2 -1
- package/lib/components/button/index.js.map +1 -0
- package/lib/components/button/src/button.vue.js +2 -1
- package/lib/components/button/src/button.vue.js.map +1 -0
- package/lib/components/button/src/button.vue2.js +1 -0
- package/lib/components/button/src/button.vue2.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/style.css +1 -1
- package/package.json +8 -5
- package/es/components/button/index.d.ts +0 -81
- package/es/components/button/src/button.vue.d.ts +0 -40
- package/lib/components/button/index.d.ts +0 -81
- package/lib/components/button/src/button.vue.d.ts +0 -40
- package/lib/components/button/src/types.d.ts +0 -8
- package/lib/components/index.d.ts +0 -1
- /package/{es/components → components}/button/src/types.d.ts +0 -0
- /package/{es/components → components}/index.d.ts +0 -0
    
        package/README.md
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            榫卯组件库
         | 
| 1 | 
            +
            榫卯组件库
         | 
| @@ -0,0 +1,36 @@ | |
| 1 | 
            +
            export declare const MtButton: {
         | 
| 2 | 
            +
                new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ButtonProps> & Readonly<{
         | 
| 3 | 
            +
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 4 | 
            +
                }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 5 | 
            +
                    click: (...args: any[]) => void;
         | 
| 6 | 
            +
                }, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('packages/core').ButtonProps> & Readonly<{
         | 
| 7 | 
            +
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 8 | 
            +
                }>, {
         | 
| 9 | 
            +
                    time: string;
         | 
| 10 | 
            +
                }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
         | 
| 11 | 
            +
                    P: {};
         | 
| 12 | 
            +
                    B: {};
         | 
| 13 | 
            +
                    D: {};
         | 
| 14 | 
            +
                    C: {};
         | 
| 15 | 
            +
                    M: {};
         | 
| 16 | 
            +
                    Defaults: {};
         | 
| 17 | 
            +
                }, Readonly<import('packages/core').ButtonProps> & Readonly<{
         | 
| 18 | 
            +
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 19 | 
            +
                }>, {}, {}, {}, {}, {
         | 
| 20 | 
            +
                    time: string;
         | 
| 21 | 
            +
                }>;
         | 
| 22 | 
            +
                __isFragment?: never;
         | 
| 23 | 
            +
                __isTeleport?: never;
         | 
| 24 | 
            +
                __isSuspense?: never;
         | 
| 25 | 
            +
            } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ButtonProps> & Readonly<{
         | 
| 26 | 
            +
                onClick?: ((...args: any[]) => any) | undefined;
         | 
| 27 | 
            +
            }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 28 | 
            +
                click: (...args: any[]) => void;
         | 
| 29 | 
            +
            }, string, {
         | 
| 30 | 
            +
                time: string;
         | 
| 31 | 
            +
            }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
         | 
| 32 | 
            +
                $slots: {
         | 
| 33 | 
            +
                    default?(_: {}): any;
         | 
| 34 | 
            +
                };
         | 
| 35 | 
            +
            });
         | 
| 36 | 
            +
            export * from './src/types';
         | 
| @@ -0,0 +1,25 @@ | |
| 1 | 
            +
            import { ButtonProps } from './types';
         | 
| 2 | 
            +
            declare function __VLS_template(): {
         | 
| 3 | 
            +
                slots: {
         | 
| 4 | 
            +
                    default?(_: {}): any;
         | 
| 5 | 
            +
                };
         | 
| 6 | 
            +
                refs: {
         | 
| 7 | 
            +
                    buttonRef: HTMLButtonElement;
         | 
| 8 | 
            +
                };
         | 
| 9 | 
            +
                attrs: Partial<{}>;
         | 
| 10 | 
            +
            };
         | 
| 11 | 
            +
            type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
         | 
| 12 | 
            +
            declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 13 | 
            +
                click: (...args: any[]) => void;
         | 
| 14 | 
            +
            }, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
         | 
| 15 | 
            +
                onClick?: ((...args: any[]) => any) | undefined;
         | 
| 16 | 
            +
            }>, {
         | 
| 17 | 
            +
                time: string;
         | 
| 18 | 
            +
            }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
         | 
| 19 | 
            +
            declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
         | 
| 20 | 
            +
            export default _default;
         | 
| 21 | 
            +
            type __VLS_WithTemplateSlots<T, S> = T & {
         | 
| 22 | 
            +
                new (): {
         | 
| 23 | 
            +
                    $slots: S;
         | 
| 24 | 
            +
                };
         | 
| 25 | 
            +
            };
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"_plugin-vue_export-helper.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/button/index.ts"],"sourcesContent":["import type { App } from 'vue';\nimport Button from './src/button.vue';\n\nButton.install = (app: App): void => {\n  if (Button.name) {\n    app.component(Button.name, Button);\n  }\n};\n\nexport const MtButton = Button;\n\nexport * from './src/types';\n"],"names":["Button","app","MtButton"],"mappings":";AAGAA,EAAO,UAAU,CAACC,MAAmB;AACnC,EAAID,EAAO,QACLC,EAAA,UAAUD,EAAO,MAAMA,CAAM;AAErC;AAEO,MAAME,IAAWF;"}
         | 
| @@ -1,7 +1,8 @@ | |
| 1 1 | 
             
            import o from "./button.vue2.mjs";
         | 
| 2 2 | 
             
            /* empty css             */
         | 
| 3 3 | 
             
            import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
         | 
| 4 | 
            -
            const  | 
| 4 | 
            +
            const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-aa934c60"]]);
         | 
| 5 5 | 
             
            export {
         | 
| 6 | 
            -
               | 
| 6 | 
            +
              p as default
         | 
| 7 7 | 
             
            };
         | 
| 8 | 
            +
            //# sourceMappingURL=button.vue.mjs.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"button.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
         | 
| @@ -23,10 +23,7 @@ const y = ["disabled"], M = /* @__PURE__ */ c({ | |
| 23 23 | 
             
                  ref: a,
         | 
| 24 24 | 
             
                  disabled: l.value,
         | 
| 25 25 | 
             
                  class: v({ "ex-button": k(o) }),
         | 
| 26 | 
            -
                  style: _({
         | 
| 27 | 
            -
                    "animation-duration": n.time,
         | 
| 28 | 
            -
                    "pointer-events": l.value ? "none" : "all"
         | 
| 29 | 
            -
                  }),
         | 
| 26 | 
            +
                  style: _({ "animation-duration": n.time, "pointer-events": l.value ? "none" : "all" }),
         | 
| 30 27 | 
             
                  onClick: d
         | 
| 31 28 | 
             
                }, [
         | 
| 32 29 | 
             
                  h(n.$slots, "default", {}, void 0, !0)
         | 
| @@ -36,3 +33,4 @@ const y = ["disabled"], M = /* @__PURE__ */ c({ | |
| 36 33 | 
             
            export {
         | 
| 37 34 | 
             
              M as default
         | 
| 38 35 | 
             
            };
         | 
| 36 | 
            +
            //# sourceMappingURL=button.vue2.mjs.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"button.vue2.mjs","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ButtonProps } from './types';\nimport { computed, onMounted, ref } from 'vue';\n\ndefineOptions({ name: 'MtButton' });\n\nconst props = withDefaults(defineProps<ButtonProps>(), { time: '1s' });\nconst emit = defineEmits(['click']);\n\n/** 禁止点击状态 */\nconst forbidStatus = ref(false);\nconst buttonDisabled = computed(() => {\n  if (props.disabled) {\n    return true;\n  }\n  return props.mode === 'throttle' && forbidStatus.value;\n});\n\nconst hasMode = props.mode && ['throttle', 'debounce'].includes(props.mode);\nconst buttonRef = ref();\n\nonMounted(() => {\n  if (hasMode) {\n    // 监听动画执行结束\n    buttonRef.value.$el.addEventListener('animationend', () => {\n      forbidStatus.value = false;\n    });\n  }\n});\n\nfunction handleClick(e: MouseEvent) {\n  if (forbidStatus.value) {\n    return;\n  }\n  emit('click', e);\n  if (hasMode) {\n    forbidStatus.value = true;\n  }\n}\n</script>\n\n<template>\n  <button\n    ref=\"buttonRef\"\n    :disabled=\"buttonDisabled\"\n    :class=\"{ 'ex-button': hasMode }\"\n    :style=\"{ 'animation-duration': time, 'pointer-events': buttonDisabled ? 'none' : 'all' }\"\n    @click=\"handleClick\"\n  >\n    <slot />\n  </button>\n</template>\n\n<style scoped>\n.ex-button {\n  animation: temp-animation step-end forwards;\n}\n\n.ex-button:active {\n  animation: none;\n}\n\n@keyframes temp-animation {\n  /** 空动画 */\n}\n</style>\n"],"names":["props","__props","emit","__emit","forbidStatus","ref","buttonDisabled","computed","hasMode","buttonRef","onMounted","handleClick","e"],"mappings":";;;;;;;;;;;AAMA,UAAMA,IAAQC,GACRC,IAAOC,GAGPC,IAAeC,EAAI,EAAK,GACxBC,IAAiBC,EAAS,MAC1BP,EAAM,WACD,KAEFA,EAAM,SAAS,cAAcI,EAAa,KAClD,GAEKI,IAAUR,EAAM,QAAQ,CAAC,YAAY,UAAU,EAAE,SAASA,EAAM,IAAI,GACpES,IAAYJ;AAElB,IAAAK,EAAU,MAAM;AACd,MAAIF,KAEFC,EAAU,MAAM,IAAI,iBAAiB,gBAAgB,MAAM;AACzD,QAAAL,EAAa,QAAQ;AAAA,MAAA,CACtB;AAAA,IACH,CACD;AAED,aAASO,EAAYC,GAAe;AAClC,MAAIR,EAAa,UAGjBF,EAAK,SAASU,CAAC,GACXJ,MACFJ,EAAa,QAAQ;AAAA,IAEzB;;;;;;;;;;;;;"}
         | 
    
        package/es/index.d.ts
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            export * from ' | 
| 1 | 
            +
            export * from '../components';
         | 
    
        package/es/index.mjs
    CHANGED
    
    
    
        package/es/index.mjs.map
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
         | 
    
        package/es/style.css
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            .ex-button[data-v- | 
| 1 | 
            +
            .ex-button[data-v-aa934c60]{animation:temp-animation-aa934c60 step-end forwards}.ex-button[data-v-aa934c60]:active{animation:none}@keyframes temp-animation-aa934c60{}
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"_plugin-vue_export-helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
         | 
| @@ -1 +1,2 @@ | |
| 1 | 
            -
            "use strict";Object. | 
| 1 | 
            +
            "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./src/button.vue.js");t.default.install=e=>{t.default.name&&e.component(t.default.name,t.default)};const n=t.default;exports.MtButton=n;
         | 
| 2 | 
            +
            //# sourceMappingURL=index.js.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"index.js","sources":["../../../../../packages/components/button/index.ts"],"sourcesContent":["import type { App } from 'vue';\nimport Button from './src/button.vue';\n\nButton.install = (app: App): void => {\n  if (Button.name) {\n    app.component(Button.name, Button);\n  }\n};\n\nexport const MtButton = Button;\n\nexport * from './src/types';\n"],"names":["Button","app","MtButton"],"mappings":"uHAGAA,EAAAA,QAAO,QAAWC,GAAmB,CAC/BD,EAAAA,QAAO,MACLC,EAAA,UAAUD,EAAAA,QAAO,KAAMA,EAAM,OAAA,CAErC,EAEO,MAAME,EAAWF,EAAAA"}
         | 
| @@ -1 +1,2 @@ | |
| 1 | 
            -
            "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./button.vue2.js");;/* empty css             */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v- | 
| 1 | 
            +
            "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./button.vue2.js");;/* empty css             */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-aa934c60"]]);exports.default=u;
         | 
| 2 | 
            +
            //# sourceMappingURL=button.vue.js.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"button.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
         | 
| @@ -1 +1,2 @@ | |
| 1 1 | 
             
            "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=["disabled"],f=e.defineComponent({name:"MtButton",__name:"button",props:{mode:{},time:{default:"1s"},disabled:{type:Boolean}},emits:["click"],setup(i,{emit:s}){const t=i,r=s,n=e.ref(!1),u=e.computed(()=>t.disabled?!0:t.mode==="throttle"&&n.value),l=t.mode&&["throttle","debounce"].includes(t.mode),a=e.ref();e.onMounted(()=>{l&&a.value.$el.addEventListener("animationend",()=>{n.value=!1})});function d(o){n.value||(r("click",o),l&&(n.value=!0))}return(o,m)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"buttonRef",ref:a,disabled:u.value,class:e.normalizeClass({"ex-button":e.unref(l)}),style:e.normalizeStyle({"animation-duration":o.time,"pointer-events":u.value?"none":"all"}),onClick:d},[e.renderSlot(o.$slots,"default",{},void 0,!0)],14,c))}});exports.default=f;
         | 
| 2 | 
            +
            //# sourceMappingURL=button.vue2.js.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"button.vue2.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ButtonProps } from './types';\nimport { computed, onMounted, ref } from 'vue';\n\ndefineOptions({ name: 'MtButton' });\n\nconst props = withDefaults(defineProps<ButtonProps>(), { time: '1s' });\nconst emit = defineEmits(['click']);\n\n/** 禁止点击状态 */\nconst forbidStatus = ref(false);\nconst buttonDisabled = computed(() => {\n  if (props.disabled) {\n    return true;\n  }\n  return props.mode === 'throttle' && forbidStatus.value;\n});\n\nconst hasMode = props.mode && ['throttle', 'debounce'].includes(props.mode);\nconst buttonRef = ref();\n\nonMounted(() => {\n  if (hasMode) {\n    // 监听动画执行结束\n    buttonRef.value.$el.addEventListener('animationend', () => {\n      forbidStatus.value = false;\n    });\n  }\n});\n\nfunction handleClick(e: MouseEvent) {\n  if (forbidStatus.value) {\n    return;\n  }\n  emit('click', e);\n  if (hasMode) {\n    forbidStatus.value = true;\n  }\n}\n</script>\n\n<template>\n  <button\n    ref=\"buttonRef\"\n    :disabled=\"buttonDisabled\"\n    :class=\"{ 'ex-button': hasMode }\"\n    :style=\"{ 'animation-duration': time, 'pointer-events': buttonDisabled ? 'none' : 'all' }\"\n    @click=\"handleClick\"\n  >\n    <slot />\n  </button>\n</template>\n\n<style scoped>\n.ex-button {\n  animation: temp-animation step-end forwards;\n}\n\n.ex-button:active {\n  animation: none;\n}\n\n@keyframes temp-animation {\n  /** 空动画 */\n}\n</style>\n"],"names":["props","__props","emit","__emit","forbidStatus","ref","buttonDisabled","computed","hasMode","buttonRef","onMounted","handleClick","e"],"mappings":"qSAMA,MAAMA,EAAQC,EACRC,EAAOC,EAGPC,EAAeC,MAAI,EAAK,EACxBC,EAAiBC,EAAAA,SAAS,IAC1BP,EAAM,SACD,GAEFA,EAAM,OAAS,YAAcI,EAAa,KAClD,EAEKI,EAAUR,EAAM,MAAQ,CAAC,WAAY,UAAU,EAAE,SAASA,EAAM,IAAI,EACpES,EAAYJ,EAAAA,MAElBK,EAAAA,UAAU,IAAM,CACVF,GAEFC,EAAU,MAAM,IAAI,iBAAiB,eAAgB,IAAM,CACzDL,EAAa,MAAQ,EAAA,CACtB,CACH,CACD,EAED,SAASO,EAAYC,EAAe,CAC9BR,EAAa,QAGjBF,EAAK,QAASU,CAAC,EACXJ,IACFJ,EAAa,MAAQ,IAEzB"}
         | 
    
        package/lib/index.d.ts
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            export * from ' | 
| 1 | 
            +
            export * from '../components';
         | 
    
        package/lib/index.js
    CHANGED
    
    
    
        package/lib/index.js.map
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
         | 
    
        package/lib/style.css
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            .ex-button[data-v- | 
| 1 | 
            +
            .ex-button[data-v-aa934c60]{animation:temp-animation-aa934c60 step-end forwards}.ex-button[data-v-aa934c60]:active{animation:none}@keyframes temp-animation-aa934c60{}
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,15 +1,18 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "mortise-tenon-design",
         | 
| 3 | 
            -
              "version": "0.0.7",
         | 
| 4 | 
            -
              "description": "榫卯组件库",
         | 
| 5 3 | 
             
              "type": "module",
         | 
| 4 | 
            +
              "version": "0.0.8",
         | 
| 5 | 
            +
              "description": "榫卯组件库",
         | 
| 6 6 | 
             
              "author": "nixwai",
         | 
| 7 7 | 
             
              "license": "ISC",
         | 
| 8 | 
            -
              "main": "lib/index.js",
         | 
| 9 | 
            -
              "module": "es/index.mjs",
         | 
| 10 | 
            -
              "types": "es/index.d.ts",
         | 
| 11 8 | 
             
              "repository": {
         | 
| 12 9 | 
             
                "type": "git",
         | 
| 13 10 | 
             
                "url": "https://github.com/nixwai/mortise-tenon-design"
         | 
| 11 | 
            +
              },
         | 
| 12 | 
            +
              "main": "lib/index.js",
         | 
| 13 | 
            +
              "module": "es/index.mjs",
         | 
| 14 | 
            +
              "types": "es/index.d.ts",
         | 
| 15 | 
            +
              "peerDependencies": {
         | 
| 16 | 
            +
                "vue": "^3.4.0"
         | 
| 14 17 | 
             
              }
         | 
| 15 18 | 
             
            }
         | 
| @@ -1,81 +0,0 @@ | |
| 1 | 
            -
            export declare const MtButton: {
         | 
| 2 | 
            -
                new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
         | 
| 3 | 
            -
                    mode: {
         | 
| 4 | 
            -
                        type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 5 | 
            -
                    };
         | 
| 6 | 
            -
                    time: {
         | 
| 7 | 
            -
                        type: import('vue').PropType<string>;
         | 
| 8 | 
            -
                        default: string;
         | 
| 9 | 
            -
                    };
         | 
| 10 | 
            -
                    disabled: {
         | 
| 11 | 
            -
                        type: import('vue').PropType<boolean>;
         | 
| 12 | 
            -
                    };
         | 
| 13 | 
            -
                }>> & {
         | 
| 14 | 
            -
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 15 | 
            -
                }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 16 | 
            -
                    click: (...args: any[]) => void;
         | 
| 17 | 
            -
                }, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
         | 
| 18 | 
            -
                    mode: {
         | 
| 19 | 
            -
                        type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 20 | 
            -
                    };
         | 
| 21 | 
            -
                    time: {
         | 
| 22 | 
            -
                        type: import('vue').PropType<string>;
         | 
| 23 | 
            -
                        default: string;
         | 
| 24 | 
            -
                    };
         | 
| 25 | 
            -
                    disabled: {
         | 
| 26 | 
            -
                        type: import('vue').PropType<boolean>;
         | 
| 27 | 
            -
                    };
         | 
| 28 | 
            -
                }>> & {
         | 
| 29 | 
            -
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 30 | 
            -
                }, {
         | 
| 31 | 
            -
                    time: string;
         | 
| 32 | 
            -
                }, true, {}, {}, {
         | 
| 33 | 
            -
                    P: {};
         | 
| 34 | 
            -
                    B: {};
         | 
| 35 | 
            -
                    D: {};
         | 
| 36 | 
            -
                    C: {};
         | 
| 37 | 
            -
                    M: {};
         | 
| 38 | 
            -
                    Defaults: {};
         | 
| 39 | 
            -
                }, Readonly<import('vue').ExtractPropTypes<{
         | 
| 40 | 
            -
                    mode: {
         | 
| 41 | 
            -
                        type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 42 | 
            -
                    };
         | 
| 43 | 
            -
                    time: {
         | 
| 44 | 
            -
                        type: import('vue').PropType<string>;
         | 
| 45 | 
            -
                        default: string;
         | 
| 46 | 
            -
                    };
         | 
| 47 | 
            -
                    disabled: {
         | 
| 48 | 
            -
                        type: import('vue').PropType<boolean>;
         | 
| 49 | 
            -
                    };
         | 
| 50 | 
            -
                }>> & {
         | 
| 51 | 
            -
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 52 | 
            -
                }, {}, {}, {}, {}, {
         | 
| 53 | 
            -
                    time: string;
         | 
| 54 | 
            -
                }>;
         | 
| 55 | 
            -
                __isFragment?: never;
         | 
| 56 | 
            -
                __isTeleport?: never;
         | 
| 57 | 
            -
                __isSuspense?: never;
         | 
| 58 | 
            -
            } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
         | 
| 59 | 
            -
                mode: {
         | 
| 60 | 
            -
                    type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 61 | 
            -
                };
         | 
| 62 | 
            -
                time: {
         | 
| 63 | 
            -
                    type: import('vue').PropType<string>;
         | 
| 64 | 
            -
                    default: string;
         | 
| 65 | 
            -
                };
         | 
| 66 | 
            -
                disabled: {
         | 
| 67 | 
            -
                    type: import('vue').PropType<boolean>;
         | 
| 68 | 
            -
                };
         | 
| 69 | 
            -
            }>> & {
         | 
| 70 | 
            -
                onClick?: ((...args: any[]) => any) | undefined;
         | 
| 71 | 
            -
            }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 72 | 
            -
                click: (...args: any[]) => void;
         | 
| 73 | 
            -
            }, string, {
         | 
| 74 | 
            -
                time: string;
         | 
| 75 | 
            -
            }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
         | 
| 76 | 
            -
                $slots: {
         | 
| 77 | 
            -
                    default?(_: {}): any;
         | 
| 78 | 
            -
                };
         | 
| 79 | 
            -
            });
         | 
| 80 | 
            -
            export * from './src/types';
         | 
| 81 | 
            -
            export default MtButton;
         | 
| @@ -1,40 +0,0 @@ | |
| 1 | 
            -
            import { ButtonProps } from './types';
         | 
| 2 | 
            -
            declare function __VLS_template(): {
         | 
| 3 | 
            -
                default?(_: {}): any;
         | 
| 4 | 
            -
            };
         | 
| 5 | 
            -
            declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
         | 
| 6 | 
            -
                time: string;
         | 
| 7 | 
            -
            }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 8 | 
            -
                click: (...args: any[]) => void;
         | 
| 9 | 
            -
            }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
         | 
| 10 | 
            -
                time: string;
         | 
| 11 | 
            -
            }>>> & {
         | 
| 12 | 
            -
                onClick?: ((...args: any[]) => any) | undefined;
         | 
| 13 | 
            -
            }, {
         | 
| 14 | 
            -
                time: string;
         | 
| 15 | 
            -
            }, {}>;
         | 
| 16 | 
            -
            declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
         | 
| 17 | 
            -
            export default _default;
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            type __VLS_WithDefaults<P, D> = {
         | 
| 20 | 
            -
                [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
         | 
| 21 | 
            -
                    default: D[K];
         | 
| 22 | 
            -
                }> : P[K];
         | 
| 23 | 
            -
            };
         | 
| 24 | 
            -
            type __VLS_Prettify<T> = {
         | 
| 25 | 
            -
                [K in keyof T]: T[K];
         | 
| 26 | 
            -
            } & {};
         | 
| 27 | 
            -
            type __VLS_WithTemplateSlots<T, S> = T & {
         | 
| 28 | 
            -
                new (): {
         | 
| 29 | 
            -
                    $slots: S;
         | 
| 30 | 
            -
                };
         | 
| 31 | 
            -
            };
         | 
| 32 | 
            -
            type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
         | 
| 33 | 
            -
            type __VLS_TypePropsToOption<T> = {
         | 
| 34 | 
            -
                [K in keyof T]-?: {} extends Pick<T, K> ? {
         | 
| 35 | 
            -
                    type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
         | 
| 36 | 
            -
                } : {
         | 
| 37 | 
            -
                    type: import('vue').PropType<T[K]>;
         | 
| 38 | 
            -
                    required: true;
         | 
| 39 | 
            -
                };
         | 
| 40 | 
            -
            };
         | 
| @@ -1,81 +0,0 @@ | |
| 1 | 
            -
            export declare const MtButton: {
         | 
| 2 | 
            -
                new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
         | 
| 3 | 
            -
                    mode: {
         | 
| 4 | 
            -
                        type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 5 | 
            -
                    };
         | 
| 6 | 
            -
                    time: {
         | 
| 7 | 
            -
                        type: import('vue').PropType<string>;
         | 
| 8 | 
            -
                        default: string;
         | 
| 9 | 
            -
                    };
         | 
| 10 | 
            -
                    disabled: {
         | 
| 11 | 
            -
                        type: import('vue').PropType<boolean>;
         | 
| 12 | 
            -
                    };
         | 
| 13 | 
            -
                }>> & {
         | 
| 14 | 
            -
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 15 | 
            -
                }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 16 | 
            -
                    click: (...args: any[]) => void;
         | 
| 17 | 
            -
                }, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
         | 
| 18 | 
            -
                    mode: {
         | 
| 19 | 
            -
                        type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 20 | 
            -
                    };
         | 
| 21 | 
            -
                    time: {
         | 
| 22 | 
            -
                        type: import('vue').PropType<string>;
         | 
| 23 | 
            -
                        default: string;
         | 
| 24 | 
            -
                    };
         | 
| 25 | 
            -
                    disabled: {
         | 
| 26 | 
            -
                        type: import('vue').PropType<boolean>;
         | 
| 27 | 
            -
                    };
         | 
| 28 | 
            -
                }>> & {
         | 
| 29 | 
            -
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 30 | 
            -
                }, {
         | 
| 31 | 
            -
                    time: string;
         | 
| 32 | 
            -
                }, true, {}, {}, {
         | 
| 33 | 
            -
                    P: {};
         | 
| 34 | 
            -
                    B: {};
         | 
| 35 | 
            -
                    D: {};
         | 
| 36 | 
            -
                    C: {};
         | 
| 37 | 
            -
                    M: {};
         | 
| 38 | 
            -
                    Defaults: {};
         | 
| 39 | 
            -
                }, Readonly<import('vue').ExtractPropTypes<{
         | 
| 40 | 
            -
                    mode: {
         | 
| 41 | 
            -
                        type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 42 | 
            -
                    };
         | 
| 43 | 
            -
                    time: {
         | 
| 44 | 
            -
                        type: import('vue').PropType<string>;
         | 
| 45 | 
            -
                        default: string;
         | 
| 46 | 
            -
                    };
         | 
| 47 | 
            -
                    disabled: {
         | 
| 48 | 
            -
                        type: import('vue').PropType<boolean>;
         | 
| 49 | 
            -
                    };
         | 
| 50 | 
            -
                }>> & {
         | 
| 51 | 
            -
                    onClick?: ((...args: any[]) => any) | undefined;
         | 
| 52 | 
            -
                }, {}, {}, {}, {}, {
         | 
| 53 | 
            -
                    time: string;
         | 
| 54 | 
            -
                }>;
         | 
| 55 | 
            -
                __isFragment?: never;
         | 
| 56 | 
            -
                __isTeleport?: never;
         | 
| 57 | 
            -
                __isSuspense?: never;
         | 
| 58 | 
            -
            } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
         | 
| 59 | 
            -
                mode: {
         | 
| 60 | 
            -
                    type: import('vue').PropType<"debounce" | "throttle">;
         | 
| 61 | 
            -
                };
         | 
| 62 | 
            -
                time: {
         | 
| 63 | 
            -
                    type: import('vue').PropType<string>;
         | 
| 64 | 
            -
                    default: string;
         | 
| 65 | 
            -
                };
         | 
| 66 | 
            -
                disabled: {
         | 
| 67 | 
            -
                    type: import('vue').PropType<boolean>;
         | 
| 68 | 
            -
                };
         | 
| 69 | 
            -
            }>> & {
         | 
| 70 | 
            -
                onClick?: ((...args: any[]) => any) | undefined;
         | 
| 71 | 
            -
            }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 72 | 
            -
                click: (...args: any[]) => void;
         | 
| 73 | 
            -
            }, string, {
         | 
| 74 | 
            -
                time: string;
         | 
| 75 | 
            -
            }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
         | 
| 76 | 
            -
                $slots: {
         | 
| 77 | 
            -
                    default?(_: {}): any;
         | 
| 78 | 
            -
                };
         | 
| 79 | 
            -
            });
         | 
| 80 | 
            -
            export * from './src/types';
         | 
| 81 | 
            -
            export default MtButton;
         | 
| @@ -1,40 +0,0 @@ | |
| 1 | 
            -
            import { ButtonProps } from './types';
         | 
| 2 | 
            -
            declare function __VLS_template(): {
         | 
| 3 | 
            -
                default?(_: {}): any;
         | 
| 4 | 
            -
            };
         | 
| 5 | 
            -
            declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
         | 
| 6 | 
            -
                time: string;
         | 
| 7 | 
            -
            }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 8 | 
            -
                click: (...args: any[]) => void;
         | 
| 9 | 
            -
            }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
         | 
| 10 | 
            -
                time: string;
         | 
| 11 | 
            -
            }>>> & {
         | 
| 12 | 
            -
                onClick?: ((...args: any[]) => any) | undefined;
         | 
| 13 | 
            -
            }, {
         | 
| 14 | 
            -
                time: string;
         | 
| 15 | 
            -
            }, {}>;
         | 
| 16 | 
            -
            declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
         | 
| 17 | 
            -
            export default _default;
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            type __VLS_WithDefaults<P, D> = {
         | 
| 20 | 
            -
                [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
         | 
| 21 | 
            -
                    default: D[K];
         | 
| 22 | 
            -
                }> : P[K];
         | 
| 23 | 
            -
            };
         | 
| 24 | 
            -
            type __VLS_Prettify<T> = {
         | 
| 25 | 
            -
                [K in keyof T]: T[K];
         | 
| 26 | 
            -
            } & {};
         | 
| 27 | 
            -
            type __VLS_WithTemplateSlots<T, S> = T & {
         | 
| 28 | 
            -
                new (): {
         | 
| 29 | 
            -
                    $slots: S;
         | 
| 30 | 
            -
                };
         | 
| 31 | 
            -
            };
         | 
| 32 | 
            -
            type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
         | 
| 33 | 
            -
            type __VLS_TypePropsToOption<T> = {
         | 
| 34 | 
            -
                [K in keyof T]-?: {} extends Pick<T, K> ? {
         | 
| 35 | 
            -
                    type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
         | 
| 36 | 
            -
                } : {
         | 
| 37 | 
            -
                    type: import('vue').PropType<T[K]>;
         | 
| 38 | 
            -
                    required: true;
         | 
| 39 | 
            -
                };
         | 
| 40 | 
            -
            };
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            export * from './button';
         | 
| 
            File without changes
         | 
| 
            File without changes
         |