@gobolt/genesis 0.6.3 → 0.7.2-beta.0

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.
@@ -0,0 +1,29 @@
1
+ import { AvatarProps, ButtonProps, OverflowMenuItem } from '../..';
2
+ import { ReactNode } from 'react';
3
+ type SidePanelAction = {
4
+ label: string;
5
+ btnProps?: ButtonProps;
6
+ menuItemProps?: Omit<React.ComponentProps<typeof OverflowMenuItem>, "children" | "onClick">;
7
+ onClick: () => void;
8
+ };
9
+ export interface SidePanelProps {
10
+ type: "full" | "float";
11
+ open: boolean;
12
+ children?: ReactNode;
13
+ placement?: "left" | "right";
14
+ header: {
15
+ avatar?: AvatarProps;
16
+ title: string;
17
+ description?: string;
18
+ showBackBtn?: boolean;
19
+ actions?: SidePanelAction[];
20
+ onClose: () => void;
21
+ onBackBtnClick?: () => void;
22
+ };
23
+ footer?: {
24
+ show?: boolean;
25
+ actions?: SidePanelAction[];
26
+ };
27
+ }
28
+ declare const SidePanel: ({ type, open, children, placement, header, footer, }: SidePanelProps) => import("react/jsx-runtime").JSX.Element;
29
+ export default SidePanel;
@@ -0,0 +1,2 @@
1
+ export { default } from './SidePanel';
2
+ export type { SidePanelProps } from './SidePanel';
@@ -0,0 +1,8 @@
1
+ import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
+ export declare const StyledSidePanel: any;
3
+ export declare const ScrollableContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ interface StickyHeaderProperties {
5
+ theme?: GenesisTheme;
6
+ }
7
+ export declare const StickyHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../..').TileProps, StickyHeaderProperties>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('../..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
8
+ export {};
@@ -59,6 +59,8 @@ export { default as Select } from './Select';
59
59
  export type { SelectProps } from './Select';
60
60
  export { default as Shapes } from './Shapes';
61
61
  export type { ShapesProps } from './Shapes';
62
+ export { default as SidePanel } from './SidePanel';
63
+ export type { SidePanelProps } from './SidePanel';
62
64
  export { default as Switch } from './Switch';
63
65
  export type { SwitchProps } from './Switch';
64
66
  export { default as Table } from './Table';