@gobolt/genesis 0.8.4 → 0.9.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,25 @@
1
+ import { ButtonProps } from '../..';
2
+ import { ReactNode } from 'react';
3
+ type ModalAction = {
4
+ label: string;
5
+ btnProps?: ButtonProps;
6
+ onClick: () => void;
7
+ };
8
+ export type ModalSize = "sm" | "md" | "lg";
9
+ export interface ModalProps {
10
+ open: boolean;
11
+ size?: ModalSize;
12
+ closable?: boolean;
13
+ children?: ReactNode;
14
+ header: {
15
+ title: string;
16
+ description?: string;
17
+ onClose: () => void;
18
+ };
19
+ footer?: {
20
+ show?: boolean;
21
+ actions?: ModalAction[];
22
+ };
23
+ }
24
+ declare const Modal: ({ open, size, closable, children, header, footer, }: ModalProps) => import("react/jsx-runtime").JSX.Element;
25
+ export default Modal;
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Modal } from '../Modal';
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Modal>;
6
+ export declare const Default: Story;
7
+ export declare const TitleOnly: Story;
8
+ export declare const WithFooter: Story;
9
+ export declare const WithFooterMultipleActions: Story;
10
+ export declare const SmallSize: Story;
11
+ export declare const LargeSize: Story;
12
+ export declare const ScrollableContent: Story;
13
+ export declare const WithForm: Story;
14
+ export declare const NotClosable: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default } from './Modal';
2
+ export type { ModalProps, ModalSize } from './Modal';
@@ -0,0 +1,2 @@
1
+ export declare const StyledModal: any;
2
+ 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;
@@ -41,6 +41,8 @@ export { default as Layout } from './Layout';
41
41
  export type { LayoutProps } from './Layout';
42
42
  export { default as Message } from './Message';
43
43
  export type { MessageProps } from './Message';
44
+ export { default as Modal } from './Modal';
45
+ export type { ModalProps, ModalSize } from './Modal';
44
46
  export { default as NavBar } from './NavBar';
45
47
  export type { NavBarProps, NavBarItem } from './NavBar';
46
48
  export { default as Notification } from './Notification';