bianic-ui 0.5.17 → 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
package/dist/esm/index.js CHANGED
@@ -335,35 +335,29 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
335
335
 
336
336
  var radiusConfig = {
337
337
  default: {
338
- small: 'rounded-radius-sm focus-visible:rounded-radius-sm',
339
- medium: 'rounded-radius-md focus-visible:rounded-radius-md',
340
- large: 'rounded-radius-lg focus-visible:rounded-radius-lg',
341
- tiny: 'rounded-radius-tn focus-visible:rounded-radius-tn',
338
+ sm: 'rounded-radius-sm focus-visible:rounded-radius-sm',
339
+ md: 'rounded-radius-md focus-visible:rounded-radius-md',
340
+ lg: 'rounded-radius-lg focus-visible:rounded-radius-lg',
341
+ tn: 'rounded-radius-tn focus-visible:rounded-radius-tn',
342
342
  },
343
343
  'full-rounded': {
344
- small: 'rounded-radius-full focus-visible:rounded-radius-full',
345
- medium: 'rounded-radius-full focus-visible:rounded-radius-full',
346
- large: 'rounded-radius-full focus-visible:rounded-radius-full',
347
- tiny: 'rounded-radius-full focus-visible:rounded-radius-full',
344
+ sm: 'rounded-radius-full focus-visible:rounded-radius-full',
345
+ md: 'rounded-radius-full focus-visible:rounded-radius-full',
346
+ lg: 'rounded-radius-full focus-visible:rounded-radius-full',
347
+ tn: 'rounded-radius-full focus-visible:rounded-radius-full',
348
348
  },
349
349
  };
350
350
  var sizeConfig$a = {
351
- large: 'text-primary-black py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
352
- medium: 'text-primary-black px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
353
- small: 'text-primary-black px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
354
- tiny: 'text-primary-black px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
351
+ lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
352
+ md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
353
+ sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
354
+ tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
355
355
  };
356
356
  var iconOnlySizeConfig = {
357
- large: 'text-primary-black p-[13px] flex items-center justify-center gap-[10px]',
358
- medium: 'text-primary-black p-[11px] flex items-center justify-center gap-[5px]',
359
- small: 'text-primary-black p-[8px] flex items-center justify-center gap-[5px] ',
360
- tiny: 'text-primary-black p-[4px] flex items-center justify-center gap-[3px]',
361
- };
362
- var textConfig = {
363
- large: 'medium-text-semibold',
364
- medium: 'normal-text-semibold',
365
- small: 'small-text-semibold',
366
- tiny: 'small-text-semibold',
357
+ lg: 'p-[13px] flex items-center justify-center gap-[10px]',
358
+ md: ' p-[11px] flex items-center justify-center gap-[5px]',
359
+ sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
360
+ tn: 'p-[4px] flex items-center justify-center gap-[3px]',
367
361
  };
368
362
  var shadow = 'shadow-[0px_6px_18px_1px_rgba(188,199,237,0.5)] disabled:shadow-none active:shadow-none';
369
363
  var variantConfig$1 = {
@@ -385,10 +379,10 @@ var variantConfig$1 = {
385
379
  };
386
380
 
387
381
  function Button(_a) {
388
- 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"]);
382
+ 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"]);
389
383
  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),
390
384
  iconLeft,
391
- label && (React.createElement(Text, { variant: textConfig[size], extended: size === 'large' ? 'pb-[0px]' : 'pb-[2px]' }, label)),
385
+ label,
392
386
  iconRight));
393
387
  }
