@kashifd/jwero-components 0.8.32 → 0.8.33
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.es.js +6144 -5955
- package/dist/index.umd.js +99 -99
- package/dist/src/App.d.ts +1 -0
- package/dist/src/components/jwero_tabs2/example.d.ts +2 -0
- package/dist/src/components/jwero_tabs2/index.d.ts +35 -0
- package/dist/src/dashboard/Dashboard.d.ts +2 -0
- package/dist/src/dashboard/components/CodeBlock.d.ts +8 -0
- package/dist/src/dashboard/components/ComponentPreview.d.ts +11 -0
- package/dist/src/dashboard/components/CopyButton.d.ts +6 -0
- package/dist/src/dashboard/components/Header.d.ts +6 -0
- package/dist/src/dashboard/components/Layout.d.ts +10 -0
- package/dist/src/dashboard/components/PropsTable.d.ts +7 -0
- package/dist/src/dashboard/components/Sidebar.d.ts +9 -0
- package/dist/src/dashboard/components/TabPanel.d.ts +13 -0
- package/dist/src/dashboard/components/ThemeToggle.d.ts +5 -0
- package/dist/src/dashboard/pages/CustomFieldDoc.d.ts +2 -0
- package/dist/src/dashboard/pages/DashboardHome.d.ts +2 -0
- package/dist/src/dashboard/pages/PrimaryButtonDoc.d.ts +2 -0
- package/dist/src/dashboard/pages/Tabs2Doc.d.ts +2 -0
- package/dist/src/dashboard/pages/TabsDoc.d.ts +2 -0
- package/dist/src/dashboard/types/index.d.ts +26 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/src/App.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare function App(): import("react/jsx-runtime").JSX.Element;
|
|
|
2
2
|
export default App;
|
|
3
3
|
export declare const Test2: () => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const TabsTest: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const Tabs2Test: () => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export declare const JweroMenuTest: () => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export declare const TableTest: () => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const JweroVerticalTabsTest: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
type TabItem = {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
iconAtStart?: boolean;
|
|
9
|
+
onlyIcon?: boolean;
|
|
10
|
+
count?: number;
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
};
|
|
13
|
+
type JweroTabs2Type = {
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
tabsObj: TabItem[];
|
|
16
|
+
panelObj: {
|
|
17
|
+
[key: string]: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
onChangeFunction?: (event: SyntheticEvent, newValue: string) => void;
|
|
20
|
+
customBorderBottom?: boolean;
|
|
21
|
+
customStartValue?: string;
|
|
22
|
+
customScrollButtons?: boolean;
|
|
23
|
+
tabListEndItem?: ReactNode;
|
|
24
|
+
tabListRightItem?: ReactNode;
|
|
25
|
+
boxSx?: SxProps;
|
|
26
|
+
tabListSx?: SxProps;
|
|
27
|
+
tabSx?: SxProps;
|
|
28
|
+
panelSx?: SxProps;
|
|
29
|
+
containerSx?: SxProps;
|
|
30
|
+
height?: string | number;
|
|
31
|
+
minHeight?: string | number;
|
|
32
|
+
maxHeight?: string | number;
|
|
33
|
+
};
|
|
34
|
+
declare const JweroTabs2: ({ children, tabsObj, panelObj, onChangeFunction, customBorderBottom, customScrollButtons, customStartValue, tabListRightItem, tabListEndItem, boxSx, tabListSx, tabSx, panelSx, containerSx, height, minHeight, maxHeight, }: JweroTabs2Type) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export default JweroTabs2;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface CodeBlockProps {
|
|
2
|
+
code: string;
|
|
3
|
+
language?: string;
|
|
4
|
+
showLineNumbers?: boolean;
|
|
5
|
+
maxHeight?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CodeBlock: ({ code, language, showLineNumbers, maxHeight, }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CodeBlock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ComponentPreviewProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
centered?: boolean;
|
|
6
|
+
minHeight?: string;
|
|
7
|
+
padding?: string;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ComponentPreview: ({ children, centered, minHeight, padding, backgroundColor, }: ComponentPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ComponentPreview;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SidebarItem } from '../types';
|
|
3
|
+
|
|
4
|
+
interface LayoutProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
sidebarItems: SidebarItem[];
|
|
7
|
+
onThemeToggle: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Layout: ({ children, sidebarItems, onThemeToggle }: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Layout;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SidebarItem } from '../types';
|
|
2
|
+
|
|
3
|
+
interface SidebarProps {
|
|
4
|
+
items: SidebarItem[];
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const Sidebar: ({ items, open, onClose }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Sidebar;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TabConfig {
|
|
4
|
+
label: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface CustomTabPanelProps {
|
|
9
|
+
tabs: TabConfig[];
|
|
10
|
+
defaultTab?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const CustomTabPanel: ({ tabs, defaultTab }: CustomTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default CustomTabPanel;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface PropDefinition {
|
|
2
|
+
name: string;
|
|
3
|
+
type: string;
|
|
4
|
+
default?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ComponentExample {
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
code: string;
|
|
12
|
+
preview: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface ComponentDocumentation {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
importStatement: string;
|
|
18
|
+
props: PropDefinition[];
|
|
19
|
+
examples: ComponentExample[];
|
|
20
|
+
}
|
|
21
|
+
export interface SidebarItem {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
path: string;
|
|
25
|
+
category?: string;
|
|
26
|
+
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { default as JweroSearchBox } from './components/jwero_search_box';
|
|
|
8
8
|
export { default as JweroSnackbar } from './components/jwero_snackbar/index';
|
|
9
9
|
export { default as JweroStatusChip } from './components/jwero_status_chip';
|
|
10
10
|
export { default as JweroTabs } from './components/jwero_tabs';
|
|
11
|
+
export { default as JweroTabs2 } from './components/jwero_tabs2';
|
|
11
12
|
export { default as JweroTooltip } from './components/jwero_tooltip';
|
|
12
13
|
export { default as JweroViewOptions } from './components/jwero_view_options';
|
|
13
14
|
export { default as JweroCheckbox } from './components/jwero_checkbox';
|