bianic-ui 1.0.0-beta.8 → 1.1.0-beta.2

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 (91) hide show
  1. package/dist/cjs/index.js +382 -931
  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/cjs/types/stories/{Scrollbar/Scrollbar.stories.d.ts → 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/cjs/types/stories/{Tooltip.stories.d.ts → Tooltip/Tooltip.stories.d.ts} +2 -1
  23. package/dist/cjs/types/utility/helper.d.ts +3 -0
  24. package/dist/esm/index.js +382 -932
  25. package/dist/esm/lib.css +1 -1
  26. package/dist/esm/types/components/Alert/Alert.d.ts +11 -6
  27. package/dist/esm/types/components/Button/configs.d.ts +0 -6
  28. package/dist/esm/types/components/Button/index.d.ts +5 -1
  29. package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +3 -1
  30. package/dist/esm/types/components/Forms/SelectInput/ObjectOptionItem.d.ts +7 -0
  31. package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +3 -4
  32. package/dist/esm/types/components/Forms/SelectInput/Simulation.d.ts +3 -1
  33. package/dist/esm/types/components/Modal/Modal.d.ts +2 -1
  34. package/dist/esm/types/components/TabMenu/TabMenu.d.ts +10 -0
  35. package/dist/esm/types/components/TabMenu/configs.d.ts +27 -0
  36. package/dist/esm/types/components/TabMenu/index.d.ts +1 -0
  37. package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  38. package/dist/esm/types/components/TagLabel/configs.d.ts +40 -651
  39. package/dist/esm/types/components/TagLabel/index.d.ts +21 -7
  40. package/dist/esm/types/components/Tooltip/configs.d.ts +20 -0
  41. package/dist/esm/types/components/Tooltip/index.d.ts +4 -1
  42. package/dist/esm/types/components/index.d.ts +1 -0
  43. package/dist/esm/types/stories/{TagLabel.stories.d.ts → Form/SelectInput/ObjectItemSelectInput.Simulation.stories.d.ts} +3 -5
  44. package/dist/esm/types/stories/TabMenu/TabMenu.stories.d.ts +14 -0
  45. package/dist/esm/types/stories/{Tooltip.stories.d.ts → Tooltip/Tooltip.stories.d.ts} +2 -1
  46. package/dist/esm/types/utility/helper.d.ts +3 -0
  47. package/dist/index.d.ts +60 -23
  48. package/package.json +5 -2
  49. package/src/style/color.css +12 -0
  50. package/src/style/scrollbar.css +10 -1
  51. package/tailwind.config.js +21 -0
  52. package/dist/cjs/types/components/Modal/config.d.ts +0 -59
  53. package/dist/cjs/types/components/Tab/config.d.ts +0 -33
  54. package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +0 -11
  55. package/dist/cjs/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
  56. package/dist/cjs/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
  57. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
  58. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
  59. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
  60. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
  61. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
  62. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
  63. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
  64. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
  65. package/dist/cjs/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
  66. package/dist/cjs/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
  67. package/dist/cjs/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
  68. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
  69. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
  70. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
  71. package/dist/cjs/types/stories/TagLabel.stories.d.ts +0 -16
  72. package/dist/esm/types/components/Modal/config.d.ts +0 -59
  73. package/dist/esm/types/components/Tab/config.d.ts +0 -33
  74. package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +0 -11
  75. package/dist/esm/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
  76. package/dist/esm/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
  77. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
  78. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
  79. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
  80. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
  81. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
  82. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
  83. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
  84. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
  85. package/dist/esm/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
  86. package/dist/esm/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
  87. package/dist/esm/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
  88. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
  89. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
  90. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
  91. package/dist/esm/types/stories/Scrollbar/Scrollbar.stories.d.ts +0 -13
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
  },
@@ -246,38 +246,80 @@ var textClasses = {
246
246
  'tiny-text-bold': 'text-size-tiny font-bold font-["Arial"]',
247
247
  };
248
248
 
249
+ var childrenElement = function (element) {
250
+ if (element === undefined)
251
+ return '';
252
+ // if (typeof element === 'object') return '';
253
+ return element;
254
+ };
255
+ var validUnion = function (value, union) {
256
+ return union.includes(value) ? value : union[0];
257
+ };
258
+
259
+ var variantUnion$2 = [
260
+ 'normal-text',
261
+ 'large-text',
262
+ 'large-text-semibold',
263
+ 'medium-text',
264
+ 'medium-text-semibold',
265
+ 'caption',
266
+ 'caption-semibold',
267
+ 'normal-text-semilight',
268
+ 'normal-text-semibold',
269
+ 'normal-text-bold',
270
+ 'small-text',
271
+ 'small-text-semibold',
272
+ 'tiny-text',
273
+ 'tiny-text-bold',
274
+ 'script',
275
+ 'link',
276
+ ];
249
277
  function Text(_a) {
250
278
  var _b = _a.extended, extended = _b === void 0 ? '' : _b, variant = _a.variant, children = _a.children;
251
- return (React.createElement("span", { className: "text ".concat(textClasses[variant], " ").concat(extended) }, children));
279
+ var validatedVariant = validUnion(variant, variantUnion$2);
280
+ return (React.createElement("span", { className: "text ".concat(textClasses[validatedVariant], " ").concat(extended) }, childrenElement(children)));
252
281
  }
253
282
  Text.defaultProps = {
254
283
  extended: '',
255
284
  };
256
285
 
257
286
  function Alert(_a) {
258
- var title = _a.title, caption = _a.caption, variant = _a.variant, visible = _a.visible, setVisible = _a.setVisible, visibleIcon = _a.visibleIcon, visibleClose = _a.visibleClose;
259
- 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'];
260
296
  var IconX = AlertConfig[visibleClose ? 'true' : 'false'];
261
297
  var handleCloseAlert = function () {
262
298
  setVisible(false);
263
299
  };
264
- return (visible && (React.createElement("div", { className: "flex flex-col w-full" },
265
- 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]") },
266
302
  React.createElement("div", { className: "flex w-full" },
267
- React.createElement("div", { className: "accent flex items-center py-[10px]" },
268
- React.createElement("div", { className: "left-0 w-[3px] h-full ".concat(AlertConfig[variant].vBar, " rounded-r-[10px]") })),
269
- React.createElement("div", { className: "content w-full flex py-[10px] pe-[10px] items-start" },
270
- 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") },
271
307
  React.createElement(IconComponent, { size: 20, color: "white" })))),
272
- React.createElement("div", { className: "flex w-full justify-between" },
273
- 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]') },
274
310
  React.createElement("div", { className: "flex justify-between" },
275
311
  React.createElement(Text, { variant: "normal-text-semibold" }, title)),
276
312
  React.createElement(Text, { variant: "small-text" }, caption)),
277
- 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 }))))))))));
278
315
  }
279
316
  Alert.defaultProps = {
280
- title: null,
317
+ title: '',
318
+ variant: 'base',
319
+ visible: true,
320
+ setVisible: function () { },
321
+ visibleIcon: true,
322
+ visibleClose: false,
281
323
  };
282
324
 
