@can2421/ui 0.0.13 → 0.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/index.d.ts CHANGED
@@ -1,69 +1,6 @@
1
- import { App } from 'vue';
2
- export declare const HycButton: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
- type: {
5
- type: import('vue').PropType<import('./types').ButtonType>;
6
- default: string;
7
- };
8
- disabled: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- }>> & Readonly<{
13
- onClick?: ((event: MouseEvent) => any) | undefined;
14
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- click: (event: MouseEvent) => any;
16
- }, import('vue').PublicProps, {
17
- type: import('./types').ButtonType;
18
- disabled: boolean;
19
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
20
- P: {};
21
- B: {};
22
- D: {};
23
- C: {};
24
- M: {};
25
- Defaults: {};
26
- }, Readonly<import('vue').ExtractPropTypes<{
27
- type: {
28
- type: import('vue').PropType<import('./types').ButtonType>;
29
- default: string;
30
- };
31
- disabled: {
32
- type: BooleanConstructor;
33
- default: boolean;
34
- };
35
- }>> & Readonly<{
36
- onClick?: ((event: MouseEvent) => any) | undefined;
37
- }>, {}, {}, {}, {}, {
38
- type: import('./types').ButtonType;
39
- disabled: boolean;
40
- }>;
41
- __isFragment?: never;
42
- __isTeleport?: never;
43
- __isSuspense?: never;
44
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
45
- type: {
46
- type: import('vue').PropType<import('./types').ButtonType>;
47
- default: string;
48
- };
49
- disabled: {
50
- type: BooleanConstructor;
51
- default: boolean;
52
- };
53
- }>> & Readonly<{
54
- onClick?: ((event: MouseEvent) => any) | undefined;
55
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
- click: (event: MouseEvent) => any;
57
- }, string, {
58
- type: import('./types').ButtonType;
59
- disabled: boolean;
60
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
61
- $slots: {
62
- default?(_: {}): any;
63
- };
64
- });
65
- export * from './types';
66
- declare const _default: {
67
- install(app: App): void;
68
- };
69
- export default _default;
1
+ export * from './ui/src/index'
2
+ export {}
3
+ import Can2421UI from './ui/src/index'
4
+ export default Can2421UI
5
+ export * from './ui/src/index'
6
+ export {}
@@ -0,0 +1,2 @@
1
+ (function(t,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t.Can2421UI={},t.Vue))})(this,(function(t,o){"use strict";var i=document.createElement("style");i.textContent=`.hyc-button[data-v-6c0ad3e0]{padding:8px 16px;border-radius:4px;border:none;cursor:pointer;font-size:14px;transition:all .3s}.hyc-button--primary[data-v-6c0ad3e0]{background-color:#1890ff;color:#fff}.hyc-button--secondary[data-v-6c0ad3e0]{background-color:#f5f5f5;color:#333}.hyc-button--text[data-v-6c0ad3e0]{background-color:transparent;color:#1890ff}.hyc-button--disabled[data-v-6c0ad3e0]{opacity:.6;cursor:not-allowed}
2
+ /*$vite$:1*/`,document.head.appendChild(i);const r={type:{type:String,default:"primary"},disabled:{type:Boolean,default:!1}},f=["disabled"],l=((e,n)=>{const c=e.__vccOpts||e;for(const[d,s]of n)c[d]=s;return c})(o.defineComponent({__name:"Button",props:r,emits:["click"],setup(e,{emit:n}){const c=e,d=n;function s(a){c.disabled||d("click",a)}return(a,C)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["hyc-button",[`hyc-button--${a.type}`,{"hyc-button--disabled":a.disabled}]]),disabled:a.disabled,onClick:s},[o.renderSlot(a.$slots,"default",{},void 0,!0)],10,f))}}),[["__scopeId","data-v-6c0ad3e0"]]),p="Hyc";function b(e){const n={};return Object.entries(e).forEach(([c,d])=>{const s=`${p}${c}`;n[s]=d}),n}function y(e,n){Object.entries(n).forEach(([c,d])=>{e.component(c,d)})}const u=b({Button:l}),m=u.HycButton,_={install(e){y(e,u)}};t.Button=l,t.HycButton=m,t.buttonProps=r,t.default=_,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
@@ -0,0 +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>;
2
+ export default _default;
File without changes
@@ -0,0 +1,2 @@
1
+ declare const router: any;
2
+ export default router;
@@ -0,0 +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>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
@@ -0,0 +1,69 @@
1
+ import { App } from 'vue';
2
+ export declare const HycButton: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
+ type: {
5
+ type: import('vue').PropType<import('./types').ButtonType>;
6
+ default: string;
7
+ };
8
+ disabled: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ }>> & Readonly<{
13
+ onClick?: ((event: MouseEvent) => any) | undefined;
14
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ click: (event: MouseEvent) => any;
16
+ }, import('vue').PublicProps, {
17
+ type: import('./types').ButtonType;
18
+ disabled: boolean;
19
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
20
+ P: {};
21
+ B: {};
22
+ D: {};
23
+ C: {};
24
+ M: {};
25
+ Defaults: {};
26
+ }, Readonly<import('vue').ExtractPropTypes<{
27
+ type: {
28
+ type: import('vue').PropType<import('./types').ButtonType>;
29
+ default: string;
30
+ };
31
+ disabled: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ }>> & Readonly<{
36
+ onClick?: ((event: MouseEvent) => any) | undefined;
37
+ }>, {}, {}, {}, {}, {
38
+ type: import('./types').ButtonType;
39
+ disabled: boolean;
40
+ }>;
41
+ __isFragment?: never;
42
+ __isTeleport?: never;
43
+ __isSuspense?: never;
44
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
45
+ type: {
46
+ type: import('vue').PropType<import('./types').ButtonType>;
47
+ default: string;
48
+ };
49
+ disabled: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>> & Readonly<{
54
+ onClick?: ((event: MouseEvent) => any) | undefined;
55
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ click: (event: MouseEvent) => any;
57
+ }, string, {
58
+ type: import('./types').ButtonType;
59
+ disabled: boolean;
60
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
61
+ $slots: {
62
+ default?(_: {}): any;
63
+ };
64
+ });
65
+ export * from './types';
66
+ declare const _default: {
67
+ install(app: App): void;
68
+ };
69
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
package/package.json CHANGED
@@ -1,28 +1,23 @@
1
1
  {
2
2
  "name": "@can2421/ui",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
7
- "import": {
8
- "types": "./dist/index.d.ts",
9
- "default": "./dist/index.es.js"
10
- },
11
- "require": {
12
- "types": "./dist/index.d.ts",
13
- "default": "./dist/index.umd.js"
14
- }
7
+ "import": "./dist/index.mjs",
8
+ "require": "./dist/index.umd.cjs"
15
9
  },
