bianic-ui 1.0.0-beta.2 → 1.0.0-beta.21

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 (52) hide show
  1. package/dist/cjs/index.js +188 -843
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Button/Button.d.ts +12 -0
  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/Dump/Dump.d.ts +3 -0
  7. package/dist/cjs/types/components/Dump/index.d.ts +1 -0
  8. package/dist/cjs/types/components/Forms/Checkbox.d.ts +7 -0
  9. package/dist/cjs/types/components/Forms/LiveSearch.d.ts +13 -0
  10. package/dist/cjs/types/components/Forms/Radio.d.ts +8 -0
  11. package/dist/cjs/types/components/Forms/SelectInput.d.ts +13 -0
  12. package/dist/cjs/types/components/Forms/TextArea.d.ts +10 -0
  13. package/dist/cjs/types/components/Forms/TextInput.d.ts +14 -0
  14. package/dist/cjs/types/components/Forms/Toggle.d.ts +8 -0
  15. package/dist/cjs/types/components/Modal/ModalBody.d.ts +10 -0
  16. package/dist/cjs/types/components/Modal/ModalFooter.d.ts +7 -0
  17. package/dist/cjs/types/components/Modal/index.d.ts +3 -0
  18. package/dist/cjs/types/components/Tag/TagLabel.d.ts +14 -0
  19. package/dist/cjs/types/components/Tag/index.d.ts +1 -0
  20. package/dist/cjs/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  21. package/dist/cjs/types/components/TagLabel/configs.d.ts +35 -651
  22. package/dist/cjs/types/components/TagLabel/index.d.ts +21 -7
  23. package/dist/cjs/types/components/Typography/Text.d.ts +7 -0
  24. package/dist/cjs/types/utility/helper.d.ts +3 -0
  25. package/dist/esm/index.js +188 -843
  26. package/dist/esm/lib.css +1 -1
  27. package/dist/esm/types/components/Button/Button.d.ts +12 -0
  28. package/dist/esm/types/components/Button/configs.d.ts +0 -6
  29. package/dist/esm/types/components/Button/index.d.ts +5 -1
  30. package/dist/esm/types/components/Dump/Dump.d.ts +3 -0
  31. package/dist/esm/types/components/Dump/index.d.ts +1 -0
  32. package/dist/esm/types/components/Forms/Checkbox.d.ts +7 -0
  33. package/dist/esm/types/components/Forms/LiveSearch.d.ts +13 -0
  34. package/dist/esm/types/components/Forms/Radio.d.ts +8 -0
  35. package/dist/esm/types/components/Forms/SelectInput.d.ts +13 -0
  36. package/dist/esm/types/components/Forms/TextArea.d.ts +10 -0
  37. package/dist/esm/types/components/Forms/TextInput.d.ts +14 -0
  38. package/dist/esm/types/components/Forms/Toggle.d.ts +8 -0
  39. package/dist/esm/types/components/Modal/ModalBody.d.ts +10 -0
  40. package/dist/esm/types/components/Modal/ModalFooter.d.ts +7 -0
  41. package/dist/esm/types/components/Modal/index.d.ts +3 -0
  42. package/dist/esm/types/components/Tag/TagLabel.d.ts +14 -0
  43. package/dist/esm/types/components/Tag/index.d.ts +1 -0
  44. package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  45. package/dist/esm/types/components/TagLabel/configs.d.ts +35 -651
  46. package/dist/esm/types/components/TagLabel/index.d.ts +21 -7
  47. package/dist/esm/types/components/Typography/Text.d.ts +7 -0
  48. package/dist/esm/types/utility/helper.d.ts +3 -0
  49. package/dist/index.d.ts +126 -569
  50. package/package.json +1 -1
  51. package/src/style/color.css +12 -0
  52. package/tailwind.config.js +21 -0
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,9 +246,38 @@ 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: '',
@@ -349,13 +378,13 @@ var radiusConfig = {
349
378
  tn: 'rounded-radius-full focus-visible:rounded-radius-full',
350
379
  },