283
325
  /******************************************************************************
@@ -335,7 +377,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
335
377
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
336
378
  };
337
379
 
338
- var radiusConfig = {
380
+ var radiusConfig$1 = {
339
381
  default: {
340
382
  sm: 'rounded-radius-sm focus-visible:rounded-radius-sm',
341
383
  md: 'rounded-radius-md focus-visible:rounded-radius-md',
@@ -349,20 +391,20 @@ var radiusConfig = {
349
391
  tn: 'rounded-radius-full focus-visible:rounded-radius-full',
350
392
  },
351
393
  };
352
- var sizeConfig$a = {
353
- lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
354
- md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
355
- sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
356
- tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
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',
357
399
  };
358
- var iconOnlySizeConfig = {
400
+ var iconOnlySizeConfig$1 = {
359
401
  lg: 'p-[13px] flex items-center justify-center gap-[10px]',
360
402
  md: ' p-[11px] flex items-center justify-center gap-[5px]',
361
403
  sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
362
404
  tn: 'p-[4px] flex items-center justify-center gap-[3px]',
363
405
  };
364
406
  var shadow = 'shadow-[0px_6px_18px_1px_rgba(188,199,237,0.5)] disabled:shadow-none active:shadow-none';
365
- var variantConfig$1 = {
407
+ var variantConfig$2 = {
366
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),
367
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),
368
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),
@@ -380,12 +422,38 @@ var variantConfig$1 = {
380
422
  'danger-outlined': "\n text-bia-red \n border-solid \n border \n border-bia-red \n bg-primary-white \n active:text-bia-red-dark-10 \n active:border-bia-red-active \n active:bg-bia-red-light-90 \n active:border-bia-red-disabled \n hover:text-bia-red-hover \n hover:border-bia-red-hover \n disabled:cursor-not-allowed \n disabled:border-[1px]\n disabled:border-bia-red-light-50 \n disabled:text-bia-red-light-50\n focus-visible:outline-none \n focus-visible:outline-offset-0 \n focus-visible:outline-[3px] \n focus-visible:rounded-md \n focus-visible:outline-bia-red-light-50 \n focus-visible:border-none \n \n ",
381
423
  };
382
424
 
425
+ var variantUnion$1 = [
426
+ 'default',
427
+ 'danger',
428
+ 'info',
429
+ 'link',
430
+ 'primary',
431
+ 'subtle',
432
+ 'subtle-link',
433
+ 'success',
434
+ 'warning',
435
+ 'default-outlined',
436
+ 'danger-outlined',
437
+ 'info-outlined',
438
+ 'primary-outlined',
439
+ 'success-outlined',
440
+ 'warning-outlined',
441
+ ];
442
+ var radiusUnion = ['default', 'full-rounded'];
443
+ var sizeUnion$4 = ['md', 'lg', 'sm', 'tn'];
383
444
  function Button(_a) {
384
- var label = _a.label, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.radius, radius = _d === void 0 ? 'default' : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, _f = _a.variant, variant = _f === void 0 ? 'default' : _f, _g = _a.iconLeft, iconLeft = _g === void 0 ? null : _g, _h = _a.iconRight, iconRight = _h === void 0 ? null : _h, props = __rest(_a, ["label", "className", "disabled", "radius", "size", "variant", "iconLeft", "iconRight"]);
385
- return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center ".concat(variantConfig$1[variant], " ").concat(label ? sizeConfig$a[size] : iconOnlySizeConfig[size], " ").concat(radiusConfig[radius][size], " ").concat(className), disabled: disabled }, props),
386
- iconLeft,
387
- label,
388
- 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"]);
446
+ var validatedVariant = validUnion(variant, variantUnion$1);
447
+ var validatedSize = validUnion(size, sizeUnion$4);
448
+ var validatedRadius = validUnion(radius, radiusUnion);
449
+ var sizeClass = label
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),
455
+ childrenElement(label),
456
+ childrenElement(iconRight || right)));
389
457
  }
390
458
  Button.defaultProps = {
391
459
  label: null,
@@ -396,6 +464,8 @@ Button.defaultProps = {
396
464
  variant: 'default',
397
465
  iconLeft: null,
398
466
  iconRight: null,
467
+ left: null,
468
+ right: null,
399
469
  };
400
470
 
401
471
  var AvatarConfig = {
@@ -495,7 +565,7 @@ Badge.defaultProps = {
495
565
  color: undefined,
496
566
  };
497
567
 
498
- var variantConfig = {
568
+ var variantConfig$1 = {
499
569
  black: {
500
570
  bg: 'bg-primary-black',
501
571
  active: 'active:bg-bia-coolgrey-dark-30 active:rounded-sm',
@@ -531,11 +601,11 @@ var variantConfig = {
531
601
  function Banner(_a) {
532
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;
533
603
  if (open) {
534
- return (React.createElement("div", { className: "w-full h-[42px] py-[22px] text-size-base font-semibold flex justify-center items-center text-white relative ".concat(variantConfig[variant].bg) },
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) },
535
605
  React.createElement("div", { className: "w-full flex justify-center items-center gap-[10px]" },
536
606
  React.createElement("div", { className: "font-semibold font-segoe text-[14px] leading-[21px]" }, children),
537
- React.createElement("div", { className: "flex items-center justify-center" }, closeable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig[variant].focus), type: "button", onClick: function () { return onClose(false); } },
538
- 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) })))))));
539
609
  }
540
610
  }
541
611
  Banner.defaultProps = {
@@ -1421,7 +1491,7 @@ Divider.defaultProps = {
1421
1491
  classname: '',
1422
1492
  };
1423
1493
 
1424
- var sizeConfig$9 = {
1494
+ var sizeConfig$a = {
1425
1495
  md: {
1426
1496
  fieldSize: 'text-size-base p-2.5 font-[350] h-10',
1427
1497
  iconPosition: 'right-[10px]',
@@ -1455,7 +1525,7 @@ var styleConfig = {
1455
1525
  function ValidationIcon(_a) {
1456
1526
  var isValid = _a.isValid, iconSize = _a.iconSize;
1457
1527
  if (isValid) {
1458
- return (React.createElement(TbCheck$1, { className: "text-bia-green", style: { fontSize: iconSize } }));
1528
+ return (React.createElement(TbCheck, { className: "text-bia-green", style: { fontSize: iconSize } }));
1459
1529
  }
1460
1530
  return React.createElement(TbX, { className: "text-bia-red", style: { fontSize: iconSize } });
1461
1531
  }
@@ -1476,7 +1546,7 @@ function TextInput(_a) {
1476
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;
1477
1547
  var _m = React.useState(false), isShow = _m[0], setIsShow = _m[1];
1478
1548
  var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
1479
- 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;
1480
1550
  var typeVariant = variant;
1481
1551
  if (variant === 'password')
1482
1552
  typeVariant = isShow ? 'text' : 'password';
@@ -1488,9 +1558,9 @@ function TextInput(_a) {
1488
1558
  descColor = 'text-bia-red';
1489
1559
  var bottomBorderColor = 'hover:border-b-bia-blue focus:border-b-bia-blue';
1490
1560
  if (!disabled && isExistValidation && isValid)
1491
- bottomBorderColor = 'border-b-bia-green';
1561
+ bottomBorderColor = 'hover:border-b-bia-green focus:border-b-bia-green';
1492
1562
  if (!disabled && isExistValidation && !isValid)
1493
- bottomBorderColor = 'border-b-bia-red';
1563
+ bottomBorderColor = 'hover:border-b-bia-red focus:border-b-bia-red';
1494
1564
  var iconElement = null;
1495
1565
  if (!disabled && isExistValidation)
1496
1566
  iconElement = React.createElement(ValidationIcon, { isValid: isValid, iconSize: iconSize });
@@ -1499,14 +1569,14 @@ function TextInput(_a) {
1499
1569
  if (variant === 'password') {
1500
1570
  iconElement = (React.createElement(PasswordIcon, { isShow: isShow, showHandler: setIsShow, iconSize: iconSize, disabled: disabled }));
1501
1571
  }
1502
- 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" },
1503
1573
  React.createElement("label", { htmlFor: id, className: "label text-xs font-semibold" },
1504
1574
  label,
1505
1575
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1506
- React.createElement("div", { className: "w-full relative" },
1507
- React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active read-only:border-bia-grey-light-50 read-only:pointer-events-none w-full border border-bia-grey-dark-10 disabled:border-bia-grey-dark-10 focus:rounded-b-none hover:rounded-b-none focus-visible:outline-none rounded ".concat(fieldStyle, " ").concat(fieldSize, " ").concat(bottomBorderColor), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); } }),
1508
- React.createElement("div", { className: "absolute inset-y-0 pl-3 flex items-center ".concat(iconStyle, " ").concat(iconPosition) }, iconElement)),
1509
- 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))));
1510
1580
  }
1511
1581
  TextInput.defaultProps = {
1512
1582
  descText: '',
@@ -1533,7 +1603,7 @@ TextInputSimulation.defaultProps = {
1533
1603
  };
1534
1604
 
1535
1605
  // Desc: Radio button size configuration
1536
- var sizeConfig$8 = {
1606
+ var sizeConfig$9 = {
1537
1607
  md: {
1538
1608
  checkSize: 'w-[22px] h-[22px]',
1539
1609
  labelSize: 'text-size-base',
@@ -1544,14 +1614,16 @@ var sizeConfig$8 = {
1544
1614
  },
1545
1615
  };
1546
1616
 
1617
+ var sizeUnion$3 = ['md', 'sm'];
1547
1618
  function Radio(_a) {
1548
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;
1549
- var _f = sizeConfig$8[size], checkSize = _f.checkSize, labelSize = _f.labelSize;
1620
+ var validatedSize = validUnion(size, sizeUnion$3);
1621
+ var _f = sizeConfig$9[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1550
1622
  return (React.createElement("div", { className: "flex items-center" },
1551
1623
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1552
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 }),
1553
1625
  React.createElement("div", { className: "check-icon flex text-bia-grey group justify-center border-2 border-primary-white peer-disabled:bg-bia-grey-light-80 peer-disabled:border-transparent peer-disabled:peer-checked:border-primary-white peer-checked:peer-disabled:bg-bia-blue-disabled peer-checked:hover:border-bia-blue-hover peer-checked:bg-bia-blue peer-checked:peer-hover:bg-bia-blue-hover outline-2 peer-checked:hover:outline-bia-blue-hover outline-bia-blue rounded-full w-full h-full z-1" })),
1554
- React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
1626
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, childrenElement(label))));
1555
1627
  }
1556
1628
  Radio.defaultProps = {
1557
1629
  label: '',
@@ -1562,7 +1634,7 @@ Radio.defaultProps = {
1562
1634
  checked: false,
1563
1635
  };
1564
1636
 
1565
- var sizeConfig$7 = {
1637
+ var sizeConfig$8 = {
1566
1638
  md: {
1567
1639
  inputClass: 'text-size-base font-[350] min-h-10',
1568
1640
  },
@@ -1574,7 +1646,7 @@ var sizeConfig$7 = {
1574
1646
  function TextArea(_a) {
1575
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"]);
1576
1648
  var inputRow = rows !== null && rows !== void 0 ? rows : 4;
1577
- var inputClass = sizeConfig$7[size].inputClass;
1649
+ var inputClass = sizeConfig$8[size].inputClass;
1578
1650
  return (React.createElement("div", { className: "field-group w-full flex flex-col" },
1579
1651
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1580
1652
  label,
@@ -1594,7 +1666,7 @@ TextArea.defaultProps = {
1594
1666
  rows: 4,
1595
1667
  };
1596
1668
 
1597
- var sizeConfig$6 = {
1669
+ var sizeConfig$7 = {
1598
1670
  md: {
1599
1671
  checkClass: 'w-[22px] h-[22px]',
1600
1672
  labelClass: 'text-size-base font-[350]',
@@ -1605,16 +1677,17 @@ var sizeConfig$6 = {
1605
1677
  },
1606
1678
  };
1607
1679
 
1680
+ var sizeUnion$2 = ['md', 'sm'];
1608
1681
  function Checkbox(_a) {
1609
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;
1610
- var _f = sizeConfig$6[size === 'sm' || size === 'md' ? size : 'md'], checkClass = _f.checkClass, labelClass = _f.labelClass;
1683
+ var _f = sizeConfig$7[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
1611
1684
  return (React.createElement("div", { className: "flex items-center" },
1612
1685
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
1613
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 }),
1614
1687
  React.createElement("div", { className: "check-icon flex text-bia-grey group justify-center peer-checked:border-2 peer-checked:border-primary-white peer-checked:hover:border-bia-blue-hover peer-checked:bg-bia-blue peer-checked:peer-hover:bg-bia-blue-hover outline-2 peer-checked:hover:outline-bia-blue-hover outline-bia-blue peer-disabled:bg-bia-grey-light-80 peer-disabled:peer-checked:outline-bia-blue-light-50 peer-disabled:peer-checked:bg-bia-blue-light-50 rounded-full w-full h-full z-1" },
1615
1688
  React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: " fill-bia-grey-dark-10 peer-checked:group-[]:fill-primary-white peer-checked:peer-hover:group-[]:fill-primary-white peer-hover:group-[]:fill-bia-blue-hover peer-disabled:group-[]:fill-bia-grey-dark-10 peer-disabled:peer-checked:group-[]:fill-primary-white", viewBox: "-5 -7 24 24", width: "24" },
1616
1689
  React.createElement("path", { d: "M5.486 9.73a.997.997 0 0 1-.707-.292L.537 5.195A1 1 0 1 1 1.95 3.78l3.535 3.535L11.85.952a1 1 0 0 1 1.415 1.414L6.193 9.438a.997.997 0 0 1-.707.292z" })))),
1617
- React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
1690
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, childrenElement(label))));
1618
1691
  }
1619
1692
  Checkbox.defaultProps = {
1620
1693
  disabled: false,
@@ -1660,18 +1733,18 @@ CheckboxSimulation.defaultProps = {
1660
1733
  size: 'md',
1661
1734
  };
1662
1735
 
1663
- var sizeConfig$5 = {
1736
+ var sizeConfig$6 = {
1664
1737
  md: {
1665
1738
  searchSize: 'text-size-base p-2.5 font-[350] h-10',
1666
- iconSize: 'right-[10px]',
1739
+ iconSize: 'right-[10px] text-[18px]',
1667
1740
  },
1668
1741
  sm: {
1669
1742
  searchSize: 'text-size-sm p-1.5 font-normal h-[30px]',
1670
- iconSize: 'right-[7px]',
1743
+ iconSize: 'right-[7px] text-[14px]',
1671
1744
  },
1672
1745
  };
1673
1746
 
1674
- var sizeConfig$4 = {
1747
+ var sizeConfig$5 = {
1675
1748
  md: {
1676
1749
  container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
1677
1750
  item: 'min-h-[34px] p-2.5',
@@ -1684,18 +1757,20 @@ var sizeConfig$4 = {
1684
1757
 
1685
1758
  /* eslint-disable @typescript-eslint/no-explicit-any */