16
- "./dist/style.css": "./dist/ui.css",
17
- "./styles": "./dist/ui.css"
10
+ "./style.css": "./dist/style.css",
11
+ "./dist/*": "./dist/*"
18
12
  },
19
- "main": "dist/index.umd.js",
20
- "module": "dist/index.es.js",
21
- "unpkg": "dist/index.umd.js",
22
- "jsdelivr": "dist/index.umd.js",
23
- "types": "dist/types/index.d.ts",
24
- "style": "dist/style/ui.css",
13
+ "main": "./dist/index.umd.cjs",
14
+ "module": "./dist/index.mjs",
15
+ "unpkg": "./dist/index.umd.cjs",
16
+ "jsdelivr": "./dist/index.umd.cjs",
17
+ "types": "./dist/index.d.ts",
25
18
  "files": [
19
+ "LICENSE",
20
+ "README.md",
26
21
  "dist"
27
22
  ],
28
23
  "scripts": {
package/dist/index.umd.js DELETED
@@ -1 +0,0 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.HycUILib={},e.Vue))})(this,(function(e,n){"use strict";const u={type:{type:String,default:"primary"},disabled:{type:Boolean,default:!1}},a=["disabled"],l=((t,o)=>{const s=t.__vccOpts||t;for(const[c,d]of o)s[c]=d;return s})(n.defineComponent({__name:"Button",props:u,emits:["click"],setup(t,{emit:o}){const s=t,c=o;function d(i){s.disabled||c("click",i)}return(i,k)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["hyc-button",[`hyc-button--${i.type}`,{"hyc-button--disabled":i.disabled}]]),disabled:i.disabled,onClick:d},[n.renderSlot(i.$slots,"default",{},void 0,!0)],10,a))}}),[["__scopeId","data-v-6c0ad3e0"]]),f="Hyc";function p(t){const o={};return Object.entries(t).forEach(([s,c])=>{const d=`${f}${s}`;o[d]=c}),o}function m(t,o){Object.entries(o).forEach(([s,c])=>{t.component(s,c)})}const r=p({Button:l}),b=r.HycButton,y={install(t){m(t,r)}};e.Button=l,e.HycButton=b,e.buttonProps=u,e.default=y,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
File without changes
File without changes
File without changes
File without changes