@gobolt/genesis 0.8.0 → 0.8.2
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/TileLog/TileLog.d.ts +1 -1
- package/dist/components/TileLog/TileLogSkeleton.d.ts +2 -0
- package/dist/components/TileLog/__stories__/TileLog.stories.d.ts +2 -0
- package/dist/components/TileLog/index.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +1412 -270
- package/dist/index.js +1413 -271
- 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 {};
|
|
@@ -7,6 +7,7 @@ export declare const Default: Story;
|
|
|
7
7
|
export declare const Success: Story;
|
|
8
8
|
export declare const InProgress: Story;
|
|
9
9
|
export declare const Error: Story;
|
|
10
|
+
export declare const Exception: Story;
|
|
10
11
|
export declare const Generic: Story;
|
|
11
12
|
export declare const None: Story;
|
|
12
13
|
export declare const WithNote: Story;
|
|
@@ -20,3 +21,4 @@ export declare const ErrorWithAuthor: Story;
|
|
|
20
21
|
export declare const FullTimeline: Story;
|
|
21
22
|
export declare const VariedContentTimeline: Story;
|
|
22
23
|
export declare const SingleEntry: Story;
|
|
24
|
+
export declare const Loading: Story;
|
|
@@ -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';
|