1686
1759
  function DefaultDropdownItem(_a) {
1687
- var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, isSelected = _a.isSelected, options = _a.options;
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;
1688
1761
  var _f = React.useState(false), isHovered = _f[0], setisHovered = _f[1];
1689
1762
  var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
1690
1763
  var isOpenDropdown = isHovered || isHoveredSubMenu;
1691
1764
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
1692
- var _h = sizeConfig$4[size], containerClass = _h.container, item = _h.item;
1765
+ var _h = sizeConfig$5[size], containerClass = _h.container, item = _h.item;
1693
1766
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
1694
1767
  var isExistSubDropdown = options.length !== 0;
1695
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 () { } },
1696
- React.createElement("div", { className: "hover:bg-bia-blue-light-90 active:bg-bia-blue-light-80 select-none ".concat(itemClass) },
1697
- label,
1698
- 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)),
1699
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 })); })))));
1700
1775
  }
1701
1776
  DefaultDropdownItem.defaultProps = {
@@ -1704,13 +1779,15 @@ DefaultDropdownItem.defaultProps = {
1704
1779
  size: 'md',
1705
1780
  options: [],
1706
1781
  isSelected: false,
1782
+ caption: '',
1707
1783
  };
1708
1784
 
1709
- /* eslint-disable @typescript-eslint/no-explicit-any */
1785
+ var sizeUnion$1 = ['md', 'sm'];
1710
1786
  function SelectInput(_a) {
1711
- var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, label = _a.label, options = _a.options, _d = _a.required, required = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected;
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"]);
1712
1788
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1713
- var _f = sizeConfig$5[size], searchSize = _f.searchSize, iconSize = _f.iconSize;
1789
+ var validatedSize = validUnion(size, sizeUnion$1);
1790
+ var _f = sizeConfig$6[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1714
1791
  var inputRef = React.useRef(null);
1715
1792
  var handleOutsideClick = function (e) {
1716
1793
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1723,21 +1800,27 @@ function SelectInput(_a) {
1723
1800
  document.removeEventListener('mousedown', handleOutsideClick);
1724
1801
  };
1725
1802
  });
1726
- return (React.createElement("div", { className: "field-group w-full flex flex-col", ref: inputRef },
1727
- React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1728
- label,
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" },
1809
+ childrenElement(label),
1729
1810
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1730
- React.createElement("div", { className: "group w-full relative" },
1731
- React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 pe-8 w-full border border-bia-grey-dark-10 enabled:hover:border-b-bia-blue enabled:hover:rounded-b-none enabled:focus:border-b-bia-blue enabled:focus:rounded-b-none focus-visible:outline-none cursor-pointer rounded disabled:text-bia-coolgrey peer ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selected === null || selected === void 0 ? void 0 : selected.label, readOnly: true, id: id, disabled: disabled }),
1732
- React.createElement("div", { className: "absolute inset-y-0 pl-3 flex items-center pointer-events-none text-bia-coolgrey peer-disabled:text-bia-coolgrey-light-50 ".concat(iconSize) }, isOpen ? (React.createElement(TbChevronUp, { className: "" })) : (React.createElement(TbChevronDown, { className: "" }))),
1733
- isOpen && (React.createElement("div", { className: "absolute border w-full bg-primary-white border-bia-grey-dark-10 rounded-b-md shadow-lg z-10" }, options.map(function (option) {
1734
- var isSelected = selected && selected.id && option.id === selected.id;
1735
- return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, 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 () {
1736
1819
  setSelected(option);
1737
1820
  setIsOpen(false);
1738
1821
  } }));
1739
1822
  })))),
