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
|
@@ -9,7 +9,7 @@ import TbCloseAbleGraySmall from './Small/TbCloseAbleGraySmall';
|
|
|
9
9
|
import TbCloseable from './Medium/TbCloseable';
|
|
10
10
|
declare const TagLabelConfig: {
|
|
11
11
|
default: {
|
|
12
|
-
|
|
12
|
+
md: {
|
|
13
13
|
iconColor: string;
|
|
14
14
|
XColor: string;
|
|
15
15
|
XcolorV: string;
|
|
@@ -35,7 +35,7 @@ declare const TagLabelConfig: {
|
|
|
35
35
|
Xicon: typeof TbCheckBlack;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
sm: {
|
|
39
39
|
iconColor: string;
|
|
40
40
|
XColor: string;
|
|
41
41
|
XcolorV: string;
|
|
@@ -61,7 +61,7 @@ declare const TagLabelConfig: {
|
|
|
61
61
|
Xicon: typeof TbCheckBlackSmall;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
tn: {
|
|
65
65
|
iconColor: string;
|
|
66
66
|
XColor: string;
|
|
67
67
|
XcolorV: string;
|
|
@@ -89,7 +89,7 @@ declare const TagLabelConfig: {
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
blue: {
|
|
92
|
-
|
|
92
|
+
md: {
|
|
93
93
|
iconColor: string;
|
|
94
94
|
XColor: string;
|
|
95
95
|
XcolorV: string;
|
|
@@ -115,7 +115,7 @@ declare const TagLabelConfig: {
|
|
|
115
115
|
Xicon: typeof TbCheck;
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
|
-
|
|
118
|
+
sm: {
|
|
119
119
|
iconColor: string;
|
|
120
120
|
XColor: string;
|
|
121
121
|
XcolorV: string;
|
|
@@ -141,7 +141,7 @@ declare const TagLabelConfig: {
|
|
|
141
141
|
Xicon: typeof TbCheckWhiteSmall;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
-
|
|
144
|
+
tn: {
|
|
145
145
|
iconColor: string;
|
|
146
146
|
XColor: string;
|
|
147
147
|
XcolorV: string;
|
|
@@ -169,7 +169,7 @@ declare const TagLabelConfig: {
|
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
teal: {
|
|
172
|
-
|
|
172
|
+
md: {
|
|
173
173
|
iconColor: string;
|
|
174
174
|
XColor: string;
|
|
175
175
|
XcolorV: string;
|
|
@@ -195,7 +195,7 @@ declare const TagLabelConfig: {
|
|
|
195
195
|
Xicon: typeof TbCheck;
|
|
196
196
|
};
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
sm: {
|
|
199
199
|
iconColor: string;
|
|
200
200
|
XColor: string;
|
|
201
201
|
XcolorV: string;
|
|
@@ -221,7 +221,7 @@ declare const TagLabelConfig: {
|
|
|
221
221
|
Xicon: typeof TbCheckWhiteSmall;
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
|
|
224
|
+
tn: {
|
|
225
225
|
iconColor: string;
|
|
226
226
|
XColor: string;
|
|
227
227
|
XcolorV: string;
|
|
@@ -249,7 +249,7 @@ declare const TagLabelConfig: {
|
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
green: {
|
|
252
|
-
|
|
252
|
+
md: {
|
|
253
253
|
iconColor: string;
|
|
254
254
|
XColor: string;
|
|
255
255
|
XcolorV: string;
|
|
@@ -275,7 +275,7 @@ declare const TagLabelConfig: {
|
|
|
275
275
|
Xicon: typeof TbCheck;
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
|
-
|
|
278
|
+
sm: {
|
|
279
279
|
iconColor: string;
|
|
280
280
|
XColor: string;
|
|
281
281
|
XcolorV: string;
|
|
@@ -301,7 +301,7 @@ declare const TagLabelConfig: {
|
|
|
301
301
|
Xicon: typeof TbCheckWhiteSmall;
|
|
302
302
|
};
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
tn: {
|
|
305
305
|
iconColor: string;
|
|
306
306
|
XColor: string;
|
|
307
307
|
XcolorV: string;
|
|
@@ -329,7 +329,7 @@ declare const TagLabelConfig: {
|
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
yellow: {
|
|
332
|
-
|
|
332
|
+
md: {
|
|
333
333
|
iconColor: string;
|
|
334
334
|
XColor: string;
|
|
335
335
|
XcolorV: string;
|
|
@@ -355,7 +355,7 @@ declare const TagLabelConfig: {
|
|
|
355
355
|
Xicon: typeof TbCheck;
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
|
-
|
|
358
|
+
sm: {
|
|
359
359
|
iconColor: string;
|
|
360
360
|
XColor: string;
|
|
361
361
|
XcolorV: string;
|
|
@@ -381,7 +381,7 @@ declare const TagLabelConfig: {
|
|
|
381
381
|
Xicon: typeof TbCheckWhiteSmall;
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
|
-
|
|
384
|
+
tn: {
|
|
385
385
|
iconColor: string;
|
|
386
386
|
XColor: string;
|
|
387
387
|
XcolorV: string;
|
|
@@ -409,7 +409,7 @@ declare const TagLabelConfig: {
|
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
411
|
red: {
|
|
412
|
-
|
|
412
|
+
md: {
|
|
413
413
|
iconColor: string;
|
|
414
414
|
XColor: string;
|
|
415
415
|
XcolorV: string;
|
|
@@ -435,7 +435,7 @@ declare const TagLabelConfig: {
|
|
|
435
435
|
Xicon: typeof TbCheck;
|
|
436
436
|
};
|
|
437
437
|
};
|
|
438
|
-
|
|
438
|
+
sm: {
|
|
439
439
|
iconColor: string;
|
|
440
440
|
XColor: string;
|
|
441
441
|
XcolorV: string;
|
|
@@ -461,7 +461,7 @@ declare const TagLabelConfig: {
|
|
|
461
461
|
Xicon: typeof TbCheckWhiteSmall;
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
|
-
|
|
464
|
+
tn: {
|
|
465
465
|
iconColor: string;
|
|
466
466
|
XColor: string;
|
|
467
467
|
XcolorV: string;
|
|
@@ -489,7 +489,7 @@ declare const TagLabelConfig: {
|
|
|
489
489
|
};
|
|
490
490
|
};
|
|
491
491
|
black: {
|
|
492
|
-
|
|
492
|
+
md: {
|
|
493
493
|
iconColor: string;
|
|
494
494
|
XColor: string;
|
|
495
495
|
XcolorV: string;
|
|
@@ -515,7 +515,7 @@ declare const TagLabelConfig: {
|
|
|
515
515
|
Xicon: typeof TbCheck;
|
|
516
516
|
};
|
|
517
517
|
};
|
|
518
|
-
|
|
518
|
+
sm: {
|
|
519
519
|
iconColor: string;
|
|
520
520
|
XColor: string;
|
|
521
521
|
XcolorV: string;
|
|
@@ -541,7 +541,7 @@ declare const TagLabelConfig: {
|
|
|
541
541
|
Xicon: typeof TbCheckWhiteSmall;
|
|
542
542
|
};
|
|
543
543
|
};
|
|
544
|
-
|
|
544
|
+
tn: {
|
|
545
545
|
iconColor: string;
|
|
546
546
|
XColor: string;
|
|
547
547
|
XcolorV: string;
|
|
@@ -569,7 +569,7 @@ declare const TagLabelConfig: {
|
|
|
569
569
|
};
|
|
570
570
|
};
|
|
571
571
|
white: {
|
|
572
|
-
|
|
572
|
+
md: {
|
|
573
573
|
iconColor: string;
|
|
574
574
|
XColor: string;
|
|
575
575
|
XcolorV: string;
|
|
@@ -595,7 +595,7 @@ declare const TagLabelConfig: {
|
|
|
595
595
|
Xicon: typeof TbCheckBlack;
|
|
596
596
|
};
|
|
597
597
|
};
|
|
598
|
-
|
|
598
|
+
sm: {
|
|
599
599
|
iconColor: string;
|
|
600
600
|
XColor: string;
|
|
601
601
|
XcolorV: string;
|
|
@@ -621,7 +621,7 @@ declare const TagLabelConfig: {
|
|
|
621
621
|
Xicon: typeof TbCheckBlackSmall;
|
|
622
622
|
};
|
|
623
623
|
};
|
|
624
|
-
|
|
624
|
+
tn: {
|
|
625
625
|
iconColor: string;
|
|
626
626
|
XColor: string;
|
|
627
627
|
XcolorV: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
interface TagLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
color: 'default' | 'blue' | 'teal' | 'green' | 'yellow' | 'red' | 'black' | 'white';
|
|
4
|
-
size?: '
|
|
4
|
+
size?: 'md' | 'sm' | 'tn';
|
|
5
5
|
variant?: 'label' | 'icon' | 'closeable';
|
|
6
6
|
closeHandler?: () => void;
|
|
7
7
|
isShow?: boolean;
|
|
@@ -26,3 +26,7 @@ export declare const InfoOutlined: Story;
|
|
|
26
26
|
export declare const PrimaryOutlined: Story;
|
|
27
27
|
export declare const SuccessOutlined: Story;
|
|
28
28
|
export declare const WarningOutlined: Story;
|
|
29
|
+
export declare const DemoWithIconLeft: Story;
|
|
30
|
+
export declare const DemoWithIconRight: Story;
|
|
31
|
+
export declare const DemoWithIconBoth: Story;
|
|
32
|
+
export declare const DemoWithIconOnly: Story;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare namespace Alert {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
26
|
-
size
|
|
26
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
27
27
|
variant: 'image' | 'picture' | 'initial';
|
|
28
28
|
name?: string;
|
|
29
29
|
}
|
|
@@ -31,6 +31,7 @@ declare function Avatar({ size, variant, name }: AvatarProps): React.JSX.Element
|
|
|
31
31
|
declare namespace Avatar {
|
|
32
32
|
var defaultProps: {
|
|
33
33
|
name: string;
|
|
34
|
+
size: string;
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -70,12 +71,12 @@ declare function Brand({ variant, brand }: BrandProps): React.JSX.Element;
|
|
|
70
71
|
|
|
71
72
|
interface BreadcrumbProps extends ComponentPropsWithoutRef<'button'> {
|
|
72
73
|
disabled: boolean;
|
|
73
|
-
|
|
74
|
+
selected?: boolean;
|
|
74
75
|
}
|
|
75
|
-
declare function Breadcrumb({ disabled,
|
|
76
|
+
declare function Breadcrumb({ disabled, selected, children, onClick, ...rest }: BreadcrumbProps): React.JSX.Element;
|
|
76
77
|
declare namespace Breadcrumb {
|
|
77
78
|
var defaultProps: {
|
|
78
|
-
|
|
79
|
+
selected: boolean;
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
|
|
@@ -86,7 +87,7 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
86
87
|
iconLeft?: React.ReactNode;
|
|
87
88
|
label?: string;
|
|
88
89
|
radius?: 'default' | 'full-rounded';
|
|
89
|
-
size?: '
|
|
90
|
+
size?: 'lg' | 'md' | 'sm' | 'tn';
|
|
90
91
|
variant?: 'default' | 'danger' | 'info' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'success' | 'warning' | 'default-outlined' | 'danger-outlined' | 'info-outlined' | 'primary-outlined' | 'success-outlined' | 'warning-outlined';
|
|
91
92
|
}
|
|
92
93
|
declare function Button({ label, className, disabled, radius, size, variant, iconLeft, iconRight, ...props }: ButtonProps): React.JSX.Element;
|
|
@@ -116,12 +117,12 @@ declare namespace Divider {
|
|
|
116
117
|
};
|
|
117
118
|
}
|
|
118
119
|
|
|
119
|
-
interface TextInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
120
|
+
interface TextInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
120
121
|
descText?: string;
|
|
121
122
|
isDisabled?: boolean;
|
|
122
123
|
icon?: React.ReactNode;
|
|
123
124
|
id?: string;
|
|
124
|
-
|
|
125
|
+
size?: 'md' | 'sm';
|
|
125
126
|
isValid?: boolean | null;
|
|
126
127
|
label?: string;
|
|
127
128
|
placeholder?: string;
|
|
@@ -130,14 +131,14 @@ interface TextInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
130
131
|
value?: string;
|
|
131
132
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
132
133
|
}
|
|
133
|
-
declare function TextInput({ descText, isDisabled, icon, id,
|
|
134
|
+
declare function TextInput({ descText, isDisabled, icon, id, size, isValid, label, placeholder, readOnly, required, variant, value, onChange, }: TextInputProps): React.JSX.Element;
|
|
134
135
|
declare namespace TextInput {
|
|
135
136
|
var defaultProps: {
|
|
136
137
|
descText: string;
|
|
137
138
|
isDisabled: boolean;
|
|
138
139
|
icon: null;
|
|
139
140
|
id: string;
|
|
140
|
-
|
|
141
|
+
size: string;
|
|
141
142
|
isValid: null;
|
|
142
143
|
label: string;
|
|
143
144
|
placeholder: string;
|
|
@@ -149,7 +150,7 @@ declare namespace TextInput {
|
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
interface TextInputSimulationProps {
|
|
152
|
-
size?: '
|
|
153
|
+
size?: 'md' | 'sm';
|
|
153
154
|
}
|
|
154
155
|
declare function TextInputSimulation({ size }: TextInputSimulationProps): React.JSX.Element;
|
|
155
156
|
declare namespace TextInputSimulation {
|
|
@@ -158,23 +159,23 @@ declare namespace TextInputSimulation {
|
|
|
158
159
|
};
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
interface RadioProps extends ComponentPropsWithoutRef<'input'> {
|
|
162
|
+
interface RadioProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
162
163
|
label?: string;
|
|
163
|
-
|
|
164
|
+
size?: 'md' | 'sm';
|
|
164
165
|
id?: string;
|
|
165
166
|
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
166
167
|
isDisabled?: boolean;
|
|
167
|
-
|
|
168
|
+
checked?: boolean;
|
|
168
169
|
}
|
|
169
|
-
declare function Radio({ label,
|
|
170
|
+
declare function Radio({ label, size, id, onClick, isDisabled, checked, }: RadioProps): React.JSX.Element;
|
|
170
171
|
declare namespace Radio {
|
|
171
172
|
var defaultProps: {
|
|
172
173
|
label: string;
|
|
173
|
-
|
|
174
|
+
size: string;
|
|
174
175
|
id: string;
|
|
175
176
|
onClick: () => void;
|
|
176
177
|
isDisabled: boolean;
|
|
177
|
-
|
|
178
|
+
checked: boolean;
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
181
|
|
|
@@ -182,19 +183,19 @@ interface TextAreaProps extends ComponentPropsWithoutRef<'textarea'> {
|
|
|
182
183
|
descText?: string;
|
|
183
184
|
disabled?: boolean;
|
|
184
185
|
id?: string;
|
|
185
|
-
|
|
186
|
+
size?: 'md' | 'sm';
|
|
186
187
|
label?: string;
|
|
187
188
|
placeholder?: string;
|
|
188
189
|
required?: boolean;
|
|
189
190
|
rows?: number;
|
|
190
191
|
}
|
|
191
|
-
declare function TextArea({ descText, disabled, id,
|
|
192
|
+
declare function TextArea({ descText, disabled, id, size, label, placeholder, required, rows, ...props }: TextAreaProps): React.JSX.Element;
|
|
192
193
|
declare namespace TextArea {
|
|
193
194
|
var defaultProps: {
|
|
194
195
|
disabled: boolean;
|
|
195
196
|
descText: string;
|
|
196
197
|
id: string;
|
|
197
|
-
|
|
198
|
+
size: string;
|
|
198
199
|
label: string;
|
|
199
200
|
placeholder: string;
|
|
200
201
|
required: boolean;
|
|
@@ -202,29 +203,29 @@ declare namespace TextArea {
|
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
interface CheckboxProps$1 extends ComponentPropsWithoutRef<'input'> {
|
|
206
|
+
interface CheckboxProps$1 extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
206
207
|
disabled?: boolean;
|
|
207
208
|
id?: string;
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
size?: 'md' | 'sm';
|
|
210
|
+
checked?: boolean;
|
|
210
211
|
label?: string;
|
|
211
212
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
212
213
|
value: string | number | readonly string[] | undefined;
|
|
213
214
|
}
|
|
214
|
-
declare function Checkbox({ disabled, id,
|
|
215
|
+
declare function Checkbox({ disabled, id, size, checked, label, onChange, value, }: CheckboxProps$1): React.JSX.Element;
|
|
215
216
|
declare namespace Checkbox {
|
|
216
217
|
var defaultProps: {
|
|
217
218
|
disabled: boolean;
|
|
218
219
|
id: string;
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
size: string;
|
|
221
|
+
checked: boolean;
|
|
221
222
|
label: string;
|
|
222
223
|
onChange: () => void;
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
interface CheckboxSimulationProps {
|
|
227
|
-
size?: '
|
|
228
|
+
size?: 'md' | 'sm';
|
|
228
229
|
}
|
|
229
230
|
declare function CheckboxSimulation({ size }: CheckboxSimulationProps): React.JSX.Element;
|
|
230
231
|
declare namespace CheckboxSimulation {
|
|
@@ -233,11 +234,11 @@ declare namespace CheckboxSimulation {
|
|
|
233
234
|
};
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
interface SelectInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
237
|
+
interface SelectInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
237
238
|
descText?: string;
|
|
238
239
|
isDisabled?: boolean;
|
|
239
240
|
id?: string;
|
|
240
|
-
|
|
241
|
+
size?: 'md' | 'sm';
|
|
241
242
|
label?: string;
|
|
242
243
|
options: any;
|
|
243
244
|
isRequired?: boolean;
|
|
@@ -247,13 +248,13 @@ interface SelectInputProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
247
248
|
};
|
|
248
249
|
setSelected?: any;
|
|
249
250
|
}
|
|
250
|
-
declare function SelectInput({ descText, isDisabled,
|
|
251
|
+
declare function SelectInput({ descText, isDisabled, size, id, label, options, isRequired, selected, setSelected, }: SelectInputProps): React.JSX.Element;
|
|
251
252
|
declare namespace SelectInput {
|
|
252
253
|
var defaultProps: {
|
|
253
254
|
descText: string;
|
|
254
255
|
isDisabled: boolean;
|
|
255
256
|
id: string;
|
|
256
|
-
|
|
257
|
+
size: string;
|
|
257
258
|
label: string;
|
|
258
259
|
isRequired: boolean;
|
|
259
260
|
selected: {};
|
|
@@ -262,15 +263,15 @@ declare namespace SelectInput {
|
|
|
262
263
|
}
|
|
263
264
|
|
|
264
265
|
interface SelectInputSimulationProps {
|
|
265
|
-
size: '
|
|
266
|
+
size: 'md' | 'sm';
|
|
266
267
|
}
|
|
267
268
|
declare function SelectInputSimulation({ size, }: SelectInputSimulationProps): React.JSX.Element;
|
|
268
269
|
|
|
269
|
-
interface LiveSearchProps extends ComponentPropsWithoutRef<'input'> {
|
|
270
|
+
interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
270
271
|
descText?: string;
|
|
271
272
|
disabled?: boolean;
|
|
272
273
|
id?: string;
|
|
273
|
-
|
|
274
|
+
size?: 'md' | 'sm';
|
|
274
275
|
label?: string;
|
|
275
276
|
placeholder?: string;
|
|
276
277
|
required?: boolean;
|
|
@@ -278,13 +279,13 @@ interface LiveSearchProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
278
279
|
setValue?: any;
|
|
279
280
|
value?: any;
|
|
280
281
|
}
|
|
281
|
-
declare function LiveSearch({ descText, disabled, id,
|
|
282
|
+
declare function LiveSearch({ descText, disabled, id, size, label, placeholder, required, options, setValue, value, }: LiveSearchProps): React.JSX.Element;
|
|
282
283
|
declare namespace LiveSearch {
|
|
283
284
|
var defaultProps: {
|
|
284
285
|
descText: string;
|
|
285
286
|
disabled: boolean;
|
|
286
287
|
id: string;
|
|
287
|
-
|
|
288
|
+
size: string;
|
|
288
289
|
label: string;
|
|
289
290
|
placeholder: string;
|
|
290
291
|
required: boolean;
|
|
@@ -294,46 +295,46 @@ declare namespace LiveSearch {
|
|
|
294
295
|
};
|
|
295
296
|
}
|
|
296
297
|
|
|
297
|
-
interface CheckboxProps extends ComponentPropsWithoutRef<'input'> {
|
|
298
|
+
interface CheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
298
299
|
label?: string;
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
size?: 'md' | 'sm';
|
|
301
|
+
checked?: boolean;
|
|
301
302
|
id?: string;
|
|
302
303
|
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
303
304
|
disabled?: boolean;
|
|
304
305
|
}
|
|
305
|
-
declare function Toggle({ label,
|
|
306
|
+
declare function Toggle({ label, size, onClick, checked, id, disabled, }: CheckboxProps): React.JSX.Element;
|
|
306
307
|
declare namespace Toggle {
|
|
307
308
|
var defaultProps: {
|
|
308
309
|
label: string;
|
|
309
|
-
|
|
310
|
+
size: string;
|
|
310
311
|
onClick: () => void;
|
|
311
|
-
|
|
312
|
+
checked: boolean;
|
|
312
313
|
id: string;
|
|
313
314
|
disabled: boolean;
|
|
314
315
|
};
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
interface SegmentButtonItemProps extends ComponentPropsWithoutRef<'button'> {
|
|
318
|
-
|
|
319
|
-
size: '
|
|
319
|
+
selected: boolean;
|
|
320
|
+
size: 'lg' | 'md' | 'sm' | 'tn';
|
|
320
321
|
children: React.ReactNode;
|
|
321
322
|
disabled: boolean;
|
|
322
323
|
onClick: () => void;
|
|
323
324
|
}
|
|
324
|
-
declare function SegmentButtonItem({
|
|
325
|
+
declare function SegmentButtonItem({ selected, size, children, disabled, onClick, }: SegmentButtonItemProps): React.JSX.Element;
|
|
325
326
|
|
|
326
327
|
declare function SegmentButtonGroup({ children }: {
|
|
327
328
|
children: React.ReactNode;
|
|
328
329
|
}): React.JSX.Element;
|
|
329
330
|
|
|
330
331
|
interface SegmentButtonSimulationProps {
|
|
331
|
-
size: '
|
|
332
|
+
size: 'lg' | 'md' | 'sm' | 'tn';
|
|
332
333
|
}
|
|
333
334
|
declare function SegmentButtonSimulation({ size, }: SegmentButtonSimulationProps): React.JSX.Element;
|
|
334
335
|
|
|
335
336
|
interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
336
|
-
size: '
|
|
337
|
+
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
337
338
|
title?: string;
|
|
338
339
|
isShow: boolean;
|
|
339
340
|
setIsShow: (arg0: boolean) => void;
|
|
@@ -346,7 +347,7 @@ declare namespace Modal {
|
|
|
346
347
|
}
|
|
347
348
|
|
|
348
349
|
interface PagingProps extends ComponentPropsWithoutRef<'div'> {
|
|
349
|
-
size: '
|
|
350
|
+
size: 'sm' | 'md';
|
|
350
351
|
position: 'start' | 'center' | 'end';
|
|
351
352
|
currentPage: number;
|
|
352
353
|
totalPages: number;
|
|
@@ -374,10 +375,10 @@ interface PopoverProps {
|
|
|
374
375
|
delay?: number;
|
|
375
376
|
direction?: 'top' | 'right' | 'bottom' | 'left';
|
|
376
377
|
title?: string;
|
|
377
|
-
|
|
378
|
+
open: boolean;
|
|
378
379
|
setIsActive: (arg0: boolean) => void;
|
|
379
380
|
}
|
|
380
|
-
declare function Popover({ children, content, delay, direction, title,
|
|
381
|
+
declare function Popover({ children, content, delay, direction, title, open, setIsActive, }: PopoverProps): React.JSX.Element;
|
|
381
382
|
declare namespace Popover {
|
|
382
383
|
var defaultProps: {
|
|
383
384
|
delay: number;
|
|
@@ -427,7 +428,7 @@ interface TabProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
427
428
|
card?: boolean;
|
|
428
429
|
mode?: 'horizontal' | 'vertical';
|
|
429
430
|
fit?: 'fit-content' | 'maximize';
|
|
430
|
-
size?: '
|
|
431
|
+
size?: 'md' | 'sm';
|
|
431
432
|
}
|
|
432
433
|
declare function Tab({ children, active, icon, disabled, mode, fit, size, card, ...rest }: TabProps): React.JSX.Element;
|
|
433
434
|
declare namespace Tab {
|
|
@@ -442,7 +443,7 @@ declare namespace Tab {
|
|
|
442
443
|
}
|
|
443
444
|
|
|
444
445
|
interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
445
|
-
tableSize?: '
|
|
446
|
+
tableSize?: 'md' | 'sm' | 'tn';
|
|
446
447
|
className?: string;
|
|
447
448
|
children: React.ReactNode;
|
|
448
449
|
}
|
|
@@ -469,7 +470,7 @@ interface TableColProps extends ComponentPropsWithoutRef<'td'> {
|
|
|
469
470
|
variant?: 'head' | 'body';
|
|
470
471
|
alignment?: 'middle' | 'right' | 'left';
|
|
471
472
|
lined?: boolean;
|
|
472
|
-
size?: '
|
|
473
|
+
size?: 'md' | 'sm' | 'tn';
|
|
473
474
|
}
|
|
474
475
|
declare function TableCol({ variant, lined, alignment, className, children, size, }: TableColProps): React.JSX.Element;
|
|
475
476
|
declare namespace TableCol {
|
|
@@ -504,7 +505,7 @@ declare namespace TableBody {
|
|
|
504
505
|
}
|
|
505
506
|
|
|
506
507
|
interface TableDemoProps {
|
|
507
|
-
tableSize?: '
|
|
508
|
+
tableSize?: 'md' | 'sm' | 'tn';
|
|
508
509
|
}
|
|
509
510
|
declare function TableDemo({ tableSize }: TableDemoProps): React.JSX.Element;
|
|
510
511
|
declare namespace TableDemo {
|
|
@@ -515,7 +516,7 @@ declare namespace TableDemo {
|
|
|
515
516
|
|
|
516
517
|
interface TagLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
517
518
|
color: 'default' | 'blue' | 'teal' | 'green' | 'yellow' | 'red' | 'black' | 'white';
|
|
518
|
-
size?: '
|
|
519
|
+
size?: 'md' | 'sm' | 'tn';
|
|
519
520
|
variant?: 'label' | 'icon' | 'closeable';
|
|
520
521
|
closeHandler?: () => void;
|
|
521
522
|
isShow?: boolean;
|
package/package.json
CHANGED