@midas-ds/layout 0.0.1-beta.1 → 0.0.4
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/CHANGELOG.md +40 -2
- package/README.md +7 -0
- package/assets/Layout.css +1 -0
- package/assets/Main.css +1 -0
- package/assets/MobileMenu.css +1 -0
- package/assets/Navbar.css +1 -0
- package/assets/Navigation.css +1 -0
- package/assets/Panel.css +1 -0
- package/assets/PanelContext.css +1 -0
- package/assets/useIsMobileDevice.css +1 -0
- package/chunks/Layout-16EqvEZN.js +23 -0
- package/chunks/Main-QnNDtP6N.js +13 -0
- package/chunks/MobileMenu-DcQpdykm.js +86 -0
- package/chunks/MobileMenuContext-Coj0sJ0N.js +6 -0
- package/chunks/Navbar-wOOCcsru.js +13 -0
- package/chunks/Navigation-Cq0h2Nt9.js +212 -0
- package/chunks/Panel-C1MEWSWX.js +147 -0
- package/chunks/PanelContext-D2ADxgo6.js +44 -0
- package/chunks/clsx-AexbMWKp.js +24 -0
- package/chunks/useIsMobileDevice-DhQB0ae2.js +213 -0
- package/header/Header.d.ts +3 -0
- package/header/header-actions/HeaderActions.d.ts +10 -0
- package/header/header-actions/HeaderActions.stories.d.ts +24 -0
- package/header/header-actions/index.d.ts +1 -0
- package/header/index.d.ts +3 -0
- package/header/index.js +8 -0
- package/header/mobile-menu/MobileMenu.d.ts +8 -0
- package/header/mobile-menu/MobileMenuContext.d.ts +1 -0
- package/header/mobile-menu/index.d.ts +2 -0
- package/index.d.ts +6 -1
- package/index.js +27 -77
- package/layout/Layout.d.ts +7 -0
- package/layout/Layout.stories.d.ts +17 -0
- package/layout/index.d.ts +1 -0
- package/layout/index.js +5 -0
- package/main/Main.d.ts +3 -0
- package/main/index.d.ts +1 -0
- package/main/index.js +4 -0
- package/navbar/Navbar.d.ts +3 -0
- package/navbar/index.d.ts +1 -0
- package/navbar/index.js +4 -0
- package/navigation/Navigation.d.ts +9 -0
- package/navigation/Navigation.stories.d.ts +13 -0
- package/navigation/components/header/NavigationHeader.d.ts +3 -0
- package/navigation/components/header/index.d.ts +1 -0
- package/navigation/components/index.d.ts +5 -0
- package/navigation/components/item/NavigationItem.d.ts +3 -0
- package/navigation/components/item/index.d.ts +1 -0
- package/navigation/components/link/NavigationLink.d.ts +13 -0
- package/navigation/components/link/NavigationLink.stories.d.ts +21 -0
- package/navigation/components/link/index.d.ts +1 -0
- package/navigation/components/section/NavigationSection.d.ts +6 -0
- package/navigation/components/section/index.d.ts +1 -0
- package/navigation/components/sub-menu/NavigationSubMenu.d.ts +4 -0
- package/navigation/components/sub-menu/index.d.ts +1 -0
- package/navigation/index.d.ts +2 -0
- package/navigation/index.js +9 -0
- package/package.json +33 -12
- package/panel/Panel.d.ts +7 -0
- package/panel/Panel.stories.d.ts +16 -0
- package/panel/PanelContext.d.ts +5 -0
- package/panel/components/collapse-panel/CollapsePanel.d.ts +7 -0
- package/panel/components/collapse-panel/index.d.ts +1 -0
- package/panel/components/dismiss-panel/DismissPanel.d.ts +7 -0
- package/panel/components/dismiss-panel/index.d.ts +1 -0
- package/panel/components/index.d.ts +5 -0
- package/panel/components/panel-body/PanelBody.d.ts +3 -0
- package/panel/components/panel-body/index.d.ts +1 -0
- package/panel/components/panel-header/PanelHeader.d.ts +3 -0
- package/panel/components/panel-header/index.d.ts +1 -0
- package/panel/components/panel-title/PanelTitle.d.ts +5 -0
- package/panel/components/panel-title/index.d.ts +1 -0
- package/panel/index.d.ts +2 -0
- package/panel/index.js +7 -0
- package/panel/intl/translations.json.d.ts +15 -0
- package/utils/useIsMobileDevice.d.ts +1 -0
- package/index.css +0 -1
- package/index.mjs +0 -6621
- package/lib/Layout.d.ts +0 -51
- package/lib/Layout.stories.d.ts +0 -7
package/lib/Layout.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
export interface SidebarLinkGroup {
|
|
4
|
-
title?: string;
|
|
5
|
-
items: SidebarLink[];
|
|
6
|
-
}
|
|
7
|
-
export interface SidebarLink {
|
|
8
|
-
title: string;
|
|
9
|
-
href: string;
|
|
10
|
-
icon: LucideIcon;
|
|
11
|
-
}
|
|
12
|
-
export interface SidebarUser {
|
|
13
|
-
name: string;
|
|
14
|
-
title: string;
|
|
15
|
-
}
|
|
16
|
-
type HEX = `#${string}`;
|
|
17
|
-
interface App {
|
|
18
|
-
name: string;
|
|
19
|
-
shortName: string;
|
|
20
|
-
color?: HEX;
|
|
21
|
-
}
|
|
22
|
-
export interface MidasLayout {
|
|
23
|
-
items: SidebarLinkGroup[];
|
|
24
|
-
title: string;
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
headerChildren: React.ReactNode;
|
|
27
|
-
user: SidebarUser;
|
|
28
|
-
app: App;
|
|
29
|
-
clientSideRouter?: (path: string, routerOptions: undefined) => void;
|
|
30
|
-
}
|
|
31
|
-
export interface MidasHeader {
|
|
32
|
-
title: string;
|
|
33
|
-
headerChildren: React.ReactNode;
|
|
34
|
-
user: SidebarUser;
|
|
35
|
-
app: App;
|
|
36
|
-
isOpened?: boolean;
|
|
37
|
-
setIsOpened?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
38
|
-
setIsCollapsed?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
39
|
-
}
|
|
40
|
-
export interface MidasSidebar {
|
|
41
|
-
items: SidebarLinkGroup[];
|
|
42
|
-
app: App;
|
|
43
|
-
isOpened?: boolean;
|
|
44
|
-
isCollapsed: boolean;
|
|
45
|
-
setIsCollapsed: React.Dispatch<React.SetStateAction<boolean>>;
|
|
46
|
-
clientSideRouter?: (path: string, routerOptions: undefined) => void;
|
|
47
|
-
}
|
|
48
|
-
export declare const Layout: React.FC<MidasLayout>;
|
|
49
|
-
export declare const Sidebar: React.FC<MidasSidebar>;
|
|
50
|
-
export declare const Header: React.FC<MidasHeader>;
|
|
51
|
-
export {};
|
package/lib/Layout.stories.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Layout } from './Layout';
|
|
3
|
-
declare const meta: Meta<typeof Layout>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Layout>;
|
|
6
|
-
export declare const Primary: Story;
|
|
7
|
-
export declare const OnlyHeader: Story;
|