351
380
  };
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]',
381
+ var sizeConfig$b = {
382
+ lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px] text-size-md',
383
+ md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] text-size-base',
384
+ sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] text-size-sm',
385
+ tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px] text-size-tiny',
357
386
  };
358
- var iconOnlySizeConfig = {
387
+ var iconOnlySizeConfig$1 = {
359
388
  lg: 'p-[13px] flex items-center justify-center gap-[10px]',
360
389
  md: ' p-[11px] flex items-center justify-center gap-[5px]',
361
390
  sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
@@ -380,12 +409,38 @@ var variantConfig$1 = {
380
409
  '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
410
  };
382
411
 
412
+ var variantUnion$1 = [
413
+ 'default',
414
+ 'danger',
415
+ 'info',
416
+ 'link',
417
+ 'primary',
418
+ 'subtle',
419
+ 'subtle-link',
420
+ 'success',
421
+ 'warning',
422
+ 'default-outlined',
423
+ 'danger-outlined',
424
+ 'info-outlined',
425
+ 'primary-outlined',
426
+ 'success-outlined',
427
+ 'warning-outlined',
428
+ ];
429
+ var radiusUnion = ['default', 'full-rounded'];
430
+ var sizeUnion$4 = ['md', 'lg', 'sm', 'tn'];
383
431
  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));
432
+ 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"]);
433
+ var validatedVariant = validUnion(variant, variantUnion$1);
434
+ var validatedSize = validUnion(size, sizeUnion$4);
435
+ var validatedRadius = validUnion(radius, radiusUnion);
436
+ var sizeClass = label
437
+ ? sizeConfig$b[validatedSize]
438
+ : iconOnlySizeConfig$1[validatedSize];
439
+ var classString = "\n ".concat(variantConfig$1[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig[validatedRadius][validatedSize], " \n ").concat(className, "\n ");
440
+ return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center ".concat(classString), disabled: disabled }, props),
441
+ childrenElement(iconLeft || left),
442
+ childrenElement(label),
443
+ childrenElement(iconRight || right)));
389
444
  }
