mortise-tenon-design 0.0.1 → 0.0.2

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,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-66674a10"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-94578cec"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -0,0 +1 @@
1
+ export * from '../components';
@@ -0,0 +1,4 @@
1
+ import { XButton as r } from "../components/button/index.mjs";
2
+ export {
3
+ r as XButton
4
+ };
package/es/style.css CHANGED
@@ -1 +1 @@
1
- .ex-button[data-v-66674a10]{animation:temp-animation-66674a10 step-end forwards}.ex-button[data-v-66674a10]:active{animation:none}@keyframes temp-animation-66674a10{}
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{}
@@ -0,0 +1,81 @@
1
+ export declare const XButton: {
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 XButton;
@@ -0,0 +1,40 @@
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 +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-66674a10"]]);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-94578cec"]]);exports.default=u;
@@ -0,0 +1,8 @@
1
+ export interface ButtonProps {
2
+ /** debounce:防抖;throttle:节流 */
3
+ mode?: 'debounce' | 'throttle';
4
+ /** 间隔时间 */
5
+ time?: string;
6
+ /** 禁用 */
7
+ disabled?: boolean;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './button';
@@ -0,0 +1 @@
1
+ export * from '../components';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../components/button/index.js");exports.XButton=t.XButton;
File without changes
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .ex-button[data-v-66674a10]{animation:temp-animation-66674a10 step-end forwards}.ex-button[data-v-66674a10]:active{animation:none}@keyframes temp-animation-66674a10{}
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{}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "mortise-tenon-design",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "榫卯组件库",
5
5
  "author": "nixwai",
6
6
  "license": "ISC",
7
7
  "main": "lib/index.js",
8
8
  "module": "es/index.mjs",
9
+ "types": "es/core/index.d.ts",
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "https://github.com/nixwai/mortise-tenon-design"
package/es/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/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;
@@ -1 +0,0 @@
1
- export * from '@mortise-tenon-design/components';
File without changes
File without changes
File without changes
File without changes
File without changes