1740
- 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)));
1741
1824
  }
1742
1825
  SelectInput.defaultProps = {
1743
1826
  descText: '',
@@ -1751,37 +1834,12 @@ SelectInput.defaultProps = {
1751
1834
  };
1752
1835
 
1753
1836
  function SelectInputSimulation(_a) {
1754
- var _b = _a.size, size = _b === void 0 ? 'md' : _b;
1755
- var _c = React.useState({
1756
- id: 1,
1757
- label: 'Mohammed Salah',
1758
- }), selected = _c[0], setSelected = _c[1];
1759
- var optionData = [
1760
- {
1761
- id: 1,
1762
- label: 'Mohammed Salah',
1763
- },
1764
- {
1765
- id: 2,
1766
- label: 'Cristiono Ronaldo',
1767
- },
1768
- {
1769
- id: 3,
1770
- label: 'Vinicius Junior',
1771
- },
1772
- {
1773
- id: 4,
1774
- label: 'Lionel Messi',
1775
- },
1776
- {
1777
- id: 5,
1778
- label: 'Ricardo Kaka',
1779
- },
1780
- ];
1781
- 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" }));
1782
1840
  }
1783
1841
 
1784
- var sizeConfig$3 = {
1842
+ var sizeConfig$4 = {
1785
1843
  md: {
1786
1844
  iconClass: 'right-[10px]',
1787
1845
  iconSize: '18',
@@ -1800,7 +1858,7 @@ var sizeConfig$3 = {
1800
1858
  function LiveSearch(_a) {
1801
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;
1802
1860
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1803
- 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;
1804
1862
  var inputRef = React.useRef(null);
1805
1863
  var handleOutsideClick = function (e) {
1806
1864
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1846,7 +1904,7 @@ LiveSearch.defaultProps = {
1846
1904
  value: {},
1847
1905
  };
1848
1906
 
1849
- var sizeConfig$2 = {
1907
+ var sizeConfig$3 = {
1850
1908
  md: {
1851
1909
  containerSize: 'w-[42px] h-[22px]',
1852
1910
  checkSize: 'p-2',
@@ -1861,7 +1919,7 @@ var sizeConfig$2 = {
1861
1919
 
1862
1920
  function Toggle(_a) {
1863
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;
1864
- 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;
1865
1923
  return (React.createElement("div", { className: "flex items-center" },
1866
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 },
1867
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" }),
@@ -1887,7 +1945,7 @@ var roundedConfig = {
1887
1945
  sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1888
1946
  tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1889
1947
  };
1890
- var sizeConfig$1 = {
1948
+ var sizeConfig$2 = {
1891
1949
  lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1892
1950
  md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1893
1951
  sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
@@ -1897,7 +1955,7 @@ var sizeConfig$1 = {
1897
1955
  function SegmentButtonItem(_a) {
1898
1956
  var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1899
1957
  var isSelected = selected ? 'selected' : 'notSelected';
1900
- return (React.createElement("button", { type: "button", onClick: onClick, disabled: disabled, className: "focus-visible:z-50 focus-visible:outline focus-visible:-outline-offset-1 focus-visible:outline-[3px] focus-visible:outline-bia-blue-light-50 border-[1px] border-l-0 first:border-l-[1px] border-bia-grey-dark-10 group:last:border-l-0 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-dark-10 disabled:cursor-not-allowed ".concat(isSelectedConfig[isSelected], " ").concat(roundedConfig[size], " ").concat(sizeConfig$1[size]) }, children));
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));
1901
1959
  }
1902
1960
 
1903
1961
  function SegmentButtonGroup(_a) {
@@ -1940,13 +1998,13 @@ function SegmentButtonSimulation(_a) {
1940
1998
  return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
1941
1999
  React.createElement("div", { className: "flex items-center justify-center" },
1942
2000
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
1943
- React.createElement(TbCheck$1, null)),
2001
+ React.createElement(TbCheck, null)),
1944
2002
  content)));
1945
2003
  })));
1946
2004
  }
1947
2005
 
1948
2006
  function Modal(_a) {
1949
- 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"]);
1950
2008
  var modalSize;
1951
2009
  if (size === 'sm') {
1952
2010
  modalSize = 'w-[300px]';
@@ -1968,12 +2026,12 @@ function Modal(_a) {
1968
2026
  if (open) {
1969
2027
  return (
1970
2028
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
1971
- React.createElement("div", { className: "fixed inset-0 flex justify-center items-center bg-bia-black-transparent-75", id: "wrapper", onClick: handleClose },
1972
- 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) },
1973
2031
  React.createElement("div", { className: "flex justify-between" },
1974
- React.createElement("div", { className: " font-humnst777 font-bold text-[18px] leading-[21.85px] text-primary-black w-[260px] text-wrap" }, title),
1975
- React.createElement("button", { type: "button", title: "button", className: "w-[22px] h-[22px] rounded-radius-full flex items-center justify-center bg-bia-grey-light-50 hover:bg-bia-grey-light-30 cursor-pointer", onClick: function () { return onClose(); } },
1976
- 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" }))),
1977
2035
  React.createElement("div", { className: "flex flex-col gap-[20px]" }, rest.children))));
1978
2036
  }
1979
2037
  return null;
@@ -1982,7 +2040,7 @@ Modal.defaultProps = {
1982
2040
  title: null,
1983
2041
  };
1984
2042
 
1985
- var sizeConfig = {
2043
+ var sizeConfig$1 = {
1986
2044
  md: 'w-[38px] h-[40px] text-[14px] font-semibold',
1987
2045
  sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1988
2046
  };
@@ -2032,7 +2090,7 @@ function PaginationBar(_a) {
2032
2090
  };
2033
2091
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2034
2092
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
2035
- showedPages.map(function (page) { return (React.createElement(Button, { key: page, variant: currentPage === page ? 'default' : 'subtle-link', size: "md", type: "button", onClick: function () { return handlePageChange(page); }, className: "cursor-pointer ".concat(sizeConfig[size]), label: page.toString() })); }),
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() })); }),
2036
2094
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2037
2095
  }
2038
2096
 
@@ -2122,7 +2180,7 @@ Popover.defaultProps = {
2122
2180
  var config = {
2123
2181
  success: {
2124
2182
  container: 'border-bia-green',
2125
- content: React.createElement(TbCheck$1, { className: "text-[38px] text-bia-green" }),
2183
+ content: React.createElement(TbCheck, { className: "text-[38px] text-bia-green" }),
2126
2184
  },
2127
2185
  failed: {
2128
2186
  container: 'border-bia-red',
@@ -2318,6 +2376,60 @@ Tab.defaultProps = {
2318
2376
  card: false,
2319
2377
  };
2320
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
+
2321
2433
  var colAlign = {
2322
2434
  middle: 'justify-center',
2323
2435
  right: 'justify-end',
@@ -2410,845 +2522,180 @@ TableDemo.defaultProps = {
2410
2522
  tableSize: 'md',
2411
2523
  };
2412
2524
 
2413
- function TbCheck() {
2414
- return (React.createElement("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2415
- 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" })));
2416
- }
2417
-
2418
- function TbCheckBlack() {
2419
- return (React.createElement("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2420
- 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" })));
2421
- }
2422
-
2423
- function TbCheckBlackSmall() {
2424
- return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2425
- 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" })));
2426
- }
2427
-
2428
- function TbCloseAbleBlack(_a) {
2429
- var color = _a.color;
2430
- return (React.createElement("svg", { width: "18.1", height: "18.1", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2431
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "#DADEEB" }),
2432
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "black", fillOpacity: "0.3" }),
2433
- 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 })));
2434
- }
2435
-
2436
- function TbCheckWhiteSmall() {
2437
- return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2438
- 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" })));
2439
- }
2440
-
2441
- function TbCloseAbleBlackSmall() {
2442
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2443
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
2444
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
2445
- 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" })));
2446
- }
2447
-
2448
- function TbCloseAbleWhiteSmall(_a) {
2449
- var color = _a.color;
2450
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2451
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "white", fillOpacity: "0.5" }),
2452
- 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 })));
2453
- }
2454
-
2455
- function TbCloseAbleGraySmall() {
2456
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2457
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
2458
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
2459
- 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" })));
2460
- }
2461
-
2462
- function TbCloseable(_a) {
2463
- var color = _a.color;
2464
- return (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2465
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "white", fillOpacity: "0.5" }),
2466
- 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 })));
2467
- }
2468
-
2469
- var TagLabelConfig = {
2470
- default: {
2471
- md: {
2472
- iconColor: 'text-white',
2473
- XColor: 'text-bia-coolgrey',
2474
- XcolorV: 'text-primary-black',
2475
- label: {
2476
- bg: 'bg-bia-grey-light-50',
2477
- text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
2478
- padding: 'px-[10px] py-[7px] ',
2479
- radius: 'rounded-[50px]',
2480
- Xicon: '',
2481
- },
2482
- closeable: {
2483
- bg: 'bg-bia-grey-light-50',
2484
- text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
2485
- padding: 'px-[10px] py-[7px] ',
2486
- radius: 'rounded-[50px]',
2487
- Xicon: TbCloseAbleBlack,
2488
- },
2489
- icon: {
2490
- bg: 'bg-bia-grey-light-50',
2491
- text: 'text-[#2F2F2F] text-[18.67px]',
2492
- padding: 'p-[7px] ',
2493
- radius: 'rounded-[50px]',
2494
- Xicon: TbCheckBlack,
2495
- },
2496
- },
2497
- sm: {
2498
- iconColor: 'text-white',
2499
- XColor: 'text-bia-coolgrey',
2500
- XcolorV: 'text-primary-black',
2501
- label: {
2502
- bg: "bg-bia-grey-light-50",
2503
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
2504
- padding: "px-[10px] py-[5px] ",
2505
- radius: "rounded-[12px]",
2506
- Xicon: '',
2507
- },
2508
- closeable: {
2509
- bg: "bg-bia-grey-light-50",
2510
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
2511
- padding: "px-[10px] py-[2px]",
2512
- radius: "rounded-[12px]",
2513
- Xicon: TbCloseAbleBlackSmall,
2514
- },
2515
- icon: {
2516
- bg: "bg-bia-grey-light-50",
2517
- text: "text-[#2F2F2F] text-[13.06px]",
2518
- padding: "p-[4px]",
2519
- radius: "rounded-[12px]",
2520
- Xicon: TbCheckBlackSmall,
2521
- },
2522
- },
2523
- tn: {
2524
- iconColor: 'text-white',
2525
- XColor: 'text-bia-coolgrey',
2526
- XcolorV: 'text-primary-black',
2527
- label: {
2528
- bg: "bg-bia-grey-light-50",
2529
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
2530
- padding: "px-[8px] py-[2px]",
2531
- radius: "rounded-[12px]",
2532
- Xicon: '',
2533
- },
2534
- closeable: {
2535
- bg: "bg-bia-grey-light-50",
2536
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
2537
- padding: "px-[8px] py-[2px]",
2538
- radius: "rounded-[12px]",
2539
- Xicon: TbCloseAbleBlackSmall,
2540
- },
2541
- icon: {
2542
- bg: "bg-bia-grey-light-50",
2543
- text: "text-[#2F2F2F] text-[11.2px]",
2544
- padding: "p-[3px]",
2545
- radius: "rounded-[12px]",
2546
- Xicon: TbCheckBlackSmall,
2547
- },
2548
- },
2549
- },
2550
- blue: {
2551
- md: {
2552
- iconColor: 'text-bia-blue',
2553
- XColor: 'text-bia-blue-light-50',
2554
- XcolorV: 'text-white',
2555
- label: {
2556
- bg: "bg-bia-blue",
2557
- text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
2558
- padding: "px-[10px] py-[7px] ",
2559
- radius: "rounded-[50px]",
2560
- Xicon: '',
2561
- },
2562
- closeable: {
2563
- bg: "bg-bia-blue",
2564
- text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
2565
- padding: "px-[10px] py-[7px] ",
2566
- radius: "rounded-[50px]",
2567
- Xicon: TbCloseable,
2568
- },
2569
- icon: {
2570
- bg: "bg-bia-blue",
2571
- text: "text-[#FFFFFF] text-[18.67px]",
2572
- padding: "p-[7px] ",
2573
- radius: "rounded-[50px]",
2574
- Xicon: TbCheck,
2575
- },
2576
- },
2577
- sm: {
2578
- iconColor: 'text-bia-blue',
2579
- XColor: 'text-white',
2580
- XcolorV: 'text-white',
2581
- label: {
2582
- bg: "bg-bia-blue",
2583
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2584
- padding: "px-[10px] py-[2px]",
2585
- radius: "rounded-[12px]",
2586
- Xicon: '',
2587
- },
2588
- closeable: {
2589
- bg: "bg-bia-blue",
2590
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2591
- padding: "px-[10px] py-[2px] ",
2592
- radius: "rounded-[12px]",
2593
- Xicon: TbCloseAbleWhiteSmall,
2594
- },
2595
- icon: {
2596
- bg: "bg-bia-blue",
2597
- text: "text-[#FFF] text-[13.06px]",
2598
- padding: "p-[4px] ",
2599
- radius: "rounded-[12px]",
2600
- Xicon: TbCheckWhiteSmall,
2601
- },
2602
- },
2603
- tn: {
2604
- iconColor: 'text-bia-blue',
2605
- XColor: 'text-white',
2606
- XcolorV: 'text-white',
2607
- label: {
2608
- bg: "bg-bia-blue",
2609
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2610
- padding: "px-[8px] py-[2px]",
2611
- radius: "rounded-[12px]",
2612
- Xicon: '',
2613
- },
2614
- closeable: {
2615
- bg: "bg-bia-blue",
2616
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2617
- padding: "px-[8px] py-[2px]",
2618
- radius: "rounded-[12px]",
2619
- Xicon: TbCloseAbleWhiteSmall,
2620
- },
2621
- icon: {
2622
- bg: "bg-bia-blue",
2623
- text: "text-[#FFF] text-[13.06px]",
2624
- padding: "p-[3px]",
2625
- radius: "rounded-[12px]",
2626
- Xicon: TbCheckWhiteSmall,
2627
- },
2628
- },
2629
- },
2630
- teal: {
2631
- md: {
2632
- iconColor: 'text-bia-teal',
2633
- XColor: 'text-bia-teal-light-50',
2634
- XcolorV: 'text-white',
2635
- label: {
2636
- bg: "bg-bia-teal",
2637
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2638
- padding: "px-[10px] py-[7px] ",
2639
- radius: "rounded-[50px]",
2640
- Xicon: '',
2641
- },
2642
- closeable: {
2643
- bg: "bg-bia-teal",
2644
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2645
- padding: "px-[10px] py-[7px] ",
2646
- radius: "rounded-[50px]",
2647
- Xicon: TbCloseable,
2648
- },
2649
- icon: {
2650
- bg: "bg-bia-teal",
2651
- text: "text-[#FFF] text-[18.67px]",
2652
- padding: "p-[7px] ",
2653
- radius: "rounded-[50px]",
2654
- Xicon: TbCheck,
2655
- },
2656
- },
2657
- sm: {
2658
- iconColor: 'text-bia-teal',
2659
- XColor: 'text-white',
2660
- XcolorV: 'text-white',
2661
- label: {
2662
- bg: "bg-bia-teal",
2663
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2664
- padding: "px-[10px] py-[2px]",
2665
- radius: "rounded-[12px]",
2666
- Xicon: '',
2667
- },
2668
- closeable: {
2669
- bg: "bg-bia-teal",
2670
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2671
- padding: "px-[10px] py-[2px]",
2672
- radius: "rounded-[12px]",
2673
- Xicon: TbCloseAbleWhiteSmall,
2674
- },
2675
- icon: {
2676
- bg: "bg-bia-teal",
2677
- text: "text-[#FFF] text-[13.06px]",
2678
- padding: "p-[4px]",
2679
- radius: "rounded-[12px]",
2680
- Xicon: TbCheckWhiteSmall,
2681
- },
2682
- },
2683
- tn: {
2684
- iconColor: 'text-bia-teal',
2685
- XColor: 'text-white',
2686
- XcolorV: 'text-white',
2687
- label: {
2688
- bg: "bg-bia-teal",
2689
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2690
- padding: "px-[8px] py-[2px]",
2691
- radius: "rounded-[12px]",
2692
- Xicon: '',
2693
- },
2694
- closeable: {
2695
- bg: "bg-bia-teal",
2696
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2697
- padding: "px-[8px] py-[2px]",
2698
- radius: "rounded-[12px]",
2699
- Xicon: TbCloseAbleWhiteSmall,
2700
- },
2701
- icon: {
2702
- bg: "bg-bia-teal",
2703
- text: "text-[#FFF] text-[11.2px]",
2704
- padding: "p-[3px] ",
2705
- radius: "rounded-[12px]",
2706
- Xicon: TbCheckWhiteSmall,
2707
- },
2708
- },
2709
- },
2710
- green: {
2711
- md: {
2712
- iconColor: 'text-bia-green',
2713
- XColor: 'text-bia-green-light-50',
2714
- XcolorV: 'text-white',
2715
- label: {
2716
- bg: "bg-bia-green",
2717
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2718
- padding: "px-[10px] py-[7px] ",
2719
- radius: "rounded-[50px]",
2720
- Xicon: '',
2721
- },
2722
- closeable: {
2723
- bg: "bg-bia-green",
2724
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2725
- padding: "px-[10px] py-[7px] ",
2726
- radius: "rounded-[50px]",
2727
- Xicon: TbCloseable,
2728
- },
2729
- icon: {
2730
- bg: "bg-bia-green",
2731
- text: "text-[#FFF] text-[18.67px]",
2732
- padding: "p-[7px] ",
2733
- radius: "rounded-[50px]",
2734
- Xicon: TbCheck,
2735
- },
2736
- },
2737
- sm: {
2738
- iconColor: 'text-bia-green',
2739
- XColor: 'text-white',
2740
- XcolorV: 'text-white',
2741
- label: {
2742
- bg: "bg-bia-green",
2743
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2744
- padding: "px-[10px] py-[2px]",
2745
- radius: "rounded-[12px]",
2746
- Xicon: '',
2747
- },
2748
- closeable: {
2749
- bg: "bg-bia-green",
2750
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2751
- padding: "px-[10px] py-[2px]",
2752
- radius: "rounded-[12px]",
2753
- Xicon: TbCloseAbleWhiteSmall,
2754
- },
2755
- icon: {
2756
- bg: "bg-bia-green",
2757
- text: "text-[#FFF] text-[13.06px]",
2758
- padding: "p-[4px] ",
2759
- radius: "rounded-[12px]",
2760
- Xicon: TbCheckWhiteSmall,
2761
- },
2762
- },
2763
- tn: {
2764
- iconColor: 'text-bia-green',
2765
- XColor: 'text-white',
2766
- XcolorV: 'text-white',
2767
- label: {
2768
- bg: "bg-bia-green",
2769
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2770
- padding: "px-[8px] py-[2px] ",
2771
- radius: "rounded-[12px]",
2772
- Xicon: '',
2773
- },
2774
- closeable: {
2775
- bg: "bg-bia-green",
2776
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2777
- padding: "px-[8px] py-[2px] ",
2778
- radius: "rounded-[12px]",
2779
- Xicon: TbCloseAbleWhiteSmall,
2780
- },
2781
- icon: {
2782
- bg: "bg-bia-green",
2783
- text: "text-[#FFF] text-[11.2px]",
2784
- padding: "p-[3px] ",
2785
- radius: "rounded-[12px]",
2786
- Xicon: TbCheckWhiteSmall,
2787
- },
2788
- },
2789
- },
2790
- yellow: {
2791
- md: {
2792
- iconColor: 'text-bia-orange',
2793
- XColor: 'text-bia-orange-light-50',
2794
- XcolorV: 'text-white',
2795
- label: {
2796
- bg: "bg-[#FF7B00]",
2797
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2798
- padding: "px-[10px] py-[7px] ",
2799
- radius: "rounded-[50px]",
2800
- Xicon: '',
2801
- },
2802
- closeable: {
2803
- bg: "bg-[#FF7B00]",
2804
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2805
- padding: "px-[10px] py-[7px] ",
2806
- radius: "rounded-[50px]",
2807
- Xicon: TbCloseable,
2808
- },
2809
- icon: {
2810
- bg: "bg-[#FF7B00]",
2811
- text: "text-[#FFF] text-[18.67px]",
2812
- padding: "p-[7px] ",
2813
- radius: "rounded-[50px]",
2814
- Xicon: TbCheck,
2815
- },
2816
- },
2817
- sm: {
2818
- iconColor: 'text-bia-orange',
2819
- XColor: 'text-white',
2820
- XcolorV: 'text-white',
2821
- label: {
2822
- bg: "bg-[#FF7B00]",
2823
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2824
- padding: "px-[10px] py-[2px]",
2825
- radius: "rounded-[12px]",
2826
- Xicon: '',
2827
- },
2828
- closeable: {
2829
- bg: "bg-[#FF7B00]",
2830
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2831
- padding: "px-[10px] py-[2px]",
2832
- radius: "rounded-[12px]",
2833
- Xicon: TbCloseAbleWhiteSmall,
2834
- },
2835
- icon: {
2836
- bg: "bg-[#FF7B00]",
2837
- text: "text-[#FFF] text-[13.06px]",
2838
- padding: "p-[4px]",
2839
- radius: "rounded-[12px]",
2840
- Xicon: TbCheckWhiteSmall,
2841
- },
2842
- },
2843
- tn: {
2844
- iconColor: 'text-bia-orange',
2845
- XColor: 'text-white',
2846
- XcolorV: 'text-white',
2847
- label: {
2848
- bg: "bg-[#FF7B00]",
2849
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2850
- padding: "px-[8px] py-[2px]",
2851
- radius: "rounded-[12px]",
2852
- Xicon: '',
2853
- },
2854
- closeable: {
2855
- bg: "bg-[#FF7B00]",
2856
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2857
- padding: "px-[8px] py-[2px] ",
2858
- radius: "rounded-[12px]",
2859
- Xicon: TbCloseAbleWhiteSmall,
2860
- },
2861
- icon: {
2862
- bg: "bg-[#FF7B00]",
2863
- text: "text-[#FFF] text-[11.2px]",
2864
- padding: "p-[3px] ",
2865
- radius: "rounded-[12px]",
2866
- Xicon: TbCheckWhiteSmall,
2867
- },
2868
- },
2869
- },
2870
- red: {
2871
- md: {
2872
- iconColor: 'text-bia-red',
2873
- XColor: 'text-bia-red-light-50',
2874
- XcolorV: 'text-white',
2875
- label: {
2876
- bg: "bg-bia-red",
2877
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2878
- padding: "px-[10px] py-[7px] ",
2879
- radius: "rounded-[50px]",
2880
- Xicon: '',
2881
- },
2882
- closeable: {
2883
- bg: "bg-bia-red",
2884
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2885
- padding: "px-[10px] py-[7px] ",
2886
- radius: "rounded-[50px]",
2887
- Xicon: TbCloseable,
2888
- },
2889
- icon: {
2890
- bg: "bg-bia-red",
2891
- text: "text-[#FFF] text-[18.67px]",
2892
- padding: "p-[7px]",
2893
- radius: "rounded-[50px]",
2894
- Xicon: TbCheck,
2895
- },
2896
- },
2897
- sm: {
2898
- iconColor: 'text-bia-red',
2899
- XColor: 'text-white',
2900
- XcolorV: 'text-white',
2901
- label: {
2902
- bg: "bg-bia-red",
2903
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2904
- padding: "px-[10px] py-[2px]",
2905
- radius: "rounded-[12px]",
2906
- Xicon: '',
2907
- },
2908
- closeable: {
2909
- bg: "bg-bia-red",
2910
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2911
- padding: "px-[10px] py-[2px] ",
2912
- radius: "rounded-[12px]",
2913
- Xicon: TbCloseAbleWhiteSmall,
2914
- },
2915
- icon: {
2916
- bg: "bg-bia-red",
2917
- text: "text-[#FFF] text-[13.06px]",
2918
- padding: "p-[4px] ",
2919
- radius: "rounded-[12px]",
2920
- Xicon: TbCheckWhiteSmall,
2921
- },
2922
- },
2923
- tn: {
2924
- iconColor: 'text-bia-red',
2925
- XColor: 'text-white',
2926
- XcolorV: 'text-white',
2927
- label: {
2928
- bg: "bg-bia-red",
2929
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2930
- padding: "px-[8px] py-[2px] ",
2931
- radius: "rounded-[12px]",
2932
- Xicon: '',
2933
- },
2934
- closeable: {
2935
- bg: "bg-bia-red",
2936
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2937
- padding: "px-[8px] py-[2px] ",
2938
- radius: "rounded-[12px]",
2939
- Xicon: TbCloseAbleWhiteSmall,
2940
- },
2941
- icon: {
2942
- bg: "bg-bia-red",
2943
- text: "text-[#FFF] text-[11.2px]",
2944
- padding: "p-[3px] ",
2945
- radius: "rounded-[12px]",
2946
- Xicon: TbCheckWhiteSmall,
2947
- },
2948
- },
2949
- },
2950
- black: {
2951
- md: {
2952
- iconColor: 'text-[#2f2f2f]',
2953
- XColor: 'text-bia-coolgrey',
2954
- XcolorV: 'text-white',
2955
- label: {
2956
- bg: "bg-primary-black",
2957
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2958
- padding: "px-[10px] py-[7px] ",
2959
- radius: "rounded-[50px]",
2960
- Xicon: '',
2961
- },
2962
- closeable: {
2963
- bg: "bg-primary-black",
2964
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2965
- padding: "px-[10px] py-[7px] ",
2966
- radius: "rounded-[50px]",
2967
- Xicon: TbCloseable,
2968
- },
2969
- icon: {
2970
- bg: "bg-primary-black",
2971
- text: "text-[#FFF] text-[18.67px]",
2972
- padding: "p-[7px] ",
2973
- radius: "rounded-[50px]",
2974
- Xicon: TbCheck,
2975
- },
2976
- },
2977
- sm: {
2978
- iconColor: 'text-[#2f2f2f]',
2979
- XColor: 'text-white',
2980
- XcolorV: 'text-white',
2981
- label: {
2982
- bg: "bg-primary-black",
2983
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2984
- padding: "px-[10px] py-[2px] ",
2985
- radius: "rounded-[12px]",
2986
- Xicon: '',
2987
- },
2988
- closeable: {
2989
- bg: "bg-primary-black",
2990
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2991
- padding: "px-[10px] py-[2px] ",
2992
- radius: "rounded-[12px]",
2993
- Xicon: TbCloseAbleWhiteSmall,
2994
- },
2995
- icon: {
2996
- bg: "bg-primary-black",
2997
- text: "text-[#FFF] text-[13.06px]",
2998
- padding: "p-[4px] ",
2999
- radius: "rounded-[12px]",
3000
- Xicon: TbCheckWhiteSmall,
3001
- },
3002
- },
3003
- tn: {
3004
- iconColor: 'text-[#2f2f2f]',
3005
- XColor: 'text-white',
3006
- XcolorV: 'text-white',
3007
- label: {
3008
- bg: "bg-primary-black",
3009
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
3010
- padding: "px-[8px] py-[2px] ",
3011
- radius: "rounded-[12px]",
3012
- Xicon: '',
3013
- },
3014
- closeable: {
3015
- bg: "bg-primary-black",
3016
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
3017
- padding: "px-[8px] py-[2px] ",
3018
- radius: "rounded-[12px]",
3019
- Xicon: TbCloseAbleWhiteSmall,
3020
- },
3021
- icon: {
3022
- bg: "bg-primary-black",
3023
- text: "text-[#FFF] text-[11.2px]",
3024
- padding: "p-[3px] ",
3025
- radius: "rounded-[12px]",
3026
- Xicon: TbCheckWhiteSmall,
3027
- },
3028
- },
3029
- },
3030
- white: {
3031
- md: {
3032
- iconColor: 'text-white',
3033
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3034
- XcolorV: 'text-primary-black',
3035
- label: {
3036
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3037
- text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
3038
- padding: "px-[10px] py-[7px] ",
3039
- radius: "rounded-[50px]",
3040
- Xicon: '',
3041
- },
3042
- closeable: {
3043
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3044
- text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
3045
- padding: "px-[10px] py-[7px] ",
3046
- radius: "rounded-[50px]",
3047
- Xicon: TbCloseAbleBlack,
3048
- },
3049
- icon: {
3050
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3051
- text: "text-[#2F2F2F] text-[18.67px]",
3052
- padding: "p-[7px]",
3053
- radius: "rounded-[50px]",
3054
- Xicon: TbCheckBlack,
3055
- },
3056
- },
3057
- sm: {
3058
- iconColor: 'text-white',
3059
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3060
- XcolorV: 'text-primary-black',
3061
- label: {
3062
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3063
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
3064
- padding: "px-[10px] py-[2px] ",
3065
- radius: "rounded-[12px]",
3066
- Xicon: '',
3067
- },
3068
- closeable: {
3069
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3070
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
3071
- padding: "px-[10px] py-[2px] ",
3072
- radius: "rounded-[12px]",
3073
- Xicon: TbCloseAbleGraySmall,
3074
- },
3075
- icon: {
3076
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3077
- text: "text-[#2F2F2F] text-[6.53px]",
3078
- padding: "p-[4px] ",
3079
- radius: "rounded-[12px]",
3080
- Xicon: TbCheckBlackSmall,
3081
- },
3082
- },
3083
- tn: {
3084
- iconColor: 'text-white',
3085
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3086
- XcolorV: 'text-primary-black',
3087
- label: {
3088
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3089
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
3090
- padding: "px-[8px] py-[2px] ",
3091
- radius: "rounded-[12px]",
3092
- Xicon: '',
3093
- },
3094
- closeable: {
3095
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3096
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
3097
- padding: "px-[8px] py-[2px] ",
3098
- radius: "rounded-[12px]",
3099
- Xicon: TbCloseAbleGraySmall,
3100
- },
3101
- icon: {
3102
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3103
- text: "text-[#2F2F2F] text-[11.2px]",
3104
- padding: "p-[3px] ",
3105
- radius: "rounded-[12px]",
3106
- Xicon: TbCheckBlackSmall,
3107
- },
3108
- },
3109
- },
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',
3110
2534
  };
