bianic-ui 1.0.0-beta.9 → 1.1.0-beta.3

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 (121) hide show
  1. package/dist/cjs/index.js +306 -932
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Alert/Alert.d.ts +11 -6
  4. package/dist/cjs/types/components/Button/configs.d.ts +0 -6
  5. package/dist/cjs/types/components/Button/index.d.ts +5 -1
  6. package/dist/cjs/types/components/Forms/DropdownItem/Default.d.ts +3 -1
  7. package/dist/cjs/types/components/Forms/SelectInput/ObjectOptionItem.d.ts +7 -0
  8. package/dist/cjs/types/components/Forms/SelectInput/SelectedInput.d.ts +3 -4
  9. package/dist/cjs/types/components/Forms/SelectInput/Simulation.d.ts +3 -1
  10. package/dist/cjs/types/components/Modal/Modal.d.ts +2 -1
  11. package/dist/cjs/types/components/TabMenu/TabMenu.d.ts +10 -0
  12. package/dist/cjs/types/components/TabMenu/configs.d.ts +27 -0
  13. package/dist/cjs/types/components/TabMenu/index.d.ts +1 -0
  14. package/dist/cjs/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  15. package/dist/cjs/types/components/TagLabel/configs.d.ts +40 -651
  16. package/dist/cjs/types/components/TagLabel/index.d.ts +21 -7
  17. package/dist/cjs/types/components/Tooltip/configs.d.ts +20 -0
  18. package/dist/cjs/types/components/Tooltip/index.d.ts +4 -1
  19. package/dist/cjs/types/components/index.d.ts +1 -0
  20. package/dist/{esm/types/stories/Scrollbar/Scrollbar.stories.d.ts → cjs/types/stories/Form/SelectInput/ObjectItemSelectInput.Simulation.stories.d.ts} +3 -2
  21. package/dist/cjs/types/stories/TabMenu/TabMenu.stories.d.ts +14 -0
  22. package/dist/{esm/types/stories → cjs/types/stories/Tooltip}/Tooltip.stories.d.ts +2 -1
  23. package/dist/esm/index.js +306 -933
  24. package/dist/esm/lib.css +1 -1
  25. package/dist/esm/types/components/Alert/Alert.d.ts +11 -6
  26. package/dist/esm/types/components/Button/configs.d.ts +0 -6
  27. package/dist/esm/types/components/Button/index.d.ts +5 -1
  28. package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +3 -1
  29. package/dist/esm/types/components/Forms/SelectInput/ObjectOptionItem.d.ts +7 -0
  30. package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +3 -4
  31. package/dist/esm/types/components/Forms/SelectInput/Simulation.d.ts +3 -1
  32. package/dist/esm/types/components/Modal/Modal.d.ts +2 -1
  33. package/dist/esm/types/components/TabMenu/TabMenu.d.ts +10 -0
  34. package/dist/esm/types/components/TabMenu/configs.d.ts +27 -0
  35. package/dist/esm/types/components/TabMenu/index.d.ts +1 -0
  36. package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  37. package/dist/esm/types/components/TagLabel/configs.d.ts +40 -651
  38. package/dist/esm/types/components/TagLabel/index.d.ts +21 -7
  39. package/dist/esm/types/components/Tooltip/configs.d.ts +20 -0
  40. package/dist/esm/types/components/Tooltip/index.d.ts +4 -1
  41. package/dist/esm/types/components/index.d.ts +1 -0
  42. package/dist/{cjs/types/stories/TagLabel.stories.d.ts → esm/types/stories/Form/SelectInput/ObjectItemSelectInput.Simulation.stories.d.ts} +3 -5
  43. package/dist/esm/types/stories/TabMenu/TabMenu.stories.d.ts +14 -0
  44. package/dist/{cjs/types/stories → esm/types/stories/Tooltip}/Tooltip.stories.d.ts +2 -1
  45. package/dist/index.d.ts +607 -127
  46. package/package.json +5 -2
  47. package/src/style/color.css +12 -0
  48. package/src/style/scrollbar.css +10 -1
  49. package/tailwind.config.js +21 -0
  50. package/dist/cjs/types/components/Button/Button.d.ts +0 -12
  51. package/dist/cjs/types/components/Dump/Dump.d.ts +0 -3
  52. package/dist/cjs/types/components/Dump/index.d.ts +0 -1
  53. package/dist/cjs/types/components/Forms/Checkbox.d.ts +0 -7
  54. package/dist/cjs/types/components/Forms/LiveSearch.d.ts +0 -13
  55. package/dist/cjs/types/components/Forms/Radio.d.ts +0 -8
  56. package/dist/cjs/types/components/Forms/SelectInput.d.ts +0 -13
  57. package/dist/cjs/types/components/Forms/TextArea.d.ts +0 -10
  58. package/dist/cjs/types/components/Forms/TextInput.d.ts +0 -14
  59. package/dist/cjs/types/components/Forms/Toggle.d.ts +0 -8
  60. package/dist/cjs/types/components/Modal/ModalBody.d.ts +0 -10
  61. package/dist/cjs/types/components/Modal/ModalFooter.d.ts +0 -7
  62. package/dist/cjs/types/components/Modal/config.d.ts +0 -59
  63. package/dist/cjs/types/components/Modal/index.d.ts +0 -3
  64. package/dist/cjs/types/components/Tab/config.d.ts +0 -33
  65. package/dist/cjs/types/components/Tag/TagLabel.d.ts +0 -14
  66. package/dist/cjs/types/components/Tag/index.d.ts +0 -1
  67. package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +0 -11
  68. package/dist/cjs/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
  69. package/dist/cjs/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
  70. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
  71. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
  72. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
  73. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
  74. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
  75. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
  76. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
  77. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
  78. package/dist/cjs/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
  79. package/dist/cjs/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
  80. package/dist/cjs/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
  81. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
  82. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
  83. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
  84. package/dist/cjs/types/components/Typography/Text.d.ts +0 -7
  85. package/dist/cjs/types/stories/Scrollbar/Scrollbar.stories.d.ts +0 -13
  86. package/dist/esm/types/components/Button/Button.d.ts +0 -12
  87. package/dist/esm/types/components/Dump/Dump.d.ts +0 -3
  88. package/dist/esm/types/components/Dump/index.d.ts +0 -1
  89. package/dist/esm/types/components/Forms/Checkbox.d.ts +0 -7
  90. package/dist/esm/types/components/Forms/LiveSearch.d.ts +0 -13
  91. package/dist/esm/types/components/Forms/Radio.d.ts +0 -8
  92. package/dist/esm/types/components/Forms/SelectInput.d.ts +0 -13
  93. package/dist/esm/types/components/Forms/TextArea.d.ts +0 -10
  94. package/dist/esm/types/components/Forms/TextInput.d.ts +0 -14
  95. package/dist/esm/types/components/Forms/Toggle.d.ts +0 -8
  96. package/dist/esm/types/components/Modal/ModalBody.d.ts +0 -10
  97. package/dist/esm/types/components/Modal/ModalFooter.d.ts +0 -7
  98. package/dist/esm/types/components/Modal/config.d.ts +0 -59
  99. package/dist/esm/types/components/Modal/index.d.ts +0 -3
  100. package/dist/esm/types/components/Tab/config.d.ts +0 -33
  101. package/dist/esm/types/components/Tag/TagLabel.d.ts +0 -14
  102. package/dist/esm/types/components/Tag/index.d.ts +0 -1
  103. package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +0 -11
  104. package/dist/esm/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
  105. package/dist/esm/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
  106. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
  107. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
  108. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
  109. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
  110. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
  111. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
  112. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
  113. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
  114. package/dist/esm/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
  115. package/dist/esm/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
  116. package/dist/esm/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
  117. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
  118. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
  119. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
  120. package/dist/esm/types/components/Typography/Text.d.ts +0 -7
  121. package/dist/esm/types/stories/TagLabel.stories.d.ts +0 -16
