@can2421/ui-components 1.0.1 → 1.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.
package/dist/index.es.js
CHANGED
|
@@ -1,43 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as r, createElementBlock as s, openBlock as l, normalizeClass as a, renderSlot as c } from "vue";
|
|
2
|
+
const p = (t) => (t.install = (n) => {
|
|
3
3
|
const e = t.name || "UnknownComponent";
|
|
4
4
|
n.component(e, t);
|
|
5
|
-
}, t),
|
|
5
|
+
}, t), o = {
|
|
6
6
|
type: {
|
|
7
7
|
type: String,
|
|
8
8
|
default: "primary"
|
|
9
9
|
},
|
|
10
10
|
size: String
|
|
11
|
-
},
|
|
11
|
+
}, u = /* @__PURE__ */ r({
|
|
12
12
|
name: "CButton",
|
|
13
13
|
__name: "button",
|
|
14
|
-
props:
|
|
14
|
+
props: o,
|
|
15
15
|
setup(t) {
|
|
16
16
|
const n = t;
|
|
17
|
-
return (e,
|
|
18
|
-
class:
|
|
17
|
+
return (e, b) => (l(), s("button", {
|
|
18
|
+
class: a(["c-button", [`c-button--${n.type}`]])
|
|
19
19
|
}, [
|
|
20
|
-
|
|
20
|
+
c(e.$slots, "default")
|
|
21
21
|
], 2));
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
24
|
-
const e = t.__vccOpts || t;
|
|
25
|
-
for (const [o, s] of n)
|
|
26
|
-
e[o] = s;
|
|
27
|
-
return e;
|
|
28
|
-
}, d = /* @__PURE__ */ m(_, [["__scopeId", "data-v-51eeb154"]]), f = i(d), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
}), i = p(u), m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
24
|
__proto__: null,
|
|
30
|
-
CButton:
|
|
31
|
-
buttonProps:
|
|
32
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
25
|
+
CButton: i,
|
|
26
|
+
buttonProps: o
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
33
28
|
install(t) {
|
|
34
|
-
Object.entries(
|
|
29
|
+
Object.entries(m).forEach(([n, e]) => {
|
|
35
30
|
t.component(n, e);
|
|
36
31
|
});
|
|
37
32
|
}
|
|
38
33
|
};
|
|
39
34
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
i as CButton,
|
|
36
|
+
o as buttonProps,
|
|
37
|
+
_ as default
|
|
43
38
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.CanUI={},e.Vue))})(this,(function(e,t){"use strict";const r=n=>(n.install=o=>{const s=n.name||"UnknownComponent";o.component(s,n)},n),i={type:{type:String,default:"primary"},size:String},u=r(t.defineComponent({name:"CButton",__name:"button",props:i,setup(n){const o=n;return(s,f)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["c-button",[`c-button--${o.type}`]])},[t.renderSlot(s.$slots,"default")],2))}})),l=Object.freeze(Object.defineProperty({__proto__:null,CButton:u,buttonProps:i},Symbol.toStringTag,{value:"Module"})),c={install(n){Object.entries(l).forEach(([o,s])=>{n.component(o,s)})}};e.CButton=u,e.buttonProps=i,e.default=c,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vite').UserConfig
|
|
1
|
+
declare const _default: import('vite').UserConfig;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vite').UserConfig
|
|
1
|
+
declare const _default: import('vite').UserConfig;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.c-button{display:inline-block;padding:.5em 1em;outline:unset;border:unset;border-radius:4px;background:#fff;cursor:pointer}.c-button:active{box-shadow:inset 0 0 0 1px #eaeaea}.c-button--primary{background:#409eff;color:#fff}.c-button--disabled{cursor:not-allowed;opacity:.5}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@can2421/ui-components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "dist/index.
|
|
5
|
-
"module": "dist/index.
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"main": "dist/index.umd.js",
|
|
5
|
+
"module": "dist/index.es.js",
|
|
6
|
+
"types": "dist/index.es.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
package/dist/components.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.c-button{display:inline-block;padding:.5em 1em;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer}.c-button--primary{background:#458db6;color:#fff}.c-button--disabled{cursor:not-allowed;opacity:.5}
|