baaz-custom-components 3.1.12 → 3.1.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/index.css +6 -9
- package/dist/index.d.mts +13 -27
- package/dist/index.d.ts +13 -27
- package/dist/index.js +184 -166
- package/dist/index.mjs +176 -160
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- /package/dist/assets/{images → assets/images}/baazLogo.png +0 -0
- /package/dist/assets/{svg → assets/svg}/confirmGreen.svg +0 -0
- /package/dist/assets/{svg → assets/svg}/confirmRed.svg +0 -0
- /package/dist/assets/{svg → assets/svg}/delete.svg +0 -0
- /package/dist/assets/{svg → assets/svg}/mainIcon.svg +0 -0
- /package/dist/assets/{svg → assets/svg}/sidebarIcon.svg +0 -0
- /package/dist/assets/{svg → assets/svg}/upload.svg +0 -0
- /package/dist/assets/{svg → assets/svg}/user.svg +0 -0
package/dist/index.css
CHANGED
|
@@ -371,9 +371,6 @@
|
|
|
371
371
|
.mt-4 {
|
|
372
372
|
margin-top: calc(var(--spacing) * 4);
|
|
373
373
|
}
|
|
374
|
-
.mt-5 {
|
|
375
|
-
margin-top: calc(var(--spacing) * 5);
|
|
376
|
-
}
|
|
377
374
|
.mt-auto {
|
|
378
375
|
margin-top: auto;
|
|
379
376
|
}
|
|
@@ -796,6 +793,9 @@
|
|
|
796
793
|
.bg-sidebar {
|
|
797
794
|
background-color: var(--sidebar);
|
|
798
795
|
}
|
|
796
|
+
.bg-sidebar-accent {
|
|
797
|
+
background-color: var(--sidebar-accent);
|
|
798
|
+
}
|
|
799
799
|
.bg-sidebar-border {
|
|
800
800
|
background-color: var(--sidebar-border);
|
|
801
801
|
}
|
|
@@ -877,9 +877,6 @@
|
|
|
877
877
|
.pt-12 {
|
|
878
878
|
padding-top: calc(var(--spacing) * 12);
|
|
879
879
|
}
|
|
880
|
-
.pt-16 {
|
|
881
|
-
padding-top: calc(var(--spacing) * 16);
|
|
882
|
-
}
|
|
883
880
|
.pr-2 {
|
|
884
881
|
padding-right: calc(var(--spacing) * 2);
|
|
885
882
|
}
|
|
@@ -962,9 +959,6 @@
|
|
|
962
959
|
.whitespace-nowrap {
|
|
963
960
|
white-space: nowrap;
|
|
964
961
|
}
|
|
965
|
-
.\!text-primary {
|
|
966
|
-
color: var(--primary) !important;
|
|
967
|
-
}
|
|
968
962
|
.text-accent {
|
|
969
963
|
color: var(--accent);
|
|
970
964
|
}
|
|
@@ -989,6 +983,9 @@
|
|
|
989
983
|
.text-secondary-foreground {
|
|
990
984
|
color: var(--secondary-foreground);
|
|
991
985
|
}
|
|
986
|
+
.text-sidebar-accent-foreground {
|
|
987
|
+
color: var(--sidebar-accent-foreground);
|
|
988
|
+
}
|
|
992
989
|
.text-sidebar-foreground {
|
|
993
990
|
color: var(--sidebar-foreground);
|
|
994
991
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
|
|
3
3
|
type NavbarData = NavbarEntry[];
|
|
4
4
|
interface NavbarEntry {
|
|
@@ -24,41 +24,27 @@ interface NotificationDataTypes {
|
|
|
24
24
|
otp: number;
|
|
25
25
|
topic: string;
|
|
26
26
|
}
|
|
27
|
+
interface RouterAdapter {
|
|
28
|
+
pathname: string;
|
|
29
|
+
push: (href: string) => void;
|
|
30
|
+
}
|
|
27
31
|
interface NavbarProps {
|
|
28
32
|
navbarData: NavbarEntry[];
|
|
29
33
|
userData: UserData;
|
|
30
34
|
onLogout: () => void;
|
|
31
35
|
layoutName: string;
|
|
32
36
|
notificationData: NotificationDataTypes[];
|
|
33
|
-
|
|
37
|
+
router: RouterAdapter;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
declare function Navbar({ navbarData, userData, onLogout, layoutName, notificationData,
|
|
37
|
-
|
|
38
|
-
declare function DesktopNavbar({ navbarData, userData, onLogout, layoutName, notificationData, framework }: NavbarProps): React$1.JSX.Element;
|
|
40
|
+
declare function Navbar({ navbarData, userData, onLogout, layoutName, notificationData, router, }: NavbarProps): react.JSX.Element | null;
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
userData?: UserData;
|
|
45
|
-
onLogout?: () => void;
|
|
46
|
-
}
|
|
47
|
-
declare const User: ({ userData, onLogout }: MobileNavbarProps) => React$1.JSX.Element;
|
|
48
|
-
|
|
49
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
50
|
-
side?: "left" | "right";
|
|
51
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
52
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
53
|
-
}): React$1.JSX.Element;
|
|
54
|
-
|
|
55
|
-
type AppSidebarProps = React.ComponentProps<typeof Sidebar> & {
|
|
56
|
-
data: NavbarEntry[];
|
|
42
|
+
type BreadcrumbProps = {
|
|
43
|
+
layoutName: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
includeFrom?: number;
|
|
57
46
|
};
|
|
58
|
-
declare function AppSidebar({ data, ...props }: AppSidebarProps): React$1.JSX.Element;
|
|
59
47
|
|
|
60
|
-
declare
|
|
61
|
-
items: NavbarEntry[];
|
|
62
|
-
}): React$1.JSX.Element;
|
|
48
|
+
declare const CustomBreadcrumb: ({ layoutName, includeFrom }: BreadcrumbProps) => react.JSX.Element;
|
|
63
49
|
|
|
64
|
-
export {
|
|
50
|
+
export { type BreadcrumbProps, CustomBreadcrumb, Navbar, type NavbarData, type NavbarEntry, type NavbarProps, type NotificationDataTypes, type RouteTree, type RouterAdapter, type UserData };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
|
|
3
3
|
type NavbarData = NavbarEntry[];
|
|
4
4
|
interface NavbarEntry {
|
|
@@ -24,41 +24,27 @@ interface NotificationDataTypes {
|
|
|
24
24
|
otp: number;
|
|
25
25
|
topic: string;
|
|
26
26
|
}
|
|
27
|
+
interface RouterAdapter {
|
|
28
|
+
pathname: string;
|
|
29
|
+
push: (href: string) => void;
|
|
30
|
+
}
|
|
27
31
|
interface NavbarProps {
|
|
28
32
|
navbarData: NavbarEntry[];
|
|
29
33
|
userData: UserData;
|
|
30
34
|
onLogout: () => void;
|
|
31
35
|
layoutName: string;
|
|
32
36
|
notificationData: NotificationDataTypes[];
|
|
33
|
-
|
|
37
|
+
router: RouterAdapter;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
declare function Navbar({ navbarData, userData, onLogout, layoutName, notificationData,
|
|
37
|
-
|
|
38
|
-
declare function DesktopNavbar({ navbarData, userData, onLogout, layoutName, notificationData, framework }: NavbarProps): React$1.JSX.Element;
|
|
40
|
+
declare function Navbar({ navbarData, userData, onLogout, layoutName, notificationData, router, }: NavbarProps): react.JSX.Element | null;
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
userData?: UserData;
|
|
45
|
-
onLogout?: () => void;
|
|
46
|
-
}
|
|
47
|
-
declare const User: ({ userData, onLogout }: MobileNavbarProps) => React$1.JSX.Element;
|
|
48
|
-
|
|
49
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
50
|
-
side?: "left" | "right";
|
|
51
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
52
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
53
|
-
}): React$1.JSX.Element;
|
|
54
|
-
|
|
55
|
-
type AppSidebarProps = React.ComponentProps<typeof Sidebar> & {
|
|
56
|
-
data: NavbarEntry[];
|
|
42
|
+
type BreadcrumbProps = {
|
|
43
|
+
layoutName: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
includeFrom?: number;
|
|
57
46
|
};
|
|
58
|
-
declare function AppSidebar({ data, ...props }: AppSidebarProps): React$1.JSX.Element;
|
|
59
47
|
|
|
60
|
-
declare
|
|
61
|
-
items: NavbarEntry[];
|
|
62
|
-
}): React$1.JSX.Element;
|
|
48
|
+
declare const CustomBreadcrumb: ({ layoutName, includeFrom }: BreadcrumbProps) => react.JSX.Element;
|
|
63
49
|
|
|
64
|
-
export {
|
|
50
|
+
export { type BreadcrumbProps, CustomBreadcrumb, Navbar, type NavbarData, type NavbarEntry, type NavbarProps, type NotificationDataTypes, type RouteTree, type RouterAdapter, type UserData };
|