baaz-custom-components 3.0.1 → 3.0.2
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.d.mts +44 -5
- package/dist/index.d.ts +44 -5
- package/dist/index.js +12 -2
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
2
|
|
|
3
3
|
interface NavbarMenuItem {
|
|
4
4
|
[key: string]: string | NavbarMenuItem;
|
|
5
5
|
}
|
|
6
|
-
interface NavbarData {
|
|
6
|
+
interface NavbarData$1 {
|
|
7
7
|
[key: string]: NavbarMenuItem;
|
|
8
8
|
}
|
|
9
9
|
interface UserData {
|
|
@@ -15,10 +15,49 @@ interface UserData {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface NavbarProps {
|
|
18
|
-
data?: NavbarData;
|
|
18
|
+
data?: NavbarData$1;
|
|
19
19
|
userData?: UserData;
|
|
20
20
|
onLogout?: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare function Navbar({ data, userData, onLogout }: NavbarProps):
|
|
22
|
+
declare function Navbar({ data, userData, onLogout }: NavbarProps): React$1.JSX.Element;
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
interface MobileNavbarProps$2 {
|
|
25
|
+
data?: NavbarData$1;
|
|
26
|
+
userData?: UserData;
|
|
27
|
+
onLogout?: () => void;
|
|
28
|
+
}
|
|
29
|
+
declare function DesktopNavbar({ data, userData, onLogout, }: MobileNavbarProps$2): React$1.JSX.Element;
|
|
30
|
+
|
|
31
|
+
interface MobileNavbarProps$1 {
|
|
32
|
+
data?: NavbarData$1;
|
|
33
|
+
userData?: UserData;
|
|
34
|
+
onLogout?: () => void;
|
|
35
|
+
}
|
|
36
|
+
declare function MobileNavbar({ data, userData, onLogout, }: MobileNavbarProps$1): React$1.JSX.Element;
|
|
37
|
+
|
|
38
|
+
interface MobileNavbarProps {
|
|
39
|
+
data?: NavbarData$1;
|
|
40
|
+
userData?: UserData;
|
|
41
|
+
onLogout?: () => void;
|
|
42
|
+
}
|
|
43
|
+
declare const User: ({ userData, onLogout }: MobileNavbarProps) => React$1.JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
46
|
+
side?: "left" | "right";
|
|
47
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
48
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
49
|
+
}): React$1.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type AppSidebarProps = React.ComponentProps<typeof Sidebar> & {
|
|
52
|
+
data: Record<string, any>;
|
|
53
|
+
};
|
|
54
|
+
declare function AppSidebar({ data, ...props }: AppSidebarProps): React$1.JSX.Element;
|
|
55
|
+
|
|
56
|
+
type NavbarData = {
|
|
57
|
+
[key: string]: string | NavbarData;
|
|
58
|
+
};
|
|
59
|
+
declare function NavMain({ items }: {
|
|
60
|
+
items: NavbarData;
|
|
61
|
+
}): React$1.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { AppSidebar, DesktopNavbar, MobileNavbar, NavMain, Navbar, type NavbarData$1 as NavbarData, type NavbarMenuItem, User, type UserData };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
2
|
|
|
3
3
|
interface NavbarMenuItem {
|
|
4
4
|
[key: string]: string | NavbarMenuItem;
|
|
5
5
|
}
|
|
6
|
-
interface NavbarData {
|
|
6
|
+
interface NavbarData$1 {
|
|
7
7
|
[key: string]: NavbarMenuItem;
|
|
8
8
|
}
|
|
9
9
|
interface UserData {
|
|
@@ -15,10 +15,49 @@ interface UserData {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface NavbarProps {
|
|
18
|
-
data?: NavbarData;
|
|
18
|
+
data?: NavbarData$1;
|
|
19
19
|
userData?: UserData;
|
|
20
20
|
onLogout?: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare function Navbar({ data, userData, onLogout }: NavbarProps):
|
|
22
|
+
declare function Navbar({ data, userData, onLogout }: NavbarProps): React$1.JSX.Element;
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
interface MobileNavbarProps$2 {
|
|
25
|
+
data?: NavbarData$1;
|
|
26
|
+
userData?: UserData;
|
|
27
|
+
onLogout?: () => void;
|
|
28
|
+
}
|
|
29
|
+
declare function DesktopNavbar({ data, userData, onLogout, }: MobileNavbarProps$2): React$1.JSX.Element;
|
|
30
|
+
|
|
31
|
+
interface MobileNavbarProps$1 {
|
|
32
|
+
data?: NavbarData$1;
|
|
33
|
+
userData?: UserData;
|
|
34
|
+
onLogout?: () => void;
|
|
35
|
+
}
|
|
36
|
+
declare function MobileNavbar({ data, userData, onLogout, }: MobileNavbarProps$1): React$1.JSX.Element;
|
|
37
|
+
|
|
38
|
+
interface MobileNavbarProps {
|
|
39
|
+
data?: NavbarData$1;
|
|
40
|
+
userData?: UserData;
|
|
41
|
+
onLogout?: () => void;
|
|
42
|
+
}
|
|
43
|
+
declare const User: ({ userData, onLogout }: MobileNavbarProps) => React$1.JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
46
|
+
side?: "left" | "right";
|
|
47
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
48
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
49
|
+
}): React$1.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type AppSidebarProps = React.ComponentProps<typeof Sidebar> & {
|
|
52
|
+
data: Record<string, any>;
|
|
53
|
+
};
|
|
54
|
+
declare function AppSidebar({ data, ...props }: AppSidebarProps): React$1.JSX.Element;
|
|
55
|
+
|
|
56
|
+
type NavbarData = {
|
|
57
|
+
[key: string]: string | NavbarData;
|
|
58
|
+
};
|
|
59
|
+
declare function NavMain({ items }: {
|
|
60
|
+
items: NavbarData;
|
|
61
|
+
}): React$1.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { AppSidebar, DesktopNavbar, MobileNavbar, NavMain, Navbar, type NavbarData$1 as NavbarData, type NavbarMenuItem, User, type UserData };
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
59
59
|
// src/components/index.ts
|
|
60
60
|
var index_exports = {};
|
|
61
61
|
__export(index_exports, {
|
|
62
|
-
|
|
62
|
+
AppSidebar: () => AppSidebar,
|
|
63
|
+
DesktopNavbar: () => DesktopNavbar,
|
|
64
|
+
MobileNavbar: () => MobileNavbar,
|
|
65
|
+
NavMain: () => NavMain,
|
|
66
|
+
Navbar: () => Navbar,
|
|
67
|
+
User: () => user_default
|
|
63
68
|
});
|
|
64
69
|
module.exports = __toCommonJS(index_exports);
|
|
65
70
|
|
|
@@ -1259,5 +1264,10 @@ function Navbar({ data, userData, onLogout }) {
|
|
|
1259
1264
|
}
|
|
1260
1265
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1261
1266
|
0 && (module.exports = {
|
|
1262
|
-
|
|
1267
|
+
AppSidebar,
|
|
1268
|
+
DesktopNavbar,
|
|
1269
|
+
MobileNavbar,
|
|
1270
|
+
NavMain,
|
|
1271
|
+
Navbar,
|
|
1272
|
+
User
|
|
1263
1273
|
});
|
package/dist/index.mjs
CHANGED