bianic-ui 0.5.17 → 1.0.0-beta.1

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 (108) hide show
  1. package/dist/cjs/index.js +198 -207
  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/Banner/index.d.ts +5 -5
  6. package/dist/cjs/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
  7. package/dist/cjs/types/components/Button/configs.d.ts +20 -20
  8. package/dist/cjs/types/components/Button/index.d.ts +1 -1
  9. package/dist/cjs/types/components/Forms/Checkbox/Checkbox.d.ts +6 -6
  10. package/dist/cjs/types/components/Forms/Checkbox/Simulation.d.ts +1 -1
  11. package/dist/cjs/types/components/Forms/Checkbox/configs.d.ts +2 -2
  12. package/dist/cjs/types/components/Forms/DropdownItem/Custom.d.ts +1 -1
  13. package/dist/cjs/types/components/Forms/DropdownItem/Default.d.ts +1 -1
  14. package/dist/cjs/types/components/Forms/DropdownItem/configs.d.ts +2 -2
  15. package/dist/cjs/types/components/Forms/LiveSearch/LiveSearch.d.ts +4 -4
  16. package/dist/cjs/types/components/Forms/LiveSearch/Simulation.d.ts +1 -1
  17. package/dist/cjs/types/components/Forms/LiveSearch/configs.d.ts +2 -2
  18. package/dist/cjs/types/components/Forms/Radio/configs.d.ts +2 -2
  19. package/dist/cjs/types/components/Forms/Radio/index.d.ts +8 -8
  20. package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +3 -3
  21. package/dist/cjs/types/components/Forms/SegmentButton/SegmentButtonSimulation.d.ts +1 -1
  22. package/dist/cjs/types/components/Forms/SegmentButton/config.d.ts +12 -12
  23. package/dist/cjs/types/components/Forms/SelectInput/SelectedInput.d.ts +8 -8
  24. package/dist/cjs/types/components/Forms/SelectInput/Simulation.d.ts +1 -1
  25. package/dist/cjs/types/components/Forms/SelectInput/configs.d.ts +2 -2
  26. package/dist/cjs/types/components/Forms/TextArea/configs.d.ts +2 -2
  27. package/dist/cjs/types/components/Forms/TextArea/index.d.ts +3 -3
  28. package/dist/cjs/types/components/Forms/TextInput/PasswordIcon.d.ts +2 -2
  29. package/dist/cjs/types/components/Forms/TextInput/Simulation.d.ts +1 -1
  30. package/dist/cjs/types/components/Forms/TextInput/TextInput.d.ts +6 -6
  31. package/dist/cjs/types/components/Forms/TextInput/configs.d.ts +2 -2
  32. package/dist/cjs/types/components/Forms/Toggle/configs.d.ts +2 -2
  33. package/dist/cjs/types/components/Forms/Toggle/index.d.ts +6 -6
  34. package/dist/cjs/types/components/Modal/Modal.d.ts +4 -4
  35. package/dist/cjs/types/components/Modal/ModalContent.d.ts +1 -1
  36. package/dist/cjs/types/components/PaginationBar/PaginationBar.d.ts +1 -1
  37. package/dist/cjs/types/components/PaginationBar/config.d.ts +2 -2
  38. package/dist/cjs/types/components/Popover/index.d.ts +3 -3
  39. package/dist/cjs/types/components/Slider/index.d.ts +1 -0
  40. package/dist/cjs/types/components/Tab/ConfigTab.d.ts +2 -2
  41. package/dist/cjs/types/components/Tab/DividerConfig.d.ts +8 -8
  42. package/dist/cjs/types/components/Tab/Tab.d.ts +1 -1
  43. package/dist/cjs/types/components/Tab/TabHead.d.ts +1 -1
  44. package/dist/cjs/types/components/Table/Table.d.ts +1 -1
  45. package/dist/cjs/types/components/Table/TableCol.d.ts +1 -1
  46. package/dist/cjs/types/components/Table/TableDemo.d.ts +1 -1
  47. package/dist/cjs/types/components/Table/configs.d.ts +6 -6
  48. package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +1 -1
  49. package/dist/cjs/types/components/TagLabel/configs.d.ts +24 -24
  50. package/dist/cjs/types/components/TagLabel/index.d.ts +4 -4
  51. package/dist/cjs/types/stories/Badge/BadgeDemo.stories.d.ts +2 -1
  52. package/dist/cjs/types/stories/Badge/BadgeDemoHeading.stories.d.ts +2 -1
  53. package/dist/cjs/types/stories/Button.stories.d.ts +4 -0
  54. package/dist/esm/index.js +198 -207
  55. package/dist/esm/lib.css +1 -1
  56. package/dist/esm/types/components/Avatar/Avatar.d.ts +2 -1
  57. package/dist/esm/types/components/Avatar/config.d.ts +5 -5
  58. package/dist/esm/types/components/Banner/index.d.ts +5 -5
  59. package/dist/esm/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
  60. package/dist/esm/types/components/Button/configs.d.ts +20 -20
  61. package/dist/esm/types/components/Button/index.d.ts +1 -1
  62. package/dist/esm/types/components/Forms/Checkbox/Checkbox.d.ts +6 -6
  63. package/dist/esm/types/components/Forms/Checkbox/Simulation.d.ts +1 -1
  64. package/dist/esm/types/components/Forms/Checkbox/configs.d.ts +2 -2
  65. package/dist/esm/types/components/Forms/DropdownItem/Custom.d.ts +1 -1
  66. package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +1 -1
  67. package/dist/esm/types/components/Forms/DropdownItem/configs.d.ts +2 -2
  68. package/dist/esm/types/components/Forms/LiveSearch/LiveSearch.d.ts +4 -4
  69. package/dist/esm/types/components/Forms/LiveSearch/Simulation.d.ts +1 -1
  70. package/dist/esm/types/components/Forms/LiveSearch/configs.d.ts +2 -2
  71. package/dist/esm/types/components/Forms/Radio/configs.d.ts +2 -2
  72. package/dist/esm/types/components/Forms/Radio/index.d.ts +8 -8
  73. package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonItem.d.ts +3 -3
  74. package/dist/esm/types/components/Forms/SegmentButton/SegmentButtonSimulation.d.ts +1 -1
  75. package/dist/esm/types/components/Forms/SegmentButton/config.d.ts +12 -12
  76. package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +8 -8
  77. package/dist/esm/types/components/Forms/SelectInput/Simulation.d.ts +1 -1
  78. package/dist/esm/types/components/Forms/SelectInput/configs.d.ts +2 -2
  79. package/dist/esm/types/components/Forms/TextArea/configs.d.ts +2 -2
  80. package/dist/esm/types/components/Forms/TextArea/index.d.ts +3 -3
  81. package/dist/esm/types/components/Forms/TextInput/PasswordIcon.d.ts +2 -2
  82. package/dist/esm/types/components/Forms/TextInput/Simulation.d.ts +1 -1
  83. package/dist/esm/types/components/Forms/TextInput/TextInput.d.ts +6 -6
  84. package/dist/esm/types/components/Forms/TextInput/configs.d.ts +2 -2
  85. package/dist/esm/types/components/Forms/Toggle/configs.d.ts +2 -2
  86. package/dist/esm/types/components/Forms/Toggle/index.d.ts +6 -6
  87. package/dist/esm/types/components/Modal/Modal.d.ts +4 -4
  88. package/dist/esm/types/components/Modal/ModalContent.d.ts +1 -1
  89. package/dist/esm/types/components/PaginationBar/PaginationBar.d.ts +1 -1
  90. package/dist/esm/types/components/PaginationBar/config.d.ts +2 -2
  91. package/dist/esm/types/components/Popover/index.d.ts +3 -3
  92. package/dist/esm/types/components/Slider/index.d.ts +1 -0
  93. package/dist/esm/types/components/Tab/ConfigTab.d.ts +2 -2
  94. package/dist/esm/types/components/Tab/DividerConfig.d.ts +8 -8
  95. package/dist/esm/types/components/Tab/Tab.d.ts +1 -1
  96. package/dist/esm/types/components/Tab/TabHead.d.ts +1 -1
  97. package/dist/esm/types/components/Table/Table.d.ts +1 -1
  98. package/dist/esm/types/components/Table/TableCol.d.ts +1 -1
  99. package/dist/esm/types/components/Table/TableDemo.d.ts +1 -1
  100. package/dist/esm/types/components/Table/configs.d.ts +6 -6
  101. package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +1 -1
  102. package/dist/esm/types/components/TagLabel/configs.d.ts +24 -24
  103. package/dist/esm/types/components/TagLabel/index.d.ts +4 -4
  104. package/dist/esm/types/stories/Badge/BadgeDemo.stories.d.ts +2 -1
  105. package/dist/esm/types/stories/Badge/BadgeDemoHeading.stories.d.ts +2 -1
  106. package/dist/esm/types/stories/Button.stories.d.ts +4 -0
  107. package/dist/index.d.ts +75 -74
  108. package/package.json +1 -1
package/dist/cjs/index.js CHANGED
@@ -337,35 +337,29 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
337
337
 
338
338
  var radiusConfig = {
339
339
  default: {
340
- small: 'rounded-radius-sm focus-visible:rounded-radius-sm',
341
- medium: 'rounded-radius-md focus-visible:rounded-radius-md',
342
- large: 'rounded-radius-lg focus-visible:rounded-radius-lg',
343
- tiny: 'rounded-radius-tn focus-visible:rounded-radius-tn',
340
+ sm: 'rounded-radius-sm focus-visible:rounded-radius-sm',
341
+ md: 'rounded-radius-md focus-visible:rounded-radius-md',
342
+ lg: 'rounded-radius-lg focus-visible:rounded-radius-lg',
343
+ tn: 'rounded-radius-tn focus-visible:rounded-radius-tn',
344
344
  },
345
345
  'full-rounded': {
346
- small: 'rounded-radius-full focus-visible:rounded-radius-full',
347
- medium: 'rounded-radius-full focus-visible:rounded-radius-full',
348
- large: 'rounded-radius-full focus-visible:rounded-radius-full',
349
- tiny: 'rounded-radius-full focus-visible:rounded-radius-full',
346
+ sm: 'rounded-radius-full focus-visible:rounded-radius-full',
347
+ md: 'rounded-radius-full focus-visible:rounded-radius-full',
348
+ lg: 'rounded-radius-full focus-visible:rounded-radius-full',
349
+ tn: 'rounded-radius-full focus-visible:rounded-radius-full',
350
350
  },
351
351
  };