package/dist/cjs/index.js CHANGED
@@ -88,7 +88,7 @@ function IconBase(props) {
88
88
  // THIS FILE IS AUTO GENERATED
89
89
  function TbAlertTriangle (props) {
90
90
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M12 9v4"},"child":[]},{"tag":"path","attr":{"d":"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"},"child":[]},{"tag":"path","attr":{"d":"M12 16h.01"},"child":[]}]})(props);
91
- }function TbCheck$1 (props) {
91
+ }function TbCheck (props) {
92
92
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M5 12l5 5l10 -10"},"child":[]}]})(props);
93
93
  }function TbChevronDown (props) {
94
94
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M6 9l6 6l6 -6"},"child":[]}]})(props);
@@ -155,7 +155,7 @@ var AlertConfig = {
155
155
  ContainerIcon: 'bg-bia-green',
156
156
  close: 'text-bia-green',
157
157
  icon: {
158
- true: TbCheck$1,
158
+ true: TbCheck,
159
159
  false: '',
160
160
  },
161
161
  },
@@ -249,8 +249,7 @@ var textClasses = {
249
249
  var childrenElement = function (element) {
250
250
  if (element === undefined)
251
251
  return '';
252
- if (typeof element === 'object')
253
- return '';
252
+ // if (typeof element === 'object') return '';
254
253
  return element;
255
254
  };
256
255
  var validUnion = function (value, union) {
@@ -258,13 +257,13 @@ var validUnion = function (value, union) {
258
257
  };
259
258
 
260
259
  var variantUnion$2 = [
260
+ 'normal-text',
261
261
  'large-text',
262
262
  'large-text-semibold',
263
263
  'medium-text',
264
264
  'medium-text-semibold',
265
265
  'caption',
266
266
  'caption-semibold',
267
- 'normal-text',
268
267
  'normal-text-semilight',
269
268
  'normal-text-semibold',
270
269
  'normal-text-bold',
@@ -285,29 +284,42 @@ Text.defaultProps = {
285
284
  };
286
285
 
287
286
  function Alert(_a) {
288
- var title = _a.title, caption = _a.caption, variant = _a.variant, visible = _a.visible, setVisible = _a.setVisible, visibleIcon = _a.visibleIcon, visibleClose = _a.visibleClose;
289
- var IconComponent = AlertConfig[variant].icon[visibleIcon ? 'true' : 'false'];
287
+ var _b = _a.title, title = _b === void 0 ? '' : _b, caption = _a.caption, _c = _a.variant, variant = _c === void 0 ? 'base' : _c, _d = _a.visible, visible = _d === void 0 ? true : _d, _e = _a.setVisible, setVisible = _e === void 0 ? function () { } : _e, _f = _a.visibleIcon, visibleIcon = _f === void 0 ? true : _f, _g = _a.visibleClose, visibleClose = _g === void 0 ? false : _g;
288
+ var validateVariant = validUnion(variant, [
289
+ 'base',
290
+ 'info',
291
+ 'success',
292
+ 'warning',
293
+ 'danger',
294
+ ]);
295
+ var IconComponent = AlertConfig[validateVariant].icon[visibleIcon ? 'true' : 'false'];
290
296
  var IconX = AlertConfig[visibleClose ? 'true' : 'false'];
291
297
  var handleCloseAlert = function () {
292
298
  setVisible(false);
293
299
  };
294
- return (visible && (React.createElement("div", { className: "flex flex-col w-full" },
295
- React.createElement("div", { className: "w-full ".concat(AlertConfig[variant].bg, " rounded-[5px] mb-5") },
300
+ return (visible && (React.createElement("div", { className: "alert-container flex flex-col w-full" },
301
+ React.createElement("div", { className: "alert-body w-full ".concat(AlertConfig[validateVariant].bg, " rounded-[5px]") },
296
302
  React.createElement("div", { className: "flex w-full" },
297
- React.createElement("div", { className: "accent flex items-center py-[10px]" },
298
- React.createElement("div", { className: "left-0 w-[3px] h-full ".concat(AlertConfig[variant].vBar, " rounded-r-[10px]") })),
299
- React.createElement("div", { className: "content w-full flex py-[10px] pe-[10px] items-start" },
300
- React.createElement("div", { className: "icon-area flex ps-[10px]" }, IconComponent && typeof IconComponent === 'function' && (React.createElement("div", { className: "flex p-[7px] ".concat(AlertConfig[variant].ContainerIcon, " items-center justify-center rounded-radius-full") },
303
+ React.createElement("div", { className: "alert-accent flex items-center py-[10px]" },
304
+ React.createElement("div", { className: "left-0 w-[3px] h-full ".concat(AlertConfig[validateVariant].vBar, " rounded-r-[10px]") })),
305
+ React.createElement("div", { className: "alert-content w-full flex py-[10px] pe-[10px] items-start" },
306
+ React.createElement("div", { className: "icon-area flex ps-[10px]" }, IconComponent && typeof IconComponent === 'function' && (React.createElement("div", { className: "flex p-[7px] ".concat(AlertConfig[validateVariant].ContainerIcon, " items-center justify-center rounded-radius-full") },
301
307
  React.createElement(IconComponent, { size: 20, color: "white" })))),
302
- React.createElement("div", { className: "flex w-full justify-between" },
303
- React.createElement("div", { className: "flex ps-[10px] text-area flex-col ".concat(visibleClose ? 'mr-[10px]' : '', " ").concat(visibleIcon ? '' : 'ml-[-10px]') },
308
+ React.createElement("div", { className: "content-area flex w-full justify-between" },
309
+ React.createElement("div", { className: "text-area flex ps-[10px] text-area flex-col ".concat(visibleClose ? 'mr-[10px]' : '', " ").concat(visibleIcon ? '' : 'ml-[-10px]') },
304
310
  React.createElement("div", { className: "flex justify-between" },
305
311
  React.createElement(Text, { variant: "normal-text-semibold" }, title)),
306
312
  React.createElement(Text, { variant: "small-text" }, caption)),
307
- React.createElement("div", { className: "flex closable-area" }, IconX && typeof IconX === 'function' && (React.createElement(IconX, { className: "cursor-pointer ".concat(AlertConfig[variant].hover, " ").concat(AlertConfig[variant].active, " ").concat(AlertConfig[variant].focus, " ").concat(AlertConfig[variant].close), onClick: function () { return handleCloseAlert(); }, tabIndex: 0 }))))))))));
313
+ IconX && typeof IconX === 'function' && (React.createElement("div", { className: "closable-area flex " },
314
+ React.createElement(IconX, { className: "cursor-pointer ".concat(AlertConfig[validateVariant].hover, " ").concat(AlertConfig[validateVariant].active, " ").concat(AlertConfig[validateVariant].focus, " ").concat(AlertConfig[validateVariant].close), onClick: function () { return handleCloseAlert(); }, tabIndex: 0 }))))))))));
308
315
  }
309
316
  Alert.defaultProps = {
310
- title: null,
317
+ title: '',
318
+ variant: 'base',
319
+ visible: true,
320
+ setVisible: function () { },
321
+ visibleIcon: true,
322
+ visibleClose: false,
311
323
  };
312
324
 
313
325
  /******************************************************************************
@@ -365,7 +377,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
365
377
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
366
378
  };
367
379
 
368
- var radiusConfig = {
380
+ var radiusConfig$1 = {
369
381
  default: {
370
382
  sm: 'rounded-radius-sm focus-visible:rounded-radius-sm',
371
383
  md: 'rounded-radius-md focus-visible:rounded-radius-md',
@@ -379,20 +391,20 @@ var radiusConfig = {
379
391
  tn: 'rounded-radius-full focus-visible:rounded-radius-full',
380
392
  },
381
393
  };
382
- var sizeConfig$a = {
383
- lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
384
- md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
385
- sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
386
- tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
394
+ var sizeConfig$b = {
395
+ lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px] text-size-md',
396
+ md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] text-size-base',
397
+ sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] text-size-sm',
398
+ tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px] text-size-tiny',
387
399
  };
388
- var iconOnlySizeConfig = {
400
+ var iconOnlySizeConfig$1 = {
389
401
  lg: 'p-[13px] flex items-center justify-center gap-[10px]',
390
402
  md: ' p-[11px] flex items-center justify-center gap-[5px]',
391
403
  sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
392
404
  tn: 'p-[4px] flex items-center justify-center gap-[3px]',
393
405
  };
394
406
  var shadow = 'shadow-[0px_6px_18px_1px_rgba(188,199,237,0.5)] disabled:shadow-none active:shadow-none';
395
- var variantConfig$1 = {
407
+ var variantConfig$2 = {
396
408
  default: "\n text-primary-black \n bg-bia-grey \n active:bg-bia-grey-dark-10 \n hover:bg-bia-grey-hover \n disabled:bg-bia-grey-disabled \n disabled:text-bia-grey-active \n disabled:cursor-not-allowed \n focus-visible:outline \n focus-visible:outline-offset-0 \n focus-visible:outline-bia-blue-light-50\n focus-visible:outline-[3px] \n focus-visible:rounded-md\n shadow-[0px_6px_18px_1px_#BCC7ED80] ".concat(shadow),
397
409
  primary: "\n text-primary-white \n bg-bia-blue \n active:bg-bia-blue-dark-10 \n hover:bg-bia-blue-hover \n disabled:bg-bia-blue-disabled \n disabled:text-bia-blue-light-90 \n disabled:cursor-not-allowed \n focus-visible:outline\n focus-visible:outline-offset-0\n focus-visible:outline-bia-blue-light-50 \n focus-visible:outline-[3px] \n focus-visible:rounded-md\n shadow-bia-blue-disabled ".concat(shadow),
398
410
  info: "\n text-primary-white \n bg-bia-teal \n active:bg-bia-teal-dark-10 \n hover:bg-bia-teal-hover \n disabled:bg-bia-teal-light-50 \n disabled:text-bia-teal-light-90 \n disabled:cursor-not-allowed \n focus-visible:outline \n focus-visible:outline-offset-0\n focus-visible:outline-bia-teal-light-50 \n focus-visible:outline-[3px] \n focus-visible:rounded-md \n shadow-bia-teal-disabled ".concat(shadow),
@@ -430,18 +442,18 @@ var variantUnion$1 = [
430
442
  var radiusUnion = ['default', 'full-rounded'];
431
443
  var sizeUnion$4 = ['md', 'lg', 'sm', 'tn'];
432
444
  function Button(_a) {
433
- 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"]);
445
+ 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, _j = _a.left, left = _j === void 0 ? null : _j, _k = _a.right, right = _k === void 0 ? null : _k, props = __rest(_a, ["label", "className", "disabled", "radius", "size", "variant", "iconLeft", "iconRight", "left", "right"]);
434
446
  var validatedVariant = validUnion(variant, variantUnion$1);
435
447
  var validatedSize = validUnion(size, sizeUnion$4);
436
448
  var validatedRadius = validUnion(radius, radiusUnion);
437
449
  var sizeClass = label
438
- ? sizeConfig$a[validatedSize]
439
- : iconOnlySizeConfig[validatedSize];
440
- var classString = "\n ".concat(variantConfig$1[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig[validatedRadius][validatedSize], " \n ").concat(className, "\n ");
441
- return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center ".concat(classString), disabled: disabled }, props),
442
- childrenElement(iconLeft),
450
+ ? sizeConfig$b[validatedSize]
451
+ : iconOnlySizeConfig$1[validatedSize];
452
+ var classString = "\n ".concat(variantConfig$2[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig$1[validatedRadius][validatedSize], " \n ").concat(className, "\n ");
453
+ return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center font-semibold ".concat(classString), disabled: disabled }, props),
454
+ childrenElement(iconLeft || left),
443
455
  childrenElement(label),
444
- childrenElement(iconRight)));
456
+ childrenElement(iconRight || right)));
445
457
  }
446
458
  Button.defaultProps = {
447
459
  label: null,
@@ -452,6 +464,8 @@ Button.defaultProps = {
452
464
  variant: 'default',
453
465
  iconLeft: null,
454
466
  iconRight: null,
467
+ left: null,
468
+ right: null,
455
469
  };
456
470
 
457
471
  var AvatarConfig = {
@@ -551,7 +565,7 @@ Badge.defaultProps = {
551
565
  color: undefined,
552
566
  };
553
567
 
554
- var variantConfig = {
568
+ var variantConfig$1 = {
555
569
  black: {
556
570
  bg: 'bg-primary-black',
557
571
  active: 'active:bg-bia-coolgrey-dark-30 active:rounded-sm',
@@ -587,11 +601,11 @@ var variantConfig = {
587
601
  function Banner(_a) {
588
602
  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;
589
603
  if (open) {
590
- 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) },
604
+ 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$1[variant].bg) },
591
605
  React.createElement("div", { className: "w-full flex justify-center items-center gap-[10px]" },
592
606
  React.createElement("div", { className: "font-semibold font-segoe text-[14px] leading-[21px]" }, children),
593
- 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); } },
594
- React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig[variant].hover, " ").concat(variantConfig[variant].active) })))))));
607
+ 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$1[variant].focus), type: "button", onClick: function () { return onClose(false); } },
608
+ React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig$1[variant].hover, " ").concat(variantConfig$1[variant].active) })))))));
595
609
  }
596
610
  }
597
611
  Banner.defaultProps = {
@@ -1477,7 +1491,7 @@ Divider.defaultProps = {
1477
1491
  classname: '',
1478
1492
  };
1479
1493
 
1480
- var sizeConfig$9 = {
1494
+ var sizeConfig$a = {
1481
1495
  md: {
1482
1496
  fieldSize: 'text-size-base p-2.5 font-[350] h-10',
1483
1497
  iconPosition: 'right-[10px]',
@@ -1511,7 +1525,7 @@ var styleConfig = {
1511
1525
  function ValidationIcon(_a) {
1512
1526
  var isValid = _a.isValid, iconSize = _a.iconSize;
1513
1527
  if (isValid) {
1514
- return (React.createElement(TbCheck$1, { className: "text-bia-green", style: { fontSize: iconSize } }));
1528
+ return (React.createElement(TbCheck, { className: "text-bia-green", style: { fontSize: iconSize } }));
1515
1529
  }
1516
1530
  return React.createElement(TbX, { className: "text-bia-red", style: { fontSize: iconSize } });
1517
1531
  }
@@ -1532,7 +1546,7 @@ function TextInput(_a) {
1532
1546
  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;
1533
1547
  var _m = React.useState(false), isShow = _m[0], setIsShow = _m[1];
1534
1548
  var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
1535
- var _p = sizeConfig$9[size], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
1549
+ var _p = sizeConfig$a[size], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
1536
1550
  var typeVariant = variant;
1537
1551
  if (variant === 'password')
1538
1552
  typeVariant = isShow ? 'text' : 'password';
@@ -1544,9 +1558,9 @@ function TextInput(_a) {
1544
1558
  descColor = 'text-bia-red';
1545
1559
  var bottomBorderColor = 'hover:border-b-bia-blue focus:border-b-bia-blue';
1546
1560
  if (!disabled && isExistValidation && isValid)
1547
- bottomBorderColor = 'border-b-bia-green';
1561
+ bottomBorderColor = 'hover:border-b-bia-green focus:border-b-bia-green';
1548
1562
  if (!disabled && isExistValidation && !isValid)
1549
- bottomBorderColor = 'border-b-bia-red';
1563
+ bottomBorderColor = 'hover:border-b-bia-red focus:border-b-bia-red';
1550
1564
  var iconElement = null;
1551
1565
  if (!disabled && isExistValidation)
1552
1566
  iconElement = React.createElement(ValidationIcon, { isValid: isValid, iconSize: iconSize });
@@ -1555,14 +1569,14 @@ function TextInput(_a) {
1555
1569
  if (variant === 'password') {
1556
1570
  iconElement = (React.createElement(PasswordIcon, { isShow: isShow, showHandler: setIsShow, iconSize: iconSize, disabled: disabled }));
1557
1571
  }
1558
- return (React.createElement("div", { className: "field-group w-full flex flex-col gap-y-2" },
1572
+ return (React.createElement("div", { className: "field-group flex w-full flex-col gap-y-2" },
1559
1573
  React.createElement("label", { htmlFor: id, className: "label text-xs font-semibold" },
1560
1574
  label,
1561
1575
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1562
- React.createElement("div", { className: "w-full relative" },
1563
- 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); } }),
1564
- React.createElement("div", { className: "absolute inset-y-0 pl-3 flex items-center ".concat(iconStyle, " ").concat(iconPosition) }, iconElement)),
1565
- React.createElement("span", { className: "desc text-xs ".concat(descColor) }, descText)));
1576
+ React.createElement("div", { className: "relative w-full" },
1577
+ React.createElement("input", { className: "field w-full rounded border border-bia-grey-dark-10 bg-primary-white read-only:pointer-events-none read-only:border-bia-grey-light-50 hover:rounded-b-none focus:rounded-b-none focus-visible:outline-none disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active ".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); } }),
1578
+ React.createElement("div", { className: "absolute inset-y-0 flex items-center pl-3 ".concat(iconStyle, " ").concat(iconPosition) }, iconElement)),
1579
+ descText && (React.createElement("span", { className: "desc text-xs ".concat(descColor) }, descText))));
1566
1580
  }
1567
1581
  TextInput.defaultProps = {
1568
1582
  descText: '',
@@ -1589,7 +1603,7 @@ TextInputSimulation.defaultProps = {
1589
1603
  };
1590
1604
 
1591
1605
  // Desc: Radio button size configuration
1592
- var sizeConfig$8 = {
1606
+ var sizeConfig$9 = {
1593
1607
  md: {
1594
1608
  checkSize: 'w-[22px] h-[22px]',
1595
1609
  labelSize: 'text-size-base',
@@ -1604,7 +1618,7 @@ var sizeUnion$3 = ['md', 'sm'];
1604
1618
  function Radio(_a) {
1605
1619
  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;
1606
1620
  var validatedSize = validUnion(size, sizeUnion$3);
1607
- var _f = sizeConfig$8[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1621
+ var _f = sizeConfig$9[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1608
1622
  return (React.createElement("div", { className: "flex items-center" },
1609
1623
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1610
1624
  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 }),
@@ -1620,7 +1634,7 @@ Radio.defaultProps = {
1620
1634
  checked: false,
1621
1635
  };
1622
1636
 
1623
- var sizeConfig$7 = {
1637
+ var sizeConfig$8 = {
1624
1638
  md: {
1625
1639
  inputClass: 'text-size-base font-[350] min-h-10',
1626
1640
  },
@@ -1632,7 +1646,7 @@ var sizeConfig$7 = {
1632
1646
  function TextArea(_a) {
1633
1647
  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"]);
1634
1648
  var inputRow = rows !== null && rows !== void 0 ? rows : 4;
1635
- var inputClass = sizeConfig$7[size].inputClass;
1649
+ var inputClass = sizeConfig$8[size].inputClass;
1636
1650
  return (React.createElement("div", { className: "field-group w-full flex flex-col" },
1637
1651
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1638
1652
  label,
@@ -1652,7 +1666,7 @@ TextArea.defaultProps = {
1652
1666
  rows: 4,
1653
1667
  };
1654
1668
 
1655
- var sizeConfig$6 = {
1669
+ var sizeConfig$7 = {
1656
1670
  md: {
1657
1671
  checkClass: 'w-[22px] h-[22px]',
1658
1672
  labelClass: 'text-size-base font-[350]',
@@ -1666,7 +1680,7 @@ var sizeConfig$6 = {
1666
1680
  var sizeUnion$2 = ['md', 'sm'];
1667
1681
  function Checkbox(_a) {
1668
1682
  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;
1669
- var _f = sizeConfig$6[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
1683
+ var _f = sizeConfig$7[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
1670
1684
  return (React.createElement("div", { className: "flex items-center" },
1671
1685
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
1672
1686
  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 }),
@@ -1719,18 +1733,18 @@ CheckboxSimulation.defaultProps = {
1719
1733
  size: 'md',
1720
1734
  };
1721
1735
 
1722
- var sizeConfig$5 = {
1736
+ var sizeConfig$6 = {
1723
1737
  md: {
1724
1738
  searchSize: 'text-size-base p-2.5 font-[350] h-10',
1725
- iconSize: 'right-[10px]',
1739
+ iconSize: 'right-[10px] text-[18px]',
1726
1740
  },
1727
1741
  sm: {
1728
1742
  searchSize: 'text-size-sm p-1.5 font-normal h-[30px]',
1729
- iconSize: 'right-[7px]',
1743
+ iconSize: 'right-[7px] text-[14px]',
1730
1744
  },
1731
1745
  };
1732
1746
 
1733
- var sizeConfig$4 = {
1747
+ var sizeConfig$5 = {
1734
1748
  md: {
1735
1749
  container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
1736
1750
  item: 'min-h-[34px] p-2.5',
@@ -1743,18 +1757,20 @@ var sizeConfig$4 = {
1743
1757
 
1744
1758
  /* eslint-disable @typescript-eslint/no-explicit-any */
1745
1759
  function DefaultDropdownItem(_a) {
1746
- 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;
1760
+ 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, caption = _a.caption;
1747
1761
  var _f = React.useState(false), isHovered = _f[0], setisHovered = _f[1];
1748
1762
  var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
1749
1763
  var isOpenDropdown = isHovered || isHoveredSubMenu;
1750
1764
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
1751
- var _h = sizeConfig$4[size], containerClass = _h.container, item = _h.item;
1765
+ var _h = sizeConfig$5[size], containerClass = _h.container, item = _h.item;
1752
1766
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
1753
1767
  var isExistSubDropdown = options.length !== 0;
1754
1768
  return (React.createElement("div", { className: "w-full relative focus-visible:outline-bia-blue-light-50 ".concat(containerClass), tabIndex: 0, role: "button", onClick: function (e) { return onClick(e); }, onMouseEnter: function () { return setisHovered(true); }, onMouseLeave: function () { return setisHovered(false); }, onKeyDown: function () { } },
1755
- React.createElement("div", { className: "hover:bg-bia-blue-light-90 active:bg-bia-blue-light-80 select-none ".concat(itemClass) },
1756
- label,
1757
- isExistSubDropdown && (React.createElement(TbChevronRight, { className: "float-right text-bia-grey" }))),
1769
+ React.createElement("div", { className: "hover:bg-bia-blue-light-90 active:bg-bia-blue-light-80 select-none flex flex-col ".concat(itemClass) },
1770
+ React.createElement("span", null,
1771
+ label,
1772
+ isExistSubDropdown && (React.createElement(TbChevronRight, { className: "float-right text-bia-grey" }))),
1773
+ React.createElement(Text, { variant: "small-text", extended: "text-bia-coolgrey" }, caption)),
1758
1774
  isOpenDropdown && options && isExistSubDropdown && (React.createElement("div", { className: "absolute z-50 top-0 right-0 translate-x-full border w-full bg-primary-white border-bia-grey-dark-10 rounded-md shadow-lg", onMouseEnter: function () { return setIsHoveredSubMenu(true); }, onMouseLeave: function () { return setIsHoveredSubMenu(false); } }, options.map(function (option) { return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, options: option.options })); })))));
1759
1775
  }
1760
1776
  DefaultDropdownItem.defaultProps = {
@@ -1763,15 +1779,15 @@ DefaultDropdownItem.defaultProps = {
1763
1779
  size: 'md',
1764
1780
  options: [],
1765
1781
  isSelected: false,
1782
+ caption: '',
1766
1783
  };
1767
1784
 
1768
- /* eslint-disable @typescript-eslint/no-explicit-any */
1769
1785
  var sizeUnion$1 = ['md', 'sm'];
1770
1786
  function SelectInput(_a) {
1771
- 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;
1787
+ 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, props = __rest(_a, ["descText", "disabled", "size", "id", "label", "options", "required", "selected", "setSelected"]);
1772
1788
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1773
1789
  var validatedSize = validUnion(size, sizeUnion$1);
1774
- var _f = sizeConfig$5[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1790
+ var _f = sizeConfig$6[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1775
1791
  var inputRef = React.useRef(null);
1776
1792
  var handleOutsideClick = function (e) {
1777
1793
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1784,21 +1800,27 @@ function SelectInput(_a) {
1784
1800
  document.removeEventListener('mousedown', handleOutsideClick);
1785
1801
  };
1786
1802
  });
1787
- return (React.createElement("div", { className: "field-group w-full flex flex-col", ref: inputRef },
1788
- React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1803
+ var isObjectOptionItem = false;
1804
+ if (options.every(function (item) { return typeof item === "object" && item !== null; }))
1805
+ isObjectOptionItem = true;
1806
+ var selectedLabel = isObjectOptionItem && typeof selected === 'object' ? selected.label : selected;
1807
+ return (React.createElement("div", { className: "field-group flex w-full flex-col", ref: inputRef },
1808
+ React.createElement("label", { htmlFor: id, className: "label pb-2 text-xs font-semibold" },
1789
1809
  childrenElement(label),
1790
1810
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1791
- React.createElement("div", { className: "group w-full relative" },
1792
- 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 }),
1793
- 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: "" }))),
1794
- 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) {
1795
- var isSelected = selected && selected.id && option.id === selected.id;
1796
- return (React.createElement(DefaultDropdownItem, { label: option.label, size: validatedSize, isSelected: isSelected, onClick: function () {
1811
+ React.createElement("div", { className: "group relative w-full" },
1812
+ React.createElement("input", __assign({ className: "field peer w-full cursor-pointer rounded border border-bia-grey-dark-10 bg-primary-white pe-8 focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:bg-bia-grey-light-80 disabled:text-bia-coolgrey ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selectedLabel, readOnly: true, id: id, disabled: disabled }, props)),
1813
+ React.createElement("div", { className: "pointer-events-none absolute inset-y-0 flex items-center pl-3 text-bia-coolgrey peer-disabled:text-bia-coolgrey-light-50 ".concat(iconSize) }, isOpen ? React.createElement(TbChevronUp, null) : React.createElement(TbChevronDown, null)),
1814
+ isOpen && (React.createElement("div", { className: "absolute z-10 w-full rounded-b-md border border-bia-grey-dark-10 bg-primary-white shadow-lg" }, options.map(function (option) {
1815
+ var isSelected = JSON.stringify(option) === JSON.stringify(selected);
1816
+ var optionLabel = isObjectOptionItem ? option.label : option;
1817
+ var optionCaption = isObjectOptionItem ? option.caption : '';
1818
+ return (React.createElement(DefaultDropdownItem, { label: optionLabel, caption: optionCaption, size: validatedSize, isSelected: isSelected, onClick: function () {
1797
1819
  setSelected(option);
1798
1820
  setIsOpen(false);
1799
1821
  } }));
1800
1822
  })))),
1801
- React.createElement("span", { className: "desc text-primary-cool text-xs mt-2" }, descText)));
1823
+ React.createElement("span", { className: "desc mt-2 text-xs text-primary-cool" }, descText)));
1802
1824
  }
1803
1825
  SelectInput.defaultProps = {
1804
1826
  descText: '',
@@ -1812,37 +1834,12 @@ SelectInput.defaultProps = {
1812
1834
  };
1813
1835
 
1814
1836
  function SelectInputSimulation(_a) {
1815
- var _b = _a.size, size = _b === void 0 ? 'md' : _b;
1816
- var _c = React.useState({
1817
- id: 1,
1818
- label: 'Mohammed Salah',
1819
- }), selected = _c[0], setSelected = _c[1];
1820
- var optionData = [
1821
- {
1822
- id: 1,
1823
- label: 'Mohammed Salah',
1824
- },
1825
- {
1826
- id: 2,
1827
- label: 'Cristiono Ronaldo',
1828
- },
1829
- {
1830
- id: 3,
1831
- label: 'Vinicius Junior',
1832
- },
1833
- {
1834
- id: 4,
1835
- label: 'Lionel Messi',
1836
- },
1837
- {
1838
- id: 5,
1839
- label: 'Ricardo Kaka',
1840
- },
1841
- ];
1842
- return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, id: "demo-id" }));
1837
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, options = _a.options;
1838
+ var _c = React.useState('Mohammed Salah'), selected = _c[0], setSelected = _c[1];
1839
+ return (React.createElement(SelectInput, { label: "Select with String Option Item", descText: "Deskripsi Input Select", options: options, selected: selected, setSelected: setSelected, size: size, placeholder: "-- Select Player --", id: "demo-id" }));
1843
1840
  }
1844
1841
 
1845
- var sizeConfig$3 = {
1842
+ var sizeConfig$4 = {
1846
1843
  md: {
1847
1844
  iconClass: 'right-[10px]',
1848
1845
  iconSize: '18',
@@ -1861,7 +1858,7 @@ var sizeConfig$3 = {
1861
1858
  function LiveSearch(_a) {
1862
1859
  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;
1863
1860
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1864
- var _f = sizeConfig$3[size], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
1861
+ var _f = sizeConfig$4[size], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
1865
1862
  var inputRef = React.useRef(null);
1866
1863
  var handleOutsideClick = function (e) {
1867
1864
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1907,7 +1904,7 @@ LiveSearch.defaultProps = {
1907
1904
  value: {},
1908
1905
  };
1909
1906
 
1910
- var sizeConfig$2 = {
1907
+ var sizeConfig$3 = {
1911
1908
  md: {
1912
1909
  containerSize: 'w-[42px] h-[22px]',
1913
1910
  checkSize: 'p-2',
@@ -1922,7 +1919,7 @@ var sizeConfig$2 = {
1922
1919
 
1923
1920
  function Toggle(_a) {
1924
1921
  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;
1925
- var _h = sizeConfig$2[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
1922
+ var _h = sizeConfig$3[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
1926
1923
  return (React.createElement("div", { className: "flex items-center" },
1927
1924
  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 },
1928
1925
  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" }),
@@ -1948,7 +1945,7 @@ var roundedConfig = {
1948
1945
  sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1949
1946
  tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1950
1947
  };
1951
- var sizeConfig$1 = {
1948
+ var sizeConfig$2 = {
1952
1949
  lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1953
1950
  md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1954
1951
  sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
@@ -1958,7 +1955,7 @@ var sizeConfig$1 = {
1958
1955
  function SegmentButtonItem(_a) {
1959
1956
  var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1960
1957
  var isSelected = selected ? 'selected' : 'notSelected';
1961
- 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));
1958
+ 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$2[size]) }, children));
1962
1959
  }
1963
1960
 
1964
1961
  function SegmentButtonGroup(_a) {
@@ -2001,13 +1998,13 @@ function SegmentButtonSimulation(_a) {
2001
1998
  return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
2002
1999
  React.createElement("div", { className: "flex items-center justify-center" },
2003
2000
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
2004
- React.createElement(TbCheck$1, null)),
2001
+ React.createElement(TbCheck, null)),
2005
2002
  content)));
2006
2003
  })));
2007
2004
  }
2008
2005
 
2009
2006
  function Modal(_a) {
2010
- var size = _a.size, title = _a.title, open = _a.open, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "onClose"]);
2007
+ var size = _a.size, title = _a.title, open = _a.open, zIndex = _a.zIndex, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "zIndex", "onClose"]);
2011
2008
  var modalSize;
2012
2009
  if (size === 'sm') {
2013
2010
  modalSize = 'w-[300px]';
@@ -2029,12 +2026,12 @@ function Modal(_a) {
2029
2026
  if (open) {
2030
2027
  return (
2031
2028
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
2032
- React.createElement("div", { className: "fixed inset-0 flex justify-center items-center bg-bia-black-transparent-75", id: "wrapper", onClick: handleClose },
2033
- React.createElement("div", { className: "modal flex flex-col gap-[20px] bg-white rounded-[5px] p-[20px] ".concat(modalSize) },
2029
+ React.createElement("div", { className: "fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper", onClick: handleClose },
2030
+ React.createElement("div", { className: "modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize) },
2034
2031
  React.createElement("div", { className: "flex justify-between" },
2035
- React.createElement("div", { className: " font-humnst777 font-bold text-[18px] leading-[21.85px] text-primary-black w-[260px] text-wrap" }, title),
2036
- 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(); } },
2037
- React.createElement(TbX, { className: "text-bia-coolgrey text-[14px]" }))),
2032
+ React.createElement("div", { className: " w-[260px] text-wrap font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
2033
+ React.createElement("button", { type: "button", title: "button", className: "flex h-[22px] w-[22px] cursor-pointer items-center justify-center rounded-radius-full bg-bia-grey-light-50 hover:bg-bia-grey-light-30", onClick: function () { return onClose(); } },
2034
+ React.createElement(TbX, { className: "text-[14px] text-bia-coolgrey" }))),
2038
2035
  React.createElement("div", { className: "flex flex-col gap-[20px]" }, rest.children))));
2039
2036
  }
2040
2037
  return null;
@@ -2043,7 +2040,7 @@ Modal.defaultProps = {
2043
2040
  title: null,
2044
2041
  };
2045
2042
 
2046
- var sizeConfig = {
2043
+ var sizeConfig$1 = {
2047
2044
  md: 'w-[38px] h-[40px] text-[14px] font-semibold',
2048
2045
  sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
2049
2046
  };
@@ -2093,7 +2090,7 @@ function PaginationBar(_a) {
2093
2090
  };
2094
2091
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2095
2092
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
2096
- 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() })); }),
2093
+ 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$1[size]), label: page.toString() })); }),
2097
2094
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2098
2095
  }
2099
2096
 
@@ -2183,7 +2180,7 @@ Popover.defaultProps = {
2183
2180
  var config = {
2184
2181
  success: {
2185
2182
  container: 'border-bia-green',
2186
- content: React.createElement(TbCheck$1, { className: "text-[38px] text-bia-green" }),
2183
+ content: React.createElement(TbCheck, { className: "text-[38px] text-bia-green" }),
2187
2184
  },
2188
2185
  failed: {
2189
2186
  container: 'border-bia-red',
@@ -2379,6 +2376,60 @@ Tab.defaultProps = {
2379
2376
  card: false,
2380
2377
  };
2381
2378
 
2379
+ var radiusConfig = {
2380
+ none: '',
2381
+ all: 'rounded-radius-sm',
2382
+ top: 'rounded-t-radius-sm',
2383
+ right: 'rounded-tr-radius-sm',
2384
+ left: 'rounded-tl-radius-sm',
2385
+ };
2386
+ var variantConfig = {
2387
+ default: 'py-[7px] ps-[15px] pe-[10px] gap-[10px]',
2388
+ alternative: 'pt-[4px] pb-[4.8px] px-[20px] relative',
2389
+ };
2390
+ var defaultConfigs = {
2391
+ true: 'cursor-default bg-bia-grey-light-80 hover:bg-bia-coolgrey-light-90 text-primary-black ',
2392
+ false: 'cursor-pointer bg-bia-grey hover:bg-bia-grey-light-50 text-bia-coolgrey-dark-10',
2393
+ };
2394
+ var defaultButtonConfigs = {
2395
+ true: 'text-primary-black',
2396
+ false: 'text-primary-black',
2397
+ };
2398
+ var alternativeConfigs = {
2399
+ true: 'cursor-default bg-primary-white text-primary-black overflow-hidden',
2400
+ false: 'cursor-pointer bg-bia-verdantgreen-dark-40 hover:bg-bia-verdantgreen-dark-50 text-primary-white overflow-hidden',
2401
+ };
2402
+ var alternativeButtonConfigs = {
2403
+ true: 'absolute px-[5px] opacity-0 hover:opacity-100 grid-cols-2 gap-[2px] bg-gradient-to-l from-primary-white from-50% to-primary-white/[.0] inset-y-0 right-0',
2404
+ false: ' absolute px-[5px] opacity-0 hover:opacity-100 grid-cols-2 gap-[2px] bg-gradient-to-l from-bia-verdantgreen-dark-50 from-50% to-bia-verdantgreen-dark-50/[.0] inset-y-0 right-0',
2405
+ };
2406
+
2407
+ var TabMenu = function (_a) {
2408
+ var variant = _a.variant, _b = _a.text, text = _b === void 0 ? '' : _b, _c = _a.rounded, rounded = _c === void 0 ? 'none' : _c, _d = _a.isActive, isActive = _d === void 0 ? false : _d, _e = _a.onClose, onClose = _e === void 0 ? function () { } : _e, rest = __rest(_a, ["variant", "text", "rounded", "isActive", "onClose"]);
2409
+ // valiated parameter
2410
+ var validatedVariant = validUnion(variant, [
2411
+ 'default',
2412
+ 'alternative',
2413
+ ]);
2414
+ var validatedRadius = validUnion(rounded, ['none', 'all', 'top', 'right', 'left']);
2415
+ var usedBaseConfig;
2416
+ var usedButtonConfig;
2417
+ if (validatedVariant === 'alternative') {
2418
+ usedBaseConfig = alternativeConfigs[isActive];
2419
+ usedButtonConfig = alternativeButtonConfigs[isActive];
2420
+ }
2421
+ else {
2422
+ usedBaseConfig = defaultConfigs[isActive];
2423
+ usedButtonConfig = defaultButtonConfigs[isActive];
2424
+ }
2425
+ return (React.createElement("div", __assign({ className: "tab-menu flex flex-row text-size-tiny font-normal ".concat(radiusConfig[validatedRadius], " ").concat(variantConfig[validatedVariant], " ").concat(usedBaseConfig, " ") }, rest),
2426
+ text,
2427
+ React.createElement("div", { className: "grid ".concat(usedButtonConfig, " ") },
2428
+ validatedVariant === 'alternative' && React.createElement("div", { className: "order-first" }),
2429
+ React.createElement("button", { className: "order-last", onClick: onClose },
2430
+ React.createElement(TbX, { size: 14 })))));
2431
+ };
2432
+
2382
2433
  var colAlign = {
2383
2434
  middle: 'justify-center',
2384
2435
  right: 'justify-end',
@@ -2471,724 +2522,45 @@ TableDemo.defaultProps = {
2471
2522
  tableSize: 'md',
2472
2523
  };
2473
2524
 
2474
- function TbCheck() {
2475
- return (React.createElement("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2476
- React.createElement("path", { d: "M4.73836 7.94166C4.62898 7.94188 4.52062 7.9205 4.41952 7.87874C4.31841 7.83699 4.22655 7.77567 4.1492 7.69833L0.614197 4.16249C0.534553 4.08568 0.471004 3.99377 0.42726 3.89213C0.383515 3.79049 0.360451 3.68116 0.359412 3.57051C0.358373 3.45986 0.37938 3.35012 0.421209 3.24767C0.463037 3.14523 0.524848 3.05214 0.603036 2.97385C0.681224 2.89555 0.774223 2.8336 0.876605 2.79163C0.978988 2.74966 1.08871 2.7285 1.19935 2.72938C1.31 2.73026 1.41937 2.75317 1.52107 2.79677C1.62277 2.84037 1.71477 2.90379 1.7917 2.98333L4.73753 5.92916L10.0417 0.62666C10.198 0.470293 10.4099 0.382402 10.631 0.382324C10.852 0.382246 11.0641 0.469986 11.2204 0.626243C11.3768 0.7825 11.4647 0.994473 11.4648 1.21553C11.4649 1.43659 11.3771 1.64863 11.2209 1.80499L5.32753 7.69833C5.25018 7.77567 5.15832 7.83699 5.05721 7.87874C4.95611 7.9205 4.84775 7.94188 4.73836 7.94166Z", fill: "white" })));
2477
- }
2478
-
2479
- function TbCheckBlack() {
2480
- return (React.createElement("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2481
- React.createElement("path", { d: "M4.73836 7.94166C4.62898 7.94188 4.52062 7.9205 4.41952 7.87874C4.31841 7.83699 4.22655 7.77567 4.1492 7.69833L0.614197 4.16249C0.534553 4.08568 0.471004 3.99377 0.42726 3.89213C0.383515 3.79049 0.360451 3.68116 0.359412 3.57051C0.358373 3.45986 0.37938 3.35012 0.421209 3.24767C0.463037 3.14523 0.524848 3.05214 0.603036 2.97385C0.681224 2.89555 0.774223 2.8336 0.876605 2.79163C0.978988 2.74966 1.08871 2.7285 1.19935 2.72938C1.31 2.73026 1.41937 2.75317 1.52107 2.79677C1.62277 2.84037 1.71477 2.90379 1.7917 2.98333L4.73753 5.92916L10.0417 0.62666C10.198 0.470293 10.4099 0.382402 10.631 0.382324C10.852 0.382246 11.0641 0.469986 11.2204 0.626243C11.3768 0.7825 11.4647 0.994473 11.4648 1.21553C11.4649 1.43659 11.3771 1.64863 11.2209 1.80499L5.32753 7.69833C5.25018 7.77567 5.15832 7.83699 5.05721 7.87874C4.95611 7.9205 4.84775 7.94188 4.73836 7.94166Z", fill: "#2F2F2F" })));
2482
- }
2483
-
2484
- function TbCheckBlackSmall() {
2485
- return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2486
- React.createElement("path", { d: "M3.11607 5.75906C3.0395 5.75922 2.96365 5.74425 2.89288 5.71502C2.82211 5.68579 2.7578 5.64287 2.70366 5.58873L0.229157 3.11365C0.173406 3.05988 0.128922 2.99554 0.0983007 2.92439C0.0676795 2.85325 0.0515342 2.77671 0.050807 2.69926C0.0500797 2.62181 0.064785 2.54498 0.0940648 2.47327C0.123345 2.40156 0.166613 2.3364 0.221344 2.28159C0.276076 2.22679 0.341175 2.18343 0.412843 2.15404C0.484511 2.12466 0.561312 2.10985 0.638767 2.11047C0.716221 2.11108 0.792777 2.12712 0.863967 2.15764C0.935157 2.18816 0.999557 2.23256 1.05341 2.28823L3.11549 4.35031L6.82841 0.638564C6.93779 0.529107 7.08617 0.467584 7.24091 0.467529C7.39565 0.467475 7.54408 0.528893 7.65353 0.638272C7.76299 0.747652 7.82451 0.896034 7.82457 1.05077C7.82462 1.20552 7.7632 1.35394 7.65382 1.4634L3.52849 5.58873C3.47434 5.64287 3.41004 5.68579 3.33927 5.71502C3.26849 5.74425 3.19265 5.75922 3.11607 5.75906Z", fill: "#2F2F2F" })));
2487
- }
2488
-
2489
- function TbCloseAbleBlack(_a) {
2490
- var color = _a.color;
2491
- return (React.createElement("svg", { width: "18.1", height: "18.1", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2492
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "#DADEEB" }),
2493
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "black", fillOpacity: "0.3" }),
2494
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9118 5.91256C13.1396 5.68475 13.1396 5.31541 12.9118 5.0876C12.684 4.8598 12.3147 4.8598 12.0869 5.0876L8.99935 8.17512L5.91183 5.0876C5.68402 4.8598 5.31468 4.8598 5.08687 5.0876C4.85906 5.31541 4.85906 5.68475 5.08687 5.91256L8.17439 9.00008L5.08687 12.0876C4.85906 12.3154 4.85906 12.6848 5.08687 12.9126C5.31468 13.1404 5.68402 13.1404 5.91183 12.9126L8.99935 9.82504L12.0869 12.9126C12.3147 13.1404 12.684 13.1404 12.9118 12.9126C13.1396 12.6848 13.1396 12.3154 12.9118 12.0876L9.82431 9.00008L12.9118 5.91256Z", fill: color })));
2495
- }
2496
-
2497
- function TbCheckWhiteSmall() {
2498
- return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2499
- React.createElement("path", { d: "M3.11607 5.75906C3.0395 5.75922 2.96365 5.74425 2.89288 5.71502C2.82211 5.68579 2.7578 5.64287 2.70366 5.58873L0.229157 3.11365C0.173406 3.05988 0.128922 2.99554 0.0983007 2.92439C0.0676795 2.85325 0.0515342 2.77671 0.050807 2.69926C0.0500797 2.62181 0.064785 2.54498 0.0940648 2.47327C0.123345 2.40156 0.166613 2.3364 0.221344 2.28159C0.276076 2.22679 0.341175 2.18343 0.412843 2.15404C0.484511 2.12466 0.561312 2.10985 0.638767 2.11047C0.716221 2.11108 0.792777 2.12712 0.863967 2.15764C0.935157 2.18816 0.999557 2.23256 1.05341 2.28823L3.11549 4.35031L6.82841 0.638564C6.93779 0.529107 7.08617 0.467584 7.24091 0.467529C7.39565 0.467475 7.54408 0.528893 7.65353 0.638272C7.76299 0.747652 7.82451 0.896034 7.82457 1.05077C7.82462 1.20552 7.7632 1.35394 7.65382 1.4634L3.52849 5.58873C3.47434 5.64287 3.41004 5.68579 3.33927 5.71502C3.26849 5.74425 3.19265 5.75922 3.11607 5.75906Z", fill: "white" })));
2500
- }
2501
-
2502
- function TbCloseAbleBlackSmall() {
2503
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2504
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
2505
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
2506
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60984 3.94171C8.76171 3.78984 8.76171 3.54361 8.60984 3.39173C8.45797 3.23986 8.21174 3.23986 8.05987 3.39173L6.00152 5.45008L3.94317 3.39173C3.7913 3.23986 3.54507 3.23986 3.3932 3.39173C3.24133 3.54361 3.24133 3.78984 3.3932 3.94171L5.45155 6.00005L3.3932 8.0584C3.24133 8.21027 3.24133 8.4565 3.3932 8.60837C3.54507 8.76024 3.7913 8.76024 3.94317 8.60837L6.00152 6.55003L8.05987 8.60837C8.21174 8.76024 8.45797 8.76024 8.60984 8.60837C8.76171 8.4565 8.76171 8.21027 8.60984 8.0584L6.55149 6.00005L8.60984 3.94171Z", fill: "white" })));
2507
- }
2508
-
2509
- function TbCloseAbleWhiteSmall(_a) {
2510
- var color = _a.color;
2511
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2512
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "white", fillOpacity: "0.5" }),
2513
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60984 3.94171C8.76171 3.78984 8.76171 3.54361 8.60984 3.39174C8.45797 3.23986 8.21174 3.23986 8.05987 3.39174L6.00152 5.45008L3.94317 3.39174C3.7913 3.23986 3.54507 3.23986 3.3932 3.39174C3.24133 3.54361 3.24133 3.78984 3.3932 3.94171L5.45155 6.00005L3.3932 8.0584C3.24133 8.21027 3.24133 8.4565 3.3932 8.60837C3.54507 8.76024 3.7913 8.76024 3.94317 8.60837L6.00152 6.55003L8.05987 8.60837C8.21174 8.76024 8.45797 8.76024 8.60984 8.60837C8.76171 8.4565 8.76171 8.21027 8.60984 8.0584L6.55149 6.00005L8.60984 3.94171Z", fill: color })));
2514
- }
2515
-
2516
- function TbCloseAbleGraySmall() {
2517
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2518
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
2519
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
2520
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60984 3.94171C8.76171 3.78984 8.76171 3.54361 8.60984 3.39173C8.45797 3.23986 8.21174 3.23986 8.05987 3.39173L6.00152 5.45008L3.94317 3.39173C3.7913 3.23986 3.54507 3.23986 3.3932 3.39173C3.24133 3.54361 3.24133 3.78984 3.3932 3.94171L5.45155 6.00005L3.3932 8.0584C3.24133 8.21027 3.24133 8.4565 3.3932 8.60837C3.54507 8.76024 3.7913 8.76024 3.94317 8.60837L6.00152 6.55003L8.05987 8.60837C8.21174 8.76024 8.45797 8.76024 8.60984 8.60837C8.76171 8.4565 8.76171 8.21027 8.60984 8.0584L6.55149 6.00005L8.60984 3.94171Z", fill: "white" })));
2521
- }
2522
-
2523
- function TbCloseable(_a) {
2524
- var color = _a.color;
2525
- return (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2526
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "white", fillOpacity: "0.5" }),
2527
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9118 5.91256C13.1396 5.68475 13.1396 5.31541 12.9118 5.0876C12.684 4.8598 12.3147 4.8598 12.0869 5.0876L8.99935 8.17512L5.91183 5.0876C5.68402 4.8598 5.31468 4.8598 5.08687 5.0876C4.85906 5.31541 4.85906 5.68475 5.08687 5.91256L8.17439 9.00008L5.08687 12.0876C4.85906 12.3154 4.85906 12.6848 5.08687 12.9126C5.31468 13.1404 5.68402 13.1404 5.91183 12.9126L8.99935 9.82504L12.0869 12.9126C12.3147 13.1404 12.684 13.1404 12.9118 12.9126C13.1396 12.6848 13.1396 12.3154 12.9118 12.0876L9.82431 9.00008L12.9118 5.91256Z", fill: color })));
2528
- }
2529
-
2530
- var TagLabelConfig = {
2531
- default: {
2532
- md: {
2533
- iconColor: 'text-white',
2534
- XColor: 'text-bia-coolgrey',
2535
- XcolorV: 'text-primary-black',
2536
- label: {
2537
- bg: 'bg-bia-grey-light-50',
2538
- text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
2539
- padding: 'px-[10px] py-[7px] ',
2540
- radius: 'rounded-[50px]',
2541
- Xicon: '',
2542
- },
2543
- closeable: {
2544
- bg: 'bg-bia-grey-light-50',
2545
- text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
2546
- padding: 'px-[10px] py-[7px] ',
2547
- radius: 'rounded-[50px]',
2548
- Xicon: TbCloseAbleBlack,
2549
- },
2550
- icon: {
2551
- bg: 'bg-bia-grey-light-50',
2552
- text: 'text-[#2F2F2F] text-[18.67px]',
2553
- padding: 'p-[7px] ',
2554
- radius: 'rounded-[50px]',
2555
- Xicon: TbCheckBlack,
2556
- },
2557
- },
2558
- sm: {
2559
- iconColor: 'text-white',
2560
- XColor: 'text-bia-coolgrey',
2561
- XcolorV: 'text-primary-black',
2562
- label: {
2563
- bg: "bg-bia-grey-light-50",
2564
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
2565
- padding: "px-[10px] py-[5px] ",
2566
- radius: "rounded-[12px]",
2567
- Xicon: '',
2568
- },
2569
- closeable: {
2570
- bg: "bg-bia-grey-light-50",
2571
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
2572
- padding: "px-[10px] py-[2px]",
2573
- radius: "rounded-[12px]",
2574
- Xicon: TbCloseAbleBlackSmall,
2575
- },
2576
- icon: {
2577
- bg: "bg-bia-grey-light-50",
2578
- text: "text-[#2F2F2F] text-[13.06px]",
2579
- padding: "p-[4px]",
2580
- radius: "rounded-[12px]",
2581
- Xicon: TbCheckBlackSmall,
2582
- },
2583
- },
2584
- tn: {
2585
- iconColor: 'text-white',
2586
- XColor: 'text-bia-coolgrey',
2587
- XcolorV: 'text-primary-black',
2588
- label: {
2589
- bg: "bg-bia-grey-light-50",
2590
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
2591
- padding: "px-[8px] py-[2px]",
2592
- radius: "rounded-[12px]",
2593
- Xicon: '',
2594
- },
2595
- closeable: {
2596
- bg: "bg-bia-grey-light-50",
2597
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
2598
- padding: "px-[8px] py-[2px]",
2599
- radius: "rounded-[12px]",
2600
- Xicon: TbCloseAbleBlackSmall,
2601
- },
2602
- icon: {
2603
- bg: "bg-bia-grey-light-50",
2604
- text: "text-[#2F2F2F] text-[11.2px]",
2605
- padding: "p-[3px]",
2606
- radius: "rounded-[12px]",
2607
- Xicon: TbCheckBlackSmall,
2608
- },
2609
- },
2610
- },
2611
- blue: {
2612
- md: {
2613
- iconColor: 'text-bia-blue',
2614
- XColor: 'text-bia-blue-light-50',
2615
- XcolorV: 'text-white',
2616
- label: {
2617
- bg: "bg-bia-blue",
2618
- text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
2619
- padding: "px-[10px] py-[7px] ",
2620
- radius: "rounded-[50px]",
2621
- Xicon: '',
2622
- },
2623
- closeable: {
2624
- bg: "bg-bia-blue",
2625
- text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
2626
- padding: "px-[10px] py-[7px] ",
2627
- radius: "rounded-[50px]",
2628
- Xicon: TbCloseable,
2629
- },
2630
- icon: {
2631
- bg: "bg-bia-blue",
2632
- text: "text-[#FFFFFF] text-[18.67px]",
2633
- padding: "p-[7px] ",
2634
- radius: "rounded-[50px]",
2635
- Xicon: TbCheck,
2636
- },
2637
- },
2638
- sm: {
2639
- iconColor: 'text-bia-blue',
2640
- XColor: 'text-white',
2641
- XcolorV: 'text-white',
2642
- label: {
2643
- bg: "bg-bia-blue",
2644
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2645
- padding: "px-[10px] py-[2px]",
2646
- radius: "rounded-[12px]",
2647
- Xicon: '',
2648
- },
2649
- closeable: {
2650
- bg: "bg-bia-blue",
2651
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2652
- padding: "px-[10px] py-[2px] ",
2653
- radius: "rounded-[12px]",
2654
- Xicon: TbCloseAbleWhiteSmall,
2655
- },
2656
- icon: {
2657
- bg: "bg-bia-blue",
2658
- text: "text-[#FFF] text-[13.06px]",
2659
- padding: "p-[4px] ",
2660
- radius: "rounded-[12px]",
2661
- Xicon: TbCheckWhiteSmall,
2662
- },
2663
- },
2664
- tn: {
2665
- iconColor: 'text-bia-blue',
2666
- XColor: 'text-white',
2667
- XcolorV: 'text-white',
2668
- label: {
2669
- bg: "bg-bia-blue",
2670
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2671
- padding: "px-[8px] py-[2px]",
2672
- radius: "rounded-[12px]",
2673
- Xicon: '',
2674
- },
2675
- closeable: {
2676
- bg: "bg-bia-blue",
2677
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2678
- padding: "px-[8px] py-[2px]",
2679
- radius: "rounded-[12px]",
2680
- Xicon: TbCloseAbleWhiteSmall,
2681
- },
2682
- icon: {
2683
- bg: "bg-bia-blue",
2684
- text: "text-[#FFF] text-[13.06px]",
2685
- padding: "p-[3px]",
2686
- radius: "rounded-[12px]",
2687
- Xicon: TbCheckWhiteSmall,
2688
- },
2689
- },
2690
- },
2691
- teal: {
2692
- md: {
2693
- iconColor: 'text-bia-teal',
2694
- XColor: 'text-bia-teal-light-50',
2695
- XcolorV: 'text-white',
2696
- label: {
2697
- bg: "bg-bia-teal",
2698
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2699
- padding: "px-[10px] py-[7px] ",
2700
- radius: "rounded-[50px]",
2701
- Xicon: '',
2702
- },
2703
- closeable: {
2704
- bg: "bg-bia-teal",
2705
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2706
- padding: "px-[10px] py-[7px] ",
2707
- radius: "rounded-[50px]",
2708
- Xicon: TbCloseable,
2709
- },
2710
- icon: {
2711
- bg: "bg-bia-teal",
2712
- text: "text-[#FFF] text-[18.67px]",
2713
- padding: "p-[7px] ",
2714
- radius: "rounded-[50px]",
2715
- Xicon: TbCheck,
2716
- },
2717
- },
2718
- sm: {
2719
- iconColor: 'text-bia-teal',
2720
- XColor: 'text-white',
2721
- XcolorV: 'text-white',
2722
- label: {
2723
- bg: "bg-bia-teal",
2724
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2725
- padding: "px-[10px] py-[2px]",
2726
- radius: "rounded-[12px]",
2727
- Xicon: '',
2728
- },
2729
- closeable: {
2730
- bg: "bg-bia-teal",
2731
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2732
- padding: "px-[10px] py-[2px]",
2733
- radius: "rounded-[12px]",
2734
- Xicon: TbCloseAbleWhiteSmall,
2735
- },
2736
- icon: {
2737
- bg: "bg-bia-teal",
2738
- text: "text-[#FFF] text-[13.06px]",
2739
- padding: "p-[4px]",
2740
- radius: "rounded-[12px]",
2741
- Xicon: TbCheckWhiteSmall,
2742
- },
2743
- },
2744
- tn: {
2745
- iconColor: 'text-bia-teal',
2746
- XColor: 'text-white',
2747
- XcolorV: 'text-white',
2748
- label: {
2749
- bg: "bg-bia-teal",
2750
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2751
- padding: "px-[8px] py-[2px]",
2752
- radius: "rounded-[12px]",
2753
- Xicon: '',
2754
- },
2755
- closeable: {
2756
- bg: "bg-bia-teal",
2757
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2758
- padding: "px-[8px] py-[2px]",
2759
- radius: "rounded-[12px]",
2760
- Xicon: TbCloseAbleWhiteSmall,
2761
- },
2762
- icon: {
2763
- bg: "bg-bia-teal",
2764
- text: "text-[#FFF] text-[11.2px]",
2765
- padding: "p-[3px] ",
2766
- radius: "rounded-[12px]",
2767
- Xicon: TbCheckWhiteSmall,
2768
- },
2769
- },
2770
- },
2771
- green: {
2772
- md: {
2773
- iconColor: 'text-bia-green',
2774
- XColor: 'text-bia-green-light-50',
2775
- XcolorV: 'text-white',
2776
- label: {
2777
- bg: "bg-bia-green",
2778
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2779
- padding: "px-[10px] py-[7px] ",
2780
- radius: "rounded-[50px]",
2781
- Xicon: '',
2782
- },
2783
- closeable: {
2784
- bg: "bg-bia-green",
2785
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2786
- padding: "px-[10px] py-[7px] ",
2787
- radius: "rounded-[50px]",
2788
- Xicon: TbCloseable,
2789
- },
2790
- icon: {
2791
- bg: "bg-bia-green",
2792
- text: "text-[#FFF] text-[18.67px]",
2793
- padding: "p-[7px] ",
2794
- radius: "rounded-[50px]",
2795
- Xicon: TbCheck,
2796
- },
2797
- },
2798
- sm: {
2799
- iconColor: 'text-bia-green',
2800
- XColor: 'text-white',
2801
- XcolorV: 'text-white',
2802
- label: {
2803
- bg: "bg-bia-green",
2804
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2805
- padding: "px-[10px] py-[2px]",
2806
- radius: "rounded-[12px]",
2807
- Xicon: '',
2808
- },
2809
- closeable: {
2810
- bg: "bg-bia-green",
2811
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2812
- padding: "px-[10px] py-[2px]",
2813
- radius: "rounded-[12px]",
2814
- Xicon: TbCloseAbleWhiteSmall,
2815
- },
2816
- icon: {
2817
- bg: "bg-bia-green",
2818
- text: "text-[#FFF] text-[13.06px]",
2819
- padding: "p-[4px] ",
2820
- radius: "rounded-[12px]",
2821
- Xicon: TbCheckWhiteSmall,
2822
- },
2823
- },
2824
- tn: {
2825
- iconColor: 'text-bia-green',
2826
- XColor: 'text-white',
2827
- XcolorV: 'text-white',
2828
- label: {
2829
- bg: "bg-bia-green",
2830
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2831
- padding: "px-[8px] py-[2px] ",
2832
- radius: "rounded-[12px]",
2833
- Xicon: '',
2834
- },
2835
- closeable: {
2836
- bg: "bg-bia-green",
2837
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2838
- padding: "px-[8px] py-[2px] ",
2839
- radius: "rounded-[12px]",
2840
- Xicon: TbCloseAbleWhiteSmall,
2841
- },
2842
- icon: {
2843
- bg: "bg-bia-green",
2844
- text: "text-[#FFF] text-[11.2px]",
2845
- padding: "p-[3px] ",
2846
- radius: "rounded-[12px]",
2847
- Xicon: TbCheckWhiteSmall,
2848
- },
2849
- },
2850
- },
2851
- yellow: {
2852
- md: {
2853
- iconColor: 'text-bia-orange',
2854
- XColor: 'text-bia-orange-light-50',
2855
- XcolorV: 'text-white',
2856
- label: {
2857
- bg: "bg-[#FF7B00]",
2858
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2859
- padding: "px-[10px] py-[7px] ",
2860
- radius: "rounded-[50px]",
2861
- Xicon: '',
2862
- },
2863
- closeable: {
2864
- bg: "bg-[#FF7B00]",
2865
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2866
- padding: "px-[10px] py-[7px] ",
2867
- radius: "rounded-[50px]",
2868
- Xicon: TbCloseable,
2869
- },
2870
- icon: {
2871
- bg: "bg-[#FF7B00]",
2872
- text: "text-[#FFF] text-[18.67px]",
2873
- padding: "p-[7px] ",
2874
- radius: "rounded-[50px]",
2875
- Xicon: TbCheck,
2876
- },
2877
- },
2878
- sm: {
2879
- iconColor: 'text-bia-orange',
2880
- XColor: 'text-white',
2881
- XcolorV: 'text-white',
2882
- label: {
2883
- bg: "bg-[#FF7B00]",
2884
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2885
- padding: "px-[10px] py-[2px]",
2886
- radius: "rounded-[12px]",
2887
- Xicon: '',
2888
- },
2889
- closeable: {
2890
- bg: "bg-[#FF7B00]",
2891
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2892
- padding: "px-[10px] py-[2px]",
2893
- radius: "rounded-[12px]",
2894
- Xicon: TbCloseAbleWhiteSmall,
2895
- },
2896
- icon: {
2897
- bg: "bg-[#FF7B00]",
2898
- text: "text-[#FFF] text-[13.06px]",
2899
- padding: "p-[4px]",
2900
- radius: "rounded-[12px]",
2901
- Xicon: TbCheckWhiteSmall,
2902
- },
2903
- },
2904
- tn: {
2905
- iconColor: 'text-bia-orange',
2906
- XColor: 'text-white',
2907
- XcolorV: 'text-white',
2908
- label: {
2909
- bg: "bg-[#FF7B00]",
2910
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2911
- padding: "px-[8px] py-[2px]",
2912
- radius: "rounded-[12px]",
2913
- Xicon: '',
2914
- },
2915
- closeable: {
2916
- bg: "bg-[#FF7B00]",
2917
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2918
- padding: "px-[8px] py-[2px] ",
2919
- radius: "rounded-[12px]",
2920
- Xicon: TbCloseAbleWhiteSmall,
2921
- },
2922
- icon: {
2923
- bg: "bg-[#FF7B00]",
2924
- text: "text-[#FFF] text-[11.2px]",
2925
- padding: "p-[3px] ",
2926
- radius: "rounded-[12px]",
2927
- Xicon: TbCheckWhiteSmall,
2928
- },
2929
- },
2930
- },
2931
- red: {
2932
- md: {
2933
- iconColor: 'text-bia-red',
2934
- XColor: 'text-bia-red-light-50',
2935
- XcolorV: 'text-white',
2936
- label: {
2937
- bg: "bg-bia-red",
2938
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2939
- padding: "px-[10px] py-[7px] ",
2940
- radius: "rounded-[50px]",
2941
- Xicon: '',
2942
- },
2943
- closeable: {
2944
- bg: "bg-bia-red",
2945
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2946
- padding: "px-[10px] py-[7px] ",
2947
- radius: "rounded-[50px]",
2948
- Xicon: TbCloseable,
2949
- },
2950
- icon: {
2951
- bg: "bg-bia-red",
2952
- text: "text-[#FFF] text-[18.67px]",
2953
- padding: "p-[7px]",
2954
- radius: "rounded-[50px]",
2955
- Xicon: TbCheck,
2956
- },
2957
- },
2958
- sm: {
2959
- iconColor: 'text-bia-red',
2960
- XColor: 'text-white',
2961
- XcolorV: 'text-white',
2962
- label: {
2963
- bg: "bg-bia-red",
2964
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2965
- padding: "px-[10px] py-[2px]",
2966
- radius: "rounded-[12px]",
2967
- Xicon: '',
2968
- },
2969
- closeable: {
2970
- bg: "bg-bia-red",
2971
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2972
- padding: "px-[10px] py-[2px] ",
2973
- radius: "rounded-[12px]",
2974
- Xicon: TbCloseAbleWhiteSmall,
2975
- },
2976
- icon: {
2977
- bg: "bg-bia-red",
2978
- text: "text-[#FFF] text-[13.06px]",
2979
- padding: "p-[4px] ",
2980
- radius: "rounded-[12px]",
2981
- Xicon: TbCheckWhiteSmall,
2982
- },
2983
- },
2984
- tn: {
2985
- iconColor: 'text-bia-red',
2986
- XColor: 'text-white',
2987
- XcolorV: 'text-white',
2988
- label: {
2989
- bg: "bg-bia-red",
2990
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2991
- padding: "px-[8px] py-[2px] ",
2992
- radius: "rounded-[12px]",
2993
- Xicon: '',
2994
- },
2995
- closeable: {
2996
- bg: "bg-bia-red",
2997
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2998
- padding: "px-[8px] py-[2px] ",
2999
- radius: "rounded-[12px]",
3000
- Xicon: TbCloseAbleWhiteSmall,
3001
- },
3002
- icon: {
3003
- bg: "bg-bia-red",
3004
- text: "text-[#FFF] text-[11.2px]",
3005
- padding: "p-[3px] ",
3006
- radius: "rounded-[12px]",
3007
- Xicon: TbCheckWhiteSmall,
3008
- },
3009
- },
3010
- },
3011
- black: {
3012
- md: {
3013
- iconColor: 'text-[#2f2f2f]',
3014
- XColor: 'text-bia-coolgrey',
3015
- XcolorV: 'text-white',
3016
- label: {
3017
- bg: "bg-primary-black",
3018
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
3019
- padding: "px-[10px] py-[7px] ",
3020
- radius: "rounded-[50px]",
3021
- Xicon: '',
3022
- },
3023
- closeable: {
3024
- bg: "bg-primary-black",
3025
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
3026
- padding: "px-[10px] py-[7px] ",
3027
- radius: "rounded-[50px]",
3028
- Xicon: TbCloseable,
3029
- },
3030
- icon: {
3031
- bg: "bg-primary-black",
3032
- text: "text-[#FFF] text-[18.67px]",
3033
- padding: "p-[7px] ",
3034
- radius: "rounded-[50px]",
3035
- Xicon: TbCheck,
3036
- },
3037
- },
3038
- sm: {
3039
- iconColor: 'text-[#2f2f2f]',
3040
- XColor: 'text-white',
3041
- XcolorV: 'text-white',
3042
- label: {
3043
- bg: "bg-primary-black",
3044
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
3045
- padding: "px-[10px] py-[2px] ",
3046
- radius: "rounded-[12px]",
3047
- Xicon: '',
3048
- },
3049
- closeable: {
3050
- bg: "bg-primary-black",
3051
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
3052
- padding: "px-[10px] py-[2px] ",
3053
- radius: "rounded-[12px]",
3054
- Xicon: TbCloseAbleWhiteSmall,
3055
- },
3056
- icon: {
3057
- bg: "bg-primary-black",
3058
- text: "text-[#FFF] text-[13.06px]",
3059
- padding: "p-[4px] ",
3060
- radius: "rounded-[12px]",
3061
- Xicon: TbCheckWhiteSmall,
3062
- },
3063
- },
3064
- tn: {
3065
- iconColor: 'text-[#2f2f2f]',
3066
- XColor: 'text-white',
3067
- XcolorV: 'text-white',
3068
- label: {
3069
- bg: "bg-primary-black",
3070
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
3071
- padding: "px-[8px] py-[2px] ",
3072
- radius: "rounded-[12px]",
3073
- Xicon: '',
3074
- },
3075
- closeable: {
3076
- bg: "bg-primary-black",
3077
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
3078
- padding: "px-[8px] py-[2px] ",
3079
- radius: "rounded-[12px]",
3080
- Xicon: TbCloseAbleWhiteSmall,
3081
- },
3082
- icon: {
3083
- bg: "bg-primary-black",
3084
- text: "text-[#FFF] text-[11.2px]",
3085
- padding: "p-[3px] ",
3086
- radius: "rounded-[12px]",
3087
- Xicon: TbCheckWhiteSmall,
3088
- },
3089
- },
3090
- },
3091
- white: {
3092
- md: {
3093
- iconColor: 'text-white',
3094
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3095
- XcolorV: 'text-primary-black',
3096
- label: {
3097
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3098
- text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
3099
- padding: "px-[10px] py-[7px] ",
3100
- radius: "rounded-[50px]",
3101
- Xicon: '',
3102
- },
3103
- closeable: {
3104
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3105
- text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
3106
- padding: "px-[10px] py-[7px] ",
3107
- radius: "rounded-[50px]",
3108
- Xicon: TbCloseAbleBlack,
3109
- },
3110
- icon: {
3111
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3112
- text: "text-[#2F2F2F] text-[18.67px]",
3113
- padding: "p-[7px]",
3114
- radius: "rounded-[50px]",
3115
- Xicon: TbCheckBlack,
3116
- },
3117
- },
3118
- sm: {
3119
- iconColor: 'text-white',
3120
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3121
- XcolorV: 'text-primary-black',
3122
- label: {
3123
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3124
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
3125
- padding: "px-[10px] py-[2px] ",
3126
- radius: "rounded-[12px]",
3127
- Xicon: '',
3128
- },
3129
- closeable: {
3130
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3131
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
3132
- padding: "px-[10px] py-[2px] ",
3133
- radius: "rounded-[12px]",
3134
- Xicon: TbCloseAbleGraySmall,
3135
- },
3136
- icon: {
3137
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3138
- text: "text-[#2F2F2F] text-[6.53px]",
3139
- padding: "p-[4px] ",
3140
- radius: "rounded-[12px]",
3141
- Xicon: TbCheckBlackSmall,
3142
- },
3143
- },
3144
- tn: {
3145
- iconColor: 'text-white',
3146
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3147
- XcolorV: 'text-primary-black',
3148
- label: {
3149
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3150
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
3151
- padding: "px-[8px] py-[2px] ",
3152
- radius: "rounded-[12px]",
3153
- Xicon: '',
3154
- },
3155
- closeable: {
3156
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3157
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
3158
- padding: "px-[8px] py-[2px] ",
3159
- radius: "rounded-[12px]",
3160
- Xicon: TbCloseAbleGraySmall,
3161
- },
3162
- icon: {
3163
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3164
- text: "text-[#2F2F2F] text-[11.2px]",
3165
- padding: "p-[3px] ",
3166
- radius: "rounded-[12px]",
3167
- Xicon: TbCheckBlackSmall,
3168
- },
3169
- },
3170
- },
2525
+ var colorConfig = {
2526
+ default: 'bg-bia-grey-light-50 text-primary-black',
2527
+ blue: 'bg-bia-blue text-primary-white',
2528
+ teal: 'bg-bia-teal text-primary-white',
2529
+ green: 'bg-bia-green text-primary-white',
2530
+ yellow: 'bg-bia-yellow text-primary-white',
2531
+ red: 'bg-bia-red text-primary-white',
2532
+ black: 'bg-primary-black text-primary-white',
2533
+ white: 'bg-primary-white text-primary-black border border-primary-black',
3171
2534
  };
3172
-
3173
- function CloseIcon(_a) {
3174
- var _b = _a.size, size = _b === void 0 ? 'md' : _b;
3175
- var iconSize;
3176
- if (size === 'tn') {
3177
- iconSize = '10';
3178
- }
3179
- else if (size === 'sm') {
3180
- iconSize = '10';
3181
- }
3182
- else {
3183
- iconSize = '14';
3184
- }
3185
- return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "icon icon-tabler icons-tabler-outline icon-tabler-x" },
3186
- React.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
3187
- React.createElement("path", { d: "M18 6l-12 12" }),
3188
- React.createElement("path", { d: "M6 6l12 12" })));
3189
- }
3190
- CloseIcon.defaultProps = {
3191
- size: 'md',
2535
+ var sizeConfig = {
2536
+ md: 'px-[10px] py-[7px] h-[34px] text-size-base',
2537
+ sm: 'px-[10px] py-[4px] h-[22px] text-size-sm',
2538
+ tn: 'px-[8px] py-[2px] h-[18px] text-size-sm',
2539
+ };
2540
+ var iconOnlySizeConfig = {
2541
+ md: 'p-[7px]',
2542
+ sm: 'p-[4px]',
2543
+ tn: 'p-[2px]',
2544
+ };
2545
+ var closeColorConfig = {
2546
+ default: 'bg-bia-grey-dark-30 text-primary-white',
2547
+ blue: 'bg-bia-white-transparent-50 text-bia-blue',
2548
+ teal: 'bg-bia-white-transparent-50 text-bia-teal',
2549
+ green: 'bg-bia-white-transparent-50 text-bia-green',
2550
+ yellow: 'bg-bia-white-transparent-50 text-bia-yellow',
2551
+ red: 'bg-bia-white-transparent-50 text-bia-red',
2552
+ black: 'bg-bia-white-transparent-50 text-primary-black',
2553
+ white: 'bg-bia-grey-dark-30 text-primary-white',
2554
+ };
2555
+ var closeSizeConfig = {
2556
+ md: 'w-[18px] h-[18px] text-[14px]',
2557
+ sm: 'w-[12px] h-[12px] text-[9.33px]',
2558
+ tn: 'w-[12px] h-[12px] text-[9.33px]',
2559
+ };
2560
+ var rightPaddingConfig = {
2561
+ md: 'pr-[8px]',
2562
+ sm: 'pr-[5px]',
2563
+ tn: 'pr-[3px]',
3192
2564
  };
3193
2565
 
3194
2566
  var colorUnion = [
@@ -3200,132 +2572,130 @@ var colorUnion = [
3200
2572
  'red',
3201
2573
  'black',
3202
2574
  'white',
2575
+ 'custom',
3203
2576
  ];
3204
2577
  var sizeUnion = ['md', 'sm', 'tn'];
3205
2578
  var variantUnion = ['label', 'icon', 'closeable'];
3206
- function TagLabel(_a) {
3207
- 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;
2579
+ var TagLabel = function (_a) {
2580
+ var color = _a.color, _b = _a.size, size = _b === void 0 ? 'md' : _b, variant = _a.variant, closeHandler = _a.closeHandler, open = _a.open, text = _a.text, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon; _a.left; _a.right; var bgColor = _a.bgColor, textColor = _a.textColor, isBlock = _a.isBlock, maxWidth = _a.maxWidth, isDark = _a.isDark, props = __rest(_a, ["color", "size", "variant", "closeHandler", "open", "text", "leftIcon", "rightIcon", "left", "right", "bgColor", "textColor", "isBlock", "maxWidth", "isDark"]);
3208
2581
  var validatedColor = validUnion(color, colorUnion);
3209
2582
  var validatedSize = validUnion(size, sizeUnion);
3210
2583
  var validatedVariant = validUnion(variant, variantUnion);
3211
- var config = TagLabelConfig[validatedColor][validatedSize][validatedVariant];
3212
- var configIcon = TagLabelConfig[validatedColor][validatedSize];
3213
- var configbg = config.bg;
3214
- var configtext = config.text;
3215
- var configpadding = config.padding;
3216
- var configradius = config.radius;
3217
- var configX = config.Xicon;
3218
- var configXcolor = configIcon.XColor;
3219
- var configXcolorV = configIcon.XcolorV;
3220
- var iconColor = configIcon.iconColor;
3221
- var IconContainer = {
3222
- sm: 'h-[14px] w-[14px]',
3223
- tn: 'h-[14px] w-[14px]',
3224
- md: 'h-[20px] w-[20px]',
3225
- };
3226
- var renderIcon = function (icon) {
3227
- if (typeof icon === 'string') {
3228
- return React.createElement("span", null, icon);
3229
- }
3230
- var IconComponent = icon;
3231
- var textSize;
3232
- if (validatedSize === 'md') {
3233
- textSize = 'text-[20px]';
3234
- }
3235
- else if (validatedSize === 'sm' || validatedSize === 'tn') {
3236
- textSize = 'text-[14px]';
3237
- }
3238
- else {
3239
- textSize = 'text-[14px]';
3240
- }
3241
- var fillColor;
3242
- if (validatedColor === 'blue') {
3243
- fillColor = '#5d5dea';
3244
- }
3245
- else if (validatedColor === 'green') {
3246
- fillColor = '#21ba4c';
3247
- }
3248
- else if (validatedColor === 'teal') {
3249
- fillColor = '#00b5ad';
3250
- }
3251
- else if (validatedColor === 'yellow') {
3252
- fillColor = '#ff7b00';
3253
- }
3254
- else if (validatedColor === 'red') {
3255
- fillColor = '#db2828';
3256
- }
3257
- else if (validatedColor === 'black') {
3258
- fillColor = '#2f2f2f';
3259
- }
3260
- else {
3261
- fillColor = '#ffffff';
2584
+ var containerRef = React.useRef(null);
2585
+ var _c = React.useState(null), sizeCount = _c[0], setSizeCount = _c[1];
2586
+ React.useEffect(function () {
2587
+ if (variant === 'icon') {
2588
+ // Get the size of the icon
2589
+ // and set the size of the container
2590
+ // to the one with the biggest size (width or height icon)
2591
+ // in order to make the container square
2592
+ var rect = containerRef.current.getBoundingClientRect();
2593
+ var width = rect.width;
2594
+ var height = rect.height;
2595
+ if (width > height)
2596
+ setSizeCount(width);
2597
+ else
2598
+ setSizeCount(height);
3262
2599
  }
3263
- return (React.createElement(IconComponent, { className: "".concat(textSize, " ").concat(validatedVariant === 'icon' ? configXcolor : configXcolorV), color: fillColor }));
3264
- };
3265
- // const containerClass = `${container} ${capitalize && 'capitalize'}`;
3266
- // const closeableMode = variant === 'closeable';
3267
- // const iconMode = variant === 'icon';
3268
- var closeButtonException;
3269
- if (validatedSize === 'md') {
3270
- closeButtonException = '-mr-[2px]';
3271
- }
3272
- else {
3273
- closeButtonException = '-mr-[5px]';
3274
- }
3275
- var outlineColor;
3276
- if (validatedColor === 'default' || validatedColor === 'white') {
3277
- outlineColor = 'outline-primary-black';
3278
- }
3279
- else {
3280
- outlineColor = 'outline-white';
3281
- }
3282
- if (!open)
3283
- return null;
3284
- return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
3285
- validatedVariant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[validatedSize]) }, childrenElement(leftIcon) ||
3286
- renderIcon(configX))) : (React.createElement(React.Fragment, null,
3287
- React.createElement("span", null, childrenElement(leftIcon)),
3288
- React.createElement("div", { className: "flex justify-center items-center ".concat(validatedSize === 'md' && 'min-h-[20px] px-[5px]', " ").concat(validatedSize === 'sm' && 'min-h-[18px] px-[3px]', " ").concat(validatedSize === 'tn' && 'min-h-[14px] px-[3px] -mt-[2px]') }, childrenElement(children)))),
3289
- validatedVariant === 'label' && rightIcon && (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[validatedSize]) }, childrenElement(rightIcon))),
3290
- validatedVariant === 'closeable' && closeHandler && (React.createElement("button", { type: "button", className: "flex justify-center items-center ".concat(validatedSize === 'tn' ? 'p-[1px]' : 'p-[2px]', " ").concat(outlineColor, " ").concat(iconColor, " ").concat(validatedColor === 'white' || validatedColor === 'default' ? 'bg-black/[.3]' : 'bg-white/[.5]', " focus:outline ").concat(validatedSize === 'tn' ? 'outline-[1.5px]' : 'outline-[2px]', " ").concat(closeButtonException, " rounded-full group"), onClick: function () { return closeHandler(); } },
3291
- React.createElement(CloseIcon, { size: validatedSize })))));
3292
- }
2600
+ }, []);
2601
+ var defaultIconSize = validatedSize === 'md' ? 'text-xl' : 'text-sm';
2602
+ var roundedClass = validatedVariant === 'icon' ? 'rounded-full' : 'rounded-[50px]';
2603
+ var sizeClass = validatedVariant === 'icon'
2604
+ ? iconOnlySizeConfig[validatedSize]
2605
+ : sizeConfig[validatedSize];
2606
+ var isCloseableClass = validatedVariant === 'closeable' && rightPaddingConfig[validatedSize];
2607
+ var colorClass = validatedColor === 'custom'
2608
+ ? "bg-bia-".concat(bgColor, " text-bia-").concat(textColor)
2609
+ : colorConfig[validatedColor];
2610
+ var blockclass = isBlock && validatedVariant !== 'icon' ? 'w-full' : "w-fit";
2611
+ var maxWidthStyle = !isBlock ? maxWidth + 'px' : '';
2612
+ var textClass = isBlock ? 'text-center' : 'text-left';
2613
+ var containerClass = "".concat(sizeClass, " ").concat(colorClass, " ").concat(roundedClass, " ").concat(isCloseableClass, " ").concat(blockclass);
2614
+ var closeColor = validatedColor === 'custom'
2615
+ ? isDark
2616
+ ? "bg-bia-white-transparent-50 text-bia-".concat(bgColor)
2617
+ : "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
2618
+ : closeColorConfig[validatedColor];
2619
+ var closeClass = "".concat(closeColor, " ").concat(closeSizeConfig[validatedSize]);
2620
+ return (open && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base ".concat(containerClass), style: {
2621
+ maxWidth: maxWidthStyle,
2622
+ } }, props),
2623
+ leftIcon && (React.createElement("div", { style: {
2624
+ width: sizeCount + 'px',
2625
+ height: sizeCount + 'px',
2626
+ }, className: "flex items-center justify-center", ref: containerRef }, leftIcon ||
2627
+ (validatedVariant === 'icon' && (React.createElement(TbCheck, { className: defaultIconSize }))))),
2628
+ validatedVariant !== 'icon' && text && (React.createElement("span", { className: "w-full truncate pb-[2px] ".concat(textClass) }, text)),
2629
+ validatedVariant === 'label' && rightIcon && (React.createElement("div", { className: "block" },
2630
+ " ",
2631
+ rightIcon,
2632
+ " ")),
2633
+ validatedVariant === 'closeable' && (React.createElement("button", { type: "button", onClick: closeHandler, className: "flex aspect-square items-center justify-center rounded-full pt-[1px] ".concat(closeClass) },
2634
+ React.createElement(TbX, null))))));
2635
+ };
3293
2636
  TagLabel.defaultProps = {
3294
2637
  variant: 'default',
3295
2638
  size: 'sm',
3296
2639
  open: true,
3297
2640
  closeHandler: function () { },
3298
- rightIcon: null,
3299
2641
  leftIcon: null,
2642
+ rightIcon: null,
2643
+ left: null,
2644
+ right: null,
2645
+ bgColor: null,
2646
+ textColor: null,
2647
+ isBlock: false,
2648
+ maxWidth: 300,
2649
+ isDark: false,
3300
2650
  };