3111
-
3112
- function CloseIcon(_a) {
3113
- var _b = _a.size, size = _b === void 0 ? 'md' : _b;
3114
- var iconSize;
3115
- if (size === 'tn') {
3116
- iconSize = '10';
3117
- }
3118
- else if (size === 'sm') {
3119
- iconSize = '10';
3120
- }
3121
- else {
3122
- iconSize = '14';
3123
- }
3124
- 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" },
3125
- React.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
3126
- React.createElement("path", { d: "M18 6l-12 12" }),
3127
- React.createElement("path", { d: "M6 6l12 12" })));
3128
- }
3129
- CloseIcon.defaultProps = {
3130
- 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',
3131
2539
  };
3132
-
3133
- function TagLabel(_a) {
3134
- var children = _a.children, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, open = _a.open, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
3135
- var config = TagLabelConfig[color][size][variant];
3136
- var configIcon = TagLabelConfig[color][size];
3137
- var configbg = config.bg;
3138
- var configtext = config.text;
3139
- var configpadding = config.padding;
3140
- var configradius = config.radius;
3141
- var configX = config.Xicon;
3142
- var configXcolor = configIcon.XColor;
3143
- var configXcolorV = configIcon.XcolorV;
3144
- var iconColor = configIcon.iconColor;
3145
- var IconContainer = {
3146
- sm: 'h-[14px] w-[14px]',
3147
- tn: 'h-[14px] w-[14px]',
3148
- md: 'h-[20px] w-[20px]',
3149
- };
3150
- var renderIcon = function (icon) {
3151
- if (typeof icon === 'string') {
3152
- return React.createElement("span", null, icon);
3153
- }
3154
- var IconComponent = icon;
3155
- var textSize;
3156
- if (size === 'md') {
3157
- textSize = 'text-[20px]';
3158
- }
3159
- else if (size === 'sm' || size === 'tn') {
3160
- textSize = 'text-[14px]';
3161
- }
3162
- else {
3163
- textSize = 'text-[14px]';
3164
- }
3165
- var fillColor;
3166
- if (color === 'blue') {
3167
- fillColor = '#5d5dea';
3168
- }
3169
- else if (color === 'green') {
3170
- fillColor = '#21ba4c';
3171
- }
3172
- else if (color === 'teal') {
3173
- fillColor = '#00b5ad';
3174
- }
3175
- else if (color === 'yellow') {
3176
- fillColor = '#ff7b00';
3177
- }
3178
- else if (color === 'red') {
3179
- fillColor = '#db2828';
3180
- }
3181
- else if (color === 'black') {
3182
- fillColor = '#2f2f2f';
3183
- }
3184
- else {
3185
- fillColor = '#ffffff';
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]',
2564
+ };
2565
+
2566
+ var colorUnion = [
2567
+ 'default',
2568
+ 'blue',
2569
+ 'teal',
2570
+ 'green',
2571
+ 'yellow',
2572
+ 'red',
2573
+ 'black',
2574
+ 'white',
2575
+ 'custom',
2576
+ ];
2577
+ var sizeUnion = ['md', 'sm', 'tn'];
2578
+ var variantUnion = ['label', 'icon', 'closeable'];
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"]);
2581
+ var validatedColor = validUnion(color, colorUnion);
2582
+ var validatedSize = validUnion(size, sizeUnion);
2583
+ var validatedVariant = validUnion(variant, variantUnion);
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);
3186
2599
  }
