mortise-tenon-design 0.0.2 → 0.0.4

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.
@@ -1,4 +1,4 @@
1
- export declare const XButton: {
1
+ export declare const MtButton: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
3
3
  mode: {
4
4
  type: import('vue').PropType<"debounce" | "throttle">;
@@ -78,4 +78,4 @@ export declare const XButton: {
78
78
  };
79
79
  });
80
80
  export * from './src/types';
81
- export default XButton;
81
+ export default MtButton;
@@ -4,6 +4,6 @@ t.install = (n) => {
4
4
  };
5
5
  const a = t;
6
6
  export {
7
- a as XButton,
7
+ a as MtButton,
8
8
  a as default
9
9
  };
@@ -1,7 +1,7 @@
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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-94578cec"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c1292849"]]);
5
5
  export {
6
- p as default
6
+ _ as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as c, ref as i, computed as m, onMounted as f, openBlock as b, createElementBlock as p, normalizeClass as v, unref as k, normalizeStyle as _, renderSlot as h } from "vue";
2
- const y = ["disabled"], S = /* @__PURE__ */ c({
3
- name: "XButton",
2
+ const y = ["disabled"], M = /* @__PURE__ */ c({
3
+ name: "MtButton",
4
4
  __name: "button",
5
5
  props: {
6
6
  mode: {},
@@ -34,5 +34,5 @@ const y = ["disabled"], S = /* @__PURE__ */ c({
34
34
  }
35
35
  });
36
36
  export {
37
- S as default
37
+ M as default
38
38
  };
package/es/index.mjs ADDED
@@ -0,0 +1,4 @@
1
+ import { MtButton as r } from "./components/button/index.mjs";
2
+ export {
3
+ r as MtButton
4
+ };
package/es/style.css CHANGED
@@ -1 +1 @@
1
- .ex-button[data-v-94578cec]{animation:temp-animation-94578cec step-end forwards}.ex-button[data-v-94578cec]:active{animation:none}@keyframes temp-animation-94578cec{}
1
+ .ex-button[data-v-c1292849]{animation:temp-animation-c1292849 step-end forwards}.ex-button[data-v-c1292849]:active{animation:none}@keyframes temp-animation-c1292849{}
@@ -1,4 +1,4 @@
1
- export declare const XButton: {
1
+ export declare const MtButton: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
3
3
  mode: {
4
4
  type: import('vue').PropType<"debounce" | "throttle">;
@@ -78,4 +78,4 @@ export declare const XButton: {
78
78
  };
79
79
  });
80
80
  export * from './src/types';
81
- export default XButton;
81
+ export default MtButton;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./src/button.vue.js");e.default.install=u=>{e.default.name&&u.component(e.default.name,e.default)};const t=e.default;exports.XButton=t;exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./src/button.vue.js");t.default.install=u=>{t.default.name&&u.component(t.default.name,t.default)};const e=t.default;exports.MtButton=e;exports.default=e;
@@ -1 +1 @@
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-94578cec"]]);exports.default=u;
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-c1292849"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=["disabled"],f=e.defineComponent({name:"XButton",__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;
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;
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/button/index.js");exports.MtButton=t.MtButton;
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .ex-button[data-v-94578cec]{animation:temp-animation-94578cec step-end forwards}.ex-button[data-v-94578cec]:active{animation:none}@keyframes temp-animation-94578cec{}
1
+ .ex-button[data-v-c1292849]{animation:temp-animation-c1292849 step-end forwards}.ex-button[data-v-c1292849]:active{animation:none}@keyframes temp-animation-c1292849{}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mortise-tenon-design",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "榫卯组件库",
5
5
  "author": "nixwai",
6
6
  "license": "ISC",
package/es/core/index.mjs DELETED
@@ -1,4 +0,0 @@
1
- import { XButton as r } from "../components/button/index.mjs";
2
- export {
3
- r as XButton
4
- };
package/lib/core/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../components/button/index.js");exports.XButton=t.XButton;