@can2421/ui-components 1.0.12 → 1.0.13

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,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, {}, HTMLDivElement>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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}
@@ -1,2 +1 @@
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
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["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,10 +1,10 @@
1
1
  {
2
2
  "name": "@can2421/ui-components",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.es.d.ts",
7
- "import": "./dist/ui-components.mjs",
7
+ "import": "./dist/ui-components.umd.js",
8
8
  "require": "./dist/ui-components.umd.js"
9
9
  },
10
10
  "./dist/ui-components.css": "./dist/ui-components.css"
@@ -1,43 +0,0 @@
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
- };