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.
Files changed (100) hide show
  1. package/dist/cjs/index.js +163 -168
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Avatar/Avatar.d.ts +2 -1
  4. package/dist/cjs/types/components/Avatar/config.d.ts +5 -5
  5. package/dist/cjs/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
  6. package/dist/cjs/types/components/Button/configs.d.ts +20 -20
  7. package/dist/cjs/types/components/Button/index.d.ts +1 -1
  8. package/dist/cjs/types/components/Forms/Checkbox/Checkbox.d.ts +6 -6
  9. package/dist/cjs/types/components/Forms/Checkbox/Simulation.d.ts +1 -1
  10. package/dist/cjs/types/components/Forms/Checkbox/configs.d.ts +2 -2
  11. package/dist/cjs/types/components/Forms/DropdownItem/Custom.d.ts +1 -1
  12. package/dist/cjs/types/components/Forms/DropdownItem/Default.d.ts +1 -1
  13. package/dist/cjs/types/components/Forms/DropdownItem/configs.d.ts +2 -2
  14. package/dist/cjs/types/components/Forms/LiveSearch/LiveSearch.d.ts +4 -4
  15. package/dist/cjs/types/components/Forms/LiveSearch/Simulation.d.ts +1 -1
  16. package/dist/cjs/types/components/Forms/LiveSearch/configs.d.ts +2 -2
  17. package/dist/cjs/types/components/Forms/Radio/configs.d.ts +2 -2
  18. package/dist/cjs/types/components/Forms/Radio/index.d.ts +6 -6
  19. package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +3 -3
  20. package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonSimulation.d.ts +1 -1
  21. package/dist/cjs/types/components/Forms/SegmentButton/config.d.ts +12 -12
  22. package/dist/cjs/types/components/Forms/SelectInput/SelectedInput.d.ts +4 -4
  23. package/dist/cjs/types/components/Forms/SelectInput/Simulation.d.ts +1 -1
  24. package/dist/cjs/types/components/Forms/SelectInput/configs.d.ts +2 -2
  25. package/dist/cjs/types/components/Forms/TextArea/configs.d.ts +2 -2
  26. package/dist/cjs/types/components/Forms/TextArea/index.d.ts +3 -3
  27. package/dist/cjs/types/components/Forms/TextInput/Simulation.d.ts +1 -1
  28. package/dist/cjs/types/components/Forms/TextInput/TextInput.d.ts +4 -4
  29. package/dist/cjs/types/components/Forms/TextInput/configs.d.ts +2 -2
  30. package/dist/cjs/types/components/Forms/Toggle/configs.d.ts +2 -2
  31. package/dist/cjs/types/components/Forms/Toggle/index.d.ts +6 -6
  32. package/dist/cjs/types/components/Modal/Modal.d.ts +1 -1
  33. package/dist/cjs/types/components/Modal/ModalContent.d.ts +1 -1
  34. package/dist/cjs/types/components/PaginationBar/PaginationBar.d.ts +1 -1
  35. package/dist/cjs/types/components/PaginationBar/config.d.ts +2 -2
  36. package/dist/cjs/types/components/Popover/index.d.ts +2 -2
  37. package/dist/cjs/types/components/Slider/index.d.ts +1 -0
  38. package/dist/cjs/types/components/Tab/ConfigTab.d.ts +2 -2
  39. package/dist/cjs/types/components/Tab/DividerConfig.d.ts +8 -8
  40. package/dist/cjs/types/components/Tab/Tab.d.ts +1 -1
  41. package/dist/cjs/types/components/Tab/TabHead.d.ts +1 -1
  42. package/dist/cjs/types/components/Table/Table.d.ts +1 -1
  43. package/dist/cjs/types/components/Table/TableCol.d.ts +1 -1
  44. package/dist/cjs/types/components/Table/TableDemo.d.ts +1 -1
  45. package/dist/cjs/types/components/Table/configs.d.ts +6 -6
  46. package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +1 -1
  47. package/dist/cjs/types/components/TagLabel/configs.d.ts +24 -24
  48. package/dist/cjs/types/components/TagLabel/index.d.ts +1 -1
  49. package/dist/cjs/types/stories/Button.stories.d.ts +4 -0
  50. package/dist/esm/index.js +163 -168
  51. package/dist/esm/lib.css +1 -1
  52. package/dist/esm/types/components/Avatar/Avatar.d.ts +2 -1
  53. package/dist/esm/types/components/Avatar/config.d.ts +5 -5
  54. package/dist/esm/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
  55. package/dist/esm/types/components/Button/configs.d.ts +20 -20
  56. package/dist/esm/types/components/Button/index.d.ts +1 -1
  57. package/dist/esm/types/components/Forms/Checkbox/Checkbox.d.ts +6 -6
  58. package/dist/esm/types/components/Forms/Checkbox/Simulation.d.ts +1 -1
  59. package/dist/esm/types/components/Forms/Checkbox/configs.d.ts +2 -2
  60. package/dist/esm/types/components/Forms/DropdownItem/Custom.d.ts +1 -1
  61. package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +1 -1
  62. package/dist/esm/types/components/Forms/DropdownItem/configs.d.ts +2 -2
  63. package/dist/esm/types/components/Forms/LiveSearch/LiveSearch.d.ts +4 -4
  64. package/dist/esm/types/components/Forms/LiveSearch/Simulation.d.ts +1 -1
  65. package/dist/esm/types/components/Forms/LiveSearch/configs.d.ts +2 -2
  66. package/dist/esm/types/components/Forms/Radio/configs.d.ts +2 -2
  67. package/dist/esm/types/components/Forms/Radio/index.d.ts +6 -6
  68. package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +3 -3
  69. package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonSimulation.d.ts +1 -1
  70. package/dist/esm/types/components/Forms/SegmentButton/config.d.ts +12 -12
  71. package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +4 -4
  72. package/dist/esm/types/components/Forms/SelectInput/Simulation.d.ts +1 -1
  73. package/dist/esm/types/components/Forms/SelectInput/configs.d.ts +2 -2
  74. package/dist/esm/types/components/Forms/TextArea/configs.d.ts +2 -2
  75. package/dist/esm/types/components/Forms/TextArea/index.d.ts +3 -3
  76. package/dist/esm/types/components/Forms/TextInput/Simulation.d.ts +1 -1
  77. package/dist/esm/types/components/Forms/TextInput/TextInput.d.ts +4 -4
  78. package/dist/esm/types/components/Forms/TextInput/configs.d.ts +2 -2
  79. package/dist/esm/types/components/Forms/Toggle/configs.d.ts +2 -2
  80. package/dist/esm/types/components/Forms/Toggle/index.d.ts +6 -6
  81. package/dist/esm/types/components/Modal/Modal.d.ts +1 -1
  82. package/dist/esm/types/components/Modal/ModalContent.d.ts +1 -1
  83. package/dist/esm/types/components/PaginationBar/PaginationBar.d.ts +1 -1
  84. package/dist/esm/types/components/PaginationBar/config.d.ts +2 -2
  85. package/dist/esm/types/components/Popover/index.d.ts +2 -2
  86. package/dist/esm/types/components/Slider/index.d.ts +1 -0
  87. package/dist/esm/types/components/Tab/ConfigTab.d.ts +2 -2
  88. package/dist/esm/types/components/Tab/DividerConfig.d.ts +8 -8
  89. package/dist/esm/types/components/Tab/Tab.d.ts +1 -1
  90. package/dist/esm/types/components/Tab/TabHead.d.ts +1 -1
  91. package/dist/esm/types/components/Table/Table.d.ts +1 -1
  92. package/dist/esm/types/components/Table/TableCol.d.ts +1 -1
  93. package/dist/esm/types/components/Table/TableDemo.d.ts +1 -1
  94. package/dist/esm/types/components/Table/configs.d.ts +6 -6
  95. package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +1 -1
  96. package/dist/esm/types/components/TagLabel/configs.d.ts +24 -24
  97. package/dist/esm/types/components/TagLabel/index.d.ts +1 -1
  98. package/dist/esm/types/stories/Button.stories.d.ts +4 -0
  99. package/dist/index.d.ts +55 -54
  100. 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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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
