@can2421/ui 0.0.8 → 0.0.9

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,6 +1,69 @@
1
- export * from './ui/src/index'
2
- export {}
3
- import HycUILib from './ui/src/index'
4
- export default HycUILib
5
- export * from './ui/src/index'
6
- export {}
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;
package/dist/index.umd.js CHANGED
@@ -1,2 +1 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.HycUILib={},t.Vue))})(this,(function(t,e){"use strict";var d=document.createElement("style");d.textContent=`.hyc-button{padding:8px 16px;border-radius:4px;border:none;cursor:pointer;font-size:14px;transition:all .3s}.hyc-button--primary{background-color:#1890ff;color:#fff}.hyc-button--secondary{background-color:#f5f5f5;color:#333}.hyc-button--text{background-color:transparent;color:#1890ff}.hyc-button--disabled{opacity:.6;cursor:not-allowed}
2
- /*$vite$:1*/`,document.head.appendChild(d);const l={type:{type:String,default:"primary"},disabled:{type:Boolean,default:!1}},f=["disabled"],u=e.defineComponent({__name:"Button",props:l,emits:["click"],setup(n,{emit:o}){const i=n,s=o;function r(c){i.disabled||s("click",c)}return(c,k)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["hyc-button",[`hyc-button--${c.type}`,{"hyc-button--disabled":c.disabled}]]),disabled:c.disabled,onClick:r},[e.renderSlot(c.$slots,"default")],10,f))}}),p="Hyc";function b(n){const o={};return Object.entries(n).forEach(([i,s])=>{const r=`${p}${i}`;o[r]=s}),o}function y(n,o){Object.entries(o).forEach(([i,s])=>{n.component(i,s)})}const a=b({Button:u}),m=a.HycButton,h={install(n){y(n,a)}};t.Button=u,t.HycButton=m,t.buttonProps=l,t.default=h,Object.defineProperties(t,{__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.HycUILib={},e.Vue))})(this,(function(e,t){"use strict";const l={type:{type:String,default:"primary"},disabled:{type:Boolean,default:!1}},r=["disabled"],u=t.defineComponent({__name:"Button",props:l,emits:["click"],setup(n,{emit:o}){const s=n,c=o;function d(i){s.disabled||c("click",i)}return(i,B)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["hyc-button",[`hyc-button--${i.type}`,{"hyc-button--disabled":i.disabled}]]),disabled:i.disabled,onClick:d},[t.renderSlot(i.$slots,"default")],10,r))}}),a="Hyc";function p(n){const o={};return Object.entries(n).forEach(([s,c])=>{const d=`${a}${s}`;o[d]=c}),o}function b(n,o){Object.entries(o).forEach(([s,c])=>{n.component(s,c)})}const f=p({Button:u}),m=f.HycButton,y={install(n){b(n,f)}};e.Button=u,e.HycButton=m,e.buttonProps=l,e.default=y,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",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -1,2 +0,0 @@
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
@@ -1,2 +0,0 @@
1
- declare const router: any;
2
- export default router;
@@ -1,2 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
@@ -1,69 +0,0 @@
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,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
File without changes
File without changes
File without changes