bianic-ui 1.0.0-beta.18 → 1.0.0-beta.19

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
@@ -2521,7 +2521,7 @@ var colorUnion = [
2521
2521
  ];
2522
2522
  var sizeUnion = ['md', 'sm', 'tn'];
2523
2523
  var variantUnion = ['label', 'icon', 'closeable'];
2524
- var TagLabelMus = function (_a) {
2524
+ var TagLabel = function (_a) {
2525
2525
  var color = _a.color, _b = _a.size, size = _b === void 0 ? 'md' : _b, variant = _a.variant, closeHandler = _a.closeHandler, open = _a.open, text = _a.text, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon; _a.left; _a.right; var bgColor = _a.bgColor, textColor = _a.textColor, isBlock = _a.isBlock, maxWidth = _a.maxWidth, isDark = _a.isDark, props = __rest(_a, ["color", "size", "variant", "closeHandler", "open", "text", "leftIcon", "rightIcon", "left", "right", "bgColor", "textColor", "isBlock", "maxWidth", "isDark"]);
2526
2526
  var validatedColor = validUnion(color, colorUnion);
2527
2527
  var validatedSize = validUnion(size, sizeUnion);
@@ -2540,7 +2540,7 @@ var TagLabelMus = function (_a) {
2540
2540
  var closeClass = validatedColor === 'custom'
2541
2541
  ? isDark ? "bg-bia-white-transparent-50 text-bia-".concat(bgColor) : "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
2542
2542
  : closeConfig[validatedColor];
2543
- return (open && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base ".concat(containerClass), style: { maxWidth: maxWidthStyle } }, props),
2543
+ return (open && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base h-fit ".concat(containerClass), style: { maxWidth: maxWidthStyle } }, props),
2544
2544
  leftIcon ||
2545
2545
  (validatedVariant === 'icon' && React.createElement(TbCheck, { className: defaultIconSize })),
2546
2546
  validatedVariant !== 'icon' && (React.createElement("span", { className: "pb-[2px] truncate w-full ".concat(textClass) },
@@ -2551,7 +2551,7 @@ var TagLabelMus = function (_a) {
2551
2551
  validatedVariant === 'closeable' && (React.createElement("button", { type: "button", onClick: closeHandler, className: "aspect-square w-[18px] flex justify-center items-center rounded-full mt-[1px] ".concat(closeClass) },
2552
2552
  React.createElement(TbX, { className: "text-[18px]" }))))));
2553
2553
  };
2554
- TagLabelMus.defaultProps = {
2554
+ TagLabel.defaultProps = {
2555
2555
  variant: 'default',
2556
2556
  size: 'sm',
2557
2557
  open: true,
@@ -2665,7 +2665,7 @@ exports.TableCol = TableCol;
2665
2665
  exports.TableDemo = TableDemo;
2666
2666
  exports.TableHead = TableHead;
2667
2667
  exports.TableRow = TableRow;
2668
- exports.TagLabel = TagLabelMus;
2668
+ exports.TagLabel = TagLabel;
2669
2669
  exports.Text = Text;
2670
2670
  exports.TextArea = TextArea;
2671
2671
  exports.TextInput = TextInput;