- medium: {
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
- small: {
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
- tiny: {
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?: 'medium' | 'small' | 'tiny';
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: 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
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
- isActive?: boolean;
74
+ selected?: boolean;
74
75
  }
75
- declare function Breadcrumb({ disabled, isActive, children, onClick, ...rest }: BreadcrumbProps): React.JSX.Element;
76
+ declare function Breadcrumb({ disabled, selected, children, onClick, ...rest }: BreadcrumbProps): React.JSX.Element;
76
77
  declare namespace Breadcrumb {
77
78
  var defaultProps: {
78
- isActive: boolean;
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?: 'large' | 'medium' | 'small' | 'tiny';
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
- inputSize?: 'medium' | 'small';
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, inputSize, isValid, label, placeholder, readOnly, required, variant, value, onChange, }: TextInputProps): React.JSX.Element;
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
- inputSize: string;
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?: 'medium' | 'small';
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
- inputSize?: 'medium' | 'small';
164
+ size?: 'md' | 'sm';
164
165
  id?: string;
165
166
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
166
167
  isDisabled?: boolean;
167
- isChecked?: boolean;
168
+ checked?: boolean;
168
169
  }
169
- declare function Radio({ label, inputSize, id, onClick, isDisabled, isChecked, }: RadioProps): React.JSX.Element;
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
- inputSize: string;
174
+ size: string;
174
175
  id: string;
175
176
  onClick: () => void;
176
177
  isDisabled: boolean;
177
- isChecked: boolean;
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
- inputSize?: 'medium' | 'small';
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, inputSize, label, placeholder, required, rows, ...props }: TextAreaProps): React.JSX.Element;
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
- inputSize: string;
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
- inputSize?: 'medium' | 'small';
209
- isChecked?: boolean;
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, inputSize, isChecked, label, onChange, value, }: CheckboxProps$1): React.JSX.Element;
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
- inputSize: string;
220
- isChecked: boolean;
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?: 'medium' | 'small';
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
- inputSize?: 'medium' | 'small';
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, inputSize, id, label, options, isRequired, selected, setSelected, }: SelectInputProps): React.JSX.Element;
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
- inputSize: string;
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: 'medium' | 'small';
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
- inputSize?: 'medium' | 'small';
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, inputSize, label, placeholder, required, options, setValue, value, }: LiveSearchProps): React.JSX.Element;
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
- inputSize: string;
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
- inputSize?: 'medium' | 'small';
300
- isChecked?: boolean;
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, inputSize, onClick, isChecked, id, disabled, }: CheckboxProps): React.JSX.Element;
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
- inputSize: string;
310
+ size: string;
310
311
  onClick: () => void;
