bianic-ui 1.12.1 → 1.13.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.
package/dist/cjs/index.js CHANGED
@@ -1516,7 +1516,7 @@ var stateColorConfig = {
1516
1516
  };
1517
1517
 
1518
1518
  var ContextualButton = function (_a) {
1519
- var label = _a.label, icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? 'dark' : _b, disabled = _a.disabled; _a.isNotified; var _d = _a.isSelected, isSelected = _d === void 0 ? false : _d, props = __rest(_a, ["label", "icon", "variant", "disabled", "isNotified", "isSelected"]);
1519
+ var actionElement = _a.actionElement, label = _a.label, icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? 'dark' : _b, disabled = _a.disabled; _a.isNotified; var _d = _a.isSelected, isSelected = _d === void 0 ? false : _d, props = __rest(_a, ["actionElement", "label", "icon", "variant", "disabled", "isNotified", "isSelected"]);
1520
1520
  var textColor = isSelected
1521
1521
  ? variant === 'dark'
1522
1522
  ? 'text-primary-black'
@@ -1525,7 +1525,8 @@ var ContextualButton = function (_a) {
1525
1525
  var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
1526
1526
  return (React.createElement("button", __assign({ className: "contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1527
1527
  icon,
1528
- label && (React.createElement("div", { className: "label max-h-[46px] px-[5px] text-[12px] leading-none" }, label))));
1528
+ label && (React.createElement("div", { className: "label max-h-[46px] px-[5px] text-[12px] leading-none" }, label)),
1529
+ actionElement));
1529
1530
  };
1530
1531
 
1531
1532
  function Color() {
@@ -1635,24 +1636,19 @@ function Color() {
1635
1636
  }
1636
1637
 
1637
1638
  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
- },
1639
+ horizontal: 'h-px w-full',
1640
+ vertical: 'h-full w-px',
1646
1641
  };
1647
1642
 
1648
1643
  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") })));
1644
+ var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, className = _a.className;
1645
+ var config = DividerConfig[orientation];
1646
+ var margin = orientation === 'horizontal' ? 'my-[7px]' : 'mx-[7px]';
1647
+ return (React.createElement("div", { className: "bianic-divider bg-bia-grey-light-50 ".concat(margin, " ").concat(config, " ").concat(className) }));
1653
1648
  }
1654
1649
  Divider.defaultProps = {
1655
- classname: '',
1650
+ className: '',
1651
+ orientation: 'horizontal',
1656
1652
  };
1657
1653
 
1658
1654
  var FileTree = function (_a) {