3301
2651
 
3302
2652
  var classConfig = {
3303
2653
  top: {
3304
- tooltipContainer: 'bottom-[110%] left-1/2 -translate-x-1/2',
2654
+ tooltipContainer: 'bottom-[calc(100%+5px)] left-1/2 -translate-x-1/2',
3305
2655
  triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
3306
2656
  triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
3307
2657
  },
3308
2658
  right: {
3309
- tooltipContainer: 'left-[105%] top-1/2 -translate-y-1/2',
2659
+ tooltipContainer: 'left-[calc(100%+5px)] top-1/2 -translate-y-1/2',
3310
2660
  triangleContainer: '-left-[4px] bottom-0 flex items-center w-auto h-full',
3311
2661
  triangleShape: 'border-t-[8px] border-t-transparent border-r-[5px] border-r-primary-black border-b-[8px] border-b-transparent',
3312
2662
  },
3313
2663
  bottom: {
3314
- tooltipContainer: 'top-[110%] left-1/2 -translate-x-1/2',
2664
+ tooltipContainer: 'top-[calc(100%+5px)] left-1/2 -translate-x-1/2',
3315
2665
  triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
3316
2666
  triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
3317
2667
  },
3318
2668
  left: {
3319
- tooltipContainer: 'right-[105%] top-1/2 -translate-y-1/2',
2669
+ tooltipContainer: 'right-[calc(100%+5px)] top-1/2 -translate-y-1/2',
3320
2670
  triangleContainer: '-right-[4px] bottom-0 flex items-center w-auto h-full',
3321
2671
  triangleShape: 'border-t-[8px] border-t-transparent border-l-[5px] border-l-primary-black border-b-[8px] border-b-transparent',
3322
2672
  },
2673
+ 'top-right': {
2674
+ tooltipContainer: 'bottom-[calc(100%+5px)] right-0',
2675
+ triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
2676
+ triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
2677
+ },
2678
+ 'top-left': {
2679
+ tooltipContainer: 'bottom-[calc(100%+5px)] left-0',
2680
+ triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
2681
+ triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
2682
+ },
2683
+ 'bottom-right': {
2684
+ tooltipContainer: 'top-[calc(100%+5px)] right-0',
2685
+ triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
2686
+ triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
2687
+ },
2688
+ 'bottom-left': {
2689
+ tooltipContainer: 'top-[calc(100%+5px)] left-0',
2690
+ triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
2691
+ triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
2692
+ },
3323
2693
  };