352
352
  var sizeConfig$a = {
353
- large: 'text-primary-black py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
354
- medium: 'text-primary-black px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
355
- small: 'text-primary-black px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
356
- tiny: 'text-primary-black px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
353
+ lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
354
+ md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
355
+ sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
356
+ tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
357
357
  };
358
358
  var iconOnlySizeConfig = {
359
- large: 'text-primary-black p-[13px] flex items-center justify-center gap-[10px]',
360
- medium: 'text-primary-black p-[11px] flex items-center justify-center gap-[5px]',
361
- small: 'text-primary-black p-[8px] flex items-center justify-center gap-[5px] ',
362
- tiny: 'text-primary-black p-[4px] flex items-center justify-center gap-[3px]',
363
- };
364
- var textConfig = {
365
- large: 'medium-text-semibold',
366
- medium: 'normal-text-semibold',
367
- small: 'small-text-semibold',
368
- tiny: 'small-text-semibold',
359
+ lg: 'p-[13px] flex items-center justify-center gap-[10px]',
360
+ md: ' p-[11px] flex items-center justify-center gap-[5px]',
361
+ sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
362
+ tn: 'p-[4px] flex items-center justify-center gap-[3px]',
369
363
  };
370
364
  var shadow = 'shadow-[0px_6px_18px_1px_rgba(188,199,237,0.5)] disabled:shadow-none active:shadow-none';
371
365
  var variantConfig$1 = {
@@ -387,10 +381,10 @@ var variantConfig$1 = {
387
381
  };
388
382
 
389
383
  function Button(_a) {
390
- var label = _a.label, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.radius, radius = _d === void 0 ? 'default' : _d, _e = _a.size, size = _e === void 0 ? 'medium' : _e, _f = _a.variant, variant = _f === void 0 ? 'default' : _f, _g = _a.iconLeft, iconLeft = _g === void 0 ? null : _g, _h = _a.iconRight, iconRight = _h === void 0 ? null : _h, props = __rest(_a, ["label", "className", "disabled", "radius", "size", "variant", "iconLeft", "iconRight"]);
384
+ var label = _a.label, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.radius, radius = _d === void 0 ? 'default' : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, _f = _a.variant, variant = _f === void 0 ? 'default' : _f, _g = _a.iconLeft, iconLeft = _g === void 0 ? null : _g, _h = _a.iconRight, iconRight = _h === void 0 ? null : _h, props = __rest(_a, ["label", "className", "disabled", "radius", "size", "variant", "iconLeft", "iconRight"]);
391
385
  return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center ".concat(variantConfig$1[variant], " ").concat(label ? sizeConfig$a[size] : iconOnlySizeConfig[size], " ").concat(radiusConfig[radius][size], " ").concat(className), disabled: disabled }, props),
392
386
  iconLeft,
393
- label && (React.createElement(Text, { variant: textConfig[size], extended: size === 'large' ? 'pb-[0px]' : 'pb-[2px]' }, label)),
387
+ label,
394
388
  iconRight));
395
389
  }
