@knitify/vue 0.0.2 → 0.0.4
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/index.es.js +149 -93
- package/dist/index.umd.js +1 -1
- package/dist/types/components/Badge/KBadge.vue.d.ts +14 -0
- package/dist/types/components/Badge/types.d.ts +7 -0
- package/dist/types/components/Container/KContainer.vue.d.ts +14 -0
- package/dist/types/components/Container/types.d.ts +3 -0
- package/dist/types/components/Navbar/KNavbar.vue.d.ts +14 -2
- package/dist/types/components/Navbar/KNavbarMenu.vue.d.ts +13 -1
- package/dist/types/components/Navbar/types.d.ts +12 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/types.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,124 +1,180 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { RouterLink as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, openBlock as t, createElementBlock as r, normalizeClass as o, renderSlot as c, createElementVNode as n, resolveComponent as _, Fragment as x, renderList as M, createVNode as d, unref as B, withCtx as g, withModifiers as I, createBlock as N, createTextVNode as S, toDisplayString as h, createCommentVNode as i, useModel as V, useSlots as z, mergeModels as C } from "vue";
|
|
2
|
+
import { RouterLink as L } from "vue-router";
|
|
3
|
+
const j = /* @__PURE__ */ f({
|
|
4
|
+
__name: "KContainer",
|
|
5
|
+
props: {
|
|
6
|
+
glassy: { type: Boolean }
|
|
7
|
+
},
|
|
8
|
+
setup(a) {
|
|
9
|
+
return (s, l) => (t(), r("div", {
|
|
10
|
+
class: o(["KContainer", a.glassy && "KContainer--glassy"])
|
|
11
|
+
}, [
|
|
12
|
+
c(s.$slots, "default")
|
|
13
|
+
], 2));
|
|
14
|
+
}
|
|
15
|
+
}), w = {
|
|
4
16
|
class: "KIcon",
|
|
5
17
|
title: "icon",
|
|
6
18
|
role: "img"
|
|
7
|
-
},
|
|
19
|
+
}, E = ["href"], O = /* @__PURE__ */ f({
|
|
8
20
|
__name: "KIcon",
|
|
9
21
|
props: {
|
|
10
22
|
href: { default: "" }
|
|
11
23
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (
|
|
14
|
-
|
|
15
|
-
href: `#${
|
|
16
|
-
}, null, 8,
|
|
24
|
+
setup(a) {
|
|
25
|
+
return (s, l) => (t(), r("svg", w, [
|
|
26
|
+
n("use", {
|
|
27
|
+
href: `#${a.href.replace(/^#/, "")}`
|
|
28
|
+
}, null, 8, E)
|
|
17
29
|
]));
|
|
18
30
|
}
|
|
19
|
-
}),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
key: 0,
|
|
23
|
-
class: /* @__PURE__ */ c(["KNavbar-caret", "KCollapse-toggle"]),
|
|
31
|
+
}), T = { class: "KNavbar-menu" }, D = ["href", "onClick"], F = {
|
|
32
|
+
key: 1,
|
|
33
|
+
class: /* @__PURE__ */ o(["KNavbar-caret", "KCollapse-toggle"]),
|
|
24
34
|
"data-collapse-toggle": ""
|
|
25
|
-
},
|
|
35
|
+
}, $ = /* @__PURE__ */ f({
|
|
26
36
|
__name: "KNavbarMenu",
|
|
27
37
|
props: {
|
|
28
38
|
items: { default: () => [] }
|
|
29
39
|
},
|
|
30
|
-
setup(
|
|
31
|
-
return (
|
|
32
|
-
const
|
|
33
|
-
return
|
|
34
|
-
(
|
|
35
|
-
key: `navbar-menu-item-${
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
s("a", {
|
|
49
|
-
class: c(["KNavbar-link"]),
|
|
50
|
-
href: N,
|
|
51
|
-
onClick: $
|
|
52
|
-
}, [
|
|
53
|
-
s("span", E, [
|
|
54
|
-
u(i, {
|
|
55
|
-
href: n.icon
|
|
56
|
-
}, null, 8, ["href"])
|
|
40
|
+
setup(a) {
|
|
41
|
+
return (s, l) => {
|
|
42
|
+
const u = _("KIcon"), p = _("KBadge"), v = _("KNavbarMenu", !0);
|
|
43
|
+
return t(), r("ul", T, [
|
|
44
|
+
(t(!0), r(x, null, M(a.items, (e, m) => c(s.$slots, "item", {
|
|
45
|
+
key: `navbar-menu-item-${m}`,
|
|
46
|
+
item: e
|
|
47
|
+
}, () => [
|
|
48
|
+
d(B(L), {
|
|
49
|
+
to: e.route ?? "/",
|
|
50
|
+
custom: ""
|
|
51
|
+
}, {
|
|
52
|
+
default: g(({ isActive: K, href: b, navigate: k }) => [
|
|
53
|
+
n("li", {
|
|
54
|
+
class: o([
|
|
55
|
+
"KNavbar-item",
|
|
56
|
+
"KCollapse is-collapsed",
|
|
57
|
+
K && "KNavbar-item-is-active"
|
|
57
58
|
]),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
"data-collapse": ""
|
|
60
|
+
}, [
|
|
61
|
+
n("a", {
|
|
62
|
+
class: o(["KNavbar-link"]),
|
|
63
|
+
href: e.route ? b : void 0,
|
|
64
|
+
onClick: I((G) => e.route ? k() : e.onClick?.(), ["prevent"])
|
|
65
|
+
}, [
|
|
66
|
+
n("span", {
|
|
67
|
+
class: o(["KNavbar-icon", e.iconClass])
|
|
68
|
+
}, [
|
|
69
|
+
d(u, {
|
|
70
|
+
href: e.icon
|
|
71
|
+
}, null, 8, ["href"])
|
|
72
|
+
], 2),
|
|
73
|
+
e.badge ? (t(), N(p, {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: o(["KNavbar-badge", e.badgeClass]),
|
|
76
|
+
size: "sm",
|
|
77
|
+
variant: "danger"
|
|
78
|
+
}, {
|
|
79
|
+
default: g(() => [
|
|
80
|
+
S(h(e.badge), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 2
|
|
83
|
+
}, 1032, ["class"])) : i("", !0),
|
|
84
|
+
n("span", {
|
|
85
|
+
class: o(["KNavbar-text", e.textClass])
|
|
86
|
+
}, h(e.text), 3),
|
|
87
|
+
e.children ? (t(), r("span", F, [
|
|
88
|
+
d(u, { href: "#caretUp" })
|
|
89
|
+
])) : i("", !0)
|
|
90
|
+
], 8, D),
|
|
91
|
+
e.children ? (t(), N(v, {
|
|
92
|
+
key: 0,
|
|
93
|
+
items: e.children,
|
|
94
|
+
class: "KCollapse-content",
|
|
95
|
+
"data-collapse-content": ""
|
|
96
|
+
}, null, 8, ["items"])) : i("", !0)
|
|
97
|
+
], 2)
|
|
98
|
+
]),
|
|
99
|
+
_: 2
|
|
100
|
+
}, 1032, ["to"])
|
|
101
|
+
])), 128))
|
|
73
102
|
]);
|
|
74
103
|
};
|
|
75
104
|
}
|
|
76
|
-
}),
|
|
105
|
+
}), P = { class: "KNavbar-inner" }, R = {
|
|
77
106
|
key: 0,
|
|
78
107
|
class: "KNavbar-brand"
|
|
79
|
-
},
|
|
108
|
+
}, U = { class: "KNavbar-body" }, q = {
|
|
80
109
|
key: 1,
|
|
81
110
|
class: "KNavbar-footer"
|
|
82
|
-
},
|
|
111
|
+
}, A = /* @__PURE__ */ f({
|
|
83
112
|
__name: "KNavbar",
|
|
84
|
-
props: {
|
|
85
|
-
items: {}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
113
|
+
props: /* @__PURE__ */ C({
|
|
114
|
+
items: {},
|
|
115
|
+
fixed: { type: Boolean, default: !1 }
|
|
116
|
+
}, {
|
|
117
|
+
expanded: { type: Boolean, default: !1 },
|
|
118
|
+
expandedModifiers: {}
|
|
119
|
+
}),
|
|
120
|
+
emits: /* @__PURE__ */ C(["toggle"], ["update:expanded"]),
|
|
121
|
+
setup(a, { emit: s }) {
|
|
122
|
+
const l = V(a, "expanded"), u = s, p = z(), v = () => {
|
|
123
|
+
l.value = !l.value, u("toggle", l.value);
|
|
124
|
+
};
|
|
125
|
+
return (e, m) => {
|
|
126
|
+
const K = _("KIcon");
|
|
127
|
+
return t(), r("aside", {
|
|
128
|
+
class: o([
|
|
129
|
+
"KNavbar",
|
|
130
|
+
l.value && "KNavbar-is-expanded",
|
|
131
|
+
a.fixed && "KNavbar-is-fixed"
|
|
132
|
+
])
|
|
133
|
+
}, [
|
|
134
|
+
n("div", P, [
|
|
135
|
+
p.brand ? (t(), r("div", R, [
|
|
136
|
+
c(e.$slots, "brand")
|
|
137
|
+
])) : i("", !0),
|
|
138
|
+
n("nav", U, [
|
|
139
|
+
c(e.$slots, "default", {}, () => [
|
|
140
|
+
d($, {
|
|
141
|
+
items: a.items.filter(({ hidden: b }) => !b)
|
|
142
|
+
}, null, 8, ["items"])
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
p.footer ? (t(), r("div", q, [
|
|
146
|
+
c(e.$slots, "footer")
|
|
147
|
+
])) : i("", !0)
|
|
98
148
|
]),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
149
|
+
n("button", {
|
|
150
|
+
type: "button",
|
|
151
|
+
class: "KNavbar-toggle",
|
|
152
|
+
onClick: v
|
|
153
|
+
}, [
|
|
154
|
+
d(K, { href: "#caretLeft" })
|
|
155
|
+
])
|
|
156
|
+
], 2);
|
|
157
|
+
};
|
|
104
158
|
}
|
|
105
|
-
}),
|
|
159
|
+
}), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
106
160
|
__proto__: null,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
161
|
+
KContainer: j,
|
|
162
|
+
KIcon: O,
|
|
163
|
+
KNavbar: A,
|
|
164
|
+
KNavbarMenu: $
|
|
165
|
+
}, Symbol.toStringTag, { value: "Module" })), Q = {
|
|
166
|
+
install(a) {
|
|
167
|
+
for (const s in y)
|
|
168
|
+
a.component(
|
|
169
|
+
s,
|
|
170
|
+
y[s]
|
|
116
171
|
);
|
|
117
172
|
}
|
|
118
173
|
};
|
|
119
174
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
175
|
+
j as KContainer,
|
|
176
|
+
O as KIcon,
|
|
177
|
+
A as KNavbar,
|
|
178
|
+
$ as KNavbarMenu,
|
|
179
|
+
Q as default
|
|
124
180
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["knitify-vue"]={},t.Vue,t.vueRouter))})(this,(function(t,e,
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["knitify-vue"]={},t.Vue,t.vueRouter))})(this,(function(t,e,b){"use strict";const p=e.defineComponent({__name:"KContainer",props:{glassy:{type:Boolean}},setup(n){return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["KContainer",n.glassy&&"KContainer--glassy"])},[e.renderSlot(a.$slots,"default")],2))}}),C={class:"KIcon",title:"icon",role:"img"},k=["href"],f=e.defineComponent({__name:"KIcon",props:{href:{default:""}},setup(n){return(a,s)=>(e.openBlock(),e.createElementBlock("svg",C,[e.createElementVNode("use",{href:`#${n.href.replace(/^#/,"")}`},null,8,k)]))}}),h={class:"KNavbar-menu"},g=["href","onClick"],B={key:1,class:e.normalizeClass(["KNavbar-caret","KCollapse-toggle"]),"data-collapse-toggle":""},c=e.defineComponent({__name:"KNavbarMenu",props:{items:{default:()=>[]}},setup(n){return(a,s)=>{const l=e.resolveComponent("KIcon"),r=e.resolveComponent("KBadge"),d=e.resolveComponent("KNavbarMenu",!0);return e.openBlock(),e.createElementBlock("ul",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(o,K)=>e.renderSlot(a.$slots,"item",{key:`navbar-menu-item-${K}`,item:o},()=>[e.createVNode(e.unref(b.RouterLink),{to:o.route??"/",custom:""},{default:e.withCtx(({isActive:i,href:m,navigate:x})=>[e.createElementVNode("li",{class:e.normalizeClass(["KNavbar-item","KCollapse is-collapsed",i&&"KNavbar-item-is-active"]),"data-collapse":""},[e.createElementVNode("a",{class:e.normalizeClass(["KNavbar-link"]),href:o.route?m:void 0,onClick:e.withModifiers(M=>o.route?x():o.onClick?.(),["prevent"])},[e.createElementVNode("span",{class:e.normalizeClass(["KNavbar-icon",o.iconClass])},[e.createVNode(l,{href:o.icon},null,8,["href"])],2),o.badge?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["KNavbar-badge",o.badgeClass]),size:"sm",variant:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.badge),1)]),_:2},1032,["class"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["KNavbar-text",o.textClass])},e.toDisplayString(o.text),3),o.children?(e.openBlock(),e.createElementBlock("span",B,[e.createVNode(l,{href:"#caretUp"})])):e.createCommentVNode("",!0)],8,g),o.children?(e.openBlock(),e.createBlock(d,{key:0,items:o.children,class:"KCollapse-content","data-collapse-content":""},null,8,["items"])):e.createCommentVNode("",!0)],2)]),_:2},1032,["to"])])),128))])}}}),y={class:"KNavbar-inner"},V={key:0,class:"KNavbar-brand"},E={class:"KNavbar-body"},$={key:1,class:"KNavbar-footer"},_=e.defineComponent({__name:"KNavbar",props:e.mergeModels({items:{},fixed:{type:Boolean,default:!1}},{expanded:{type:Boolean,default:!1},expandedModifiers:{}}),emits:e.mergeModels(["toggle"],["update:expanded"]),setup(n,{emit:a}){const s=e.useModel(n,"expanded"),l=a,r=e.useSlots(),d=()=>{s.value=!s.value,l("toggle",s.value)};return(o,K)=>{const i=e.resolveComponent("KIcon");return e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(["KNavbar",s.value&&"KNavbar-is-expanded",n.fixed&&"KNavbar-is-fixed"])},[e.createElementVNode("div",y,[r.brand?(e.openBlock(),e.createElementBlock("div",V,[e.renderSlot(o.$slots,"brand")])):e.createCommentVNode("",!0),e.createElementVNode("nav",E,[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(c,{items:n.items.filter(({hidden:m})=>!m)},null,8,["items"])])]),r.footer?(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(o.$slots,"footer")])):e.createCommentVNode("",!0)]),e.createElementVNode("button",{type:"button",class:"KNavbar-toggle",onClick:d},[e.createVNode(i,{href:"#caretLeft"})])],2)}}}),N=Object.freeze(Object.defineProperty({__proto__:null,KContainer:p,KIcon:f,KNavbar:_,KNavbarMenu:c},Symbol.toStringTag,{value:"Module"})),u={install(n){for(const a in N)n.component(a,N[a])}};t.KContainer=p,t.KIcon=f,t.KNavbar=_,t.KNavbarMenu=c,t.default=u,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KBadgeProps } from './types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<KBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KContainerProps } from './types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<KContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import { KNavbarProps, KNavbarSlots } from './types';
|
|
1
|
+
import type { KNavbarProps, KNavbarSlots } from './types';
|
|
2
|
+
type __VLS_Props = KNavbarProps;
|
|
2
3
|
type __VLS_Slots = KNavbarSlots;
|
|
3
|
-
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
'expanded'?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:expanded": (value: boolean) => any;
|
|
10
|
+
} & {
|
|
11
|
+
toggle: (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
onToggle?: ((value: boolean) => any) | undefined;
|
|
14
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
17
|
declare const _default: typeof __VLS_export;
|
|
6
18
|
export default _default;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { KNavbarMenuProps } from './types';
|
|
2
|
-
declare
|
|
2
|
+
declare var __VLS_1: {
|
|
3
|
+
item: import("./types").MenuItem;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
item?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<KNavbarMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KNavbarMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
3
10
|
declare const _default: typeof __VLS_export;
|
|
4
11
|
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
import { ClassValue } from 'vue';
|
|
1
2
|
import { RouteLocationRaw } from 'vue-router';
|
|
2
3
|
export type MenuItem = {
|
|
3
4
|
text: string;
|
|
4
|
-
|
|
5
|
+
badge?: number | string;
|
|
6
|
+
badgeClass?: ClassValue;
|
|
5
7
|
children?: MenuItem[];
|
|
8
|
+
hidden?: boolean;
|
|
6
9
|
icon?: string;
|
|
10
|
+
iconClass?: ClassValue;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
route?: RouteLocationRaw;
|
|
13
|
+
textClass?: ClassValue;
|
|
7
14
|
};
|
|
8
15
|
export type KNavbarProps = {
|
|
9
16
|
items: MenuItem[];
|
|
17
|
+
fixed?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type KNavbarEmits = {
|
|
20
|
+
(event: 'toggle', value: boolean): void;
|
|
10
21
|
};
|
|
11
22
|
export type KNavbarSlots = {
|
|
12
23
|
brand?(): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knitify/vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"vue": "^3.5.12",
|
|
19
19
|
"vue-router": "^4.0.3",
|
|
20
20
|
"vue-tsc": "^3.2.5",
|
|
21
|
-
"@knitify/core": "1.0.
|
|
21
|
+
"@knitify/core": "1.0.5"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@knitify/core": "^1.0.1",
|