3324
2694
 
3325
2695
  function Tooltip(props) {
3326
- var children = props.children, content = props.content, delay = props.delay, _a = props.direction, direction = _a === void 0 ? 'top' : _a;
2696
+ var children = props.children, content = props.content, delay = props.delay, _a = props.direction, direction = _a === void 0 ? 'top' : _a, _b = props.maxWidth, maxWidth = _b === void 0 ? '300px' : _b;
3327
2697
  var timeout;
3328
- var _b = React.useState(false), active = _b[0], setActive = _b[1];
2698
+ var _c = React.useState(false), active = _c[0], setActive = _c[1];
3329
2699
  var showTip = function () {
3330
2700
  timeout = setTimeout(function () {
3331
2701
  setActive(true);
@@ -3335,26 +2705,29 @@ function Tooltip(props) {
3335
2705
  clearInterval(timeout);
3336
2706
  setActive(false);
3337
2707
  };
3338
- var _c = classConfig[direction], tooltipContainer = _c.tooltipContainer, triangleContainer = _c.triangleContainer, triangleShape = _c.triangleShape;
3339
- return (React.createElement("div", { className: "Tooltip-Wrapper relative block w-fit h-fit", onMouseEnter: showTip, onMouseLeave: hideTip },
2708
+ var _d = classConfig[direction], tooltipContainer = _d.tooltipContainer; _d.triangleContainer; _d.triangleShape;
2709
+ return (React.createElement("div", { className: "Tooltip-Wrapper relative flex flex-col w-full h-fit", onMouseEnter: showTip, onMouseLeave: hideTip },
3340
2710
  children,
3341
- active && (React.createElement("div", { className: "Tooltip-Tip absolute px-[7px] py-[4px] text-bia-sm bg-primary-black text-primary-white z-50 whitespace-nowrap rounded-[4px] ".concat(tooltipContainer) },
3342
- content,
3343
- React.createElement("div", { className: "absolute ".concat(triangleContainer) },
3344
- React.createElement("div", { className: "w-0 h-0 ".concat(triangleShape) }))))));
2711
+ active && (React.createElement("div", { className: "Tooltip absolute px-[7px] py-[4px] text-size-sm bg-primary-black text-primary-white z-50 whitespace-nowrap rounded-[4px] ".concat(tooltipContainer), style: { maxWidth: maxWidth } },
2712
+ React.createElement("p", { className: " whitespace-pre-wrap break-words" }, content)))));
3345
2713
  }
3346
2714
  Tooltip.defaultProps = {
3347
2715
  delay: 400,
3348
2716
  direction: 'top',
2717
+ maxWidth: '300px',
3349
2718
  };
3350
2719
  Tooltip.defaultProps = {};
3351
2720
 
3352
2721
  function ScrollbarSimulation() {
3353
- return (React.createElement("div", { className: "w-64 aspect-square overflow-y-auto p-5 text-justify" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin porta ac augue ac porta. Nunc ac pretium odio. Integer auctor viverra malesuada. Nullam id consectetur orci. Praesent lobortis enim fermentum lacus convallis, vitae vestibulum lorem accumsan. Donec ac magna tristique, fermentum nulla at, faucibus magna. Nulla facilisi. Ut vehicula pulvinar nulla vitae suscipit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Vivamus pulvinar, dolor a fringilla eleifend, metus arcu condimentum nisl, ut ultricies massa elit nec urna. Nam aliquam vestibulum ullamcorper. Aliquam ac ex sapien. Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus."));
2722
+ return (React.createElement("div", { className: "flex gap-5" },
2723
+ React.createElement("div", { className: "w-64 aspect-square overflow-y-auto p-5 text-justify" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin porta ac augue ac porta. Nunc ac pretium odio. Integer auctor viverra malesuada. Nullam id consectetur orci. Praesent lobortis enim fermentum lacus convallis, vitae vestibulum lorem accumsan. Donec ac magna tristique, fermentum nulla at, faucibus magna. Nulla facilisi. Ut vehicula pulvinar nulla vitae suscipit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Vivamus pulvinar, dolor a fringilla eleifend, metus arcu condimentum nisl, ut ultricies massa elit nec urna. Nam aliquam vestibulum ullamcorper. Aliquam ac ex sapien. Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus."),
2724
+ React.createElement("div", { className: "h-64 aspect-square overflow-x-auto overflow-y-clip p-5 text-justify" }, "Loremipsumdolorsitamet,consecteturadipiscingelit.Proinportaac augueacporta.Nuncacpretiumodio.Integerauctorviverramalesuada. Nullamidconsecteturorci.Praesentlobortisenimfermentumlacus convallis,vitaevestibulumloremaccumsan.Donecacmagnatristique, fermentumnullaat,faucibusmagna.Nullafacilisi.Utvehiculapulvinar nullavitaesuscipit.Vestibulumanteipsumprimisinfaucibusorci luctusetultricesposuerecubiliacurae;Vivamuspulvinar,dolora fringillaeleifend,metusarcucondimentumnisl,utultriciesmassaelit necurna.Namaliquamvestibulumullamcorper.Aliquamacexsapien.Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus.")));
3354
2725
  }
3355
2726
 
3356
2727
  function HiddenScrollbarSimulation() {
3357
- return (React.createElement("div", { className: "w-64 aspect-square overflow-y-auto p-5 scrollbar-hidden text-justify" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin porta ac augue ac porta. Nunc ac pretium odio. Integer auctor viverra malesuada. Nullam id consectetur orci. Praesent lobortis enim fermentum lacus convallis, vitae vestibulum lorem accumsan. Donec ac magna tristique, fermentum nulla at, faucibus magna. Nulla facilisi. Ut vehicula pulvinar nulla vitae suscipit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Vivamus pulvinar, dolor a fringilla eleifend, metus arcu condimentum nisl, ut ultricies massa elit nec urna. Nam aliquam vestibulum ullamcorper. Aliquam ac ex sapien. Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus."));
2728
+ return (React.createElement("div", { className: "flex gap-5" },
2729
+ React.createElement("div", { className: "w-64 aspect-square overflow-y-auto p-5 scrollbar-hidden text-justify" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin porta ac augue ac porta. Nunc ac pretium odio. Integer auctor viverra malesuada. Nullam id consectetur orci. Praesent lobortis enim fermentum lacus convallis, vitae vestibulum lorem accumsan. Donec ac magna tristique, fermentum nulla at, faucibus magna. Nulla facilisi. Ut vehicula pulvinar nulla vitae suscipit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Vivamus pulvinar, dolor a fringilla eleifend, metus arcu condimentum nisl, ut ultricies massa elit nec urna. Nam aliquam vestibulum ullamcorper. Aliquam ac ex sapien. Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus."),
2730
+ React.createElement("div", { className: "h-64 aspect-square overflow-x-auto overflow-y-clip p-5 scrollbar-hidden text-justify" }, "Loremipsumdolorsitamet,consecteturadipiscingelit.Proinportaac augueacporta.Nuncacpretiumodio.Integerauctorviverramalesuada. Nullamidconsecteturorci.Praesentlobortisenimfermentumlacus convallis,vitaevestibulumloremaccumsan.Donecacmagnatristique, fermentumnullaat,faucibusmagna.Nullafacilisi.Utvehiculapulvinar nullavitaesuscipit.Vestibulumanteipsumprimisinfaucibusorci luctusetultricesposuerecubiliacurae;Vivamuspulvinar,dolora fringillaeleifend,metusarcucondimentumnisl,utultriciesmassaelit necurna.Namaliquamvestibulumullamcorper.Aliquamacexsapien.Nam ininterdummetus.Crasfringillaestnisl,utpharetrasapienplaceratnon. Sedfinibuselementumipsumidinterdum.Proincondimentumconsequat tortor,acaliquamurna.Donectinciduntnunceuesttristiquealiquam. Inaenimsitametturpissodalescursus.Donecinhendreritodio. Vestibulumpretium,lectusnecvehiculaiaculis,velitnisllaoreet enim,egetiaculisnibhnequeetrisus.Morbialiquammalesuadamiin rhoncus.")));
3358
2731
  }
3359
2732
 
3360
2733
  exports.Accordions = Accordions;
@@ -3391,6 +2764,7 @@ exports.SelectInputSimulation = SelectInputSimulation;
3391
2764
  exports.Slider = Slider;
3392
2765
  exports.Spinner = Spinner;
3393
2766
  exports.Tab = Tab;
2767
+ exports.TabMenu = TabMenu;
3394
2768
  exports.Table = Table;
3395
2769
  exports.TableBody = TableBody;
3396
2770
  exports.TableCol = TableCol;