@hardimpactdev/craft-ui 0.0.12 → 0.0.14
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/craft-ui.js
CHANGED
|
@@ -29711,7 +29711,9 @@ const nV = {
|
|
|
29711
29711
|
}), fV = /* @__PURE__ */ b({
|
|
29712
29712
|
__name: "NavUser",
|
|
29713
29713
|
props: {
|
|
29714
|
-
user: {}
|
|
29714
|
+
user: {},
|
|
29715
|
+
onSettings: { type: Function },
|
|
29716
|
+
onLogout: { type: Function }
|
|
29715
29717
|
},
|
|
29716
29718
|
setup(e) {
|
|
29717
29719
|
return (t, n) => (v(), x(l(Bb), null, {
|
|
@@ -29742,7 +29744,11 @@ const nV = {
|
|
|
29742
29744
|
"side-offset": 4
|
|
29743
29745
|
}, {
|
|
29744
29746
|
default: g(() => [
|
|
29745
|
-
I(hb, {
|
|
29747
|
+
I(hb, {
|
|
29748
|
+
user: e.user,
|
|
29749
|
+
"on-settings": e.onSettings,
|
|
29750
|
+
"on-logout": e.onLogout
|
|
29751
|
+
}, null, 8, ["user", "on-settings", "on-logout"])
|
|
29746
29752
|
]),
|
|
29747
29753
|
_: 1
|
|
29748
29754
|
}, 8, ["side"])
|
|
@@ -29762,7 +29768,9 @@ const nV = {
|
|
|
29762
29768
|
mainNavItems: { default: () => [] },
|
|
29763
29769
|
footerNavItems: { default: () => [] },
|
|
29764
29770
|
user: {},
|
|
29765
|
-
homeUrl: { default: "/" }
|
|
29771
|
+
homeUrl: { default: "/" },
|
|
29772
|
+
onSettings: {},
|
|
29773
|
+
onLogout: {}
|
|
29766
29774
|
},
|
|
29767
29775
|
setup(e) {
|
|
29768
29776
|
return (t, n) => (v(), L(Oe, null, [
|
|
@@ -29813,8 +29821,10 @@ const nV = {
|
|
|
29813
29821
|
I(lV, { items: e.footerNavItems }, null, 8, ["items"]),
|
|
29814
29822
|
e.user ? (v(), x(fV, {
|
|
29815
29823
|
key: 0,
|
|
29816
|
-
user: e.user
|
|
29817
|
-
|
|
29824
|
+
user: e.user,
|
|
29825
|
+
"on-settings": e.onSettings,
|
|
29826
|
+
"on-logout": e.onLogout
|
|
29827
|
+
}, null, 8, ["user", "on-settings", "on-logout"])) : ve("", !0)
|
|
29818
29828
|
]),
|
|
29819
29829
|
_: 1
|
|
29820
29830
|
})
|
|
@@ -29851,7 +29861,9 @@ const nV = {
|
|
|
29851
29861
|
mainNavItems: { default: () => [] },
|
|
29852
29862
|
footerNavItems: { default: () => [] },
|
|
29853
29863
|
user: {},
|
|
29854
|
-
homeUrl: { default: "/" }
|
|
29864
|
+
homeUrl: { default: "/" },
|
|
29865
|
+
onSettings: {},
|
|
29866
|
+
onLogout: {}
|
|
29855
29867
|
},
|
|
29856
29868
|
setup(e) {
|
|
29857
29869
|
return (t, n) => (v(), x(Ab, { variant: "sidebar" }, {
|
|
@@ -29860,13 +29872,15 @@ const nV = {
|
|
|
29860
29872
|
"main-nav-items": e.mainNavItems,
|
|
29861
29873
|
"footer-nav-items": e.footerNavItems,
|
|
29862
29874
|
user: e.user,
|
|
29863
|
-
"home-url": e.homeUrl
|
|
29875
|
+
"home-url": e.homeUrl,
|
|
29876
|
+
"on-settings": e.onSettings,
|
|
29877
|
+
"on-logout": e.onLogout
|
|
29864
29878
|
}, {
|
|
29865
29879
|
logo: g(() => [
|
|
29866
29880
|
_(t.$slots, "logo")
|
|
29867
29881
|
]),
|
|
29868
29882
|
_: 3
|
|
29869
|
-
}, 8, ["main-nav-items", "footer-nav-items", "user", "home-url"]),
|
|
29883
|
+
}, 8, ["main-nav-items", "footer-nav-items", "user", "home-url", "on-settings", "on-logout"]),
|
|
29870
29884
|
I(Oh, {
|
|
29871
29885
|
variant: "sidebar",
|
|
29872
29886
|
class: "overflow-x-hidden"
|
|
@@ -8,6 +8,10 @@ type __VLS_Props = {
|
|
|
8
8
|
user?: User;
|
|
9
9
|
/** Home/dashboard URL */
|
|
10
10
|
homeUrl?: string;
|
|
11
|
+
/** Callback when settings is clicked */
|
|
12
|
+
onSettings?: () => void;
|
|
13
|
+
/** Callback when logout is clicked */
|
|
14
|
+
onLogout?: () => void;
|
|
11
15
|
};
|
|
12
16
|
declare function __VLS_template(): {
|
|
13
17
|
attrs: Partial<{}>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { User } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
user: User;
|
|
4
|
+
onSettings?: () => void;
|
|
5
|
+
onLogout?: () => void;
|
|
4
6
|
};
|
|
5
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
6
8
|
export default _default;
|
|
@@ -10,6 +10,10 @@ type __VLS_Props = {
|
|
|
10
10
|
user?: User;
|
|
11
11
|
/** Home/dashboard URL */
|
|
12
12
|
homeUrl?: string;
|
|
13
|
+
/** Callback when settings is clicked */
|
|
14
|
+
onSettings?: () => void;
|
|
15
|
+
/** Callback when logout is clicked */
|
|
16
|
+
onLogout?: () => void;
|
|
13
17
|
};
|
|
14
18
|
declare function __VLS_template(): {
|
|
15
19
|
attrs: Partial<{}>;
|