@huntflow/ui 0.0.34 → 0.0.36
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/components/base-button/button.vue.d.ts +53 -0
- package/dist/components/base-button/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/ui.es.js +140 -88
- package/dist/ui.umd.js +2 -2
- package/package.json +11 -2
- package/dist/components/button/button.d.ts +0 -31
- package/dist/components/button/index.d.ts +0 -4
- /package/dist/components/{button → base-button}/types.d.ts +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BaseButtonSize, BaseButtonType, BaseButtonHTMLType } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
size?: BaseButtonSize | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
type?: BaseButtonType | undefined;
|
|
6
|
+
leftIcon?: import('vue').VNode | undefined;
|
|
7
|
+
rightIcon?: import('vue').VNode | undefined;
|
|
8
|
+
block?: boolean | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
loading?: boolean | undefined;
|
|
11
|
+
active?: boolean | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
circle?: boolean | undefined;
|
|
14
|
+
bordered?: boolean | undefined;
|
|
15
|
+
htmlType?: BaseButtonHTMLType | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
classList: import('vue').ComputedRef<(string | {
|
|
18
|
+
[x: string]: boolean | undefined;
|
|
19
|
+
} | undefined)[]>;
|
|
20
|
+
handleClick: () => void;
|
|
21
|
+
styles: CSSModuleClasses;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<{
|
|
23
|
+
size?: BaseButtonSize | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
type?: BaseButtonType | undefined;
|
|
26
|
+
leftIcon?: import('vue').VNode | undefined;
|
|
27
|
+
rightIcon?: import('vue').VNode | undefined;
|
|
28
|
+
block?: boolean | undefined;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
loading?: boolean | undefined;
|
|
31
|
+
active?: boolean | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
circle?: boolean | undefined;
|
|
34
|
+
bordered?: boolean | undefined;
|
|
35
|
+
htmlType?: BaseButtonHTMLType | undefined;
|
|
36
|
+
}> & Readonly<{
|
|
37
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
name: string;
|
|
40
|
+
type: BaseButtonType;
|
|
41
|
+
size: BaseButtonSize;
|
|
42
|
+
className: string;
|
|
43
|
+
leftIcon: Record<string, any>;
|
|
44
|
+
rightIcon: Record<string, any>;
|
|
45
|
+
block: boolean;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
loading: boolean;
|
|
48
|
+
active: boolean;
|
|
49
|
+
circle: boolean;
|
|
50
|
+
bordered: boolean;
|
|
51
|
+
htmlType: BaseButtonHTMLType;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BaseButton } from './button';
|
|
2
|
-
export type {
|
|
1
|
+
export { BaseButton } from './base-button';
|
|
2
|
+
export type { BaseButtonType } from './base-button/types.ts';
|
package/dist/ui.es.js
CHANGED
|
@@ -1,100 +1,152 @@
|
|
|
1
1
|
(function(){"use strict";var r;try{if(typeof document<"u"){var o=document.createElement("style");o.nonce=(r=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:r.content,o.appendChild(document.createTextNode("._button_den84_1{position:relative;display:inline-flex;align-items:center;font-weight:500;justify-content:center;border:none;border-radius:var(--hf-button-border-radius);cursor:pointer;transition:background-color .3s,box-shadow .3s}._button_den84_1:focus{outline:none}._primary_den84_19{color:var(--hf-button-primary-text-color);border:1px solid var(--hf-button-primary-background-color);background-color:var(--hf-button-primary-background-color)}._primary_den84_19:hover{background-color:var(--hf-button-primary-hover-background-color)}._primary_den84_19:focus{box-shadow:0 0 0 3px var(--hf-button-primary-focus-color)}._primary_den84_19._bordered_den84_34{background-color:#fff;color:var(--hf-button-primary-background-color);border:1px solid var(--hf-button-primary-background-color)}._danger_den84_40{color:var(--hf-button-danger-text-color);background-color:var(--hf-button-danger-background-color)}._danger_den84_40:hover{background-color:var(--hf-button-danger-hover-background-color)}._danger_den84_40:focus{box-shadow:0 0 0 3px var(--hf-button-danger-focus-color)}._danger_den84_40._bordered_den84_34{background-color:#fff;color:var(--hf-button-danger-background-color);border:1px solid var(--hf-button-danger-background-color)}._default_den84_59{background-color:#fff;color:var(--hf-button-default-text-color);border:1px solid var(--hf-button-default-border-color)}._default_den84_59:hover{background-color:var(--hf-button-default-hover-background-color)}._default_den84_59:focus{box-shadow:0 0 0 3px var(--hf-button-default-focus-color)}._text_den84_73{background-color:#fff;color:#000}._link_den84_78{background-color:#fff;color:#007bff;text-decoration:underline}._block_den84_84{width:100%}._disabled_den84_88{background-color:#e9ecef;color:#6c757d;cursor:not-allowed}._loading_den84_94{cursor:wait}._circle_den84_98{border-radius:100%;padding:0!important}._bordered_den84_34{border:1px solid currentColor}._icon_den84_107{display:flex;align-items:center}._iconLeft_den84_112{margin-right:8px}._iconRight_den84_116{margin-left:8px}._xs_den84_120{padding:4px 8px;font-size:12px}._s_den84_125{padding:6px 12px;font-size:14px;line-height:20px}._m_den84_131{padding:6px 12px;font-size:15px;line-height:24px}._l_den84_78{padding:16px 32px;font-size:18px}._xl_den84_142{padding:20px 40px;font-size:20px}._spinner_den84_147{display:inline-block;position:absolute;right:0;left:0;margin:0 auto;width:16px;height:16px;border:2px solid rgba(0,0,0,.2);border-top-color:#007bff;border-radius:50%;animation:_spin_den84_147 .6s linear infinite}@keyframes _spin_den84_147{to{transform:rotate(360deg)}}")),document.head.appendChild(o)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
4
|
-
button:
|
|
5
|
-
primary:
|
|
6
|
-
bordered:
|
|
7
|
-
danger:
|
|
2
|
+
import { defineComponent as y, computed as m, openBlock as l, createElementBlock as s, normalizeClass as o, Fragment as g, renderSlot as a, createCommentVNode as c } from "vue";
|
|
3
|
+
const k = "_button_den84_1", p = "_primary_den84_19", h = "_bordered_den84_34", v = "_danger_den84_40", I = "_text_den84_73", L = "_link_den84_78", $ = "_block_den84_84", C = "_disabled_den84_88", E = "_loading_den84_94", R = "_circle_den84_98", N = "_icon_den84_107", S = "_iconLeft_den84_112", U = "_iconRight_den84_116", A = "_xs_den84_120", O = "_s_den84_125", T = "_m_den84_131", q = "_l_den84_78", D = "_xl_den84_142", F = "_spinner_den84_147", M = "_spin_den84_147", n = {
|
|
4
|
+
button: k,
|
|
5
|
+
primary: p,
|
|
6
|
+
bordered: h,
|
|
7
|
+
danger: v,
|
|
8
8
|
default: "_default_den84_59",
|
|
9
|
-
text:
|
|
10
|
-
link:
|
|
11
|
-
block:
|
|
12
|
-
disabled:
|
|
13
|
-
loading:
|
|
14
|
-
circle:
|
|
15
|
-
icon:
|
|
16
|
-
iconLeft:
|
|
17
|
-
iconRight:
|
|
18
|
-
xs:
|
|
19
|
-
s:
|
|
20
|
-
m:
|
|
21
|
-
l:
|
|
22
|
-
xl:
|
|
23
|
-
spinner:
|
|
24
|
-
spin:
|
|
9
|
+
text: I,
|
|
10
|
+
link: L,
|
|
11
|
+
block: $,
|
|
12
|
+
disabled: C,
|
|
13
|
+
loading: E,
|
|
14
|
+
circle: R,
|
|
15
|
+
icon: N,
|
|
16
|
+
iconLeft: S,
|
|
17
|
+
iconRight: U,
|
|
18
|
+
xs: A,
|
|
19
|
+
s: O,
|
|
20
|
+
m: T,
|
|
21
|
+
l: q,
|
|
22
|
+
xl: D,
|
|
23
|
+
spinner: F,
|
|
24
|
+
spin: M
|
|
25
25
|
};
|
|
26
|
-
var
|
|
27
|
-
const
|
|
26
|
+
var r = /* @__PURE__ */ ((e) => (e.XS = "xs", e.S = "s", e.M = "m", e.L = "l", e.XL = "xl", e))(r || {}), _ = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.DANGER = "danger", e.DEFAULT = "default", e.TEXT = "text", e.LINK = "link", e))(_ || {}), u = /* @__PURE__ */ ((e) => (e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e))(u || {});
|
|
27
|
+
const X = y({
|
|
28
28
|
name: "BaseButton",
|
|
29
|
-
__name: "button",
|
|
30
29
|
props: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
name: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: !1,
|
|
33
|
+
default: void 0
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: r.M
|
|
38
|
+
},
|
|
39
|
+
className: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: !1,
|
|
42
|
+
default: void 0
|
|
43
|
+
},
|
|
44
|
+
type: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: _.DEFAULT
|
|
47
|
+
},
|
|
48
|
+
leftIcon: {
|
|
49
|
+
type: Object,
|
|
50
|
+
required: !1,
|
|
51
|
+
default: void 0
|
|
52
|
+
},
|
|
53
|
+
rightIcon: {
|
|
54
|
+
type: Object,
|
|
55
|
+
required: !1,
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
block: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !1
|
|
65
|
+
},
|
|
66
|
+
loading: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
active: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !1
|
|
73
|
+
},
|
|
74
|
+
circle: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
},
|
|
78
|
+
bordered: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
htmlType: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: u.BUTTON
|
|
85
|
+
}
|
|
44
86
|
},
|
|
45
87
|
emits: ["click"],
|
|
46
|
-
setup(e, { emit:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
88
|
+
setup(e, { emit: t }) {
|
|
89
|
+
return {
|
|
90
|
+
classList: m(() => [
|
|
91
|
+
n.button,
|
|
92
|
+
n[e.size || r.M],
|
|
93
|
+
n[e.type || _.DEFAULT],
|
|
94
|
+
{
|
|
95
|
+
[n.block]: e.block,
|
|
96
|
+
[n.disabled]: e.disabled || e.loading,
|
|
97
|
+
[n.loading]: e.loading,
|
|
98
|
+
[n.active]: e.active,
|
|
99
|
+
[n.circle]: e.circle,
|
|
100
|
+
[n.bordered]: e.bordered
|
|
101
|
+
},
|
|
102
|
+
e.className
|
|
103
|
+
]),
|
|
104
|
+
handleClick: () => {
|
|
105
|
+
t("click");
|
|
58
106
|
},
|
|
59
|
-
n
|
|
60
|
-
|
|
61
|
-
return (i, _) => (t(), s("button", {
|
|
62
|
-
name: n.name,
|
|
63
|
-
class: l(g.value),
|
|
64
|
-
type: n.htmlType,
|
|
65
|
-
disabled: n.disabled || n.loading,
|
|
66
|
-
onClick: _[0] || (_[0] = () => b("click"))
|
|
67
|
-
}, [
|
|
68
|
-
n.loading ? (t(), s("span", {
|
|
69
|
-
key: 0,
|
|
70
|
-
class: l(c(o).spinner)
|
|
71
|
-
}, null, 2)) : (t(), s(y, { key: 1 }, [
|
|
72
|
-
n.leftIcon ? (t(), s("span", {
|
|
73
|
-
key: 0,
|
|
74
|
-
class: l([c(o).icon, c(o).iconLeft])
|
|
75
|
-
}, [
|
|
76
|
-
d(i.$slots, "leftIcon", {
|
|
77
|
-
icon: n.leftIcon
|
|
78
|
-
})
|
|
79
|
-
], 2)) : r("", !0),
|
|
80
|
-
i.$slots.default ? (t(), s("span", {
|
|
81
|
-
key: 1,
|
|
82
|
-
class: l(c(o).content)
|
|
83
|
-
}, [
|
|
84
|
-
d(i.$slots, "default")
|
|
85
|
-
], 2)) : r("", !0),
|
|
86
|
-
n.rightIcon ? (t(), s("span", {
|
|
87
|
-
key: 2,
|
|
88
|
-
class: l([c(o).icon, c(o).iconRight])
|
|
89
|
-
}, [
|
|
90
|
-
d(i.$slots, "rightIcon", {
|
|
91
|
-
icon: n.rightIcon
|
|
92
|
-
})
|
|
93
|
-
], 2)) : r("", !0)
|
|
94
|
-
], 64))
|
|
95
|
-
], 10, P));
|
|
107
|
+
styles: n
|
|
108
|
+
};
|
|
96
109
|
}
|
|
97
|
-
})
|
|
110
|
+
}), j = (e, t) => {
|
|
111
|
+
const d = e.__vccOpts || e;
|
|
112
|
+
for (const [i, f] of t)
|
|
113
|
+
d[i] = f;
|
|
114
|
+
return d;
|
|
115
|
+
}, G = ["name", "type", "disabled"];
|
|
116
|
+
function K(e, t, d, i, f, P) {
|
|
117
|
+
return l(), s("button", {
|
|
118
|
+
name: e.name,
|
|
119
|
+
class: o(e.classList),
|
|
120
|
+
type: e.htmlType,
|
|
121
|
+
disabled: e.disabled || e.loading,
|
|
122
|
+
onClick: t[0] || (t[0] = (...b) => e.handleClick && e.handleClick(...b))
|
|
123
|
+
}, [
|
|
124
|
+
e.loading ? (l(), s("span", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: o(e.styles.spinner)
|
|
127
|
+
}, null, 2)) : (l(), s(g, { key: 1 }, [
|
|
128
|
+
e.leftIcon ? (l(), s("span", {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: o([e.styles.icon, e.styles.iconLeft])
|
|
131
|
+
}, [
|
|
132
|
+
a(e.$slots, "leftIcon", { icon: e.leftIcon })
|
|
133
|
+
], 2)) : c("", !0),
|
|
134
|
+
e.$slots.default ? (l(), s("span", {
|
|
135
|
+
key: 1,
|
|
136
|
+
class: o(e.styles.content)
|
|
137
|
+
}, [
|
|
138
|
+
a(e.$slots, "default")
|
|
139
|
+
], 2)) : c("", !0),
|
|
140
|
+
e.rightIcon ? (l(), s("span", {
|
|
141
|
+
key: 2,
|
|
142
|
+
class: o([e.styles.icon, e.styles.iconRight])
|
|
143
|
+
}, [
|
|
144
|
+
a(e.$slots, "rightIcon", { icon: e.rightIcon })
|
|
145
|
+
], 2)) : c("", !0)
|
|
146
|
+
], 64))
|
|
147
|
+
], 10, G);
|
|
148
|
+
}
|
|
149
|
+
const Y = /* @__PURE__ */ j(X, [["render", K]]);
|
|
98
150
|
export {
|
|
99
151
|
Y as BaseButton
|
|
100
152
|
};
|
package/dist/ui.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(
|
|
1
|
+
(function(r,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(r=typeof globalThis<"u"?globalThis:r||self,o(r.ui={},r.Vue))})(this,function(r,o){"use strict";var c=document.createElement("style");c.textContent=`._button_den84_1{position:relative;display:inline-flex;align-items:center;font-weight:500;justify-content:center;border:none;border-radius:var(--hf-button-border-radius);cursor:pointer;transition:background-color .3s,box-shadow .3s}._button_den84_1:focus{outline:none}._primary_den84_19{color:var(--hf-button-primary-text-color);border:1px solid var(--hf-button-primary-background-color);background-color:var(--hf-button-primary-background-color)}._primary_den84_19:hover{background-color:var(--hf-button-primary-hover-background-color)}._primary_den84_19:focus{box-shadow:0 0 0 3px var(--hf-button-primary-focus-color)}._primary_den84_19._bordered_den84_34{background-color:#fff;color:var(--hf-button-primary-background-color);border:1px solid var(--hf-button-primary-background-color)}._danger_den84_40{color:var(--hf-button-danger-text-color);background-color:var(--hf-button-danger-background-color)}._danger_den84_40:hover{background-color:var(--hf-button-danger-hover-background-color)}._danger_den84_40:focus{box-shadow:0 0 0 3px var(--hf-button-danger-focus-color)}._danger_den84_40._bordered_den84_34{background-color:#fff;color:var(--hf-button-danger-background-color);border:1px solid var(--hf-button-danger-background-color)}._default_den84_59{background-color:#fff;color:var(--hf-button-default-text-color);border:1px solid var(--hf-button-default-border-color)}._default_den84_59:hover{background-color:var(--hf-button-default-hover-background-color)}._default_den84_59:focus{box-shadow:0 0 0 3px var(--hf-button-default-focus-color)}._text_den84_73{background-color:#fff;color:#000}._link_den84_78{background-color:#fff;color:#007bff;text-decoration:underline}._block_den84_84{width:100%}._disabled_den84_88{background-color:#e9ecef;color:#6c757d;cursor:not-allowed}._loading_den84_94{cursor:wait}._circle_den84_98{border-radius:100%;padding:0!important}._bordered_den84_34{border:1px solid currentColor}._icon_den84_107{display:flex;align-items:center}._iconLeft_den84_112{margin-right:8px}._iconRight_den84_116{margin-left:8px}._xs_den84_120{padding:4px 8px;font-size:12px}._s_den84_125{padding:6px 12px;font-size:14px;line-height:20px}._m_den84_131{padding:6px 12px;font-size:15px;line-height:24px}._l_den84_78{padding:16px 32px;font-size:18px}._xl_den84_142{padding:20px 40px;font-size:20px}._spinner_den84_147{display:inline-block;position:absolute;right:0;left:0;margin:0 auto;width:16px;height:16px;border:2px solid rgba(0,0,0,.2);border-top-color:#007bff;border-radius:50%;animation:_spin_den84_147 .6s linear infinite}@keyframes _spin_den84_147{to{transform:rotate(360deg)}}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(c);const n={button:"_button_den84_1",primary:"_primary_den84_19",bordered:"_bordered_den84_34",danger:"_danger_den84_40",default:"_default_den84_59",text:"_text_den84_73",link:"_link_den84_78",block:"_block_den84_84",disabled:"_disabled_den84_88",loading:"_loading_den84_94",circle:"_circle_den84_98",icon:"_icon_den84_107",iconLeft:"_iconLeft_den84_112",iconRight:"_iconRight_den84_116",xs:"_xs_den84_120",s:"_s_den84_125",m:"_m_den84_131",l:"_l_den84_78",xl:"_xl_den84_142",spinner:"_spinner_den84_147",spin:"_spin_den84_147"};var l=(e=>(e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e))(l||{}),a=(e=>(e.PRIMARY="primary",e.DANGER="danger",e.DEFAULT="default",e.TEXT="text",e.LINK="link",e))(a||{}),s=(e=>(e.SUBMIT="submit",e.BUTTON="button",e.RESET="reset",e))(s||{});const f=o.defineComponent({name:"BaseButton",props:{name:{type:String,required:!1,default:void 0},size:{type:String,default:l.M},className:{type:String,required:!1,default:void 0},type:{type:String,default:a.DEFAULT},leftIcon:{type:Object,required:!1,default:void 0},rightIcon:{type:Object,required:!1,default:void 0},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},htmlType:{type:String,default:s.BUTTON}},emits:["click"],setup(e,{emit:t}){return{classList:o.computed(()=>[n.button,n[e.size||l.M],n[e.type||a.DEFAULT],{[n.block]:e.block,[n.disabled]:e.disabled||e.loading,[n.loading]:e.loading,[n.active]:e.active,[n.circle]:e.circle,[n.bordered]:e.bordered},e.className]),handleClick:()=>{t("click")},styles:n}}}),b=(e,t)=>{const d=e.__vccOpts||e;for(const[i,_]of t)d[i]=_;return d},u=["name","type","disabled"];function p(e,t,d,i,_,A){return o.openBlock(),o.createElementBlock("button",{name:e.name,class:o.normalizeClass(e.classList),type:e.htmlType,disabled:e.disabled||e.loading,onClick:t[0]||(t[0]=(...m)=>e.handleClick&&e.handleClick(...m))},[e.loading?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.styles.spinner)},null,2)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.leftIcon?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.styles.icon,e.styles.iconLeft])},[o.renderSlot(e.$slots,"leftIcon",{icon:e.leftIcon})],2)):o.createCommentVNode("",!0),e.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(e.styles.content)},[o.renderSlot(e.$slots,"default")],2)):o.createCommentVNode("",!0),e.rightIcon?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass([e.styles.icon,e.styles.iconRight])},[o.renderSlot(e.$slots,"rightIcon",{icon:e.rightIcon})],2)):o.createCommentVNode("",!0)],64))],10,u)}const g=b(f,[["render",p]]);r.BaseButton=g,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
"name": "@huntflow/ui",
|
|
3
3
|
"description": "HuntFlow UiKit, icons, utils library",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
5
|
+
"version": "0.0.36",
|
|
7
6
|
"author": {
|
|
8
7
|
"name": "HuntFlow Developer",
|
|
9
8
|
"nickname": "developer",
|
|
@@ -13,6 +12,16 @@
|
|
|
13
12
|
"main": "./dist/ui.umd.js",
|
|
14
13
|
"module": "./dist/ui.es.js",
|
|
15
14
|
"typings": "./dist/index.d.ts",
|
|
15
|
+
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/ui.es.js",
|
|
20
|
+
"require": "./dist/ui.umd.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
|
|
16
25
|
"styles": "./dist/style.css",
|
|
17
26
|
"files": [
|
|
18
27
|
"dist",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseButtonProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
slots: {
|
|
4
|
-
leftIcon?(_: {
|
|
5
|
-
icon: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}>;
|
|
8
|
-
}): any;
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
rightIcon?(_: {
|
|
11
|
-
icon: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
attrs: Partial<{}>;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
-
click: () => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{
|
|
23
|
-
onClick?: (() => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
File without changes
|