@maltjoy/core-vue 5.10.0 → 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/dist/components/JoyTag/VJoyTag.vue.d.ts +2 -2
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +1 -1
- 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 +5 -5
|
@@ -21,13 +21,13 @@ interface Props {
|
|
|
21
21
|
id?: string;
|
|
22
22
|
}
|
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
remove: (value: IJoyTagRemoved) => any;
|
|
24
25
|
click: () => any;
|
|
25
26
|
selected: (tag: IJoyTagSelected) => any;
|
|
26
|
-
remove: (value: IJoyTagRemoved) => any;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
28
|
+
onRemove?: ((value: IJoyTagRemoved) => any) | undefined;
|
|
28
29
|
onClick?: (() => any) | undefined;
|
|
29
30
|
onSelected?: ((tag: IJoyTagSelected) => any) | undefined;
|
|
30
|
-
onRemove?: ((value: IJoyTagRemoved) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
link: boolean;
|
|
33
33
|
size: TJoyTagSizes;
|
|
@@ -83,9 +83,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
83
83
|
strikethrough?: boolean | undefined;
|
|
84
84
|
disabled?: boolean | undefined;
|
|
85
85
|
id?: string | undefined;
|
|
86
|
+
onRemove?: ((value: IJoyTagRemoved) => any) | undefined;
|
|
86
87
|
onClick?: (() => any) | undefined;
|
|
87
88
|
onSelected?: ((tag: IJoyTagSelected) => any) | undefined;
|
|
88
|
-
onRemove?: ((value: IJoyTagRemoved) => any) | undefined;
|
|
89
89
|
key?: PropertyKey | undefined;
|
|
90
90
|
ref?: import("vue").VNodeRef | undefined;
|
|
91
91
|
ref_for?: boolean | undefined;
|
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 */
|