baaz-custom-components 3.1.11 → 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 +14 -17
- 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 -4
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
|
}
|
|
@@ -1920,22 +1917,22 @@
|
|
|
1920
1917
|
}
|
|
1921
1918
|
.data-\[motion\=from-end\]\:slide-in-from-right-52 {
|
|
1922
1919
|
&[data-motion=from-end] {
|
|
1923
|
-
--tw-enter-translate-x: calc(var(--spacing)
|
|
1920
|
+
--tw-enter-translate-x: calc(52*var(--spacing));
|
|
1924
1921
|
}
|
|
1925
1922
|
}
|
|
1926
1923
|
.data-\[motion\=from-start\]\:slide-in-from-left-52 {
|
|
1927
1924
|
&[data-motion=from-start] {
|
|
1928
|
-
--tw-enter-translate-x: calc(var(--spacing)
|
|
1925
|
+
--tw-enter-translate-x: calc(52*var(--spacing)*-1);
|
|
1929
1926
|
}
|
|
1930
1927
|
}
|
|
1931
1928
|
.data-\[motion\=to-end\]\:slide-out-to-right-52 {
|
|
1932
1929
|
&[data-motion=to-end] {
|
|
1933
|
-
--tw-exit-translate-x: calc(var(--spacing)
|
|
1930
|
+
--tw-exit-translate-x: calc(52*var(--spacing));
|
|
1934
1931
|
}
|
|
1935
1932
|
}
|
|
1936
1933
|
.data-\[motion\=to-start\]\:slide-out-to-left-52 {
|
|
1937
1934
|
&[data-motion=to-start] {
|
|
1938
|
-
--tw-exit-translate-x: calc(var(--spacing)
|
|
1935
|
+
--tw-exit-translate-x: calc(52*var(--spacing)*-1);
|
|
1939
1936
|
}
|
|
1940
1937
|
}
|
|
1941
1938
|
.data-\[motion\^\=from-\]\:animate-in {
|
|
@@ -1991,7 +1988,7 @@
|
|
|
1991
1988
|
}
|
|
1992
1989
|
.data-\[side\=bottom\]\:slide-in-from-top-2 {
|
|
1993
1990
|
&[data-side=bottom] {
|
|
1994
|
-
--tw-enter-translate-y: calc(var(--spacing)
|
|
1991
|
+
--tw-enter-translate-y: calc(2*var(--spacing)*-1);
|
|
1995
1992
|
}
|
|
1996
1993
|
}
|
|
1997
1994
|
.data-\[side\=left\]\:-translate-x-1 {
|
|
@@ -2002,7 +1999,7 @@
|
|
|
2002
1999
|
}
|
|
2003
2000
|
.data-\[side\=left\]\:slide-in-from-right-2 {
|
|
2004
2001
|
&[data-side=left] {
|
|
2005
|
-
--tw-enter-translate-x: calc(var(--spacing)
|
|
2002
|
+
--tw-enter-translate-x: calc(2*var(--spacing));
|
|
2006
2003
|
}
|
|
2007
2004
|
}
|
|
2008
2005
|
.data-\[side\=right\]\:translate-x-1 {
|
|
@@ -2013,7 +2010,7 @@
|
|
|
2013
2010
|
}
|
|
2014
2011
|
.data-\[side\=right\]\:slide-in-from-left-2 {
|
|
2015
2012
|
&[data-side=right] {
|
|
2016
|
-
--tw-enter-translate-x: calc(var(--spacing)
|
|
2013
|
+
--tw-enter-translate-x: calc(2*var(--spacing)*-1);
|
|
2017
2014
|
}
|
|
2018
2015
|
}
|
|
2019
2016
|
.data-\[side\=top\]\:-translate-y-1 {
|
|
@@ -2024,7 +2021,7 @@
|
|
|
2024
2021
|
}
|
|
2025
2022
|
.data-\[side\=top\]\:slide-in-from-bottom-2 {
|
|
2026
2023
|
&[data-side=top] {
|
|
2027
|
-
--tw-enter-translate-y: calc(var(--spacing)
|
|
2024
|
+
--tw-enter-translate-y: calc(2*var(--spacing));
|
|
2028
2025
|
}
|
|
2029
2026
|
}
|
|
2030
2027
|
.data-\[size\=default\]\:h-9 {
|
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 };
|