bianic-ui 2.6.0-beta.0 → 2.6.0-beta.4

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
@@ -561,30 +561,30 @@ Button.defaultProps = {
561
561
 
562
562
  var AvatarConfig = {
563
563
  sm: {
564
- picture: 'w-[24px] h-[24px] rounded-[12px] border-[1px] border-bia-coolgrey-light-90',
564
+ picture: 'w-[24px] h-[24px] rounded-[12px] border-[1px] ',
565
565
  'no picture': 'font-semibold text-[12px] leading-[15.96px] text-primary-white flex items-center',
566
566
  },
567
567
  md: {
568
- picture: 'w-[36px] h-[36px] rounded-[18px] border-[1px] border-bia-coolgrey-light-90',
568
+ picture: 'w-[36px] h-[36px] rounded-[18px] border-[1px] ',
569
569
  'no picture': 'font-semibold text-[14px] leading-[18.62px] text-primary-white flex items-center',
570
570
  },
571
571
  lg: {
572
- picture: 'w-[52px] h-[52px] rounded-[26px] border-[2px] border-bia-coolgrey-light-90',
572
+ picture: 'w-[52px] h-[52px] rounded-[26px] border-[2px]',
573
573
  'no picture': 'font-semibold text-[24px] leading-[31.92px] text-primary-white flex items-center',
574
574
  },
575
575
  xl: {
576
- picture: 'w-[92px] h-[92px] rounded-[46px] border-[3px] border-bia-coolgrey-light-90',
576
+ picture: 'w-[92px] h-[92px] rounded-[46px] border-[3px]',
577
577
  'no picture': 'font-semibold text-[36px] leading-[47.88px] text-primary-white flex items-center',
578
578
  },
579
579
  xxl: {
580
- picture: 'w-[160px] h-[160px] rounded-[80px] border-[5px] border-bia-coolgrey-light-90',
580
+ picture: 'w-[160px] h-[160px] rounded-[80px] border-[5px]',
581
581
  'no picture': 'font-semibold text-[64px] leading-[85.13px] text-primary-white flex items-center',
582
582
  },
583
583
  };
584
584
 
585
585
  function Avatar(_a) {
586
586
  var _b, _c, _d, _e;
587
- var _f = _a.size, size = _f === void 0 ? 'md' : _f, _g = _a.variant, variant = _g === void 0 ? 'initial' : _g, _h = _a.name, name = _h === void 0 ? 'Test' : _h;
587
+ var _f = _a.size, size = _f === void 0 ? 'md' : _f, _g = _a.variant, variant = _g === void 0 ? 'initial' : _g, _h = _a.name, name = _h === void 0 ? 'Test' : _h, _j = _a.bgColor, bgColor = _j === void 0 ? 'bia-sky-dark-40' : _j, _k = _a.outlineColor, outlineColor = _k === void 0 ? 'bia-coolgrey' : _k, className = _a.className;
588
588
  var getInitials = function (initial) {
589
589
  if (!initial)
590
590
  return '';
@@ -599,14 +599,14 @@ function Avatar(_a) {
599
599
  var avatarResult = null;
600
600
  switch (usedVariant) {
601
601
  case 'picture':
602
- avatarResult = (React.createElement("img", { src: "https://img.freepik.com/free-psd/girl-avatar-emoji-3d-icon_23-2150579870.jpg", alt: "avatar", className: "".concat((_b = AvatarConfig[usedSize]) === null || _b === void 0 ? void 0 : _b.picture) }));
602
+ avatarResult = (React.createElement("img", { src: "https://img.freepik.com/free-psd/girl-avatar-emoji-3d-icon_23-2150579870.jpg", alt: "avatar", className: "".concat((_b = AvatarConfig[usedSize]) === null || _b === void 0 ? void 0 : _b.picture, " ").concat(className) }));
603
603
  break;
604
604
  case 'initial':
605
- avatarResult = (React.createElement("div", { className: "".concat((_c = AvatarConfig[usedSize]) === null || _c === void 0 ? void 0 : _c.picture, " flex items-center justify-center bg-bia-sky") },
605
+ avatarResult = (React.createElement("div", { className: "".concat((_c = AvatarConfig[usedSize]) === null || _c === void 0 ? void 0 : _c.picture, " flex items-center justify-center border-").concat(outlineColor, " bg-").concat(bgColor, " ").concat(className) },
606
606
  React.createElement("div", { className: "".concat((_d = AvatarConfig[usedSize]) === null || _d === void 0 ? void 0 : _d['no picture']) }, getInitials(name))));
607
607
  break;
608
608
  case 'image':
609
- avatarResult = (React.createElement("svg", { width: "160", height: "160", viewBox: "0 0 160 160", fill: "none", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", className: "".concat((_e = AvatarConfig[usedSize]) === null || _e === void 0 ? void 0 : _e.picture, " flex items-center justify-center") },
609
+ avatarResult = (React.createElement("svg", { width: "160", height: "160", viewBox: "0 0 160 160", fill: "none", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", className: "".concat((_e = AvatarConfig[usedSize]) === null || _e === void 0 ? void 0 : _e.picture, " flex items-center justify-center ").concat(className) },
610
610
  React.createElement("rect", { width: "160", height: "160", fill: "url(#pattern0_9212_4625)" }),
611
611
  React.createElement("defs", null,
612
612
  React.createElement("pattern", { id: "pattern0_9212_4625", patternContentUnits: "objectBoundingBox", width: "1", height: "1" },
@@ -1536,7 +1536,7 @@ var colorConfig$2 = {
1536
1536
  var ButtonApp = function (_a) {
1537
1537
  _a.icon; _a.isNotified; var _c = _a.isActive, isActive = _c === void 0 ? false : _c, disabled = _a.disabled, _d = _a.color, color = _d === void 0 ? 'green' : _d, label = _a.label, extended = _a.extended, rest = __rest(_a, ["icon", "isNotified", "isActive", "disabled", "color", "label", "extended"]);
1538
1538
  var buttonState = isActive ? 'active' : 'default';
1539
- return (React.createElement("button", __assign({ className: "button-app flex items-center justify-center px-[10px] pb-[8.3px] pt-[8.5px] font-arial text-size-tiny ".concat(colorConfig$2[color][buttonState], " ").concat(extended), type: "button", disabled: disabled }, rest), label));
1539
+ return (React.createElement("button", __assign({ className: "button-app flex max-h-[30px] items-center justify-center px-[10px] pb-[8.3px] pt-[8.5px] font-arial text-size-tiny ".concat(colorConfig$2[color][buttonState], " ").concat(extended), type: "button", disabled: disabled }, rest), label));
1540
1540
  };
1541
1541
 
1542
1542
  var textColorConfig = {