390
445
  Button.defaultProps = {
391
446
  label: null,
@@ -396,6 +451,8 @@ Button.defaultProps = {
396
451
  variant: 'default',
397
452
  iconLeft: null,
398
453
  iconRight: null,
454
+ left: null,
455
+ right: null,
399
456
  };
400
457
 
401
458
  var AvatarConfig = {
@@ -1421,7 +1478,7 @@ Divider.defaultProps = {
1421
1478
  classname: '',
1422
1479
  };
1423
1480
 
1424
- var sizeConfig$9 = {
1481
+ var sizeConfig$a = {
1425
1482
  md: {
1426
1483
  fieldSize: 'text-size-base p-2.5 font-[350] h-10',
1427
1484
  iconPosition: 'right-[10px]',
@@ -1455,7 +1512,7 @@ var styleConfig = {
1455
1512
  function ValidationIcon(_a) {
1456
1513
  var isValid = _a.isValid, iconSize = _a.iconSize;
1457
1514
  if (isValid) {
1458
- return (React.createElement(TbCheck$1, { className: "text-bia-green", style: { fontSize: iconSize } }));
1515
+ return (React.createElement(TbCheck, { className: "text-bia-green", style: { fontSize: iconSize } }));
1459
1516
  }
1460
1517
  return React.createElement(TbX, { className: "text-bia-red", style: { fontSize: iconSize } });
1461
1518
  }
@@ -1476,7 +1533,7 @@ function TextInput(_a) {
1476
1533
  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
1534
  var _m = React.useState(false), isShow = _m[0], setIsShow = _m[1];
1478
1535
  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;
1536
+ var _p = sizeConfig$a[size], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
1480
1537
  var typeVariant = variant;
1481
1538
  if (variant === 'password')
1482
1539
  typeVariant = isShow ? 'text' : 'password';
@@ -1533,7 +1590,7 @@ TextInputSimulation.defaultProps = {
1533
1590
  };
1534
1591
 
1535
1592
  // Desc: Radio button size configuration
1536
- var sizeConfig$8 = {
1593
+ var sizeConfig$9 = {
1537
1594
  md: {
1538
1595
  checkSize: 'w-[22px] h-[22px]',
1539
1596
  labelSize: 'text-size-base',
@@ -1544,14 +1601,16 @@ var sizeConfig$8 = {
1544
1601
  },
1545
1602
  };
1546
1603
 
1604
+ var sizeUnion$3 = ['md', 'sm'];
1547
1605
  function Radio(_a) {
1548
1606
  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;
1607
+ var validatedSize = validUnion(size, sizeUnion$3);
1608
+ var _f = sizeConfig$9[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1550
1609
  return (React.createElement("div", { className: "flex items-center" },
1551
1610
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1552
1611
  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
1612
  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)));
1613
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, childrenElement(label))));
1555
1614
  }
1556
1615
  Radio.defaultProps = {
1557
1616
  label: '',
@@ -1562,7 +1621,7 @@ Radio.defaultProps = {
1562
1621
  checked: false,
1563
1622
  };
1564
1623
 
1565
- var sizeConfig$7 = {
1624
+ var sizeConfig$8 = {
1566
1625
  md: {
1567
1626
  inputClass: 'text-size-base font-[350] min-h-10',
1568
1627
  },
@@ -1574,7 +1633,7 @@ var sizeConfig$7 = {
1574
1633
  function TextArea(_a) {
1575
1634
  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
1635
  var inputRow = rows !== null && rows !== void 0 ? rows : 4;
1577
- var inputClass = sizeConfig$7[size].inputClass;
1636
+ var inputClass = sizeConfig$8[size].inputClass;
1578
1637
  return (React.createElement("div", { className: "field-group w-full flex flex-col" },
1579
1638
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1580
1639
  label,
@@ -1594,7 +1653,7 @@ TextArea.defaultProps = {
1594
1653
  rows: 4,
1595
1654
  };
1596
1655
 
1597
- var sizeConfig$6 = {
1656
+ var sizeConfig$7 = {
1598
1657
  md: {
1599
1658
  checkClass: 'w-[22px] h-[22px]',
1600
1659
  labelClass: 'text-size-base font-[350]',
@@ -1605,16 +1664,17 @@ var sizeConfig$6 = {
1605
1664
  },
1606
1665
  };
1607
1666
 
1667
+ var sizeUnion$2 = ['md', 'sm'];
1608
1668
  function Checkbox(_a) {
1609
1669
  var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.checked, checked = _d === void 0 ? false : _d, label = _a.label, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, value = _a.value;
1610
- var _f = sizeConfig$6[size], checkClass = _f.checkClass, labelClass = _f.labelClass;
1670
+ var _f = sizeConfig$7[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
1611
1671
  return (React.createElement("div", { className: "flex items-center" },
1612
1672
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
1613
1673
  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
1674
  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
1675
  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
1676
  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)));
1677
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, childrenElement(label))));
1618
1678
  }
1619
1679
  Checkbox.defaultProps = {
1620
1680
  disabled: false,
@@ -1660,7 +1720,7 @@ CheckboxSimulation.defaultProps = {
1660
1720
  size: 'md',
1661
1721
  };
1662
1722
 
1663
- var sizeConfig$5 = {
1723
+ var sizeConfig$6 = {
1664
1724
  md: {
1665
1725
  searchSize: 'text-size-base p-2.5 font-[350] h-10',
1666
1726
  iconSize: 'right-[10px]',
@@ -1671,7 +1731,7 @@ var sizeConfig$5 = {
1671
1731
  },
1672
1732
  };
1673
1733
 
1674
- var sizeConfig$4 = {
1734
+ var sizeConfig$5 = {
1675
1735
  md: {
1676
1736
  container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
1677
1737
  item: 'min-h-[34px] p-2.5',
@@ -1689,7 +1749,7 @@ function DefaultDropdownItem(_a) {
1689
1749
  var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
1690
1750
  var isOpenDropdown = isHovered || isHoveredSubMenu;
1691
1751
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
1692
- var _h = sizeConfig$4[size], containerClass = _h.container, item = _h.item;
1752
+ var _h = sizeConfig$5[size], containerClass = _h.container, item = _h.item;
1693
1753
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
1694
1754
  var isExistSubDropdown = options.length !== 0;
1695
1755
  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 () { } },
@@ -1707,10 +1767,12 @@ DefaultDropdownItem.defaultProps = {
1707
1767
  };
1708
1768
 
1709
1769
  /* eslint-disable @typescript-eslint/no-explicit-any */
1770
+ var sizeUnion$1 = ['md', 'sm'];
1710
1771
  function SelectInput(_a) {
1711
1772
  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;
1712
1773
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1713
- var _f = sizeConfig$5[size], searchSize = _f.searchSize, iconSize = _f.iconSize;
1774
+ var validatedSize = validUnion(size, sizeUnion$1);
1775
+ var _f = sizeConfig$6[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1714
1776
  var inputRef = React.useRef(null);
1715
1777
  var handleOutsideClick = function (e) {
1716
1778
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1725,14 +1787,14 @@ function SelectInput(_a) {
1725
1787
  });
1726
1788
  return (React.createElement("div", { className: "field-group w-full flex flex-col", ref: inputRef },
1727
1789
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1728
- label,
1790
+ childrenElement(label),
1729
1791
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1730
1792
  React.createElement("div", { className: "group w-full relative" },
1731
1793
  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
1794
  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
1795
  isOpen && (React.createElement("div", { className: "absolute border w-full bg-primary-white border-bia-grey-dark-10 rounded-b-md shadow-lg z-10" }, options.map(function (option) {
1734
1796
  var isSelected = selected && selected.id && option.id === selected.id;
1735
- return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, isSelected: isSelected, onClick: function () {
1797
+ return (React.createElement(DefaultDropdownItem, { label: option.label, size: validatedSize, isSelected: isSelected, onClick: function () {
1736
1798
  setSelected(option);
1737
1799
  setIsOpen(false);
1738
1800
  } }));
@@ -1781,7 +1843,7 @@ function SelectInputSimulation(_a) {
1781
1843
  return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, id: "demo-id" }));
1782
1844
  }
1783
1845
 
1784
- var sizeConfig$3 = {
1846
+ var sizeConfig$4 = {
1785
1847
  md: {
1786
1848
  iconClass: 'right-[10px]',
1787
1849
  iconSize: '18',
@@ -1800,7 +1862,7 @@ var sizeConfig$3 = {
1800
1862
  function LiveSearch(_a) {
1801
1863
  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
1864
  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;
1865
+ var _f = sizeConfig$4[size], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
1804
1866
  var inputRef = React.useRef(null);
1805
1867
  var handleOutsideClick = function (e) {
1806
1868
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1846,7 +1908,7 @@ LiveSearch.defaultProps = {
1846
1908
  value: {},
1847
1909
  };
1848
1910
 
1849
- var sizeConfig$2 = {
1911
+ var sizeConfig$3 = {
1850
1912
  md: {
1851
1913
  containerSize: 'w-[42px] h-[22px]',
1852
1914
  checkSize: 'p-2',
@@ -1861,7 +1923,7 @@ var sizeConfig$2 = {
1861
1923
 
1862
1924
  function Toggle(_a) {
1863
1925
  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;
1926
+ var _h = sizeConfig$3[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
1865
1927
  return (React.createElement("div", { className: "flex items-center" },
1866
1928
  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
1929
  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 +1949,7 @@ var roundedConfig = {
1887
1949
  sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1888
1950
  tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1889
1951
  };
1890
- var sizeConfig$1 = {
1952
+ var sizeConfig$2 = {
1891
1953
  lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1892
1954
  md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1893
1955
  sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
@@ -1897,7 +1959,7 @@ var sizeConfig$1 = {
1897
1959
  function SegmentButtonItem(_a) {
1898
1960
  var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1899
1961
  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));
1962
+ 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
1963
  }
1902
1964
 
1903
1965
  function SegmentButtonGroup(_a) {
@@ -1940,7 +2002,7 @@ function SegmentButtonSimulation(_a) {
1940
2002
  return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
1941
2003
  React.createElement("div", { className: "flex items-center justify-center" },
1942
2004
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
1943
- React.createElement(TbCheck$1, null)),
2005
+ React.createElement(TbCheck, null)),
1944
2006
  content)));
1945
2007
  })));
1946
2008
  }
@@ -1982,7 +2044,7 @@ Modal.defaultProps = {
1982
2044
  title: null,
1983
2045
  };
1984
2046
 
1985
- var sizeConfig = {
2047
+ var sizeConfig$1 = {
1986
2048
  md: 'w-[38px] h-[40px] text-[14px] font-semibold',
1987
2049
  sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
1988
2050
  };
@@ -2032,7 +2094,7 @@ function PaginationBar(_a) {
2032
2094
  };
2033
2095
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2034
2096
  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() })); }),
2097
+ 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
2098
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2037
2099
  }
2038
2100
 
@@ -2122,7 +2184,7 @@ Popover.defaultProps = {
2122
2184
  var config = {
2123
2185
  success: {
2124
2186
  container: 'border-bia-green',
2125
- content: React.createElement(TbCheck$1, { className: "text-[38px] text-bia-green" }),
2187
+ content: React.createElement(TbCheck, { className: "text-[38px] text-bia-green" }),
2126
2188
  },
2127
2189
  failed: {
2128
2190
  container: 'border-bia-red',
@@ -2410,816 +2472,99 @@ TableDemo.defaultProps = {
2410
2472
  tableSize: 'md',
2411
2473
  };
2412
2474
 
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
- },
2475
+ var colorConfig = {
2476
+ default: 'bg-bia-grey-light-50 text-primary-black',
2477
+ blue: 'bg-bia-blue text-primary-white',
2478
+ teal: 'bg-bia-teal text-primary-white',
2479
+ green: 'bg-bia-green text-primary-white',
2480
+ yellow: 'bg-bia-yellow text-primary-white',
2481
+ red: 'bg-bia-red text-primary-white',
2482
+ black: 'bg-primary-black text-primary-white',
2483
+ white: 'bg-primary-white text-primary-black border border-primary-black',
3110
2484
  };
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',
2485
+ var sizeConfig = {
2486
+ md: 'px-[10px] py-[7px] h-[34px] text-size-base',
2487
+ sm: 'px-[10px] py-[4px] h-[22px] text-size-sm',
2488
+ tn: 'px-[8px] py-[2px] h-[18px] text-size-sm',
2489
+ };
2490
+ var iconOnlySizeConfig = {
2491
+ md: 'p-[7px]',
2492
+ sm: 'p-[4px]',
2493
+ tn: 'p-[2px]',
2494
+ };
2495
+ var closeConfig = {
2496
+ default: 'bg-bia-grey-dark-30 text-primary-white',
2497
+ blue: 'bg-bia-white-transparent-50 text-bia-blue',
2498
+ teal: 'bg-bia-white-transparent-50 text-bia-teal',
2499
+ green: 'bg-bia-white-transparent-50 text-bia-green',
2500
+ yellow: 'bg-bia-white-transparent-50 text-bia-yellow',
2501
+ red: 'bg-bia-white-transparent-50 text-bia-red',
2502
+ black: 'bg-bia-white-transparent-50 text-primary-black',
2503
+ white: 'bg-bia-grey-dark-30 text-primary-white',
2504
+ };
2505
+ var rightPaddingConfig = {
2506
+ md: 'pr-[8px]',
2507
+ sm: 'pr-[5px]',
2508
+ tn: 'pr-[3px]',
2509
+ };
2510
+
2511
+ var colorUnion = [
2512
+ 'default',
2513
+ 'blue',
2514
+ 'teal',
2515
+ 'green',
2516
+ 'yellow',
2517
+ 'red',
2518
+ 'black',
2519
+ 'white',
2520
+ 'custom',
2521
+ ];
2522
+ var sizeUnion = ['md', 'sm', 'tn'];
2523
+ var variantUnion = ['label', 'icon', 'closeable'];
2524
+ var TagLabel = function (_a) {
2525
+ 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"]);
2526
+ var validatedColor = validUnion(color, colorUnion);
2527
+ var validatedSize = validUnion(size, sizeUnion);
2528
+ var validatedVariant = validUnion(variant, variantUnion);
2529
+ var defaultIconSize = validatedSize === 'md' ? 'text-xl' : 'text-sm';
2530
+ var roundedClass = validatedVariant === 'icon' ? 'rounded-full' : 'rounded-[50px]';
2531
+ var sizeClass = validatedVariant === 'icon' ? iconOnlySizeConfig[validatedSize] : sizeConfig[validatedSize];
2532
+ var isCloseableClass = validatedVariant === 'closeable' && rightPaddingConfig[validatedSize];
2533
+ var colorClass = validatedColor === 'custom'
2534
+ ? "bg-bia-".concat(bgColor, " text-bia-").concat(textColor)
2535
+ : colorConfig[validatedColor];
2536
+ var blockclass = isBlock && validatedVariant !== 'icon' ? 'w-full' : "w-fit";
2537
+ var maxWidthStyle = !isBlock ? maxWidth + 'px' : '';
2538
+ var textClass = isBlock ? 'text-center' : 'text-left';
2539
+ var containerClass = "".concat(sizeClass, " ").concat(colorClass, " ").concat(roundedClass, " ").concat(isCloseableClass, " ").concat(blockclass);
2540
+ var closeClass = validatedColor === 'custom'
2541
+ ? isDark ? "bg-bia-white-transparent-50 text-bia-".concat(bgColor) : "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
2542
+ : closeConfig[validatedColor];
2543
+ return (open && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base h-fit ".concat(containerClass), style: { maxWidth: maxWidthStyle } }, props),
2544
+ leftIcon ||
2545
+ (validatedVariant === 'icon' && React.createElement(TbCheck, { className: defaultIconSize })),
2546
+ validatedVariant !== 'icon' && (React.createElement("span", { className: "pb-[2px] truncate w-full ".concat(textClass) },
2547
+ " ",
2548
+ text,
2549
+ " ")),
2550
+ validatedVariant !== 'icon' && rightIcon,
2551
+ validatedVariant === 'closeable' && (React.createElement("button", { type: "button", onClick: closeHandler, className: "aspect-square w-[18px] flex justify-center items-center rounded-full mt-[1px] ".concat(closeClass) },
2552
+ React.createElement(TbX, { className: "text-[18px]" }))))));
3131
2553
  };
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';
3186
- }
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
- }
3216
2554
  TagLabel.defaultProps = {
3217
2555
  variant: 'default',
3218
2556
  size: 'sm',
3219
2557
  open: true,
3220
2558
  closeHandler: function () { },
3221
- rightIcon: null,
3222
2559
  leftIcon: null,
2560
+ rightIcon: null,
2561
+ left: null,
2562
+ right: null,
2563
+ bgColor: null,
2564
+ textColor: null,
2565
+ isBlock: false,
2566
+ maxWidth: 300,
2567
+ isDark: false,
3223
2568
  };
3224
2569
 
3225
2570
  var classConfig = {