bianic-ui 0.5.16 → 0.5.18
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 +163 -168
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +2 -1
- package/dist/cjs/types/components/Avatar/config.d.ts +5 -5
- package/dist/cjs/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/cjs/types/components/Button/configs.d.ts +20 -20
- package/dist/cjs/types/components/Button/index.d.ts +1 -1
- package/dist/cjs/types/components/Forms/Checkbox/Checkbox.d.ts +6 -6
- package/dist/cjs/types/components/Forms/Checkbox/Simulation.d.ts +1 -1
- package/dist/cjs/types/components/Forms/Checkbox/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/DropdownItem/Custom.d.ts +1 -1
- package/dist/cjs/types/components/Forms/DropdownItem/Default.d.ts +1 -1
- package/dist/cjs/types/components/Forms/DropdownItem/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/LiveSearch/LiveSearch.d.ts +4 -4
- package/dist/cjs/types/components/Forms/LiveSearch/Simulation.d.ts +1 -1
- package/dist/cjs/types/components/Forms/LiveSearch/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/Radio/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/Radio/index.d.ts +6 -6
- package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +3 -3
- package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonSimulation.d.ts +1 -1
- package/dist/cjs/types/components/Forms/SegmentButton/config.d.ts +12 -12
- package/dist/cjs/types/components/Forms/SelectInput/SelectedInput.d.ts +4 -4
- package/dist/cjs/types/components/Forms/SelectInput/Simulation.d.ts +1 -1
- package/dist/cjs/types/components/Forms/SelectInput/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/TextArea/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/TextArea/index.d.ts +3 -3
- package/dist/cjs/types/components/Forms/TextInput/Simulation.d.ts +1 -1
- package/dist/cjs/types/components/Forms/TextInput/TextInput.d.ts +4 -4
- package/dist/cjs/types/components/Forms/TextInput/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/Toggle/configs.d.ts +2 -2
- package/dist/cjs/types/components/Forms/Toggle/index.d.ts +6 -6
- package/dist/cjs/types/components/Modal/Modal.d.ts +1 -1
- package/dist/cjs/types/components/Modal/ModalContent.d.ts +1 -1
- package/dist/cjs/types/components/PaginationBar/PaginationBar.d.ts +1 -1
- package/dist/cjs/types/components/PaginationBar/config.d.ts +2 -2
- package/dist/cjs/types/components/Popover/index.d.ts +2 -2
- package/dist/cjs/types/components/Slider/index.d.ts +1 -0
- package/dist/cjs/types/components/Tab/ConfigTab.d.ts +2 -2
- package/dist/cjs/types/components/Tab/DividerConfig.d.ts +8 -8
- package/dist/cjs/types/components/Tab/Tab.d.ts +1 -1
- package/dist/cjs/types/components/Tab/TabHead.d.ts +1 -1
- package/dist/cjs/types/components/Table/Table.d.ts +1 -1
- package/dist/cjs/types/components/Table/TableCol.d.ts +1 -1
- package/dist/cjs/types/components/Table/TableDemo.d.ts +1 -1
- package/dist/cjs/types/components/Table/configs.d.ts +6 -6
- package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +1 -1
- package/dist/cjs/types/components/TagLabel/configs.d.ts +24 -24
- package/dist/cjs/types/components/TagLabel/index.d.ts +1 -1
- package/dist/cjs/types/stories/Button.stories.d.ts +4 -0
- package/dist/esm/index.js +163 -168
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Avatar/Avatar.d.ts +2 -1
- package/dist/esm/types/components/Avatar/config.d.ts +5 -5
- package/dist/esm/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/esm/types/components/Button/configs.d.ts +20 -20
- package/dist/esm/types/components/Button/index.d.ts +1 -1
- package/dist/esm/types/components/Forms/Checkbox/Checkbox.d.ts +6 -6
- package/dist/esm/types/components/Forms/Checkbox/Simulation.d.ts +1 -1
- package/dist/esm/types/components/Forms/Checkbox/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/DropdownItem/Custom.d.ts +1 -1
- package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +1 -1
- package/dist/esm/types/components/Forms/DropdownItem/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/LiveSearch/LiveSearch.d.ts +4 -4
- package/dist/esm/types/components/Forms/LiveSearch/Simulation.d.ts +1 -1
- package/dist/esm/types/components/Forms/LiveSearch/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/Radio/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/Radio/index.d.ts +6 -6
- package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +3 -3
- package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonSimulation.d.ts +1 -1
- package/dist/esm/types/components/Forms/SegmentButton/config.d.ts +12 -12
- package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +4 -4
- package/dist/esm/types/components/Forms/SelectInput/Simulation.d.ts +1 -1
- package/dist/esm/types/components/Forms/SelectInput/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/TextArea/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/TextArea/index.d.ts +3 -3
- package/dist/esm/types/components/Forms/TextInput/Simulation.d.ts +1 -1
- package/dist/esm/types/components/Forms/TextInput/TextInput.d.ts +4 -4
- package/dist/esm/types/components/Forms/TextInput/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/Toggle/configs.d.ts +2 -2
- package/dist/esm/types/components/Forms/Toggle/index.d.ts +6 -6
- package/dist/esm/types/components/Modal/Modal.d.ts +1 -1
- package/dist/esm/types/components/Modal/ModalContent.d.ts +1 -1
- package/dist/esm/types/components/PaginationBar/PaginationBar.d.ts +1 -1
- package/dist/esm/types/components/PaginationBar/config.d.ts +2 -2
- package/dist/esm/types/components/Popover/index.d.ts +2 -2
- package/dist/esm/types/components/Slider/index.d.ts +1 -0
- package/dist/esm/types/components/Tab/ConfigTab.d.ts +2 -2
- package/dist/esm/types/components/Tab/DividerConfig.d.ts +8 -8
- package/dist/esm/types/components/Tab/Tab.d.ts +1 -1
- package/dist/esm/types/components/Tab/TabHead.d.ts +1 -1
- package/dist/esm/types/components/Table/Table.d.ts +1 -1
- package/dist/esm/types/components/Table/TableCol.d.ts +1 -1
- package/dist/esm/types/components/Table/TableDemo.d.ts +1 -1
- package/dist/esm/types/components/Table/configs.d.ts +6 -6
- package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +1 -1
- package/dist/esm/types/components/TagLabel/configs.d.ts +24 -24
- package/dist/esm/types/components/TagLabel/index.d.ts +1 -1
- package/dist/esm/types/stories/Button.stories.d.ts +4 -0
- package/dist/index.d.ts +55 -54
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export interface RadioProps extends ComponentPropsWithoutRef<'input'> {
|
|
2
|
+
export interface RadioProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
3
3
|
label?: string;
|
|
4
|
-
|
|
4
|
+
size?: 'md' | 'sm';
|
|
5
5
|
id?: string;
|
|
6
6
|
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
|
-
|
|
8
|
+
checked?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare function Radio({ label,
|
|
10
|
+
declare function Radio({ label, size, id, onClick, isDisabled, checked, }: RadioProps): React.JSX.Element;
|
|
11
11
|
declare namespace Radio {
|
|
12
12
|
var defaultProps: {
|
|
13
13
|
label: string;
|
|
14
|
-
|
|
14
|
+
size: string;
|
|
15
15
|
id: string;
|
|
16
16
|
onClick: () => void;
|
|
17
17
|
isDisabled: boolean;
|
|
18
|
-
|
|
18
|
+
checked: boolean;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export default Radio;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export interface SegmentButtonItemProps extends ComponentPropsWithoutRef<'button'> {
|
|
3
|
-
|
|
4
|
-
size: '
|
|
3
|
+
selected: boolean;
|
|
4
|
+
size: 'lg' | 'md' | 'sm' | 'tn';
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
}
|
|
9
|
-
export default function SegmentButtonItem({
|
|
9
|
+
export default function SegmentButtonItem({ selected, size, children, disabled, onClick, }: SegmentButtonItemProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface SegmentButtonSimulationProps {
|
|
3
|
-
size: '
|
|
3
|
+
size: 'lg' | 'md' | 'sm' | 'tn';
|
|
4
4
|
}
|
|
5
5
|
export default function SegmentButtonSimulation({ size, }: SegmentButtonSimulationProps): React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const isSelectedConfig: {
|
|
2
|
+
selected: string;
|
|
3
|
+
notSelected: string;
|
|
4
4
|
};
|
|
5
5
|
declare const roundedConfig: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
lg: string;
|
|
7
|
+
md: string;
|
|
8
|
+
sm: string;
|
|
9
|
+
tn: string;
|
|
10
10
|
};
|
|
11
11
|
declare const sizeConfig: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
lg: string;
|
|
13
|
+
md: string;
|
|
14
|
+
sm: string;
|
|
15
|
+
tn: string;
|
|
16
16
|
};
|
|
17
|
-
export {
|
|
17
|
+
export { isSelectedConfig, roundedConfig, sizeConfig };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
interface SelectInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
2
|
+
interface SelectInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
3
3
|
descText?: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
id?: string;
|
|
6
|
-
|
|
6
|
+
size?: 'md' | 'sm';
|
|
7
7
|
label?: string;
|
|
8
8
|
options: any;
|
|
9
9
|
isRequired?: boolean;
|
|
@@ -13,13 +13,13 @@ interface SelectInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
13
13
|
};
|
|
14
14
|
setSelected?: any;
|
|
15
15
|
}
|
|
16
|
-
declare function SelectInput({ descText, isDisabled,
|
|
16
|
+
declare function SelectInput({ descText, isDisabled, size, id, label, options, isRequired, selected, setSelected, }: SelectInputProps): React.JSX.Element;
|
|
17
17
|
declare namespace SelectInput {
|
|
18
18
|
var defaultProps: {
|
|
19
19
|
descText: string;
|
|
20
20
|
isDisabled: boolean;
|
|
21
21
|
id: string;
|
|
22
|
-
|
|
22
|
+
size: string;
|
|
23
23
|
label: string;
|
|
24
24
|
isRequired: boolean;
|
|
25
25
|
selected: {};
|
|
@@ -3,19 +3,19 @@ export interface TextAreaProps extends ComponentPropsWithoutRef<'textarea'> {
|
|
|
3
3
|
descText?: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
id?: string;
|
|
6
|
-
|
|
6
|
+
size?: 'md' | 'sm';
|
|
7
7
|
label?: string;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
rows?: number;
|
|
11
11
|
}
|
|
12
|
-
declare function TextArea({ descText, disabled, id,
|
|
12
|
+
declare function TextArea({ descText, disabled, id, size, label, placeholder, required, rows, ...props }: TextAreaProps): React.JSX.Element;
|
|
13
13
|
declare namespace TextArea {
|
|
14
14
|
var defaultProps: {
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
descText: string;
|
|
17
17
|
id: string;
|
|
18
|
-
|
|
18
|
+
size: string;
|
|
19
19
|
label: string;
|
|
20
20
|
placeholder: string;
|
|
21
21
|
required: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ChangeEvent, ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
interface TextInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
2
|
+
interface TextInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
3
3
|
descText?: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
6
|
id?: string;
|
|
7
|
-
|
|
7
|
+
size?: 'md' | 'sm';
|
|
8
8
|
isValid?: boolean | null;
|
|
9
9
|
label?: string;
|
|
10
10
|
placeholder?: string;
|
|
@@ -13,14 +13,14 @@ interface TextInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
13
13
|
value?: string;
|
|
14
14
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function TextInput({ descText, isDisabled, icon, id,
|
|
16
|
+
declare function TextInput({ descText, isDisabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, }: TextInputProps): React.JSX.Element;
|
|
17
17
|
declare namespace TextInput {
|
|
18
18
|
var defaultProps: {
|
|
19
19
|
descText: string;
|
|
20
20
|
isDisabled: boolean;
|
|
21
21
|
icon: null;
|
|
22
22
|
id: string;
|
|
23
|
-
|
|
23
|
+
size: string;
|
|
24
24
|
isValid: null;
|
|
25
25
|
label: string;
|
|
26
26
|
placeholder: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
interface CheckboxProps extends ComponentPropsWithoutRef<'input'> {
|
|
2
|
+
interface CheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
3
3
|
label?: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
size?: 'md' | 'sm';
|
|
5
|
+
checked?: boolean;
|
|
6
6
|
id?: string;
|
|
7
7
|
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare function Toggle({ label,
|
|
10
|
+
declare function Toggle({ label, size, onClick, checked, id, disabled, }: CheckboxProps): React.JSX.Element;
|
|
11
11
|
declare namespace Toggle {
|
|
12
12
|
var defaultProps: {
|
|
13
13
|
label: string;
|
|
14
|
-
|
|
14
|
+
size: string;
|
|
15
15
|
onClick: () => void;
|
|
16
|
-
|
|
16
|
+
checked: boolean;
|
|
17
17
|
id: string;
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
};
|
|
@@ -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
|
title?: string;
|
|
6
6
|
isShow: boolean;
|
|
7
7
|
setIsShow: (arg0: boolean) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
interface ModalContentProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
-
variant?: '
|
|
3
|
+
variant?: 'sm' | 'md';
|
|
4
4
|
}
|
|
5
5
|
declare function ModalContent({ children, variant }: ModalContentProps): React.JSX.Element;
|
|
6
6
|
declare namespace ModalContent {
|
|
@@ -5,10 +5,10 @@ interface PopoverProps {
|
|
|
5
5
|
delay?: number;
|
|
6
6
|
direction?: 'top' | 'right' | 'bottom' | 'left';
|
|
7
7
|
title?: string;
|
|
8
|
-
|
|
8
|
+
open: boolean;
|
|
9
9
|
setIsActive: (arg0: boolean) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function Popover({ children, content, delay, direction, title,
|
|
11
|
+
declare function Popover({ children, content, delay, direction, title, open, setIsActive, }: PopoverProps): React.JSX.Element;
|
|
12
12
|
declare namespace Popover {
|
|
13
13
|
var defaultProps: {
|
|
14
14
|
delay: number;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
declare const DividerConfig: {
|
|
2
2
|
true: {
|
|
3
3
|
horizontal: {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
6
|
};
|
|
7
7
|
vertical: {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
sm: string;
|
|
9
|
+
md: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
false: {
|
|
13
13
|
horizontal: {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
sm: string;
|
|
15
|
+
md: string;
|
|
16
16
|
};
|
|
17
17
|
vertical: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -6,7 +6,7 @@ export interface TabProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
6
6
|
card?: boolean;
|
|
7
7
|
mode?: 'horizontal' | 'vertical';
|
|
8
8
|
fit?: 'fit-content' | 'maximize';
|
|
9
|
-
size?: '
|
|
9
|
+
size?: 'md' | 'sm';
|
|
10
10
|
}
|
|
11
11
|
declare function Tab({ children, active, icon, disabled, mode, fit, size, card, ...rest }: TabProps): React.JSX.Element;
|
|
12
12
|
declare namespace Tab {
|
|
@@ -3,7 +3,7 @@ export interface TabHeadProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
mode?: 'horizontal' | 'vertical';
|
|
5
5
|
fit?: 'fit-content' | 'maximize';
|
|
6
|
-
size?: '
|
|
6
|
+
size?: 'md' | 'sm';
|
|
7
7
|
card?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare function TabHead({ children, mode, fit, size, card, }: TabHeadProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './index.css';
|
|
3
3
|
interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
4
|
-
tableSize?: '
|
|
4
|
+
tableSize?: 'md' | 'sm' | 'tn';
|
|
5
5
|
className?: string;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ interface TableColProps extends ComponentPropsWithoutRef<'td'> {
|
|
|
3
3
|
variant?: 'head' | 'body';
|
|
4
4
|
alignment?: 'middle' | 'right' | 'left';
|
|
5
5
|
lined?: boolean;
|
|
6
|
-
size?: '
|
|
6
|
+
size?: 'md' | 'sm' | 'tn';
|
|
7
7
|
}
|
|
8
8
|
declare function TableCol({ variant, lined, alignment, className, children, size, }: TableColProps): React.JSX.Element;
|
|
9
9
|
declare namespace TableCol {
|
|
@@ -4,13 +4,13 @@ declare const colAlign: {
|
|
|
4
4
|
left: string;
|
|
5
5
|
};
|
|
6
6
|
declare const colSize: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
md: string;
|
|
8
|
+
sm: string;
|
|
9
|
+
tn: string;
|
|
10
10
|
};
|
|
11
11
|
declare const tableClass: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
md: string;
|
|
13
|
+
sm: string;
|
|
14
|
+
tn: string;
|
|
15
15
|
};
|
|
16
16
|
export { colAlign, colSize, tableClass };
|