@can2421/ui-components 1.0.9 → 1.0.10

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.
@@ -4,7 +4,7 @@ declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
5
  };
6
6
  refs: {};
7
- rootEl: HTMLButtonElement;
7
+ rootEl: HTMLDivElement;
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
10
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -21,7 +21,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
21
21
  readonly size: StringConstructor;
22
22
  }>> & Readonly<{}>, {
23
23
  readonly type: import('./button.types').ButtonType;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
25
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
26
  export default _default;
27
27
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -7,7 +7,7 @@ declare const CButton: import('../../../utils/install').SFCWithInstall<{
7
7
  readonly size: StringConstructor;
8
8
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
9
9
  readonly type: import('./button.types').ButtonType;
10
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
10
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
11
11
  P: {};
12
12
  B: {};
13
13
  D: {};
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as i } from "vue";
2
- const u = (t) => (t.install = (n) => {
2
+ const p = (t) => (t.install = (n) => {
3
3
  const e = t.name || "UnknownComponent";
4
4
  n.component(e, t);
5
5
  }, t), o = {
@@ -8,7 +8,7 @@ const u = (t) => (t.install = (n) => {
8
8
  default: "primary"
9
9
  },
10
10
  size: String
11
- }, p = /* @__PURE__ */ c({
11
+ }, u = /* @__PURE__ */ c({
12
12
  name: "CButton",
13
13
  __name: "button",
14
14
  props: o,
@@ -17,20 +17,20 @@ const u = (t) => (t.install = (n) => {
17
17
  function e() {
18
18
  console.log("click");
19
19
  }
20
- return (l, b) => (s(), r("button", {
20
+ return (l, f) => (s(), r("div", {
21
21
  class: a(["c-button", [`c-button--${n.type}`]]),
22
22
  onClick: e
23
23
  }, [
24
24
  i(l.$slots, "default")
25
25
  ], 2));
26
26
  }
27
- }), m = u(p), f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
+ }), m = p(u), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
28
  __proto__: null,
29
29
  CButton: m,
30
30
  buttonProps: o
31
- }, Symbol.toStringTag, { value: "Module" })), _ = {
31
+ }, Symbol.toStringTag, { value: "Module" })), b = {
32
32
  install(t) {
33
- Object.entries(f).forEach(([n, e]) => {
33
+ Object.entries(d).forEach(([n, e]) => {
34
34
  t.component(n, e);
35
35
  });
36
36
  }
@@ -38,5 +38,5 @@ const u = (t) => (t.install = (n) => {
38
38
  export {
39
39
  m as CButton,
40
40
  o as buttonProps,
41
- _ as default
41
+ b as default
42
42
  };
@@ -1 +1 @@
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,d)=>(t.openBlock(),t.createElementBlock("button",{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"}})}));
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@can2421/ui-components",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "dist/ui-components.mjs",
5
5
  "module": "dist/ui-components.umd.js",
6
6
  "types": "dist/index.es.d.ts",