311
- isChecked: boolean;
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
- active: boolean;
319
- size: 'large' | 'medium' | 'small' | 'tiny';
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({ active, size, children, disabled, onClick, }: SegmentButtonItemProps): React.JSX.Element;
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: 'large' | 'medium' | 'small' | 'tiny';
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: 'small' | 'medium' | 'large' | 'extra large';
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: 'small' | 'medium';
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
- isActive: boolean;
378
+ open: boolean;
378
379
  setIsActive: (arg0: boolean) => void;
379
380
  }
380
- declare function Popover({ children, content, delay, direction, title, isActive, setIsActive, }: PopoverProps): React.JSX.Element;
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?: 'medium' | 'small';
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?: 'medium' | 'small' | 'tiny';
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?: 'medium' | 'small' | 'tiny';
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?: 'medium' | 'small' | 'tiny';
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?: 'medium' | 'small' | 'tiny';
519
+ size?: 'md' | 'sm' | 'tn';
519
520
  variant?: 'label' | 'icon' | 'closeable';
520
521
  closeHandler?: () => void;
521
522
  isShow?: boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
5
5
  },
6
- "version": "0.5.16",
6
+ "version": "0.5.18",
7
7
  "description": "Design Language System develop by BIAENERGI",
8
8
  "scripts": {
9
9
  "rollup": "rollup -c",