blixify-ui-web 1.1.24 → 1.2.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.
@@ -46,16 +46,27 @@ var EmptyState = /** @class */ (function (_super) {
46
46
  return _super !== null && _super.apply(this, arguments) || this;
47
47
  }
48
48
  EmptyState.prototype.render = function () {
49
- var textColor = this.props.darkMode ? "text-white" : "text-gray-600";
50
- var borderColor = this.props.darkMode ? "border-white" : "border-gray-300";
51
- var defaultClassName = "flex flex-col items-center rounded-lg border-2 border-dashed ".concat(borderColor, " p-10 ");
52
- if (this.props.className) {
53
- defaultClassName += this.props.className;
49
+ var _a = this.props, text = _a.text, icon = _a.icon, description = _a.description, _b = _a.size, size = _b === void 0 ? "default" : _b, callToAction = _a.callToAction, darkMode = _a.darkMode, className = _a.className;
50
+ var textColor = darkMode ? "text-white" : "text-gray-600";
51
+ var descColor = darkMode ? "text-gray-300" : "text-gray-500";
52
+ var borderColor = darkMode ? "border-white" : "border-gray-300";
53
+ if (size === "compact") {
54
+ // INFO: ~120px tall — no dashed border, fits inside list headers without stealing screen space
55
+ return (react_1.default.createElement("div", { className: "flex flex-col items-center text-center rounded-lg p-4 ".concat(className !== null && className !== void 0 ? className : "") },
56
+ icon,
57
+ react_1.default.createElement("p", { className: "mt-2 text-sm font-medium ".concat(textColor) }, text),
58
+ description && (react_1.default.createElement("p", { className: "mt-1 text-xs ".concat(descColor) }, description)),
59
+ callToAction && (react_1.default.createElement("div", { className: "mt-3 flex items-center justify-center" }, callToAction))));
54
60
  }
61
+ // INFO: default — original dashed-border layout, kept for backward compat
62
+ var defaultClassName = "flex flex-col items-center rounded-lg border-2 border-dashed ".concat(borderColor, " p-10 ");
63
+ if (className)
64
+ defaultClassName += className;
55
65
  return (react_1.default.createElement("div", { className: defaultClassName },
56
- this.props.icon,
57
- react_1.default.createElement("p", { className: "text-sm ".concat(textColor, " mt-2") }, this.props.text),
58
- this.props.callToAction && (react_1.default.createElement("div", { className: "flex items-center justify-center mt-4 " }, this.props.callToAction))));
66
+ icon,
67
+ react_1.default.createElement("p", { className: "text-sm ".concat(textColor, " mt-2") }, text),
68
+ description && (react_1.default.createElement("p", { className: "mt-1 text-xs ".concat(descColor) }, description)),
69
+ callToAction && (react_1.default.createElement("div", { className: "flex items-center justify-center mt-4 " }, callToAction))));
59
70
  };
60
71
  return EmptyState;
61
72
  }(react_1.Component));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/display/emptyState/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AAUvD;IAAgC,8BAAgB;IAAhD;;IAsBA,CAAC;IArBC,2BAAM,GAAN;QACE,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC;QACvE,IAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;QAC7E,IAAI,gBAAgB,GAClB,uEAAgE,WAAW,WAAQ,CAAC;QACtF,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YACzB,gBAAgB,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;QAC3C,CAAC;QAED,OAAO,CACL,uCAAK,SAAS,EAAE,gBAAgB;YAC7B,IAAI,CAAC,KAAK,CAAC,IAAI;YAChB,qCAAG,SAAS,EAAE,kBAAW,SAAS,UAAO,IAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAK;YAC/D,IAAI,CAAC,KAAK,CAAC,YAAY,IAAI,CAC1B,uCAAK,SAAS,EAAC,wCAAwC,IACpD,IAAI,CAAC,KAAK,CAAC,YAAY,CACpB,CACP,CACG,CACP,CAAC;IACJ,CAAC;IACH,iBAAC;AAAD,CAAC,AAtBD,CAAgC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