bianic-ui 1.0.0-beta.17 → 1.0.0-beta.19

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.
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
  },
@@ -378,13 +378,13 @@ var radiusConfig = {
378
378
  tn: 'rounded-radius-full focus-visible:rounded-radius-full',
379
379
  },
380
380
  };
381
- var sizeConfig$a = {
381
+ var sizeConfig$b = {
382
382
  lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px] text-size-md',
383
383
  md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] text-size-base',
384
384
  sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] text-size-sm',
385
385
  tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px] text-size-tiny',
386
386
  };
387
- var iconOnlySizeConfig = {
387
+ var iconOnlySizeConfig$1 = {
388
388
  lg: 'p-[13px] flex items-center justify-center gap-[10px]',
389
389
  md: ' p-[11px] flex items-center justify-center gap-[5px]',
390
390
  sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
@@ -434,8 +434,8 @@ function Button(_a) {
434
434
  var validatedSize = validUnion(size, sizeUnion$4);
435
435
  var validatedRadius = validUnion(radius, radiusUnion);
436
436
  var sizeClass = label
437
- ? sizeConfig$a[validatedSize]
438
- : iconOnlySizeConfig[validatedSize];
437
+ ? sizeConfig$b[validatedSize]
438
+ : iconOnlySizeConfig$1[validatedSize];
439
439
  var classString = "\n ".concat(variantConfig$1[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig[validatedRadius][validatedSize], " \n ").concat(className, "\n ");
440
440
  return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center ".concat(classString), disabled: disabled }, props),
441
441
  childrenElement(iconLeft || left),
@@ -1478,7 +1478,7 @@ Divider.defaultProps = {
1478
1478
  classname: '',
1479
1479
  };
1480
1480
 
1481
- var sizeConfig$9 = {
1481
+ var sizeConfig$a = {
1482
1482
  md: {
1483
1483
  fieldSize: 'text-size-base p-2.5 font-[350] h-10',
1484
1484
  iconPosition: 'right-[10px]',
@@ -1512,7 +1512,7 @@ var styleConfig = {
1512
1512
  function ValidationIcon(_a) {
1513
1513
  var isValid = _a.isValid, iconSize = _a.iconSize;
1514
1514
  if (isValid) {
1515
- return (React.createElement(TbCheck$1, { className: "text-bia-green", style: { fontSize: iconSize } }));
1515
+ return (React.createElement(TbCheck, { className: "text-bia-green", style: { fontSize: iconSize } }));
1516
1516
  }
1517
1517
  return React.createElement(TbX, { className: "text-bia-red", style: { fontSize: iconSize } });
1518
1518
  }
@@ -1533,7 +1533,7 @@ function TextInput(_a) {
1533
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;
1534
1534
  var _m = React.useState(false), isShow = _m[0], setIsShow = _m[1];
1535
1535
  var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
1536
- 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;
1537
1537
  var typeVariant = variant;
1538
1538
  if (variant === 'password')
1539
1539
  typeVariant = isShow ? 'text' : 'password';
@@ -1590,7 +1590,7 @@ TextInputSimulation.defaultProps = {
1590
1590
  };
1591
1591
 
1592
1592
  // Desc: Radio button size configuration
1593
- var sizeConfig$8 = {
1593
+ var sizeConfig$9 = {
1594
1594
  md: {
1595
1595
  checkSize: 'w-[22px] h-[22px]',
1596
1596
  labelSize: 'text-size-base',
@@ -1605,7 +1605,7 @@ var sizeUnion$3 = ['md', 'sm'];
1605
1605
  function Radio(_a) {
1606
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;
1607
1607
  var validatedSize = validUnion(size, sizeUnion$3);
1608
- var _f = sizeConfig$8[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1608
+ var _f = sizeConfig$9[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
1609
1609
  return (React.createElement("div", { className: "flex items-center" },
1610
1610
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1611
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 }),
@@ -1621,7 +1621,7 @@ Radio.defaultProps = {
1621
1621
  checked: false,
1622
1622
  };
1623
1623
 
1624
- var sizeConfig$7 = {
1624
+ var sizeConfig$8 = {
1625
1625
  md: {
1626
1626
  inputClass: 'text-size-base font-[350] min-h-10',
1627
1627
  },
@@ -1633,7 +1633,7 @@ var sizeConfig$7 = {
1633
1633
  function TextArea(_a) {
1634
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"]);
1635
1635
  var inputRow = rows !== null && rows !== void 0 ? rows : 4;
1636
- var inputClass = sizeConfig$7[size].inputClass;
1636
+ var inputClass = sizeConfig$8[size].inputClass;
1637
1637
  return (React.createElement("div", { className: "field-group w-full flex flex-col" },
1638
1638
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1639
1639
  label,
@@ -1653,7 +1653,7 @@ TextArea.defaultProps = {
1653
1653
  rows: 4,
1654
1654
  };
1655
1655
 
1656
- var sizeConfig$6 = {
1656
+ var sizeConfig$7 = {
1657
1657
  md: {
1658
1658
  checkClass: 'w-[22px] h-[22px]',
1659
1659
  labelClass: 'text-size-base font-[350]',
@@ -1667,7 +1667,7 @@ var sizeConfig$6 = {
1667
1667
  var sizeUnion$2 = ['md', 'sm'];
1668
1668
  function Checkbox(_a) {
1669
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;
1670
- var _f = sizeConfig$6[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
1670
+ var _f = sizeConfig$7[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
1671
1671
  return (React.createElement("div", { className: "flex items-center" },
1672
1672
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
1673
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 }),
@@ -1720,7 +1720,7 @@ CheckboxSimulation.defaultProps = {
1720
1720
  size: 'md',
1721
1721
  };
1722
1722
 
1723
- var sizeConfig$5 = {
1723
+ var sizeConfig$6 = {
1724
1724
  md: {
1725
1725
  searchSize: 'text-size-base p-2.5 font-[350] h-10',
1726
1726
  iconSize: 'right-[10px]',
@@ -1731,7 +1731,7 @@ var sizeConfig$5 = {
1731
1731
  },
1732
1732
  };
1733
1733
 
1734
- var sizeConfig$4 = {
1734
+ var sizeConfig$5 = {
1735
1735
  md: {
1736
1736
  container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
1737
1737
  item: 'min-h-[34px] p-2.5',
@@ -1749,7 +1749,7 @@ function DefaultDropdownItem(_a) {
1749
1749
  var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
1750
1750
  var isOpenDropdown = isHovered || isHoveredSubMenu;
1751
1751
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
1752
- var _h = sizeConfig$4[size], containerClass = _h.container, item = _h.item;
1752
+ var _h = sizeConfig$5[size], containerClass = _h.container, item = _h.item;
1753
1753
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
1754
1754
  var isExistSubDropdown = options.length !== 0;
1755
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 () { } },
@@ -1772,7 +1772,7 @@ function SelectInput(_a) {
1772
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;
1773
1773
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1774
1774
  var validatedSize = validUnion(size, sizeUnion$1);
1775
- var _f = sizeConfig$5[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1775
+ var _f = sizeConfig$6[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
1776
1776
  var inputRef = React.useRef(null);
1777
1777
  var handleOutsideClick = function (e) {
1778
1778
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1843,7 +1843,7 @@ function SelectInputSimulation(_a) {
1843
1843
  return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, id: "demo-id" }));
1844
1844
  }
1845
1845
 
1846
- var sizeConfig$3 = {
1846
+ var sizeConfig$4 = {
1847
1847
  md: {
1848
1848
  iconClass: 'right-[10px]',
1849
1849
  iconSize: '18',
@@ -1862,7 +1862,7 @@ var sizeConfig$3 = {
1862
1862
  function LiveSearch(_a) {
1863
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;
1864
1864
  var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
1865
- 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;
1866
1866
  var inputRef = React.useRef(null);
1867
1867
  var handleOutsideClick = function (e) {
1868
1868
  if (inputRef.current && !inputRef.current.contains(e.target)) {
@@ -1908,7 +1908,7 @@ LiveSearch.defaultProps = {
1908
1908
  value: {},
1909
1909
  };
1910
1910
 
1911
- var sizeConfig$2 = {
1911
+ var sizeConfig$3 = {
1912
1912
  md: {
1913
1913
  containerSize: 'w-[42px] h-[22px]',
1914
1914
  checkSize: 'p-2',
@@ -1923,7 +1923,7 @@ var sizeConfig$2 = {
1923
1923
 
1924
1924
  function Toggle(_a) {
1925
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;
1926
- 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;
1927
1927
  return (React.createElement("div", { className: "flex items-center" },
1928
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 },
1929
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" }),
@@ -1949,7 +1949,7 @@ var roundedConfig = {
1949
1949
  sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
1950
1950
  tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
1951
1951
  };
1952
- var sizeConfig$1 = {
1952
+ var sizeConfig$2 = {
1953
1953
  lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
1954
1954
  md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
1955
1955
  sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
@@ -1959,7 +1959,7 @@ var sizeConfig$1 = {
1959
1959
  function SegmentButtonItem(_a) {
1960
1960
  var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
1961
1961
  var isSelected = selected ? 'selected' : 'notSelected';
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$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));
1963
1963
  }
1964
1964
 
1965
1965
  function SegmentButtonGroup(_a) {
@@ -2002,7 +2002,7 @@ function SegmentButtonSimulation(_a) {
2002
2002
  return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
2003
2003
  React.createElement("div", { className: "flex items-center justify-center" },
2004
2004
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
2005
- React.createElement(TbCheck$1, null)),
2005
+ React.createElement(TbCheck, null)),
2006
2006
  content)));
2007
2007
  })));
2008
2008
  }
@@ -2044,7 +2044,7 @@ Modal.defaultProps = {
2044
2044
  title: null,
2045
2045
  };
2046
2046
 
2047
- var sizeConfig = {
2047
+ var sizeConfig$1 = {
2048
2048
  md: 'w-[38px] h-[40px] text-[14px] font-semibold',
2049
2049
  sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
2050
2050
  };
@@ -2094,7 +2094,7 @@ function PaginationBar(_a) {
2094
2094
  };
2095
2095
  return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
2096
2096
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
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[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() })); }),
2098
2098
  React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
2099
2099
  }
2100
2100
 
@@ -2184,7 +2184,7 @@ Popover.defaultProps = {
2184
2184
  var config = {
2185
2185
  success: {
2186
2186
  container: 'border-bia-green',
2187
- content: React.createElement(TbCheck$1, { className: "text-[38px] text-bia-green" }),
2187
+ content: React.createElement(TbCheck, { className: "text-[38px] text-bia-green" }),
2188
2188
  },
2189
2189
  failed: {
2190
2190
  container: 'border-bia-red',
@@ -2472,724 +2472,40 @@ TableDemo.defaultProps = {
2472
2472
  tableSize: 'md',
2473
2473
  };
2474
2474
 
2475
- function TbCheck() {
2476
- return (React.createElement("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2477
- 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" })));
2478
- }
2479
-
2480
- function TbCheckBlack() {
2481
- return (React.createElement("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2482
- 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" })));
2483
- }
2484
-
2485
- function TbCheckBlackSmall() {
2486
- return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2487
- 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" })));
2488
- }
2489
-
2490
- function TbCloseAbleBlack(_a) {
2491
- var color = _a.color;
2492
- return (React.createElement("svg", { width: "18.1", height: "18.1", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2493
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "#DADEEB" }),
2494
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "black", fillOpacity: "0.3" }),
2495
- 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 })));
2496
- }
2497
-
2498
- function TbCheckWhiteSmall() {
2499
- return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2500
- 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" })));
2501
- }
2502
-
2503
- function TbCloseAbleBlackSmall() {
2504
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2505
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
2506
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
2507
- 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" })));
2508
- }
2509
-
2510
- function TbCloseAbleWhiteSmall(_a) {
2511
- var color = _a.color;
2512
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2513
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "white", fillOpacity: "0.5" }),
2514
- 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 })));
2515
- }
2516
-
2517
- function TbCloseAbleGraySmall() {
2518
- return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2519
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
2520
- React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
2521
- 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" })));
2522
- }
2523
-
2524
- function TbCloseable(_a) {
2525
- var color = _a.color;
2526
- return (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2527
- React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "white", fillOpacity: "0.5" }),
2528
- 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 })));
2529
- }
2530
-
2531
- var TagLabelConfig = {
2532
- default: {
2533
- md: {
2534
- iconColor: 'text-white',
2535
- XColor: 'text-bia-coolgrey',
2536
- XcolorV: 'text-primary-black',
2537
- label: {
2538
- bg: 'bg-bia-grey-light-50',
2539
- text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
2540
- padding: 'px-[10px] py-[7px] ',
2541
- radius: 'rounded-[50px]',
2542
- Xicon: '',
2543
- },
2544
- closeable: {
2545
- bg: 'bg-bia-grey-light-50',
2546
- text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
2547
- padding: 'px-[10px] py-[7px] ',
2548
- radius: 'rounded-[50px]',
2549
- Xicon: TbCloseAbleBlack,
2550
- },
2551
- icon: {
2552
- bg: 'bg-bia-grey-light-50',
2553
- text: 'text-[#2F2F2F] text-[18.67px]',
2554
- padding: 'p-[7px] ',
2555
- radius: 'rounded-[50px]',
2556
- Xicon: TbCheckBlack,
2557
- },
2558
- },
2559
- sm: {
2560
- iconColor: 'text-white',
2561
- XColor: 'text-bia-coolgrey',
2562
- XcolorV: 'text-primary-black',
2563
- label: {
2564
- bg: "bg-bia-grey-light-50",
2565
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
2566
- padding: "px-[10px] py-[5px] ",
2567
- radius: "rounded-[12px]",
2568
- Xicon: '',
2569
- },
2570
- closeable: {
2571
- bg: "bg-bia-grey-light-50",
2572
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
2573
- padding: "px-[10px] py-[2px]",
2574
- radius: "rounded-[12px]",
2575
- Xicon: TbCloseAbleBlackSmall,
2576
- },
2577
- icon: {
2578
- bg: "bg-bia-grey-light-50",
2579
- text: "text-[#2F2F2F] text-[13.06px]",
2580
- padding: "p-[4px]",
2581
- radius: "rounded-[12px]",
2582
- Xicon: TbCheckBlackSmall,
2583
- },
2584
- },
2585
- tn: {
2586
- iconColor: 'text-white',
2587
- XColor: 'text-bia-coolgrey',
2588
- XcolorV: 'text-primary-black',
2589
- label: {
2590
- bg: "bg-bia-grey-light-50",
2591
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
2592
- padding: "px-[8px] py-[2px]",
2593
- radius: "rounded-[12px]",
2594
- Xicon: '',
2595
- },
2596
- closeable: {
2597
- bg: "bg-bia-grey-light-50",
2598
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
2599
- padding: "px-[8px] py-[2px]",
2600
- radius: "rounded-[12px]",
2601
- Xicon: TbCloseAbleBlackSmall,
2602
- },
2603
- icon: {
2604
- bg: "bg-bia-grey-light-50",
2605
- text: "text-[#2F2F2F] text-[11.2px]",
2606
- padding: "p-[3px]",
2607
- radius: "rounded-[12px]",
2608
- Xicon: TbCheckBlackSmall,
2609
- },
2610
- },
2611
- },
2612
- blue: {
2613
- md: {
2614
- iconColor: 'text-bia-blue',
2615
- XColor: 'text-bia-blue-light-50',
2616
- XcolorV: 'text-white',
2617
- label: {
2618
- bg: "bg-bia-blue",
2619
- text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
2620
- padding: "px-[10px] py-[7px] ",
2621
- radius: "rounded-[50px]",
2622
- Xicon: '',
2623
- },
2624
- closeable: {
2625
- bg: "bg-bia-blue",
2626
- text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
2627
- padding: "px-[10px] py-[7px] ",
2628
- radius: "rounded-[50px]",
2629
- Xicon: TbCloseable,
2630
- },
2631
- icon: {
2632
- bg: "bg-bia-blue",
2633
- text: "text-[#FFFFFF] text-[18.67px]",
2634
- padding: "p-[7px] ",
2635
- radius: "rounded-[50px]",
2636
- Xicon: TbCheck,
2637
- },
2638
- },
2639
- sm: {
2640
- iconColor: 'text-bia-blue',
2641
- XColor: 'text-white',
2642
- XcolorV: 'text-white',
2643
- label: {
2644
- bg: "bg-bia-blue",
2645
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2646
- padding: "px-[10px] py-[2px]",
2647
- radius: "rounded-[12px]",
2648
- Xicon: '',
2649
- },
2650
- closeable: {
2651
- bg: "bg-bia-blue",
2652
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2653
- padding: "px-[10px] py-[2px] ",
2654
- radius: "rounded-[12px]",
2655
- Xicon: TbCloseAbleWhiteSmall,
2656
- },
2657
- icon: {
2658
- bg: "bg-bia-blue",
2659
- text: "text-[#FFF] text-[13.06px]",
2660
- padding: "p-[4px] ",
2661
- radius: "rounded-[12px]",
2662
- Xicon: TbCheckWhiteSmall,
2663
- },
2664
- },
2665
- tn: {
2666
- iconColor: 'text-bia-blue',
2667
- XColor: 'text-white',
2668
- XcolorV: 'text-white',
2669
- label: {
2670
- bg: "bg-bia-blue",
2671
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2672
- padding: "px-[8px] py-[2px]",
2673
- radius: "rounded-[12px]",
2674
- Xicon: '',
2675
- },
2676
- closeable: {
2677
- bg: "bg-bia-blue",
2678
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2679
- padding: "px-[8px] py-[2px]",
2680
- radius: "rounded-[12px]",
2681
- Xicon: TbCloseAbleWhiteSmall,
2682
- },
2683
- icon: {
2684
- bg: "bg-bia-blue",
2685
- text: "text-[#FFF] text-[13.06px]",
2686
- padding: "p-[3px]",
2687
- radius: "rounded-[12px]",
2688
- Xicon: TbCheckWhiteSmall,
2689
- },
2690
- },
2691
- },
2692
- teal: {
2693
- md: {
2694
- iconColor: 'text-bia-teal',
2695
- XColor: 'text-bia-teal-light-50',
2696
- XcolorV: 'text-white',
2697
- label: {
2698
- bg: "bg-bia-teal",
2699
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2700
- padding: "px-[10px] py-[7px] ",
2701
- radius: "rounded-[50px]",
2702
- Xicon: '',
2703
- },
2704
- closeable: {
2705
- bg: "bg-bia-teal",
2706
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2707
- padding: "px-[10px] py-[7px] ",
2708
- radius: "rounded-[50px]",
2709
- Xicon: TbCloseable,
2710
- },
2711
- icon: {
2712
- bg: "bg-bia-teal",
2713
- text: "text-[#FFF] text-[18.67px]",
2714
- padding: "p-[7px] ",
2715
- radius: "rounded-[50px]",
2716
- Xicon: TbCheck,
2717
- },
2718
- },
2719
- sm: {
2720
- iconColor: 'text-bia-teal',
2721
- XColor: 'text-white',
2722
- XcolorV: 'text-white',
2723
- label: {
2724
- bg: "bg-bia-teal",
2725
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2726
- padding: "px-[10px] py-[2px]",
2727
- radius: "rounded-[12px]",
2728
- Xicon: '',
2729
- },
2730
- closeable: {
2731
- bg: "bg-bia-teal",
2732
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2733
- padding: "px-[10px] py-[2px]",
2734
- radius: "rounded-[12px]",
2735
- Xicon: TbCloseAbleWhiteSmall,
2736
- },
2737
- icon: {
2738
- bg: "bg-bia-teal",
2739
- text: "text-[#FFF] text-[13.06px]",
2740
- padding: "p-[4px]",
2741
- radius: "rounded-[12px]",
2742
- Xicon: TbCheckWhiteSmall,
2743
- },
2744
- },
2745
- tn: {
2746
- iconColor: 'text-bia-teal',
2747
- XColor: 'text-white',
2748
- XcolorV: 'text-white',
2749
- label: {
2750
- bg: "bg-bia-teal",
2751
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2752
- padding: "px-[8px] py-[2px]",
2753
- radius: "rounded-[12px]",
2754
- Xicon: '',
2755
- },
2756
- closeable: {
2757
- bg: "bg-bia-teal",
2758
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2759
- padding: "px-[8px] py-[2px]",
2760
- radius: "rounded-[12px]",
2761
- Xicon: TbCloseAbleWhiteSmall,
2762
- },
2763
- icon: {
2764
- bg: "bg-bia-teal",
2765
- text: "text-[#FFF] text-[11.2px]",
2766
- padding: "p-[3px] ",
2767
- radius: "rounded-[12px]",
2768
- Xicon: TbCheckWhiteSmall,
2769
- },
2770
- },
2771
- },
2772
- green: {
2773
- md: {
2774
- iconColor: 'text-bia-green',
2775
- XColor: 'text-bia-green-light-50',
2776
- XcolorV: 'text-white',
2777
- label: {
2778
- bg: "bg-bia-green",
2779
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2780
- padding: "px-[10px] py-[7px] ",
2781
- radius: "rounded-[50px]",
2782
- Xicon: '',
2783
- },
2784
- closeable: {
2785
- bg: "bg-bia-green",
2786
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2787
- padding: "px-[10px] py-[7px] ",
2788
- radius: "rounded-[50px]",
2789
- Xicon: TbCloseable,
2790
- },
2791
- icon: {
2792
- bg: "bg-bia-green",
2793
- text: "text-[#FFF] text-[18.67px]",
2794
- padding: "p-[7px] ",
2795
- radius: "rounded-[50px]",
2796
- Xicon: TbCheck,
2797
- },
2798
- },
2799
- sm: {
2800
- iconColor: 'text-bia-green',
2801
- XColor: 'text-white',
2802
- XcolorV: 'text-white',
2803
- label: {
2804
- bg: "bg-bia-green",
2805
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2806
- padding: "px-[10px] py-[2px]",
2807
- radius: "rounded-[12px]",
2808
- Xicon: '',
2809
- },
2810
- closeable: {
2811
- bg: "bg-bia-green",
2812
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2813
- padding: "px-[10px] py-[2px]",
2814
- radius: "rounded-[12px]",
2815
- Xicon: TbCloseAbleWhiteSmall,
2816
- },
2817
- icon: {
2818
- bg: "bg-bia-green",
2819
- text: "text-[#FFF] text-[13.06px]",
2820
- padding: "p-[4px] ",
2821
- radius: "rounded-[12px]",
2822
- Xicon: TbCheckWhiteSmall,
2823
- },
2824
- },
2825
- tn: {
2826
- iconColor: 'text-bia-green',
2827
- XColor: 'text-white',
2828
- XcolorV: 'text-white',
2829
- label: {
2830
- bg: "bg-bia-green",
2831
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2832
- padding: "px-[8px] py-[2px] ",
2833
- radius: "rounded-[12px]",
2834
- Xicon: '',
2835
- },
2836
- closeable: {
2837
- bg: "bg-bia-green",
2838
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2839
- padding: "px-[8px] py-[2px] ",
2840
- radius: "rounded-[12px]",
2841
- Xicon: TbCloseAbleWhiteSmall,
2842
- },
2843
- icon: {
2844
- bg: "bg-bia-green",
2845
- text: "text-[#FFF] text-[11.2px]",
2846
- padding: "p-[3px] ",
2847
- radius: "rounded-[12px]",
2848
- Xicon: TbCheckWhiteSmall,
2849
- },
2850
- },
2851
- },
2852
- yellow: {
2853
- md: {
2854
- iconColor: 'text-bia-orange',
2855
- XColor: 'text-bia-orange-light-50',
2856
- XcolorV: 'text-white',
2857
- label: {
2858
- bg: "bg-[#FF7B00]",
2859
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2860
- padding: "px-[10px] py-[7px] ",
2861
- radius: "rounded-[50px]",
2862
- Xicon: '',
2863
- },
2864
- closeable: {
2865
- bg: "bg-[#FF7B00]",
2866
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2867
- padding: "px-[10px] py-[7px] ",
2868
- radius: "rounded-[50px]",
2869
- Xicon: TbCloseable,
2870
- },
2871
- icon: {
2872
- bg: "bg-[#FF7B00]",
2873
- text: "text-[#FFF] text-[18.67px]",
2874
- padding: "p-[7px] ",
2875
- radius: "rounded-[50px]",
2876
- Xicon: TbCheck,
2877
- },
2878
- },
2879
- sm: {
2880
- iconColor: 'text-bia-orange',
2881
- XColor: 'text-white',
2882
- XcolorV: 'text-white',
2883
- label: {
2884
- bg: "bg-[#FF7B00]",
2885
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2886
- padding: "px-[10px] py-[2px]",
2887
- radius: "rounded-[12px]",
2888
- Xicon: '',
2889
- },
2890
- closeable: {
2891
- bg: "bg-[#FF7B00]",
2892
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2893
- padding: "px-[10px] py-[2px]",
2894
- radius: "rounded-[12px]",
2895
- Xicon: TbCloseAbleWhiteSmall,
2896
- },
2897
- icon: {
2898
- bg: "bg-[#FF7B00]",
2899
- text: "text-[#FFF] text-[13.06px]",
2900
- padding: "p-[4px]",
2901
- radius: "rounded-[12px]",
2902
- Xicon: TbCheckWhiteSmall,
2903
- },
2904
- },
2905
- tn: {
2906
- iconColor: 'text-bia-orange',
2907
- XColor: 'text-white',
2908
- XcolorV: 'text-white',
2909
- label: {
2910
- bg: "bg-[#FF7B00]",
2911
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2912
- padding: "px-[8px] py-[2px]",
2913
- radius: "rounded-[12px]",
2914
- Xicon: '',
2915
- },
2916
- closeable: {
2917
- bg: "bg-[#FF7B00]",
2918
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2919
- padding: "px-[8px] py-[2px] ",
2920
- radius: "rounded-[12px]",
2921
- Xicon: TbCloseAbleWhiteSmall,
2922
- },
2923
- icon: {
2924
- bg: "bg-[#FF7B00]",
2925
- text: "text-[#FFF] text-[11.2px]",
2926
- padding: "p-[3px] ",
2927
- radius: "rounded-[12px]",
2928
- Xicon: TbCheckWhiteSmall,
2929
- },
2930
- },
2931
- },
2932
- red: {
2933
- md: {
2934
- iconColor: 'text-bia-red',
2935
- XColor: 'text-bia-red-light-50',
2936
- XcolorV: 'text-white',
2937
- label: {
2938
- bg: "bg-bia-red",
2939
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2940
- padding: "px-[10px] py-[7px] ",
2941
- radius: "rounded-[50px]",
2942
- Xicon: '',
2943
- },
2944
- closeable: {
2945
- bg: "bg-bia-red",
2946
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
2947
- padding: "px-[10px] py-[7px] ",
2948
- radius: "rounded-[50px]",
2949
- Xicon: TbCloseable,
2950
- },
2951
- icon: {
2952
- bg: "bg-bia-red",
2953
- text: "text-[#FFF] text-[18.67px]",
2954
- padding: "p-[7px]",
2955
- radius: "rounded-[50px]",
2956
- Xicon: TbCheck,
2957
- },
2958
- },
2959
- sm: {
2960
- iconColor: 'text-bia-red',
2961
- XColor: 'text-white',
2962
- XcolorV: 'text-white',
2963
- label: {
2964
- bg: "bg-bia-red",
2965
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2966
- padding: "px-[10px] py-[2px]",
2967
- radius: "rounded-[12px]",
2968
- Xicon: '',
2969
- },
2970
- closeable: {
2971
- bg: "bg-bia-red",
2972
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
2973
- padding: "px-[10px] py-[2px] ",
2974
- radius: "rounded-[12px]",
2975
- Xicon: TbCloseAbleWhiteSmall,
2976
- },
2977
- icon: {
2978
- bg: "bg-bia-red",
2979
- text: "text-[#FFF] text-[13.06px]",
2980
- padding: "p-[4px] ",
2981
- radius: "rounded-[12px]",
2982
- Xicon: TbCheckWhiteSmall,
2983
- },
2984
- },
2985
- tn: {
2986
- iconColor: 'text-bia-red',
2987
- XColor: 'text-white',
2988
- XcolorV: 'text-white',
2989
- label: {
2990
- bg: "bg-bia-red",
2991
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2992
- padding: "px-[8px] py-[2px] ",
2993
- radius: "rounded-[12px]",
2994
- Xicon: '',
2995
- },
2996
- closeable: {
2997
- bg: "bg-bia-red",
2998
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
2999
- padding: "px-[8px] py-[2px] ",
3000
- radius: "rounded-[12px]",
3001
- Xicon: TbCloseAbleWhiteSmall,
3002
- },
3003
- icon: {
3004
- bg: "bg-bia-red",
3005
- text: "text-[#FFF] text-[11.2px]",
3006
- padding: "p-[3px] ",
3007
- radius: "rounded-[12px]",
3008
- Xicon: TbCheckWhiteSmall,
3009
- },
3010
- },
3011
- },
3012
- black: {
3013
- md: {
3014
- iconColor: 'text-[#2f2f2f]',
3015
- XColor: 'text-bia-coolgrey',
3016
- XcolorV: 'text-white',
3017
- label: {
3018
- bg: "bg-primary-black",
3019
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
3020
- padding: "px-[10px] py-[7px] ",
3021
- radius: "rounded-[50px]",
3022
- Xicon: '',
3023
- },
3024
- closeable: {
3025
- bg: "bg-primary-black",
3026
- text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
3027
- padding: "px-[10px] py-[7px] ",
3028
- radius: "rounded-[50px]",
3029
- Xicon: TbCloseable,
3030
- },
3031
- icon: {
3032
- bg: "bg-primary-black",
3033
- text: "text-[#FFF] text-[18.67px]",
3034
- padding: "p-[7px] ",
3035
- radius: "rounded-[50px]",
3036
- Xicon: TbCheck,
3037
- },
3038
- },
3039
- sm: {
3040
- iconColor: 'text-[#2f2f2f]',
3041
- XColor: 'text-white',
3042
- XcolorV: 'text-white',
3043
- label: {
3044
- bg: "bg-primary-black",
3045
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
3046
- padding: "px-[10px] py-[2px] ",
3047
- radius: "rounded-[12px]",
3048
- Xicon: '',
3049
- },
3050
- closeable: {
3051
- bg: "bg-primary-black",
3052
- text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
3053
- padding: "px-[10px] py-[2px] ",
3054
- radius: "rounded-[12px]",
3055
- Xicon: TbCloseAbleWhiteSmall,
3056
- },
3057
- icon: {
3058
- bg: "bg-primary-black",
3059
- text: "text-[#FFF] text-[13.06px]",
3060
- padding: "p-[4px] ",
3061
- radius: "rounded-[12px]",
3062
- Xicon: TbCheckWhiteSmall,
3063
- },
3064
- },
3065
- tn: {
3066
- iconColor: 'text-[#2f2f2f]',
3067
- XColor: 'text-white',
3068
- XcolorV: 'text-white',
3069
- label: {
3070
- bg: "bg-primary-black",
3071
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
3072
- padding: "px-[8px] py-[2px] ",
3073
- radius: "rounded-[12px]",
3074
- Xicon: '',
3075
- },
3076
- closeable: {
3077
- bg: "bg-primary-black",
3078
- text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
3079
- padding: "px-[8px] py-[2px] ",
3080
- radius: "rounded-[12px]",
3081
- Xicon: TbCloseAbleWhiteSmall,
3082
- },
3083
- icon: {
3084
- bg: "bg-primary-black",
3085
- text: "text-[#FFF] text-[11.2px]",
3086
- padding: "p-[3px] ",
3087
- radius: "rounded-[12px]",
3088
- Xicon: TbCheckWhiteSmall,
3089
- },
3090
- },
3091
- },
3092
- white: {
3093
- md: {
3094
- iconColor: 'text-white',
3095
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3096
- XcolorV: 'text-primary-black',
3097
- label: {
3098
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3099
- text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
3100
- padding: "px-[10px] py-[7px] ",
3101
- radius: "rounded-[50px]",
3102
- Xicon: '',
3103
- },
3104
- closeable: {
3105
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3106
- text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
3107
- padding: "px-[10px] py-[7px] ",
3108
- radius: "rounded-[50px]",
3109
- Xicon: TbCloseAbleBlack,
3110
- },
3111
- icon: {
3112
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3113
- text: "text-[#2F2F2F] text-[18.67px]",
3114
- padding: "p-[7px]",
3115
- radius: "rounded-[50px]",
3116
- Xicon: TbCheckBlack,
3117
- },
3118
- },
3119
- sm: {
3120
- iconColor: 'text-white',
3121
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3122
- XcolorV: 'text-primary-black',
3123
- label: {
3124
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3125
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
3126
- padding: "px-[10px] py-[2px] ",
3127
- radius: "rounded-[12px]",
3128
- Xicon: '',
3129
- },
3130
- closeable: {
3131
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3132
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
3133
- padding: "px-[10px] py-[2px] ",
3134
- radius: "rounded-[12px]",
3135
- Xicon: TbCloseAbleGraySmall,
3136
- },
3137
- icon: {
3138
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3139
- text: "text-[#2F2F2F] text-[6.53px]",
3140
- padding: "p-[4px] ",
3141
- radius: "rounded-[12px]",
3142
- Xicon: TbCheckBlackSmall,
3143
- },
3144
- },
3145
- tn: {
3146
- iconColor: 'text-white',
3147
- XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
3148
- XcolorV: 'text-primary-black',
3149
- label: {
3150
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3151
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
3152
- padding: "px-[8px] py-[2px] ",
3153
- radius: "rounded-[12px]",
3154
- Xicon: '',
3155
- },
3156
- closeable: {
3157
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3158
- text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
3159
- padding: "px-[8px] py-[2px] ",
3160
- radius: "rounded-[12px]",
3161
- Xicon: TbCloseAbleGraySmall,
3162
- },
3163
- icon: {
3164
- bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
3165
- text: "text-[#2F2F2F] text-[11.2px]",
3166
- padding: "p-[3px] ",
3167
- radius: "rounded-[12px]",
3168
- Xicon: TbCheckBlackSmall,
3169
- },
3170
- },
3171
- },
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',
3172
2484
  };
3173
-
3174
- function CloseIcon(_a) {
3175
- var _b = _a.size, size = _b === void 0 ? 'md' : _b;
3176
- var iconSize;
3177
- if (size === 'tn') {
3178
- iconSize = '10';
3179
- }
3180
- else if (size === 'sm') {
3181
- iconSize = '10';
3182
- }
3183
- else {
3184
- iconSize = '14';
3185
- }
3186
- 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" },
3187
- React.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
3188
- React.createElement("path", { d: "M18 6l-12 12" }),
3189
- React.createElement("path", { d: "M6 6l12 12" })));
3190
- }
3191
- CloseIcon.defaultProps = {
3192
- 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]',
3193
2509
  };
3194
2510
 
3195
2511
  var colorUnion = [
@@ -3201,96 +2517,40 @@ var colorUnion = [
3201
2517
  'red',
3202
2518
  'black',
3203
2519
  'white',
2520
+ 'custom',
3204
2521
  ];
3205
2522
  var sizeUnion = ['md', 'sm', 'tn'];
3206
2523
  var variantUnion = ['label', 'icon', 'closeable'];
3207
- function TagLabel(_a) {
3208
- var text = _a.text, _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, left = _a.left, right = _a.right, props = __rest(_a, ["text", "closeHandler", "size", "variant", "open", "color", "leftIcon", "rightIcon", "left", "right"]);
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"]);
3209
2526
  var validatedColor = validUnion(color, colorUnion);
3210
2527
  var validatedSize = validUnion(size, sizeUnion);
3211
2528
  var validatedVariant = validUnion(variant, variantUnion);
3212
- var config = TagLabelConfig[validatedColor][validatedSize][validatedVariant];
3213
- var configIcon = TagLabelConfig[validatedColor][validatedSize];
3214
- var configbg = config.bg;
3215
- var configtext = config.text;
3216
- var configpadding = config.padding;
3217
- var configradius = config.radius;
3218
- var configX = config.Xicon;
3219
- var configXcolor = configIcon.XColor;
3220
- var configXcolorV = configIcon.XcolorV;
3221
- var iconColor = configIcon.iconColor;
3222
- var IconContainer = {
3223
- sm: 'h-[14px] w-[14px]',
3224
- tn: 'h-[14px] w-[14px]',
3225
- md: 'h-[20px] w-[20px]',
3226
- };
3227
- var renderIcon = function (icon) {
3228
- if (typeof icon === 'string') {
3229
- return React.createElement("span", null, icon);
3230
- }
3231
- var IconComponent = icon;
3232
- var textSize;
3233
- if (validatedSize === 'md') {
3234
- textSize = 'text-[20px]';
3235
- }
3236
- else if (validatedSize === 'sm' || validatedSize === 'tn') {
3237
- textSize = 'text-[14px]';
3238
- }
3239
- else {
3240
- textSize = 'text-[14px]';
3241
- }
3242
- var fillColor;
3243
- if (validatedColor === 'blue') {
3244
- fillColor = '#5d5dea';
3245
- }
3246
- else if (validatedColor === 'green') {
3247
- fillColor = '#21ba4c';
3248
- }
3249
- else if (validatedColor === 'teal') {
3250
- fillColor = '#00b5ad';
3251
- }
3252
- else if (validatedColor === 'yellow') {
3253
- fillColor = '#ff7b00';
3254
- }
3255
- else if (validatedColor === 'red') {
3256
- fillColor = '#db2828';
3257
- }
3258
- else if (validatedColor === 'black') {
3259
- fillColor = '#2f2f2f';
3260
- }
3261
- else {
3262
- fillColor = '#ffffff';
3263
- }
3264
- return (React.createElement(IconComponent, { className: "".concat(textSize, " ").concat(validatedVariant === 'icon' ? configXcolor : configXcolorV), color: fillColor }));
3265
- };
3266
- // const containerClass = `${container} ${capitalize && 'capitalize'}`;
3267
- // const closeableMode = variant === 'closeable';
3268
- // const iconMode = variant === 'icon';
3269
- var closeButtonException;
3270
- if (validatedSize === 'md') {
3271
- closeButtonException = '-mr-[2px]';
3272
- }
3273
- else {
3274
- closeButtonException = '-mr-[5px]';
3275
- }
3276
- var outlineColor;
3277
- if (validatedColor === 'default' || validatedColor === 'white') {
3278
- outlineColor = 'outline-primary-black';
3279
- }
3280
- else {
3281
- outlineColor = 'outline-white';
3282
- }
3283
- if (!open)
3284
- return null;
3285
- return (React.createElement("div", __assign({ className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) }, props),
3286
- validatedVariant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[validatedSize]) }, childrenElement(leftIcon || left) ||
3287
- renderIcon(configX))) : (React.createElement(React.Fragment, null,
3288
- React.createElement("span", null, childrenElement(leftIcon)),
3289
- React.createElement("div", { className: "flex justify-center items-center ".concat(validatedSize === 'md' && 'min-h-[20px] px-[5px]', " ").concat(validatedSize === 'sm' && 'min-h-[18px] px-[3px]', " ").concat(validatedSize === 'tn' && 'min-h-[14px] px-[3px] -mt-[2px]') }, childrenElement(text)))),
3290
- validatedVariant === 'label' && rightIcon && (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[validatedSize]) }, childrenElement(rightIcon || right))),
3291
- validatedVariant === 'closeable' && closeHandler && (React.createElement("button", { type: "button", className: "flex justify-center items-center ".concat(validatedSize === 'tn' ? 'p-[1px]' : 'p-[2px]', " ").concat(outlineColor, " ").concat(iconColor, " ").concat(validatedColor === 'white' || validatedColor === 'default' ? 'bg-black/[.3]' : 'bg-white/[.5]', " focus:outline ").concat(validatedSize === 'tn' ? 'outline-[1.5px]' : 'outline-[2px]', " ").concat(closeButtonException, " rounded-full group"), onClick: function () { return closeHandler(); } },
3292
- React.createElement(CloseIcon, { size: validatedSize })))));
3293
- }
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]" }))))));
2553
+ };
3294
2554
  TagLabel.defaultProps = {
3295
2555
  variant: 'default',
3296
2556
  size: 'sm',
@@ -3300,6 +2560,11 @@ TagLabel.defaultProps = {
3300
2560
  rightIcon: null,
3301
2561
  left: null,
3302
2562
  right: null,
2563
+ bgColor: null,
2564
+ textColor: null,
2565
+ isBlock: false,
2566
+ maxWidth: 300,
2567
+ isDark: false,
3303
2568
  };
3304
2569
 
3305
2570
  var classConfig = {