bianic-ui 1.12.0 → 1.13.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.
package/dist/cjs/index.js CHANGED
@@ -1635,24 +1635,19 @@ function Color() {
1635
1635
  }
1636
1636
 
1637
1637
  var DividerConfig = {
1638
- horizontal: {
1639
- containerClass: 'h-px w-full',
1640
- lineClass: 'w-full border-t',
1641
- },
1642
- vertical: {
1643
- containerClass: 'h-full w-px',
1644
- lineClass: 'h-full border-r',
1645
- },
1638
+ horizontal: 'h-px w-full',
1639
+ vertical: 'h-full w-px',
1646
1640
  };
1647
1641
 
1648
1642
  function Divider(_a) {
1649
- var orientation = _a.orientation, classname = _a.classname;
1650
- var _b = DividerConfig[orientation], containerClass = _b.containerClass, lineClass = _b.lineClass;
1651
- return (React.createElement("div", { className: "".concat(containerClass, " ").concat(classname, " py-[7.5px]") },
1652
- React.createElement("div", { className: "".concat(lineClass, " border-bia-grey-light-50") })));
1643
+ var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, className = _a.className;
1644
+ var config = DividerConfig[orientation];
1645
+ var margin = orientation === 'horizontal' ? 'my-[7px]' : 'mx-[7px]';
1646
+ return (React.createElement("div", { className: "bianic-divider bg-bia-grey-light-50 ".concat(margin, " ").concat(config, " ").concat(className) }));
1653
1647
  }
1654
1648
  Divider.defaultProps = {
1655
- classname: '',
1649
+ className: '',
1650
+ orientation: 'horizontal',
1656
1651
  };
1657
1652
 
1658
1653
  var FileTree = function (_a) {
@@ -3218,7 +3213,7 @@ function Modal(_a) {
3218
3213
  React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
3219
3214
  React.createElement("div", { className: "bianic-modal-header flex justify-between" },
3220
3215
  React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
3221
- React.createElement(Button, { variant: "subtle", radius: "full-rounded", iconLeft: React.createElement(TbX, null), size: "tn", onClick: function () { return onClose(); } })),
3216
+ React.createElement(Button, { variant: "subtle", radius: "full-rounded", iconLeft: React.createElement(TbX, { size: 14 }), size: "tn", onClick: function () { return onClose(); } })),
3222
3217
  React.createElement("div", { className: "bianic-modal-content flex w-full flex-col items-start gap-[20px]" }, rest.children))));
3223
3218
  }
3224
3219
  return null;