bianic-ui 1.4.0-beta → 1.5.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.
- package/README.md +7 -0
- package/dist/cjs/index.js +3604 -975
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +2 -2
- package/dist/cjs/types/components/Button/buttonConfigs.d.ts +6 -0
- package/dist/cjs/types/components/Forms/Checkbox/index.d.ts +2 -3
- package/dist/cjs/types/components/Forms/DropdownItem/Custom.d.ts +8 -2
- package/dist/cjs/types/components/Forms/LiveSearch/PropsInterface.d.ts +15 -0
- package/dist/cjs/types/components/Forms/LiveSearch/Simulation.d.ts +2 -4
- package/dist/cjs/types/components/Forms/LiveSearch/index.d.ts +4 -14
- package/dist/cjs/types/components/Forms/SelectInput/PropsInterface.d.ts +15 -0
- package/dist/cjs/types/components/Forms/SelectInput/Simulation.d.ts +2 -6
- package/dist/cjs/types/components/Forms/SelectInput/index.d.ts +2 -14
- package/dist/cjs/types/components/Forms/TextArea/ResizeIcon.d.ts +6 -0
- package/dist/cjs/types/components/Forms/TextArea/index.d.ts +3 -1
- package/dist/cjs/types/components/Forms/TextInput/index.d.ts +2 -1
- package/dist/cjs/types/components/Modal/Modal.d.ts +2 -7
- package/dist/cjs/types/components/PaginationBar/PaginationBarDemo.d.ts +5 -1
- package/dist/cjs/types/components/Progress/Bar/Simulation.d.ts +3 -0
- package/dist/cjs/types/components/Progress/Bar/Spinner/index.d.ts +7 -0
- package/dist/cjs/types/components/Progress/Bar/config.d.ts +16 -0
- package/dist/cjs/types/components/Progress/Bar/index.d.ts +8 -0
- package/dist/cjs/types/components/Progress/index.d.ts +2 -1
- package/dist/cjs/types/components/Scrollbar/DefaultSimulation.d.ts +3 -0
- package/dist/cjs/types/components/TabMenu/configs.d.ts +4 -0
- package/dist/cjs/types/components/Table/TableCell/Demo.d.ts +11 -0
- package/dist/cjs/types/components/Table/TableCell/TableTestSample.d.ts +11 -0
- package/dist/cjs/types/components/Table/TableCell/configs.d.ts +21 -0
- package/dist/cjs/types/components/Table/TableCell/index.d.ts +19 -0
- package/dist/cjs/types/components/Table/index.d.ts +1 -6
- package/dist/cjs/types/components/Typography/index.d.ts +1 -0
- package/dist/cjs/types/components/Window/index.d.ts +11 -0
- package/dist/cjs/types/components/Window/windowDemo.d.ts +3 -0
- package/dist/cjs/types/components/index.d.ts +4 -3
- package/dist/cjs/types/stories/Form/LiveSearch/LiveSearch.stories.d.ts +3 -2
- package/dist/cjs/types/stories/Form/SelectInput/SelectInput.stories.d.ts +4 -2
- package/dist/cjs/types/stories/PaginationBar/{PaginationBarstories.d.ts → PaginationBar.stories.d.ts} +0 -1
- package/dist/cjs/types/stories/PaginationBar/PaginationBarDemo.stories.d.ts +0 -1
- package/dist/cjs/types/stories/{Table/Table.stories.d.ts → Progress/Bar/ProgressBar.stories.d.ts} +2 -3
- package/dist/{esm/types/stories/Scrollbar/Simulation.stories.d.ts → cjs/types/stories/Progress/Bar/ProgressBarSimulation.stories.d.ts} +2 -3
- package/dist/cjs/types/stories/Scrollbar/DefaultSimulation.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Scrollbar/HiddenSimulation.stories.d.ts +2 -3
- package/dist/cjs/types/stories/Table/TableCell.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Table/TableCellDemo.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Table/TableTestSample.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Window/Window.stories.d.ts +12 -0
- package/dist/cjs/types/stories/{Scrollbar/Simulation.stories.d.ts → Window/WindowSimulation.stories.d.ts} +2 -3
- package/dist/cjs/types/stories/ZIndex/zindexTable.d.ts +3 -0
- package/dist/esm/index.js +3569 -938
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +2 -2
- package/dist/esm/types/components/Button/buttonConfigs.d.ts +6 -0
- package/dist/esm/types/components/Forms/Checkbox/index.d.ts +2 -3
- package/dist/esm/types/components/Forms/DropdownItem/Custom.d.ts +8 -2
- package/dist/esm/types/components/Forms/LiveSearch/PropsInterface.d.ts +15 -0
- package/dist/esm/types/components/Forms/LiveSearch/Simulation.d.ts +2 -4
- package/dist/esm/types/components/Forms/LiveSearch/index.d.ts +4 -14
- package/dist/esm/types/components/Forms/SelectInput/PropsInterface.d.ts +15 -0
- package/dist/esm/types/components/Forms/SelectInput/Simulation.d.ts +2 -6
- package/dist/esm/types/components/Forms/SelectInput/index.d.ts +2 -14
- package/dist/esm/types/components/Forms/TextArea/ResizeIcon.d.ts +6 -0
- package/dist/esm/types/components/Forms/TextArea/index.d.ts +3 -1
- package/dist/esm/types/components/Forms/TextInput/index.d.ts +2 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +2 -7
- package/dist/esm/types/components/PaginationBar/PaginationBarDemo.d.ts +5 -1
- package/dist/esm/types/components/Progress/Bar/Simulation.d.ts +3 -0
- package/dist/esm/types/components/Progress/Bar/Spinner/index.d.ts +7 -0
- package/dist/esm/types/components/Progress/Bar/config.d.ts +16 -0
- package/dist/esm/types/components/Progress/Bar/index.d.ts +8 -0
- package/dist/esm/types/components/Progress/index.d.ts +2 -1
- package/dist/esm/types/components/Scrollbar/DefaultSimulation.d.ts +3 -0
- package/dist/esm/types/components/TabMenu/configs.d.ts +4 -0
- package/dist/esm/types/components/Table/TableCell/Demo.d.ts +11 -0
- package/dist/esm/types/components/Table/TableCell/TableTestSample.d.ts +11 -0
- package/dist/esm/types/components/Table/TableCell/configs.d.ts +21 -0
- package/dist/esm/types/components/Table/TableCell/index.d.ts +19 -0
- package/dist/esm/types/components/Table/index.d.ts +1 -6
- package/dist/esm/types/components/Typography/index.d.ts +1 -0
- package/dist/esm/types/components/Window/index.d.ts +11 -0
- package/dist/esm/types/components/Window/windowDemo.d.ts +3 -0
- package/dist/esm/types/components/index.d.ts +4 -3
- package/dist/esm/types/stories/Form/LiveSearch/LiveSearch.stories.d.ts +3 -2
- package/dist/esm/types/stories/Form/SelectInput/SelectInput.stories.d.ts +4 -2
- package/dist/esm/types/stories/PaginationBar/{PaginationBarstories.d.ts → PaginationBar.stories.d.ts} +0 -1
- package/dist/esm/types/stories/PaginationBar/PaginationBarDemo.stories.d.ts +0 -1
- package/dist/esm/types/stories/{Table/Table.stories.d.ts → Progress/Bar/ProgressBar.stories.d.ts} +2 -3
- package/dist/esm/types/stories/{Form/SelectInput/SelectInput.Simulation.stories.d.ts → Progress/Bar/ProgressBarSimulation.stories.d.ts} +2 -2
- package/dist/esm/types/stories/Scrollbar/DefaultSimulation.stories.d.ts +13 -0
- package/dist/esm/types/stories/Scrollbar/HiddenSimulation.stories.d.ts +2 -3
- package/dist/esm/types/stories/Table/TableCell.stories.d.ts +13 -0
- package/dist/esm/types/stories/Table/TableCellDemo.stories.d.ts +13 -0
- package/dist/esm/types/stories/Table/TableTestSample.stories.d.ts +13 -0
- package/dist/esm/types/stories/Window/Window.stories.d.ts +12 -0
- package/dist/{cjs/types/stories/Form/SelectInput/SelectInput.Simulation.stories.d.ts → esm/types/stories/Window/WindowSimulation.stories.d.ts} +2 -2
- package/dist/esm/types/stories/ZIndex/zindexTable.d.ts +3 -0
- package/dist/index.d.ts +52 -78
- package/package.json +4 -5
- package/dist/cjs/types/components/Scrollbar/Simulation.d.ts +0 -3
- package/dist/cjs/types/components/Scrollbar/index.d.ts +0 -3
- package/dist/cjs/types/components/Table/Table.d.ts +0 -15
- package/dist/cjs/types/components/Table/TableBody.d.ts +0 -12
- package/dist/cjs/types/components/Table/TableCol.d.ts +0 -17
- package/dist/cjs/types/components/Table/TableDemo.d.ts +0 -11
- package/dist/cjs/types/components/Table/TableHead.d.ts +0 -12
- package/dist/cjs/types/components/Table/TableRow.d.ts +0 -12
- package/dist/cjs/types/components/Table/configs.d.ts +0 -16
- package/dist/cjs/types/stories/Form/LiveSearch/LiveSearchSimulation.stories.d.ts +0 -14
- package/dist/cjs/types/stories/Form/SelectInput/ObjectItemSelectInput.Simulation.stories.d.ts +0 -13
- package/dist/esm/types/components/Scrollbar/Simulation.d.ts +0 -3
- package/dist/esm/types/components/Scrollbar/index.d.ts +0 -3
- package/dist/esm/types/components/Table/Table.d.ts +0 -15
- package/dist/esm/types/components/Table/TableBody.d.ts +0 -12
- package/dist/esm/types/components/Table/TableCol.d.ts +0 -17
- package/dist/esm/types/components/Table/TableDemo.d.ts +0 -11
- package/dist/esm/types/components/Table/TableHead.d.ts +0 -12
- package/dist/esm/types/components/Table/TableRow.d.ts +0 -12
- package/dist/esm/types/components/Table/configs.d.ts +0 -16
- package/dist/esm/types/stories/Form/LiveSearch/LiveSearchSimulation.stories.d.ts +0 -14
- package/dist/esm/types/stories/Form/SelectInput/ObjectItemSelectInput.Simulation.stories.d.ts +0 -13
|
@@ -9,10 +9,10 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
9
9
|
label?: string;
|
|
10
10
|
radius?: 'default' | 'full-rounded';
|
|
11
11
|
size?: 'lg' | 'md' | 'sm' | 'tn';
|
|
12
|
-
|
|
12
|
+
minWidth?: number;
|
|
13
13
|
variant?: 'default' | 'danger' | 'info' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'success' | 'warning' | 'default-outlined' | 'danger-outlined' | 'info-outlined' | 'primary-outlined' | 'success-outlined' | 'warning-outlined';
|
|
14
14
|
}
|
|
15
|
-
declare function Button({ label, className, disabled, radius, size, variant, iconLeft, iconRight, left, right,
|
|
15
|
+
declare function Button({ label, className, disabled, radius, size, variant, iconLeft, iconRight, left, right, minWidth, ...props }: ButtonProps): React.JSX.Element;
|
|
16
16
|
declare namespace Button {
|
|
17
17
|
var defaultProps: {
|
|
18
18
|
label: null;
|
|
@@ -18,6 +18,12 @@ export declare const sizeConfig: {
|
|
|
18
18
|
sm: string;
|
|
19
19
|
tn: string;
|
|
20
20
|
};
|
|
21
|
+
export declare const minWidthConfig: {
|
|
22
|
+
lg: string;
|
|
23
|
+
md: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
tn: string;
|
|
26
|
+
};
|
|
21
27
|
export declare const iconOnlySizeConfig: {
|
|
22
28
|
lg: string;
|
|
23
29
|
md: string;
|
|
@@ -3,12 +3,11 @@ interface CheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'>
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
id?: string;
|
|
5
5
|
size?: 'md' | 'sm';
|
|
6
|
-
checked?: boolean;
|
|
7
6
|
label?: string;
|
|
8
7
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
-
value
|
|
8
|
+
value?: string | number | readonly string[] | undefined;
|
|
10
9
|
}
|
|
11
|
-
declare function Checkbox({ disabled, id, size,
|
|
10
|
+
declare function Checkbox({ disabled, id, size, label, onChange, ...props }: CheckboxProps): React.JSX.Element;
|
|
12
11
|
declare namespace Checkbox {
|
|
13
12
|
var defaultProps: {
|
|
14
13
|
disabled: boolean;
|
|
@@ -3,14 +3,20 @@ interface CustomDropdownItemProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
5
5
|
size?: 'md' | 'sm';
|
|
6
|
-
|
|
6
|
+
options?: any;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
caption?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
7
10
|
}
|
|
8
|
-
declare function CustomDropdownItem({ className,
|
|
11
|
+
declare function CustomDropdownItem({ className, onClick, size, isSelected, options, children, }: CustomDropdownItemProps): React.JSX.Element;
|
|
9
12
|
declare namespace CustomDropdownItem {
|
|
10
13
|
var defaultProps: {
|
|
11
14
|
className: string;
|
|
12
15
|
onClick: () => void;
|
|
13
16
|
size: string;
|
|
17
|
+
options: never[];
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
caption: string;
|
|
14
20
|
};
|
|
15
21
|
}
|
|
16
22
|
export default CustomDropdownItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
3
|
+
descText?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
id?: string;
|
|
6
|
+
size?: 'md' | 'sm';
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
options?: any;
|
|
11
|
+
setValue?: any;
|
|
12
|
+
value?: any;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export default LiveSearchProps;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare function LiveSearchSimulation({ size }: LiveSearchSimulationProps): React.JSX.Element;
|
|
2
|
+
import LiveSearchProps from './PropsInterface';
|
|
3
|
+
declare function LiveSearchSimulation({ setValue, value, ...props }: LiveSearchProps): React.JSX.Element;
|
|
6
4
|
export default LiveSearchSimulation;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
id?: string;
|
|
6
|
-
size?: 'md' | 'sm';
|
|
7
|
-
label?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
options?: any;
|
|
11
|
-
setValue?: any;
|
|
12
|
-
value?: any;
|
|
13
|
-
}
|
|
14
|
-
declare function LiveSearch({ descText, disabled, id, size, label, placeholder, required, options, setValue, value, }: LiveSearchProps): React.JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import LiveSearchProps from './PropsInterface';
|
|
3
|
+
declare function LiveSearch({ descText, disabled, id, size, label, placeholder, required, options, setValue, value, readOnly, }: LiveSearchProps): React.JSX.Element;
|
|
15
4
|
declare namespace LiveSearch {
|
|
16
5
|
var defaultProps: {
|
|
17
6
|
descText: string;
|
|
@@ -24,6 +13,7 @@ declare namespace LiveSearch {
|
|
|
24
13
|
options: never[];
|
|
25
14
|
setValue: () => void;
|
|
26
15
|
value: {};
|
|
16
|
+
readonly: boolean;
|
|
27
17
|
};
|
|
28
18
|
}
|
|
29
19
|
export default LiveSearch;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
interface SelectInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
3
|
+
descText?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
id?: string;
|
|
6
|
+
size?: 'md' | 'sm';
|
|
7
|
+
label?: string;
|
|
8
|
+
options: any;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
selected?: string | number | {
|
|
11
|
+
label: string | null;
|
|
12
|
+
};
|
|
13
|
+
setSelected?: any;
|
|
14
|
+
}
|
|
15
|
+
export default SelectInputProps;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
size: 'md' | 'sm';
|
|
5
|
-
options: any;
|
|
6
|
-
}
|
|
7
|
-
declare function SelectInputSimulation({ size, options }: SelectInputSimulationProps): React.JSX.Element;
|
|
2
|
+
import SelectInputProps from './PropsInterface';
|
|
3
|
+
declare function SelectInputSimulation({ selected, ...props }: SelectInputProps): React.JSX.Element;
|
|
8
4
|
export default SelectInputSimulation;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
descText?: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
id?: string;
|
|
6
|
-
size?: 'md' | 'sm';
|
|
7
|
-
label?: string;
|
|
8
|
-
options: any;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
selected?: string | number | {
|
|
11
|
-
label: string;
|
|
12
|
-
};
|
|
13
|
-
setSelected?: any;
|
|
14
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SelectInputProps from './PropsInterface';
|
|
15
3
|
declare function SelectInput({ descText, disabled, size, id, label, options, required, selected, setSelected, ...props }: SelectInputProps): React.JSX.Element;
|
|
16
4
|
declare namespace SelectInput {
|
|
17
5
|
var defaultProps: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './style.css';
|
|
2
3
|
export interface TextAreaProps extends ComponentPropsWithoutRef<'textarea'> {
|
|
3
4
|
descText?: string;
|
|
4
5
|
disabled?: boolean;
|
|
@@ -10,8 +11,9 @@ export interface TextAreaProps extends ComponentPropsWithoutRef<'textarea'> {
|
|
|
10
11
|
rows?: number;
|
|
11
12
|
maxLength?: number;
|
|
12
13
|
value?: string;
|
|
14
|
+
readOnly?: boolean;
|
|
13
15
|
}
|
|
14
|
-
declare function TextArea({ descText, disabled, id, size, label, placeholder, required, rows, maxLength, value, ...props }: TextAreaProps): React.JSX.Element;
|
|
16
|
+
declare function TextArea({ descText, disabled, id, size, label, placeholder, required, rows, maxLength, value, readOnly, ...props }: TextAreaProps): React.JSX.Element;
|
|
15
17
|
declare namespace TextArea {
|
|
16
18
|
var defaultProps: {
|
|
17
19
|
disabled: boolean;
|
|
@@ -15,8 +15,9 @@ interface TextInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'>
|
|
|
15
15
|
maxLength?: number;
|
|
16
16
|
inputClassName?: string;
|
|
17
17
|
isFlatRight?: boolean;
|
|
18
|
+
actionElement?: React.ReactNode;
|
|
18
19
|
}
|
|
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;
|
|
20
|
+
declare function TextInput({ descText, disabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, maxLength, inputClassName, isFlatRight, actionElement, ...props }: TextInputProps): React.JSX.Element;
|
|
20
21
|
declare namespace TextInput {
|
|
21
22
|
var defaultProps: {
|
|
22
23
|
descText: string;
|
|
@@ -6,11 +6,6 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
open: boolean;
|
|
8
8
|
onClose: () => void;
|
|
9
|
+
onClick: () => void;
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
declare namespace Modal {
|
|
12
|
-
var defaultProps: {
|
|
13
|
-
title: null;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export default Modal;
|
|
11
|
+
export default function Modal({ size, title, open, zIndex, onClose, onClick, ...rest }: ModalProps): React.JSX.Element | null;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface PaginationBarDemoProps {
|
|
3
|
+
size?: 'md' | 'sm';
|
|
4
|
+
position?: 'start' | 'center' | 'end';
|
|
5
|
+
}
|
|
6
|
+
declare function PaginationBarDemo({ size }: PaginationBarDemoProps): React.JSX.Element;
|
|
3
7
|
export default PaginationBarDemo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { SVGProps } from 'react';
|
|
2
|
+
import './style.css';
|
|
3
|
+
interface SpinnerIconProps extends SVGProps<SVGSVGElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SpinnerIcon: ({ className, ...props }: SpinnerIconProps) => React.JSX.Element;
|
|
7
|
+
export default SpinnerIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const config: {
|
|
3
|
+
success: {
|
|
4
|
+
progress: string;
|
|
5
|
+
statusIcon: React.JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
failed: {
|
|
8
|
+
progress: string;
|
|
9
|
+
statusIcon: React.JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
loading: {
|
|
12
|
+
progress: string;
|
|
13
|
+
statusIcon: React.JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default config;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
percentage: number;
|
|
5
|
+
caption?: string;
|
|
6
|
+
variant?: 'success' | 'failed' | 'loading';
|
|
7
|
+
}
|
|
8
|
+
export default function ProgressBar({ title, percentage, caption, variant, }: ProgressBarProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TableCellDemoProps {
|
|
3
|
+
tableSize?: 'md' | 'sm' | 'tn';
|
|
4
|
+
}
|
|
5
|
+
declare function TableCellDemo(): React.JSX.Element;
|
|
6
|
+
declare namespace TableCellDemo {
|
|
7
|
+
var defaultProps: {
|
|
8
|
+
tableSize: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default TableCellDemo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TableTestSampleProps {
|
|
3
|
+
tableSize?: 'md' | 'sm' | 'tn';
|
|
4
|
+
}
|
|
5
|
+
declare function TableTestSample({ tableSize }: TableTestSampleProps): React.JSX.Element;
|
|
6
|
+
declare namespace TableTestSample {
|
|
7
|
+
var defaultProps: {
|
|
8
|
+
tableSize: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default TableTestSample;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const alignConfig: {
|
|
2
|
+
center: string;
|
|
3
|
+
right: string;
|
|
4
|
+
left: string;
|
|
5
|
+
};
|
|
6
|
+
declare const sizeConfig: {
|
|
7
|
+
md: string;
|
|
8
|
+
sm: string;
|
|
9
|
+
tn: string;
|
|
10
|
+
};
|
|
11
|
+
declare const bodyTextConfig: {
|
|
12
|
+
md: string;
|
|
13
|
+
sm: string;
|
|
14
|
+
tn: string;
|
|
15
|
+
};
|
|
16
|
+
declare const headTextConfig: {
|
|
17
|
+
md: string;
|
|
18
|
+
sm: string;
|
|
19
|
+
tn: string;
|
|
20
|
+
};
|
|
21
|
+
export { alignConfig, bodyTextConfig, headTextConfig, sizeConfig };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './style.css';
|
|
3
|
+
interface TableCellProps extends ComponentPropsWithoutRef<'td'> {
|
|
4
|
+
variant?: 'head' | 'body';
|
|
5
|
+
alignment?: 'center' | 'right' | 'left';
|
|
6
|
+
lined?: boolean;
|
|
7
|
+
size?: 'md' | 'sm' | 'tn';
|
|
8
|
+
bgColor?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function TableCell({ variant, alignment, className, children, size, lined, bgColor, ...props }: TableCellProps): React.JSX.Element;
|
|
11
|
+
declare namespace TableCell {
|
|
12
|
+
var defaultProps: {
|
|
13
|
+
alignment: string;
|
|
14
|
+
lined: boolean;
|
|
15
|
+
size: string;
|
|
16
|
+
variant: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export default TableCell;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as TableRow } from './TableRow';
|
|
3
|
-
export { default as TableCol } from './TableCol';
|
|
4
|
-
export { default as TableHead } from './TableHead';
|
|
5
|
-
export { default as TableBody } from './TableBody';
|
|
6
|
-
export { default as TableDemo } from './TableDemo';
|
|
1
|
+
export { default as TableCell } from './TableCell';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import '../../tailwind.css';
|
|
3
|
+
export interface WindowProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
zIndex?: number;
|
|
6
|
+
title?: string;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function Window({ size, title, open, zIndex, onClose, ...rest }: WindowProps): React.JSX.Element | null;
|
|
11
|
+
export default Window;
|
|
@@ -15,13 +15,14 @@ export { default as Modal } from './Modal/Modal';
|
|
|
15
15
|
export { default as PaginationBar } from './PaginationBar/PaginationBar';
|
|
16
16
|
export { default as Pills } from './Pills/Pills';
|
|
17
17
|
export { default as Popover } from './Popover';
|
|
18
|
-
export { ProgressCircle } from './Progress';
|
|
18
|
+
export { ProgressBar, ProgressCircle } from './Progress';
|
|
19
19
|
export { default as ResizeableDiv } from './ResizeableDiv';
|
|
20
20
|
export { default as Slider } from './Slider';
|
|
21
21
|
export { default as Spinner } from './Spinner/Spinner';
|
|
22
22
|
export { default as Tab } from './Tab/Tab';
|
|
23
23
|
export { default as TabMenu } from './TabMenu/TabMenu';
|
|
24
|
-
export {
|
|
24
|
+
export { TableCell } from './Table';
|
|
25
25
|
export { default as TagLabel } from './TagLabel';
|
|
26
26
|
export { default as Tooltip } from './Tooltip';
|
|
27
|
-
export { Display, P, Heading, Text } from './Typography';
|
|
27
|
+
export { Display, P, Heading, Text, Link } from './Typography';
|
|
28
|
+
export { default as Window } from './Window';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import LiveSearchSimulation from '../../../components/Forms/LiveSearch/Simulation';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof LiveSearchSimulation;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -12,3 +12,4 @@ declare const meta: {
|
|
|
12
12
|
export default meta;
|
|
13
13
|
type Story = StoryObj<typeof meta>;
|
|
14
14
|
export declare const Demo: Story;
|
|
15
|
+
export declare const Custom: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import SelectInputSimulation from '../../../components/Forms/SelectInput/Simulation';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof SelectInputSimulation;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -12,3 +12,5 @@ declare const meta: {
|
|
|
12
12
|
export default meta;
|
|
13
13
|
type Story = StoryObj<typeof meta>;
|
|
14
14
|
export declare const Demo: Story;
|
|
15
|
+
export declare const WithCaption: Story;
|
|
16
|
+
export declare const CustomOption: Story;
|
package/dist/esm/types/stories/{Table/Table.stories.d.ts → Progress/Bar/ProgressBar.stories.d.ts}
RENAMED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { ProgressBar } from '../../../components';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof ProgressBar;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
|
-
tags: string[];
|
|
10
9
|
args: {};
|
|
11
10
|
};
|
|
12
11
|
export default meta;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import ProgressBarSimulation from '../../../components/Progress/Bar/Simulation';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: typeof
|
|
5
|
+
component: typeof ProgressBarSimulation;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import DefaultScrollbarSimulation from '../../components/Scrollbar/DefaultSimulation';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DefaultScrollbarSimulation;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
2
|
+
import HiddenScrollbarSimulation from '../../components/Scrollbar/HiddenSimulation';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof HiddenScrollbarSimulation;
|
|
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 Hidden: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { TableCell } from '../../components/Table';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TableCell;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Cell: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import TableCellDemo from '../../components/Table/TableCell/Demo';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TableCellDemo;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const CellDemo: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as TestComponent } from '../../components/Table/TableCell/TableTestSample';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TestComponent;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const TableTestSample: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Window } from '../../components';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Window;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Demo: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import SelectInputSimulation from '../../../components/Forms/SelectInput/Simulation';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: () => import("react").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|