bianic-ui 0.5.18 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/index.js +41 -45
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Banner/index.d.ts +5 -5
  4. package/dist/cjs/types/components/Forms/Radio/index.d.ts +3 -3
  5. package/dist/cjs/types/components/Forms/SelectInput/SelectedInput.d.ts +5 -5
  6. package/dist/cjs/types/components/Forms/TextInput/PasswordIcon.d.ts +2 -2
  7. package/dist/cjs/types/components/Forms/TextInput/TextInput.d.ts +3 -3
  8. package/dist/cjs/types/components/Modal/Modal.d.ts +3 -3
  9. package/dist/cjs/types/components/Popover/index.d.ts +2 -2
  10. package/dist/cjs/types/components/TagLabel/index.d.ts +3 -3
  11. package/dist/cjs/types/stories/Badge/BadgeDemo.stories.d.ts +2 -1
  12. package/dist/cjs/types/stories/Badge/BadgeDemoHeading.stories.d.ts +2 -1
  13. package/dist/esm/index.js +41 -45
  14. package/dist/esm/lib.css +1 -1
  15. package/dist/esm/types/components/Banner/index.d.ts +5 -5
  16. package/dist/esm/types/components/Forms/Radio/index.d.ts +3 -3
  17. package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +5 -5
  18. package/dist/esm/types/components/Forms/TextInput/PasswordIcon.d.ts +2 -2
  19. package/dist/esm/types/components/Forms/TextInput/TextInput.d.ts +3 -3
  20. package/dist/esm/types/components/Modal/Modal.d.ts +3 -3
  21. package/dist/esm/types/components/Popover/index.d.ts +2 -2
  22. package/dist/esm/types/components/TagLabel/index.d.ts +3 -3
  23. package/dist/esm/types/stories/Badge/BadgeDemo.stories.d.ts +2 -1
  24. package/dist/esm/types/stories/Badge/BadgeDemoHeading.stories.d.ts +2 -1
  25. package/dist/index.d.ts +24 -24
  26. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -527,19 +527,17 @@ var variantConfig = {
527
527
  };
528
528
 
529
529
  function Banner(_a) {
530
- var children = _a.children, _b = _a.isCloseable, isCloseable = _b === void 0 ? true : _b, _c = _a.variant, variant = _c === void 0 ? 'black' : _c, isShow = _a.isShow, setIsShow = _a.setIsShow;
531
- if (isShow) {
530
+ var children = _a.children, _b = _a.closeable, closeable = _b === void 0 ? true : _b, _c = _a.variant, variant = _c === void 0 ? 'black' : _c, open = _a.open, onClose = _a.onClose;
531
+ if (open) {
532
532
  return (React.createElement("div", { className: "w-full h-[42px] py-[22px] text-size-base font-semibold flex justify-center items-center text-white relative ".concat(variantConfig[variant].bg) },
533
533
  React.createElement("div", { className: "w-full flex justify-center items-center gap-[10px]" },
534
534
  React.createElement("div", { className: "font-semibold font-segoe text-[14px] leading-[21px]" }, children),
535
- React.createElement("div", { className: "flex items-center justify-center" }, isCloseable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig[variant].focus), type: "button", onClick: function () {
536
- setIsShow(false);
537
- } },
535
+ React.createElement("div", { className: "flex items-center justify-center" }, closeable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig[variant].focus), type: "button", onClick: function () { return onClose(false); } },
538
536
  React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig[variant].hover, " ").concat(variantConfig[variant].active) })))))));
539
537
  }
540
538
  }
541
539
  Banner.defaultProps = {
542
- isCloseable: true,
540
+ closeable: true,
543
541
  variant: 'black',
544
542
  };
545
543
 
@@ -1461,8 +1459,8 @@ function ValidationIcon(_a) {
1461
1459
  }
1462
1460
 