396
390
  Button.defaultProps = {
@@ -398,37 +392,37 @@ Button.defaultProps = {
398
392
  className: '',
399
393
  disabled: false,
400
394
  radius: 'default',
401
- size: 'medium',
395
+ size: 'md',
402
396
  variant: 'default',
403
397
  iconLeft: null,
404
398
  iconRight: null,
405
399
  };
406
400
 
407
401
  var AvatarConfig = {
408
- small: {
402
+ sm: {
409
403
  picture: 'w-[24px] h-[24px] rounded-[12px] border-[1px] border-bia-coolgrey-light-90',
410
404
  'no picture': 'font-semibold text-[12px] leading-[15.96px] text-primary-white flex items-center',
411
405
  },
412
- medium: {
406
+ md: {
413
407
  picture: 'w-[36px] h-[36px] rounded-[18px] border-[1px] border-bia-coolgrey-light-90',
414
408
  'no picture': 'font-semibold text-[14px] leading-[18.62px] text-primary-white flex items-center',
415
409
  },
416
- large: {
410
+ lg: {
417
411
  picture: 'w-[52px] h-[52px] rounded-[26px] border-[2px] border-bia-coolgrey-light-90',
418
412
  'no picture': 'font-semibold text-[24px] leading-[31.92px] text-primary-white flex items-center',
419
413
  },
420
- 'x-large': {
414
+ xl: {
421
415
  picture: 'w-[92px] h-[92px] rounded-[46px] border-[3px] border-bia-coolgrey-light-90',
422
416
  'no picture': 'font-semibold text-[36px] leading-[47.88px] text-primary-white flex items-center',
423
417
  },
424
- 'xx-large': {
418
+ xxl: {
425
419
  picture: 'w-[160px] h-[160px] rounded-[80px] border-[5px] border-bia-coolgrey-light-90',
426
420
  'no picture': 'font-semibold text-[64px] leading-[85.13px] text-primary-white flex items-center',
427
421
  },
428
422
  };
429
423
 
430
424
  function Avatar(_a) {
431
- var size = _a.size, variant = _a.variant, _b = _a.name, name = _b === void 0 ? 'Test' : _b;
425
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, variant = _a.variant, _c = _a.name, name = _c === void 0 ? 'Test' : _c;
432
426
  var getInitials = function (initial) {
433
427
  if (!initial)
434
428
  return '';
@@ -460,6 +454,7 @@ function Avatar(_a) {
460
454
  }
461
455
  Avatar.defaultProps = {
462
456
  name: '',
457
+ size: 'md',
463
458
  };
464
459
 
465
460
  var typeConfig = {
@@ -534,19 +529,17 @@ var variantConfig = {
534
529
  };
535
530
 
536
531
  function Banner(_a) {
537
- var children = _a.children, _b = _a.isCloseable, isCloseable = _b === void 0 ? true : _b, _c = _a.variant, variant = _c === void 0 ? 'black' : _c, isShow = _a.isShow, setIsShow = _a.setIsShow;
538
- if (isShow) {
532
+ var children = _a.children, _b = _a.closeable, closeable = _b === void 0 ? true : _b, _c = _a.variant, variant = _c === void 0 ? 'black' : _c, open = _a.open, onClose = _a.onClose;
533
+ if (open) {
539
534
  return (React.createElement("div", { className: "w-full h-[42px] py-[22px] text-size-base font-semibold flex justify-center items-center text-white relative ".concat(variantConfig[variant].bg) },
540
535
  React.createElement("div", { className: "w-full flex justify-center items-center gap-[10px]" },
541
536
  React.createElement("div", { className: "font-semibold font-segoe text-[14px] leading-[21px]" }, children),
542
- React.createElement("div", { className: "flex items-center justify-center" }, isCloseable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig[variant].focus), type: "button", onClick: function () {
543
- setIsShow(false);
544
- } },
537
+ React.createElement("div", { className: "flex items-center justify-center" }, closeable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig[variant].focus), type: "button", onClick: function () { return onClose(false); } },
545
538
  React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig[variant].hover, " ").concat(variantConfig[variant].active) })))))));
546
539
  }
547
540
  }
548
541
  Banner.defaultProps = {
549
- isCloseable: true,
542
+ closeable: true,
550
543
  variant: 'black',
551
544
  };
552
545
 
@@ -1352,15 +1345,15 @@ function Chevron() {
1352
1345
  }
1353
1346
 
1354
1347
  function Breadcrumb(_a) {
1355
- var disabled = _a.disabled, _b = _a.isActive, isActive = _b === void 0 ? false : _b, children = _a.children, onClick = _a.onClick, rest = __rest(_a, ["disabled", "isActive", "children", "onClick"]);
1356
- var _c = BreadcrumbConfig[String(isActive)], container = _c.container, text = _c.text;
1348
+ var disabled = _a.disabled, _b = _a.selected, selected = _b === void 0 ? false : _b, children = _a.children, onClick = _a.onClick, rest = __rest(_a, ["disabled", "selected", "children", "onClick"]);
1349
+ var _c = BreadcrumbConfig[String(selected)], container = _c.container, text = _c.text;
1357
1350
  return (React.createElement("div", { className: "flex" },
1358
1351
  React.createElement("button", __assign({ className: "".concat(text, " ").concat(disabled ? 'text-bia-coolgrey-light-50 cursor-pointer' : '', " whitespace-normal flex items-center justify-center bg-transparent rounded-radius-sm px-[5px] py-[3px] focus-visible:outline cursor-pointer ").concat(container, " ").concat(disabled ? 'hover:bg-transparent focus-visible:outline-transparent active:bg-transparent' : ''), disabled: disabled, type: "button", onClick: onClick }, rest), children),
1359
- !isActive && (React.createElement("div", { className: "px-[5px] flex justify-center items-center" },
1352
+ !selected && (React.createElement("div", { className: "px-[5px] flex justify-center items-center" },
1360
1353
  React.createElement(Chevron, null)))));
1361
1354
  }
1362
1355
  Breadcrumb.defaultProps = {
1363
- isActive: false,
1356
+ selected: false,
1364
1357
  };
1365
1358
 
1366
1359
  function Color() {
@@ -1429,12 +1422,12 @@ Divider.defaultProps = {
1429
1422
  };
1430
1423
 
1431
1424
  var sizeConfig$9 = {
1432
- medium: {
1425
+ md: {
1433
1426
  fieldSize: 'text-size-base p-2.5 font-[350] h-10',
1434
1427
  iconPosition: 'right-[10px]',
1435
1428
  iconSize: 18,
1436
1429
  },
1437
- small: {
1430
+ sm: {
1438
1431
  fieldSize: 'text-size-sm p-1.5 h-[30px]',
1439
1432
  iconPosition: 'right-[7px]',
1440
1433
  iconSize: 14,
@@ -1468,8 +1461,8 @@ function ValidationIcon(_a) {
1468
1461
  }
1469
1462
 
1470
1463
  function PasswordIcon(_a) {
1471
- var isShow = _a.isShow, _b = _a.showHandler, showHandler = _b === void 0 ? function () { } : _b, iconSize = _a.iconSize, isDisabled = _a.isDisabled;
1472
- var iconColor = isDisabled ? '#8b8ba6' : '#5E5EEA';
1464
+ var isShow = _a.isShow, _b = _a.showHandler, showHandler = _b === void 0 ? function () { } : _b, iconSize = _a.iconSize, disabled = _a.disabled;
1465
+ var iconColor = disabled ? '#8b8ba6' : '#5E5EEA';
1473
1466
  if (isShow) {
1474
1467
  return (React.createElement(TbEye, { onClick: function () { return showHandler(false); }, style: {
1475
1468
  fontSize: iconSize,
@@ -1480,47 +1473,47 @@ function PasswordIcon(_a) {
1480
1473
  }
1481
1474
 
1482
1475
  function TextInput(_a) {
1483
- var descText = _a.descText, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.inputSize, inputSize = _d === void 0 ? 'medium' : _d, _e = _a.isValid, isValid = _e === void 0 ? false : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? '' : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l;
1476
+ var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isValid, isValid = _e === void 0 ? false : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? '' : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l;
1484
1477
  var _m = React.useState(false), isShow = _m[0], setIsShow = _m[1];
1485
1478
  var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
1486
- var _p = sizeConfig$9[inputSize], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
1479
+ var _p = sizeConfig$9[size], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
1487
1480
  var typeVariant = variant;
1488
1481
  if (variant === 'password')
1489
1482
  typeVariant = isShow ? 'text' : 'password';
1490
1483
  var isExistValidation = isValid !== null;
1491
1484
  var descColor = 'text-primary-cool';
1492
- if (!isDisabled && isExistValidation && isValid)
1485
+ if (!disabled && isExistValidation && isValid)
1493
1486
  descColor = 'text-bia-green';
1494
- if (!isDisabled && isExistValidation && !isValid)
1487
+ if (!disabled && isExistValidation && !isValid)
1495
1488
  descColor = 'text-bia-red';
1496
1489
  var bottomBorderColor = 'hover:border-b-bia-blue focus:border-b-bia-blue';
1497
- if (!isDisabled && isExistValidation && isValid)
1490
+ if (!disabled && isExistValidation && isValid)
1498
1491
  bottomBorderColor = 'border-b-bia-green';
1499
- if (!isDisabled && isExistValidation && !isValid)
1492
+ if (!disabled && isExistValidation && !isValid)
1500
1493
  bottomBorderColor = 'border-b-bia-red';
1501
1494
  var iconElement = null;
1502
- if (!isDisabled && isExistValidation)
1495
+ if (!disabled && isExistValidation)
1503
1496
  iconElement = React.createElement(ValidationIcon, { isValid: isValid, iconSize: iconSize });
1504
1497
  if (icon)
1505
1498
  iconElement = icon;
1506
1499
  if (variant === 'password') {
1507
- iconElement = (React.createElement(PasswordIcon, { isShow: isShow, showHandler: setIsShow, iconSize: iconSize, isDisabled: isDisabled }));
1500
+ iconElement = (React.createElement(PasswordIcon, { isShow: isShow, showHandler: setIsShow, iconSize: iconSize, disabled: disabled }));
1508
1501
  }
1509
1502
  return (React.createElement("div", { className: "field-group w-full flex flex-col gap-y-2" },
1510
1503
  React.createElement("label", { htmlFor: id, className: "label text-xs font-semibold" },
1511
1504
  label,
1512
1505
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1513
1506
  React.createElement("div", { className: "w-full relative" },
1514
- React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active read-only:border-bia-grey-light-50 read-only:pointer-events-none w-full border border-bia-grey-dark-10 disabled:border-bia-grey-dark-10 focus:rounded-b-none hover:rounded-b-none focus-visible:outline-none rounded ".concat(fieldStyle, " ").concat(fieldSize, " ").concat(bottomBorderColor), disabled: isDisabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); } }),
1507
+ React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active read-only:border-bia-grey-light-50 read-only:pointer-events-none w-full border border-bia-grey-dark-10 disabled:border-bia-grey-dark-10 focus:rounded-b-none hover:rounded-b-none focus-visible:outline-none rounded ".concat(fieldStyle, " ").concat(fieldSize, " ").concat(bottomBorderColor), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); } }),
1515
1508
  React.createElement("div", { className: "absolute inset-y-0 pl-3 flex items-center ".concat(iconStyle, " ").concat(iconPosition) }, iconElement)),
1516
1509
  React.createElement("span", { className: "desc text-xs ".concat(descColor) }, descText)));
1517
1510
  }
1518
1511
  TextInput.defaultProps = {
1519
1512
  descText: '',
1520
- isDisabled: false,
1513
+ disabled: false,
1521
1514
  icon: null,
1522
1515
  id: '',
1523
- inputSize: 'medium',
1516
+ size: 'md',
1524
1517
  isValid: null,
1525
1518
  label: '',
1526
1519
  placeholder: '',
@@ -1533,55 +1526,55 @@ TextInput.defaultProps = {
1533
1526
  function TextInputSimulation(_a) {
1534
1527
  var size = _a.size;
1535
1528
  var _b = React.useState(''), value = _b[0], setValue = _b[1];
1536
- return (React.createElement(TextInput, { variant: "text", label: "Input", descText: "Deskripsi", placeholder: "Type here", inputSize: size, id: "demo-id", value: value, onChange: function (e) { return setValue(e.target.value); } }));
1529
+ return (React.createElement(TextInput, { variant: "text", label: "Input", descText: "Deskripsi", placeholder: "Type here", size: size, id: "demo-id", value: value, onChange: function (e) { return setValue(e.target.value); } }));
1537
1530
  }
1538
1531
  TextInputSimulation.defaultProps = {
1539
- size: 'medium',
1532
+ size: 'md',
1540
1533
  };
1541
1534
 
1542
1535
  // Desc: Radio button size configuration
1543
1536
  var sizeConfig$8 = {
1544
- medium: {
1537
+ md: {
1545
1538
  checkSize: 'w-[22px] h-[22px]',
1546
1539
  labelSize: 'text-size-base',
1547
1540
  },
1548
- small: {
1541
+ sm: {
1549
1542
  checkSize: 'w-4 h-4',
1550
1543
  labelSize: 'text-size-sm',
1551
1544
  },
1552
1545
  };
1553
1546
 
1554
1547
  function Radio(_a) {
1555
- var label = _a.label, _b = _a.inputSize, inputSize = _b === void 0 ? 'medium' : _b, id = _a.id, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isChecked, isChecked = _e === void 0 ? false : _e;
1556
- var _f = sizeConfig$8[inputSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1548
+ var label = _a.label, _b = _a.size, size = _b === void 0 ? 'md' : _b, id = _a.id, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.checked, checked = _e === void 0 ? false : _e;
1549
+ var _f = sizeConfig$8[size], checkSize = _f.checkSize, labelSize = _f.labelSize;
1557
1550
  return (React.createElement("div", { className: "flex items-center" },
1558
1551
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1559
- React.createElement("input", { id: id, "aria-labelledby": "label1", type: "radio", className: "peer checkbox box-content appearance-none focus:opacity-100 focus:ring-1 focus:ring-offset-2 checked:disabled:border-bia-blue-disabled focus:ring-bia-blue focus:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue hover:border-bia-blue-hover disabled:border-bia-grey-dark-10 border-2 absolute cursor-pointer w-full h-full", onClick: function (e) { return onClick(e); }, checked: isChecked, disabled: isDisabled }),
1552
+ React.createElement("input", { id: id, "aria-labelledby": "label1", type: "radio", className: "peer checkbox box-content appearance-none focus:opacity-100 focus:ring-1 focus:ring-offset-2 checked:disabled:border-bia-blue-disabled focus:ring-bia-blue focus:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue hover:border-bia-blue-hover disabled:border-bia-grey-dark-10 border-2 absolute cursor-pointer w-full h-full", onClick: function (e) { return onClick(e); }, checked: checked, disabled: disabled }),
1560
1553
  React.createElement("div", { className: "check-icon flex text-bia-grey group justify-center border-2 border-primary-white peer-disabled:bg-bia-grey-light-80 peer-disabled:border-transparent peer-disabled:peer-checked:border-primary-white peer-checked:peer-disabled:bg-bia-blue-disabled peer-checked:hover:border-bia-blue-hover peer-checked:bg-bia-blue peer-checked:peer-hover:bg-bia-blue-hover outline-2 peer-checked:hover:outline-bia-blue-hover outline-bia-blue rounded-full w-full h-full z-1" })),
1561
- React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: isDisabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
1554
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
1562
1555
  }
1563
1556
  Radio.defaultProps = {
1564
1557
  label: '',
1565
- inputSize: 'medium',
1558
+ size: 'md',
1566
1559
  id: '',
1567
1560
  onClick: function () { },
1568
- isDisabled: false,
1569
- isChecked: false,
1561
+ disabled: false,
1562
+ checked: false,
1570
1563
  };
1571
1564
 
1572
1565
  var sizeConfig$7 = {
1573
- medium: {
1566
+ md: {
1574
1567
  inputClass: 'text-size-base font-[350] min-h-10',
1575
1568
  },
1576
- small: {
1569
+ sm: {
1577
1570
  inputClass: 'text-size-sm min-h-[30px]',
1578
1571
  },
1579
1572
  };
1580
1573
 
1581
1574
  function TextArea(_a) {
1582
- var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.inputSize, inputSize = _c === void 0 ? 'medium' : _c, label = _a.label, _d = _a.placeholder, placeholder = _d === void 0 ? '' : _d, required = _a.required, rows = _a.rows, props = __rest(_a, ["descText", "disabled", "id", "inputSize", "label", "placeholder", "required", "rows"]);
1575
+ var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, label = _a.label, _d = _a.placeholder, placeholder = _d === void 0 ? '' : _d, required = _a.required, rows = _a.rows, props = __rest(_a, ["descText", "disabled", "id", "size", "label", "placeholder", "required", "rows"]);
1583
1576
  var inputRow = rows !== null && rows !== void 0 ? rows : 4;
1584
- var inputClass = sizeConfig$7[inputSize].inputClass;
1577
+ var inputClass = sizeConfig$7[size].inputClass;
1585
1578
  return (React.createElement("div", { className: "field-group w-full flex flex-col" },
1586
1579
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1587
1580
  label,
@@ -1594,7 +1587,7 @@ TextArea.defaultProps = {
1594
1587
  disabled: false,
1595
1588
  descText: '',
1596
1589
  id: '',
1597
- inputSize: 'medium',
1590
+ size: 'md',
1598
1591
  label: '',
1599
1592
  placeholder: 'Write here ...',
1600
1593
  required: false,
@@ -1602,22 +1595,22 @@ TextArea.defaultProps = {
1602
1595
  };
1603
1596
 
1604
1597
  var sizeConfig$6 = {
1605
- medium: {
1598
+ md: {
1606
1599
  checkClass: 'w-[22px] h-[22px]',
1607
1600
  labelClass: 'text-size-base font-[350]',
1608
1601
  },
1609
- small: {
1602
+ sm: {
1610
1603
  checkClass: 'w-4 h-4',
1611
1604
  labelClass: 'text-size-sm font-normal',
1612
1605
  },
1613
1606
  };
1614
1607
 
1615
1608
  function Checkbox(_a) {
1616
- var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.inputSize, inputSize = _c === void 0 ? 'medium' : _c, _d = _a.isChecked, isChecked = _d === void 0 ? false : _d, label = _a.label, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, value = _a.value;
1617
- var _f = sizeConfig$6[inputSize], checkClass = _f.checkClass, labelClass = _f.labelClass;
1609
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.checked, checked = _d === void 0 ? false : _d, label = _a.label, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, value = _a.value;
1610
+ var _f = sizeConfig$6[size], checkClass = _f.checkClass, labelClass = _f.labelClass;
1618
1611
  return (React.createElement("div", { className: "flex items-center" },
1619
1612
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
1620
- React.createElement("input", { id: id, type: "checkbox", className: "peer checkbox box-content appearance-none focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-offset-2 focus-visible:ring-bia-blue focus-visible:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue disabled:border-bia-coolgrey-light-50 hover:border-bia-blue-hover disabled:checked:border-bia-blue-light-50 border-2 absolute cursor-pointer w-full h-full", checked: isChecked, onChange: function (e) { return onChange(e); }, disabled: disabled, value: value }),
1613
+ React.createElement("input", { id: id, type: "checkbox", className: "peer checkbox box-content appearance-none focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-offset-2 focus-visible:ring-bia-blue focus-visible:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue disabled:border-bia-coolgrey-light-50 hover:border-bia-blue-hover disabled:checked:border-bia-blue-light-50 border-2 absolute cursor-pointer w-full h-full", checked: checked, onChange: function (e) { return onChange(e); }, disabled: disabled, value: value }),
1621
1614
  React.createElement("div", { className: "check-icon flex text-bia-grey group justify-center peer-checked:border-2 peer-checked:border-primary-white peer-checked:hover:border-bia-blue-hover peer-checked:bg-bia-blue peer-checked:peer-hover:bg-bia-blue-hover outline-2 peer-checked:hover:outline-bia-blue-hover outline-bia-blue peer-disabled:bg-bia-grey-light-80 peer-disabled:peer-checked:outline-bia-blue-light-50 peer-disabled:peer-checked:bg-bia-blue-light-50 rounded-full w-full h-full z-1" },
1622
1615
  React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: " fill-bia-grey-dark-10 peer-checked:group-[]:fill-primary-white peer-checked:peer-hover:group-[]:fill-primary-white peer-hover:group-[]:fill-bia-blue-hover peer-disabled:group-[]:fill-bia-grey-dark-10 peer-disabled:peer-checked:group-[]:fill-primary-white", viewBox: "-5 -7 24 24", width: "24" },
1623
1616
  React.createElement("path", { d: "M5.486 9.73a.997.997 0 0 1-.707-.292L.537 5.195A1 1 0 1 1 1.95 3.78l3.535 3.535L11.85.952a1 1 0 0 1 1.415 1.414L6.193 9.438a.997.997 0 0 1-.707.292z" })))),
@@ -1626,8 +1619,8 @@ function Checkbox(_a) {
1626
1619
  Checkbox.defaultProps = {
1627
1620
  disabled: false,
1628
1621
  id: '',
1629
- inputSize: 'medium',
1630
- isChecked: false,
1622
+ size: 'md',
1623
+ checked: false,
1631
1624
  label: '',
1632
1625
  onChange: function () { },
1633
1626
  };
@@ -1661,29 +1654,29 @@ function CheckboxSimulation(_a) {
1661
1654
  console.log('selected', selected);
1662
1655
  return (React.createElement("div", { className: "flex flex-col gap-y-5" },
1663
1656
  React.createElement("div", null, "Pick your hobby"),
1664
- optionsData.map(function (option) { return (React.createElement(Checkbox, { label: option.label, inputSize: size, id: String(option.id), value: option.id, onChange: function (e) { return handleChange(e, option.id); }, isChecked: selected.includes(option.id) })); })));
1657
+ optionsData.map(function (option) { return (React.createElement(Checkbox, { label: option.label, size: size, id: String(option.id), value: option.id, onChange: function (e) { return handleChange(e, option.id); }, checked: selected.includes(option.id) })); })));
1665
1658
  }
1666
1659
  CheckboxSimulation.defaultProps = {
1667
- size: 'medium',
1660
+ size: 'md',
1668
1661
  };
1669
1662
 
1670
1663
  var sizeConfig$5 = {
1671
- medium: {
1664
+ md: {
1672
1665
  searchSize: 'text-size-base p-2.5 font-[350] h-10',
1673
1666
  iconSize: 'right-[10px]',
1674
1667
  },
1675
- small: {
1668
+ sm: {
1676
1669
  searchSize: 'text-size-sm p-1.5 font-normal h-[30px]',
1677
1670
  iconSize: 'right-[7px]',
1678
1671
  },
1679
1672
  };
1680
1673
 
1681
1674
  var sizeConfig$4 = {
1682
- medium: {
1675
+ md: {
1683
1676
  container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
1684
1677
  item: 'min-h-[34px] p-2.5',
1685
1678
  },
1686
- small: {
1679
+ sm: {
1687
1680
  container: 'text-size-sm font-normal py-[2px] first:pt-[7px] last:pb-[7px]',
1688
1681
  item: 'min-h-[26px] p-1.5',
1689
1682
  },
@@ -1691,7 +1684,7 @@ var sizeConfig$4 = {
1691
1684
 
1692
1685
  /* eslint-disable @typescript-eslint/no-explicit-any */
1693
1686
  function DefaultDropdownItem(_a) {
1694
- var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.size, size = _e === void 0 ? 'medium' : _e, isSelected = _a.isSelected, options = _a.options;
1687
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, isSelected = _a.isSelected, options = _a.options;
1695
1688
  var _f = React.useState(false), isHovered = _f[0], setisHovered = _f[1];
1696
1689
  var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
1697
1690
  var isOpenDropdown = isHovered || isHoveredSubMenu;
@@ -1708,16 +1701,16 @@ function DefaultDropdownItem(_a) {
1708
1701
  DefaultDropdownItem.defaultProps = {
1709
1702
  className: '',
1710
1703
  onClick: function () { },
1711
- size: 'medium',
1704
+ size: 'md',
1712
1705
  options: [],
1713
1706
  isSelected: false,
1714
1707
  };
1715
1708
 
1716
1709
  /* eslint-disable @typescript-eslint/no-explicit-any */
1717
1710
  function SelectInput(_a) {
1718
- var descText = _a.descText, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.inputSize, inputSize = _c === void 0 ? 'medium' : _c, id = _a.id, label = _a.label, options = _a.options, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected;
1711
+ var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, label = _a.label, options = _a.options, _d = _a.required, required = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected;
1719
1712
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1720
- var _f = sizeConfig$5[inputSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1713
+ var _f = sizeConfig$5[size], searchSize = _f.searchSize, iconSize = _f.iconSize;
1721
1714
  var inputRef = React.useRef(null);
1722
1715
  var handleOutsideClick = function (e) {
1723
1716
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1733,13 +1726,13 @@ function SelectInput(_a) {
1733
1726
  return (React.createElement("div", { className: "field-group w-full flex flex-col", ref: inputRef },
1734
1727
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1735
1728
  label,
1736
- isRequired && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1729
+ required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1737
1730
  React.createElement("div", { className: "group w-full relative" },
1738
- React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 pe-8 w-full border border-bia-grey-dark-10 enabled:hover:border-b-bia-blue enabled:hover:rounded-b-none enabled:focus:border-b-bia-blue enabled:focus:rounded-b-none focus-visible:outline-none cursor-pointer rounded disabled:text-bia-coolgrey peer ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selected === null || selected === void 0 ? void 0 : selected.label, readOnly: true, id: id, disabled: isDisabled }),
1731
+ React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 pe-8 w-full border border-bia-grey-dark-10 enabled:hover:border-b-bia-blue enabled:hover:rounded-b-none enabled:focus:border-b-bia-blue enabled:focus:rounded-b-none focus-visible:outline-none cursor-pointer rounded disabled:text-bia-coolgrey peer ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selected === null || selected === void 0 ? void 0 : selected.label, readOnly: true, id: id, disabled: disabled }),
1739
1732
  React.createElement("div", { className: "absolute inset-y-0 pl-3 flex items-center pointer-events-none text-bia-coolgrey peer-disabled:text-bia-coolgrey-light-50 ".concat(iconSize) }, isOpen ? (React.createElement(TbChevronUp, { className: "" })) : (React.createElement(TbChevronDown, { className: "" }))),
1740
1733
  isOpen && (React.createElement("div", { className: "absolute border w-full bg-primary-white border-bia-grey-dark-10 rounded-b-md shadow-lg z-10" }, options.map(function (option) {
1741
1734
  var isSelected = selected && selected.id && option.id === selected.id;
1742
- return (React.createElement(DefaultDropdownItem, { label: option.label, size: inputSize, isSelected: isSelected, onClick: function () {
1735
+ return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, isSelected: isSelected, onClick: function () {
1743
1736
  setSelected(option);
1744
1737
  setIsOpen(false);
1745
1738
  } }));
@@ -1748,17 +1741,17 @@ function SelectInput(_a) {
1748
1741
  }
1749
1742
  SelectInput.defaultProps = {
1750
1743
  descText: '',
1751
- isDisabled: false,
1744
+ disabled: false,
1752
1745
  id: '',
1753
- inputSize: 'medium',
1746
+ size: 'md',
1754
1747
  label: '',
1755
- isRequired: false,
1748
+ required: false,
1756
1749
  selected: {},
1757
1750
  setSelected: function () { },
1758
1751
  };
1759
1752
 
1760
1753
  function SelectInputSimulation(_a) {
1761
- var _b = _a.size, size = _b === void 0 ? 'medium' : _b;
1754
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b;
1762
1755
  var _c = React.useState({
1763
1756
  id: 1,
1764
1757
  label: 'Mohammed Salah',
@@ -1785,17 +1778,17 @@ function SelectInputSimulation(_a) {
1785
1778
  label: 'Ricardo Kaka',
1786
1779
  },
1787
1780
  ];
1788
- return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, inputSize: size, id: "demo-id" }));
1781
+ return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, id: "demo-id" }));
1789
1782
  }
1790
1783
 
1791
1784
  var sizeConfig$3 = {
1792
- medium: {
1785
+ md: {
1793
1786
  iconClass: 'right-[10px]',
1794
1787
  iconSize: '18',
1795
1788
  inputClass: 'text-size-base placeholder:text-size-base px-2.5 h-10',
1796
1789
  optionClass: 'text-size-base px-2.5 py-[9.5px]',
1797
1790
  },
1798
- small: {
1791
+ sm: {
1799
1792
  iconClass: 'right-[7px]',
1800
1793
  iconSize: '14',
1801
1794
  inputClass: 'text-size-sm placeholder:text-size-sm px-1.5 h-[30px]',
@@ -1805,9 +1798,9 @@ var sizeConfig$3 = {
1805
1798
 
1806
1799
  /* eslint-disable @typescript-eslint/no-explicit-any */
1807
1800
  function LiveSearch(_a) {
1808
- var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.inputSize, inputSize = _c === void 0 ? 'medium' : _c, label = _a.label, placeholder = _a.placeholder, _d = _a.required, required = _d === void 0 ? false : _d, options = _a.options, setValue = _a.setValue, value = _a.value;
1801
+ var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, label = _a.label, placeholder = _a.placeholder, _d = _a.required, required = _d === void 0 ? false : _d, options = _a.options, setValue = _a.setValue, value = _a.value;
1809
1802
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1810
- var _f = sizeConfig$3[inputSize], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
1803
+ var _f = sizeConfig$3[size], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
1811
1804
  var inputRef = React.useRef(null);
1812
1805
  var handleOutsideClick = function (e) {
1813
1806
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1833,7 +1826,7 @@ function LiveSearch(_a) {
1833
1826
  React.createElement(TbZoom, { className: "text-primary-black", style: { fontSize: iconSize } })),
1834
1827
  isOpen && (React.createElement("div", { className: "absolute border w-full max-h-60 overflow-y-auto bg-primary-white border-grey-100 rounded-b-md shadow-lg" }, filteredOptions.map(function (option) {
1835
1828
  var isSelected = value && value.id && option.id === value.id;
1836
- return (React.createElement(DefaultDropdownItem, { label: option.label, size: inputSize, isSelected: isSelected, onClick: function () {
1829
+ return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, isSelected: isSelected, onClick: function () {
1837
1830
  setValue(option);
1838
1831
  setIsOpen(false);
1839
1832
  } }));
@@ -1844,7 +1837,7 @@ LiveSearch.defaultProps = {
1844
1837
  descText: '',
1845
1838
  disabled: false,
1846
1839
  id: '',
1847
- inputSize: 'medium',
1840
+ size: 'md',
1848
1841
  label: '',
1849
1842
  placeholder: '',
1850
1843
  required: false,
@@ -1854,12 +1847,12 @@ LiveSearch.defaultProps = {
1854
1847
  };
1855
1848
 
1856
1849
  var sizeConfig$2 = {
1857
- medium: {
1850
+ md: {
1858
1851
  containerSize: 'w-[42px] h-[22px]',
1859
1852
  checkSize: 'p-2',
1860
1853
  labelClass: 'text-bia-base',
1861
1854
  },
1862
- small: {
1855
+ sm: {
1863
1856
  containerSize: 'w-[28px] h-[16px]',
1864
1857
  checkSize: 'px-2 py-1',
1865
1858
  labelClass: 'text-bia-sm',
@@ -1867,44 +1860,44 @@ var sizeConfig$2 = {
1867
1860
  };
1868
1861
 
1869
1862
  function Toggle(_a) {
1870
- var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.inputSize, inputSize = _c === void 0 ? 'medium' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.isChecked, isChecked = _e === void 0 ? false : _e, _f = _a.id, id = _f === void 0 ? '' : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
1871
- var _h = sizeConfig$2[inputSize], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
1863
+ var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.checked, checked = _e === void 0 ? false : _e, _f = _a.id, id = _f === void 0 ? '' : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
1864
+ var _h = sizeConfig$2[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
1872
1865
  return (React.createElement("div", { className: "flex items-center" },
1873
- React.createElement("div", { className: "".concat(containerSize, " rounded-full py-[2px] flex flex-shrink-0 ").concat(isChecked ? 'justify-end' : 'justify-start', " items-center relative cursor-pointer"), onClick: onClick, onKeyDown: function () { }, role: "checkbox", tabIndex: 0, "aria-checked": isChecked },
1874
- React.createElement("input", { id: id, checked: isChecked, disabled: disabled, className: "".concat(checkSize, " peer checkbox appearance-none opacity-100 focus:ring-1 focus:ring-offset-2 focus:ring-bia-blue focus:outline-none rounded-full border-bia-grey checked:border-bia-blue bg-primary-white checked:bg-bia-blue checked:hover:bg-bia-blue-hover cursor-pointer hover:border-bia-blue-hover peer-hover:border-bia-blue-hover disabled:bg-bia-grey-light-80 disabled:checked:bg-bia-blue-light-50 disabled:border-none border-2 absolute w-full h-full"), type: "checkbox" }),
1866
+ React.createElement("div", { className: "".concat(containerSize, " rounded-full py-[2px] flex flex-shrink-0 ").concat(checked ? 'justify-end' : 'justify-start', " items-center relative cursor-pointer"), onClick: onClick, onKeyDown: function () { }, role: "checkbox", tabIndex: 0, "aria-checked": checked },
1867
+ React.createElement("input", { id: id, checked: checked, disabled: disabled, className: "".concat(checkSize, " peer checkbox appearance-none opacity-100 focus:ring-1 focus:ring-offset-2 focus:ring-bia-blue focus:outline-none rounded-full border-bia-grey checked:border-bia-blue bg-primary-white checked:bg-bia-blue checked:hover:bg-bia-blue-hover cursor-pointer hover:border-bia-blue-hover peer-hover:border-bia-blue-hover disabled:bg-bia-grey-light-80 disabled:checked:bg-bia-blue-light-50 disabled:border-none border-2 absolute w-full h-full"), type: "checkbox" }),
1875
1868
  React.createElement("div", { className: "peer check-icon flex m-[2px] text-bia-grey group justify-center border-2 peer-checked:border-bia-blue border-primary-white peer-checked:hover:bg-primary-white peer-checked:bg-primary-white bg-bia-grey peer-checked:peer-hover:bg-primary-white peer-hover:bg-bia-blue-hover peer-disabled:bg-bia-grey-dark-10 peer-disabled:border-none peer-disabled:outline-none peer-disabled:peer-checked:bg-bia-blue-light-90 outline-2 rounded-full w-5/12 h-full z-10" })),
1876
1869
  React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-normal text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
1877
1870
  }
1878
1871
  Toggle.defaultProps = {
1879
1872
  label: '',
1880
- inputSize: 'medium',
1873
+ size: 'md',
1881
1874
  onClick: function () { },
1882
- isChecked: false,
1875
+ checked: false,
1883
1876
  id: '',
1884
1877
  disabled: false,
1885
1878
  };
1886
1879
 
1887
- var isActiveConfig = {
1888
- active: 'bg-white text-black cursor-default',
1889
- nonactive: 'bg-bia-grey-light-50 text-bia-coolgrey hover:bg-bia-grey-light-80 hover:text-bia-coolgrey',
1880
+ var isSelectedConfig = {
1881
+ selected: 'bg-white text-black cursor-default',
1882
+ notSelected: 'bg-bia-grey-light-50 text-bia-coolgrey hover:bg-bia-grey-light-80 hover:text-bia-coolgrey',
1890
1883
  };
1891
1884
  var roundedConfig = {
1892
- large: 'first:rounded-l-radius-lg last:rounded-r-radius-lg ',
1893
- medium: 'first:rounded-l-radius-md last:rounded-r-radius-md',
1894
- small: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1895
- tiny: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1885
+ lg: 'first:rounded-l-radius-lg last:rounded-r-radius-lg ',
1886
+ md: 'first:rounded-l-radius-md last:rounded-r-radius-md',
1887
+ sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1888
+ tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1896
1889
  };
1897
1890
  var sizeConfig$1 = {
1898
- large: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1899
- medium: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1900
- small: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
1901
- tiny: 'text-size-sm leading-[15.96px] px-[4px] py-[2px]',
1891
+ lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1892
+ md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1893
+ sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
1894
+ tn: 'text-size-sm leading-[15.96px] px-[4px] py-[2px]',
1902
1895
  };
1903
1896
 
1904
1897
  function SegmentButtonItem(_a) {
1905
- var _b = _a.active, active = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1906
- var isActive = active ? 'active' : 'nonactive';
1907
- return (React.createElement("button", { type: "button", onClick: onClick, disabled: disabled, className: "focus-visible:z-50 focus-visible:outline focus-visible:-outline-offset-1 focus-visible:outline-[3px] focus-visible:outline-bia-blue-light-50 border-[1px] border-l-0 first:border-l-[1px] border-bia-grey-dark-10 group:last:border-l-0 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-dark-10 disabled:cursor-not-allowed ".concat(isActiveConfig[isActive], " ").concat(roundedConfig[size], " ").concat(sizeConfig$1[size]) }, children));
1898
+ var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1899
+ var isSelected = selected ? 'selected' : 'notSelected';
1900
+ return (React.createElement("button", { type: "button", onClick: onClick, disabled: disabled, className: "focus-visible:z-50 focus-visible:outline focus-visible:-outline-offset-1 focus-visible:outline-[3px] focus-visible:outline-bia-blue-light-50 border-[1px] border-l-0 first:border-l-[1px] border-bia-grey-dark-10 group:last:border-l-0 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-dark-10 disabled:cursor-not-allowed ".concat(isSelectedConfig[isSelected], " ").concat(roundedConfig[size], " ").concat(sizeConfig$1[size]) }, children));
1908
1901
  }
1909
1902
 
1910
1903
  function SegmentButtonGroup(_a) {
@@ -1918,33 +1911,33 @@ function SegmentButtonSimulation(_a) {
1918
1911
  var SegmentButtonArr = [
1919
1912
  {
1920
1913
  content: 'Segment Button A',
1921
- isDisabled: false,
1914
+ disabled: false,
1922
1915
  handleClick: function (index) { return setActiveButton(index); },
1923
1916
  },
1924
1917
  {
1925
1918
  content: 'Segment Button B',
1926
- isDisabled: false,
1919
+ disabled: false,
1927
1920
  handleClick: function (index) { return setActiveButton(index); },
1928
1921
  },
1929
1922
  {
1930
1923
  content: 'Segment Button C (Disabled)',
1931
- isDisabled: true,
1924
+ disabled: true,
1932
1925
  handleClick: function (index) { return setActiveButton(index); },
1933
1926
  },
1934
1927
  {
1935
1928
  content: 'Segment Button D',
1936
- isDisabled: false,
1929
+ disabled: false,
1937
1930
  handleClick: function (index) { return setActiveButton(index); },
1938
1931
  },
1939
1932
  {
1940
1933
  content: 'Segment Button E',
1941
- isDisabled: false,
1934
+ disabled: false,
1942
1935
  handleClick: function (index) { return setActiveButton(index); },
1943
1936
  },
1944
1937
  ];
1945
1938
  return (React.createElement(SegmentButtonGroup, null, SegmentButtonArr.map(function (_a, index) {
1946
- var content = _a.content, isDisabled = _a.isDisabled, handleClick = _a.handleClick;
1947
- return (React.createElement(SegmentButtonItem, { active: activeButton === index, size: size, disabled: isDisabled, onClick: function () { return handleClick(index); } },
1939
+ var content = _a.content, disabled = _a.disabled, handleClick = _a.handleClick;
1940
+ return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
1948
1941
  React.createElement("div", { className: "flex items-center justify-center" },
1949
1942
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
1950
1943
  React.createElement(TbCheck$1, null)),
@@ -1953,15 +1946,15 @@ function SegmentButtonSimulation(_a) {
1953
1946
  }
1954
1947
 
1955
1948
  function Modal(_a) {
1956
- var size = _a.size, title = _a.title, isShow = _a.isShow, setIsShow = _a.setIsShow, rest = __rest(_a, ["size", "title", "isShow", "setIsShow"]);
1949
+ var size = _a.size, title = _a.title, open = _a.open, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "onClose"]);
1957
1950
  var modalSize;
1958
- if (size === 'small') {
1951
+ if (size === 'sm') {
1959
1952
  modalSize = 'w-[300px]';
1960
1953
  }
1961
- else if (size === 'large') {
1954
+ else if (size === 'lg') {
1962
1955
  modalSize = 'w-[800px]';
1963
1956
  }
1964
- else if (size === 'extra large') {
1957
+ else if (size === 'xl') {
1965
1958
  modalSize = 'w-[1140px]';
1966
1959
  }
1967
1960
  else {
@@ -1969,19 +1962,17 @@ function Modal(_a) {
1969
1962
  }
1970
1963
  var handleClose = function (e) {
1971
1964
  if (e && e.target && e.target.id === 'wrapper') {
1972
- setIsShow(false);
1965
+ onClose();
1973
1966
  }
1974
1967
  };
1975
- if (isShow) {
1968
+ if (open) {
1976
1969
  return (
1977
1970
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
1978
1971
  React.createElement("div", { className: "fixed inset-0 flex justify-center items-center bg-bia-black-transparent-75", id: "wrapper", onClick: handleClose },
1979
1972
  React.createElement("div", { className: "modal flex flex-col gap-[20px] bg-white rounded-[5px] p-[20px] ".concat(modalSize) },
1980
1973
  React.createElement("div", { className: "flex justify-between" },
1981
1974
  React.createElement("div", { className: " font-humnst777 font-bold text-[18px] leading-[21.85px] text-primary-black w-[260px] text-wrap" }, title),
1982
- React.createElement("button", { type: "button", title: "button", className: "w-[22px] h-[22px] rounded-radius-full flex items-center justify-center bg-bia-grey-light-50 hover:bg-bia-grey-light-30 cursor-pointer", onClick: function () {
1983
- setIsShow(false);
1984
- } },
1975
+ React.createElement("button", { type: "button", title: "button", className: "w-[22px] h-[22px] rounded-radius-full flex items-center justify-center bg-bia-grey-light-50 hover:bg-bia-grey-light-30 cursor-pointer", onClick: function () { return onClose(); } },
1985
1976
  React.createElement(TbX, { className: "text-bia-coolgrey text-[14px]" }))),
1986
1977
  React.createElement("div", { className: "flex flex-col gap-[20px]" }, rest.children))));
1987
1978
  }
@@ -1992,8 +1983,8 @@ Modal.defaultProps = {
1992
1983
  };
1993
1984
 
1994
1985
  var sizeConfig = {
1995
- medium: 'w-[38px] h-[40px] text-[14px] font-semibold',
1996
- small: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1986
+ md: 'w-[38px] h-[40px] text-[14px] font-semibold',
1987
+ sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1997
1988
  };
1998
1989
  var positionConfig = {
1999
1990
  start: 'justify-start',
@@ -2040,9 +2031,9 @@ function PaginationBar(_a) {
2040
2031
  }
2041
2032
  };
2042
2033
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2043
- React.createElement(Button, { variant: "subtle-link", size: "medium", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
2044
- showedPages.map(function (page) { return (React.createElement(Button, { key: page, variant: currentPage === page ? 'default' : 'subtle-link', size: "medium", type: "button", onClick: function () { return handlePageChange(page); }, className: "cursor-pointer ".concat(sizeConfig[size]), label: page.toString() })); }),
2045
- React.createElement(Button, { variant: "subtle-link", size: "medium", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2034
+ React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
2035
+ showedPages.map(function (page) { return (React.createElement(Button, { key: page, variant: currentPage === page ? 'default' : 'subtle-link', size: "md", type: "button", onClick: function () { return handlePageChange(page); }, className: "cursor-pointer ".concat(sizeConfig[size]), label: page.toString() })); }),
2036
+ React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2046
2037
  }
2047
2038
 
2048
2039
  var activeConfig = {
@@ -2101,21 +2092,21 @@ var classConfig$1 = {
2101
2092
  };
2102
2093
 
2103
2094
  function Popover(_a) {
2104
- var children = _a.children, content = _a.content, _b = _a.delay, delay = _b === void 0 ? 400 : _b, _c = _a.direction, direction = _c === void 0 ? 'bottom' : _c, _d = _a.title, title = _d === void 0 ? '' : _d, isActive = _a.isActive, setIsActive = _a.setIsActive;
2095
+ var children = _a.children, content = _a.content, _b = _a.delay, delay = _b === void 0 ? 400 : _b, _c = _a.direction, direction = _c === void 0 ? 'bottom' : _c, _d = _a.title, title = _d === void 0 ? '' : _d, open = _a.open, setOpen = _a.setOpen;
2105
2096
  var timeout;
2106
2097
  var showPopover = function () {
2107
2098
  timeout = setTimeout(function () {
2108
- setIsActive(true);
2099
+ setOpen(true);
2109
2100
  }, delay);
2110
2101
  };
2111
2102
  var hidePopover = function () {
2112
2103
  clearInterval(timeout);
2113
- setIsActive(false);
2104
+ setOpen(false);
2114
2105
  };
2115
2106
  var _e = classConfig$1[direction], tooltipContainer = _e.tooltipContainer, triangleContainer = _e.triangleContainer, triangleShape = _e.triangleShape;
2116
2107
  return (React.createElement("div", { className: "Popover-Wrapper relative block w-fit h-fit", onMouseEnter: showPopover, onMouseLeave: hidePopover },
2117
2108
  children,
2118
- isActive && (React.createElement("div", { className: "Popover-Tip absolute px-[20px] py-[17.5px] text-bia-sm bg-primary-black text-primary-white z-50 rounded-[4px] w-[245px] space-y-[5px] ".concat(tooltipContainer) },
2109
+ open && (React.createElement("div", { className: "Popover-Tip absolute px-[20px] py-[17.5px] text-bia-sm bg-primary-black text-primary-white z-50 rounded-[4px] w-[245px] space-y-[5px] ".concat(tooltipContainer) },
2119
2110
  React.createElement("div", { className: "flex flex-col" },
2120
2111
  React.createElement("div", { className: "text-[16px] leading-[19.42px] mb-[5px] font-humnst777 font-bold" }, title),
2121
2112
  React.createElement("div", { className: "text-[12px] font-segoe font-normal break-words" }, content)),
@@ -2275,18 +2266,18 @@ var configTab = {
2275
2266
  horizontal: 'w-full h-[1px] bg-bia-grey group-hover:bg-bia-blue-hover group-active:bg-bia-blue-active rounded-t-none -rotate-0',
2276
2267
  vertical: 'h-full w-[1px] bg-bia-grey group-hover:bg-bia-blue-hover group-active:bg-bia-blue-active rounded-l-none ',
2277
2268
  },
2278
- small: {
2269
+ sm: {
2279
2270
  text: 'text-[12px] leading-[15.96px] font-semibold',
2280
2271
  icon: 'text-[14px]',
2281
2272
  },
2282
- medium: {
2273
+ md: {
2283
2274
  text: 'text-[14px] leading-[21px] font-semibold',
2284
2275
  icon: 'text-[18px]',
2285
2276
  },
2286
2277
  };
2287
2278
 
2288
2279
  function Tab(_a) {
2289
- var children = _a.children, active = _a.active, icon = _a.icon, disabled = _a.disabled, _b = _a.mode, mode = _b === void 0 ? 'horizontal' : _b, _c = _a.fit, fit = _c === void 0 ? 'fit-content' : _c, _d = _a.size, size = _d === void 0 ? 'medium' : _d, _e = _a.card, card = _e === void 0 ? false : _e, rest = __rest(_a, ["children", "active", "icon", "disabled", "mode", "fit", "size", "card"]);
2280
+ var children = _a.children, active = _a.active, icon = _a.icon, disabled = _a.disabled, _b = _a.mode, mode = _b === void 0 ? 'horizontal' : _b, _c = _a.fit, fit = _c === void 0 ? 'fit-content' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.card, card = _e === void 0 ? false : _e, rest = __rest(_a, ["children", "active", "icon", "disabled", "mode", "fit", "size", "card"]);
2290
2281
  var disabledKeyTab = disabled || active ? ' pointer-events-none' : '';
2291
2282
  var cursor;
2292
2283
  var cardColor;
@@ -2311,7 +2302,7 @@ function Tab(_a) {
2311
2302
  : 'text-bia-coolgrey group-hover:text-bia-coolgrey-hover group-active:text-bia-coolgrey-active group-disabled:text-bia-coolgrey-disabled';
2312
2303
  return (React.createElement("div", { className: "".concat(mode === 'horizontal' ? 'h-full' : 'w-full', " ").concat(cursor) },
2313
2304
  React.createElement("button", __assign({ type: "button", disabled: disabled }, rest, { className: "flex -mb-[1px] justify-between items-stretch ".concat(card && cardColor, " ").concat(mode === 'horizontal' ? 'flex-col' : 'flex-row w-full', " group outline-none relative ").concat(disabledKeyTab, " ").concat(fit) }),
2314
- React.createElement("div", { className: "flex justify-center items-center ".concat(size === 'small' ? " pt-[10px] ".concat(mode === 'vertical' ? 'pb-[10px] pe-[30px]' : 'px-[30px] pb-[8px]') : "px-[30px] pt-[13px] ".concat(mode === 'vertical' ? 'pb-[13px]' : 'pb-[10px]', " ")) },
2305
+ React.createElement("div", { className: "flex justify-center items-center ".concat(size === 'sm' ? " pt-[10px] ".concat(mode === 'vertical' ? 'pb-[10px] pe-[30px]' : 'px-[30px] pb-[8px]') : "px-[30px] pt-[13px] ".concat(mode === 'vertical' ? 'pb-[13px]' : 'pb-[10px]', " ")) },
2315
2306
  React.createElement("div", { className: "flex items-center justify-center " },
2316
2307
  React.createElement("div", { className: "flex text-nowrap space-x-1 ".concat(activeKeyTab, " ").concat(configTab[size].text) },
2317
2308
  icon && React.createElement("div", { className: "mr-[5px]" }, icon),
@@ -2322,7 +2313,7 @@ Tab.defaultProps = {
2322
2313
  children: null,
2323
2314
  mode: 'horizontal',
2324
2315
  fit: 'size-base',
2325
- size: 'medium',
2316
+ size: 'md',
2326
2317
  icon: null,
2327
2318
  card: false,
2328
2319
  };
@@ -2333,22 +2324,22 @@ var colAlign = {
2333
2324
  left: 'justify-start',
2334
2325
  };
2335
2326
  var colSize = {
2336
- medium: 'px-2.5 py-[9px] text-bia-base font-[350]',
2337
- small: 'px-2.5 py-[7px] text-bia-sm',
2338
- tiny: 'px-2.5 py-[3px] text-bia-sm',
2327
+ md: 'px-2.5 py-[9px] text-bia-base font-[350]',
2328
+ sm: 'px-2.5 py-[7px] text-bia-sm',
2329
+ tn: 'px-2.5 py-[3px] text-bia-sm',
2339
2330
  };
2340
2331
  var tableClass = {
2341
- medium: 'text-bia-base',
2342
- small: 'text-bia-sm',
2343
- tiny: 'text-bia-sm',
2332
+ md: 'text-bia-base',
2333
+ sm: 'text-bia-sm',
2334
+ tn: 'text-bia-sm',
2344
2335
  };
2345
2336
 
2346
2337
  function Table(_a) {
2347
- var _b = _a.tableSize, tableSize = _b === void 0 ? 'medium' : _b, className = _a.className, children = _a.children;
2338
+ var _b = _a.tableSize, tableSize = _b === void 0 ? 'md' : _b, className = _a.className, children = _a.children;
2348
2339
  return (React.createElement("table", { className: "table table-auto w-full font-['Segoe UI'] leading-[21px] rounded-[5px] ".concat(tableClass[tableSize], " ").concat(className, "}") }, children));
2349
2340
  }
2350
2341
  Table.defaultProps = {
2351
- tableSize: 'medium',
2342
+ tableSize: 'md',
2352
2343
  className: '',
2353
2344
  };
2354
2345
 
@@ -2361,7 +2352,7 @@ TableRow.defaultProps = {
2361
2352
  };
2362
2353
 
2363
2354
  function TableCol(_a) {
2364
- var _b = _a.variant, variant = _b === void 0 ? 'body' : _b, _c = _a.lined, lined = _c === void 0 ? false : _c, _d = _a.alignment, alignment = _d === void 0 ? 'left' : _d, className = _a.className, children = _a.children, _e = _a.size, size = _e === void 0 ? 'medium' : _e;
2355
+ var _b = _a.variant, variant = _b === void 0 ? 'body' : _b, _c = _a.lined, lined = _c === void 0 ? false : _c, _d = _a.alignment, alignment = _d === void 0 ? 'left' : _d, className = _a.className, children = _a.children, _e = _a.size, size = _e === void 0 ? 'md' : _e;
2365
2356
  var borderBottom = lined ? 'border-b border-bia-grey' : '';
2366
2357
  var defaultAlign = variant ? 'text-center' : 'text-left';
2367
2358
  var columnClass = "p-0 ".concat(borderBottom, " ").concat(className, " ").concat(colSize[size], " ").concat(alignment ? colAlign[alignment] : defaultAlign);
@@ -2376,7 +2367,7 @@ TableCol.defaultProps = {
2376
2367
  variant: 'body',
2377
2368
  lined: false,
2378
2369
  alignment: 'left',
2379
- size: 'medium',
2370
+ size: 'md',
2380
2371
  };
2381
2372
 
2382
2373
  function TableHead(_a) {
@@ -2396,7 +2387,7 @@ TableBody.defaultProps = {
2396
2387
  };
2397
2388
 
2398
2389
  function TableDemo(_a) {
2399
- var _b = _a.tableSize, tableSize = _b === void 0 ? 'medium' : _b;
2390
+ var _b = _a.tableSize, tableSize = _b === void 0 ? 'md' : _b;
2400
2391
  return (React.createElement(Table, { tableSize: tableSize },
2401
2392
  React.createElement("thead", null,
2402
2393
  React.createElement(TableRow, null,
@@ -2416,7 +2407,7 @@ function TableDemo(_a) {
2416
2407
  React.createElement(TableCol, { size: tableSize }, "Street Avenue no. 29")))));
2417
2408
  }
2418
2409
  TableDemo.defaultProps = {
2419
- tableSize: 'medium',
2410
+ tableSize: 'md',
2420
2411
  };
2421
2412
 
2422
2413
  function TbCheck() {
@@ -2477,7 +2468,7 @@ function TbCloseable(_a) {
2477
2468
 
2478
2469
  var TagLabelConfig = {
2479
2470
  default: {
2480
- medium: {
2471
+ md: {
2481
2472
  iconColor: 'text-white',
2482
2473
  XColor: 'text-bia-coolgrey',
2483
2474
  XcolorV: 'text-primary-black',
@@ -2503,7 +2494,7 @@ var TagLabelConfig = {
2503
2494
  Xicon: TbCheckBlack,
2504
2495
  },
2505
2496
  },
2506
- small: {
2497
+ sm: {
2507
2498
  iconColor: 'text-white',
2508
2499
  XColor: 'text-bia-coolgrey',
2509
2500
  XcolorV: 'text-primary-black',
@@ -2529,7 +2520,7 @@ var TagLabelConfig = {
2529
2520
  Xicon: TbCheckBlackSmall,
2530
2521
  },
2531
2522
  },
2532
- tiny: {
2523
+ tn: {
2533
2524
  iconColor: 'text-white',
2534
2525
  XColor: 'text-bia-coolgrey',
2535
2526
  XcolorV: 'text-primary-black',
@@ -2557,7 +2548,7 @@ var TagLabelConfig = {
2557
2548
  },
2558
2549
  },
2559
2550
  blue: {
2560
- medium: {
2551
+ md: {
2561
2552
  iconColor: 'text-bia-blue',
2562
2553
  XColor: 'text-bia-blue-light-50',
2563
2554
  XcolorV: 'text-white',
@@ -2583,7 +2574,7 @@ var TagLabelConfig = {
2583
2574
  Xicon: TbCheck,
2584
2575
  },
2585
2576
  },
2586
- small: {
2577
+ sm: {
2587
2578
  iconColor: 'text-bia-blue',
2588
2579
  XColor: 'text-white',
2589
2580
  XcolorV: 'text-white',
@@ -2609,7 +2600,7 @@ var TagLabelConfig = {
2609
2600
  Xicon: TbCheckWhiteSmall,
2610
2601
  },
2611
2602
  },
2612
- tiny: {
2603
+ tn: {
2613
2604
  iconColor: 'text-bia-blue',
2614
2605
  XColor: 'text-white',
2615
2606
  XcolorV: 'text-white',
@@ -2637,7 +2628,7 @@ var TagLabelConfig = {
2637
2628
  },
2638
2629
  },
2639
2630
  teal: {
2640
- medium: {
2631
+ md: {
2641
2632
  iconColor: 'text-bia-teal',
2642
2633
  XColor: 'text-bia-teal-light-50',
2643
2634
  XcolorV: 'text-white',
@@ -2663,7 +2654,7 @@ var TagLabelConfig = {
2663
2654
  Xicon: TbCheck,
2664
2655
  },
2665
2656
  },
2666
- small: {
2657
+ sm: {
2667
2658
  iconColor: 'text-bia-teal',
2668
2659
  XColor: 'text-white',
2669
2660
  XcolorV: 'text-white',
@@ -2689,7 +2680,7 @@ var TagLabelConfig = {
2689
2680
  Xicon: TbCheckWhiteSmall,
2690
2681
  },
2691
2682
  },
2692
- tiny: {
2683
+ tn: {
2693
2684
  iconColor: 'text-bia-teal',
2694
2685
  XColor: 'text-white',
2695
2686
  XcolorV: 'text-white',
@@ -2717,7 +2708,7 @@ var TagLabelConfig = {
2717
2708
  },
2718
2709
  },
2719
2710
  green: {
2720
- medium: {
2711
+ md: {
2721
2712
  iconColor: 'text-bia-green',
2722
2713
  XColor: 'text-bia-green-light-50',
2723
2714
  XcolorV: 'text-white',
@@ -2743,7 +2734,7 @@ var TagLabelConfig = {
2743
2734
  Xicon: TbCheck,
2744
2735
  },
2745
2736
  },
2746
- small: {
2737
+ sm: {
2747
2738
  iconColor: 'text-bia-green',
2748
2739
  XColor: 'text-white',
2749
2740
  XcolorV: 'text-white',
@@ -2769,7 +2760,7 @@ var TagLabelConfig = {
2769
2760
  Xicon: TbCheckWhiteSmall,
2770
2761
  },
2771
2762
  },
2772
- tiny: {
2763
+ tn: {
2773
2764
  iconColor: 'text-bia-green',
2774
2765
  XColor: 'text-white',
2775
2766
  XcolorV: 'text-white',
@@ -2797,7 +2788,7 @@ var TagLabelConfig = {
2797
2788
  },
2798
2789
  },
2799
2790
  yellow: {
2800
- medium: {
2791
+ md: {
2801
2792
  iconColor: 'text-bia-orange',
2802
2793
  XColor: 'text-bia-orange-light-50',
2803
2794
  XcolorV: 'text-white',
@@ -2823,7 +2814,7 @@ var TagLabelConfig = {
2823
2814
  Xicon: TbCheck,
2824
2815
  },
2825
2816
  },
2826
- small: {
2817
+ sm: {
2827
2818
  iconColor: 'text-bia-orange',
2828
2819
  XColor: 'text-white',
2829
2820
  XcolorV: 'text-white',
@@ -2849,7 +2840,7 @@ var TagLabelConfig = {
2849
2840
  Xicon: TbCheckWhiteSmall,
2850
2841
  },
2851
2842
  },
2852
- tiny: {
2843
+ tn: {
2853
2844
  iconColor: 'text-bia-orange',
2854
2845
  XColor: 'text-white',
2855
2846
  XcolorV: 'text-white',
@@ -2877,7 +2868,7 @@ var TagLabelConfig = {
2877
2868
  },
2878
2869
  },
2879
2870
  red: {
2880
- medium: {
2871
+ md: {
2881
2872
  iconColor: 'text-bia-red',
2882
2873
  XColor: 'text-bia-red-light-50',
2883
2874
  XcolorV: 'text-white',
@@ -2903,7 +2894,7 @@ var TagLabelConfig = {
2903
2894
  Xicon: TbCheck,
2904
2895
  },
2905
2896
  },
2906
- small: {
2897
+ sm: {
2907
2898
  iconColor: 'text-bia-red',
2908
2899
  XColor: 'text-white',
2909
2900
  XcolorV: 'text-white',
@@ -2929,7 +2920,7 @@ var TagLabelConfig = {
2929
2920
  Xicon: TbCheckWhiteSmall,
2930
2921
  },
2931
2922
  },
2932
- tiny: {
2923
+ tn: {
2933
2924
  iconColor: 'text-bia-red',
2934
2925
  XColor: 'text-white',
2935
2926
  XcolorV: 'text-white',
@@ -2957,7 +2948,7 @@ var TagLabelConfig = {
2957
2948
  },
2958
2949
  },
2959
2950
  black: {
2960
- medium: {
2951
+ md: {
2961
2952
  iconColor: 'text-[#2f2f2f]',
2962
2953
  XColor: 'text-bia-coolgrey',
2963
2954
  XcolorV: 'text-white',
@@ -2983,7 +2974,7 @@ var TagLabelConfig = {
2983
2974
  Xicon: TbCheck,
2984
2975
  },
2985
2976
  },
2986
- small: {
2977
+ sm: {
2987
2978
  iconColor: 'text-[#2f2f2f]',
2988
2979
  XColor: 'text-white',
2989
2980
  XcolorV: 'text-white',
@@ -3009,7 +3000,7 @@ var TagLabelConfig = {
3009
3000
  Xicon: TbCheckWhiteSmall,
3010
3001
  },
3011
3002
  },
3012
- tiny: {
3003
+ tn: {
3013
3004
  iconColor: 'text-[#2f2f2f]',
3014
3005
  XColor: 'text-white',
3015
3006
  XcolorV: 'text-white',
@@ -3037,7 +3028,7 @@ var TagLabelConfig = {
3037
3028
  },
3038
3029
  },
3039
3030
  white: {
3040
- medium: {
3031
+ md: {
3041
3032
  iconColor: 'text-white',
3042
3033
  XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3043
3034
  XcolorV: 'text-primary-black',
@@ -3063,7 +3054,7 @@ var TagLabelConfig = {
3063
3054
  Xicon: TbCheckBlack,
3064
3055
  },
3065
3056
  },
3066
- small: {
3057
+ sm: {
3067
3058
  iconColor: 'text-white',
3068
3059
  XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3069
3060
  XcolorV: 'text-primary-black',
@@ -3089,7 +3080,7 @@ var TagLabelConfig = {
3089
3080
  Xicon: TbCheckBlackSmall,
3090
3081
  },
3091
3082
  },
3092
- tiny: {
3083
+ tn: {
3093
3084
  iconColor: 'text-white',
3094
3085
  XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3095
3086
  XcolorV: 'text-primary-black',
@@ -3119,12 +3110,12 @@ var TagLabelConfig = {
3119
3110
  };
3120
3111
 
3121
3112
  function CloseIcon(_a) {
3122
- var _b = _a.size, size = _b === void 0 ? 'medium' : _b;
3113
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b;
3123
3114
  var iconSize;
3124
- if (size === 'tiny') {
3115
+ if (size === 'tn') {
3125
3116
  iconSize = '10';
3126
3117
  }
3127
- else if (size === 'small') {
3118
+ else if (size === 'sm') {
3128
3119
  iconSize = '10';
3129
3120
  }
3130
3121
  else {
@@ -3136,11 +3127,11 @@ function CloseIcon(_a) {
3136
3127
  React.createElement("path", { d: "M6 6l12 12" })));
3137
3128
  }
3138
3129
  CloseIcon.defaultProps = {
3139
- size: 'medium',
3130
+ size: 'md',
3140
3131
  };
3141
3132
 
3142
3133
  function TagLabel(_a) {
3143
- var children = _a.children, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'small' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, isShow = _a.isShow, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
3134
+ var children = _a.children, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, open = _a.open, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
3144
3135
  var config = TagLabelConfig[color][size][variant];
3145
3136
  var configIcon = TagLabelConfig[color][size];
3146
3137
  var configbg = config.bg;
@@ -3152,9 +3143,9 @@ function TagLabel(_a) {
3152
3143
  var configXcolorV = configIcon.XcolorV;
3153
3144
  var iconColor = configIcon.iconColor;
3154
3145
  var IconContainer = {
3155
- small: 'h-[14px] w-[14px]',
3156
- tiny: 'h-[14px] w-[14px]',
3157
- medium: 'h-[20px] w-[20px]',
3146
+ sm: 'h-[14px] w-[14px]',
3147
+ tn: 'h-[14px] w-[14px]',
3148
+ md: 'h-[20px] w-[20px]',
3158
3149
  };
3159
3150
  var renderIcon = function (icon) {
3160
3151
  if (typeof icon === 'string') {
@@ -3162,10 +3153,10 @@ function TagLabel(_a) {
3162
3153
  }
3163
3154
  var IconComponent = icon;
3164
3155
  var textSize;
3165
- if (size === 'medium') {
3156
+ if (size === 'md') {
3166
3157
  textSize = 'text-[20px]';
3167
3158
  }
3168
- else if (size === 'small' || size === 'tiny') {
3159
+ else if (size === 'sm' || size === 'tn') {
3169
3160
  textSize = 'text-[14px]';
3170
3161
  }
3171
3162
  else {
@@ -3199,7 +3190,7 @@ function TagLabel(_a) {
3199
3190
  // const closeableMode = variant === 'closeable';
3200
3191
  // const iconMode = variant === 'icon';
3201
3192
  var closeButtonException;
3202
- if (size === 'medium') {
3193
+ if (size === 'md') {
3203
3194
  closeButtonException = '-mr-[2px]';
3204
3195
  }
3205
3196
  else {
@@ -3212,20 +3203,20 @@ function TagLabel(_a) {
3212
3203
  else {
3213
3204
  outlineColor = 'outline-white';
3214
3205
  }
3215
- if (!isShow)
3206
+ if (!open)
3216
3207
  return null;
3217
3208
  return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
3218
3209
  variant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, leftIcon || renderIcon(configX))) : (React.createElement(React.Fragment, null,
3219
3210
  React.createElement("span", null, leftIcon),
3220
- React.createElement("div", { className: "flex justify-center items-center ".concat(size === 'medium' && 'min-h-[20px] px-[5px]', " ").concat(size === 'small' && 'min-h-[18px] px-[3px]', " ").concat(size === 'tiny' && 'min-h-[14px] px-[3px] -mt-[2px]') }, children))),
3211
+ React.createElement("div", { className: "flex justify-center items-center ".concat(size === 'md' && 'min-h-[20px] px-[5px]', " ").concat(size === 'sm' && 'min-h-[18px] px-[3px]', " ").concat(size === 'tn' && 'min-h-[14px] px-[3px] -mt-[2px]') }, children))),
3221
3212
  variant === 'label' && rightIcon && (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, rightIcon)),
3222
- variant === 'closeable' && closeHandler && (React.createElement("button", { type: "button", className: "flex justify-center items-center ".concat(size === 'tiny' ? 'p-[1px]' : 'p-[2px]', " ").concat(outlineColor, " ").concat(iconColor, " ").concat(color === 'white' || color === 'default' ? 'bg-black/[.3]' : 'bg-white/[.5]', " focus:outline ").concat(size === 'tiny' ? 'outline-[1.5px]' : 'outline-[2px]', " ").concat(closeButtonException, " rounded-full group"), onClick: function () { return closeHandler(); } },
3213
+ variant === 'closeable' && closeHandler && (React.createElement("button", { type: "button", className: "flex justify-center items-center ".concat(size === 'tn' ? 'p-[1px]' : 'p-[2px]', " ").concat(outlineColor, " ").concat(iconColor, " ").concat(color === 'white' || color === 'default' ? 'bg-black/[.3]' : 'bg-white/[.5]', " focus:outline ").concat(size === 'tn' ? 'outline-[1.5px]' : 'outline-[2px]', " ").concat(closeButtonException, " rounded-full group"), onClick: function () { return closeHandler(); } },
3223
3214
  React.createElement(CloseIcon, { size: size })))));
3224
3215
  }
3225
3216
  TagLabel.defaultProps = {
3226
3217
  variant: 'default',
3227
- size: 'small',
3228
- isShow: true,
3218
+ size: 'sm',
3219
+ open: true,
3229
3220
  closeHandler: function () { },
3230
3221
  rightIcon: null,
3231
3222
  leftIcon: null,