@lateralus-ai/shipping-ui 1.3.3 → 1.3.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/README.md +1 -1
- package/dist/components/Sidebar/Layout.d.ts +4 -1
- package/dist/components/Sidebar/SideContainer.d.ts +5 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/index.cjs +35 -35
- package/dist/index.esm.js +2476 -2450
- package/package.json +10 -3
- package/src/components/Sidebar/Container.tsx +9 -10
- package/src/components/Sidebar/Layout.tsx +15 -6
- package/src/components/Sidebar/SideContainer.tsx +31 -0
- package/src/components/Sidebar/index.ts +8 -7
- package/src/stories/PDFViewer.stories.tsx +1 -1
- package/src/stories/Sidebar.tsx +23 -9
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ContainerProps } from './Container';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
interface LayoutProps extends ContainerProps {
|
|
3
4
|
isCollapsed?: boolean;
|
|
5
|
+
sideContainer?: ReactNode;
|
|
6
|
+
sideClassName?: string;
|
|
4
7
|
onSwitchLayout?: (isCollapsed: boolean) => void;
|
|
5
8
|
}
|
|
6
|
-
export declare const Layout: ({ className, children, isCollapsed, onSwitchLayout, ...props }: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Layout: ({ className, children, isCollapsed, sideContainer, sideClassName, onSwitchLayout, ...props }: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SideContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const SideContainer: ({ className, children, ...props }: SideContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Provider } from './Provider';
|
|
2
2
|
export { Container } from './Container';
|
|
3
|
+
export { SideContainer } from './SideContainer';
|
|
3
4
|
export { Layout } from './Layout';
|
|
4
5
|
export { Button } from './Button';
|
|
5
6
|
export { ToggleCollapseButton } from './ToggleCollapseButton';
|