@mekari/pixel3-button 0.1.8-dev.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button.d.mts +9 -0
- package/dist/button.d.ts +9 -0
- package/dist/button.js +9 -2
- package/dist/button.mjs +2 -2
- package/dist/{chunk-CHZ43RJA.mjs → chunk-NT45ABTV.mjs} +4 -0
- package/dist/{chunk-JIGNZFPU.mjs → chunk-WNQOVJVI.mjs} +6 -3
- package/dist/index.js +9 -2
- package/dist/index.mjs +2 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/button.props.d.mts +4 -0
- package/dist/modules/button.props.d.ts +4 -0
- package/dist/modules/button.props.js +4 -0
- package/dist/modules/button.props.mjs +1 -1
- package/package.json +5 -5
package/dist/button.d.mts
CHANGED
|
@@ -35,6 +35,10 @@ declare const MpButton: vue.DefineComponent<{
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
+
isRounded: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
38
42
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "click"[], "click", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
39
43
|
as: {
|
|
40
44
|
type: vue.PropType<vue.Component | keyof HTMLElementTagNameMap>;
|
|
@@ -66,6 +70,10 @@ declare const MpButton: vue.DefineComponent<{
|
|
|
66
70
|
type: BooleanConstructor;
|
|
67
71
|
default: boolean;
|
|
68
72
|
};
|
|
73
|
+
isRounded: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
69
77
|
}>> & {
|
|
70
78
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
71
79
|
}, {
|
|
@@ -75,6 +83,7 @@ declare const MpButton: vue.DefineComponent<{
|
|
|
75
83
|
isDisabled: boolean;
|
|
76
84
|
isLoading: boolean;
|
|
77
85
|
isFullWidth: boolean;
|
|
86
|
+
isRounded: boolean;
|
|
78
87
|
}, {}>;
|
|
79
88
|
declare const MpButtonGroup: vue.DefineComponent<{
|
|
80
89
|
spacing: {
|
package/dist/button.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ declare const MpButton: vue.DefineComponent<{
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
+
isRounded: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
38
42
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "click"[], "click", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
39
43
|
as: {
|
|
40
44
|
type: vue.PropType<vue.Component | keyof HTMLElementTagNameMap>;
|
|
@@ -66,6 +70,10 @@ declare const MpButton: vue.DefineComponent<{
|
|
|
66
70
|
type: BooleanConstructor;
|
|
67
71
|
default: boolean;
|
|
68
72
|
};
|
|
73
|
+
isRounded: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
69
77
|
}>> & {
|
|
70
78
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
71
79
|
}, {
|
|
@@ -75,6 +83,7 @@ declare const MpButton: vue.DefineComponent<{
|
|
|
75
83
|
isDisabled: boolean;
|
|
76
84
|
isLoading: boolean;
|
|
77
85
|
isFullWidth: boolean;
|
|
86
|
+
isRounded: boolean;
|
|
78
87
|
}, {}>;
|
|
79
88
|
declare const MpButtonGroup: vue.DefineComponent<{
|
|
80
89
|
spacing: {
|
package/dist/button.js
CHANGED
|
@@ -63,6 +63,10 @@ var buttonProps = {
|
|
|
63
63
|
isFullWidth: {
|
|
64
64
|
type: Boolean,
|
|
65
65
|
default: false
|
|
66
|
+
},
|
|
67
|
+
isRounded: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
66
70
|
}
|
|
67
71
|
};
|
|
68
72
|
var buttonGroupProps = {
|
|
@@ -105,7 +109,8 @@ var MpButton = (0, import_vue2.defineComponent)({
|
|
|
105
109
|
isLoading,
|
|
106
110
|
leftIcon,
|
|
107
111
|
rightIcon,
|
|
108
|
-
isFullWidth
|
|
112
|
+
isFullWidth,
|
|
113
|
+
isRounded
|
|
109
114
|
} = props;
|
|
110
115
|
const Component = props.as;
|
|
111
116
|
return (0, import_vue.createVNode)(Component, {
|
|
@@ -115,12 +120,14 @@ var MpButton = (0, import_vue2.defineComponent)({
|
|
|
115
120
|
"data-icon-position": rightIcon ? "right" : leftIcon ? "left" : void 0,
|
|
116
121
|
"data-has-label": variant !== "textLink" && children ? true : void 0,
|
|
117
122
|
"data-is-full-width": isFullWidth || void 0,
|
|
123
|
+
"data-is-rounded": isRounded || void 0,
|
|
118
124
|
"disabled": isDisabled || void 0,
|
|
119
125
|
"aria-disabled": isDisabled || void 0,
|
|
120
126
|
"onClick": onClick
|
|
121
127
|
}, {
|
|
122
128
|
default: () => [isLoading && !isDisabled && (0, import_vue.createVNode)("span", {
|
|
123
|
-
"data-loading": "true"
|
|
129
|
+
"data-loading": "true",
|
|
130
|
+
"data-is-rounded": isRounded || void 0
|
|
124
131
|
}, [(0, import_vue.createVNode)(import_pixel3_spinner.MpSpinner, {
|
|
125
132
|
"color": "currentcolor"
|
|
126
133
|
}, null)]), leftIcon && (0, import_vue.createVNode)(import_pixel3_icon.MpIcon, {
|
package/dist/button.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__name,
|
|
3
3
|
buttonGroupProps,
|
|
4
4
|
buttonProps
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NT45ABTV.mjs";
|
|
6
6
|
|
|
7
7
|
// src/button.tsx
|
|
8
8
|
import { createVNode as _createVNode } from "vue";
|
|
@@ -40,7 +40,8 @@ var MpButton = defineComponent({
|
|
|
40
40
|
isLoading,
|
|
41
41
|
leftIcon,
|
|
42
42
|
rightIcon,
|
|
43
|
-
isFullWidth
|
|
43
|
+
isFullWidth,
|
|
44
|
+
isRounded
|
|
44
45
|
} = props;
|
|
45
46
|
const Component = props.as;
|
|
46
47
|
return _createVNode(Component, {
|
|
@@ -50,12 +51,14 @@ var MpButton = defineComponent({
|
|
|
50
51
|
"data-icon-position": rightIcon ? "right" : leftIcon ? "left" : void 0,
|
|
51
52
|
"data-has-label": variant !== "textLink" && children ? true : void 0,
|
|
52
53
|
"data-is-full-width": isFullWidth || void 0,
|
|
54
|
+
"data-is-rounded": isRounded || void 0,
|
|
53
55
|
"disabled": isDisabled || void 0,
|
|
54
56
|
"aria-disabled": isDisabled || void 0,
|
|
55
57
|
"onClick": onClick
|
|
56
58
|
}, {
|
|
57
59
|
default: () => [isLoading && !isDisabled && _createVNode("span", {
|
|
58
|
-
"data-loading": "true"
|
|
60
|
+
"data-loading": "true",
|
|
61
|
+
"data-is-rounded": isRounded || void 0
|
|
59
62
|
}, [_createVNode(MpSpinner, {
|
|
60
63
|
"color": "currentcolor"
|
|
61
64
|
}, null)]), leftIcon && _createVNode(MpIcon, {
|
package/dist/index.js
CHANGED
|
@@ -65,6 +65,10 @@ var buttonProps = {
|
|
|
65
65
|
isFullWidth: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: false
|
|
68
|
+
},
|
|
69
|
+
isRounded: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
68
72
|
}
|
|
69
73
|
};
|
|
70
74
|
var buttonGroupProps = {
|
|
@@ -107,7 +111,8 @@ var MpButton = (0, import_vue2.defineComponent)({
|
|
|
107
111
|
isLoading,
|
|
108
112
|
leftIcon,
|
|
109
113
|
rightIcon,
|
|
110
|
-
isFullWidth
|
|
114
|
+
isFullWidth,
|
|
115
|
+
isRounded
|
|
111
116
|
} = props;
|
|
112
117
|
const Component = props.as;
|
|
113
118
|
return (0, import_vue.createVNode)(Component, {
|
|
@@ -117,12 +122,14 @@ var MpButton = (0, import_vue2.defineComponent)({
|
|
|
117
122
|
"data-icon-position": rightIcon ? "right" : leftIcon ? "left" : void 0,
|
|
118
123
|
"data-has-label": variant !== "textLink" && children ? true : void 0,
|
|
119
124
|
"data-is-full-width": isFullWidth || void 0,
|
|
125
|
+
"data-is-rounded": isRounded || void 0,
|
|
120
126
|
"disabled": isDisabled || void 0,
|
|
121
127
|
"aria-disabled": isDisabled || void 0,
|
|
122
128
|
"onClick": onClick
|
|
123
129
|
}, {
|
|
124
130
|
default: () => [isLoading && !isDisabled && (0, import_vue.createVNode)("span", {
|
|
125
|
-
"data-loading": "true"
|
|
131
|
+
"data-loading": "true",
|
|
132
|
+
"data-is-rounded": isRounded || void 0
|
|
126
133
|
}, [(0, import_vue.createVNode)(import_pixel3_spinner.MpSpinner, {
|
|
127
134
|
"color": "currentcolor"
|
|
128
135
|
}, null)]), leftIcon && (0, import_vue.createVNode)(import_pixel3_icon.MpIcon, {
|
package/dist/index.mjs
CHANGED
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/button.props.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/button.props.ts":{"bytes":1251,"imports":[],"format":"esm"},"src/button.tsx":{"bytes":3245,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"src/modules/button.props.ts","kind":"import-statement","original":"./modules/button.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/button.types.ts":{"bytes":235,"imports":[],"format":"esm"},"src/index.ts":{"bytes":176,"imports":[{"path":"src/button.tsx","kind":"import-statement","original":"./button"},{"path":"src/modules/button.types.ts","kind":"import-statement","original":"./modules/button.types"}],"format":"esm"}},"outputs":{"dist/button.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/button.tsx","inputs":{"src/button.tsx":{"bytesInOutput":3240},"src/modules/button.props.ts":{"bytesInOutput":619}},"bytes":4937},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":159},"src/button.tsx":{"bytesInOutput":3072},"src/modules/button.props.ts":{"bytesInOutput":619}},"bytes":4945},"dist/modules/button.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/button.props.ts","inputs":{"src/modules/button.props.ts":{"bytesInOutput":817}},"bytes":1773},"dist/modules/button.types.js":{"imports":[],"exports":[],"entryPoint":"src/modules/button.types.ts","inputs":{"src/modules/button.types.ts":{"bytesInOutput":84}},"bytes":787}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/button.props.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/button.props.ts":{"bytes":1251,"imports":[],"format":"esm"},"src/button.tsx":{"bytes":3245,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"src/modules/button.props.ts","kind":"import-statement","original":"./modules/button.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/button.types.ts":{"bytes":235,"imports":[],"format":"esm"},"src/index.ts":{"bytes":176,"imports":[{"path":"src/button.tsx","kind":"import-statement","original":"./button"},{"path":"src/modules/button.types.ts","kind":"import-statement","original":"./modules/button.types"}],"format":"esm"}},"outputs":{"dist/button.mjs":{"imports":[{"path":"dist/chunk-WNQOVJVI.mjs","kind":"import-statement"},{"path":"dist/chunk-NT45ABTV.mjs","kind":"import-statement"}],"exports":["MpButton","MpButtonGroup"],"entryPoint":"src/button.tsx","inputs":{},"bytes":139},"dist/index.mjs":{"imports":[{"path":"dist/chunk-WNQOVJVI.mjs","kind":"import-statement"},{"path":"dist/chunk-NT45ABTV.mjs","kind":"import-statement"},{"path":"dist/chunk-6IMGI6CD.mjs","kind":"import-statement"}],"exports":["MpButton","MpButtonGroup"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":170},"dist/chunk-WNQOVJVI.mjs":{"imports":[{"path":"dist/chunk-NT45ABTV.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true}],"exports":["MpButton","MpButtonGroup"],"inputs":{"src/button.tsx":{"bytesInOutput":2834}},"bytes":2978},"dist/modules/button.props.mjs":{"imports":[{"path":"dist/chunk-NT45ABTV.mjs","kind":"import-statement"}],"exports":["buttonGroupProps","buttonProps"],"entryPoint":"src/modules/button.props.ts","inputs":{},"bytes":121},"dist/chunk-NT45ABTV.mjs":{"imports":[],"exports":["__name","buttonGroupProps","buttonProps"],"inputs":{"src/modules/button.props.ts":{"bytesInOutput":619}},"bytes":837},"dist/modules/button.types.mjs":{"imports":[{"path":"dist/chunk-6IMGI6CD.mjs","kind":"import-statement"}],"exports":[],"entryPoint":"src/modules/button.types.ts","inputs":{},"bytes":32},"dist/chunk-6IMGI6CD.mjs":{"imports":[],"exports":[],"inputs":{"src/modules/button.types.ts":{"bytesInOutput":0}},"bytes":0}}}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-button",
|
|
3
3
|
"description": "Button component for mekari pixel 3",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@mekari/pixel3-icon": "0.1.1
|
|
12
|
-
"@mekari/pixel3-spinner": "0.0.25
|
|
13
|
-
"@mekari/pixel3-styled-system": "0.2.0
|
|
14
|
-
"@mekari/pixel3-utils": "0.1.0
|
|
11
|
+
"@mekari/pixel3-icon": "0.1.1",
|
|
12
|
+
"@mekari/pixel3-spinner": "0.0.25",
|
|
13
|
+
"@mekari/pixel3-styled-system": "0.2.0",
|
|
14
|
+
"@mekari/pixel3-utils": "0.1.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"vue": "^3.4.9"
|