@tmlmobilidade/ui 20250226.1436.26 → 20250305.1746.10
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/cjs/index.js +141 -98
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/layout/AppWrapper/Header/index.d.ts +1 -0
- package/dist/cjs/types/src/components/layout/AppWrapper/Options/index.d.ts +1 -0
- package/dist/cjs/types/src/components/layout/AppWrapper/index.d.ts +11 -0
- package/dist/cjs/types/src/components/layout/Sidebar/index.d.ts +1 -14
- package/dist/cjs/types/src/components/layout/index.d.ts +1 -0
- package/dist/cjs/types/src/lib/utils.d.ts +1 -1
- package/dist/esm/index.js +142 -100
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/layout/AppWrapper/Header/index.d.ts +1 -0
- package/dist/esm/types/src/components/layout/AppWrapper/Options/index.d.ts +1 -0
- package/dist/esm/types/src/components/layout/AppWrapper/index.d.ts +11 -0
- package/dist/esm/types/src/components/layout/Sidebar/index.d.ts +1 -14
- package/dist/esm/types/src/components/layout/index.d.ts +1 -0
- package/dist/esm/types/src/lib/utils.d.ts +1 -1
- package/dist/index.d.ts +22 -25
- package/dist/styles.css +160 -67
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export default function Header(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export default function AppOptions(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SidebarItemProps } from '../Sidebar';
|
2
|
+
interface AppWrapperProps {
|
3
|
+
children: React.ReactNode;
|
4
|
+
icon: React.ReactNode | {
|
5
|
+
href: string;
|
6
|
+
icon: React.ReactNode;
|
7
|
+
};
|
8
|
+
sidebarItems: SidebarItemProps[];
|
9
|
+
}
|
10
|
+
export default function AppWrapper({ children, icon, sidebarItems, }: AppWrapperProps): import("react/jsx-runtime").JSX.Element;
|
11
|
+
export {};
|
@@ -3,21 +3,8 @@ export interface SidebarItemProps {
|
|
3
3
|
href: string;
|
4
4
|
icon: React.ReactNode;
|
5
5
|
label: string;
|
6
|
-
permission?: {
|
7
|
-
action: string;
|
8
|
-
scope: string;
|
9
|
-
};
|
10
6
|
}
|
11
7
|
export interface SidebarProps {
|
12
|
-
classNames?: {
|
13
|
-
container?: string;
|
14
|
-
footer?: string;
|
15
|
-
header?: string;
|
16
|
-
navButton?: string;
|
17
|
-
navWrapper?: string;
|
18
|
-
};
|
19
|
-
footer?: React.ReactNode;
|
20
|
-
header?: React.ReactNode;
|
21
8
|
items: SidebarItemProps[];
|
22
9
|
}
|
23
|
-
export default function Sidebar({
|
10
|
+
export default function Sidebar({ items, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
@@ -19,7 +19,7 @@ export declare const truncate: (str: null | string, length: number) => null | st
|
|
19
19
|
* @param {...Parameters<typeof fetch>} args - The arguments to pass to the fetch function.
|
20
20
|
* @returns {Promise<any>} - A promise that resolves to the JSON response.
|
21
21
|
*/
|
22
|
-
export declare const fetcher: (
|
22
|
+
export declare const fetcher: (...args: Parameters<typeof fetch>) => Promise<any>;
|
23
23
|
/**
|
24
24
|
* Capitalizes first letters of words in string.
|
25
25
|
* @param {string} str String to be modified
|