@huntflow/ui 0.0.29 → 0.0.31
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/index.d.ts +2 -0
- package/dist/index.d.ts +1 -2
- package/dist/ui.es.js +49 -150
- package/dist/ui.umd.js +2 -2
- package/package.json +9 -9
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/input/input.d.ts +0 -28
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as BaseInput } from './components/input/input';
|
|
1
|
+
export * from './components';
|
package/dist/ui.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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)}}
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
4
|
-
button:
|
|
5
|
-
primary:
|
|
6
|
-
bordered:
|
|
7
|
-
danger:
|
|
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 k, computed as u, openBlock as t, createElementBlock as s, normalizeClass as l, unref as c, Fragment as y, renderSlot as d, createCommentVNode as r } from "vue";
|
|
3
|
+
const f = "_button_den84_1", h = "_primary_den84_19", x = "_bordered_den84_34", I = "_danger_den84_40", L = "_text_den84_73", R = "_link_den84_78", v = "_block_den84_84", E = "_disabled_den84_88", N = "_loading_den84_94", A = "_circle_den84_98", C = "_icon_den84_107", $ = "_iconLeft_den84_112", D = "_iconRight_den84_116", F = "_xs_den84_120", M = "_s_den84_125", X = "_m_den84_131", T = "_l_den84_78", U = "_xl_den84_142", G = "_spinner_den84_147", K = "_spin_den84_147", o = {
|
|
4
|
+
button: f,
|
|
5
|
+
primary: h,
|
|
6
|
+
bordered: x,
|
|
7
|
+
danger: I,
|
|
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: L,
|
|
10
|
+
link: R,
|
|
11
|
+
block: v,
|
|
12
|
+
disabled: E,
|
|
13
|
+
loading: N,
|
|
14
|
+
circle: A,
|
|
15
|
+
icon: C,
|
|
16
|
+
iconLeft: $,
|
|
17
|
+
iconRight: D,
|
|
18
|
+
xs: F,
|
|
19
|
+
s: M,
|
|
20
|
+
m: X,
|
|
21
|
+
l: T,
|
|
22
|
+
xl: U,
|
|
23
|
+
spinner: G,
|
|
24
|
+
spin: K
|
|
25
25
|
};
|
|
26
|
-
var
|
|
27
|
-
const
|
|
26
|
+
var a = /* @__PURE__ */ ((e) => (e.XS = "xs", e.S = "s", e.M = "m", e.L = "l", e.XL = "xl", e))(a || {}), p = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.DANGER = "danger", e.DEFAULT = "default", e.TEXT = "text", e.LINK = "link", e))(p || {});
|
|
27
|
+
const P = ["name", "type", "disabled"], Y = /* @__PURE__ */ k({
|
|
28
28
|
name: "BaseButton",
|
|
29
29
|
__name: "button",
|
|
30
30
|
props: {
|
|
@@ -43,11 +43,11 @@ const O = ["name", "type", "disabled"], ue = /* @__PURE__ */ y({
|
|
|
43
43
|
htmlType: {}
|
|
44
44
|
},
|
|
45
45
|
emits: ["click"],
|
|
46
|
-
setup(e, { emit:
|
|
47
|
-
const n = e, b =
|
|
46
|
+
setup(e, { emit: m }) {
|
|
47
|
+
const n = e, b = m, g = u(() => [
|
|
48
48
|
o.button,
|
|
49
|
-
o[n.size ||
|
|
50
|
-
o[n.type ||
|
|
49
|
+
o[n.size || a.M],
|
|
50
|
+
o[n.type || p.DEFAULT],
|
|
51
51
|
{
|
|
52
52
|
[o.block]: n.block,
|
|
53
53
|
[o.disabled]: n.disabled || n.loading,
|
|
@@ -58,144 +58,43 @@ const O = ["name", "type", "disabled"], ue = /* @__PURE__ */ y({
|
|
|
58
58
|
},
|
|
59
59
|
n.className
|
|
60
60
|
]);
|
|
61
|
-
return (
|
|
61
|
+
return (i, _) => (t(), s("button", {
|
|
62
62
|
name: n.name,
|
|
63
|
-
class: l(
|
|
63
|
+
class: l(g.value),
|
|
64
64
|
type: n.htmlType,
|
|
65
65
|
disabled: n.disabled || n.loading,
|
|
66
|
-
onClick:
|
|
66
|
+
onClick: _[0] || (_[0] = () => b("click"))
|
|
67
67
|
}, [
|
|
68
|
-
n.loading ? (
|
|
68
|
+
n.loading ? (t(), s("span", {
|
|
69
69
|
key: 0,
|
|
70
|
-
class: l(
|
|
71
|
-
}, null, 2)) : (
|
|
72
|
-
n.leftIcon ? (
|
|
70
|
+
class: l(c(o).spinner)
|
|
71
|
+
}, null, 2)) : (t(), s(y, { key: 1 }, [
|
|
72
|
+
n.leftIcon ? (t(), s("span", {
|
|
73
73
|
key: 0,
|
|
74
|
-
class: l([
|
|
74
|
+
class: l([c(o).icon, c(o).iconLeft])
|
|
75
75
|
}, [
|
|
76
|
-
|
|
76
|
+
d(i.$slots, "leftIcon", {
|
|
77
77
|
icon: n.leftIcon
|
|
78
78
|
})
|
|
79
|
-
], 2)) :
|
|
80
|
-
|
|
79
|
+
], 2)) : r("", !0),
|
|
80
|
+
i.$slots.default ? (t(), s("span", {
|
|
81
81
|
key: 1,
|
|
82
|
-
class: l(
|
|
82
|
+
class: l(c(o).content)
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
], 2)) :
|
|
86
|
-
n.rightIcon ? (
|
|
84
|
+
d(i.$slots, "default")
|
|
85
|
+
], 2)) : r("", !0),
|
|
86
|
+
n.rightIcon ? (t(), s("span", {
|
|
87
87
|
key: 2,
|
|
88
|
-
class: l([
|
|
88
|
+
class: l([c(o).icon, c(o).iconRight])
|
|
89
89
|
}, [
|
|
90
|
-
|
|
90
|
+
d(i.$slots, "rightIcon", {
|
|
91
91
|
icon: n.rightIcon
|
|
92
92
|
})
|
|
93
|
-
], 2)) :
|
|
93
|
+
], 2)) : r("", !0)
|
|
94
94
|
], 64))
|
|
95
|
-
], 10,
|
|
96
|
-
}
|
|
97
|
-
}), Q = "_wrapper_hww12_1", W = "_label_hww12_6", Z = "_container_hww12_12", S = "_input_hww12_18", z = "_xs_hww12_28", ee = "_s_hww12_33", ne = "_m_hww12_38", se = "_l_hww12_6", oe = "_xl_hww12_48", le = "_disabled_hww12_57", te = "_error_hww12_62", ae = "_prefix_hww12_72", re = "_suffix_hww12_73", ie = "_loading_hww12_88", de = "_spinner_hww12_92", ce = "_spin_hww12_92", a = {
|
|
98
|
-
wrapper: Q,
|
|
99
|
-
label: W,
|
|
100
|
-
container: Z,
|
|
101
|
-
input: S,
|
|
102
|
-
xs: z,
|
|
103
|
-
s: ee,
|
|
104
|
-
m: ne,
|
|
105
|
-
l: se,
|
|
106
|
-
xl: oe,
|
|
107
|
-
disabled: le,
|
|
108
|
-
error: te,
|
|
109
|
-
prefix: ae,
|
|
110
|
-
suffix: re,
|
|
111
|
-
loading: ie,
|
|
112
|
-
spinner: de,
|
|
113
|
-
spin: ce
|
|
114
|
-
};
|
|
115
|
-
var v = /* @__PURE__ */ ((e) => (e.XS = "xs", e.S = "s", e.M = "m", e.L = "l", e.XL = "xl", e))(v || {});
|
|
116
|
-
const _e = ["for"], pe = ["id", "value", "name", "type", "disabled", "placeholder"], be = /* @__PURE__ */ y({
|
|
117
|
-
name: "BaseInput",
|
|
118
|
-
__name: "input",
|
|
119
|
-
props: /* @__PURE__ */ w({
|
|
120
|
-
value: {},
|
|
121
|
-
type: {},
|
|
122
|
-
id: {},
|
|
123
|
-
name: {},
|
|
124
|
-
disabled: { type: Boolean },
|
|
125
|
-
label: {},
|
|
126
|
-
placeholder: {},
|
|
127
|
-
loading: { type: Boolean },
|
|
128
|
-
error: {},
|
|
129
|
-
size: {},
|
|
130
|
-
className: {}
|
|
131
|
-
}, {
|
|
132
|
-
modelValue: {},
|
|
133
|
-
modelModifiers: {}
|
|
134
|
-
}),
|
|
135
|
-
emits: /* @__PURE__ */ w(["update:modelValue", "enter"], ["update:modelValue"]),
|
|
136
|
-
setup(e, { emit: u }) {
|
|
137
|
-
const n = e, b = M(e, "modelValue"), p = u, c = (s) => {
|
|
138
|
-
const f = s.target;
|
|
139
|
-
p("update:modelValue", f.value);
|
|
140
|
-
}, m = (s) => {
|
|
141
|
-
s.key === "Enter" && p("enter");
|
|
142
|
-
}, L = k(() => [
|
|
143
|
-
a.input,
|
|
144
|
-
a[n.size || v.M],
|
|
145
|
-
{
|
|
146
|
-
[a.disabled]: n.disabled,
|
|
147
|
-
[a.error]: n.error,
|
|
148
|
-
[a.loading]: n.loading
|
|
149
|
-
},
|
|
150
|
-
n.className
|
|
151
|
-
]);
|
|
152
|
-
return (s, f) => (r(), i("div", {
|
|
153
|
-
class: l(t(a).wrapper)
|
|
154
|
-
}, [
|
|
155
|
-
s.label ? (r(), i("label", {
|
|
156
|
-
key: 0,
|
|
157
|
-
for: s.id,
|
|
158
|
-
class: l(t(a).label)
|
|
159
|
-
}, g(s.label), 11, _e)) : d("", !0),
|
|
160
|
-
h("div", {
|
|
161
|
-
class: l(t(a).container)
|
|
162
|
-
}, [
|
|
163
|
-
s.$slots.prefix ? (r(), i("span", {
|
|
164
|
-
key: 0,
|
|
165
|
-
class: l(t(a).prefix)
|
|
166
|
-
}, [
|
|
167
|
-
_(s.$slots, "prefix")
|
|
168
|
-
], 2)) : d("", !0),
|
|
169
|
-
h("input", {
|
|
170
|
-
id: s.id,
|
|
171
|
-
value: b.value,
|
|
172
|
-
name: s.name,
|
|
173
|
-
type: s.type || "text",
|
|
174
|
-
disabled: s.disabled || s.loading,
|
|
175
|
-
placeholder: s.placeholder,
|
|
176
|
-
class: l(L.value),
|
|
177
|
-
onInput: c,
|
|
178
|
-
onKeydown: m
|
|
179
|
-
}, null, 42, pe),
|
|
180
|
-
s.$slots.suffix ? (r(), i("span", {
|
|
181
|
-
key: 1,
|
|
182
|
-
class: l(t(a).suffix)
|
|
183
|
-
}, [
|
|
184
|
-
_(s.$slots, "suffix")
|
|
185
|
-
], 2)) : d("", !0),
|
|
186
|
-
s.loading ? (r(), i("span", {
|
|
187
|
-
key: 2,
|
|
188
|
-
class: l(t(a).spinner)
|
|
189
|
-
}, null, 2)) : d("", !0)
|
|
190
|
-
], 2),
|
|
191
|
-
s.error ? (r(), i("p", {
|
|
192
|
-
key: 1,
|
|
193
|
-
class: l(t(a).error)
|
|
194
|
-
}, g(s.error), 3)) : d("", !0)
|
|
195
|
-
], 2));
|
|
95
|
+
], 10, P));
|
|
196
96
|
}
|
|
197
97
|
});
|
|
198
98
|
export {
|
|
199
|
-
|
|
200
|
-
be as BaseInput
|
|
99
|
+
Y as BaseButton
|
|
201
100
|
};
|
package/dist/ui.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(
|
|
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.ui={},t.Vue))})(this,function(t,o){"use strict";var l=document.createElement("style");l.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(l);const e={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 c=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(c||{}),i=(r=>(r.PRIMARY="primary",r.DANGER="danger",r.DEFAULT="default",r.TEXT="text",r.LINK="link",r))(i||{});const _=["name","type","disabled"],s=o.defineComponent({name:"BaseButton",__name:"button",props:{size:{},className:{},type:{},leftIcon:{},rightIcon:{},block:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},active:{type:Boolean},name:{},circle:{type:Boolean},bordered:{type:Boolean},htmlType:{}},emits:["click"],setup(r,{emit:p}){const n=r,b=p,f=o.computed(()=>[e.button,e[n.size||c.M],e[n.type||i.DEFAULT],{[e.block]:n.block,[e.disabled]:n.disabled||n.loading,[e.loading]:n.loading,[e.active]:n.active,[e.circle]:n.circle,[e.bordered]:n.bordered},n.className]);return(d,a)=>(o.openBlock(),o.createElementBlock("button",{name:n.name,class:o.normalizeClass(f.value),type:n.htmlType,disabled:n.disabled||n.loading,onClick:a[0]||(a[0]=()=>b("click"))},[n.loading?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(e).spinner)},null,2)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.leftIcon?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([o.unref(e).icon,o.unref(e).iconLeft])},[o.renderSlot(d.$slots,"leftIcon",{icon:n.leftIcon})],2)):o.createCommentVNode("",!0),d.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(o.unref(e).content)},[o.renderSlot(d.$slots,"default")],2)):o.createCommentVNode("",!0),n.rightIcon?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass([o.unref(e).icon,o.unref(e).iconRight])},[o.renderSlot(d.$slots,"rightIcon",{icon:n.rightIcon})],2)):o.createCommentVNode("",!0)],64))],10,_))}});t.BaseButton=s,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@huntflow/ui",
|
|
3
3
|
"description": "HuntFlow UiKit, icons, utils library",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.31",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "HuntFlow Developer",
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"email": "developer@huntflow.ru",
|
|
11
11
|
"github": "https://github.com/huntflow/uikit"
|
|
12
12
|
},
|
|
13
|
+
"main": "./dist/ui.umd.js",
|
|
14
|
+
"module": "./dist/ui.es.js",
|
|
15
|
+
"typings": "./dist/index.d.ts",
|
|
16
|
+
"styles": "./dist/style.css",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"dist/index.d.ts"
|
|
20
|
+
],
|
|
13
21
|
"scripts": {
|
|
14
22
|
"dev": "vite",
|
|
15
23
|
"build": "vue-tsc -b && vite build",
|
|
@@ -21,14 +29,6 @@
|
|
|
21
29
|
"publishConfig": {
|
|
22
30
|
"access": "public"
|
|
23
31
|
},
|
|
24
|
-
"type": "module",
|
|
25
|
-
"main": "./dist/ui.umd.js",
|
|
26
|
-
"module": "./dist/ui.es.js",
|
|
27
|
-
"typings": "./dist/index.d.ts",
|
|
28
|
-
"styles": "./dist/style.css",
|
|
29
|
-
"files": [
|
|
30
|
-
"dist"
|
|
31
|
-
],
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"import": "./dist/ui.es.js",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseInputProps } from './types.ts';
|
|
2
|
-
declare let __VLS_typeProps: BaseInputProps;
|
|
3
|
-
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?: string;
|
|
5
|
-
} & typeof __VLS_typeProps;
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
slots: {
|
|
8
|
-
prefix?(_: {}): any;
|
|
9
|
-
suffix?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {};
|
|
12
|
-
attrs: Partial<{}>;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (...args: any[]) => void;
|
|
17
|
-
enter: (...args: any[]) => void;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
onEnter?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|