@can2421/ui-components 1.0.13 → 1.0.15
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/play/src/App.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$namepace: 'c' !default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".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}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { defineComponent as c, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as i } from "vue";
|
|
3
|
+
const p = (t) => (t.install = (n) => {
|
|
4
|
+
const e = t.name || "UnknownComponent";
|
|
5
|
+
n.component(e, t);
|
|
6
|
+
}, t), o = {
|
|
7
|
+
type: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "primary"
|
|
10
|
+
},
|
|
11
|
+
size: String
|
|
12
|
+
}, u = /* @__PURE__ */ c({
|
|
13
|
+
name: "CButton",
|
|
14
|
+
__name: "button",
|
|
15
|
+
props: o,
|
|
16
|
+
setup(t) {
|
|
17
|
+
const n = t;
|
|
18
|
+
function e() {
|
|
19
|
+
console.log("click");
|
|
20
|
+
}
|
|
21
|
+
return (l, f) => (s(), r("div", {
|
|
22
|
+
class: a(["c-button", [`c-button--${n.type}`]]),
|
|
23
|
+
onClick: e
|
|
24
|
+
}, [
|
|
25
|
+
i(l.$slots, "default")
|
|
26
|
+
], 2));
|
|
27
|
+
}
|
|
28
|
+
}), m = p(u), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
+
__proto__: null,
|
|
30
|
+
CButton: m,
|
|
31
|
+
buttonProps: o
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), b = {
|
|
33
|
+
install(t) {
|
|
34
|
+
Object.entries(d).forEach(([n, e]) => {
|
|
35
|
+
t.component(n, e);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
m as CButton,
|
|
41
|
+
o as buttonProps,
|
|
42
|
+
b as default
|
|
43
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".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}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
2
|
(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["can-lib"]={},e.Vue))})(this,(function(e,t){"use strict";const c=n=>(n.install=o=>{const i=n.name||"UnknownComponent";o.component(i,n)},n),s={type:{type:String,default:"primary"},size:String},l=c(t.defineComponent({name:"CButton",__name:"button",props:s,setup(n){const o=n;function i(){console.log("click")}return(a,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["c-button",[`c-button--${o.type}`]]),onClick:i},[t.renderSlot(a.$slots,"default")],2))}})),u=Object.freeze(Object.defineProperty({__proto__:null,CButton:l,buttonProps:s},Symbol.toStringTag,{value:"Module"})),r={install(n){Object.entries(u).forEach(([o,i])=>{n.component(o,i)})}};e.CButton=l,e.buttonProps=s,e.default=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@can2421/ui-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.es.d.ts",
|
|
7
|
-
"import": "./dist/ui-components.
|
|
7
|
+
"import": "./dist/ui-components.mjs",
|
|
8
8
|
"require": "./dist/ui-components.umd.js"
|
|
9
9
|
},
|
|
10
|
-
"./
|
|
10
|
+
"./styles/config.scss": "./src/styles/config.scss"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"src/styles/*.scss"
|
|
14
15
|
],
|
|
15
16
|
"publishConfig": {
|
|
16
17
|
"access": "public",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"vite-plugin-dts": "^4.5.4"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
|
-
"build": "vite build"
|
|
30
|
+
"build": "vite build && node scripts/build-all-styles.js",
|
|
31
|
+
"build:styles": "node scripts/build-all-styles.js"
|
|
30
32
|
}
|
|
31
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$namepace: 'c' !default;
|
package/dist/ui-components.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}
|