3187
- return (React.createElement(IconComponent, { className: "".concat(textSize, " ").concat(variant === 'icon' ? configXcolor : configXcolorV), color: fillColor }));
3188
- };
3189
- // const containerClass = `${container} ${capitalize && 'capitalize'}`;
3190
- // const closeableMode = variant === 'closeable';
3191
- // const iconMode = variant === 'icon';
3192
- var closeButtonException;
3193
- if (size === 'md') {
3194
- closeButtonException = '-mr-[2px]';
3195
- }
3196
- else {
3197
- closeButtonException = '-mr-[5px]';
3198
- }
3199
- var outlineColor;
3200
- if (color === 'default' || color === 'white') {
3201
- outlineColor = 'outline-primary-black';
3202
- }
3203
- else {
3204
- outlineColor = 'outline-white';
3205
- }
3206
- if (!open)
3207
- return null;
3208
- return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
3209
- variant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, leftIcon || renderIcon(configX))) : (React.createElement(React.Fragment, null,
3210
- React.createElement("span", null, leftIcon),
3211
- React.createElement("div", { className: "flex justify-center items-center ".concat(size === 'md' && 'min-h-[20px] px-[5px]', " ").concat(size === 'sm' && 'min-h-[18px] px-[3px]', " ").concat(size === 'tn' && 'min-h-[14px] px-[3px] -mt-[2px]') }, children))),
3212
- variant === 'label' && rightIcon && (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, rightIcon)),
3213
- variant === 'closeable' && closeHandler && (React.createElement("button", { type: "button", className: "flex justify-center items-center ".concat(size === 'tn' ? 'p-[1px]' : 'p-[2px]', " ").concat(outlineColor, " ").concat(iconColor, " ").concat(color === 'white' || color === 'default' ? 'bg-black/[.3]' : 'bg-white/[.5]', " focus:outline ").concat(size === 'tn' ? 'outline-[1.5px]' : 'outline-[2px]', " ").concat(closeButtonException, " rounded-full group"), onClick: function () { return closeHandler(); } },
3214
- React.createElement(CloseIcon, { size: size })))));
3215
- }
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
+ };
3216
2636
  TagLabel.defaultProps = {
3217
2637
  variant: 'default',
3218
2638
  size: 'sm',
3219
2639
  open: true,
3220
2640
  closeHandler: function () { },
3221
- rightIcon: null,
3222
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,
3223
2650
  };
