@maltjoy/core-vue 5.11.0-next → 5.11.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/LICENSE +21 -0
- package/dist/core-vue.js +13 -28
- package/dist/core-vue.umd.cjs +1 -1
- package/dist/joy-core-vue-manifest.json +4 -4
- package/dist/stories/tokens/tokens.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +29 -30
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 maltcommunity / apps
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/core-vue.js
CHANGED
|
@@ -521,7 +521,7 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
|
|
|
521
521
|
n.value ? (c(), v("span", an, J(e.number && e.number > 99 ? "99+" : e.number), 1)) : j("", !0)
|
|
522
522
|
], 2));
|
|
523
523
|
}
|
|
524
|
-
}), _t = /* @__PURE__ */ B(rn, [["__scopeId", "data-v-
|
|
524
|
+
}), _t = /* @__PURE__ */ B(rn, [["__scopeId", "data-v-eee85230"]]), sn = /* @__PURE__ */ A({
|
|
525
525
|
__name: "VJoyBadge",
|
|
526
526
|
props: {
|
|
527
527
|
/**
|
|
@@ -812,22 +812,9 @@ const cn = { class: "joy-badge-level" }, dn = {
|
|
|
812
812
|
}
|
|
813
813
|
},
|
|
814
814
|
setup(e, { expose: t }) {
|
|
815
|
-
const n = e, l = we(), o = Oe() + "--JoyButton", i = C(() =>
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
return "xxsmall";
|
|
819
|
-
case "xsmall":
|
|
820
|
-
return "xxsmall";
|
|
821
|
-
case "small":
|
|
822
|
-
return "xsmall";
|
|
823
|
-
case "medium":
|
|
824
|
-
return "xsmall";
|
|
825
|
-
default:
|
|
826
|
-
return "small";
|
|
827
|
-
}
|
|
828
|
-
}), a = C(() => ["ghost", "secondary"].includes(n.variant) ? "teal" : "white");
|
|
829
|
-
return t({ generatedId: o }), (r, s) => {
|
|
830
|
-
const u = ut("joy-ripple");
|
|
815
|
+
const n = e, l = we(), o = Oe() + "--JoyButton", i = C(() => ["ghost", "secondary"].includes(n.variant) ? "teal" : "white");
|
|
816
|
+
return t({ generatedId: o }), (a, r) => {
|
|
817
|
+
const s = ut("joy-ripple");
|
|
831
818
|
return Ke((c(), V(Z(D(l).href ? "a" : "button"), {
|
|
832
819
|
id: e.id,
|
|
833
820
|
disabled: e.loading || D(l).disabled,
|
|
@@ -842,25 +829,24 @@ const cn = { class: "joy-badge-level" }, dn = {
|
|
|
842
829
|
"joy-button_full": e.full
|
|
843
830
|
}
|
|
844
831
|
]),
|
|
845
|
-
"aria-labelledby": (
|
|
832
|
+
"aria-labelledby": (a.$slots.default || e.label) && o
|
|
846
833
|
}, {
|
|
847
834
|
default: z(() => [
|
|
848
835
|
e.icon && e.iconPosition === "left" ? (c(), V(q, {
|
|
849
836
|
key: 0,
|
|
850
837
|
class: "joy-button_icon joy-button_icon--left",
|
|
851
838
|
name: e.icon,
|
|
852
|
-
size: i.value,
|
|
853
839
|
"aria-hidden": "true"
|
|
854
|
-
}, null, 8, ["name"
|
|
840
|
+
}, null, 8, ["name"])) : j("", !0),
|
|
855
841
|
e.loading ? (c(), V(Ht, {
|
|
856
842
|
key: 1,
|
|
857
|
-
color:
|
|
843
|
+
color: i.value
|
|
858
844
|
}, null, 8, ["color"])) : j("", !0),
|
|
859
845
|
h("span", {
|
|
860
846
|
id: o,
|
|
861
847
|
class: "joy-button--slot"
|
|
862
848
|
}, [
|
|
863
|
-
w(
|
|
849
|
+
w(a.$slots, "default", {}, () => [
|
|
864
850
|
R(J(e.label), 1)
|
|
865
851
|
], !0)
|
|
866
852
|
]),
|
|
@@ -868,17 +854,16 @@ const cn = { class: "joy-badge-level" }, dn = {
|
|
|
868
854
|
key: 2,
|
|
869
855
|
class: "joy-button_icon joy-button_icon--right",
|
|
870
856
|
name: e.icon,
|
|
871
|
-
size: i.value,
|
|
872
857
|
"aria-hidden": "true"
|
|
873
|
-
}, null, 8, ["name"
|
|
858
|
+
}, null, 8, ["name"])) : j("", !0)
|
|
874
859
|
]),
|
|
875
860
|
_: 3
|
|
876
861
|
}, 8, ["id", "disabled", "type", "class", "aria-labelledby"])), [
|
|
877
|
-
[
|
|
862
|
+
[s]
|
|
878
863
|
]);
|
|
879
864
|
};
|
|
880
865
|
}
|
|
881
|
-
}), ne = /* @__PURE__ */ B(gn, [["__scopeId", "data-v-
|
|
866
|
+
}), ne = /* @__PURE__ */ B(gn, [["__scopeId", "data-v-7d8093b0"]]);
|
|
882
867
|
function Xe(e) {
|
|
883
868
|
return Jt() ? (Pt(e), !0) : !1;
|
|
884
869
|
}
|
|
@@ -6430,14 +6415,14 @@ const Oi = /* @__PURE__ */ B(Ji, [["render", Mi], ["__scopeId", "data-v-fbaf8e78
|
|
|
6430
6415
|
o.value ? (c(), V(un, {
|
|
6431
6416
|
key: 0,
|
|
6432
6417
|
class: "joy-tab-button_notifications",
|
|
6433
|
-
variant: "
|
|
6418
|
+
variant: "pink",
|
|
6434
6419
|
number: e.notifications
|
|
6435
6420
|
}, null, 8, ["number"])) : j("", !0)
|
|
6436
6421
|
])
|
|
6437
6422
|
], 2)
|
|
6438
6423
|
], 40, Ar));
|
|
6439
6424
|
}
|
|
6440
|
-
}), zr = /* @__PURE__ */ B(Er, [["__scopeId", "data-v-
|
|
6425
|
+
}), zr = /* @__PURE__ */ B(Er, [["__scopeId", "data-v-ba5481c7"]]), Jr = { class: "joy-tabs" }, Pr = /* @__PURE__ */ A({
|
|
6441
6426
|
__name: "VJoyTabs",
|
|
6442
6427
|
props: {
|
|
6443
6428
|
/** Use this prop to activate a specific tab by default by giving its name */
|