song-element 1.0.0
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/es/Button-Mjv8fIfK.js +67 -0
- package/dist/es/Icon-5ZgOmnrF.js +59 -0
- package/dist/es/index.js +13 -0
- package/dist/es/utils-bZk4Ooq-.js +12 -0
- package/dist/es/vendor-Bq_vo3kL.js +761 -0
- package/dist/index.css +1 -0
- package/dist/types/components/Button/Button.vue.d.ts +39 -0
- package/dist/types/components/Button/index.d.ts +148 -0
- package/dist/types/components/Button/types.d.ts +19 -0
- package/dist/types/components/Icon/Icon.vue.d.ts +13 -0
- package/dist/types/components/Icon/index.d.ts +245 -0
- package/dist/types/components/Icon/types.d.ts +29 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/core/index.d.ts +4 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/install.d.ts +6 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.umd.cjs +565 -0
- package/package.json +53 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { w as y } from "./utils-bZk4Ooq-.js";
|
|
2
|
+
import { defineComponent as f, useSlots as g, ref as m, computed as b, openBlock as a, createBlock as i, resolveDynamicComponent as B, normalizeClass as v, withCtx as z, renderSlot as l, createVNode as S, normalizeStyle as s, createCommentVNode as c } from "vue";
|
|
3
|
+
import { I as d, _ as x } from "./Icon-5ZgOmnrF.js";
|
|
4
|
+
const I = /* @__PURE__ */ f({
|
|
5
|
+
name: "SongButton",
|
|
6
|
+
__name: "Button",
|
|
7
|
+
props: {
|
|
8
|
+
tag: { default: "button" },
|
|
9
|
+
type: {},
|
|
10
|
+
size: {},
|
|
11
|
+
nativeType: { default: "button" },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
loading: { type: Boolean },
|
|
14
|
+
loadingIcon: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
circle: { type: Boolean },
|
|
17
|
+
plain: { type: Boolean },
|
|
18
|
+
round: { type: Boolean },
|
|
19
|
+
autofocus: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
setup(e, { expose: u }) {
|
|
22
|
+
const r = g(), t = m(), n = b(() => ({
|
|
23
|
+
marginRight: r.loading ? "6px" : void 0
|
|
24
|
+
}));
|
|
25
|
+
return u({
|
|
26
|
+
ref: t
|
|
27
|
+
}), (o, C) => (a(), i(B(e.tag), {
|
|
28
|
+
ref_key: "_ref",
|
|
29
|
+
ref: t,
|
|
30
|
+
class: v(["song-button", {
|
|
31
|
+
[`song-button--${e.type}`]: e.type,
|
|
32
|
+
[`song-button--${e.size}`]: e.size,
|
|
33
|
+
"is-plain": e.plain,
|
|
34
|
+
"is-round": e.round,
|
|
35
|
+
"is-circle": e.circle,
|
|
36
|
+
"is-disabled": e.disabled,
|
|
37
|
+
"is-loading": e.loading
|
|
38
|
+
}]),
|
|
39
|
+
autofocus: e.autofocus,
|
|
40
|
+
type: e.tag === "button" ? e.nativeType : void 0,
|
|
41
|
+
disabled: e.disabled || e.loading ? !0 : void 0
|
|
42
|
+
}, {
|
|
43
|
+
default: z(() => [
|
|
44
|
+
e.loading ? l(o.$slots, "loading", { key: 0 }, () => [
|
|
45
|
+
S(d, {
|
|
46
|
+
class: "loading-icon",
|
|
47
|
+
icon: e.loadingIcon || "spinner",
|
|
48
|
+
style: s(n.value),
|
|
49
|
+
size: "1x",
|
|
50
|
+
spin: ""
|
|
51
|
+
}, null, 8, ["icon", "style"])
|
|
52
|
+
], !0) : c("", !0),
|
|
53
|
+
e.icon && !e.loading ? (a(), i(d, {
|
|
54
|
+
key: 1,
|
|
55
|
+
icon: e.icon,
|
|
56
|
+
style: s(n.value),
|
|
57
|
+
size: "1x"
|
|
58
|
+
}, null, 8, ["icon", "style"])) : c("", !0),
|
|
59
|
+
l(o.$slots, "default", {}, void 0, !0)
|
|
60
|
+
]),
|
|
61
|
+
_: 3
|
|
62
|
+
}, 8, ["autofocus", "type", "disabled", "class"]));
|
|
63
|
+
}
|
|
64
|
+
}), k = /* @__PURE__ */ x(I, [["__scopeId", "data-v-2297e1f8"]]), N = y(k);
|
|
65
|
+
export {
|
|
66
|
+
N as S
|
|
67
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { w as s } from "./utils-bZk4Ooq-.js";
|
|
2
|
+
import { defineComponent as l, computed as r, openBlock as p, createElementBlock as c, mergeProps as i, createVNode as y, unref as m, normalizeProps as u, guardReactiveProps as B } from "vue";
|
|
3
|
+
import { FontAwesomeIcon as f } from "@fortawesome/vue-fontawesome";
|
|
4
|
+
import { o as d } from "./vendor-Bq_vo3kL.js";
|
|
5
|
+
const v = /* @__PURE__ */ l({
|
|
6
|
+
name: "SongIcon",
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "Icon",
|
|
9
|
+
props: {
|
|
10
|
+
border: { type: Boolean },
|
|
11
|
+
fixedWidth: { type: Boolean },
|
|
12
|
+
flip: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
mask: {},
|
|
15
|
+
listItem: { type: Boolean },
|
|
16
|
+
pull: {},
|
|
17
|
+
pulse: { type: Boolean },
|
|
18
|
+
rotation: {},
|
|
19
|
+
swapOpacity: { type: Boolean },
|
|
20
|
+
size: {},
|
|
21
|
+
spin: { type: Boolean },
|
|
22
|
+
transform: {},
|
|
23
|
+
symbol: { type: [Boolean, String] },
|
|
24
|
+
title: {},
|
|
25
|
+
inverse: { type: Boolean },
|
|
26
|
+
bounce: { type: Boolean },
|
|
27
|
+
shake: { type: Boolean },
|
|
28
|
+
beat: { type: Boolean },
|
|
29
|
+
fade: { type: Boolean },
|
|
30
|
+
beatFade: { type: Boolean },
|
|
31
|
+
spinPulse: { type: Boolean },
|
|
32
|
+
spinReverse: { type: Boolean },
|
|
33
|
+
type: {},
|
|
34
|
+
color: {}
|
|
35
|
+
},
|
|
36
|
+
setup(o) {
|
|
37
|
+
const e = o, t = r(() => d(e, ["type", "color"])), n = r(() => ({
|
|
38
|
+
color: e.color || void 0
|
|
39
|
+
}));
|
|
40
|
+
return (a, _) => (p(), c("i", i({
|
|
41
|
+
class: ["song-icon", {
|
|
42
|
+
[`song-icon--${o.type}`]: o.type
|
|
43
|
+
}],
|
|
44
|
+
style: n.value
|
|
45
|
+
}, a.$attrs), [
|
|
46
|
+
y(m(f), u(B(t.value)), null, 16)
|
|
47
|
+
], 16));
|
|
48
|
+
}
|
|
49
|
+
}), I = (o, e) => {
|
|
50
|
+
const t = o.__vccOpts || o;
|
|
51
|
+
for (const [n, a] of e)
|
|
52
|
+
t[n] = a;
|
|
53
|
+
return t;
|
|
54
|
+
}, g = /* @__PURE__ */ I(v, [["__scopeId", "data-v-f6d808cc"]]), S = s(g);
|
|
55
|
+
export {
|
|
56
|
+
g as I,
|
|
57
|
+
S,
|
|
58
|
+
I as _
|
|
59
|
+
};
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { library as o } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
import { fas as t } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import { m } from "./utils-bZk4Ooq-.js";
|
|
4
|
+
import { S as r } from "./Button-Mjv8fIfK.js";
|
|
5
|
+
import { S as a } from "./Icon-5ZgOmnrF.js";
|
|
6
|
+
const n = [r, a];
|
|
7
|
+
o.add(t);
|
|
8
|
+
const c = m(n);
|
|
9
|
+
export {
|
|
10
|
+
r as SongButton,
|
|
11
|
+
a as SongIcon,
|
|
12
|
+
c as default
|
|
13
|
+
};
|