1463
1461
  function PasswordIcon(_a) {
1464
- var isShow = _a.isShow, _b = _a.showHandler, showHandler = _b === void 0 ? function () { } : _b, iconSize = _a.iconSize, isDisabled = _a.isDisabled;
1465
- var iconColor = isDisabled ? '#8b8ba6' : '#5E5EEA';
1462
+ var isShow = _a.isShow, _b = _a.showHandler, showHandler = _b === void 0 ? function () { } : _b, iconSize = _a.iconSize, disabled = _a.disabled;
1463
+ var iconColor = disabled ? '#8b8ba6' : '#5E5EEA';
1466
1464
  if (isShow) {
1467
1465
  return (React.createElement(TbEye, { onClick: function () { return showHandler(false); }, style: {
1468
1466
  fontSize: iconSize,
@@ -1473,7 +1471,7 @@ function PasswordIcon(_a) {
1473
1471
  }
1474
1472
 
1475
1473
  function TextInput(_a) {
1476
- var descText = _a.descText, _b = _a.isDisabled, isDisabled = _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;
1474
+ 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
1475
  var _m = useState(false), isShow = _m[0], setIsShow = _m[1];
1478
1476
  var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
1479
1477
  var _p = sizeConfig$9[size], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
@@ -1482,35 +1480,35 @@ function TextInput(_a) {
1482
1480
  typeVariant = isShow ? 'text' : 'password';
1483
1481
  var isExistValidation = isValid !== null;
1484
1482
  var descColor = 'text-primary-cool';
1485
- if (!isDisabled && isExistValidation && isValid)
1483
+ if (!disabled && isExistValidation && isValid)
1486
1484
  descColor = 'text-bia-green';
1487
- if (!isDisabled && isExistValidation && !isValid)
1485
+ if (!disabled && isExistValidation && !isValid)
1488
1486
  descColor = 'text-bia-red';
1489
1487
  var bottomBorderColor = 'hover:border-b-bia-blue focus:border-b-bia-blue';
1490
- if (!isDisabled && isExistValidation && isValid)
1488
+ if (!disabled && isExistValidation && isValid)
1491
1489
  bottomBorderColor = 'border-b-bia-green';
1492
- if (!isDisabled && isExistValidation && !isValid)
1490
+ if (!disabled && isExistValidation && !isValid)
1493
1491
  bottomBorderColor = 'border-b-bia-red';
1494
1492
  var iconElement = null;
1495
- if (!isDisabled && isExistValidation)
1493
+ if (!disabled && isExistValidation)
1496
1494
  iconElement = React.createElement(ValidationIcon, { isValid: isValid, iconSize: iconSize });
1497
1495
  if (icon)
1498
1496
  iconElement = icon;
1499
1497
  if (variant === 'password') {
1500
- iconElement = (React.createElement(PasswordIcon, { isShow: isShow, showHandler: setIsShow, iconSize: iconSize, isDisabled: isDisabled }));
1498
+ iconElement = (React.createElement(PasswordIcon, { isShow: isShow, showHandler: setIsShow, iconSize: iconSize, disabled: disabled }));
1501
1499
  }
1502
1500
  return (React.createElement("div", { className: "field-group w-full flex flex-col gap-y-2" },
1503
1501
  React.createElement("label", { htmlFor: id, className: "label text-xs font-semibold" },
1504
1502
  label,
1505
1503
  required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1506
1504
  React.createElement("div", { className: "w-full relative" },
1507
- React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active read-only:border-bia-grey-light-50 read-only:pointer-events-none w-full border border-bia-grey-dark-10 disabled:border-bia-grey-dark-10 focus:rounded-b-none hover:rounded-b-none focus-visible:outline-none rounded ".concat(fieldStyle, " ").concat(fieldSize, " ").concat(bottomBorderColor), disabled: isDisabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); } }),
1505
+ React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active read-only:border-bia-grey-light-50 read-only:pointer-events-none w-full border border-bia-grey-dark-10 disabled:border-bia-grey-dark-10 focus:rounded-b-none hover:rounded-b-none focus-visible:outline-none rounded ".concat(fieldStyle, " ").concat(fieldSize, " ").concat(bottomBorderColor), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); } }),
1508
1506
  React.createElement("div", { className: "absolute inset-y-0 pl-3 flex items-center ".concat(iconStyle, " ").concat(iconPosition) }, iconElement)),
1509
1507
  React.createElement("span", { className: "desc text-xs ".concat(descColor) }, descText)));
1510
1508
  }
1511
1509
  TextInput.defaultProps = {
1512
1510
  descText: '',
1513
- isDisabled: false,
1511
+ disabled: false,
1514
1512
  icon: null,
1515
1513
  id: '',
1516
1514
  size: 'md',
@@ -1545,20 +1543,20 @@ var sizeConfig$8 = {
1545
1543
  };
1546
1544
 
1547
1545
  function Radio(_a) {
1548
- 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.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.checked, checked = _e === void 0 ? false : _e;
1546
+ 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
1547
  var _f = sizeConfig$8[size], checkSize = _f.checkSize, labelSize = _f.labelSize;
1550
1548
  return (React.createElement("div", { className: "flex items-center" },
1551
1549
  React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
1552
- 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: isDisabled }),
1550
+ 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
1551
  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: isDisabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
1552
+ React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
1555
1553
  }
1556
1554
  Radio.defaultProps = {
1557
1555
  label: '',
1558
1556
  size: 'md',
1559
1557
  id: '',
1560
1558
  onClick: function () { },
1561
- isDisabled: false,
1559
+ disabled: false,
1562
1560
  checked: false,
1563
1561
  };
1564
1562
 
@@ -1708,7 +1706,7 @@ DefaultDropdownItem.defaultProps = {
1708
1706
 
1709
1707
  /* eslint-disable @typescript-eslint/no-explicit-any */
1710
1708
  function SelectInput(_a) {
1711
- var descText = _a.descText, _b = _a.isDisabled, isDisabled = _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.isRequired, isRequired = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected;
1709
+ 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
1710
  var _e = useState(false), isOpen = _e[0], setIsOpen = _e[1];
1713
1711
  var _f = sizeConfig$5[size], searchSize = _f.searchSize, iconSize = _f.iconSize;
1714
1712
  var inputRef = useRef(null);
@@ -1726,9 +1724,9 @@ function SelectInput(_a) {
1726
1724
  return (React.createElement("div", { className: "field-group w-full flex flex-col", ref: inputRef },
1727
1725
  React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
1728
1726
  label,
1729
- isRequired && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1727
+ required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
1730
1728
  React.createElement("div", { className: "group w-full relative" },
1731
- React.createElement("input", { className: "field bg-primary-white disabled:bg-bia-grey-light-80 pe-8 w-full border border-bia-grey-dark-10 enabled:hover:border-b-bia-blue enabled:hover:rounded-b-none enabled:focus:border-b-bia-blue enabled:focus:rounded-b-none focus-visible:outline-none cursor-pointer rounded disabled:text-bia-coolgrey peer ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selected === null || selected === void 0 ? void 0 : selected.label, readOnly: true, id: id, disabled: isDisabled }),
1729
+ 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
1730
  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
1731
  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
1732
  var isSelected = selected && selected.id && option.id === selected.id;
@@ -1741,11 +1739,11 @@ function SelectInput(_a) {
1741
1739
  }
1742
1740
  SelectInput.defaultProps = {
1743
1741
  descText: '',
1744
- isDisabled: false,
1742
+ disabled: false,
1745
1743
  id: '',
1746
1744
  size: 'md',
1747
1745
  label: '',
1748
- isRequired: false,
1746
+ required: false,
1749
1747
  selected: {},
1750
1748
  setSelected: function () { },
1751
1749
  };
@@ -1911,33 +1909,33 @@ function SegmentButtonSimulation(_a) {
1911
1909
  var SegmentButtonArr = [
1912
1910
  {
1913
1911
  content: 'Segment Button A',
1914
- isDisabled: false,
1912
+ disabled: false,
1915
1913
  handleClick: function (index) { return setActiveButton(index); },
1916
1914
  },
1917
1915
  {
1918
1916
  content: 'Segment Button B',
1919
- isDisabled: false,
1917
+ disabled: false,
1920
1918
  handleClick: function (index) { return setActiveButton(index); },
1921
1919
  },
1922
1920
  {
1923
1921
  content: 'Segment Button C (Disabled)',
1924
- isDisabled: true,
1922
+ disabled: true,
1925
1923
  handleClick: function (index) { return setActiveButton(index); },
1926
1924
  },
1927
1925
  {
1928
1926
  content: 'Segment Button D',
1929
- isDisabled: false,
1927
+ disabled: false,
1930
1928
  handleClick: function (index) { return setActiveButton(index); },
1931
1929
  },
1932
1930
  {
1933
1931
  content: 'Segment Button E',
1934
- isDisabled: false,
1932
+ disabled: false,
1935
1933
  handleClick: function (index) { return setActiveButton(index); },
1936
1934
  },
1937
1935
  ];
1938
1936
  return (React.createElement(SegmentButtonGroup, null, SegmentButtonArr.map(function (_a, index) {
1939
- var content = _a.content, isDisabled = _a.isDisabled, handleClick = _a.handleClick;
1940
- return (React.createElement(SegmentButtonItem, { active: activeButton === index, size: size, disabled: isDisabled, onClick: function () { return handleClick(index); } },
1937
+ var content = _a.content, disabled = _a.disabled, handleClick = _a.handleClick;
1938
+ return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
1941
1939
  React.createElement("div", { className: "flex items-center justify-center" },
1942
1940
  React.createElement("div", { className: "mt-[1px] mr-[5px]" },
1943
1941
  React.createElement(TbCheck$1, null)),
@@ -1946,7 +1944,7 @@ function SegmentButtonSimulation(_a) {
1946
1944
  }
1947
1945
 
1948
1946
  function Modal(_a) {
1949
- var size = _a.size, title = _a.title, isShow = _a.isShow, setIsShow = _a.setIsShow, rest = __rest(_a, ["size", "title", "isShow", "setIsShow"]);
1947
+ var size = _a.size, title = _a.title, open = _a.open, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "onClose"]);
1950
1948
  var modalSize;
1951
1949
  if (size === 'sm') {
1952
1950
  modalSize = 'w-[300px]';
@@ -1962,19 +1960,17 @@ function Modal(_a) {
1962
1960
  }
1963
1961
  var handleClose = function (e) {
1964
1962
  if (e && e.target && e.target.id === 'wrapper') {
1965
- setIsShow(false);
1963
+ onClose();
1966
1964
  }
1967
1965
  };
1968
- if (isShow) {
1966
+ if (open) {
1969
1967
  return (
1970
1968
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
1971
1969
  React.createElement("div", { className: "fixed inset-0 flex justify-center items-center bg-bia-black-transparent-75", id: "wrapper", onClick: handleClose },
1972
1970
  React.createElement("div", { className: "modal flex flex-col gap-[20px] bg-white rounded-[5px] p-[20px] ".concat(modalSize) },
1973
1971
  React.createElement("div", { className: "flex justify-between" },
1974
1972
  React.createElement("div", { className: " font-humnst777 font-bold text-[18px] leading-[21.85px] text-primary-black w-[260px] text-wrap" }, title),
1975
- React.createElement("button", { type: "button", title: "button", className: "w-[22px] h-[22px] rounded-radius-full flex items-center justify-center bg-bia-grey-light-50 hover:bg-bia-grey-light-30 cursor-pointer", onClick: function () {
1976
- setIsShow(false);
1977
- } },
1973
+ React.createElement("button", { type: "button", title: "button", className: "w-[22px] h-[22px] rounded-radius-full flex items-center justify-center bg-bia-grey-light-50 hover:bg-bia-grey-light-30 cursor-pointer", onClick: function () { return onClose(); } },
1978
1974
  React.createElement(TbX, { className: "text-bia-coolgrey text-[14px]" }))),
1979
1975
  React.createElement("div", { className: "flex flex-col gap-[20px]" }, rest.children))));
1980
1976
  }
@@ -2094,16 +2090,16 @@ var classConfig$1 = {
2094
2090
  };
2095
2091
 
2096
2092
  function Popover(_a) {
2097
- var children = _a.children, content = _a.content, _b = _a.delay, delay = _b === void 0 ? 400 : _b, _c = _a.direction, direction = _c === void 0 ? 'bottom' : _c, _d = _a.title, title = _d === void 0 ? '' : _d, open = _a.open, setIsActive = _a.setIsActive;
2093
+ var children = _a.children, content = _a.content, _b = _a.delay, delay = _b === void 0 ? 400 : _b, _c = _a.direction, direction = _c === void 0 ? 'bottom' : _c, _d = _a.title, title = _d === void 0 ? '' : _d, open = _a.open, setOpen = _a.setOpen;
2098
2094
  var timeout;
2099
2095
  var showPopover = function () {
2100
2096
  timeout = setTimeout(function () {
2101
- setIsActive(true);
2097
+ setOpen(true);
2102
2098
  }, delay);
2103
2099
  };
2104
2100
  var hidePopover = function () {
2105
2101
  clearInterval(timeout);
2106
- setIsActive(false);
2102
+ setOpen(false);
2107
2103
  };
2108
2104
  var _e = classConfig$1[direction], tooltipContainer = _e.tooltipContainer, triangleContainer = _e.triangleContainer, triangleShape = _e.triangleShape;
2109
2105
  return (React.createElement("div", { className: "Popover-Wrapper relative block w-fit h-fit", onMouseEnter: showPopover, onMouseLeave: hidePopover },
@@ -3133,7 +3129,7 @@ CloseIcon.defaultProps = {
3133
3129
  };
3134
3130
 
3135
3131
  function TagLabel(_a) {
3136
- 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, isShow = _a.isShow, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
3132
+ 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;
3137
3133
  var config = TagLabelConfig[color][size][variant];
3138
3134
  var configIcon = TagLabelConfig[color][size];
3139
3135
  var configbg = config.bg;
@@ -3205,7 +3201,7 @@ function TagLabel(_a) {
3205
3201
  else {
3206
3202
  outlineColor = 'outline-white';
3207
3203
  }
3208
- if (!isShow)
3204
+ if (!open)
3209
3205
  return null;
3210
3206
  return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
3211
3207
  variant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[size]) }, leftIcon || renderIcon(configX))) : (React.createElement(React.Fragment, null,
@@ -3218,7 +3214,7 @@ function TagLabel(_a) {
3218
3214
  TagLabel.defaultProps = {
3219
3215
  variant: 'default',
3220
3216
  size: 'sm',
3221
- isShow: true,
3217
+ open: true,
3222
3218
  closeHandler: function () { },
3223
3219
  rightIcon: null,
3224
3220
  leftIcon: null,