@smart-factor/gem-ui-components 0.0.3 → 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.
@@ -1,4 +1,4 @@
1
- import { D as e } from "../../Drawer-STwjDQmP.js";
1
+ import { D as e } from "../../Drawer-iSM2PgEO.js";
2
2
  export {
3
3
  e as Drawer
4
4
  };
@@ -1,8 +1,11 @@
1
+ import { SizingProps } from '@mui/system';
2
+
1
3
  export interface SearchInputProps {
2
4
  setSearch: (newValue: string) => void;
3
5
  placeholder: string;
4
6
  search: string;
5
7
  onChange?: () => void;
6
8
  isLoading?: boolean;
9
+ width?: SizingProps['width'];
7
10
  }
8
- export declare function SearchInput({ isLoading, placeholder, search, setSearch, onChange, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function SearchInput({ isLoading, placeholder, search, setSearch, onChange, width, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,8 @@ export interface ResizableWrapperProps {
3
3
  children: React.ReactNode;
4
4
  isOpen: boolean;
5
5
  customCloseWidth?: number;
6
+ customOpenWidth?: number;
6
7
  customCloseHeight?: number;
7
8
  direction: 'horizontal' | 'vertical';
8
9
  }
9
- export declare const ResizableWrapper: ({ direction, children, isOpen, customCloseWidth, customCloseHeight, }: ResizableWrapperProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ResizableWrapper: ({ direction, children, isOpen, customCloseWidth, customCloseHeight, customOpenWidth, }: ResizableWrapperProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { SizingProps } from '@mui/system';
2
+
3
+ export interface TreeItemProps {
4
+ id: string;
5
+ checked: boolean;
6
+ label: string;
7
+ children: TreeItemProps[];
8
+ handleCheck?: (id: string, checked: boolean) => void;
9
+ }
10
+ interface TreeProps<T> {
11
+ items: T[];
12
+ handleCheck?: (id: string, checked: boolean) => void;
13
+ height?: SizingProps['height'];
14
+ width?: SizingProps['width'];
15
+ expanded?: string[];
16
+ }
17
+ export declare const Tree: <T extends TreeItemProps>({ items, handleCheck, width, height, expanded, }: TreeProps<T>) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Tree } from './Tree';
3
+
4
+ declare const meta: Meta<typeof Tree>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof Tree>;
7
+ export declare const Docs: Story;
@@ -0,0 +1 @@
1
+ export { Tree } from './Tree';
@@ -0,0 +1,4 @@
1
+ import { T as o } from "../../Tree-DhFKd3iM.js";
2
+ export {
3
+ o as Tree
4
+ };
package/dist/main.d.ts CHANGED
@@ -17,6 +17,7 @@ export { StickyContainer } from './components/StickyContainer/StickyContainer';
17
17
  export * from './components/TableComponents';
18
18
  export { TabsPanel } from './components/TabsPanel/TabsPanel';
19
19
  export * from './components/Toast';
20
+ export { Tree } from './components/Tree/Tree';
20
21
  export * from './hooks';
21
22
  export { theme } from './theme/theme';
22
23
  export { Accordion, AccordionDetails, styled, type Theme, ThemeProvider, Typography, useTheme, } from '@mui/material';