3224
2651
 
3225
2652
  var classConfig = {
3226
2653
  top: {
3227
- tooltipContainer: 'bottom-[110%] left-1/2 -translate-x-1/2',
2654
+ tooltipContainer: 'bottom-[calc(100%+5px)] left-1/2 -translate-x-1/2',
3228
2655
  triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
3229
2656
  triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
3230
2657
  },
3231
2658
  right: {
3232
- tooltipContainer: 'left-[105%] top-1/2 -translate-y-1/2',
2659
+ tooltipContainer: 'left-[calc(100%+5px)] top-1/2 -translate-y-1/2',
3233
2660
  triangleContainer: '-left-[4px] bottom-0 flex items-center w-auto h-full',
3234
2661
  triangleShape: 'border-t-[8px] border-t-transparent border-r-[5px] border-r-primary-black border-b-[8px] border-b-transparent',
3235
2662
  },
3236
2663
  bottom: {
3237
- tooltipContainer: 'top-[110%] left-1/2 -translate-x-1/2',
2664
+ tooltipContainer: 'top-[calc(100%+5px)] left-1/2 -translate-x-1/2',
3238
2665
  triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
3239
2666
  triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
3240
2667
  },
3241
2668
  left: {
3242
- tooltipContainer: 'right-[105%] top-1/2 -translate-y-1/2',
2669
+ tooltipContainer: 'right-[calc(100%+5px)] top-1/2 -translate-y-1/2',
3243
2670
  triangleContainer: '-right-[4px] bottom-0 flex items-center w-auto h-full',
3244
2671
  triangleShape: 'border-t-[8px] border-t-transparent border-l-[5px] border-l-primary-black border-b-[8px] border-b-transparent',
3245
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
+ },
3246
2693
  };
