@gobolt/genesis 0.8.0 → 0.8.1
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/components/SidePanel/SidePanel.d.ts +30 -0
- package/dist/components/SidePanel/__stories__/SidePanel.stories.d.ts +18 -0
- package/dist/components/SidePanel/__tests__/SidePanel.test.d.ts +1 -0
- package/dist/components/SidePanel/index.d.ts +2 -0
- package/dist/components/SidePanel/styles.d.ts +8 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +1392 -269
- package/dist/index.js +1393 -270
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
closable?: boolean;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
placement?: "left" | "right";
|
|
15
|
+
header: {
|
|
16
|
+
avatar?: AvatarProps;
|
|
17
|
+
title: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
showBackBtn?: boolean;
|
|
20
|
+
actions?: SidePanelAction[];
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
onBackBtnClick?: () => void;
|
|
23
|
+
};
|
|
24
|
+
footer?: {
|
|
25
|
+
show?: boolean;
|
|
26
|
+
actions?: SidePanelAction[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
declare const SidePanel: ({ type, open, closable, children, placement, header, footer, }: SidePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default SidePanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as SidePanel } from '../SidePanel';
|
|
3
|
+
declare const meta: Meta<typeof SidePanel>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SidePanel>;
|
|
6
|
+
export declare const SidePanelStory: Story;
|
|
7
|
+
export declare const WithTabs: Story;
|
|
8
|
+
export declare const WithBackButton: Story;
|
|
9
|
+
export declare const WithAvatar: Story;
|
|
10
|
+
export declare const TitleOnly: Story;
|
|
11
|
+
export declare const WithDescription: Story;
|
|
12
|
+
export declare const WithFooterSingleAction: Story;
|
|
13
|
+
export declare const WithFooterMultipleActions: Story;
|
|
14
|
+
export declare const WithFooterCustomProps: Story;
|
|
15
|
+
export declare const FloatType: Story;
|
|
16
|
+
export declare const LeftPlacement: Story;
|
|
17
|
+
export declare const Closable: Story;
|
|
18
|
+
export declare const NotClosable: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -63,6 +63,8 @@ export { default as Select } from './Select';
|
|
|
63
63
|
export type { SelectProps } from './Select';
|
|
64
64
|
export { default as Shapes } from './Shapes';
|
|
65
65
|
export type { ShapesProps } from './Shapes';
|
|
66
|
+
export { default as SidePanel } from './SidePanel';
|
|
67
|
+
export type { SidePanelProps } from './SidePanel';
|
|
66
68
|
export { default as Switch } from './Switch';
|
|
67
69
|
export type { SwitchProps } from './Switch';
|
|
68
70
|
export { default as Table } from './Table';
|