bianic-ui 1.0.0-beta.3 → 1.0.0-beta.30

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 (77) hide show
  1. package/dist/cjs/index.js +306 -885
  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/SelectedInput.d.ts +1 -1
  8. package/dist/cjs/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  9. package/dist/cjs/types/components/TagLabel/configs.d.ts +40 -651
  10. package/dist/cjs/types/components/TagLabel/index.d.ts +21 -7
  11. package/dist/cjs/types/components/Tooltip/configs.d.ts +20 -0
  12. package/dist/cjs/types/components/Tooltip/index.d.ts +4 -1
  13. package/dist/cjs/types/stories/Form/SelectInput/SelectInput.Simulation.stories.d.ts +0 -1
  14. package/dist/cjs/types/stories/{Tooltip.stories.d.ts → Tooltip/Tooltip.stories.d.ts} +2 -1
  15. package/dist/cjs/types/utility/helper.d.ts +3 -0
  16. package/dist/esm/index.js +306 -885
  17. package/dist/esm/lib.css +1 -1
  18. package/dist/esm/types/components/Alert/Alert.d.ts +11 -6
  19. package/dist/esm/types/components/Button/configs.d.ts +0 -6
  20. package/dist/esm/types/components/Button/index.d.ts +5 -1
  21. package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +3 -1
  22. package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +1 -1
  23. package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  24. package/dist/esm/types/components/TagLabel/configs.d.ts +40 -651
  25. package/dist/esm/types/components/TagLabel/index.d.ts +21 -7
  26. package/dist/esm/types/components/Tooltip/configs.d.ts +20 -0
  27. package/dist/esm/types/components/Tooltip/index.d.ts +4 -1
  28. package/dist/esm/types/stories/Form/SelectInput/SelectInput.Simulation.stories.d.ts +0 -1
  29. package/dist/esm/types/stories/{Tooltip.stories.d.ts → Tooltip/Tooltip.stories.d.ts} +2 -1
  30. package/dist/esm/types/utility/helper.d.ts +3 -0
  31. package/dist/index.d.ts +43 -17
  32. package/package.json +5 -2
  33. package/src/style/color.css +12 -0
  34. package/src/style/scrollbar.css +10 -1
  35. package/tailwind.config.js +21 -0
  36. package/dist/cjs/types/components/Modal/config.d.ts +0 -59
  37. package/dist/cjs/types/components/Tab/config.d.ts +0 -33
  38. package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +0 -11
  39. package/dist/cjs/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
  40. package/dist/cjs/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
  41. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
  42. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
  43. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
  44. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
  45. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
  46. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
  47. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
  48. package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
  49. package/dist/cjs/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
  50. package/dist/cjs/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
  51. package/dist/cjs/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
  52. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
  53. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
  54. package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
  55. package/dist/cjs/types/stories/Scrollbar/Scrollbar.stories.d.ts +0 -13
  56. package/dist/cjs/types/stories/TagLabel.stories.d.ts +0 -16
  57. package/dist/esm/types/components/Modal/config.d.ts +0 -59
  58. package/dist/esm/types/components/Tab/config.d.ts +0 -33
  59. package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +0 -11
  60. package/dist/esm/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
  61. package/dist/esm/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
  62. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
  63. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
  64. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
  65. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
  66. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
  67. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
  68. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
  69. package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
  70. package/dist/esm/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
  71. package/dist/esm/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
  72. package/dist/esm/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
  73. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
  74. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
  75. package/dist/esm/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
  76. package/dist/esm/types/stories/Scrollbar/Scrollbar.stories.d.ts +0 -13
  77. package/dist/esm/types/stories/TagLabel.stories.d.ts +0 -16