3247
2694
 
3248
2695
  function Tooltip(props) {
3249
- 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;
3250
2697
  var timeout;
3251
- var _b = React.useState(false), active = _b[0], setActive = _b[1];
2698
+ var _c = React.useState(false), active = _c[0], setActive = _c[1];
3252
2699
  var showTip = function () {
3253
2700
  timeout = setTimeout(function () {
3254
2701
  setActive(true);
@@ -3258,26 +2705,29 @@ function Tooltip(props) {
3258
2705
  clearInterval(timeout);
3259
2706
  setActive(false);
3260
2707
  };
3261
- var _c = classConfig[direction], tooltipContainer = _c.tooltipContainer, triangleContainer = _c.triangleContainer, triangleShape = _c.triangleShape;
3262
- 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 },
3263
2710
  children,
3264
- 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) },
3265
- content,
3266
- React.createElement("div", { className: "absolute ".concat(triangleContainer) },
3267
- 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)))));
3268
2713
  }
3269
2714
  Tooltip.defaultProps = {
3270
2715
  delay: 400,
3271
2716
  direction: 'top',
2717
+ maxWidth: '300px',
3272
2718
  };
3273
2719
  Tooltip.defaultProps = {};
3274
2720
 
3275
2721
  function ScrollbarSimulation() {
3276
- 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.")));
3277
2725
  }
3278
2726
 
3279
2727
  function HiddenScrollbarSimulation() {
3280
- 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.")));
3281
2731
  }
3282
2732
 
3283
2733
  exports.Accordions = Accordions;
@@ -3314,6 +2764,7 @@ exports.SelectInputSimulation = SelectInputSimulation;
3314
2764
  exports.Slider = Slider;
3315
2765
  exports.Spinner = Spinner;
3316
2766
  exports.Tab = Tab;
2767
+ exports.TabMenu = TabMenu;
3317
2768
  exports.Table = Table;
3318
2769
  exports.TableBody = TableBody;
3319
2770
  exports.TableCol = TableCol;