bianic-ui 0.5.18 → 1.0.0-beta.1

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