394
388
  Button.defaultProps = {
@@ -396,37 +390,37 @@ Button.defaultProps = {
396
390
  className: '',
397
391
  disabled: false,
398
392
  radius: 'default',
399
- size: 'medium',
393
+ size: 'md',
400
394
  variant: 'default',
401
395
  iconLeft: null,
402
396
  iconRight: null,
403
397
  };
404
398
 
405
399
  var AvatarConfig = {
406
- small: {
400
+ sm: {
407
401
  picture: 'w-[24px] h-[24px] rounded-[12px] border-[1px] border-bia-coolgrey-light-90',
408
402
  'no picture': 'font-semibold text-[12px] leading-[15.96px] text-primary-white flex items-center',
409
403
  },
410
- medium: {
404
+ md: {
411
405
  picture: 'w-[36px] h-[36px] rounded-[18px] border-[1px] border-bia-coolgrey-light-90',
412
406
  'no picture': 'font-semibold text-[14px] leading-[18.62px] text-primary-white flex items-center',
413
407
  },
414
- large: {
408
+ lg: {
415
409
  picture: 'w-[52px] h-[52px] rounded-[26px] border-[2px] border-bia-coolgrey-light-90',
416
410
  'no picture': 'font-semibold text-[24px] leading-[31.92px] text-primary-white flex items-center',
417
411
  },
418
- 'x-large': {
412
+ xl: {
419
413
  picture: 'w-[92px] h-[92px] rounded-[46px] border-[3px] border-bia-coolgrey-light-90',
420
414
  'no picture': 'font-semibold text-[36px] leading-[47.88px] text-primary-white flex items-center',
421
415
  },
422
- 'xx-large': {
416
+ xxl: {
423
417
  picture: 'w-[160px] h-[160px] rounded-[80px] border-[5px] border-bia-coolgrey-light-90',
424
418
  'no picture': 'font-semibold text-[64px] leading-[85.13px] text-primary-white flex items-center',
425
419
  },
426
420
  };
427
421
 
428
422
  function Avatar(_a) {
429
- var size = _a.size, variant = _a.variant, _b = _a.name, name = _b === void 0 ? 'Test' : _b;
423
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, variant = _a.variant, _c = _a.name, name = _c === void 0 ? 'Test' : _c;
430
424
  var getInitials = function (initial) {
431
425
  if (!initial)
432
426
  return '';
@@ -458,6 +452,7 @@ function Avatar(_a) {
458
452
  }
459
453
  Avatar.defaultProps = {
460
454
  name: '',
455
+ size: 'md',
461
456
  };
462
457
 
463
458
  var typeConfig = {
@@ -1350,15 +1345,15 @@ function Chevron() {
1350
1345
  }
1351
1346
 
1352
1347
  function Breadcrumb(_a) {
1353
- 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"]);
1354
- 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;
1355
1350
  return (React.createElement("div", { className: "flex" },
1356
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),
1357
- !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" },
1358
1353
  React.createElement(Chevron, null)))));
1359
1354
  }
1360
1355
  Breadcrumb.defaultProps = {
1361
- isActive: false,
1356
+ selected: false,
1362
1357
  };
1363
1358
 
1364
1359
  function Color() {
@@ -1427,12 +1422,12 @@ Divider.defaultProps = {
1427
1422
  };
1428
1423
 
1429
1424
  var sizeConfig$9 = {
1430
- medium: {
1425
+ md: {
1431
1426
  fieldSize: 'text-size-base p-2.5 font-[350] h-10',
1432
1427
  iconPosition: 'right-[10px]',
1433
1428
  iconSize: 18,
1434
1429
  },
1435
- small: {
1430
+ sm: {
1436
1431
  fieldSize: 'text-size-sm p-1.5 h-[30px]',
1437
1432
  iconPosition: 'right-[7px]',
1438
1433
  iconSize: 14,
@@ -1478,10 +1473,10 @@ function PasswordIcon(_a) {
1478
1473
  }
1479
1474
 
1480
1475
  function TextInput(_a) {
1481
- 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.isDisabled, isDisabled = _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;
1482
1477
  var _m = useState(false), isShow = _m[0], setIsShow = _m[1];
1483
1478
  var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
1484
- 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;
1485
1480
  var typeVariant = variant;
1486
1481
  if (variant === 'password')
1487
1482
  typeVariant = isShow ? 'text' : 'password';
@@ -1518,7 +1513,7 @@ TextInput.defaultProps = {
1518
1513
  isDisabled: false,
1519
1514
  icon: null,
1520
1515
  id: '',
1521
- inputSize: 'medium',
1516
+ size: 'md',
1522
1517
  isValid: null,
1523
1518
  label: '',
1524
1519
  placeholder: '',
@@ -1531,55 +1526,55 @@ TextInput.defaultProps = {
1531
1526
  function TextInputSimulation(_a) {
1532
1527
  var size = _a.size;
1533
1528
  var _b = useState(''), value = _b[0], setValue = _b[1];
1534
- 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); } }));
1535
1530
  }
1536
1531
  TextInputSimulation.defaultProps = {
1537
- size: 'medium',
1532
+ size: 'md',
1538
1533
  };
1539
1534
 
1540
1535
  // Desc: Radio button size configuration
1541
1536
  var sizeConfig$8 = {
1542
- medium: {
1537
+ md: {
1543
1538
  checkSize: 'w-[22px] h-[22px]',
1544
1539
  labelSize: 'text-size-base',
1545
1540
  },
1546
- small: {
1541
+ sm: {
1547
1542
  checkSize: 'w-4 h-4',
1548
1543
  labelSize: 'text-size-sm',
1549
1544
  },
1550
1545
  };
1551
1546
 
1552
1547
  function Radio(_a) {
1553
- 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;
1554
- 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.isDisabled, isDisabled = _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;
1555
1550
  return (React.createElement("div", { className: "flex items-center" },
1556
1551
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1557
- 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: isDisabled }),
1558
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" })),
1559
1554
  React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: isDisabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
1560
1555
  }
1561
1556
  Radio.defaultProps = {
1562
1557
  label: '',
1563
- inputSize: 'medium',
1558
+ size: 'md',
1564
1559
  id: '',
1565
1560
  onClick: function () { },
1566
1561
  isDisabled: false,
1567
- isChecked: false,
1562
+ checked: false,
1568
1563
  };
1569
1564
 
1570
1565
  var sizeConfig$7 = {
1571
- medium: {
1566
+ md: {
1572
1567
  inputClass: 'text-size-base font-[350] min-h-10',
1573
1568
  },
1574
- small: {
1569
+ sm: {
1575
1570
  inputClass: 'text-size-sm min-h-[30px]',
1576
1571
  },
1577
1572
  };
1578
1573
 
1579
1574
  function TextArea(_a) {
1580
- 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"]);
1581
1576
  var inputRow = rows !== null && rows !== void 0 ? rows : 4;
1582
- var inputClass = sizeConfig$7[inputSize].inputClass;
1577
+ var inputClass = sizeConfig$7[size].inputClass;
1583
1578
  return (React.createElement("div", { className: "field-group w-full flex flex-col" },
1584
1579
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1585
1580
  label,
@@ -1592,7 +1587,7 @@ TextArea.defaultProps = {
1592
1587
  disabled: false,
1593
1588
  descText: '',
1594
1589
  id: '',
1595
- inputSize: 'medium',
1590
+ size: 'md',
1596
1591
  label: '',
1597
1592
  placeholder: 'Write here ...',
1598
1593
  required: false,
@@ -1600,22 +1595,22 @@ TextArea.defaultProps = {
1600
1595
  };
1601
1596
 
1602
1597
  var sizeConfig$6 = {
1603
- medium: {
1598
+ md: {
1604
1599
  checkClass: 'w-[22px] h-[22px]',
1605
1600
  labelClass: 'text-size-base font-[350]',
1606
1601
  },
1607
- small: {
1602
+ sm: {
1608
1603
  checkClass: 'w-4 h-4',
1609
1604
  labelClass: 'text-size-sm font-normal',
1610
1605
  },
1611
1606
  };
1612
1607
 
1613
1608
  function Checkbox(_a) {
1614
- 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;
1615
- 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;
1616
1611
  return (React.createElement("div", { className: "flex items-center" },
1617
1612
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
1618
- 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 }),
1619
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" },
1620
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" },
1621
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" })))),
@@ -1624,8 +1619,8 @@ function Checkbox(_a) {
1624
1619
  Checkbox.defaultProps = {
1625
1620
  disabled: false,
1626
1621
  id: '',
1627
- inputSize: 'medium',
1628
- isChecked: false,
1622
+ size: 'md',
1623
+ checked: false,
1629
1624
  label: '',
1630
1625
  onChange: function () { },
1631
1626
  };
@@ -1659,29 +1654,29 @@ function CheckboxSimulation(_a) {
1659
1654
  console.log('selected', selected);
1660
1655
  return (React.createElement("div", { className: "flex flex-col gap-y-5" },
1661
1656
  React.createElement("div", null, "Pick your hobby"),
1662
- 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) })); })));
1663
1658
  }
1664
1659
  CheckboxSimulation.defaultProps = {
1665
- size: 'medium',
1660
+ size: 'md',
1666
1661
  };
1667
1662
 
1668
1663
  var sizeConfig$5 = {
1669
- medium: {
1664
+ md: {
1670
1665
  searchSize: 'text-size-base p-2.5 font-[350] h-10',
1671
1666
  iconSize: 'right-[10px]',
1672
1667
  },
1673
- small: {
1668
+ sm: {
1674
1669
  searchSize: 'text-size-sm p-1.5 font-normal h-[30px]',
1675
1670
  iconSize: 'right-[7px]',
1676
1671
  },
1677
1672
  };
1678
1673
 
1679
1674
  var sizeConfig$4 = {
1680
- medium: {
1675
+ md: {
1681
1676
  container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
1682
1677
  item: 'min-h-[34px] p-2.5',
1683
1678
  },
1684
- small: {
1679
+ sm: {
1685
1680
  container: 'text-size-sm font-normal py-[2px] first:pt-[7px] last:pb-[7px]',
1686
1681
  item: 'min-h-[26px] p-1.5',
1687
1682
  },
@@ -1689,7 +1684,7 @@ var sizeConfig$4 = {
1689
1684
 
1690
1685
  /* eslint-disable @typescript-eslint/no-explicit-any */
1691
1686
  function DefaultDropdownItem(_a) {
1692
- 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;
1693
1688
  var _f = useState(false), isHovered = _f[0], setisHovered = _f[1];
1694
1689
  var _g = useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
1695
1690
  var isOpenDropdown = isHovered || isHoveredSubMenu;
@@ -1706,16 +1701,16 @@ function DefaultDropdownItem(_a) {
1706
1701
  DefaultDropdownItem.defaultProps = {
1707
1702
  className: '',
1708
1703
  onClick: function () { },
1709
- size: 'medium',
1704
+ size: 'md',
1710
1705
  options: [],
1711
1706
  isSelected: false,
1712
1707
  };
1713
1708
 
1714
1709
  /* eslint-disable @typescript-eslint/no-explicit-any */
1715
1710
  function SelectInput(_a) {
1716
- 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.isDisabled, isDisabled = _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.isRequired, isRequired = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected;
1717
1712
  var _e = useState(false), isOpen = _e[0], setIsOpen = _e[1];
1718
- var _f = sizeConfig$5[inputSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1713
+ var _f = sizeConfig$5[size], searchSize = _f.searchSize, iconSize = _f.iconSize;
1719
1714
  var inputRef = useRef(null);
1720
1715
  var handleOutsideClick = function (e) {
1721
1716
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1737,7 +1732,7 @@ function SelectInput(_a) {
1737
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: "" }))),
1738
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) {
1739
1734
  var isSelected = selected && selected.id && option.id === selected.id;
1740
- 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 () {
1741
1736
  setSelected(option);
1742
1737
  setIsOpen(false);
1743
1738
  } }));
@@ -1748,7 +1743,7 @@ SelectInput.defaultProps = {
1748
1743
  descText: '',
1749
1744
  isDisabled: false,
1750
1745
  id: '',
1751
- inputSize: 'medium',
1746
+ size: 'md',
1752
1747
  label: '',
1753
1748
  isRequired: false,
1754
1749
  selected: {},
@@ -1756,7 +1751,7 @@ SelectInput.defaultProps = {
1756
1751
  };
1757
1752
 
1758
1753
  function SelectInputSimulation(_a) {
1759
- var _b = _a.size, size = _b === void 0 ? 'medium' : _b;
1754
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b;
1760
1755
  var _c = useState({
1761
1756
  id: 1,
1762
1757
  label: 'Mohammed Salah',
@@ -1783,17 +1778,17 @@ function SelectInputSimulation(_a) {
1783
1778
  label: 'Ricardo Kaka',
1784
1779
  },
1785
1780
  ];
1786
- 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" }));
1787
1782
  }
1788
1783
 
1789
1784
  var sizeConfig$3 = {
1790
- medium: {
1785
+ md: {
1791
1786
  iconClass: 'right-[10px]',
1792
1787
  iconSize: '18',
1793
1788
  inputClass: 'text-size-base placeholder:text-size-base px-2.5 h-10',
1794
1789
  optionClass: 'text-size-base px-2.5 py-[9.5px]',
1795
1790
  },
1796
- small: {
1791
+ sm: {
1797
1792
  iconClass: 'right-[7px]',
1798
1793
  iconSize: '14',
1799
1794
  inputClass: 'text-size-sm placeholder:text-size-sm px-1.5 h-[30px]',
@@ -1803,9 +1798,9 @@ var sizeConfig$3 = {
1803
1798
 
1804
1799
  /* eslint-disable @typescript-eslint/no-explicit-any */
1805
1800
  function LiveSearch(_a) {
1806
- 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;
1807
1802
  var _e = useState(false), isOpen = _e[0], setIsOpen = _e[1];
1808
- 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;
1809
1804
  var inputRef = useRef(null);
1810
1805
  var handleOutsideClick = function (e) {
1811
1806
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1831,7 +1826,7 @@ function LiveSearch(_a) {
1831
1826
  React.createElement(TbZoom, { className: "text-primary-black", style: { fontSize: iconSize } })),
1832
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) {
1833
1828
  var isSelected = value && value.id && option.id === value.id;
1834
- 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 () {
1835
1830
  setValue(option);
1836
1831
  setIsOpen(false);
1837
1832
  } }));
@@ -1842,7 +1837,7 @@ LiveSearch.defaultProps = {
1842
1837
  descText: '',
1843
1838
  disabled: false,
1844
1839
  id: '',
1845
- inputSize: 'medium',
1840
+ size: 'md',
1846
1841
  label: '',
1847
1842
  placeholder: '',
1848
1843
  required: false,
@@ -1852,12 +1847,12 @@ LiveSearch.defaultProps = {
1852
1847
  };
1853
1848
 
1854
1849
  var sizeConfig$2 = {
1855
- medium: {
1850
+ md: {
1856
1851
  containerSize: 'w-[42px] h-[22px]',
1857
1852
  checkSize: 'p-2',
1858
1853
  labelClass: 'text-bia-base',
1859
1854
  },
1860
- small: {
1855
+ sm: {
1861
1856
  containerSize: 'w-[28px] h-[16px]',
1862
1857
  checkSize: 'px-2 py-1',
1863
1858
  labelClass: 'text-bia-sm',
@@ -1865,44 +1860,44 @@ var sizeConfig$2 = {
1865
1860
  };
1866
1861
 
1867
1862
  function Toggle(_a) {
1868
- 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;
1869
- 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;
1870
1865
  return (React.createElement("div", { className: "flex items-center" },
1871
- 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 },
1872
- 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" }),
1873
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" })),
1874
1869
  React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-normal text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
1875
1870
  }
1876
1871
  Toggle.defaultProps = {
1877
1872
  label: '',
1878
- inputSize: 'medium',
1873
+ size: 'md',
1879
1874
  onClick: function () { },
1880
- isChecked: false,
1875
+ checked: false,
1881
1876
  id: '',
1882
1877
  disabled: false,
1883
1878
  };
1884
1879
 
1885
- var isActiveConfig = {
1886
- active: 'bg-white text-black cursor-default',
1887
- 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',
1888
1883
  };
1889
1884
  var roundedConfig = {
1890
- large: 'first:rounded-l-radius-lg last:rounded-r-radius-lg ',
1891
- medium: 'first:rounded-l-radius-md last:rounded-r-radius-md',
1892
- small: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1893
- 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',
1894
1889
  };
1895
1890
  var sizeConfig$1 = {
1896
- large: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1897
- medium: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1898
- small: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
1899
- 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]',
1900
1895
  };
1901
1896
 
1902
1897
  function SegmentButtonItem(_a) {
1903
- var _b = _a.active, active = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1904
- var isActive = active ? 'active' : 'nonactive';
1905
- 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));
1906
1901
  }
1907
1902
 
1908
1903
  function SegmentButtonGroup(_a) {
@@ -1953,13 +1948,13 @@ function SegmentButtonSimulation(_a) {
1953
1948
  function Modal(_a) {
1954
1949
  var size = _a.size, title = _a.title, isShow = _a.isShow, setIsShow = _a.setIsShow, rest = __rest(_a, ["size", "title", "isShow", "setIsShow"]);
1955
1950
  var modalSize;
1956
- if (size === 'small') {
1951
+ if (size === 'sm') {
1957
1952
  modalSize = 'w-[300px]';
1958
1953
  }
1959
- else if (size === 'large') {
1954
+ else if (size === 'lg') {
1960
1955
  modalSize = 'w-[800px]';
1961
1956
  }
1962
- else if (size === 'extra large') {
1957
+ else if (size === 'xl') {
1963
1958
  modalSize = 'w-[1140px]';
1964
1959
  }
1965
1960
  else {
@@ -1990,8 +1985,8 @@ Modal.defaultProps = {
1990
1985
  };
1991
1986
 
1992
1987
  var sizeConfig = {
1993
- medium: 'w-[38px] h-[40px] text-[14px] font-semibold',
1994
- small: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1988
+ md: 'w-[38px] h-[40px] text-[14px] font-semibold',
1989
+ sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1995
1990
  };
1996
1991
  var positionConfig = {
1997
1992
  start: 'justify-start',
@@ -2038,9 +2033,9 @@ function PaginationBar(_a) {
2038
2033
  }
2039
2034
  };
2040
2035
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2041
- React.createElement(Button, { variant: "subtle-link", size: "medium", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
2042
- 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() })); }),
2043
- React.createElement(Button, { variant: "subtle-link", size: "medium", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2036
+ React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
2037
+ 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() })); }),
2038
+ React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2044
2039
  }
2045
2040
 
2046
2041
  var activeConfig = {
@@ -2099,7 +2094,7 @@ var classConfig$1 = {
2099
2094
  };
2100
2095
 
2101
2096
  function Popover(_a) {
2102
- 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;
2097
+ 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, setIsActive = _a.setIsActive;
2103
2098
  var timeout;
2104
2099
  var showPopover = function () {
2105
2100
  timeout = setTimeout(function () {
@@ -2113,7 +2108,7 @@ function Popover(_a) {
2113
2108
  var _e = classConfig$1[direction], tooltipContainer = _e.tooltipContainer, triangleContainer = _e.triangleContainer, triangleShape = _e.triangleShape;
2114
2109
  return (React.createElement("div", { className: "Popover-Wrapper relative block w-fit h-fit", onMouseEnter: showPopover, onMouseLeave: hidePopover },
2115
2110
  children,
2116
- 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) },
2111
+ 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) },
2117
2112
  React.createElement("div", { className: "flex flex-col" },
2118
2113
  React.createElement("div", { className: "text-[16px] leading-[19.42px] mb-[5px] font-humnst777 font-bold" }, title),
2119
2114
  React.createElement("div", { className: "text-[12px] font-segoe font-normal break-words" }, content)),
@@ -2273,18 +2268,18 @@ var configTab = {
2273
2268
  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',
2274
2269
  vertical: 'h-full w-[1px] bg-bia-grey group-hover:bg-bia-blue-hover group-active:bg-bia-blue-active rounded-l-none ',
2275
2270
  },
2276
- small: {
2271
+ sm: {
2277
2272
  text: 'text-[12px] leading-[15.96px] font-semibold',
2278
2273
  icon: 'text-[14px]',
2279
2274
  },
2280
- medium: {
2275
+ md: {
2281
2276
  text: 'text-[14px] leading-[21px] font-semibold',
2282
2277
  icon: 'text-[18px]',
2283
2278
  },
2284
2279
  };
2285
2280
 
2286
2281
  function Tab(_a) {
2287
- 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"]);
2282
+ 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"]);
2288
2283
  var disabledKeyTab = disabled || active ? ' pointer-events-none' : '';
2289
2284
  var cursor;
2290
2285
  var cardColor;
@@ -2309,7 +2304,7 @@ function Tab(_a) {
2309
2304
  : 'text-bia-coolgrey group-hover:text-bia-coolgrey-hover group-active:text-bia-coolgrey-active group-disabled:text-bia-coolgrey-disabled';
2310
2305
  return (React.createElement("div", { className: "".concat(mode === 'horizontal' ? 'h-full' : 'w-full', " ").concat(cursor) },
2311
2306
  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) }),
2312
- 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]', " ")) },
2307
+ 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]', " ")) },
2313
2308
  React.createElement("div", { className: "flex items-center justify-center " },
2314
2309
  React.createElement("div", { className: "flex text-nowrap space-x-1 ".concat(activeKeyTab, " ").concat(configTab[size].text) },
2315
2310
  icon && React.createElement("div", { className: "mr-[5px]" }, icon),
@@ -2320,7 +2315,7 @@ Tab.defaultProps = {
2320
2315
  children: null,
2321
2316
  mode: 'horizontal',
2322
2317
  fit: 'size-base',
2323
- size: 'medium',
2318
+ size: 'md',
2324
2319
  icon: null,
2325
2320
  card: false,
2326
2321
  };
@@ -2331,22 +2326,22 @@ var colAlign = {
2331
2326
  left: 'justify-start',
2332
2327
  };
2333
2328
  var colSize = {
2334
- medium: 'px-2.5 py-[9px] text-bia-base font-[350]',
2335
- small: 'px-2.5 py-[7px] text-bia-sm',
2336
- tiny: 'px-2.5 py-[3px] text-bia-sm',
2329
+ md: 'px-2.5 py-[9px] text-bia-base font-[350]',
2330
+ sm: 'px-2.5 py-[7px] text-bia-sm',
2331
+ tn: 'px-2.5 py-[3px] text-bia-sm',
2337
2332
  };
2338
2333
  var tableClass = {
2339
- medium: 'text-bia-base',
2340
- small: 'text-bia-sm',
2341
- tiny: 'text-bia-sm',
2334
+ md: 'text-bia-base',
2335
+ sm: 'text-bia-sm',
2336
+ tn: 'text-bia-sm',
2342
2337
  };
2343
2338
 
2344
2339
  function Table(_a) {
2345
- var _b = _a.tableSize, tableSize = _b === void 0 ? 'medium' : _b, className = _a.className, children = _a.children;
2340
+ var _b = _a.tableSize, tableSize = _b === void 0 ? 'md' : _b, className = _a.className, children = _a.children;
2346
2341
  return (React.createElement("table", { className: "table table-auto w-full font-['Segoe UI'] leading-[21px] rounded-[5px] ".concat(tableClass[tableSize], " ").concat(className, "}") }, children));
2347
2342
  }
2348
2343
  Table.defaultProps = {
2349
- tableSize: 'medium',
2344
+ tableSize: 'md',
2350
2345
  className: '',
2351
2346
  };
2352
2347
 
@@ -2359,7 +2354,7 @@ TableRow.defaultProps = {
2359
2354
  };
2360
2355
 
2361
2356
  function TableCol(_a) {
2362
- 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;
2357
+ 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;
2363
2358
  var borderBottom = lined ? 'border-b border-bia-grey' : '';
2364
2359
  var defaultAlign = variant ? 'text-center' : 'text-left';
2365
2360
  var columnClass = "p-0 ".concat(borderBottom, " ").concat(className, " ").concat(colSize[size], " ").concat(alignment ? colAlign[alignment] : defaultAlign);
@@ -2374,7 +2369,7 @@ TableCol.defaultProps = {
2374
2369
  variant: 'body',
2375
2370
  lined: false,
2376
2371
  alignment: 'left',
2377
- size: 'medium',
2372
+ size: 'md',
2378
2373
  };
2379
2374
 
2380
2375
  function TableHead(_a) {
@@ -2394,7 +2389,7 @@ TableBody.defaultProps = {
2394
2389
  };
2395
2390
 
2396
2391
  function TableDemo(_a) {
2397
- var _b = _a.tableSize, tableSize = _b === void 0 ? 'medium' : _b;
2392
+ var _b = _a.tableSize, tableSize = _b === void 0 ? 'md' : _b;
2398
2393
  return (React.createElement(Table, { tableSize: tableSize },
2399
2394
  React.createElement("thead", null,
2400
2395
  React.createElement(TableRow, null,
@@ -2414,7 +2409,7 @@ function TableDemo(_a) {
2414
2409
  React.createElement(TableCol, { size: tableSize }, "Street Avenue no. 29")))));
2415
2410
  }
2416
2411
  TableDemo.defaultProps = {
2417
- tableSize: 'medium',
2412
+ tableSize: 'md',
2418
2413
  };
2419
2414
 
2420
2415
  function TbCheck() {
@@ -2475,7 +2470,7 @@ function TbCloseable(_a) {
2475
2470
 
2476
2471
  var TagLabelConfig = {
2477
2472
  default: {
2478
- medium: {
2473
+ md: {
2479
2474
  iconColor: 'text-white',
2480
2475
  XColor: 'text-bia-coolgrey',
2481
2476
  XcolorV: 'text-primary-black',
@@ -2501,7 +2496,7 @@ var TagLabelConfig = {
2501
2496
  Xicon: TbCheckBlack,
2502
2497
  },
2503
2498
  },
2504
- small: {
2499
+ sm: {
2505
2500
  iconColor: 'text-white',
2506
2501
  XColor: 'text-bia-coolgrey',
2507
2502
  XcolorV: 'text-primary-black',
@@ -2527,7 +2522,7 @@ var TagLabelConfig = {
2527
2522
  Xicon: TbCheckBlackSmall,
2528
2523
  },
2529
2524
  },
2530
- tiny: {
2525
+ tn: {
2531
2526
  iconColor: 'text-white',
2532
2527
  XColor: 'text-bia-coolgrey',
2533
2528
  XcolorV: 'text-primary-black',
@@ -2555,7 +2550,7 @@ var TagLabelConfig = {
2555
2550
  },
2556
2551
  },
2557
2552
  blue: {
2558
- medium: {
2553
+ md: {
2559
2554
  iconColor: 'text-bia-blue',
2560
2555
  XColor: 'text-bia-blue-light-50',
2561
2556
  XcolorV: 'text-white',
@@ -2581,7 +2576,7 @@ var TagLabelConfig = {
2581
2576
  Xicon: TbCheck,
2582
2577
  },
2583
2578
  },
2584
- small: {
2579
+ sm: {
2585
2580
  iconColor: 'text-bia-blue',
2586
2581
  XColor: 'text-white',
2587
2582
  XcolorV: 'text-white',
@@ -2607,7 +2602,7 @@ var TagLabelConfig = {
2607
2602
  Xicon: TbCheckWhiteSmall,
2608
2603
  },
2609
2604
  },
2610
- tiny: {
2605
+ tn: {
2611
2606
  iconColor: 'text-bia-blue',
2612
2607
  XColor: 'text-white',
2613
2608
  XcolorV: 'text-white',
@@ -2635,7 +2630,7 @@ var TagLabelConfig = {
2635
2630
  },
2636
2631
  },
2637
2632
  teal: {
2638
- medium: {
2633
+ md: {
2639
2634
  iconColor: 'text-bia-teal',
2640
2635
  XColor: 'text-bia-teal-light-50',
2641
2636
  XcolorV: 'text-white',
@@ -2661,7 +2656,7 @@ var TagLabelConfig = {
2661
2656
  Xicon: TbCheck,
2662
2657
  },
2663
2658
  },
2664
- small: {
2659
+ sm: {
2665
2660
  iconColor: 'text-bia-teal',
2666
2661
  XColor: 'text-white',
2667
2662
  XcolorV: 'text-white',
@@ -2687,7 +2682,7 @@ var TagLabelConfig = {
2687
2682
  Xicon: TbCheckWhiteSmall,
2688
2683
  },
2689
2684
  },
2690
- tiny: {
2685
+ tn: {
2691
2686
  iconColor: 'text-bia-teal',
2692
2687
  XColor: 'text-white',
2693
2688
  XcolorV: 'text-white',
@@ -2715,7 +2710,7 @@ var TagLabelConfig = {
2715
2710
  },
2716
2711
  },
2717
2712
  green: {
2718
- medium: {
2713
+ md: {
2719
2714
  iconColor: 'text-bia-green',
2720
2715
  XColor: 'text-bia-green-light-50',
2721
2716
  XcolorV: 'text-white',
@@ -2741,7 +2736,7 @@ var TagLabelConfig = {
2741
2736
  Xicon: TbCheck,
2742
2737
  },
2743
2738
  },
2744
- small: {
2739
+ sm: {
2745
2740
  iconColor: 'text-bia-green',
2746
2741
  XColor: 'text-white',
2747
2742
  XcolorV: 'text-white',
@@ -2767,7 +2762,7 @@ var TagLabelConfig = {
2767
2762
  Xicon: TbCheckWhiteSmall,
2768
2763
  },
2769
2764
  },
2770
- tiny: {
2765
+ tn: {
2771
2766
  iconColor: 'text-bia-green',
2772
2767
  XColor: 'text-white',
2773
2768
  XcolorV: 'text-white',
@@ -2795,7 +2790,7 @@ var TagLabelConfig = {
2795
2790
  },
2796
2791
  },
2797
2792
  yellow: {
2798
- medium: {
2793
+ md: {
2799
2794
  iconColor: 'text-bia-orange',
2800
2795
  XColor: 'text-bia-orange-light-50',
2801
2796
  XcolorV: 'text-white',
@@ -2821,7 +2816,7 @@ var TagLabelConfig = {
2821
2816
  Xicon: TbCheck,
2822
2817
  },
2823
2818
  },
2824
- small: {
2819
+ sm: {
2825
2820
  iconColor: 'text-bia-orange',
2826
2821
  XColor: 'text-white',
2827
2822
  XcolorV: 'text-white',
@@ -2847,7 +2842,7 @@ var TagLabelConfig = {
2847
2842
  Xicon: TbCheckWhiteSmall,
2848
2843
  },
2849
2844
  },
2850
- tiny: {
2845
+ tn: {
2851
2846
  iconColor: 'text-bia-orange',
2852
2847
  XColor: 'text-white',
2853
2848
  XcolorV: 'text-white',
@@ -2875,7 +2870,7 @@ var TagLabelConfig = {
2875
2870
  },
2876
2871
  },
2877
2872
  red: {
2878
- medium: {
2873
+ md: {
2879
2874
  iconColor: 'text-bia-red',
2880
2875
  XColor: 'text-bia-red-light-50',
2881
2876
  XcolorV: 'text-white',
@@ -2901,7 +2896,7 @@ var TagLabelConfig = {
2901
2896
  Xicon: TbCheck,
2902
2897
  },
2903
2898
  },
2904
- small: {
2899
+ sm: {
2905
2900
  iconColor: 'text-bia-red',
2906
2901
  XColor: 'text-white',
2907
2902
  XcolorV: 'text-white',
@@ -2927,7 +2922,7 @@ var TagLabelConfig = {
2927
2922
  Xicon: TbCheckWhiteSmall,
2928
2923
  },
2929
2924
  },
2930
- tiny: {
2925
+ tn: {
2931
2926
  iconColor: 'text-bia-red',
2932
2927
  XColor: 'text-white',
2933
2928
  XcolorV: 'text-white',
@@ -2955,7 +2950,7 @@ var TagLabelConfig = {
2955
2950
  },
2956
2951
  },
2957
2952
  black: {
2958
- medium: {
2953
+ md: {
2959
2954
  iconColor: 'text-[#2f2f2f]',
2960
2955
  XColor: 'text-bia-coolgrey',
2961
2956
  XcolorV: 'text-white',
@@ -2981,7 +2976,7 @@ var TagLabelConfig = {
2981
2976
  Xicon: TbCheck,
2982
2977
  },
2983
2978
  },
2984
- small: {
2979
+ sm: {
2985
2980
  iconColor: 'text-[#2f2f2f]',
2986
2981
  XColor: 'text-white',
2987
2982
  XcolorV: 'text-white',
@@ -3007,7 +3002,7 @@ var TagLabelConfig = {
3007
3002
  Xicon: TbCheckWhiteSmall,
3008
3003
  },
3009
3004
  },
3010
- tiny: {
3005
+ tn: {
3011
3006
  iconColor: 'text-[#2f2f2f]',
3012
3007
  XColor: 'text-white',
3013
3008
  XcolorV: 'text-white',
@@ -3035,7 +3030,7 @@ var TagLabelConfig = {
3035
3030
  },
3036
3031
  },
3037
3032
  white: {
3038
- medium: {
3033
+ md: {
3039
3034
  iconColor: 'text-white',
3040
3035
  XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3041
3036
  XcolorV: 'text-primary-black',
@@ -3061,7 +3056,7 @@ var TagLabelConfig = {
3061
3056
  Xicon: TbCheckBlack,
3062
3057
  },
3063
3058
  },
3064
- small: {
3059
+ sm: {
3065
3060
  iconColor: 'text-white',
3066
3061
  XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3067
3062
  XcolorV: 'text-primary-black',
@@ -3087,7 +3082,7 @@ var TagLabelConfig = {
3087
3082
  Xicon: TbCheckBlackSmall,
3088
3083
  },
3089
3084
  },
3090
- tiny: {
3085
+ tn: {
3091
3086
  iconColor: 'text-white',
3092
3087
  XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3093
3088
  XcolorV: 'text-primary-black',
@@ -3117,12 +3112,12 @@ var TagLabelConfig = {
3117
3112
  };
3118
3113
 
3119
3114
  function CloseIcon(_a) {
3120
- var _b = _a.size, size = _b === void 0 ? 'medium' : _b;
3115
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b;
3121
3116
  var iconSize;
3122
- if (size === 'tiny') {
3117
+ if (size === 'tn') {
3123
3118
  iconSize = '10';
3124
3119
  }
3125
- else if (size === 'small') {
3120
+ else if (size === 'sm') {
3126
3121
  iconSize = '10';
3127
3122
  }
3128
3123
  else {
@@ -3134,11 +3129,11 @@ function CloseIcon(_a) {
3134
3129
  React.createElement("path", { d: "M6 6l12 12" })));
3135
3130
  }
3136
3131
  CloseIcon.defaultProps = {
3137
- size: 'medium',
3132
+ size: 'md',
3138
3133
  };
3139
3134
 
3140
3135
  function TagLabel(_a) {
3141
- 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;
3136
+ 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, isShow = _a.isShow, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
3142
3137
  var config = TagLabelConfig[color][size][variant];
3143
3138
  var configIcon = TagLabelConfig[color][size];
3144
3139
  var configbg = config.bg;
@@ -3150,9 +3145,9 @@ function TagLabel(_a) {
3150
3145
  var configXcolorV = configIcon.XcolorV;
3151
3146
  var iconColor = configIcon.iconColor;
3152
3147
  var IconContainer = {
3153
- small: 'h-[14px] w-[14px]',
3154
- tiny: 'h-[14px] w-[14px]',
3155
- medium: 'h-[20px] w-[20px]',
3148
+ sm: 'h-[14px] w-[14px]',
3149
+ tn: 'h-[14px] w-[14px]',
3150
+ md: 'h-[20px] w-[20px]',
3156
3151
  };
3157
3152
  var renderIcon = function (icon) {
3158
3153
  if (typeof icon === 'string') {
@@ -3160,10 +3155,10 @@ function TagLabel(_a) {
3160
3155
  }
3161
3156
  var IconComponent = icon;
3162
3157
  var textSize;
3163
- if (size === 'medium') {
3158
+ if (size === 'md') {
3164
3159
  textSize = 'text-[20px]';
3165
3160
  }
3166
- else if (size === 'small' || size === 'tiny') {
3161
+ else if (size === 'sm' || size === 'tn') {
3167
3162
  textSize = 'text-[14px]';
3168
3163
  }
3169
3164
  else {
@@ -3197,7 +3192,7 @@ function TagLabel(_a) {
3197
3192
  // const closeableMode = variant === 'closeable';
3198
3193
  // const iconMode = variant === 'icon';
3199
3194
  var closeButtonException;
3200
- if (size === 'medium') {
3195
+ if (size === 'md') {
3201
3196
  closeButtonException = '-mr-[2px]';
3202
3197
  }
3203
3198
  else {
@@ -3215,14 +3210,14 @@ function TagLabel(_a) {
3215
3210
  return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
3216
3211
  variant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, leftIcon || renderIcon(configX))) : (React.createElement(React.Fragment, null,
3217
3212
  React.createElement("span", null, leftIcon),
3218
- 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))),
3213
+ 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))),
3219
3214
  variant === 'label' && rightIcon && (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, rightIcon)),
3220
- 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(); } },
3215
+ 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(); } },
3221
3216
  React.createElement(CloseIcon, { size: size })))));
3222
3217
  }
3223
3218
  TagLabel.defaultProps = {
3224
3219
  variant: 'default',
3225
- size: 'small',
3220
+ size: 'sm',
3226
3221
  isShow: true,
3227
3222
  closeHandler: function () { },
3228
3223
  rightIcon: null,