package/dist/cjs/index.js CHANGED
@@ -88,7 +88,7 @@ function IconBase(props) {
88
88
  // THIS FILE IS AUTO GENERATED
89
89
  function TbAlertTriangle (props) {
90
90
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M12 9v4"},"child":[]},{"tag":"path","attr":{"d":"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"},"child":[]},{"tag":"path","attr":{"d":"M12 16h.01"},"child":[]}]})(props);
91
- }function TbCheck$1 (props) {
91
+ }function TbCheck (props) {
92
92
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M5 12l5 5l10 -10"},"child":[]}]})(props);
93
93
  }function TbChevronDown (props) {
94
94
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M6 9l6 6l6 -6"},"child":[]}]})(props);
@@ -155,7 +155,7 @@ var AlertConfig = {
155
155
  ContainerIcon: 'bg-bia-green',
156
156
  close: 'text-bia-green',
157
157
  icon: {
158
- true: TbCheck$1,
158
+ true: TbCheck,
159
159
  false: '',
160
160
  },
161
161
  },
@@ -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
  /******************************************************************************
@@ -349,13 +391,13 @@ 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] ',
@@ -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$1[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig[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 = {
@@ -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 });
@@ -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
- var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id; _a.size; var _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['md'], checkClass = _f.checkClass, labelClass = _f.labelClass;
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;
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,7 +1733,7 @@ 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
1739
  iconSize: 'right-[10px]',
@@ -1671,7 +1744,7 @@ var sizeConfig$5 = {
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,21 @@ 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
+ return (React.createElement("div", { className: "field-group flex w-full flex-col", ref: inputRef },
1804
+ React.createElement("label", { htmlFor: id, className: "label pb-2 text-xs font-semibold" },
1805
+ childrenElement(label),
1729
1806
  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) {
1807
+ React.createElement("div", { className: "group relative w-full" },
1808
+ 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: selected === null || selected === void 0 ? void 0 : selected.label, readOnly: true, id: id, disabled: disabled }, props)),
1809
+ 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, { className: "" })) : (React.createElement(TbChevronDown, { className: "" }))),
1810
+ 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) {
1734
1811
  var isSelected = selected && selected.id && option.id === selected.id;
1735
- return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, isSelected: isSelected, onClick: function () {
1812
+ return (React.createElement(DefaultDropdownItem, { label: option.label, caption: option.caption, size: validatedSize, isSelected: isSelected, onClick: function () {
1736
1813
  setSelected(option);
1737
1814
  setIsOpen(false);
1738
1815
  } }));
1739
1816
  })))),
1740
- React.createElement("span", { className: "desc text-primary-cool text-xs mt-2" }, descText)));
1817
+ React.createElement("span", { className: "desc mt-2 text-xs text-primary-cool" }, descText)));
1741
1818
  }
1742
1819
  SelectInput.defaultProps = {
1743
1820
  descText: '',
@@ -1755,33 +1832,39 @@ function SelectInputSimulation(_a) {
1755
1832
  var _c = React.useState({
1756
1833
  id: 1,
1757
1834
  label: 'Mohammed Salah',
1835
+ caption: 'Liverpool',
1758
1836
  }), selected = _c[0], setSelected = _c[1];
1759
1837
  var optionData = [
1760
1838
  {
1761
1839
  id: 1,
1762
1840
  label: 'Mohammed Salah',
1841
+ caption: 'Liverpool',
1763
1842
  },
1764
1843
  {
1765
1844
  id: 2,
1766
1845
  label: 'Cristiono Ronaldo',
1846
+ caption: 'Manchester United',
1767
1847
  },
1768
1848
  {
1769
1849
  id: 3,
1770
1850
  label: 'Vinicius Junior',
1851
+ caption: 'Real Madrid',
1771
1852
  },
1772
1853
  {
1773
1854
  id: 4,
1774
1855
  label: 'Lionel Messi',
1856
+ caption: 'Paris Saint Germain',
1775
1857
  },
1776
1858
  {
1777
1859
  id: 5,
1778
1860
  label: 'Ricardo Kaka',
1861
+ caption: 'AC Milan',
1779
1862
  },
1780
1863
  ];
1781
- return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, id: "demo-id" }));
1864
+ return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, placeholder: '-- Select Player --', id: "demo-id" }));
1782
1865
  }
1783
1866
 
1784
- var sizeConfig$3 = {
1867
+ var sizeConfig$4 = {
1785
1868
  md: {
1786
1869
  iconClass: 'right-[10px]',
1787
1870
  iconSize: '18',
@@ -1800,7 +1883,7 @@ var sizeConfig$3 = {
1800
1883
  function LiveSearch(_a) {
1801
1884
  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
1885
  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;
1886
+ var _f = sizeConfig$4[size], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
1804
1887
  var inputRef = React.useRef(null);
1805
1888
  var handleOutsideClick = function (e) {
1806
1889
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1846,7 +1929,7 @@ LiveSearch.defaultProps = {
1846
1929
  value: {},
1847
1930
  };
1848
1931
 
1849
- var sizeConfig$2 = {
1932
+ var sizeConfig$3 = {
1850
1933
  md: {
1851
1934
  containerSize: 'w-[42px] h-[22px]',
1852
1935
  checkSize: 'p-2',
@@ -1861,7 +1944,7 @@ var sizeConfig$2 = {
1861
1944
 
1862
1945
  function Toggle(_a) {
1863
1946
  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;
1947
+ var _h = sizeConfig$3[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
1865
1948
  return (React.createElement("div", { className: "flex items-center" },
1866
1949
  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
1950
  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 +1970,7 @@ var roundedConfig = {
1887
1970
  sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1888
1971
  tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1889
1972
  };
1890
- var sizeConfig$1 = {
1973
+ var sizeConfig$2 = {
1891
1974
  lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1892
1975
  md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1893
1976
  sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
@@ -1897,7 +1980,7 @@ var sizeConfig$1 = {
1897
1980
  function SegmentButtonItem(_a) {
1898
1981
  var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1899
1982
  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));
1983
+ 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
1984
  }
1902
1985
 
1903
1986
  function SegmentButtonGroup(_a) {
@@ -1940,7 +2023,7 @@ function SegmentButtonSimulation(_a) {
1940
2023
  return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
1941
2024
  React.createElement("div", { className: "flex items-center justify-center" },
1942
2025
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
1943
- React.createElement(TbCheck$1, null)),
2026
+ React.createElement(TbCheck, null)),
1944
2027
  content)));
1945
2028
  })));
1946
2029
  }
@@ -1982,7 +2065,7 @@ Modal.defaultProps = {
1982
2065
  title: null,
1983
2066
  };
1984
2067
 
1985
- var sizeConfig = {
2068
+ var sizeConfig$1 = {
1986
2069
  md: 'w-[38px] h-[40px] text-[14px] font-semibold',
1987
2070
  sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1988
2071
  };
@@ -2032,7 +2115,7 @@ function PaginationBar(_a) {
2032
2115
  };
2033
2116
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2034
2117
  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() })); }),
2118
+ 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
2119
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2037
2120
  }
2038
2121
 
@@ -2122,7 +2205,7 @@ Popover.defaultProps = {
2122
2205
  var config = {
2123
2206
  success: {
2124
2207
  container: 'border-bia-green',
2125
- content: React.createElement(TbCheck$1, { className: "text-[38px] text-bia-green" }),
2208
+ content: React.createElement(TbCheck, { className: "text-[38px] text-bia-green" }),
2126
2209
  },
2127
2210
  failed: {
2128
2211
  container: 'border-bia-red',
@@ -2410,845 +2493,180 @@ TableDemo.defaultProps = {
2410
2493
  tableSize: 'md',
2411
2494
  };
2412
2495
 
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
- },
2496
+ var colorConfig = {
2497
+ default: 'bg-bia-grey-light-50 text-primary-black',
2498
+ blue: 'bg-bia-blue text-primary-white',
2499
+ teal: 'bg-bia-teal text-primary-white',
2500
+ green: 'bg-bia-green text-primary-white',
2501
+ yellow: 'bg-bia-yellow text-primary-white',
2502
+ red: 'bg-bia-red text-primary-white',
2503
+ black: 'bg-primary-black text-primary-white',
2504
+ white: 'bg-primary-white text-primary-black border border-primary-black',
3110
2505
  };
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',
2506
+ var sizeConfig = {
2507
+ md: 'px-[10px] py-[7px] h-[34px] text-size-base',
2508
+ sm: 'px-[10px] py-[4px] h-[22px] text-size-sm',
2509
+ tn: 'px-[8px] py-[2px] h-[18px] text-size-sm',
3131
2510
  };
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';
2511
+ var iconOnlySizeConfig = {
2512
+ md: 'p-[7px]',
2513
+ sm: 'p-[4px]',
2514
+ tn: 'p-[2px]',
2515
+ };
2516
+ var closeColorConfig = {
2517
+ default: 'bg-bia-grey-dark-30 text-primary-white',
2518
+ blue: 'bg-bia-white-transparent-50 text-bia-blue',
2519
+ teal: 'bg-bia-white-transparent-50 text-bia-teal',
2520
+ green: 'bg-bia-white-transparent-50 text-bia-green',
2521
+ yellow: 'bg-bia-white-transparent-50 text-bia-yellow',
2522
+ red: 'bg-bia-white-transparent-50 text-bia-red',
2523
+ black: 'bg-bia-white-transparent-50 text-primary-black',
2524
+ white: 'bg-bia-grey-dark-30 text-primary-white',
2525
+ };
2526
+ var closeSizeConfig = {
2527
+ md: 'w-[18px] h-[18px] text-[14px]',
2528
+ sm: 'w-[12px] h-[12px] text-[9.33px]',
2529
+ tn: 'w-[12px] h-[12px] text-[9.33px]',
2530
+ };
2531
+ var rightPaddingConfig = {
2532
+ md: 'pr-[8px]',
2533
+ sm: 'pr-[5px]',
2534
+ tn: 'pr-[3px]',
2535
+ };
2536
+
2537
+ var colorUnion = [
2538
+ 'default',
2539
+ 'blue',
2540
+ 'teal',
2541
+ 'green',
2542
+ 'yellow',
2543
+ 'red',
2544
+ 'black',
2545
+ 'white',
2546
+ 'custom',
2547
+ ];
2548
+ var sizeUnion = ['md', 'sm', 'tn'];
2549
+ var variantUnion = ['label', 'icon', 'closeable'];
2550
+ var TagLabel = function (_a) {
2551
+ 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"]);
2552
+ var validatedColor = validUnion(color, colorUnion);
2553
+ var validatedSize = validUnion(size, sizeUnion);
2554
+ var validatedVariant = validUnion(variant, variantUnion);
2555
+ var containerRef = React.useRef(null);
2556
+ var _c = React.useState(null), sizeCount = _c[0], setSizeCount = _c[1];
2557
+ React.useEffect(function () {
2558
+ if (variant === 'icon') {
2559
+ // Get the size of the icon
2560
+ // and set the size of the container
2561
+ // to the one with the biggest size (width or height icon)
2562
+ // in order to make the container square
2563
+ var rect = containerRef.current.getBoundingClientRect();
2564
+ var width = rect.width;
2565
+ var height = rect.height;
2566
+ if (width > height)
2567
+ setSizeCount(width);
2568
+ else
2569
+ setSizeCount(height);
3186
2570
  }
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
- }
2571
+ }, []);
2572
+ var defaultIconSize = validatedSize === 'md' ? 'text-xl' : 'text-sm';
2573
+ var roundedClass = validatedVariant === 'icon' ? 'rounded-full' : 'rounded-[50px]';
2574
+ var sizeClass = validatedVariant === 'icon'
2575
+ ? iconOnlySizeConfig[validatedSize]
2576
+ : sizeConfig[validatedSize];
2577
+ var isCloseableClass = validatedVariant === 'closeable' && rightPaddingConfig[validatedSize];
2578
+ var colorClass = validatedColor === 'custom'
2579
+ ? "bg-bia-".concat(bgColor, " text-bia-").concat(textColor)
2580
+ : colorConfig[validatedColor];
2581
+ var blockclass = isBlock && validatedVariant !== 'icon' ? 'w-full' : "w-fit";
2582
+ var maxWidthStyle = !isBlock ? maxWidth + 'px' : '';
2583
+ var textClass = isBlock ? 'text-center' : 'text-left';
2584
+ var containerClass = "".concat(sizeClass, " ").concat(colorClass, " ").concat(roundedClass, " ").concat(isCloseableClass, " ").concat(blockclass);
2585
+ var closeColor = validatedColor === 'custom'
2586
+ ? isDark
2587
+ ? "bg-bia-white-transparent-50 text-bia-".concat(bgColor)
2588
+ : "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
2589
+ : closeColorConfig[validatedColor];
2590
+ var closeClass = "".concat(closeColor, " ").concat(closeSizeConfig[validatedSize]);
2591
+ return (open && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base ".concat(containerClass), style: {
2592
+ maxWidth: maxWidthStyle,
2593
+ } }, props),
2594
+ leftIcon && (React.createElement("div", { style: {
2595
+ width: sizeCount + 'px',
2596
+ height: sizeCount + 'px',
2597
+ }, className: "flex items-center justify-center", ref: containerRef }, leftIcon ||
2598
+ (validatedVariant === 'icon' && (React.createElement(TbCheck, { className: defaultIconSize }))))),
2599
+ validatedVariant !== 'icon' && text && (React.createElement("span", { className: "w-full truncate pb-[2px] ".concat(textClass) }, text)),
2600
+ validatedVariant === 'label' && rightIcon && (React.createElement("div", { className: "block" },
2601
+ " ",
2602
+ rightIcon,
2603
+ " ")),
2604
+ validatedVariant === 'closeable' && (React.createElement("button", { type: "button", onClick: closeHandler, className: "flex aspect-square items-center justify-center rounded-full pt-[1px] ".concat(closeClass) },
2605
+ React.createElement(TbX, null))))));
2606
+ };
3216
2607
  TagLabel.defaultProps = {
3217
2608
  variant: 'default',
3218
2609
  size: 'sm',
3219
2610
  open: true,
3220
2611
  closeHandler: function () { },
3221
- rightIcon: null,
3222
2612
  leftIcon: null,
2613
+ rightIcon: null,
2614
+ left: null,
2615
+ right: null,
2616
+ bgColor: null,
2617
+ textColor: null,
2618
+ isBlock: false,
2619
+ maxWidth: 300,
2620
+ isDark: false,
3223
2621
  };
3224
2622
 
3225
2623
  var classConfig = {
3226
2624
  top: {
3227
- tooltipContainer: 'bottom-[110%] left-1/2 -translate-x-1/2',
2625
+ tooltipContainer: 'bottom-[calc(100%+5px)] left-1/2 -translate-x-1/2',
3228
2626
  triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
3229
2627
  triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
3230
2628
  },
3231
2629
  right: {
3232
- tooltipContainer: 'left-[105%] top-1/2 -translate-y-1/2',
2630
+ tooltipContainer: 'left-[calc(100%+5px)] top-1/2 -translate-y-1/2',
3233
2631
  triangleContainer: '-left-[4px] bottom-0 flex items-center w-auto h-full',
3234
2632
  triangleShape: 'border-t-[8px] border-t-transparent border-r-[5px] border-r-primary-black border-b-[8px] border-b-transparent',
3235
2633
  },
3236
2634
  bottom: {
3237
- tooltipContainer: 'top-[110%] left-1/2 -translate-x-1/2',
2635
+ tooltipContainer: 'top-[calc(100%+5px)] left-1/2 -translate-x-1/2',
3238
2636
  triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
3239
2637
  triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
3240
2638
  },
3241
2639
  left: {
3242
- tooltipContainer: 'right-[105%] top-1/2 -translate-y-1/2',
2640
+ tooltipContainer: 'right-[calc(100%+5px)] top-1/2 -translate-y-1/2',
3243
2641
  triangleContainer: '-right-[4px] bottom-0 flex items-center w-auto h-full',
3244
2642
  triangleShape: 'border-t-[8px] border-t-transparent border-l-[5px] border-l-primary-black border-b-[8px] border-b-transparent',
3245
2643
  },
2644
+ 'top-right': {
2645
+ tooltipContainer: 'bottom-[calc(100%+5px)] right-0',
2646
+ triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
2647
+ triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
2648
+ },
2649
+ 'top-left': {
2650
+ tooltipContainer: 'bottom-[calc(100%+5px)] left-0',
2651
+ triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
2652
+ triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
2653
+ },
2654
+ 'bottom-right': {
2655
+ tooltipContainer: 'top-[calc(100%+5px)] right-0',
2656
+ triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
2657
+ triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
2658
+ },
2659
+ 'bottom-left': {
2660
+ tooltipContainer: 'top-[calc(100%+5px)] left-0',
2661
+ triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
2662
+ triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
2663
+ },
3246
2664
  };
3247
2665
 
3248
2666
  function Tooltip(props) {
3249
- var children = props.children, content = props.content, delay = props.delay, _a = props.direction, direction = _a === void 0 ? 'top' : _a;
2667
+ 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
2668
  var timeout;
3251
- var _b = React.useState(false), active = _b[0], setActive = _b[1];
2669
+ var _c = React.useState(false), active = _c[0], setActive = _c[1];
3252
2670
  var showTip = function () {
3253
2671
  timeout = setTimeout(function () {
3254
2672
  setActive(true);
@@ -3258,26 +2676,29 @@ function Tooltip(props) {
3258
2676
  clearInterval(timeout);
3259
2677
  setActive(false);
3260
2678
  };
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 },
2679
+ var _d = classConfig[direction], tooltipContainer = _d.tooltipContainer; _d.triangleContainer; _d.triangleShape;
2680
+ return (React.createElement("div", { className: "Tooltip-Wrapper relative flex flex-col w-full h-fit", onMouseEnter: showTip, onMouseLeave: hideTip },
3263
2681
  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) }))))));
2682
+ 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 } },
2683
+ React.createElement("p", { className: " whitespace-pre-wrap break-words" }, content)))));
3268
2684
  }
3269
2685
  Tooltip.defaultProps = {
3270
2686
  delay: 400,
3271
2687
  direction: 'top',
2688
+ maxWidth: '300px',
3272
2689
  };
3273
2690
  Tooltip.defaultProps = {};
3274
2691
 
3275
2692
  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."));
2693
+ return (React.createElement("div", { className: "flex gap-5" },
2694
+ 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."),
2695
+ 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
2696
  }
3278
2697
 
3279
2698
  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."));
2699
+ return (React.createElement("div", { className: "flex gap-5" },
2700
+ 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."),
2701
+ 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
2702
  }
3282
2703
 
3283
2704
  exports.Accordions = Accordions;