bianic-ui 1.3.0-beta → 1.4.0-beta
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/cjs/index.js +177 -46
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/FileTree/index.d.ts +12 -0
- package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +2 -1
- package/dist/cjs/types/components/Forms/SegmentButton/config.d.ts +7 -1
- package/dist/cjs/types/components/Forms/TextInput/Simulation.d.ts +4 -7
- package/dist/cjs/types/components/Forms/TextInput/configs.d.ts +4 -0
- package/dist/cjs/types/components/Forms/TextInput/index.d.ts +6 -2
- package/dist/cjs/types/components/Menu/Example/BasicExample.d.ts +3 -0
- package/dist/cjs/types/components/Menu/Example/FilterExample.d.ts +9 -0
- package/dist/cjs/types/components/Menu/Example/NestedExample.d.ts +14 -0
- package/dist/cjs/types/components/Menu/MenuContainer.d.ts +15 -0
- package/dist/cjs/types/components/Menu/MenuItem.d.ts +18 -0
- package/dist/cjs/types/components/Menu/index.d.ts +3 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +1 -1
- package/dist/cjs/types/components/Tab/CardTab.d.ts +13 -0
- package/dist/cjs/types/components/Tab/CardTabConfig.d.ts +26 -0
- package/dist/cjs/types/components/Tab/CardTabDemo.d.ts +3 -0
- package/dist/cjs/types/components/Tab/Tab.d.ts +1 -13
- package/dist/cjs/types/components/Tab/index.d.ts +1 -0
- package/dist/cjs/types/components/Tooltip/PropsInterface.d.ts +9 -0
- package/dist/cjs/types/components/Tooltip/Simulation.d.ts +15 -0
- package/dist/cjs/types/components/Tooltip/index.d.ts +1 -7
- package/dist/cjs/types/components/index.d.ts +2 -0
- package/dist/cjs/types/stories/FileTree/FileTree.stories.d.ts +15 -0
- package/dist/cjs/types/stories/Form/TextInput/TextInput.stories.d.ts +6 -3
- package/dist/cjs/types/stories/{Form/TextInput/TextInputSimulation.stories.d.ts → Menu/BasicExample.stories.d.ts} +3 -4
- package/dist/{esm/types/stories/Form/TextInput/TextInputSimulation.stories.d.ts → cjs/types/stories/Menu/FilterExample.stories.d.ts} +3 -4
- package/dist/cjs/types/stories/Menu/MenuContainer.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Menu/MenuItem.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Menu/NestedExample.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Modal/Modal.stories.d.ts +0 -1
- package/dist/cjs/types/stories/Modal/ModalDemo.stories.d.ts +0 -1
- package/dist/cjs/types/stories/Tab/CardTab.stories.d.ts +18 -0
- package/dist/cjs/types/stories/Tab/CardTabDemo.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Tab/TabHead.stories.d.ts +0 -1
- package/dist/cjs/types/stories/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/esm/index.js +176 -48
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/FileTree/index.d.ts +12 -0
- package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +2 -1
- package/dist/esm/types/components/Forms/SegmentButton/config.d.ts +7 -1
- package/dist/esm/types/components/Forms/TextInput/Simulation.d.ts +4 -7
- package/dist/esm/types/components/Forms/TextInput/configs.d.ts +4 -0
- package/dist/esm/types/components/Forms/TextInput/index.d.ts +6 -2
- package/dist/esm/types/components/Menu/Example/BasicExample.d.ts +3 -0
- package/dist/esm/types/components/Menu/Example/FilterExample.d.ts +9 -0
- package/dist/esm/types/components/Menu/Example/NestedExample.d.ts +14 -0
- package/dist/esm/types/components/Menu/MenuContainer.d.ts +15 -0
- package/dist/esm/types/components/Menu/MenuItem.d.ts +18 -0
- package/dist/esm/types/components/Menu/index.d.ts +3 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +1 -1
- package/dist/esm/types/components/Tab/CardTab.d.ts +13 -0
- package/dist/esm/types/components/Tab/CardTabConfig.d.ts +26 -0
- package/dist/esm/types/components/Tab/CardTabDemo.d.ts +3 -0
- package/dist/esm/types/components/Tab/Tab.d.ts +1 -13
- package/dist/esm/types/components/Tab/index.d.ts +1 -0
- package/dist/esm/types/components/Tooltip/PropsInterface.d.ts +9 -0
- package/dist/esm/types/components/Tooltip/Simulation.d.ts +15 -0
- package/dist/esm/types/components/Tooltip/index.d.ts +1 -7
- package/dist/esm/types/components/index.d.ts +2 -0
- package/dist/esm/types/stories/FileTree/FileTree.stories.d.ts +15 -0
- package/dist/esm/types/stories/Form/TextInput/TextInput.stories.d.ts +6 -3
- package/dist/esm/types/stories/Menu/BasicExample.stories.d.ts +13 -0
- package/dist/esm/types/stories/Menu/FilterExample.stories.d.ts +13 -0
- package/dist/esm/types/stories/Menu/MenuContainer.stories.d.ts +13 -0
- package/dist/esm/types/stories/Menu/MenuItem.stories.d.ts +13 -0
- package/dist/esm/types/stories/Menu/NestedExample.stories.d.ts +13 -0
- package/dist/esm/types/stories/Modal/Modal.stories.d.ts +0 -1
- package/dist/esm/types/stories/Modal/ModalDemo.stories.d.ts +0 -1
- package/dist/esm/types/stories/Tab/CardTab.stories.d.ts +18 -0
- package/dist/esm/types/stories/Tab/CardTabDemo.stories.d.ts +13 -0
- package/dist/esm/types/stories/Tab/TabHead.stories.d.ts +0 -1
- package/dist/esm/types/stories/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/index.d.ts +125 -87
- package/package.json +1 -1
- package/src/font/Arial/arial.ttf +0 -0
- package/src/font/Arial/arialblack.ttf +0 -0
- package/src/font/Arial/arialbold.ttf +0 -0
- package/src/font/Arial/arialbolditalic.ttf +0 -0
- package/src/font/Arial/arialitalic.ttf +0 -0
- package/tailwind.config.js +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef } from 'react';
|
|
2
|
+
interface TreeNode extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
3
|
+
nodes?: TreeNode[];
|
|
4
|
+
color?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FileTreeProps {
|
|
8
|
+
color?: string;
|
|
9
|
+
data: TreeNode[];
|
|
10
|
+
}
|
|
11
|
+
declare const FileTree: ({ data, color }: FileTreeProps) => React.JSX.Element;
|
|
12
|
+
export default FileTree;
|
|
@@ -4,6 +4,7 @@ export interface SegmentButtonItemProps extends ComponentPropsWithoutRef<'button
|
|
|
4
4
|
size: 'lg' | 'md' | 'sm' | 'tn';
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
disabled: boolean;
|
|
7
|
+
isfitContent?: boolean;
|
|
7
8
|
onClick: () => void;
|
|
8
9
|
}
|
|
9
|
-
export default function SegmentButtonItem({ selected, size, children, disabled, onClick, }: SegmentButtonItemProps): React.JSX.Element;
|
|
10
|
+
export default function SegmentButtonItem({ selected, size, children, disabled, isfitContent, onClick, }: SegmentButtonItemProps): React.JSX.Element;
|
|
@@ -14,4 +14,10 @@ declare const sizeConfig: {
|
|
|
14
14
|
sm: string;
|
|
15
15
|
tn: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
declare const minWidthConfig: {
|
|
18
|
+
lg: string;
|
|
19
|
+
md: string;
|
|
20
|
+
sm: string;
|
|
21
|
+
tn: string;
|
|
22
|
+
};
|
|
23
|
+
export { isSelectedConfig, roundedConfig, sizeConfig, minWidthConfig };
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface TextInputSimulationProps {
|
|
3
3
|
size?: 'md' | 'sm';
|
|
4
|
+
backgroundColor?: string;
|
|
4
5
|
}
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
size: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export default TextInputSimulation;
|
|
6
|
+
export declare const TextInputSimulationComponent: ({ size, }: TextInputSimulationProps) => React.JSX.Element;
|
|
7
|
+
export declare const TransparentTextInputSimulationComponent: ({ backgroundColor, size, }: TextInputSimulationProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -9,12 +9,14 @@ interface TextInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'>
|
|
|
9
9
|
label?: string;
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
readOnly?: boolean;
|
|
12
|
-
variant?: 'password' | 'text' | 'number' | 'date';
|
|
12
|
+
variant?: 'password' | 'text' | 'number' | 'date' | 'text-transparent';
|
|
13
13
|
value?: string;
|
|
14
14
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
15
15
|
maxLength?: number;
|
|
16
|
+
inputClassName?: string;
|
|
17
|
+
isFlatRight?: boolean;
|
|
16
18
|
}
|
|
17
|
-
declare function TextInput({ descText, disabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, maxLength, ...props }: TextInputProps): React.JSX.Element;
|
|
19
|
+
declare function TextInput({ descText, disabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, maxLength, inputClassName, isFlatRight, ...props }: TextInputProps): React.JSX.Element;
|
|
18
20
|
declare namespace TextInput {
|
|
19
21
|
var defaultProps: {
|
|
20
22
|
descText: string;
|
|
@@ -29,6 +31,8 @@ declare namespace TextInput {
|
|
|
29
31
|
variant: string;
|
|
30
32
|
value: string;
|
|
31
33
|
onChange: () => void;
|
|
34
|
+
inputClassName: string;
|
|
35
|
+
isFlatRight: boolean;
|
|
32
36
|
};
|
|
33
37
|
}
|
|
34
38
|
export default TextInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface NestedExampleProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function NestedExample({}: NestedExampleProps): React.JSX.Element;
|
|
8
|
+
declare namespace NestedExample {
|
|
9
|
+
var defaultProps: {
|
|
10
|
+
className: string;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default NestedExample;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MenuContainerProps {
|
|
3
|
+
isTopFlat?: boolean;
|
|
4
|
+
children: React.ReactNode | undefined;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function MenuContainer({ isTopFlat, children, open, onClose, className, }: MenuContainerProps): false | React.JSX.Element | undefined;
|
|
10
|
+
declare namespace MenuContainer {
|
|
11
|
+
var defaultProps: {
|
|
12
|
+
isTopFlat: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default MenuContainer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface MenuItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
5
|
+
label: string;
|
|
6
|
+
isChecked?: boolean | undefined;
|
|
7
|
+
caption?: string | undefined;
|
|
8
|
+
children?: React.ReactNode | undefined;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, ...props }: MenuItemProps): React.JSX.Element;
|
|
12
|
+
declare namespace MenuItem {
|
|
13
|
+
var defaultProps: {
|
|
14
|
+
className: string;
|
|
15
|
+
onClick: () => void;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export default MenuItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import '../../tailwind.css';
|
|
3
3
|
export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
-
size
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
zIndex?: number;
|
|
6
6
|
title?: string;
|
|
7
7
|
open: boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface TabProps extends ComponentPropsWithoutRef<'button'> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
iconRight?: React.ReactNode;
|
|
6
|
+
iconLeft?: React.ReactNode;
|
|
7
|
+
mode?: 'dropdown' | 'default';
|
|
8
|
+
onDropdownClick?: () => void;
|
|
9
|
+
size?: 'md' | 'sm';
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const CardTab: ({ isActive, iconLeft, iconRight, mode, onDropdownClick, size, label, disabled, ...props }: TabProps) => React.JSX.Element;
|
|
13
|
+
export default CardTab;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const colorConfig: {
|
|
2
|
+
active: string;
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const dropdownColorConfig: {
|
|
6
|
+
active: string;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const paddingConfig: {
|
|
10
|
+
md: {
|
|
11
|
+
dropdown: string;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
sm: {
|
|
15
|
+
dropdown: string;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const textConfig: {
|
|
20
|
+
md: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const radiusConfig: {
|
|
24
|
+
md: string;
|
|
25
|
+
sm: string;
|
|
26
|
+
};
|
|
@@ -3,20 +3,8 @@ export interface TabProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
active: boolean;
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
|
-
card?: boolean;
|
|
7
6
|
mode?: 'horizontal' | 'vertical';
|
|
8
7
|
fit?: 'fit-content' | 'maximize';
|
|
9
8
|
size?: 'md' | 'sm';
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
declare namespace Tab {
|
|
13
|
-
var defaultProps: {
|
|
14
|
-
children: null;
|
|
15
|
-
mode: string;
|
|
16
|
-
fit: string;
|
|
17
|
-
size: string;
|
|
18
|
-
icon: null;
|
|
19
|
-
card: boolean;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export default Tab;
|
|
10
|
+
export default function Tab({ children, active, icon, disabled, mode, fit, size, ...rest }: TabProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
delay?: number;
|
|
6
|
+
maxWidth?: string;
|
|
7
|
+
direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
8
|
+
}
|
|
9
|
+
export default TooltipProps;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import TooltipProps from './PropsInterface';
|
|
3
|
+
declare function TooltipDemo(props: TooltipProps): React.JSX.Element;
|
|
4
|
+
declare namespace TooltipDemo {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
delay: number;
|
|
7
|
+
direction: string;
|
|
8
|
+
maxWidth: string;
|
|
9
|
+
} | {
|
|
10
|
+
delay?: undefined;
|
|
11
|
+
direction?: undefined;
|
|
12
|
+
maxWidth?: undefined;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default TooltipDemo;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
content: React.ReactNode;
|
|
5
|
-
delay?: number;
|
|
6
|
-
maxWidth?: string;
|
|
7
|
-
direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
8
|
-
}
|
|
2
|
+
import TooltipProps from './PropsInterface';
|
|
9
3
|
declare function Tooltip(props: TooltipProps): React.JSX.Element;
|
|
10
4
|
declare namespace Tooltip {
|
|
11
5
|
var defaultProps: {
|
|
@@ -8,6 +8,8 @@ export { default as Breadcrumb } from './Breadcrumb/Breadcrumb';
|
|
|
8
8
|
export { Button, ButtonApp } from './Button';
|
|
9
9
|
export { default as Color } from './Color';
|
|
10
10
|
export { default as Divider } from './Divider/Divider';
|
|
11
|
+
export { default as FileTree } from './FileTree';
|
|
12
|
+
export { MenuContainer, MenuItem } from './Menu';
|
|
11
13
|
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, } from './Forms';
|
|
12
14
|
export { default as Modal } from './Modal/Modal';
|
|
13
15
|
export { default as PaginationBar } from './PaginationBar/PaginationBar';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { FileTreeProps } from '../../components/FileTree';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ data, color }: FileTreeProps) => import("react").JSX.Element;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const TwoLevelTree: Story;
|
|
15
|
+
export declare const MixedLevelTree: Story;
|
|
@@ -6,10 +6,13 @@ declare const meta: {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
|
-
tags: string[];
|
|
10
9
|
args: {};
|
|
11
10
|
};
|
|
12
11
|
export default meta;
|
|
13
12
|
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
13
|
+
export declare const TextInputDemo: Story;
|
|
14
|
+
export declare const TransparentTextInputDemo: Story;
|
|
15
|
+
export declare const PasswordInputDemo: Story;
|
|
16
|
+
export declare const NumberInputDemo: Story;
|
|
17
|
+
export declare const DateInputDemo: Story;
|
|
18
|
+
export declare const TextInputDemoWithIcon: Story;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import Basic from '../../components/Menu/Example/BasicExample';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof Basic;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
|
-
tags: string[];
|
|
10
9
|
args: {};
|
|
11
10
|
};
|
|
12
11
|
export default meta;
|
|
13
12
|
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const
|
|
13
|
+
export declare const BasicExample: Story;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import Filter from '../../components/Menu/Example/FilterExample';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof Filter;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
|
-
tags: string[];
|
|
10
9
|
args: {};
|
|
11
10
|
};
|
|
12
11
|
export default meta;
|
|
13
12
|
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const
|
|
13
|
+
export declare const FilterExample: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { MenuContainer } from '../../components';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof MenuContainer;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const MenuContainerPlayground: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { MenuItem } from '../../components';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof MenuItem;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const MenuItemPlayground: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import Nested from '../../components/Menu/Example/NestedExample';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Nested;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const NestedExample: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ isActive, iconLeft, iconRight, mode, onDropdownClick, size, label, disabled, ...props }: import("../../components/Tab/CardTab").TabProps) => React.JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
docs: {
|
|
9
|
+
toc: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
args: {};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const CardTabDemo: Story;
|
|
17
|
+
export declare const CardTabNoIconDemo: Story;
|
|
18
|
+
export declare const CardTabDropdownDemo: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: () => import("react").JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: number;
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const CardTabSimulation: Story;
|
|
@@ -12,7 +12,6 @@ declare const meta: {
|
|
|
12
12
|
export default meta;
|
|
13
13
|
type Story = StoryObj<typeof meta>;
|
|
14
14
|
export declare const TabHeadHorizontal: Story;
|
|
15
|
-
export declare const TabCardHorizontal: Story;
|
|
16
15
|
export declare const TabHeadSmallHorizontal: Story;
|
|
17
16
|
export declare const TabHeadVertical: Story;
|
|
18
17
|
export declare const TabHeadSmallVertical: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import TooltipDemo from '../../components/Tooltip/Simulation';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof TooltipDemo;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|