bianic-ui 2.4.0 → 2.5.0

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
@@ -3692,7 +3692,7 @@ function Modal(_a) {
3692
3692
  if (open) {
3693
3693
  return (
3694
3694
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
3695
- reactDom.createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper", onClick: handleClose },
3695
+ reactDom.createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper", onPointerDown: handleClose },
3696
3696
  React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
3697
3697
  React.createElement("div", { className: "bianic-modal-header flex justify-between" },
3698
3698
  React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
@@ -3702,6 +3702,14 @@ function Modal(_a) {
3702
3702
  return null;
3703
3703
  }
3704
3704
 
3705
+ var Notification = function (props) {
3706
+ var children = props.children, _a = props.color, color = _a === void 0 ? 'red' : _a, _b = props.isVisible, isVisible = _b === void 0 ? true : _b;
3707
+ var bgColor = color === 'red' ? 'bg-bia-red' : 'bg-bia-white';
3708
+ return (React.createElement("div", { className: "relative" },
3709
+ React.createElement("div", { className: "absolute -right-[3px] -top-[3px] h-1.5 w-1.5 rounded-radius-full ".concat(bgColor), style: { display: isVisible ? 'block' : 'none' } }),
3710
+ children));
3711
+ };
3712
+
3705
3713
  var sizeConfig$2 = {
3706
3714
  md: 'min-w-[38px] h-[40px] text-[14px] font-semibold',
3707
3715
  sm: 'min-w-[29px] h-[30px] text-[12px] font-normal',
@@ -4509,6 +4517,7 @@ exports.LiveSearch = LiveSearch;
4509
4517
  exports.MenuContainer = MenuContainer;
4510
4518
  exports.MenuItem = MenuItem;
4511
4519
  exports.Modal = Modal;
4520
+ exports.Notification = Notification;
4512
4521
  exports.P = P;
4513
4522
  exports.PaginationBar = PaginationBar;
4514
4523
  exports.PickerCalendar = PickerCalendar;